38 lines
1002 B
JavaScript
38 lines
1002 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.Connect = void 0;
|
|
const ConnectLinks_1 = require("./ConnectLinks");
|
|
class Connect {
|
|
constructor() {
|
|
this.distance = 80;
|
|
this.links = new ConnectLinks_1.ConnectLinks();
|
|
this.radius = 60;
|
|
}
|
|
get lineLinked() {
|
|
return this.links;
|
|
}
|
|
set lineLinked(value) {
|
|
this.links = value;
|
|
}
|
|
get line_linked() {
|
|
return this.links;
|
|
}
|
|
set line_linked(value) {
|
|
this.links = value;
|
|
}
|
|
load(data) {
|
|
var _a, _b;
|
|
if (!data) {
|
|
return;
|
|
}
|
|
if (data.distance !== undefined) {
|
|
this.distance = data.distance;
|
|
}
|
|
this.links.load((_b = (_a = data.links) !== null && _a !== void 0 ? _a : data.lineLinked) !== null && _b !== void 0 ? _b : data.line_linked);
|
|
if (data.radius !== undefined) {
|
|
this.radius = data.radius;
|
|
}
|
|
}
|
|
}
|
|
exports.Connect = Connect;
|