1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.EdgeDisplayData = exports.NodeDisplayData = void 0;
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | var NodeDisplayData = (function () {
|
17 | function NodeDisplayData(index, settings) {
|
18 | this.index = index;
|
19 | this.x = 0;
|
20 | this.y = 0;
|
21 | this.size = 2;
|
22 | this.color = settings.defaultNodeColor;
|
23 | this.hidden = false;
|
24 | this.label = "";
|
25 | }
|
26 | NodeDisplayData.prototype.assign = function (data) {
|
27 | for (var key in data)
|
28 | this[key] = data[key];
|
29 | };
|
30 | return NodeDisplayData;
|
31 | }());
|
32 | exports.NodeDisplayData = NodeDisplayData;
|
33 | var EdgeDisplayData = (function () {
|
34 | function EdgeDisplayData(index, settings) {
|
35 | this.index = index;
|
36 | this.size = 1;
|
37 | this.color = settings.defaultEdgeColor;
|
38 | this.hidden = false;
|
39 | this.label = "";
|
40 | }
|
41 | EdgeDisplayData.prototype.assign = function (data) {
|
42 | for (var key in data)
|
43 | this[key] = data[key];
|
44 | };
|
45 | return EdgeDisplayData;
|
46 | }());
|
47 | exports.EdgeDisplayData = EdgeDisplayData;
|