@kong-ui-public/documentation 1.5.78 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{arc-DZdQjcG8-C_2Dx6GQ.js → arc-DZdQjcG8-CduayE88.js} +2 -2
- package/dist/{architectureDiagram-3BPJPVTR-By_DXDyu-DTj86bUZ.js → architectureDiagram-3BPJPVTR-By_DXDyu-U3MSLbOU.js} +1506 -1513
- package/dist/blockDiagram-GPEHLZMM-9Cp9Hbl7-CKP-SiVG.js +3268 -0
- package/dist/{c4Diagram-AAUBKEIU-ftdwlfdB-CYiERTWJ.js → c4Diagram-AAUBKEIU-ftdwlfdB-D3A61SdV.js} +11 -12
- package/dist/{channel-DM9j7IFL-CjNPz4Hd.js → channel-DM9j7IFL-DxqBUxfY.js} +1 -1
- package/dist/{chunk-2J33WTMH-CBbjVzWb-BAAd-TK5.js → chunk-2J33WTMH-CBbjVzWb-0og4LHQ-.js} +7 -8
- package/dist/chunk-4BX2VUAB-C_NnimAy--QQ0Db2V.js +8 -0
- package/dist/{chunk-55IACEB6-DZn1aNO0-_bs5ibIB.js → chunk-55IACEB6-DZn1aNO0-A3zOZ7dT.js} +1 -1
- package/dist/{chunk-727SXJPM-B2_6_WLv-CzbzsbtK.js → chunk-727SXJPM-B2_6_WLv-Bs3CxHaX.js} +548 -549
- package/dist/{chunk-AQP2D5EJ-DEAEiJjW-BPr5JvkB.js → chunk-AQP2D5EJ-DEAEiJjW-DTbwZT8N.js} +446 -458
- package/dist/{chunk-FMBD7UC4-D_tZ4Dxg-BUygZnCT.js → chunk-FMBD7UC4-D_tZ4Dxg-DwjoPGUH.js} +1 -1
- package/dist/{chunk-ND2GUHAM-Duw3k8MU-Dr8SD23L.js → chunk-ND2GUHAM-Duw3k8MU-HmrdHLJ9.js} +1 -1
- package/dist/{chunk-QZHKN3VN-DN6nBdn0-DxWE5zsM.js → chunk-QZHKN3VN-DN6nBdn0-BvQOETVz.js} +1 -1
- package/dist/classDiagram-4FO5ZUOK-Du5qFrfN-BqXc0etQ.js +17 -0
- package/dist/classDiagram-v2-Q7XG4LA2-DM6zutfc-BqXc0etQ.js +17 -0
- package/dist/{cose-bilkent-S5V4N54A-0ZumbVgj-BKcFQWbE.js → cose-bilkent-S5V4N54A-0ZumbVgj-0z7CQbIH.js} +465 -465
- package/dist/{cytoscape.esm-BDIiOYYO-BbddfVIJ.js → cytoscape.esm-BDIiOYYO-C1jMBhD8.js} +356 -371
- package/dist/dagre-BM42HDAG-qMWMsyLb-DGMrq3i3.js +288 -0
- package/dist/{dagre-DJxg_nfI-BzVw7cNP.js → dagre-DJxg_nfI-hVOVexz-.js} +9 -9
- package/dist/{diagram-2AECGRRQ-B2gF_dHe-DCRSlKG-.js → diagram-2AECGRRQ-B2gF_dHe-Bv_EpxRz.js} +10 -14
- package/dist/{diagram-5GNKFQAL-DJ9WwRrD-DtSWJY6-.js → diagram-5GNKFQAL-DJ9WwRrD-WVvm0Icu.js} +4 -4
- package/dist/{diagram-KO2AKTUF-RfkqD-VW-ZR9mxccc.js → diagram-KO2AKTUF-RfkqD-VW-yyAds1Qq.js} +153 -156
- package/dist/{diagram-LMA3HP47-Ct7s9hIt-DXtPBRn4.js → diagram-LMA3HP47-Ct7s9hIt-Dy6f9BAO.js} +21 -22
- package/dist/{diagram-OG6HWLK6-BSYJ2CoI-DX1BfXw6.js → diagram-OG6HWLK6-BSYJ2CoI-ckmfat-L.js} +79 -81
- package/dist/documentation.es.js +1 -1
- package/dist/documentation.umd.js +374 -374
- package/dist/{erDiagram-TEJ5UH35-BudwiSYX-BPA5-1u6.js → erDiagram-TEJ5UH35-BudwiSYX-bVzp1Kjr.js} +134 -135
- package/dist/{flowDiagram-I6XJVG4X-B23Smlxp-Cb24VZnb.js → flowDiagram-I6XJVG4X-B23Smlxp-ClHvdCdJ.js} +842 -849
- package/dist/{ganttDiagram-6RSMTGT7-C-i89z_P-DEdTFlTH.js → ganttDiagram-6RSMTGT7-C-i89z_P-t5UAyRM5.js} +46 -46
- package/dist/gitGraphDiagram-PVQCEYII-DpVfXnUD-Cg3smOdz.js +734 -0
- package/dist/{graphlib-D2YdGpuK-CM8PX5pf.js → graphlib-D2YdGpuK-CnQPmzkS.js} +17 -17
- package/dist/{index-Dpyqhws4.js → index-DfVKdDwj.js} +16258 -16515
- package/dist/{infoDiagram-5YYISTIA-CDUwzFql-BsbTK2Me.js → infoDiagram-5YYISTIA-CDUwzFql-Bmthmcp4.js} +2 -2
- package/dist/{ishikawaDiagram-YF4QCWOH-MfYdx0rK-DsWP0O6d.js → ishikawaDiagram-YF4QCWOH-MfYdx0rK-cbltssua.js} +137 -138
- package/dist/{journeyDiagram-JHISSGLW-C_udOPtJ-BkIf9B4Q.js → journeyDiagram-JHISSGLW-C_udOPtJ-BjAvgSAR.js} +13 -13
- package/dist/{kanban-definition-UN3LZRKU-C1Su-UOY-6sw-wDwK.js → kanban-definition-UN3LZRKU-C1Su-UOY-DZ93dsWZ.js} +334 -336
- package/dist/{katex-D7tFlpqA-B7yKriH4.js → katex-D7tFlpqA-BOSQxXe1.js} +254 -256
- package/dist/{linear-1MXhYum8-CfR5ywK4.js → linear-1MXhYum8-9C1jno9G.js} +5 -5
- package/dist/{mindmap-definition-RKZ34NQL-MuSV765K-Cv2rDIFS.js → mindmap-definition-RKZ34NQL-MuSV765K-Kub1iXFv.js} +94 -97
- package/dist/{ordinal-D9ksOc8y-CrGveXkB.js → ordinal-D9ksOc8y-2hZwLyEk.js} +1 -1
- package/dist/{pieDiagram-4H26LBE5-TgFp7J6_-C8m2xJbj.js → pieDiagram-4H26LBE5-TgFp7J6_-i6NxP3Xz.js} +43 -44
- package/dist/{quadrantDiagram-W4KKPZXB-DKPne3o_-D0Tfl8NQ.js → quadrantDiagram-W4KKPZXB-DKPne3o_-DXLHqRuR.js} +351 -353
- package/dist/{requirementDiagram-4Y6WPE33-vh8uUAp_-C5zLx-_o.js → requirementDiagram-4Y6WPE33-vh8uUAp_-CHtsISxP.js} +384 -386
- package/dist/{sankeyDiagram-5OEKKPKP-Cgs6W_El-DBrv4QL_.js → sankeyDiagram-5OEKKPKP-Cgs6W_El-D7GZyd8n.js} +178 -178
- package/dist/{sequenceDiagram-3UESZ5HK-C5F57Dkt-D6DqZiJP.js → sequenceDiagram-3UESZ5HK-C5F57Dkt-BW1Hb7UW.js} +643 -653
- package/dist/{stateDiagram-AJRCARHV-09dUKG6Y-9QhAIhCk.js → stateDiagram-AJRCARHV-09dUKG6Y-Dm2a1vNu.js} +5 -5
- package/dist/stateDiagram-v2-BHNVJYJU-CWqmRt12-DbWzZ-j-.js +16 -0
- package/dist/style.css +1 -1
- package/dist/timeline-definition-PNZ67QCA-CCndyx0V-B5CT96H-.js +1095 -0
- package/dist/{vennDiagram-CIIHVFJN-DQfKxM3L-086u82L3.js → vennDiagram-CIIHVFJN-DQfKxM3L-qUaKEl7l.js} +596 -603
- package/dist/{wardley-L42UT6IY-BjAkE_cs-li1xYed9.js → wardley-L42UT6IY-BjAkE_cs-C-giFqos.js} +5760 -5809
- package/dist/wardleyDiagram-YWT4CUSO-Bf9L2NsL-DXPF2Ee9.js +639 -0
- package/dist/{xychartDiagram-2RQKCTM6-ChNH3q1U--vbcTXH5.js → xychartDiagram-2RQKCTM6-ChNH3q1U-a59DsJDA.js} +10 -10
- package/package.json +7 -7
- package/dist/blockDiagram-GPEHLZMM-9Cp9Hbl7-CSQRWfog.js +0 -3278
- package/dist/chunk-4BX2VUAB-C_NnimAy-B-8x_g6K.js +0 -9
- package/dist/classDiagram-4FO5ZUOK-Du5qFrfN-DLmqgbj1.js +0 -17
- package/dist/classDiagram-v2-Q7XG4LA2-DM6zutfc-DLmqgbj1.js +0 -17
- package/dist/dagre-BM42HDAG-qMWMsyLb-BzK2-5zM.js +0 -291
- package/dist/gitGraphDiagram-PVQCEYII-DpVfXnUD-BtfdBLxW.js +0 -747
- package/dist/stateDiagram-v2-BHNVJYJU-CWqmRt12-Br5eF-5b.js +0 -16
- package/dist/timeline-definition-PNZ67QCA-CCndyx0V-CkhwKYjQ.js +0 -1106
- package/dist/wardleyDiagram-YWT4CUSO-Bf9L2NsL-CCMCDU5F.js +0 -647
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
import { p as k, g as j, q as nt, u as st, M as V } from "./index-
|
|
2
|
-
import { K as $ } from "./cytoscape.esm-BDIiOYYO-
|
|
3
|
-
var z = /* @__PURE__ */ V((C, P) => {
|
|
1
|
+
import { p as k, g as j, q as nt, u as st, M as V } from "./index-DfVKdDwj.js";
|
|
2
|
+
import { K as $ } from "./cytoscape.esm-BDIiOYYO-C1jMBhD8.js";
|
|
3
|
+
var z = /* @__PURE__ */ V(((C, P) => {
|
|
4
4
|
(function(L, m) {
|
|
5
5
|
typeof C == "object" && typeof P == "object" ? P.exports = m() : typeof define == "function" && define.amd ? define([], m) : typeof C == "object" ? C.layoutBase = m() : L.layoutBase = m();
|
|
6
6
|
})(C, function() {
|
|
7
|
-
return function(L) {
|
|
7
|
+
return (function(L) {
|
|
8
8
|
var m = {};
|
|
9
9
|
function A(n) {
|
|
10
10
|
if (m[n]) return m[n].exports;
|
|
11
|
-
var
|
|
11
|
+
var e = m[n] = {
|
|
12
12
|
i: n,
|
|
13
13
|
l: !1,
|
|
14
14
|
exports: {}
|
|
15
15
|
};
|
|
16
|
-
return L[n].call(
|
|
16
|
+
return L[n].call(e.exports, e, e.exports, A), e.l = !0, e.exports;
|
|
17
17
|
}
|
|
18
18
|
return A.m = L, A.c = m, A.i = function(n) {
|
|
19
19
|
return n;
|
|
20
|
-
}, A.d = function(n,
|
|
21
|
-
A.o(n,
|
|
20
|
+
}, A.d = function(n, e, t) {
|
|
21
|
+
A.o(n, e) || Object.defineProperty(n, e, {
|
|
22
22
|
configurable: !1,
|
|
23
23
|
enumerable: !0,
|
|
24
24
|
get: t
|
|
25
25
|
});
|
|
26
26
|
}, A.n = function(n) {
|
|
27
|
-
var
|
|
27
|
+
var e = n && n.__esModule ? function() {
|
|
28
28
|
return n.default;
|
|
29
29
|
} : function() {
|
|
30
30
|
return n;
|
|
31
31
|
};
|
|
32
|
-
return A.d(
|
|
33
|
-
}, A.o = function(n,
|
|
34
|
-
return Object.prototype.hasOwnProperty.call(n,
|
|
32
|
+
return A.d(e, "a", e), e;
|
|
33
|
+
}, A.o = function(n, e) {
|
|
34
|
+
return Object.prototype.hasOwnProperty.call(n, e);
|
|
35
35
|
}, A.p = "", A(A.s = 26);
|
|
36
|
-
}([
|
|
37
|
-
function(L, m, A) {
|
|
36
|
+
})([
|
|
37
|
+
(function(L, m, A) {
|
|
38
38
|
function n() {
|
|
39
39
|
}
|
|
40
40
|
n.QUALITY = 1, n.DEFAULT_CREATE_BENDS_AS_NEEDED = !1, n.DEFAULT_INCREMENTAL = !1, n.DEFAULT_ANIMATION_ON_LAYOUT = !0, n.DEFAULT_ANIMATION_DURING_LAYOUT = !1, n.DEFAULT_ANIMATION_PERIOD = 50, n.DEFAULT_UNIFORM_LEAF_NODE_SIZES = !1, n.DEFAULT_GRAPH_MARGIN = 15, n.NODE_DIMENSIONS_INCLUDE_LABELS = !1, n.SIMPLE_NODE_SIZE = 40, n.SIMPLE_NODE_HALF_SIZE = n.SIMPLE_NODE_SIZE / 2, n.EMPTY_COMPOUND_NODE_SIZE = 40, n.MIN_EDGE_LENGTH = 1, n.WORLD_BOUNDARY = 1e6, n.INITIAL_WORLD_BOUNDARY = n.WORLD_BOUNDARY / 1e3, n.WORLD_CENTER_X = 1200, n.WORLD_CENTER_Y = 900, L.exports = n;
|
|
41
|
-
},
|
|
42
|
-
function(L, m, A) {
|
|
43
|
-
var n = A(2),
|
|
44
|
-
function
|
|
41
|
+
}),
|
|
42
|
+
(function(L, m, A) {
|
|
43
|
+
var n = A(2), e = A(8), t = A(9);
|
|
44
|
+
function i(h, o, N) {
|
|
45
45
|
n.call(this, N), this.isOverlapingSourceAndTarget = !1, this.vGraphObject = N, this.bendpoints = [], this.source = h, this.target = o;
|
|
46
46
|
}
|
|
47
|
-
for (var r in
|
|
48
|
-
|
|
47
|
+
for (var r in i.prototype = Object.create(n.prototype), n) i[r] = n[r];
|
|
48
|
+
i.prototype.getSource = function() {
|
|
49
49
|
return this.source;
|
|
50
|
-
},
|
|
50
|
+
}, i.prototype.getTarget = function() {
|
|
51
51
|
return this.target;
|
|
52
|
-
},
|
|
52
|
+
}, i.prototype.isInterGraph = function() {
|
|
53
53
|
return this.isInterGraph;
|
|
54
|
-
},
|
|
54
|
+
}, i.prototype.getLength = function() {
|
|
55
55
|
return this.length;
|
|
56
|
-
},
|
|
56
|
+
}, i.prototype.isOverlapingSourceAndTarget = function() {
|
|
57
57
|
return this.isOverlapingSourceAndTarget;
|
|
58
|
-
},
|
|
58
|
+
}, i.prototype.getBendpoints = function() {
|
|
59
59
|
return this.bendpoints;
|
|
60
|
-
},
|
|
60
|
+
}, i.prototype.getLca = function() {
|
|
61
61
|
return this.lca;
|
|
62
|
-
},
|
|
62
|
+
}, i.prototype.getSourceInLca = function() {
|
|
63
63
|
return this.sourceInLca;
|
|
64
|
-
},
|
|
64
|
+
}, i.prototype.getTargetInLca = function() {
|
|
65
65
|
return this.targetInLca;
|
|
66
|
-
},
|
|
66
|
+
}, i.prototype.getOtherEnd = function(h) {
|
|
67
67
|
if (this.source === h) return this.target;
|
|
68
68
|
if (this.target === h) return this.source;
|
|
69
69
|
throw "Node is not incident with this edge";
|
|
70
|
-
},
|
|
70
|
+
}, i.prototype.getOtherEndInGraph = function(h, o) {
|
|
71
71
|
for (var N = this.getOtherEnd(h), s = o.getGraphManager().getRoot(); ; ) {
|
|
72
72
|
if (N.getOwner() == o) return N;
|
|
73
73
|
if (N.getOwner() == s) break;
|
|
74
74
|
N = N.getOwner().getParent();
|
|
75
75
|
}
|
|
76
76
|
return null;
|
|
77
|
-
},
|
|
77
|
+
}, i.prototype.updateLength = function() {
|
|
78
78
|
var h = [
|
|
79
79
|
,
|
|
80
80
|
,
|
|
81
81
|
,
|
|
82
82
|
,
|
|
83
83
|
];
|
|
84
|
-
this.isOverlapingSourceAndTarget =
|
|
85
|
-
},
|
|
84
|
+
this.isOverlapingSourceAndTarget = e.getIntersection(this.target.getRect(), this.source.getRect(), h), this.isOverlapingSourceAndTarget || (this.lengthX = h[0] - h[2], this.lengthY = h[1] - h[3], Math.abs(this.lengthX) < 1 && (this.lengthX = t.sign(this.lengthX)), Math.abs(this.lengthY) < 1 && (this.lengthY = t.sign(this.lengthY)), this.length = Math.sqrt(this.lengthX * this.lengthX + this.lengthY * this.lengthY));
|
|
85
|
+
}, i.prototype.updateLengthSimple = function() {
|
|
86
86
|
this.lengthX = this.target.getCenterX() - this.source.getCenterX(), this.lengthY = this.target.getCenterY() - this.source.getCenterY(), Math.abs(this.lengthX) < 1 && (this.lengthX = t.sign(this.lengthX)), Math.abs(this.lengthY) < 1 && (this.lengthY = t.sign(this.lengthY)), this.length = Math.sqrt(this.lengthX * this.lengthX + this.lengthY * this.lengthY);
|
|
87
|
-
}, L.exports =
|
|
88
|
-
},
|
|
89
|
-
function(L, m, A) {
|
|
90
|
-
function n(
|
|
91
|
-
this.vGraphObject =
|
|
87
|
+
}, L.exports = i;
|
|
88
|
+
}),
|
|
89
|
+
(function(L, m, A) {
|
|
90
|
+
function n(e) {
|
|
91
|
+
this.vGraphObject = e;
|
|
92
92
|
}
|
|
93
93
|
L.exports = n;
|
|
94
|
-
},
|
|
95
|
-
function(L, m, A) {
|
|
96
|
-
var n = A(2),
|
|
94
|
+
}),
|
|
95
|
+
(function(L, m, A) {
|
|
96
|
+
var n = A(2), e = A(10), t = A(13), i = A(0), r = A(16), h = A(4);
|
|
97
97
|
function o(s, g, u, p) {
|
|
98
|
-
u == null && p == null && (p = g), n.call(this, p), s.graphManager != null && (s = s.graphManager), this.estimatedSize =
|
|
98
|
+
u == null && p == null && (p = g), n.call(this, p), s.graphManager != null && (s = s.graphManager), this.estimatedSize = e.MIN_VALUE, this.inclusionTreeDepth = e.MAX_VALUE, this.vGraphObject = p, this.edges = [], this.graphManager = s, u != null && g != null ? this.rect = new t(g.x, g.y, u.width, u.height) : this.rect = new t();
|
|
99
99
|
}
|
|
100
100
|
for (var N in o.prototype = Object.create(n.prototype), n) o[N] = n[N];
|
|
101
101
|
o.prototype.getEdges = function() {
|
|
@@ -169,32 +169,32 @@ var z = /* @__PURE__ */ V((C, P) => {
|
|
|
169
169
|
else for (var u = this.child.getNodes(), p = 0; p < u.length; p++) g = u[p], s += g.getNoOfChildren();
|
|
170
170
|
return s == 0 && (s = 1), s;
|
|
171
171
|
}, o.prototype.getEstimatedSize = function() {
|
|
172
|
-
if (this.estimatedSize ==
|
|
172
|
+
if (this.estimatedSize == e.MIN_VALUE) throw "assert failed";
|
|
173
173
|
return this.estimatedSize;
|
|
174
174
|
}, o.prototype.calcEstimatedSize = function() {
|
|
175
175
|
return this.child == null ? this.estimatedSize = (this.rect.width + this.rect.height) / 2 : (this.estimatedSize = this.child.calcEstimatedSize(), this.rect.width = this.estimatedSize, this.rect.height = this.estimatedSize, this.estimatedSize);
|
|
176
176
|
}, o.prototype.scatter = function() {
|
|
177
|
-
var s, g, u = -
|
|
178
|
-
s =
|
|
179
|
-
var y = -
|
|
180
|
-
g =
|
|
177
|
+
var s, g, u = -i.INITIAL_WORLD_BOUNDARY, p = i.INITIAL_WORLD_BOUNDARY;
|
|
178
|
+
s = i.WORLD_CENTER_X + r.nextDouble() * (p - u) + u;
|
|
179
|
+
var y = -i.INITIAL_WORLD_BOUNDARY, c = i.INITIAL_WORLD_BOUNDARY;
|
|
180
|
+
g = i.WORLD_CENTER_Y + r.nextDouble() * (c - y) + y, this.rect.x = s, this.rect.y = g;
|
|
181
181
|
}, o.prototype.updateBounds = function() {
|
|
182
182
|
if (this.getChild() == null) throw "assert failed";
|
|
183
183
|
if (this.getChild().getNodes().length != 0) {
|
|
184
184
|
var s = this.getChild();
|
|
185
|
-
if (s.updateBounds(!0), this.rect.x = s.getLeft(), this.rect.y = s.getTop(), this.setWidth(s.getRight() - s.getLeft()), this.setHeight(s.getBottom() - s.getTop()),
|
|
185
|
+
if (s.updateBounds(!0), this.rect.x = s.getLeft(), this.rect.y = s.getTop(), this.setWidth(s.getRight() - s.getLeft()), this.setHeight(s.getBottom() - s.getTop()), i.NODE_DIMENSIONS_INCLUDE_LABELS) {
|
|
186
186
|
var g = s.getRight() - s.getLeft(), u = s.getBottom() - s.getTop();
|
|
187
187
|
this.labelWidth > g && (this.rect.x -= (this.labelWidth - g) / 2, this.setWidth(this.labelWidth)), this.labelHeight > u && (this.labelPos == "center" ? this.rect.y -= (this.labelHeight - u) / 2 : this.labelPos == "top" && (this.rect.y -= this.labelHeight - u), this.setHeight(this.labelHeight));
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
}, o.prototype.getInclusionTreeDepth = function() {
|
|
191
|
-
if (this.inclusionTreeDepth ==
|
|
191
|
+
if (this.inclusionTreeDepth == e.MAX_VALUE) throw "assert failed";
|
|
192
192
|
return this.inclusionTreeDepth;
|
|
193
193
|
}, o.prototype.transform = function(s) {
|
|
194
194
|
var g = this.rect.x;
|
|
195
|
-
g >
|
|
195
|
+
g > i.WORLD_BOUNDARY ? g = i.WORLD_BOUNDARY : g < -i.WORLD_BOUNDARY && (g = -i.WORLD_BOUNDARY);
|
|
196
196
|
var u = this.rect.y;
|
|
197
|
-
u >
|
|
197
|
+
u > i.WORLD_BOUNDARY ? u = i.WORLD_BOUNDARY : u < -i.WORLD_BOUNDARY && (u = -i.WORLD_BOUNDARY);
|
|
198
198
|
var p = new h(g, u), y = s.inverseTransformPoint(p);
|
|
199
199
|
this.setLocation(y.x, y.y);
|
|
200
200
|
}, o.prototype.getLeft = function() {
|
|
@@ -208,31 +208,31 @@ var z = /* @__PURE__ */ V((C, P) => {
|
|
|
208
208
|
}, o.prototype.getParent = function() {
|
|
209
209
|
return this.owner == null ? null : this.owner.getParent();
|
|
210
210
|
}, L.exports = o;
|
|
211
|
-
},
|
|
212
|
-
function(L, m, A) {
|
|
213
|
-
function n(
|
|
214
|
-
|
|
211
|
+
}),
|
|
212
|
+
(function(L, m, A) {
|
|
213
|
+
function n(e, t) {
|
|
214
|
+
e == null && t == null ? (this.x = 0, this.y = 0) : (this.x = e, this.y = t);
|
|
215
215
|
}
|
|
216
216
|
n.prototype.getX = function() {
|
|
217
217
|
return this.x;
|
|
218
218
|
}, n.prototype.getY = function() {
|
|
219
219
|
return this.y;
|
|
220
|
-
}, n.prototype.setX = function(
|
|
221
|
-
this.x =
|
|
222
|
-
}, n.prototype.setY = function(
|
|
223
|
-
this.y =
|
|
224
|
-
}, n.prototype.getDifference = function(
|
|
225
|
-
return new DimensionD(this.x -
|
|
220
|
+
}, n.prototype.setX = function(e) {
|
|
221
|
+
this.x = e;
|
|
222
|
+
}, n.prototype.setY = function(e) {
|
|
223
|
+
this.y = e;
|
|
224
|
+
}, n.prototype.getDifference = function(e) {
|
|
225
|
+
return new DimensionD(this.x - e.x, this.y - e.y);
|
|
226
226
|
}, n.prototype.getCopy = function() {
|
|
227
227
|
return new n(this.x, this.y);
|
|
228
|
-
}, n.prototype.translate = function(
|
|
229
|
-
return this.x +=
|
|
228
|
+
}, n.prototype.translate = function(e) {
|
|
229
|
+
return this.x += e.width, this.y += e.height, this;
|
|
230
230
|
}, L.exports = n;
|
|
231
|
-
},
|
|
232
|
-
function(L, m, A) {
|
|
233
|
-
var n = A(2),
|
|
231
|
+
}),
|
|
232
|
+
(function(L, m, A) {
|
|
233
|
+
var n = A(2), e = A(10), t = A(0), i = A(6), r = A(3), h = A(1), o = A(13), N = A(12), s = A(11);
|
|
234
234
|
function g(p, y, c) {
|
|
235
|
-
n.call(this, c), this.estimatedSize =
|
|
235
|
+
n.call(this, c), this.estimatedSize = e.MIN_VALUE, this.margin = t.DEFAULT_GRAPH_MARGIN, this.edges = [], this.nodes = [], this.isConnected = !1, this.parent = p, y != null && y instanceof i ? this.graphManager = y : y != null && y instanceof Layout && (this.graphManager = y.graphManager);
|
|
236
236
|
}
|
|
237
237
|
for (var u in g.prototype = Object.create(n.prototype), n) g[u] = n[u];
|
|
238
238
|
g.prototype.getNodes = function() {
|
|
@@ -288,20 +288,20 @@ var z = /* @__PURE__ */ V((C, P) => {
|
|
|
288
288
|
f.source.owner.getEdges().splice(O, 1);
|
|
289
289
|
}
|
|
290
290
|
}, g.prototype.updateLeftTop = function() {
|
|
291
|
-
for (var p =
|
|
291
|
+
for (var p = e.MAX_VALUE, y = e.MAX_VALUE, c, f, T, E = this.getNodes(), O = E.length, a = 0; a < O; a++) {
|
|
292
292
|
var d = E[a];
|
|
293
293
|
c = d.getTop(), f = d.getLeft(), p > c && (p = c), y > f && (y = f);
|
|
294
294
|
}
|
|
295
|
-
return p ==
|
|
295
|
+
return p == e.MAX_VALUE ? null : (T = E[0].getParent().paddingLeft == null ? this.margin : E[0].getParent().paddingLeft, this.left = y - T, this.top = p - T, new N(this.left, this.top));
|
|
296
296
|
}, g.prototype.updateBounds = function(p) {
|
|
297
|
-
for (var y =
|
|
297
|
+
for (var y = e.MAX_VALUE, c = -e.MAX_VALUE, f = e.MAX_VALUE, T = -e.MAX_VALUE, E, O, a, d, l, v = this.nodes, _ = v.length, D = 0; D < _; D++) {
|
|
298
298
|
var I = v[D];
|
|
299
299
|
p && I.child != null && I.updateBounds(), E = I.getLeft(), O = I.getRight(), a = I.getTop(), d = I.getBottom(), y > E && (y = E), c < O && (c = O), f > a && (f = a), T < d && (T = d);
|
|
300
300
|
}
|
|
301
301
|
var w = new o(y, f, c - y, T - f);
|
|
302
|
-
y ==
|
|
302
|
+
y == e.MAX_VALUE && (this.left = this.parent.getLeft(), this.right = this.parent.getRight(), this.top = this.parent.getTop(), this.bottom = this.parent.getBottom()), l = v[0].getParent().paddingLeft == null ? this.margin : v[0].getParent().paddingLeft, this.left = w.x - l, this.right = w.x + w.width + l, this.top = w.y - l, this.bottom = w.y + w.height + l;
|
|
303
303
|
}, g.calculateBounds = function(p) {
|
|
304
|
-
for (var y =
|
|
304
|
+
for (var y = e.MAX_VALUE, c = -e.MAX_VALUE, f = e.MAX_VALUE, T = -e.MAX_VALUE, E, O, a, d, l = p.length, v = 0; v < l; v++) {
|
|
305
305
|
var _ = p[v];
|
|
306
306
|
E = _.getLeft(), O = _.getRight(), a = _.getTop(), d = _.getBottom(), y > E && (y = E), c < O && (c = O), f > a && (f = a), T < d && (T = d);
|
|
307
307
|
}
|
|
@@ -309,7 +309,7 @@ var z = /* @__PURE__ */ V((C, P) => {
|
|
|
309
309
|
}, g.prototype.getInclusionTreeDepth = function() {
|
|
310
310
|
return this == this.graphManager.getRoot() ? 1 : this.parent.getInclusionTreeDepth();
|
|
311
311
|
}, g.prototype.getEstimatedSize = function() {
|
|
312
|
-
if (this.estimatedSize ==
|
|
312
|
+
if (this.estimatedSize == e.MIN_VALUE) throw "assert failed";
|
|
313
313
|
return this.estimatedSize;
|
|
314
314
|
}, g.prototype.calcEstimatedSize = function() {
|
|
315
315
|
for (var p = 0, y = this.nodes, c = y.length, f = 0; f < c; f++) {
|
|
@@ -339,25 +339,25 @@ var z = /* @__PURE__ */ V((C, P) => {
|
|
|
339
339
|
}), d == this.nodes.length && (this.isConnected = !0);
|
|
340
340
|
}
|
|
341
341
|
}, L.exports = g;
|
|
342
|
-
},
|
|
343
|
-
function(L, m, A) {
|
|
344
|
-
var n,
|
|
345
|
-
function t(
|
|
346
|
-
n = A(5), this.layout =
|
|
342
|
+
}),
|
|
343
|
+
(function(L, m, A) {
|
|
344
|
+
var n, e = A(1);
|
|
345
|
+
function t(i) {
|
|
346
|
+
n = A(5), this.layout = i, this.graphs = [], this.edges = [];
|
|
347
347
|
}
|
|
348
348
|
t.prototype.addRoot = function() {
|
|
349
|
-
var
|
|
349
|
+
var i = this.layout.newGraph(), r = this.layout.newNode(null), h = this.add(i, r);
|
|
350
350
|
return this.setRootGraph(h), this.rootGraph;
|
|
351
|
-
}, t.prototype.add = function(
|
|
351
|
+
}, t.prototype.add = function(i, r, h, o, N) {
|
|
352
352
|
if (h == null && o == null && N == null) {
|
|
353
|
-
if (
|
|
353
|
+
if (i == null) throw "Graph is null!";
|
|
354
354
|
if (r == null) throw "Parent node is null!";
|
|
355
|
-
if (this.graphs.indexOf(
|
|
356
|
-
if (this.graphs.push(
|
|
355
|
+
if (this.graphs.indexOf(i) > -1) throw "Graph already in this graph mgr!";
|
|
356
|
+
if (this.graphs.push(i), i.parent != null) throw "Already has a parent!";
|
|
357
357
|
if (r.child != null) throw "Already has a child!";
|
|
358
|
-
return
|
|
358
|
+
return i.parent = r, r.child = i, i;
|
|
359
359
|
} else {
|
|
360
|
-
N = h, o = r, h =
|
|
360
|
+
N = h, o = r, h = i;
|
|
361
361
|
var s = o.getOwner(), g = N.getOwner();
|
|
362
362
|
if (!(s != null && s.getGraphManager() == this)) throw "Source not in this graph mgr!";
|
|
363
363
|
if (!(g != null && g.getGraphManager() == this)) throw "Target not in this graph mgr!";
|
|
@@ -367,9 +367,9 @@ var z = /* @__PURE__ */ V((C, P) => {
|
|
|
367
367
|
if (!(h.source.edges.indexOf(h) == -1 && h.target.edges.indexOf(h) == -1)) throw "Edge already in source and/or target incidency list!";
|
|
368
368
|
return h.source.edges.push(h), h.target.edges.push(h), h;
|
|
369
369
|
}
|
|
370
|
-
}, t.prototype.remove = function(
|
|
371
|
-
if (
|
|
372
|
-
var r =
|
|
370
|
+
}, t.prototype.remove = function(i) {
|
|
371
|
+
if (i instanceof n) {
|
|
372
|
+
var r = i;
|
|
373
373
|
if (r.getGraphManager() != this) throw "Graph not in this graph mgr";
|
|
374
374
|
if (!(r == this.rootGraph || r.parent != null && r.parent.graphManager == this)) throw "Invalid parent node!";
|
|
375
375
|
var h = [];
|
|
@@ -383,8 +383,8 @@ var z = /* @__PURE__ */ V((C, P) => {
|
|
|
383
383
|
r == this.rootGraph && this.setRootGraph(null);
|
|
384
384
|
var p = this.graphs.indexOf(r);
|
|
385
385
|
this.graphs.splice(p, 1), r.parent = null;
|
|
386
|
-
} else if (
|
|
387
|
-
if (o =
|
|
386
|
+
} else if (i instanceof e) {
|
|
387
|
+
if (o = i, o == null) throw "Edge is null!";
|
|
388
388
|
if (!o.isInterGraph) throw "Not an inter-graph edge!";
|
|
389
389
|
if (!(o.source != null && o.target != null)) throw "Source and/or target is null!";
|
|
390
390
|
if (!(o.source.edges.indexOf(o) != -1 && o.target.edges.indexOf(o) != -1)) throw "Source and/or target doesn't know this edge!";
|
|
@@ -400,8 +400,8 @@ var z = /* @__PURE__ */ V((C, P) => {
|
|
|
400
400
|
return this.graphs;
|
|
401
401
|
}, t.prototype.getAllNodes = function() {
|
|
402
402
|
if (this.allNodes == null) {
|
|
403
|
-
for (var
|
|
404
|
-
this.allNodes =
|
|
403
|
+
for (var i = [], r = this.getGraphs(), h = r.length, o = 0; o < h; o++) i = i.concat(r[o].getNodes());
|
|
404
|
+
this.allNodes = i;
|
|
405
405
|
}
|
|
406
406
|
return this.allNodes;
|
|
407
407
|
}, t.prototype.resetAllNodes = function() {
|
|
@@ -412,28 +412,28 @@ var z = /* @__PURE__ */ V((C, P) => {
|
|
|
412
412
|
this.allNodesToApplyGravitation = null;
|
|
413
413
|
}, t.prototype.getAllEdges = function() {
|
|
414
414
|
if (this.allEdges == null) {
|
|
415
|
-
var
|
|
415
|
+
var i = [], r = this.getGraphs();
|
|
416
416
|
r.length;
|
|
417
|
-
for (var h = 0; h < r.length; h++)
|
|
418
|
-
|
|
417
|
+
for (var h = 0; h < r.length; h++) i = i.concat(r[h].getEdges());
|
|
418
|
+
i = i.concat(this.edges), this.allEdges = i;
|
|
419
419
|
}
|
|
420
420
|
return this.allEdges;
|
|
421
421
|
}, t.prototype.getAllNodesToApplyGravitation = function() {
|
|
422
422
|
return this.allNodesToApplyGravitation;
|
|
423
|
-
}, t.prototype.setAllNodesToApplyGravitation = function(
|
|
423
|
+
}, t.prototype.setAllNodesToApplyGravitation = function(i) {
|
|
424
424
|
if (this.allNodesToApplyGravitation != null) throw "assert failed";
|
|
425
|
-
this.allNodesToApplyGravitation =
|
|
425
|
+
this.allNodesToApplyGravitation = i;
|
|
426
426
|
}, t.prototype.getRoot = function() {
|
|
427
427
|
return this.rootGraph;
|
|
428
|
-
}, t.prototype.setRootGraph = function(
|
|
429
|
-
if (
|
|
430
|
-
this.rootGraph =
|
|
428
|
+
}, t.prototype.setRootGraph = function(i) {
|
|
429
|
+
if (i.getGraphManager() != this) throw "Root not in this graph mgr!";
|
|
430
|
+
this.rootGraph = i, i.parent ??= this.layout.newNode("Root node");
|
|
431
431
|
}, t.prototype.getLayout = function() {
|
|
432
432
|
return this.layout;
|
|
433
|
-
}, t.prototype.isOneAncestorOfOther = function(
|
|
434
|
-
if (!(
|
|
435
|
-
if (
|
|
436
|
-
var h =
|
|
433
|
+
}, t.prototype.isOneAncestorOfOther = function(i, r) {
|
|
434
|
+
if (!(i != null && r != null)) throw "assert failed";
|
|
435
|
+
if (i == r) return !0;
|
|
436
|
+
var h = i.getOwner(), o;
|
|
437
437
|
do {
|
|
438
438
|
if (o = h.getParent(), o == null) break;
|
|
439
439
|
if (o == r) return !0;
|
|
@@ -442,34 +442,34 @@ var z = /* @__PURE__ */ V((C, P) => {
|
|
|
442
442
|
h = r.getOwner();
|
|
443
443
|
do {
|
|
444
444
|
if (o = h.getParent(), o == null) break;
|
|
445
|
-
if (o ==
|
|
445
|
+
if (o == i) return !0;
|
|
446
446
|
if (h = o.getOwner(), h == null) break;
|
|
447
447
|
} while (!0);
|
|
448
448
|
return !1;
|
|
449
449
|
}, t.prototype.calcLowestCommonAncestors = function() {
|
|
450
|
-
for (var
|
|
451
|
-
if (
|
|
452
|
-
|
|
450
|
+
for (var i, r, h, o, N, s = this.getAllEdges(), g = s.length, u = 0; u < g; u++) {
|
|
451
|
+
if (i = s[u], r = i.source, h = i.target, i.lca = null, i.sourceInLca = r, i.targetInLca = h, r == h) {
|
|
452
|
+
i.lca = r.getOwner();
|
|
453
453
|
continue;
|
|
454
454
|
}
|
|
455
|
-
for (o = r.getOwner();
|
|
456
|
-
for (
|
|
455
|
+
for (o = r.getOwner(); i.lca == null; ) {
|
|
456
|
+
for (i.targetInLca = h, N = h.getOwner(); i.lca == null; ) {
|
|
457
457
|
if (N == o) {
|
|
458
|
-
|
|
458
|
+
i.lca = N;
|
|
459
459
|
break;
|
|
460
460
|
}
|
|
461
461
|
if (N == this.rootGraph) break;
|
|
462
|
-
if (
|
|
463
|
-
|
|
462
|
+
if (i.lca != null) throw "assert failed";
|
|
463
|
+
i.targetInLca = N.getParent(), N = i.targetInLca.getOwner();
|
|
464
464
|
}
|
|
465
465
|
if (o == this.rootGraph) break;
|
|
466
|
-
|
|
466
|
+
i.lca ?? (i.sourceInLca = o.getParent(), o = i.sourceInLca.getOwner());
|
|
467
467
|
}
|
|
468
|
-
if (
|
|
468
|
+
if (i.lca == null) throw "assert failed";
|
|
469
469
|
}
|
|
470
|
-
}, t.prototype.calcLowestCommonAncestor = function(
|
|
471
|
-
if (
|
|
472
|
-
var h =
|
|
470
|
+
}, t.prototype.calcLowestCommonAncestor = function(i, r) {
|
|
471
|
+
if (i == r) return i.getOwner();
|
|
472
|
+
var h = i.getOwner();
|
|
473
473
|
do {
|
|
474
474
|
if (h == null) break;
|
|
475
475
|
var o = r.getOwner();
|
|
@@ -481,39 +481,39 @@ var z = /* @__PURE__ */ V((C, P) => {
|
|
|
481
481
|
h = h.getParent().getOwner();
|
|
482
482
|
} while (!0);
|
|
483
483
|
return h;
|
|
484
|
-
}, t.prototype.calcInclusionTreeDepths = function(
|
|
485
|
-
|
|
486
|
-
for (var h, o =
|
|
484
|
+
}, t.prototype.calcInclusionTreeDepths = function(i, r) {
|
|
485
|
+
i == null && r == null && (i = this.rootGraph, r = 1);
|
|
486
|
+
for (var h, o = i.getNodes(), N = o.length, s = 0; s < N; s++) h = o[s], h.inclusionTreeDepth = r, h.child != null && this.calcInclusionTreeDepths(h.child, r + 1);
|
|
487
487
|
}, t.prototype.includesInvalidEdge = function() {
|
|
488
|
-
for (var
|
|
488
|
+
for (var i, r = this.edges.length, h = 0; h < r; h++) if (i = this.edges[h], this.isOneAncestorOfOther(i.source, i.target)) return !0;
|
|
489
489
|
return !1;
|
|
490
490
|
}, L.exports = t;
|
|
491
|
-
},
|
|
492
|
-
function(L, m, A) {
|
|
491
|
+
}),
|
|
492
|
+
(function(L, m, A) {
|
|
493
493
|
var n = A(0);
|
|
494
|
-
function
|
|
494
|
+
function e() {
|
|
495
495
|
}
|
|
496
|
-
for (var t in n)
|
|
497
|
-
|
|
498
|
-
},
|
|
499
|
-
function(L, m, A) {
|
|
496
|
+
for (var t in n) e[t] = n[t];
|
|
497
|
+
e.MAX_ITERATIONS = 2500, e.DEFAULT_EDGE_LENGTH = 50, e.DEFAULT_SPRING_STRENGTH = 0.45, e.DEFAULT_REPULSION_STRENGTH = 4500, e.DEFAULT_GRAVITY_STRENGTH = 0.4, e.DEFAULT_COMPOUND_GRAVITY_STRENGTH = 1, e.DEFAULT_GRAVITY_RANGE_FACTOR = 3.8, e.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = 1.5, e.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION = !0, e.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION = !0, e.DEFAULT_COOLING_FACTOR_INCREMENTAL = 0.3, e.COOLING_ADAPTATION_FACTOR = 0.33, e.ADAPTATION_LOWER_NODE_LIMIT = 1e3, e.ADAPTATION_UPPER_NODE_LIMIT = 5e3, e.MAX_NODE_DISPLACEMENT_INCREMENTAL = 100, e.MAX_NODE_DISPLACEMENT = e.MAX_NODE_DISPLACEMENT_INCREMENTAL * 3, e.MIN_REPULSION_DIST = e.DEFAULT_EDGE_LENGTH / 10, e.CONVERGENCE_CHECK_PERIOD = 100, e.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = 0.1, e.MIN_EDGE_LENGTH = 1, e.GRID_CALCULATION_CHECK_PERIOD = 10, L.exports = e;
|
|
498
|
+
}),
|
|
499
|
+
(function(L, m, A) {
|
|
500
500
|
var n = A(12);
|
|
501
|
-
function
|
|
501
|
+
function e() {
|
|
502
502
|
}
|
|
503
|
-
|
|
504
|
-
if (!t.intersects(
|
|
503
|
+
e.calcSeparationAmount = function(t, i, r, h) {
|
|
504
|
+
if (!t.intersects(i)) throw "assert failed";
|
|
505
505
|
var o = [, ,];
|
|
506
|
-
this.decideDirectionsForOverlappingNodes(t,
|
|
507
|
-
var N = Math.abs((
|
|
508
|
-
|
|
506
|
+
this.decideDirectionsForOverlappingNodes(t, i, o), r[0] = Math.min(t.getRight(), i.getRight()) - Math.max(t.x, i.x), r[1] = Math.min(t.getBottom(), i.getBottom()) - Math.max(t.y, i.y), t.getX() <= i.getX() && t.getRight() >= i.getRight() ? r[0] += Math.min(i.getX() - t.getX(), t.getRight() - i.getRight()) : i.getX() <= t.getX() && i.getRight() >= t.getRight() && (r[0] += Math.min(t.getX() - i.getX(), i.getRight() - t.getRight())), t.getY() <= i.getY() && t.getBottom() >= i.getBottom() ? r[1] += Math.min(i.getY() - t.getY(), t.getBottom() - i.getBottom()) : i.getY() <= t.getY() && i.getBottom() >= t.getBottom() && (r[1] += Math.min(t.getY() - i.getY(), i.getBottom() - t.getBottom()));
|
|
507
|
+
var N = Math.abs((i.getCenterY() - t.getCenterY()) / (i.getCenterX() - t.getCenterX()));
|
|
508
|
+
i.getCenterY() === t.getCenterY() && i.getCenterX() === t.getCenterX() && (N = 1);
|
|
509
509
|
var s = N * r[0], g = r[1] / N;
|
|
510
510
|
r[0] < g ? g = r[0] : s = r[1], r[0] = -1 * o[0] * (g / 2 + h), r[1] = -1 * o[1] * (s / 2 + h);
|
|
511
|
-
},
|
|
512
|
-
t.getCenterX() <
|
|
513
|
-
},
|
|
514
|
-
var h = t.getCenterX(), o = t.getCenterY(), N =
|
|
515
|
-
if (t.intersects(
|
|
516
|
-
var g = t.getX(), u = t.getY(), p = t.getRight(), y = t.getX(), c = t.getBottom(), f = t.getRight(), T = t.getWidthHalf(), E = t.getHeightHalf(), O =
|
|
511
|
+
}, e.decideDirectionsForOverlappingNodes = function(t, i, r) {
|
|
512
|
+
t.getCenterX() < i.getCenterX() ? r[0] = -1 : r[0] = 1, t.getCenterY() < i.getCenterY() ? r[1] = -1 : r[1] = 1;
|
|
513
|
+
}, e.getIntersection2 = function(t, i, r) {
|
|
514
|
+
var h = t.getCenterX(), o = t.getCenterY(), N = i.getCenterX(), s = i.getCenterY();
|
|
515
|
+
if (t.intersects(i)) return r[0] = h, r[1] = o, r[2] = N, r[3] = s, !0;
|
|
516
|
+
var g = t.getX(), u = t.getY(), p = t.getRight(), y = t.getX(), c = t.getBottom(), f = t.getRight(), T = t.getWidthHalf(), E = t.getHeightHalf(), O = i.getX(), a = i.getY(), d = i.getRight(), l = i.getX(), v = i.getBottom(), _ = i.getRight(), D = i.getWidthHalf(), I = i.getHeightHalf(), w = !1, R = !1;
|
|
517
517
|
if (h === N) {
|
|
518
518
|
if (o > s) return r[0] = h, r[1] = u, r[2] = N, r[3] = v, !1;
|
|
519
519
|
if (o < s) return r[0] = h, r[1] = c, r[2] = N, r[3] = a, !1;
|
|
@@ -521,7 +521,7 @@ var z = /* @__PURE__ */ V((C, P) => {
|
|
|
521
521
|
if (h > N) return r[0] = g, r[1] = o, r[2] = d, r[3] = s, !1;
|
|
522
522
|
if (h < N) return r[0] = p, r[1] = o, r[2] = O, r[3] = s, !1;
|
|
523
523
|
} else {
|
|
524
|
-
var G = t.height / t.width, x =
|
|
524
|
+
var G = t.height / t.width, x = i.height / i.width, M = (s - o) / (N - h), U = void 0, b = void 0, F = void 0, S = void 0, Y = void 0, X = void 0;
|
|
525
525
|
if (-G === M ? h > N ? (r[0] = y, r[1] = c, w = !0) : (r[0] = p, r[1] = u, w = !0) : G === M && (h > N ? (r[0] = g, r[1] = u, w = !0) : (r[0] = f, r[1] = c, w = !0)), -x === M ? N > h ? (r[2] = l, r[3] = v, R = !0) : (r[2] = d, r[3] = a, R = !0) : x === M && (N > h ? (r[2] = O, r[3] = a, R = !0) : (r[2] = _, r[3] = v, R = !0)), w && R) return !1;
|
|
526
526
|
if (h > N ? o > s ? (U = this.getCardinalDirection(G, M, 4), b = this.getCardinalDirection(x, M, 2)) : (U = this.getCardinalDirection(-G, M, 3), b = this.getCardinalDirection(-x, M, 1)) : o > s ? (U = this.getCardinalDirection(-G, M, 1), b = this.getCardinalDirection(-x, M, 3)) : (U = this.getCardinalDirection(G, M, 2), b = this.getCardinalDirection(x, M, 4)), !w) switch (U) {
|
|
527
527
|
case 1:
|
|
@@ -553,40 +553,40 @@ var z = /* @__PURE__ */ V((C, P) => {
|
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
return !1;
|
|
556
|
-
},
|
|
557
|
-
return t >
|
|
558
|
-
},
|
|
559
|
-
if (h == null) return this.getIntersection2(t,
|
|
560
|
-
var o = t.x, N = t.y, s =
|
|
556
|
+
}, e.getCardinalDirection = function(t, i, r) {
|
|
557
|
+
return t > i ? r : 1 + r % 4;
|
|
558
|
+
}, e.getIntersection = function(t, i, r, h) {
|
|
559
|
+
if (h == null) return this.getIntersection2(t, i, r);
|
|
560
|
+
var o = t.x, N = t.y, s = i.x, g = i.y, u = r.x, p = r.y, y = h.x, c = h.y, f = void 0, T = void 0, E = void 0, O = void 0, a = void 0, d = void 0, l = void 0, v = void 0, _ = void 0;
|
|
561
561
|
return E = g - N, a = o - s, l = s * N - o * g, O = c - p, d = u - y, v = y * p - u * c, _ = E * d - O * a, _ === 0 ? null : (f = (a * v - d * l) / _, T = (O * l - E * v) / _, new n(f, T));
|
|
562
|
-
},
|
|
562
|
+
}, e.angleOfVector = function(t, i, r, h) {
|
|
563
563
|
var o = void 0;
|
|
564
|
-
return t === r ? o = h <
|
|
565
|
-
},
|
|
566
|
-
var o = t.x, N = t.y, s =
|
|
564
|
+
return t === r ? o = h < i ? this.ONE_AND_HALF_PI : this.HALF_PI : (o = Math.atan((h - i) / (r - t)), r < t ? o += Math.PI : h < i && (o += this.TWO_PI)), o;
|
|
565
|
+
}, e.doIntersect = function(t, i, r, h) {
|
|
566
|
+
var o = t.x, N = t.y, s = i.x, g = i.y, u = r.x, p = r.y, y = h.x, c = h.y, f = (s - o) * (c - p) - (y - u) * (g - N);
|
|
567
567
|
if (f === 0) return !1;
|
|
568
568
|
var T = ((c - p) * (y - o) + (u - y) * (c - N)) / f, E = ((N - g) * (y - o) + (s - o) * (c - N)) / f;
|
|
569
569
|
return 0 < T && T < 1 && 0 < E && E < 1;
|
|
570
|
-
},
|
|
571
|
-
},
|
|
572
|
-
function(L, m, A) {
|
|
570
|
+
}, e.HALF_PI = 0.5 * Math.PI, e.ONE_AND_HALF_PI = 1.5 * Math.PI, e.TWO_PI = 2 * Math.PI, e.THREE_PI = 3 * Math.PI, L.exports = e;
|
|
571
|
+
}),
|
|
572
|
+
(function(L, m, A) {
|
|
573
573
|
function n() {
|
|
574
574
|
}
|
|
575
|
-
n.sign = function(
|
|
576
|
-
return
|
|
577
|
-
}, n.floor = function(
|
|
578
|
-
return
|
|
579
|
-
}, n.ceil = function(
|
|
580
|
-
return
|
|
575
|
+
n.sign = function(e) {
|
|
576
|
+
return e > 0 ? 1 : e < 0 ? -1 : 0;
|
|
577
|
+
}, n.floor = function(e) {
|
|
578
|
+
return e < 0 ? Math.ceil(e) : Math.floor(e);
|
|
579
|
+
}, n.ceil = function(e) {
|
|
580
|
+
return e < 0 ? Math.floor(e) : Math.ceil(e);
|
|
581
581
|
}, L.exports = n;
|
|
582
|
-
},
|
|
583
|
-
function(L, m, A) {
|
|
582
|
+
}),
|
|
583
|
+
(function(L, m, A) {
|
|
584
584
|
function n() {
|
|
585
585
|
}
|
|
586
586
|
n.MAX_VALUE = 2147483647, n.MIN_VALUE = -2147483648, L.exports = n;
|
|
587
|
-
},
|
|
588
|
-
function(L, m, A) {
|
|
589
|
-
var n = /* @__PURE__ */ function() {
|
|
587
|
+
}),
|
|
588
|
+
(function(L, m, A) {
|
|
589
|
+
var n = /* @__PURE__ */ (function() {
|
|
590
590
|
function h(o, N) {
|
|
591
591
|
for (var s = 0; s < N.length; s++) {
|
|
592
592
|
var g = N[s];
|
|
@@ -596,8 +596,8 @@ var z = /* @__PURE__ */ V((C, P) => {
|
|
|
596
596
|
return function(o, N, s) {
|
|
597
597
|
return N && h(o.prototype, N), s && h(o, s), o;
|
|
598
598
|
};
|
|
599
|
-
}();
|
|
600
|
-
function
|
|
599
|
+
})();
|
|
600
|
+
function e(h, o) {
|
|
601
601
|
if (!(h instanceof o)) throw TypeError("Cannot call a class as a function");
|
|
602
602
|
}
|
|
603
603
|
var t = function(h) {
|
|
@@ -606,16 +606,16 @@ var z = /* @__PURE__ */ V((C, P) => {
|
|
|
606
606
|
next: null,
|
|
607
607
|
prev: null
|
|
608
608
|
};
|
|
609
|
-
},
|
|
609
|
+
}, i = function(h, o, N, s) {
|
|
610
610
|
return h === null ? s.head = o : h.next = o, N === null ? s.tail = o : N.prev = o, o.prev = h, o.next = N, s.length++, o;
|
|
611
611
|
}, r = function(h, o) {
|
|
612
612
|
var N = h.prev, s = h.next;
|
|
613
613
|
return N === null ? o.head = s : N.next = s, s === null ? o.tail = N : s.prev = N, h.prev = h.next = null, o.length--, h;
|
|
614
614
|
};
|
|
615
|
-
L.exports = function() {
|
|
615
|
+
L.exports = (function() {
|
|
616
616
|
function h(o) {
|
|
617
617
|
var N = this;
|
|
618
|
-
|
|
618
|
+
e(this, h), this.length = 0, this.head = null, this.tail = null, o?.forEach(function(s) {
|
|
619
619
|
return N.push(s);
|
|
620
620
|
});
|
|
621
621
|
}
|
|
@@ -629,37 +629,37 @@ var z = /* @__PURE__ */ V((C, P) => {
|
|
|
629
629
|
{
|
|
630
630
|
key: "insertBefore",
|
|
631
631
|
value: function(o, N) {
|
|
632
|
-
return
|
|
632
|
+
return i(N.prev, t(o), N, this);
|
|
633
633
|
}
|
|
634
634
|
},
|
|
635
635
|
{
|
|
636
636
|
key: "insertAfter",
|
|
637
637
|
value: function(o, N) {
|
|
638
|
-
return
|
|
638
|
+
return i(N, t(o), N.next, this);
|
|
639
639
|
}
|
|
640
640
|
},
|
|
641
641
|
{
|
|
642
642
|
key: "insertNodeBefore",
|
|
643
643
|
value: function(o, N) {
|
|
644
|
-
return
|
|
644
|
+
return i(N.prev, o, N, this);
|
|
645
645
|
}
|
|
646
646
|
},
|
|
647
647
|
{
|
|
648
648
|
key: "insertNodeAfter",
|
|
649
649
|
value: function(o, N) {
|
|
650
|
-
return
|
|
650
|
+
return i(N, o, N.next, this);
|
|
651
651
|
}
|
|
652
652
|
},
|
|
653
653
|
{
|
|
654
654
|
key: "push",
|
|
655
655
|
value: function(o) {
|
|
656
|
-
return
|
|
656
|
+
return i(this.tail, t(o), null, this);
|
|
657
657
|
}
|
|
658
658
|
},
|
|
659
659
|
{
|
|
660
660
|
key: "unshift",
|
|
661
661
|
value: function(o) {
|
|
662
|
-
return
|
|
662
|
+
return i(null, t(o), this.head, this);
|
|
663
663
|
}
|
|
664
664
|
},
|
|
665
665
|
{
|
|
@@ -711,11 +711,11 @@ var z = /* @__PURE__ */ V((C, P) => {
|
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
713
|
]), h;
|
|
714
|
-
}();
|
|
715
|
-
},
|
|
716
|
-
function(L, m, A) {
|
|
717
|
-
function n(
|
|
718
|
-
this.x = null, this.y = null,
|
|
714
|
+
})();
|
|
715
|
+
}),
|
|
716
|
+
(function(L, m, A) {
|
|
717
|
+
function n(e, t, i) {
|
|
718
|
+
this.x = null, this.y = null, e == null && t == null && i == null ? (this.x = 0, this.y = 0) : typeof e == "number" && typeof t == "number" && i == null ? (this.x = e, this.y = t) : e.constructor.name == "Point" && t == null && i == null && (i = e, this.x = i.x, this.y = i.y);
|
|
719
719
|
}
|
|
720
720
|
n.prototype.getX = function() {
|
|
721
721
|
return this.x;
|
|
@@ -723,48 +723,48 @@ var z = /* @__PURE__ */ V((C, P) => {
|
|
|
723
723
|
return this.y;
|
|
724
724
|
}, n.prototype.getLocation = function() {
|
|
725
725
|
return new n(this.x, this.y);
|
|
726
|
-
}, n.prototype.setLocation = function(
|
|
727
|
-
|
|
728
|
-
}, n.prototype.move = function(
|
|
729
|
-
this.x =
|
|
730
|
-
}, n.prototype.translate = function(
|
|
731
|
-
this.x +=
|
|
732
|
-
}, n.prototype.equals = function(
|
|
733
|
-
if (
|
|
734
|
-
var t =
|
|
726
|
+
}, n.prototype.setLocation = function(e, t, i) {
|
|
727
|
+
e.constructor.name == "Point" && t == null && i == null ? (i = e, this.setLocation(i.x, i.y)) : typeof e == "number" && typeof t == "number" && i == null && (parseInt(e) == e && parseInt(t) == t ? this.move(e, t) : (this.x = Math.floor(e + 0.5), this.y = Math.floor(t + 0.5)));
|
|
728
|
+
}, n.prototype.move = function(e, t) {
|
|
729
|
+
this.x = e, this.y = t;
|
|
730
|
+
}, n.prototype.translate = function(e, t) {
|
|
731
|
+
this.x += e, this.y += t;
|
|
732
|
+
}, n.prototype.equals = function(e) {
|
|
733
|
+
if (e.constructor.name == "Point") {
|
|
734
|
+
var t = e;
|
|
735
735
|
return this.x == t.x && this.y == t.y;
|
|
736
736
|
}
|
|
737
|
-
return this ==
|
|
737
|
+
return this == e;
|
|
738
738
|
}, n.prototype.toString = function() {
|
|
739
739
|
return new n().constructor.name + "[x=" + this.x + ",y=" + this.y + "]";
|
|
740
740
|
}, L.exports = n;
|
|
741
|
-
},
|
|
742
|
-
function(L, m, A) {
|
|
743
|
-
function n(
|
|
744
|
-
this.x = 0, this.y = 0, this.width = 0, this.height = 0,
|
|
741
|
+
}),
|
|
742
|
+
(function(L, m, A) {
|
|
743
|
+
function n(e, t, i, r) {
|
|
744
|
+
this.x = 0, this.y = 0, this.width = 0, this.height = 0, e != null && t != null && i != null && r != null && (this.x = e, this.y = t, this.width = i, this.height = r);
|
|
745
745
|
}
|
|
746
746
|
n.prototype.getX = function() {
|
|
747
747
|
return this.x;
|
|
748
|
-
}, n.prototype.setX = function(
|
|
749
|
-
this.x =
|
|
748
|
+
}, n.prototype.setX = function(e) {
|
|
749
|
+
this.x = e;
|
|
750
750
|
}, n.prototype.getY = function() {
|
|
751
751
|
return this.y;
|
|
752
|
-
}, n.prototype.setY = function(
|
|
753
|
-
this.y =
|
|
752
|
+
}, n.prototype.setY = function(e) {
|
|
753
|
+
this.y = e;
|
|
754
754
|
}, n.prototype.getWidth = function() {
|
|
755
755
|
return this.width;
|
|
756
|
-
}, n.prototype.setWidth = function(
|
|
757
|
-
this.width =
|
|
756
|
+
}, n.prototype.setWidth = function(e) {
|
|
757
|
+
this.width = e;
|
|
758
758
|
}, n.prototype.getHeight = function() {
|
|
759
759
|
return this.height;
|
|
760
|
-
}, n.prototype.setHeight = function(
|
|
761
|
-
this.height =
|
|
760
|
+
}, n.prototype.setHeight = function(e) {
|
|
761
|
+
this.height = e;
|
|
762
762
|
}, n.prototype.getRight = function() {
|
|
763
763
|
return this.x + this.width;
|
|
764
764
|
}, n.prototype.getBottom = function() {
|
|
765
765
|
return this.y + this.height;
|
|
766
|
-
}, n.prototype.intersects = function(
|
|
767
|
-
return !(this.getRight() <
|
|
766
|
+
}, n.prototype.intersects = function(e) {
|
|
767
|
+
return !(this.getRight() < e.x || this.getBottom() < e.y || e.getRight() < this.x || e.getBottom() < this.y);
|
|
768
768
|
}, n.prototype.getCenterX = function() {
|
|
769
769
|
return this.x + this.width / 2;
|
|
770
770
|
}, n.prototype.getMinX = function() {
|
|
@@ -782,34 +782,34 @@ var z = /* @__PURE__ */ V((C, P) => {
|
|
|
782
782
|
}, n.prototype.getHeightHalf = function() {
|
|
783
783
|
return this.height / 2;
|
|
784
784
|
}, L.exports = n;
|
|
785
|
-
},
|
|
786
|
-
function(L, m, A) {
|
|
785
|
+
}),
|
|
786
|
+
(function(L, m, A) {
|
|
787
787
|
var n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
788
788
|
return typeof t;
|
|
789
789
|
} : function(t) {
|
|
790
790
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
791
791
|
};
|
|
792
|
-
function
|
|
792
|
+
function e() {
|
|
793
793
|
}
|
|
794
|
-
|
|
795
|
-
return
|
|
796
|
-
},
|
|
797
|
-
return t
|
|
798
|
-
},
|
|
799
|
-
var
|
|
800
|
-
return t == null ||
|
|
801
|
-
}, L.exports =
|
|
802
|
-
},
|
|
803
|
-
function(L, m, A) {
|
|
794
|
+
e.lastID = 0, e.createID = function(t) {
|
|
795
|
+
return e.isPrimitive(t) ? t : (t.uniqueID == null && (t.uniqueID = e.getString(), e.lastID++), t.uniqueID);
|
|
796
|
+
}, e.getString = function(t) {
|
|
797
|
+
return t ??= e.lastID, "Object#" + t;
|
|
798
|
+
}, e.isPrimitive = function(t) {
|
|
799
|
+
var i = t === void 0 ? "undefined" : n(t);
|
|
800
|
+
return t == null || i != "object" && i != "function";
|
|
801
|
+
}, L.exports = e;
|
|
802
|
+
}),
|
|
803
|
+
(function(L, m, A) {
|
|
804
804
|
function n(u) {
|
|
805
805
|
if (Array.isArray(u)) {
|
|
806
806
|
for (var p = 0, y = Array(u.length); p < u.length; p++) y[p] = u[p];
|
|
807
807
|
return y;
|
|
808
808
|
} else return Array.from(u);
|
|
809
809
|
}
|
|
810
|
-
var
|
|
810
|
+
var e = A(0), t = A(6), i = A(3), r = A(1), h = A(5), o = A(4), N = A(17), s = A(27);
|
|
811
811
|
function g(u) {
|
|
812
|
-
s.call(this), this.layoutQuality =
|
|
812
|
+
s.call(this), this.layoutQuality = e.QUALITY, this.createBendsAsNeeded = e.DEFAULT_CREATE_BENDS_AS_NEEDED, this.incremental = e.DEFAULT_INCREMENTAL, this.animationOnLayout = e.DEFAULT_ANIMATION_ON_LAYOUT, this.animationDuringLayout = e.DEFAULT_ANIMATION_DURING_LAYOUT, this.animationPeriod = e.DEFAULT_ANIMATION_PERIOD, this.uniformLeafNodeSizes = e.DEFAULT_UNIFORM_LEAF_NODE_SIZES, this.edgeToDummyNodes = /* @__PURE__ */ new Map(), this.graphManager = new t(this), this.isLayoutFinished = !1, this.isSubLayout = !1, this.isRemoteUse = !1, u != null && (this.isRemoteUse = u);
|
|
813
813
|
}
|
|
814
814
|
g.RANDOM_SEED = 1, g.prototype = Object.create(s.prototype), g.prototype.getGraphManager = function() {
|
|
815
815
|
return this.graphManager;
|
|
@@ -825,7 +825,7 @@ var z = /* @__PURE__ */ V((C, P) => {
|
|
|
825
825
|
}, g.prototype.newGraph = function(u) {
|
|
826
826
|
return new h(null, this.graphManager, u);
|
|
827
827
|
}, g.prototype.newNode = function(u) {
|
|
828
|
-
return new
|
|
828
|
+
return new i(this.graphManager, u);
|
|
829
829
|
}, g.prototype.newEdge = function(u) {
|
|
830
830
|
return new r(null, null, u);
|
|
831
831
|
}, g.prototype.checkLayoutSuccess = function() {
|
|
@@ -833,7 +833,7 @@ var z = /* @__PURE__ */ V((C, P) => {
|
|
|
833
833
|
}, g.prototype.runLayout = function() {
|
|
834
834
|
this.isLayoutFinished = !1, this.tilingPreLayout && this.tilingPreLayout(), this.initParameters();
|
|
835
835
|
var u = this.checkLayoutSuccess() ? !1 : this.layout();
|
|
836
|
-
return
|
|
836
|
+
return e.ANIMATE === "during" ? !1 : (u && (this.isSubLayout || this.doPostLayout()), this.tilingPostLayout && this.tilingPostLayout(), this.isLayoutFinished = !0, u);
|
|
837
837
|
}, g.prototype.doPostLayout = function() {
|
|
838
838
|
this.incremental || this.transform(), this.update();
|
|
839
839
|
}, g.prototype.update2 = function() {
|
|
@@ -844,7 +844,7 @@ var z = /* @__PURE__ */ V((C, P) => {
|
|
|
844
844
|
}
|
|
845
845
|
}, g.prototype.update = function(u) {
|
|
846
846
|
if (u == null) this.update2();
|
|
847
|
-
else if (u instanceof
|
|
847
|
+
else if (u instanceof i) {
|
|
848
848
|
var p = u;
|
|
849
849
|
if (p.getChild() != null) for (var y = p.getChild().getNodes(), c = 0; c < y.length; c++) update(y[c]);
|
|
850
850
|
p.vGraphObject != null && p.vGraphObject.update(p);
|
|
@@ -856,7 +856,7 @@ var z = /* @__PURE__ */ V((C, P) => {
|
|
|
856
856
|
T.vGraphObject != null && T.vGraphObject.update(T);
|
|
857
857
|
}
|
|
858
858
|
}, g.prototype.initParameters = function() {
|
|
859
|
-
this.isSubLayout || (this.layoutQuality =
|
|
859
|
+
this.isSubLayout || (this.layoutQuality = e.QUALITY, this.animationDuringLayout = e.DEFAULT_ANIMATION_DURING_LAYOUT, this.animationPeriod = e.DEFAULT_ANIMATION_PERIOD, this.animationOnLayout = e.DEFAULT_ANIMATION_ON_LAYOUT, this.incremental = e.DEFAULT_INCREMENTAL, this.createBendsAsNeeded = e.DEFAULT_CREATE_BENDS_AS_NEEDED, this.uniformLeafNodeSizes = e.DEFAULT_UNIFORM_LEAF_NODE_SIZES), this.animationDuringLayout && (this.animationOnLayout = !1);
|
|
860
860
|
}, g.prototype.transform = function(u) {
|
|
861
861
|
if (u == null) this.transform(new o(0, 0));
|
|
862
862
|
else {
|
|
@@ -963,83 +963,83 @@ var z = /* @__PURE__ */ V((C, P) => {
|
|
|
963
963
|
}, g.prototype.setGraphManager = function(u) {
|
|
964
964
|
this.graphManager = u;
|
|
965
965
|
}, L.exports = g;
|
|
966
|
-
},
|
|
967
|
-
function(L, m, A) {
|
|
966
|
+
}),
|
|
967
|
+
(function(L, m, A) {
|
|
968
968
|
function n() {
|
|
969
969
|
}
|
|
970
970
|
n.seed = 1, n.x = 0, n.nextDouble = function() {
|
|
971
971
|
return n.x = Math.sin(n.seed++) * 1e4, n.x - Math.floor(n.x);
|
|
972
972
|
}, L.exports = n;
|
|
973
|
-
},
|
|
974
|
-
function(L, m, A) {
|
|
973
|
+
}),
|
|
974
|
+
(function(L, m, A) {
|
|
975
975
|
var n = A(4);
|
|
976
|
-
function
|
|
976
|
+
function e(t, i) {
|
|
977
977
|
this.lworldOrgX = 0, this.lworldOrgY = 0, this.ldeviceOrgX = 0, this.ldeviceOrgY = 0, this.lworldExtX = 1, this.lworldExtY = 1, this.ldeviceExtX = 1, this.ldeviceExtY = 1;
|
|
978
978
|
}
|
|
979
|
-
|
|
979
|
+
e.prototype.getWorldOrgX = function() {
|
|
980
980
|
return this.lworldOrgX;
|
|
981
|
-
},
|
|
981
|
+
}, e.prototype.setWorldOrgX = function(t) {
|
|
982
982
|
this.lworldOrgX = t;
|
|
983
|
-
},
|
|
983
|
+
}, e.prototype.getWorldOrgY = function() {
|
|
984
984
|
return this.lworldOrgY;
|
|
985
|
-
},
|
|
985
|
+
}, e.prototype.setWorldOrgY = function(t) {
|
|
986
986
|
this.lworldOrgY = t;
|
|
987
|
-
},
|
|
987
|
+
}, e.prototype.getWorldExtX = function() {
|
|
988
988
|
return this.lworldExtX;
|
|
989
|
-
},
|
|
989
|
+
}, e.prototype.setWorldExtX = function(t) {
|
|
990
990
|
this.lworldExtX = t;
|
|
991
|
-
},
|
|
991
|
+
}, e.prototype.getWorldExtY = function() {
|
|
992
992
|
return this.lworldExtY;
|
|
993
|
-
},
|
|
993
|
+
}, e.prototype.setWorldExtY = function(t) {
|
|
994
994
|
this.lworldExtY = t;
|
|
995
|
-
},
|
|
995
|
+
}, e.prototype.getDeviceOrgX = function() {
|
|
996
996
|
return this.ldeviceOrgX;
|
|
997
|
-
},
|
|
997
|
+
}, e.prototype.setDeviceOrgX = function(t) {
|
|
998
998
|
this.ldeviceOrgX = t;
|
|
999
|
-
},
|
|
999
|
+
}, e.prototype.getDeviceOrgY = function() {
|
|
1000
1000
|
return this.ldeviceOrgY;
|
|
1001
|
-
},
|
|
1001
|
+
}, e.prototype.setDeviceOrgY = function(t) {
|
|
1002
1002
|
this.ldeviceOrgY = t;
|
|
1003
|
-
},
|
|
1003
|
+
}, e.prototype.getDeviceExtX = function() {
|
|
1004
1004
|
return this.ldeviceExtX;
|
|
1005
|
-
},
|
|
1005
|
+
}, e.prototype.setDeviceExtX = function(t) {
|
|
1006
1006
|
this.ldeviceExtX = t;
|
|
1007
|
-
},
|
|
1007
|
+
}, e.prototype.getDeviceExtY = function() {
|
|
1008
1008
|
return this.ldeviceExtY;
|
|
1009
|
-
},
|
|
1009
|
+
}, e.prototype.setDeviceExtY = function(t) {
|
|
1010
1010
|
this.ldeviceExtY = t;
|
|
1011
|
-
},
|
|
1012
|
-
var
|
|
1013
|
-
return r != 0 && (
|
|
1014
|
-
},
|
|
1015
|
-
var
|
|
1016
|
-
return r != 0 && (
|
|
1017
|
-
},
|
|
1018
|
-
var
|
|
1019
|
-
return r != 0 && (
|
|
1020
|
-
},
|
|
1021
|
-
var
|
|
1022
|
-
return r != 0 && (
|
|
1023
|
-
},
|
|
1011
|
+
}, e.prototype.transformX = function(t) {
|
|
1012
|
+
var i = 0, r = this.lworldExtX;
|
|
1013
|
+
return r != 0 && (i = this.ldeviceOrgX + (t - this.lworldOrgX) * this.ldeviceExtX / r), i;
|
|
1014
|
+
}, e.prototype.transformY = function(t) {
|
|
1015
|
+
var i = 0, r = this.lworldExtY;
|
|
1016
|
+
return r != 0 && (i = this.ldeviceOrgY + (t - this.lworldOrgY) * this.ldeviceExtY / r), i;
|
|
1017
|
+
}, e.prototype.inverseTransformX = function(t) {
|
|
1018
|
+
var i = 0, r = this.ldeviceExtX;
|
|
1019
|
+
return r != 0 && (i = this.lworldOrgX + (t - this.ldeviceOrgX) * this.lworldExtX / r), i;
|
|
1020
|
+
}, e.prototype.inverseTransformY = function(t) {
|
|
1021
|
+
var i = 0, r = this.ldeviceExtY;
|
|
1022
|
+
return r != 0 && (i = this.lworldOrgY + (t - this.ldeviceOrgY) * this.lworldExtY / r), i;
|
|
1023
|
+
}, e.prototype.inverseTransformPoint = function(t) {
|
|
1024
1024
|
return new n(this.inverseTransformX(t.x), this.inverseTransformY(t.y));
|
|
1025
|
-
}, L.exports =
|
|
1026
|
-
},
|
|
1027
|
-
function(L, m, A) {
|
|
1025
|
+
}, L.exports = e;
|
|
1026
|
+
}),
|
|
1027
|
+
(function(L, m, A) {
|
|
1028
1028
|
function n(s) {
|
|
1029
1029
|
if (Array.isArray(s)) {
|
|
1030
1030
|
for (var g = 0, u = Array(s.length); g < s.length; g++) u[g] = s[g];
|
|
1031
1031
|
return u;
|
|
1032
1032
|
} else return Array.from(s);
|
|
1033
1033
|
}
|
|
1034
|
-
var
|
|
1034
|
+
var e = A(15), t = A(7), i = A(0), r = A(8), h = A(9);
|
|
1035
1035
|
function o() {
|
|
1036
|
-
|
|
1036
|
+
e.call(this), this.useSmartIdealEdgeLengthCalculation = t.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION, this.idealEdgeLength = t.DEFAULT_EDGE_LENGTH, this.springConstant = t.DEFAULT_SPRING_STRENGTH, this.repulsionConstant = t.DEFAULT_REPULSION_STRENGTH, this.gravityConstant = t.DEFAULT_GRAVITY_STRENGTH, this.compoundGravityConstant = t.DEFAULT_COMPOUND_GRAVITY_STRENGTH, this.gravityRangeFactor = t.DEFAULT_GRAVITY_RANGE_FACTOR, this.compoundGravityRangeFactor = t.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR, this.displacementThresholdPerNode = 3 * t.DEFAULT_EDGE_LENGTH / 100, this.coolingFactor = t.DEFAULT_COOLING_FACTOR_INCREMENTAL, this.initialCoolingFactor = t.DEFAULT_COOLING_FACTOR_INCREMENTAL, this.totalDisplacement = 0, this.oldTotalDisplacement = 0, this.maxIterations = t.MAX_ITERATIONS;
|
|
1037
1037
|
}
|
|
1038
|
-
for (var N in o.prototype = Object.create(
|
|
1038
|
+
for (var N in o.prototype = Object.create(e.prototype), e) o[N] = e[N];
|
|
1039
1039
|
o.prototype.initParameters = function() {
|
|
1040
|
-
|
|
1040
|
+
e.prototype.initParameters.call(this, arguments), this.totalIterations = 0, this.notAnimatedIterations = 0, this.useFRGridVariant = t.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION, this.grid = [];
|
|
1041
1041
|
}, o.prototype.calcIdealEdgeLengths = function() {
|
|
1042
|
-
for (var s, g, u, p, y, c, f = this.getGraphManager().getAllEdges(), T = 0; T < f.length; T++) s = f[T], s.idealLength = this.idealEdgeLength, s.isInterGraph && (u = s.getSource(), p = s.getTarget(), y = s.getSourceInLca().getEstimatedSize(), c = s.getTargetInLca().getEstimatedSize(), this.useSmartIdealEdgeLengthCalculation && (s.idealLength += y + c - 2 *
|
|
1042
|
+
for (var s, g, u, p, y, c, f = this.getGraphManager().getAllEdges(), T = 0; T < f.length; T++) s = f[T], s.idealLength = this.idealEdgeLength, s.isInterGraph && (u = s.getSource(), p = s.getTarget(), y = s.getSourceInLca().getEstimatedSize(), c = s.getTargetInLca().getEstimatedSize(), this.useSmartIdealEdgeLengthCalculation && (s.idealLength += y + c - 2 * i.SIMPLE_NODE_SIZE), g = s.getLca().getInclusionTreeDepth(), s.idealLength += t.DEFAULT_EDGE_LENGTH * t.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR * (u.getInclusionTreeDepth() + p.getInclusionTreeDepth() - 2 * g));
|
|
1043
1043
|
}, o.prototype.initSpringEmbedder = function() {
|
|
1044
1044
|
var s = this.getAllNodes().length;
|
|
1045
1045
|
this.incremental ? (s > t.ADAPTATION_LOWER_NODE_LIMIT && (this.coolingFactor = Math.max(this.coolingFactor * t.COOLING_ADAPTATION_FACTOR, this.coolingFactor - (s - t.ADAPTATION_LOWER_NODE_LIMIT) / (t.ADAPTATION_UPPER_NODE_LIMIT - t.ADAPTATION_LOWER_NODE_LIMIT) * this.coolingFactor * (1 - t.COOLING_ADAPTATION_FACTOR))), this.maxNodeDisplacement = t.MAX_NODE_DISPLACEMENT_INCREMENTAL) : (s > t.ADAPTATION_LOWER_NODE_LIMIT ? this.coolingFactor = Math.max(t.COOLING_ADAPTATION_FACTOR, 1 - (s - t.ADAPTATION_LOWER_NODE_LIMIT) / (t.ADAPTATION_UPPER_NODE_LIMIT - t.ADAPTATION_LOWER_NODE_LIMIT) * (1 - t.COOLING_ADAPTATION_FACTOR)) : this.coolingFactor = 1, this.initialCoolingFactor = this.coolingFactor, this.maxNodeDisplacement = t.MAX_NODE_DISPLACEMENT), this.maxIterations = Math.max(this.getAllNodes().length * 5, this.maxIterations), this.totalDisplacementThreshold = this.displacementThresholdPerNode * this.getAllNodes().length, this.repulsionRange = this.calcRepulsionRange();
|
|
@@ -1109,108 +1109,108 @@ var z = /* @__PURE__ */ V((C, P) => {
|
|
|
1109
1109
|
}, o.prototype.calcRepulsionRange = function() {
|
|
1110
1110
|
return 0;
|
|
1111
1111
|
}, L.exports = o;
|
|
1112
|
-
},
|
|
1113
|
-
function(L, m, A) {
|
|
1114
|
-
var n = A(1),
|
|
1112
|
+
}),
|
|
1113
|
+
(function(L, m, A) {
|
|
1114
|
+
var n = A(1), e = A(7);
|
|
1115
1115
|
function t(r, h, o) {
|
|
1116
|
-
n.call(this, r, h, o), this.idealLength =
|
|
1116
|
+
n.call(this, r, h, o), this.idealLength = e.DEFAULT_EDGE_LENGTH;
|
|
1117
1117
|
}
|
|
1118
|
-
for (var
|
|
1118
|
+
for (var i in t.prototype = Object.create(n.prototype), n) t[i] = n[i];
|
|
1119
1119
|
L.exports = t;
|
|
1120
|
-
},
|
|
1121
|
-
function(L, m, A) {
|
|
1120
|
+
}),
|
|
1121
|
+
(function(L, m, A) {
|
|
1122
1122
|
var n = A(3);
|
|
1123
|
-
function i
|
|
1124
|
-
n.call(this,
|
|
1123
|
+
function e(i, r, h, o) {
|
|
1124
|
+
n.call(this, i, r, h, o), this.springForceX = 0, this.springForceY = 0, this.repulsionForceX = 0, this.repulsionForceY = 0, this.gravitationForceX = 0, this.gravitationForceY = 0, this.displacementX = 0, this.displacementY = 0, this.startX = 0, this.finishX = 0, this.startY = 0, this.finishY = 0, this.surrounding = [];
|
|
1125
1125
|
}
|
|
1126
|
-
for (var t in
|
|
1127
|
-
|
|
1128
|
-
this.startX =
|
|
1129
|
-
}, L.exports =
|
|
1130
|
-
},
|
|
1131
|
-
function(L, m, A) {
|
|
1132
|
-
function n(
|
|
1133
|
-
this.width = 0, this.height = 0,
|
|
1126
|
+
for (var t in e.prototype = Object.create(n.prototype), n) e[t] = n[t];
|
|
1127
|
+
e.prototype.setGridCoordinates = function(i, r, h, o) {
|
|
1128
|
+
this.startX = i, this.finishX = r, this.startY = h, this.finishY = o;
|
|
1129
|
+
}, L.exports = e;
|
|
1130
|
+
}),
|
|
1131
|
+
(function(L, m, A) {
|
|
1132
|
+
function n(e, t) {
|
|
1133
|
+
this.width = 0, this.height = 0, e !== null && t !== null && (this.height = t, this.width = e);
|
|
1134
1134
|
}
|
|
1135
1135
|
n.prototype.getWidth = function() {
|
|
1136
1136
|
return this.width;
|
|
1137
|
-
}, n.prototype.setWidth = function(
|
|
1138
|
-
this.width =
|
|
1137
|
+
}, n.prototype.setWidth = function(e) {
|
|
1138
|
+
this.width = e;
|
|
1139
1139
|
}, n.prototype.getHeight = function() {
|
|
1140
1140
|
return this.height;
|
|
1141
|
-
}, n.prototype.setHeight = function(
|
|
1142
|
-
this.height =
|
|
1141
|
+
}, n.prototype.setHeight = function(e) {
|
|
1142
|
+
this.height = e;
|
|
1143
1143
|
}, L.exports = n;
|
|
1144
|
-
},
|
|
1145
|
-
function(L, m, A) {
|
|
1144
|
+
}),
|
|
1145
|
+
(function(L, m, A) {
|
|
1146
1146
|
var n = A(14);
|
|
1147
|
-
function
|
|
1147
|
+
function e() {
|
|
1148
1148
|
this.map = {}, this.keys = [];
|
|
1149
1149
|
}
|
|
1150
|
-
|
|
1150
|
+
e.prototype.put = function(t, i) {
|
|
1151
1151
|
var r = n.createID(t);
|
|
1152
|
-
this.contains(r) || (this.map[r] =
|
|
1153
|
-
},
|
|
1152
|
+
this.contains(r) || (this.map[r] = i, this.keys.push(t));
|
|
1153
|
+
}, e.prototype.contains = function(t) {
|
|
1154
1154
|
return n.createID(t), this.map[t] != null;
|
|
1155
|
-
},
|
|
1156
|
-
var
|
|
1157
|
-
return this.map[
|
|
1158
|
-
},
|
|
1155
|
+
}, e.prototype.get = function(t) {
|
|
1156
|
+
var i = n.createID(t);
|
|
1157
|
+
return this.map[i];
|
|
1158
|
+
}, e.prototype.keySet = function() {
|
|
1159
1159
|
return this.keys;
|
|
1160
|
-
}, L.exports =
|
|
1161
|
-
},
|
|
1162
|
-
function(L, m, A) {
|
|
1160
|
+
}, L.exports = e;
|
|
1161
|
+
}),
|
|
1162
|
+
(function(L, m, A) {
|
|
1163
1163
|
var n = A(14);
|
|
1164
|
-
function
|
|
1164
|
+
function e() {
|
|
1165
1165
|
this.set = {};
|
|
1166
1166
|
}
|
|
1167
|
-
|
|
1168
|
-
var
|
|
1169
|
-
this.contains(
|
|
1170
|
-
},
|
|
1167
|
+
e.prototype.add = function(t) {
|
|
1168
|
+
var i = n.createID(t);
|
|
1169
|
+
this.contains(i) || (this.set[i] = t);
|
|
1170
|
+
}, e.prototype.remove = function(t) {
|
|
1171
1171
|
delete this.set[n.createID(t)];
|
|
1172
|
-
},
|
|
1172
|
+
}, e.prototype.clear = function() {
|
|
1173
1173
|
this.set = {};
|
|
1174
|
-
},
|
|
1174
|
+
}, e.prototype.contains = function(t) {
|
|
1175
1175
|
return this.set[n.createID(t)] == t;
|
|
1176
|
-
},
|
|
1176
|
+
}, e.prototype.isEmpty = function() {
|
|
1177
1177
|
return this.size() === 0;
|
|
1178
|
-
},
|
|
1178
|
+
}, e.prototype.size = function() {
|
|
1179
1179
|
return Object.keys(this.set).length;
|
|
1180
|
-
},
|
|
1181
|
-
for (var
|
|
1182
|
-
},
|
|
1180
|
+
}, e.prototype.addAllTo = function(t) {
|
|
1181
|
+
for (var i = Object.keys(this.set), r = i.length, h = 0; h < r; h++) t.push(this.set[i[h]]);
|
|
1182
|
+
}, e.prototype.size = function() {
|
|
1183
1183
|
return Object.keys(this.set).length;
|
|
1184
|
-
},
|
|
1185
|
-
for (var
|
|
1184
|
+
}, e.prototype.addAll = function(t) {
|
|
1185
|
+
for (var i = t.length, r = 0; r < i; r++) {
|
|
1186
1186
|
var h = t[r];
|
|
1187
1187
|
this.add(h);
|
|
1188
1188
|
}
|
|
1189
|
-
}, L.exports =
|
|
1190
|
-
},
|
|
1191
|
-
function(L, m, A) {
|
|
1192
|
-
var n = /* @__PURE__ */ function() {
|
|
1193
|
-
function
|
|
1189
|
+
}, L.exports = e;
|
|
1190
|
+
}),
|
|
1191
|
+
(function(L, m, A) {
|
|
1192
|
+
var n = /* @__PURE__ */ (function() {
|
|
1193
|
+
function i(r, h) {
|
|
1194
1194
|
for (var o = 0; o < h.length; o++) {
|
|
1195
1195
|
var N = h[o];
|
|
1196
1196
|
N.enumerable = N.enumerable || !1, N.configurable = !0, "value" in N && (N.writable = !0), Object.defineProperty(r, N.key, N);
|
|
1197
1197
|
}
|
|
1198
1198
|
}
|
|
1199
1199
|
return function(r, h, o) {
|
|
1200
|
-
return h &&
|
|
1200
|
+
return h && i(r.prototype, h), o && i(r, o), r;
|
|
1201
1201
|
};
|
|
1202
|
-
}();
|
|
1203
|
-
function i
|
|
1204
|
-
if (!(
|
|
1202
|
+
})();
|
|
1203
|
+
function e(i, r) {
|
|
1204
|
+
if (!(i instanceof r)) throw TypeError("Cannot call a class as a function");
|
|
1205
1205
|
}
|
|
1206
1206
|
var t = A(11);
|
|
1207
|
-
L.exports = function() {
|
|
1208
|
-
function
|
|
1209
|
-
|
|
1207
|
+
L.exports = (function() {
|
|
1208
|
+
function i(r, h) {
|
|
1209
|
+
e(this, i), (h !== null || h !== void 0) && (this.compareFunction = this._defaultCompareFunction);
|
|
1210
1210
|
var o = void 0;
|
|
1211
1211
|
o = r instanceof t ? r.size() : r.length, this._quicksort(r, 0, o - 1);
|
|
1212
1212
|
}
|
|
1213
|
-
return n(
|
|
1213
|
+
return n(i, [
|
|
1214
1214
|
{
|
|
1215
1215
|
key: "_quicksort",
|
|
1216
1216
|
value: function(r, h, o) {
|
|
@@ -1256,28 +1256,28 @@ var z = /* @__PURE__ */ V((C, P) => {
|
|
|
1256
1256
|
return h > r;
|
|
1257
1257
|
}
|
|
1258
1258
|
}
|
|
1259
|
-
]),
|
|
1260
|
-
}();
|
|
1261
|
-
},
|
|
1262
|
-
function(L, m, A) {
|
|
1263
|
-
var n = /* @__PURE__ */ function() {
|
|
1264
|
-
function t(
|
|
1259
|
+
]), i;
|
|
1260
|
+
})();
|
|
1261
|
+
}),
|
|
1262
|
+
(function(L, m, A) {
|
|
1263
|
+
var n = /* @__PURE__ */ (function() {
|
|
1264
|
+
function t(i, r) {
|
|
1265
1265
|
for (var h = 0; h < r.length; h++) {
|
|
1266
1266
|
var o = r[h];
|
|
1267
|
-
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(
|
|
1267
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(i, o.key, o);
|
|
1268
1268
|
}
|
|
1269
1269
|
}
|
|
1270
|
-
return function(
|
|
1271
|
-
return r && t(
|
|
1270
|
+
return function(i, r, h) {
|
|
1271
|
+
return r && t(i.prototype, r), h && t(i, h), i;
|
|
1272
1272
|
};
|
|
1273
|
-
}();
|
|
1274
|
-
function
|
|
1275
|
-
if (!(t instanceof
|
|
1273
|
+
})();
|
|
1274
|
+
function e(t, i) {
|
|
1275
|
+
if (!(t instanceof i)) throw TypeError("Cannot call a class as a function");
|
|
1276
1276
|
}
|
|
1277
|
-
L.exports = function() {
|
|
1278
|
-
function t(
|
|
1277
|
+
L.exports = (function() {
|
|
1278
|
+
function t(i, r) {
|
|
1279
1279
|
var h = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : -1, N = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : -1;
|
|
1280
|
-
|
|
1280
|
+
e(this, t), this.sequence1 = i, this.sequence2 = r, this.match_score = h, this.mismatch_penalty = o, this.gap_penalty = N, this.iMax = i.length + 1, this.jMax = r.length + 1, this.grid = Array(this.iMax);
|
|
1281
1281
|
for (var s = 0; s < this.iMax; s++) {
|
|
1282
1282
|
this.grid[s] = Array(this.jMax);
|
|
1283
1283
|
for (var g = 0; g < this.jMax; g++) this.grid[s][g] = 0;
|
|
@@ -1309,7 +1309,7 @@ var z = /* @__PURE__ */ V((C, P) => {
|
|
|
1309
1309
|
{
|
|
1310
1310
|
key: "computeGrids",
|
|
1311
1311
|
value: function() {
|
|
1312
|
-
for (var
|
|
1312
|
+
for (var i = 1; i < this.jMax; i++) this.grid[0][i] = this.grid[0][i - 1] + this.gap_penalty, this.tracebackGrid[0][i] = [
|
|
1313
1313
|
!1,
|
|
1314
1314
|
!1,
|
|
1315
1315
|
!0
|
|
@@ -1339,190 +1339,190 @@ var z = /* @__PURE__ */ V((C, P) => {
|
|
|
1339
1339
|
{
|
|
1340
1340
|
key: "alignmentTraceback",
|
|
1341
1341
|
value: function() {
|
|
1342
|
-
var
|
|
1343
|
-
for (
|
|
1342
|
+
var i = [];
|
|
1343
|
+
for (i.push({
|
|
1344
1344
|
pos: [this.sequence1.length, this.sequence2.length],
|
|
1345
1345
|
seq1: "",
|
|
1346
1346
|
seq2: ""
|
|
1347
|
-
});
|
|
1348
|
-
var r =
|
|
1349
|
-
h[0] &&
|
|
1347
|
+
}); i[0]; ) {
|
|
1348
|
+
var r = i[0], h = this.tracebackGrid[r.pos[0]][r.pos[1]];
|
|
1349
|
+
h[0] && i.push({
|
|
1350
1350
|
pos: [r.pos[0] - 1, r.pos[1] - 1],
|
|
1351
1351
|
seq1: this.sequence1[r.pos[0] - 1] + r.seq1,
|
|
1352
1352
|
seq2: this.sequence2[r.pos[1] - 1] + r.seq2
|
|
1353
|
-
}), h[1] &&
|
|
1353
|
+
}), h[1] && i.push({
|
|
1354
1354
|
pos: [r.pos[0] - 1, r.pos[1]],
|
|
1355
1355
|
seq1: this.sequence1[r.pos[0] - 1] + r.seq1,
|
|
1356
1356
|
seq2: "-" + r.seq2
|
|
1357
|
-
}), h[2] &&
|
|
1357
|
+
}), h[2] && i.push({
|
|
1358
1358
|
pos: [r.pos[0], r.pos[1] - 1],
|
|
1359
1359
|
seq1: "-" + r.seq1,
|
|
1360
1360
|
seq2: this.sequence2[r.pos[1] - 1] + r.seq2
|
|
1361
1361
|
}), r.pos[0] === 0 && r.pos[1] === 0 && this.alignments.push({
|
|
1362
1362
|
sequence1: r.seq1,
|
|
1363
1363
|
sequence2: r.seq2
|
|
1364
|
-
}),
|
|
1364
|
+
}), i.shift();
|
|
1365
1365
|
}
|
|
1366
1366
|
return this.alignments;
|
|
1367
1367
|
}
|
|
1368
1368
|
},
|
|
1369
1369
|
{
|
|
1370
1370
|
key: "getAllIndexes",
|
|
1371
|
-
value: function(
|
|
1372
|
-
for (var h = [], o = -1; (o =
|
|
1371
|
+
value: function(i, r) {
|
|
1372
|
+
for (var h = [], o = -1; (o = i.indexOf(r, o + 1)) !== -1; ) h.push(o);
|
|
1373
1373
|
return h;
|
|
1374
1374
|
}
|
|
1375
1375
|
},
|
|
1376
1376
|
{
|
|
1377
1377
|
key: "arrayAllMaxIndexes",
|
|
1378
|
-
value: function(
|
|
1379
|
-
return this.getAllIndexes(
|
|
1378
|
+
value: function(i) {
|
|
1379
|
+
return this.getAllIndexes(i, Math.max.apply(null, i));
|
|
1380
1380
|
}
|
|
1381
1381
|
}
|
|
1382
1382
|
]), t;
|
|
1383
|
-
}();
|
|
1384
|
-
},
|
|
1385
|
-
function(L, m, A) {
|
|
1383
|
+
})();
|
|
1384
|
+
}),
|
|
1385
|
+
(function(L, m, A) {
|
|
1386
1386
|
var n = function() {
|
|
1387
1387
|
};
|
|
1388
1388
|
n.FDLayout = A(18), n.FDLayoutConstants = A(7), n.FDLayoutEdge = A(19), n.FDLayoutNode = A(20), n.DimensionD = A(21), n.HashMap = A(22), n.HashSet = A(23), n.IGeometry = A(8), n.IMath = A(9), n.Integer = A(10), n.Point = A(12), n.PointD = A(4), n.RandomSeed = A(16), n.RectangleD = A(13), n.Transform = A(17), n.UniqueIDGeneretor = A(14), n.Quicksort = A(24), n.LinkedList = A(11), n.LGraphObject = A(2), n.LGraph = A(5), n.LEdge = A(1), n.LGraphManager = A(6), n.LNode = A(3), n.Layout = A(15), n.LayoutConstants = A(0), n.NeedlemanWunsch = A(25), L.exports = n;
|
|
1389
|
-
},
|
|
1390
|
-
function(L, m, A) {
|
|
1389
|
+
}),
|
|
1390
|
+
(function(L, m, A) {
|
|
1391
1391
|
function n() {
|
|
1392
1392
|
this.listeners = [];
|
|
1393
1393
|
}
|
|
1394
|
-
var
|
|
1395
|
-
|
|
1394
|
+
var e = n.prototype;
|
|
1395
|
+
e.addListener = function(t, i) {
|
|
1396
1396
|
this.listeners.push({
|
|
1397
1397
|
event: t,
|
|
1398
|
-
callback:
|
|
1398
|
+
callback: i
|
|
1399
1399
|
});
|
|
1400
|
-
},
|
|
1400
|
+
}, e.removeListener = function(t, i) {
|
|
1401
1401
|
for (var r = this.listeners.length; r >= 0; r--) {
|
|
1402
1402
|
var h = this.listeners[r];
|
|
1403
|
-
h.event === t && h.callback ===
|
|
1403
|
+
h.event === t && h.callback === i && this.listeners.splice(r, 1);
|
|
1404
1404
|
}
|
|
1405
|
-
},
|
|
1405
|
+
}, e.emit = function(t, i) {
|
|
1406
1406
|
for (var r = 0; r < this.listeners.length; r++) {
|
|
1407
1407
|
var h = this.listeners[r];
|
|
1408
|
-
t === h.event && h.callback(
|
|
1408
|
+
t === h.event && h.callback(i);
|
|
1409
1409
|
}
|
|
1410
1410
|
}, L.exports = n;
|
|
1411
|
-
}
|
|
1411
|
+
})
|
|
1412
1412
|
]);
|
|
1413
1413
|
});
|
|
1414
|
-
}), Z = /* @__PURE__ */ V((C, P) => {
|
|
1414
|
+
})), Z = /* @__PURE__ */ V(((C, P) => {
|
|
1415
1415
|
(function(L, m) {
|
|
1416
1416
|
typeof C == "object" && typeof P == "object" ? P.exports = m(z()) : typeof define == "function" && define.amd ? define(["layout-base"], m) : typeof C == "object" ? C.coseBase = m(z()) : L.coseBase = m(L.layoutBase);
|
|
1417
1417
|
})(C, function(L) {
|
|
1418
|
-
return function(m) {
|
|
1418
|
+
return (function(m) {
|
|
1419
1419
|
var A = {};
|
|
1420
|
-
function n(
|
|
1421
|
-
if (A[
|
|
1422
|
-
var t = A[
|
|
1423
|
-
i,
|
|
1420
|
+
function n(e) {
|
|
1421
|
+
if (A[e]) return A[e].exports;
|
|
1422
|
+
var t = A[e] = {
|
|
1423
|
+
i: e,
|
|
1424
1424
|
l: !1,
|
|
1425
1425
|
exports: {}
|
|
1426
1426
|
};
|
|
1427
|
-
return m[
|
|
1427
|
+
return m[e].call(t.exports, t, t.exports, n), t.l = !0, t.exports;
|
|
1428
1428
|
}
|
|
1429
|
-
return n.m = m, n.c = A, n.i = function(
|
|
1430
|
-
return
|
|
1431
|
-
}, n.d = function(
|
|
1432
|
-
n.o(
|
|
1429
|
+
return n.m = m, n.c = A, n.i = function(e) {
|
|
1430
|
+
return e;
|
|
1431
|
+
}, n.d = function(e, t, i) {
|
|
1432
|
+
n.o(e, t) || Object.defineProperty(e, t, {
|
|
1433
1433
|
configurable: !1,
|
|
1434
1434
|
enumerable: !0,
|
|
1435
|
-
get:
|
|
1435
|
+
get: i
|
|
1436
1436
|
});
|
|
1437
|
-
}, n.n = function(
|
|
1438
|
-
var t =
|
|
1439
|
-
return
|
|
1437
|
+
}, n.n = function(e) {
|
|
1438
|
+
var t = e && e.__esModule ? function() {
|
|
1439
|
+
return e.default;
|
|
1440
1440
|
} : function() {
|
|
1441
|
-
return
|
|
1441
|
+
return e;
|
|
1442
1442
|
};
|
|
1443
1443
|
return n.d(t, "a", t), t;
|
|
1444
|
-
}, n.o = function(
|
|
1445
|
-
return Object.prototype.hasOwnProperty.call(
|
|
1444
|
+
}, n.o = function(e, t) {
|
|
1445
|
+
return Object.prototype.hasOwnProperty.call(e, t);
|
|
1446
1446
|
}, n.p = "", n(n.s = 7);
|
|
1447
|
-
}([
|
|
1448
|
-
function(m, A) {
|
|
1447
|
+
})([
|
|
1448
|
+
(function(m, A) {
|
|
1449
1449
|
m.exports = L;
|
|
1450
|
-
},
|
|
1451
|
-
function(m, A, n) {
|
|
1452
|
-
var
|
|
1450
|
+
}),
|
|
1451
|
+
(function(m, A, n) {
|
|
1452
|
+
var e = n(0).FDLayoutConstants;
|
|
1453
1453
|
function t() {
|
|
1454
1454
|
}
|
|
1455
|
-
for (var
|
|
1456
|
-
t.DEFAULT_USE_MULTI_LEVEL_SCALING = !1, t.DEFAULT_RADIAL_SEPARATION =
|
|
1457
|
-
},
|
|
1458
|
-
function(m, A, n) {
|
|
1459
|
-
var
|
|
1455
|
+
for (var i in e) t[i] = e[i];
|
|
1456
|
+
t.DEFAULT_USE_MULTI_LEVEL_SCALING = !1, t.DEFAULT_RADIAL_SEPARATION = e.DEFAULT_EDGE_LENGTH, t.DEFAULT_COMPONENT_SEPERATION = 60, t.TILE = !0, t.TILING_PADDING_VERTICAL = 10, t.TILING_PADDING_HORIZONTAL = 10, t.TREE_REDUCTION_ON_INCREMENTAL = !1, m.exports = t;
|
|
1457
|
+
}),
|
|
1458
|
+
(function(m, A, n) {
|
|
1459
|
+
var e = n(0).FDLayoutEdge;
|
|
1460
1460
|
function t(r, h, o) {
|
|
1461
|
-
|
|
1461
|
+
e.call(this, r, h, o);
|
|
1462
1462
|
}
|
|
1463
|
-
for (var
|
|
1463
|
+
for (var i in t.prototype = Object.create(e.prototype), e) t[i] = e[i];
|
|
1464
1464
|
m.exports = t;
|
|
1465
|
-
},
|
|
1466
|
-
function(m, A, n) {
|
|
1467
|
-
var
|
|
1465
|
+
}),
|
|
1466
|
+
(function(m, A, n) {
|
|
1467
|
+
var e = n(0).LGraph;
|
|
1468
1468
|
function t(r, h, o) {
|
|
1469
|
-
|
|
1469
|
+
e.call(this, r, h, o);
|
|
1470
1470
|
}
|
|
1471
|
-
for (var
|
|
1471
|
+
for (var i in t.prototype = Object.create(e.prototype), e) t[i] = e[i];
|
|
1472
1472
|
m.exports = t;
|
|
1473
|
-
},
|
|
1474
|
-
function(m, A, n) {
|
|
1475
|
-
var
|
|
1473
|
+
}),
|
|
1474
|
+
(function(m, A, n) {
|
|
1475
|
+
var e = n(0).LGraphManager;
|
|
1476
1476
|
function t(r) {
|
|
1477
|
-
|
|
1477
|
+
e.call(this, r);
|
|
1478
1478
|
}
|
|
1479
|
-
for (var
|
|
1479
|
+
for (var i in t.prototype = Object.create(e.prototype), e) t[i] = e[i];
|
|
1480
1480
|
m.exports = t;
|
|
1481
|
-
},
|
|
1482
|
-
function(m, A, n) {
|
|
1483
|
-
var
|
|
1484
|
-
function
|
|
1485
|
-
|
|
1481
|
+
}),
|
|
1482
|
+
(function(m, A, n) {
|
|
1483
|
+
var e = n(0).FDLayoutNode, t = n(0).IMath;
|
|
1484
|
+
function i(h, o, N, s) {
|
|
1485
|
+
e.call(this, h, o, N, s);
|
|
1486
1486
|
}
|
|
1487
|
-
for (var r in
|
|
1488
|
-
|
|
1487
|
+
for (var r in i.prototype = Object.create(e.prototype), e) i[r] = e[r];
|
|
1488
|
+
i.prototype.move = function() {
|
|
1489
1489
|
var h = this.graphManager.getLayout();
|
|
1490
1490
|
this.displacementX = h.coolingFactor * (this.springForceX + this.repulsionForceX + this.gravitationForceX) / this.noOfChildren, this.displacementY = h.coolingFactor * (this.springForceY + this.repulsionForceY + this.gravitationForceY) / this.noOfChildren, Math.abs(this.displacementX) > h.coolingFactor * h.maxNodeDisplacement && (this.displacementX = h.coolingFactor * h.maxNodeDisplacement * t.sign(this.displacementX)), Math.abs(this.displacementY) > h.coolingFactor * h.maxNodeDisplacement && (this.displacementY = h.coolingFactor * h.maxNodeDisplacement * t.sign(this.displacementY)), this.child == null || this.child.getNodes().length == 0 ? this.moveBy(this.displacementX, this.displacementY) : this.propogateDisplacementToChildren(this.displacementX, this.displacementY), h.totalDisplacement += Math.abs(this.displacementX) + Math.abs(this.displacementY), this.springForceX = 0, this.springForceY = 0, this.repulsionForceX = 0, this.repulsionForceY = 0, this.gravitationForceX = 0, this.gravitationForceY = 0, this.displacementX = 0, this.displacementY = 0;
|
|
1491
|
-
},
|
|
1491
|
+
}, i.prototype.propogateDisplacementToChildren = function(h, o) {
|
|
1492
1492
|
for (var N = this.getChild().getNodes(), s, g = 0; g < N.length; g++) s = N[g], s.getChild() == null ? (s.moveBy(h, o), s.displacementX += h, s.displacementY += o) : s.propogateDisplacementToChildren(h, o);
|
|
1493
|
-
},
|
|
1493
|
+
}, i.prototype.setPred1 = function(h) {
|
|
1494
1494
|
this.pred1 = h;
|
|
1495
|
-
},
|
|
1495
|
+
}, i.prototype.getPred1 = function() {
|
|
1496
1496
|
return pred1;
|
|
1497
|
-
},
|
|
1497
|
+
}, i.prototype.getPred2 = function() {
|
|
1498
1498
|
return pred2;
|
|
1499
|
-
},
|
|
1499
|
+
}, i.prototype.setNext = function(h) {
|
|
1500
1500
|
this.next = h;
|
|
1501
|
-
},
|
|
1501
|
+
}, i.prototype.getNext = function() {
|
|
1502
1502
|
return next;
|
|
1503
|
-
},
|
|
1503
|
+
}, i.prototype.setProcessed = function(h) {
|
|
1504
1504
|
this.processed = h;
|
|
1505
|
-
},
|
|
1505
|
+
}, i.prototype.isProcessed = function() {
|
|
1506
1506
|
return processed;
|
|
1507
|
-
}, m.exports =
|
|
1508
|
-
},
|
|
1509
|
-
function(m, A, n) {
|
|
1510
|
-
var
|
|
1507
|
+
}, m.exports = i;
|
|
1508
|
+
}),
|
|
1509
|
+
(function(m, A, n) {
|
|
1510
|
+
var e = n(0).FDLayout, t = n(4), i = n(3), r = n(5), h = n(2), o = n(1), N = n(0).FDLayoutConstants, s = n(0).LayoutConstants, g = n(0).Point, u = n(0).PointD, p = n(0).Layout, y = n(0).Integer, c = n(0).IGeometry, f = n(0).LGraph, T = n(0).Transform;
|
|
1511
1511
|
function E() {
|
|
1512
|
-
|
|
1512
|
+
e.call(this), this.toBeTiled = {};
|
|
1513
1513
|
}
|
|
1514
|
-
for (var O in E.prototype = Object.create(
|
|
1514
|
+
for (var O in E.prototype = Object.create(e.prototype), e) E[O] = e[O];
|
|
1515
1515
|
E.prototype.newGraphManager = function() {
|
|
1516
1516
|
var a = new t(this);
|
|
1517
1517
|
return this.graphManager = a, a;
|
|
1518
1518
|
}, E.prototype.newGraph = function(a) {
|
|
1519
|
-
return new
|
|
1519
|
+
return new i(null, this.graphManager, a);
|
|
1520
1520
|
}, E.prototype.newNode = function(a) {
|
|
1521
1521
|
return new r(this.graphManager, a);
|
|
1522
1522
|
}, E.prototype.newEdge = function(a) {
|
|
1523
1523
|
return new h(null, null, a);
|
|
1524
1524
|
}, E.prototype.initParameters = function() {
|
|
1525
|
-
|
|
1525
|
+
e.prototype.initParameters.call(this, arguments), this.isSubLayout || (o.DEFAULT_EDGE_LENGTH < 10 ? this.idealEdgeLength = 10 : this.idealEdgeLength = o.DEFAULT_EDGE_LENGTH, this.useSmartIdealEdgeLengthCalculation = o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION, this.springConstant = N.DEFAULT_SPRING_STRENGTH, this.repulsionConstant = N.DEFAULT_REPULSION_STRENGTH, this.gravityConstant = N.DEFAULT_GRAVITY_STRENGTH, this.compoundGravityConstant = N.DEFAULT_COMPOUND_GRAVITY_STRENGTH, this.gravityRangeFactor = N.DEFAULT_GRAVITY_RANGE_FACTOR, this.compoundGravityRangeFactor = N.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR, this.prunedNodesAll = [], this.growTreeIterations = 0, this.afterGrowthIterations = 0, this.isTreeGrowing = !1, this.isGrowthFinished = !1, this.coolingCycle = 0, this.maxCoolingCycle = this.maxIterations / N.CONVERGENCE_CHECK_PERIOD, this.finalTemperature = N.CONVERGENCE_CHECK_PERIOD / this.maxIterations, this.coolingAdjuster = 1);
|
|
1526
1526
|
}, E.prototype.layout = function() {
|
|
1527
1527
|
return s.DEFAULT_CREATE_BENDS_AS_NEEDED && (this.createBendpoints(), this.graphManager.resetAllEdges()), this.level = 0, this.classicLayout();
|
|
1528
1528
|
}, E.prototype.classicLayout = function() {
|
|
@@ -1867,50 +1867,50 @@ var z = /* @__PURE__ */ V((C, P) => {
|
|
|
1867
1867
|
} else d = U;
|
|
1868
1868
|
d == 0 ? v.setCenter(l.getCenterX(), l.getCenterY() - l.getHeight() / 2 - N.DEFAULT_EDGE_LENGTH - v.getHeight() / 2) : d == 1 ? v.setCenter(l.getCenterX() + l.getWidth() / 2 + N.DEFAULT_EDGE_LENGTH + v.getWidth() / 2, l.getCenterY()) : d == 2 ? v.setCenter(l.getCenterX(), l.getCenterY() + l.getHeight() / 2 + N.DEFAULT_EDGE_LENGTH + v.getHeight() / 2) : v.setCenter(l.getCenterX() - l.getWidth() / 2 - N.DEFAULT_EDGE_LENGTH - v.getWidth() / 2, l.getCenterY());
|
|
1869
1869
|
}, m.exports = E;
|
|
1870
|
-
},
|
|
1871
|
-
function(m, A, n) {
|
|
1872
|
-
var
|
|
1873
|
-
|
|
1874
|
-
}
|
|
1870
|
+
}),
|
|
1871
|
+
(function(m, A, n) {
|
|
1872
|
+
var e = {};
|
|
1873
|
+
e.layoutBase = n(0), e.CoSEConstants = n(1), e.CoSEEdge = n(2), e.CoSEGraph = n(3), e.CoSEGraphManager = n(4), e.CoSELayout = n(6), e.CoSENode = n(5), m.exports = e;
|
|
1874
|
+
})
|
|
1875
1875
|
]);
|
|
1876
1876
|
});
|
|
1877
|
-
}), at = /* @__PURE__ */ st((/* @__PURE__ */ V((C, P) => {
|
|
1877
|
+
})), at = /* @__PURE__ */ st((/* @__PURE__ */ V(((C, P) => {
|
|
1878
1878
|
(function(L, m) {
|
|
1879
1879
|
typeof C == "object" && typeof P == "object" ? P.exports = m(Z()) : typeof define == "function" && define.amd ? define(["cose-base"], m) : typeof C == "object" ? C.cytoscapeCoseBilkent = m(Z()) : L.cytoscapeCoseBilkent = m(L.coseBase);
|
|
1880
1880
|
})(C, function(L) {
|
|
1881
|
-
return function(m) {
|
|
1881
|
+
return (function(m) {
|
|
1882
1882
|
var A = {};
|
|
1883
|
-
function n(
|
|
1884
|
-
if (A[
|
|
1885
|
-
var t = A[
|
|
1886
|
-
i,
|
|
1883
|
+
function n(e) {
|
|
1884
|
+
if (A[e]) return A[e].exports;
|
|
1885
|
+
var t = A[e] = {
|
|
1886
|
+
i: e,
|
|
1887
1887
|
l: !1,
|
|
1888
1888
|
exports: {}
|
|
1889
1889
|
};
|
|
1890
|
-
return m[
|
|
1890
|
+
return m[e].call(t.exports, t, t.exports, n), t.l = !0, t.exports;
|
|
1891
1891
|
}
|
|
1892
|
-
return n.m = m, n.c = A, n.i = function(
|
|
1893
|
-
return
|
|
1894
|
-
}, n.d = function(
|
|
1895
|
-
n.o(
|
|
1892
|
+
return n.m = m, n.c = A, n.i = function(e) {
|
|
1893
|
+
return e;
|
|
1894
|
+
}, n.d = function(e, t, i) {
|
|
1895
|
+
n.o(e, t) || Object.defineProperty(e, t, {
|
|
1896
1896
|
configurable: !1,
|
|
1897
1897
|
enumerable: !0,
|
|
1898
|
-
get:
|
|
1898
|
+
get: i
|
|
1899
1899
|
});
|
|
1900
|
-
}, n.n = function(
|
|
1901
|
-
var t =
|
|
1902
|
-
return
|
|
1900
|
+
}, n.n = function(e) {
|
|
1901
|
+
var t = e && e.__esModule ? function() {
|
|
1902
|
+
return e.default;
|
|
1903
1903
|
} : function() {
|
|
1904
|
-
return
|
|
1904
|
+
return e;
|
|
1905
1905
|
};
|
|
1906
1906
|
return n.d(t, "a", t), t;
|
|
1907
|
-
}, n.o = function(
|
|
1908
|
-
return Object.prototype.hasOwnProperty.call(
|
|
1907
|
+
}, n.o = function(e, t) {
|
|
1908
|
+
return Object.prototype.hasOwnProperty.call(e, t);
|
|
1909
1909
|
}, n.p = "", n(n.s = 1);
|
|
1910
|
-
}([function(m, A) {
|
|
1910
|
+
})([(function(m, A) {
|
|
1911
1911
|
m.exports = L;
|
|
1912
|
-
}, function(m, A, n) {
|
|
1913
|
-
var
|
|
1912
|
+
}), (function(m, A, n) {
|
|
1913
|
+
var e = n(0).layoutBase.LayoutConstants, t = n(0).layoutBase.FDLayoutConstants, i = n(0).CoSEConstants, r = n(0).CoSELayout, h = n(0).CoSENode, o = n(0).layoutBase.PointD, N = n(0).layoutBase.DimensionD, s = {
|
|
1914
1914
|
ready: function() {
|
|
1915
1915
|
},
|
|
1916
1916
|
stop: function() {
|
|
@@ -1947,7 +1947,7 @@ var z = /* @__PURE__ */ V((C, P) => {
|
|
|
1947
1947
|
this.options = g(s, c), p(this.options);
|
|
1948
1948
|
}
|
|
1949
1949
|
var p = function(c) {
|
|
1950
|
-
c.nodeRepulsion != null && (
|
|
1950
|
+
c.nodeRepulsion != null && (i.DEFAULT_REPULSION_STRENGTH = t.DEFAULT_REPULSION_STRENGTH = c.nodeRepulsion), c.idealEdgeLength != null && (i.DEFAULT_EDGE_LENGTH = t.DEFAULT_EDGE_LENGTH = c.idealEdgeLength), c.edgeElasticity != null && (i.DEFAULT_SPRING_STRENGTH = t.DEFAULT_SPRING_STRENGTH = c.edgeElasticity), c.nestingFactor != null && (i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = t.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = c.nestingFactor), c.gravity != null && (i.DEFAULT_GRAVITY_STRENGTH = t.DEFAULT_GRAVITY_STRENGTH = c.gravity), c.numIter != null && (i.MAX_ITERATIONS = t.MAX_ITERATIONS = c.numIter), c.gravityRange != null && (i.DEFAULT_GRAVITY_RANGE_FACTOR = t.DEFAULT_GRAVITY_RANGE_FACTOR = c.gravityRange), c.gravityCompound != null && (i.DEFAULT_COMPOUND_GRAVITY_STRENGTH = t.DEFAULT_COMPOUND_GRAVITY_STRENGTH = c.gravityCompound), c.gravityRangeCompound != null && (i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = t.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = c.gravityRangeCompound), c.initialEnergyOnIncremental != null && (i.DEFAULT_COOLING_FACTOR_INCREMENTAL = t.DEFAULT_COOLING_FACTOR_INCREMENTAL = c.initialEnergyOnIncremental), c.quality == "draft" ? e.QUALITY = 0 : c.quality == "proof" ? e.QUALITY = 2 : e.QUALITY = 1, i.NODE_DIMENSIONS_INCLUDE_LABELS = t.NODE_DIMENSIONS_INCLUDE_LABELS = e.NODE_DIMENSIONS_INCLUDE_LABELS = c.nodeDimensionsIncludeLabels, i.DEFAULT_INCREMENTAL = t.DEFAULT_INCREMENTAL = e.DEFAULT_INCREMENTAL = !c.randomize, i.ANIMATE = t.ANIMATE = e.ANIMATE = c.animate, i.TILE = c.tile, i.TILING_PADDING_VERTICAL = typeof c.tilingPaddingVertical == "function" ? c.tilingPaddingVertical.call() : c.tilingPaddingVertical, i.TILING_PADDING_HORIZONTAL = typeof c.tilingPaddingHorizontal == "function" ? c.tilingPaddingHorizontal.call() : c.tilingPaddingHorizontal;
|
|
1951
1951
|
};
|
|
1952
1952
|
u.prototype.run = function() {
|
|
1953
1953
|
var c, f, T = this.options;
|
|
@@ -2041,9 +2041,9 @@ var z = /* @__PURE__ */ V((C, P) => {
|
|
|
2041
2041
|
c("layout", "cose-bilkent", u);
|
|
2042
2042
|
};
|
|
2043
2043
|
typeof cytoscape < "u" && y(cytoscape), m.exports = y;
|
|
2044
|
-
}]);
|
|
2044
|
+
})]);
|
|
2045
2045
|
});
|
|
2046
|
-
}))());
|
|
2046
|
+
})))());
|
|
2047
2047
|
$.use(at.default);
|
|
2048
2048
|
function Q(C, P) {
|
|
2049
2049
|
C.forEach((L) => {
|
|
@@ -2182,7 +2182,7 @@ function rt(C) {
|
|
|
2182
2182
|
return !0;
|
|
2183
2183
|
}
|
|
2184
2184
|
k(rt, "validateLayoutData");
|
|
2185
|
-
var gt = /* @__PURE__ */ k(async (C, P, { insertCluster: L, insertEdge: m, insertEdgeLabel: A, insertMarkers: n, insertNode:
|
|
2185
|
+
var gt = /* @__PURE__ */ k(async (C, P, { insertCluster: L, insertEdge: m, insertEdgeLabel: A, insertMarkers: n, insertNode: e, log: t, positionEdgeLabel: i }, { algorithm: r }) => {
|
|
2186
2186
|
let h = {}, o = {}, N = P.select("g");
|
|
2187
2187
|
n(N, C.markers, C.type, C.diagramId);
|
|
2188
2188
|
let s = N.insert("g").attr("class", "subgraphs"), g = N.insert("g").attr("class", "edgePaths"), u = N.insert("g").attr("class", "edgeLabels"), p = N.insert("g").attr("class", "nodes");
|
|
@@ -2193,7 +2193,7 @@ var gt = /* @__PURE__ */ k(async (C, P, { insertCluster: L, insertEdge: m, inser
|
|
|
2193
2193
|
} else {
|
|
2194
2194
|
let f = { ...c };
|
|
2195
2195
|
h[c.id] = f;
|
|
2196
|
-
let T = await
|
|
2196
|
+
let T = await e(p, c, {
|
|
2197
2197
|
config: C.config,
|
|
2198
2198
|
dir: C.direction || "TB"
|
|
2199
2199
|
}), E = T.node().getBBox();
|
|
@@ -2213,7 +2213,7 @@ var gt = /* @__PURE__ */ k(async (C, P, { insertCluster: L, insertEdge: m, inser
|
|
|
2213
2213
|
}, C.config);
|
|
2214
2214
|
t.debug("Positioning nodes based on layout results"), y.nodes.forEach((c) => {
|
|
2215
2215
|
let f = h[c.id];
|
|
2216
|
-
f
|
|
2216
|
+
f?.domId && (f.domId.attr("transform", `translate(${c.x}, ${c.y})`), f.x = c.x, f.y = c.y, t.debug(`Positioned node ${f.id} at center (${c.x}, ${c.y})`));
|
|
2217
2217
|
}), y.edges.forEach((c) => {
|
|
2218
2218
|
let f = C.edges.find((T) => T.id === c.id);
|
|
2219
2219
|
f && (f.points = [
|
|
@@ -2238,7 +2238,7 @@ var gt = /* @__PURE__ */ k(async (C, P, { insertCluster: L, insertEdge: m, inser
|
|
|
2238
2238
|
if (E) {
|
|
2239
2239
|
t.debug("APA01 positionedEdge", E);
|
|
2240
2240
|
let O = { ...c };
|
|
2241
|
-
|
|
2241
|
+
i(O, m(g, O, o, C.type, f, T, C.diagramId));
|
|
2242
2242
|
} else {
|
|
2243
2243
|
let O = {
|
|
2244
2244
|
...c,
|
|
@@ -2250,7 +2250,7 @@ var gt = /* @__PURE__ */ k(async (C, P, { insertCluster: L, insertEdge: m, inser
|
|
|
2250
2250
|
y: T.y || 0
|
|
2251
2251
|
}]
|
|
2252
2252
|
};
|
|
2253
|
-
|
|
2253
|
+
i(O, m(g, O, o, C.type, f, T, C.diagramId));
|
|
2254
2254
|
}
|
|
2255
2255
|
}
|
|
2256
2256
|
})), t.debug("Cose-bilkent rendering completed");
|