@marimo-team/islands 0.13.16-dev2 → 0.13.16-dev4
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/{ConnectedDataExplorerComponent-BizAnuDQ.js → ConnectedDataExplorerComponent-W-BOfG8M.js} +1495 -1496
- package/dist/{VegaLite-BvtjUHLS.js → VegaLite-C9hsmU75.js} +12483 -12485
- package/dist/{_baseUniq-C1K8a5jF.js → _baseUniq-JsDeIdvj.js} +13 -13
- package/dist/{any-language-editor-D3C2KiQW.js → any-language-editor-BzZqDQm_.js} +2 -2
- package/dist/{architectureDiagram-IEHRJDOE-DhrFWr1a.js → architectureDiagram-IEHRJDOE-DnNsdc8e.js} +1800 -1800
- package/dist/asn1-jKiBa2Ya.js +10 -10
- package/dist/assets/{save-worker-9HEtFDM0.js → save-worker-DwN_qfSx.js} +695 -702
- package/dist/assets/{worker-BGGm0KYZ.js → worker-BzMPE1Lq.js} +732 -739
- package/dist/assets/{worker-BNsqBj5w.js → worker-ISYYr8IB.js} +726 -732
- package/dist/blockDiagram-JOT3LUYC-C_KEbscf.js +2249 -0
- package/dist/{c4Diagram-VJAJSXHY-DKSU0_Zg.js → c4Diagram-VJAJSXHY-B7trZ6_H.js} +401 -400
- package/dist/{channel-DMiLp-mI.js → channel-CwUzkjN9.js} +1 -1
- package/dist/chunk-4BMEZGHF-C4_0qa8X.js +9 -0
- package/dist/chunk-A2AXSNBT-DApfdN4z.js +1373 -0
- package/dist/chunk-AEK57VVT-D_rUaIu3.js +1416 -0
- package/dist/{chunk-D6G4REZN-BZV3ukOi.js → chunk-D6G4REZN-BJurAONC.js} +2 -2
- package/dist/{chunk-RZ5BOZE2-B4rOVQD8.js → chunk-RZ5BOZE2-ChOs68Hz.js} +8 -8
- package/dist/chunk-XZIHB7SX-CGbScEEe.js +16 -0
- package/dist/{classDiagram-GIVACNV2-DLRT4_A4.js → classDiagram-GIVACNV2-CqVjeibK.js} +2 -2
- package/dist/{classDiagram-v2-COTLJTTW-DLRT4_A4.js → classDiagram-v2-COTLJTTW-CqVjeibK.js} +2 -2
- package/dist/clojure-CCKyeQKf.js +2 -2
- package/dist/{clone-CPwu6xRn.js → clone-BPHB9gtw.js} +1 -1
- package/dist/css-bIlmDBTK.js +19 -19
- package/dist/{cytoscape.esm-DAyNQ0qu.js → cytoscape.esm-CCQ3SVU1.js} +2301 -2301
- package/dist/dagre-OKDRZEBW-EJUR9APO.js +447 -0
- package/dist/{data-editor-CYvUeKhw.js → data-editor-CvujN_l-.js} +5785 -5795
- package/dist/{diagram-SSKATNLV-D8WhiY2q.js → diagram-SSKATNLV-Bs-Zy3OO.js} +13 -13
- package/dist/{diagram-VNBRO52H-Bil9sOsr.js → diagram-VNBRO52H-rhV7IJ0T.js} +3 -3
- package/dist/{erDiagram-Q7BY3M3F-J-Jm-DD7.js → erDiagram-Q7BY3M3F-DwuCpdOL.js} +263 -262
- package/dist/flowDiagram-4HSFHLVR-CpbGvx3R.js +1623 -0
- package/dist/{ganttDiagram-APWFNJXF-C2G0-fOq.js → ganttDiagram-APWFNJXF-B9ih7Ggj.js} +45 -45
- package/dist/gitGraphDiagram-7IBYFJ6S-tTFS2NlF.js +712 -0
- package/dist/{graph-BFerxzEi.js → graph-DiSBbvS5.js} +9 -9
- package/dist/{index-DfpR00QG.js → index-BZo5-DOE.js} +99 -98
- package/dist/{index-j8M50mVa.js → index-CmU7bpCv.js} +4 -4
- package/dist/{index-DkuVwdVm.js → index-KrnLhU30.js} +9 -9
- package/dist/{index-BhtvwOag.js → index-TeAlNqJE.js} +28 -28
- package/dist/{infoDiagram-PH2N3AL5-AYtb1_Lz.js → infoDiagram-PH2N3AL5-COt3b362.js} +3 -3
- package/dist/javascript-WMWNx-Vj.js +47 -47
- package/dist/{journeyDiagram-U35MCT3I-Bdz9gIBI.js → journeyDiagram-U35MCT3I-Civ2cUVg.js} +18 -18
- package/dist/kanban-definition-NDS4AKOZ-QxhTc8lo.js +719 -0
- package/dist/{katex-9tX9hjoM.js → katex-CUSbq6rG.js} +2180 -2180
- package/dist/{layout-Qs-BVu8V.js → layout-B0SQ1LdD.js} +27 -27
- package/dist/{linear-SIbCb7yI.js → linear-Bn_UtFyT.js} +2 -2
- package/dist/main-ClxYr2BI.js +169878 -0
- package/dist/main.js +1 -1
- package/dist/mermaid-M3c3q4Qd.js +14517 -0
- package/dist/{mhchem-L5-rce7L.js → mhchem-Db_f2n8C.js} +30 -30
- package/dist/{min-BTA1UVkn.js → min-C0Jzc_ko.js} +2 -2
- package/dist/{mindmap-definition-ALO5MXBD-CdrD5BzZ.js → mindmap-definition-ALO5MXBD-BW8IbhiG.js} +359 -359
- package/dist/mllike-BSnXJBGA.js +7 -7
- package/dist/{pieDiagram-IB7DONF6-BbbxWeqU.js → pieDiagram-IB7DONF6-DIa7m5Au.js} +34 -34
- package/dist/pug-BqUR2bBq.js +35 -35
- package/dist/python-B5QdSKoL.js +18 -18
- package/dist/quadrantDiagram-7GDLP6J5-D1HtkiJK.js +1025 -0
- package/dist/{radar-MK3ICKWK-Z5R0bt0z.js → radar-MK3ICKWK-Dm3jRuoE.js} +2555 -2554
- package/dist/{react-plotly-DqDxe4Uh.js → react-plotly-CJ3A7ju0.js} +6595 -6597
- package/dist/{requirementDiagram-KVF5MWMF-DMnvzAxX.js → requirementDiagram-KVF5MWMF-b-q1aUEu.js} +251 -250
- package/dist/rpm-IznJm2Xc.js +9 -9
- package/dist/{sankeyDiagram-QLVOVGJD-DbUWg3a4.js → sankeyDiagram-QLVOVGJD-Bo4y0LBQ.js} +339 -338
- package/dist/{sequenceDiagram-X6HHIX6F-JltcBwLF.js → sequenceDiagram-X6HHIX6F-DMq4wla5.js} +822 -821
- package/dist/{slides-component-DVr5mf9p.js → slides-component-Cyh202Vq.js} +280 -280
- package/dist/sql-mMre1Bo3.js +9 -9
- package/dist/{stateDiagram-DGXRK772-qbXtyoS6.js → stateDiagram-DGXRK772-D_y0WAcv.js} +17 -17
- package/dist/{stateDiagram-v2-YXO3MK2T-Ba7q5pMK.js → stateDiagram-v2-YXO3MK2T-CHK5LNw7.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{time-DHD8Fix8.js → time-YVQKuiUR.js} +2 -2
- package/dist/{timeline-definition-BDJGKUSR-q4gOCBRq.js → timeline-definition-BDJGKUSR-DH63_P4w.js} +261 -261
- package/dist/timer-BYwnU4DF.js +378 -378
- package/dist/ttcn-cfg-Bac_acMi.js +9 -9
- package/dist/{vega-component-D2NZFVvw.js → vega-component-CUFBFMjm.js} +82 -82
- package/dist/{xychartDiagram-VJFVF3MP-BZs9xPvU.js → xychartDiagram-VJFVF3MP-3NU7tduZ.js} +472 -471
- package/package.json +1 -1
- package/dist/blockDiagram-JOT3LUYC-COVagShg.js +0 -2248
- package/dist/chunk-4BMEZGHF-CeMSohVe.js +0 -9
- package/dist/chunk-A2AXSNBT-mQ3fXQfx.js +0 -1372
- package/dist/chunk-AEK57VVT-B7kw2yt6.js +0 -1415
- package/dist/chunk-XZIHB7SX-C3-5SkZh.js +0 -15
- package/dist/dagre-OKDRZEBW-yEQf6TwX.js +0 -447
- package/dist/flowDiagram-4HSFHLVR-Dhymtq1g.js +0 -1622
- package/dist/gitGraphDiagram-7IBYFJ6S-DCZAwPro.js +0 -712
- package/dist/kanban-definition-NDS4AKOZ-ByLpDX9Y.js +0 -719
- package/dist/main-Cx3zrED9.js +0 -156521
- package/dist/mermaid-DAi_EtLa.js +0 -11991
- package/dist/quadrantDiagram-7GDLP6J5-1UQgbW9Z.js +0 -1024
package/dist/{mindmap-definition-ALO5MXBD-CdrD5BzZ.js → mindmap-definition-ALO5MXBD-BW8IbhiG.js}
RENAMED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { _ as S, l as z, c as ot, K as Nt, T as Dt, H as it, i as nt, V as mt, W as Ot, X as At, d as It, a4 as Ct, P as Rt } from "./mermaid-
|
|
2
|
-
import { c as dt } from "./cytoscape.esm-
|
|
3
|
-
import { S as xt } from "./main-
|
|
1
|
+
import { _ as S, l as z, c as ot, K as Nt, T as Dt, H as it, i as nt, V as mt, W as Ot, X as At, d as It, a4 as Ct, P as Rt } from "./mermaid-M3c3q4Qd.js";
|
|
2
|
+
import { c as dt } from "./cytoscape.esm-CCQ3SVU1.js";
|
|
3
|
+
import { S as xt } from "./main-ClxYr2BI.js";
|
|
4
4
|
var tt = { exports: {} }, et = { exports: {} }, rt = { exports: {} }, Mt = rt.exports, ut;
|
|
5
5
|
function wt() {
|
|
6
6
|
return ut || (ut = 1, function(I, w) {
|
|
7
|
-
(function(m,
|
|
8
|
-
I.exports =
|
|
7
|
+
(function(m, v) {
|
|
8
|
+
I.exports = v();
|
|
9
9
|
})(Mt, function() {
|
|
10
10
|
return (
|
|
11
11
|
/******/
|
|
12
12
|
function(f) {
|
|
13
13
|
var m = {};
|
|
14
|
-
function
|
|
14
|
+
function v(r) {
|
|
15
15
|
if (m[r])
|
|
16
16
|
return m[r].exports;
|
|
17
17
|
var t = m[r] = {
|
|
18
18
|
/******/
|
|
19
19
|
i: r,
|
|
20
20
|
/******/
|
|
21
|
-
l:
|
|
21
|
+
l: false,
|
|
22
22
|
/******/
|
|
23
23
|
exports: {}
|
|
24
24
|
/******/
|
|
25
25
|
};
|
|
26
|
-
return f[r].call(t.exports, t, t.exports,
|
|
26
|
+
return f[r].call(t.exports, t, t.exports, v), t.l = true, t.exports;
|
|
27
27
|
}
|
|
28
|
-
return
|
|
28
|
+
return v.m = f, v.c = m, v.i = function(r) {
|
|
29
29
|
return r;
|
|
30
|
-
},
|
|
31
|
-
|
|
30
|
+
}, v.d = function(r, t, e) {
|
|
31
|
+
v.o(r, t) || Object.defineProperty(r, t, {
|
|
32
32
|
/******/
|
|
33
|
-
configurable:
|
|
33
|
+
configurable: false,
|
|
34
34
|
/******/
|
|
35
|
-
enumerable:
|
|
35
|
+
enumerable: true,
|
|
36
36
|
/******/
|
|
37
37
|
get: e
|
|
38
38
|
/******/
|
|
39
39
|
});
|
|
40
|
-
},
|
|
40
|
+
}, v.n = function(r) {
|
|
41
41
|
var t = r && r.__esModule ? (
|
|
42
42
|
/******/
|
|
43
43
|
function() {
|
|
@@ -49,24 +49,24 @@ function wt() {
|
|
|
49
49
|
return r;
|
|
50
50
|
}
|
|
51
51
|
);
|
|
52
|
-
return
|
|
53
|
-
},
|
|
52
|
+
return v.d(t, "a", t), t;
|
|
53
|
+
}, v.o = function(r, t) {
|
|
54
54
|
return Object.prototype.hasOwnProperty.call(r, t);
|
|
55
|
-
},
|
|
55
|
+
}, v.p = "", v(v.s = 26);
|
|
56
56
|
}([
|
|
57
57
|
/* 0 */
|
|
58
58
|
/***/
|
|
59
|
-
function(f, m,
|
|
59
|
+
function(f, m, v) {
|
|
60
60
|
function r() {
|
|
61
61
|
}
|
|
62
|
-
r.QUALITY = 1, r.DEFAULT_CREATE_BENDS_AS_NEEDED =
|
|
62
|
+
r.QUALITY = 1, r.DEFAULT_CREATE_BENDS_AS_NEEDED = false, r.DEFAULT_INCREMENTAL = false, r.DEFAULT_ANIMATION_ON_LAYOUT = true, r.DEFAULT_ANIMATION_DURING_LAYOUT = false, r.DEFAULT_ANIMATION_PERIOD = 50, r.DEFAULT_UNIFORM_LEAF_NODE_SIZES = false, r.DEFAULT_GRAPH_MARGIN = 15, r.NODE_DIMENSIONS_INCLUDE_LABELS = false, r.SIMPLE_NODE_SIZE = 40, r.SIMPLE_NODE_HALF_SIZE = r.SIMPLE_NODE_SIZE / 2, r.EMPTY_COMPOUND_NODE_SIZE = 40, r.MIN_EDGE_LENGTH = 1, r.WORLD_BOUNDARY = 1e6, r.INITIAL_WORLD_BOUNDARY = r.WORLD_BOUNDARY / 1e3, r.WORLD_CENTER_X = 1200, r.WORLD_CENTER_Y = 900, f.exports = r;
|
|
63
63
|
},
|
|
64
64
|
/* 1 */
|
|
65
65
|
/***/
|
|
66
|
-
function(f, m,
|
|
67
|
-
var r =
|
|
68
|
-
function i(g, a,
|
|
69
|
-
r.call(this,
|
|
66
|
+
function(f, m, v) {
|
|
67
|
+
var r = v(2), t = v(8), e = v(9);
|
|
68
|
+
function i(g, a, y) {
|
|
69
|
+
r.call(this, y), this.isOverlapingSourceAndTarget = false, this.vGraphObject = y, this.bendpoints = [], this.source = g, this.target = a;
|
|
70
70
|
}
|
|
71
71
|
i.prototype = Object.create(r.prototype);
|
|
72
72
|
for (var o in r)
|
|
@@ -96,12 +96,12 @@ function wt() {
|
|
|
96
96
|
return this.source;
|
|
97
97
|
throw "Node is not incident with this edge";
|
|
98
98
|
}, i.prototype.getOtherEndInGraph = function(g, a) {
|
|
99
|
-
for (var
|
|
100
|
-
if (
|
|
101
|
-
return
|
|
102
|
-
if (
|
|
99
|
+
for (var y = this.getOtherEnd(g), n = a.getGraphManager().getRoot(); ; ) {
|
|
100
|
+
if (y.getOwner() == a)
|
|
101
|
+
return y;
|
|
102
|
+
if (y.getOwner() == n)
|
|
103
103
|
break;
|
|
104
|
-
|
|
104
|
+
y = y.getOwner().getParent();
|
|
105
105
|
}
|
|
106
106
|
return null;
|
|
107
107
|
}, i.prototype.updateLength = function() {
|
|
@@ -113,7 +113,7 @@ function wt() {
|
|
|
113
113
|
},
|
|
114
114
|
/* 2 */
|
|
115
115
|
/***/
|
|
116
|
-
function(f, m,
|
|
116
|
+
function(f, m, v) {
|
|
117
117
|
function r(t) {
|
|
118
118
|
this.vGraphObject = t;
|
|
119
119
|
}
|
|
@@ -121,14 +121,14 @@ function wt() {
|
|
|
121
121
|
},
|
|
122
122
|
/* 3 */
|
|
123
123
|
/***/
|
|
124
|
-
function(f, m,
|
|
125
|
-
var r =
|
|
124
|
+
function(f, m, v) {
|
|
125
|
+
var r = v(2), t = v(10), e = v(13), i = v(0), o = v(16), g = v(4);
|
|
126
126
|
function a(n, c, l, E) {
|
|
127
127
|
l == null && E == null && (E = c), r.call(this, E), n.graphManager != null && (n = n.graphManager), this.estimatedSize = t.MIN_VALUE, this.inclusionTreeDepth = t.MAX_VALUE, this.vGraphObject = E, this.edges = [], this.graphManager = n, l != null && c != null ? this.rect = new e(c.x, c.y, l.width, l.height) : this.rect = new e();
|
|
128
128
|
}
|
|
129
129
|
a.prototype = Object.create(r.prototype);
|
|
130
|
-
for (var
|
|
131
|
-
a[
|
|
130
|
+
for (var y in r)
|
|
131
|
+
a[y] = r[y];
|
|
132
132
|
a.prototype.getEdges = function() {
|
|
133
133
|
return this.edges;
|
|
134
134
|
}, a.prototype.getChild = function() {
|
|
@@ -222,7 +222,7 @@ function wt() {
|
|
|
222
222
|
throw "assert failed";
|
|
223
223
|
if (this.getChild().getNodes().length != 0) {
|
|
224
224
|
var n = this.getChild();
|
|
225
|
-
if (n.updateBounds(
|
|
225
|
+
if (n.updateBounds(true), this.rect.x = n.getLeft(), this.rect.y = n.getTop(), this.setWidth(n.getRight() - n.getLeft()), this.setHeight(n.getBottom() - n.getTop()), i.NODE_DIMENSIONS_INCLUDE_LABELS) {
|
|
226
226
|
var c = n.getRight() - n.getLeft(), l = n.getBottom() - n.getTop();
|
|
227
227
|
this.labelWidth > c && (this.rect.x -= (this.labelWidth - c) / 2, this.setWidth(this.labelWidth)), this.labelHeight > l && (this.labelPos == "center" ? this.rect.y -= (this.labelHeight - l) / 2 : this.labelPos == "top" && (this.rect.y -= this.labelHeight - l), this.setHeight(this.labelHeight));
|
|
228
228
|
}
|
|
@@ -252,7 +252,7 @@ function wt() {
|
|
|
252
252
|
},
|
|
253
253
|
/* 4 */
|
|
254
254
|
/***/
|
|
255
|
-
function(f, m,
|
|
255
|
+
function(f, m, v) {
|
|
256
256
|
function r(t, e) {
|
|
257
257
|
t == null && e == null ? (this.x = 0, this.y = 0) : (this.x = t, this.y = e);
|
|
258
258
|
}
|
|
@@ -274,10 +274,10 @@ function wt() {
|
|
|
274
274
|
},
|
|
275
275
|
/* 5 */
|
|
276
276
|
/***/
|
|
277
|
-
function(f, m,
|
|
278
|
-
var r =
|
|
277
|
+
function(f, m, v) {
|
|
278
|
+
var r = v(2), t = v(10), e = v(0), i = v(6), o = v(3), g = v(1), a = v(13), y = v(12), n = v(11);
|
|
279
279
|
function c(E, T, D) {
|
|
280
|
-
r.call(this, D), this.estimatedSize = t.MIN_VALUE, this.margin = e.DEFAULT_GRAPH_MARGIN, this.edges = [], this.nodes = [], this.isConnected =
|
|
280
|
+
r.call(this, D), this.estimatedSize = t.MIN_VALUE, this.margin = e.DEFAULT_GRAPH_MARGIN, this.edges = [], this.nodes = [], this.isConnected = false, this.parent = E, T != null && T instanceof i ? this.graphManager = T : T != null && T instanceof Layout && (this.graphManager = T.graphManager);
|
|
281
281
|
}
|
|
282
282
|
c.prototype = Object.create(r.prototype);
|
|
283
283
|
for (var l in r)
|
|
@@ -314,7 +314,7 @@ function wt() {
|
|
|
314
314
|
throw "Source or target not in graph!";
|
|
315
315
|
if (!(T.owner == D.owner && T.owner == this))
|
|
316
316
|
throw "Both owners must be this graph!";
|
|
317
|
-
return T.owner != D.owner ? null : (O.source = T, O.target = D, O.isInterGraph =
|
|
317
|
+
return T.owner != D.owner ? null : (O.source = T, O.target = D, O.isInterGraph = false, this.getEdges().push(O), T.edges.push(O), D != T && D.edges.push(O), O);
|
|
318
318
|
}
|
|
319
319
|
}, c.prototype.remove = function(E) {
|
|
320
320
|
var T = E;
|
|
@@ -353,7 +353,7 @@ function wt() {
|
|
|
353
353
|
var h = d[s];
|
|
354
354
|
D = h.getTop(), L = h.getLeft(), E > D && (E = D), T > L && (T = L);
|
|
355
355
|
}
|
|
356
|
-
return E == t.MAX_VALUE ? null : (d[0].getParent().paddingLeft != null ? O = d[0].getParent().paddingLeft : O = this.margin, this.left = T - O, this.top = E - O, new
|
|
356
|
+
return E == t.MAX_VALUE ? null : (d[0].getParent().paddingLeft != null ? O = d[0].getParent().paddingLeft : O = this.margin, this.left = T - O, this.top = E - O, new y(this.left, this.top));
|
|
357
357
|
}, c.prototype.updateBounds = function(E) {
|
|
358
358
|
for (var T = t.MAX_VALUE, D = -t.MAX_VALUE, L = t.MAX_VALUE, O = -t.MAX_VALUE, d, N, s, h, u, p = this.nodes, A = p.length, C = 0; C < A; C++) {
|
|
359
359
|
var R = p[C];
|
|
@@ -383,7 +383,7 @@ function wt() {
|
|
|
383
383
|
}, c.prototype.updateConnected = function() {
|
|
384
384
|
var E = this;
|
|
385
385
|
if (this.nodes.length == 0) {
|
|
386
|
-
this.isConnected =
|
|
386
|
+
this.isConnected = true;
|
|
387
387
|
return;
|
|
388
388
|
}
|
|
389
389
|
var T = new n(), D = /* @__PURE__ */ new Set(), L = this.nodes[0], O, d, N = L.withChildren();
|
|
@@ -401,26 +401,26 @@ function wt() {
|
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
if (this.isConnected =
|
|
404
|
+
if (this.isConnected = false, D.size >= this.nodes.length) {
|
|
405
405
|
var A = 0;
|
|
406
406
|
D.forEach(function(C) {
|
|
407
407
|
C.owner == E && A++;
|
|
408
|
-
}), A == this.nodes.length && (this.isConnected =
|
|
408
|
+
}), A == this.nodes.length && (this.isConnected = true);
|
|
409
409
|
}
|
|
410
410
|
}, f.exports = c;
|
|
411
411
|
},
|
|
412
412
|
/* 6 */
|
|
413
413
|
/***/
|
|
414
|
-
function(f, m,
|
|
415
|
-
var r, t =
|
|
414
|
+
function(f, m, v) {
|
|
415
|
+
var r, t = v(1);
|
|
416
416
|
function e(i) {
|
|
417
|
-
r =
|
|
417
|
+
r = v(5), this.layout = i, this.graphs = [], this.edges = [];
|
|
418
418
|
}
|
|
419
419
|
e.prototype.addRoot = function() {
|
|
420
420
|
var i = this.layout.newGraph(), o = this.layout.newNode(null), g = this.add(i, o);
|
|
421
421
|
return this.setRootGraph(g), this.rootGraph;
|
|
422
|
-
}, e.prototype.add = function(i, o, g, a,
|
|
423
|
-
if (g == null && a == null &&
|
|
422
|
+
}, e.prototype.add = function(i, o, g, a, y) {
|
|
423
|
+
if (g == null && a == null && y == null) {
|
|
424
424
|
if (i == null)
|
|
425
425
|
throw "Graph is null!";
|
|
426
426
|
if (o == null)
|
|
@@ -433,15 +433,15 @@ function wt() {
|
|
|
433
433
|
throw "Already has a child!";
|
|
434
434
|
return i.parent = o, o.child = i, i;
|
|
435
435
|
} else {
|
|
436
|
-
|
|
437
|
-
var n = a.getOwner(), c =
|
|
436
|
+
y = g, a = o, g = i;
|
|
437
|
+
var n = a.getOwner(), c = y.getOwner();
|
|
438
438
|
if (!(n != null && n.getGraphManager() == this))
|
|
439
439
|
throw "Source not in this graph mgr!";
|
|
440
440
|
if (!(c != null && c.getGraphManager() == this))
|
|
441
441
|
throw "Target not in this graph mgr!";
|
|
442
442
|
if (n == c)
|
|
443
|
-
return g.isInterGraph =
|
|
444
|
-
if (g.isInterGraph =
|
|
443
|
+
return g.isInterGraph = false, n.add(g, a, y);
|
|
444
|
+
if (g.isInterGraph = true, g.source = a, g.target = y, this.edges.indexOf(g) > -1)
|
|
445
445
|
throw "Edge already in inter-graph edge list!";
|
|
446
446
|
if (this.edges.push(g), !(g.source != null && g.target != null))
|
|
447
447
|
throw "Edge source and/or target is null!";
|
|
@@ -458,13 +458,13 @@ function wt() {
|
|
|
458
458
|
throw "Invalid parent node!";
|
|
459
459
|
var g = [];
|
|
460
460
|
g = g.concat(o.getEdges());
|
|
461
|
-
for (var a,
|
|
461
|
+
for (var a, y = g.length, n = 0; n < y; n++)
|
|
462
462
|
a = g[n], o.remove(a);
|
|
463
463
|
var c = [];
|
|
464
464
|
c = c.concat(o.getNodes());
|
|
465
465
|
var l;
|
|
466
|
-
|
|
467
|
-
for (var n = 0; n <
|
|
466
|
+
y = c.length;
|
|
467
|
+
for (var n = 0; n < y; n++)
|
|
468
468
|
l = c[n], o.remove(l);
|
|
469
469
|
o == this.rootGraph && this.setRootGraph(null);
|
|
470
470
|
var E = this.graphs.indexOf(o);
|
|
@@ -487,7 +487,7 @@ function wt() {
|
|
|
487
487
|
a.source.owner.getGraphManager().edges.splice(E, 1);
|
|
488
488
|
}
|
|
489
489
|
}, e.prototype.updateBounds = function() {
|
|
490
|
-
this.rootGraph.updateBounds(
|
|
490
|
+
this.rootGraph.updateBounds(true);
|
|
491
491
|
}, e.prototype.getGraphs = function() {
|
|
492
492
|
return this.graphs;
|
|
493
493
|
}, e.prototype.getAllNodes = function() {
|
|
@@ -530,43 +530,43 @@ function wt() {
|
|
|
530
530
|
if (!(i != null && o != null))
|
|
531
531
|
throw "assert failed";
|
|
532
532
|
if (i == o)
|
|
533
|
-
return
|
|
533
|
+
return true;
|
|
534
534
|
var g = i.getOwner(), a;
|
|
535
535
|
do {
|
|
536
536
|
if (a = g.getParent(), a == null)
|
|
537
537
|
break;
|
|
538
538
|
if (a == o)
|
|
539
|
-
return
|
|
539
|
+
return true;
|
|
540
540
|
if (g = a.getOwner(), g == null)
|
|
541
541
|
break;
|
|
542
|
-
} while (
|
|
542
|
+
} while (true);
|
|
543
543
|
g = o.getOwner();
|
|
544
544
|
do {
|
|
545
545
|
if (a = g.getParent(), a == null)
|
|
546
546
|
break;
|
|
547
547
|
if (a == i)
|
|
548
|
-
return
|
|
548
|
+
return true;
|
|
549
549
|
if (g = a.getOwner(), g == null)
|
|
550
550
|
break;
|
|
551
|
-
} while (
|
|
552
|
-
return
|
|
551
|
+
} while (true);
|
|
552
|
+
return false;
|
|
553
553
|
}, e.prototype.calcLowestCommonAncestors = function() {
|
|
554
|
-
for (var i, o, g, a,
|
|
554
|
+
for (var i, o, g, a, y, n = this.getAllEdges(), c = n.length, l = 0; l < c; l++) {
|
|
555
555
|
if (i = n[l], o = i.source, g = i.target, i.lca = null, i.sourceInLca = o, i.targetInLca = g, o == g) {
|
|
556
556
|
i.lca = o.getOwner();
|
|
557
557
|
continue;
|
|
558
558
|
}
|
|
559
559
|
for (a = o.getOwner(); i.lca == null; ) {
|
|
560
|
-
for (i.targetInLca = g,
|
|
561
|
-
if (
|
|
562
|
-
i.lca =
|
|
560
|
+
for (i.targetInLca = g, y = g.getOwner(); i.lca == null; ) {
|
|
561
|
+
if (y == a) {
|
|
562
|
+
i.lca = y;
|
|
563
563
|
break;
|
|
564
564
|
}
|
|
565
|
-
if (
|
|
565
|
+
if (y == this.rootGraph)
|
|
566
566
|
break;
|
|
567
567
|
if (i.lca != null)
|
|
568
568
|
throw "assert failed";
|
|
569
|
-
i.targetInLca =
|
|
569
|
+
i.targetInLca = y.getParent(), y = i.targetInLca.getOwner();
|
|
570
570
|
}
|
|
571
571
|
if (a == this.rootGraph)
|
|
572
572
|
break;
|
|
@@ -589,35 +589,35 @@ function wt() {
|
|
|
589
589
|
if (a == g)
|
|
590
590
|
return a;
|
|
591
591
|
a = a.getParent().getOwner();
|
|
592
|
-
} while (
|
|
592
|
+
} while (true);
|
|
593
593
|
g = g.getParent().getOwner();
|
|
594
|
-
} while (
|
|
594
|
+
} while (true);
|
|
595
595
|
return g;
|
|
596
596
|
}, e.prototype.calcInclusionTreeDepths = function(i, o) {
|
|
597
597
|
i == null && o == null && (i = this.rootGraph, o = 1);
|
|
598
|
-
for (var g, a = i.getNodes(),
|
|
598
|
+
for (var g, a = i.getNodes(), y = a.length, n = 0; n < y; n++)
|
|
599
599
|
g = a[n], g.inclusionTreeDepth = o, g.child != null && this.calcInclusionTreeDepths(g.child, o + 1);
|
|
600
600
|
}, e.prototype.includesInvalidEdge = function() {
|
|
601
601
|
for (var i, o = this.edges.length, g = 0; g < o; g++)
|
|
602
602
|
if (i = this.edges[g], this.isOneAncestorOfOther(i.source, i.target))
|
|
603
|
-
return
|
|
604
|
-
return
|
|
603
|
+
return true;
|
|
604
|
+
return false;
|
|
605
605
|
}, f.exports = e;
|
|
606
606
|
},
|
|
607
607
|
/* 7 */
|
|
608
608
|
/***/
|
|
609
|
-
function(f, m,
|
|
610
|
-
var r =
|
|
609
|
+
function(f, m, v) {
|
|
610
|
+
var r = v(0);
|
|
611
611
|
function t() {
|
|
612
612
|
}
|
|
613
613
|
for (var e in r)
|
|
614
614
|
t[e] = r[e];
|
|
615
|
-
t.MAX_ITERATIONS = 2500, t.DEFAULT_EDGE_LENGTH = 50, t.DEFAULT_SPRING_STRENGTH = 0.45, t.DEFAULT_REPULSION_STRENGTH = 4500, t.DEFAULT_GRAVITY_STRENGTH = 0.4, t.DEFAULT_COMPOUND_GRAVITY_STRENGTH = 1, t.DEFAULT_GRAVITY_RANGE_FACTOR = 3.8, t.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = 1.5, t.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION =
|
|
615
|
+
t.MAX_ITERATIONS = 2500, t.DEFAULT_EDGE_LENGTH = 50, t.DEFAULT_SPRING_STRENGTH = 0.45, t.DEFAULT_REPULSION_STRENGTH = 4500, t.DEFAULT_GRAVITY_STRENGTH = 0.4, t.DEFAULT_COMPOUND_GRAVITY_STRENGTH = 1, t.DEFAULT_GRAVITY_RANGE_FACTOR = 3.8, t.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = 1.5, t.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION = true, t.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION = true, t.DEFAULT_COOLING_FACTOR_INCREMENTAL = 0.3, t.COOLING_ADAPTATION_FACTOR = 0.33, t.ADAPTATION_LOWER_NODE_LIMIT = 1e3, t.ADAPTATION_UPPER_NODE_LIMIT = 5e3, t.MAX_NODE_DISPLACEMENT_INCREMENTAL = 100, t.MAX_NODE_DISPLACEMENT = t.MAX_NODE_DISPLACEMENT_INCREMENTAL * 3, t.MIN_REPULSION_DIST = t.DEFAULT_EDGE_LENGTH / 10, t.CONVERGENCE_CHECK_PERIOD = 100, t.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = 0.1, t.MIN_EDGE_LENGTH = 1, t.GRID_CALCULATION_CHECK_PERIOD = 10, f.exports = t;
|
|
616
616
|
},
|
|
617
617
|
/* 8 */
|
|
618
618
|
/***/
|
|
619
|
-
function(f, m,
|
|
620
|
-
var r =
|
|
619
|
+
function(f, m, v) {
|
|
620
|
+
var r = v(12);
|
|
621
621
|
function t() {
|
|
622
622
|
}
|
|
623
623
|
t.calcSeparationAmount = function(e, i, o, g) {
|
|
@@ -625,32 +625,32 @@ function wt() {
|
|
|
625
625
|
throw "assert failed";
|
|
626
626
|
var a = new Array(2);
|
|
627
627
|
this.decideDirectionsForOverlappingNodes(e, i, a), o[0] = Math.min(e.getRight(), i.getRight()) - Math.max(e.x, i.x), o[1] = Math.min(e.getBottom(), i.getBottom()) - Math.max(e.y, i.y), e.getX() <= i.getX() && e.getRight() >= i.getRight() ? o[0] += Math.min(i.getX() - e.getX(), e.getRight() - i.getRight()) : i.getX() <= e.getX() && i.getRight() >= e.getRight() && (o[0] += Math.min(e.getX() - i.getX(), i.getRight() - e.getRight())), e.getY() <= i.getY() && e.getBottom() >= i.getBottom() ? o[1] += Math.min(i.getY() - e.getY(), e.getBottom() - i.getBottom()) : i.getY() <= e.getY() && i.getBottom() >= e.getBottom() && (o[1] += Math.min(e.getY() - i.getY(), i.getBottom() - e.getBottom()));
|
|
628
|
-
var
|
|
629
|
-
i.getCenterY() === e.getCenterY() && i.getCenterX() === e.getCenterX() && (
|
|
630
|
-
var n =
|
|
628
|
+
var y = Math.abs((i.getCenterY() - e.getCenterY()) / (i.getCenterX() - e.getCenterX()));
|
|
629
|
+
i.getCenterY() === e.getCenterY() && i.getCenterX() === e.getCenterX() && (y = 1);
|
|
630
|
+
var n = y * o[0], c = o[1] / y;
|
|
631
631
|
o[0] < c ? c = o[0] : n = o[1], o[0] = -1 * a[0] * (c / 2 + g), o[1] = -1 * a[1] * (n / 2 + g);
|
|
632
632
|
}, t.decideDirectionsForOverlappingNodes = function(e, i, o) {
|
|
633
633
|
e.getCenterX() < i.getCenterX() ? o[0] = -1 : o[0] = 1, e.getCenterY() < i.getCenterY() ? o[1] = -1 : o[1] = 1;
|
|
634
634
|
}, t.getIntersection2 = function(e, i, o) {
|
|
635
|
-
var g = e.getCenterX(), a = e.getCenterY(),
|
|
635
|
+
var g = e.getCenterX(), a = e.getCenterY(), y = i.getCenterX(), n = i.getCenterY();
|
|
636
636
|
if (e.intersects(i))
|
|
637
|
-
return o[0] = g, o[1] = a, o[2] =
|
|
638
|
-
var c = e.getX(), l = e.getY(), E = e.getRight(), T = e.getX(), D = e.getBottom(), L = e.getRight(), O = e.getWidthHalf(), d = e.getHeightHalf(), N = i.getX(), s = i.getY(), h = i.getRight(), u = i.getX(), p = i.getBottom(), A = i.getRight(), C = i.getWidthHalf(), R = i.getHeightHalf(), x =
|
|
639
|
-
if (g ===
|
|
637
|
+
return o[0] = g, o[1] = a, o[2] = y, o[3] = n, true;
|
|
638
|
+
var c = e.getX(), l = e.getY(), E = e.getRight(), T = e.getX(), D = e.getBottom(), L = e.getRight(), O = e.getWidthHalf(), d = e.getHeightHalf(), N = i.getX(), s = i.getY(), h = i.getRight(), u = i.getX(), p = i.getBottom(), A = i.getRight(), C = i.getWidthHalf(), R = i.getHeightHalf(), x = false, _ = false;
|
|
639
|
+
if (g === y) {
|
|
640
640
|
if (a > n)
|
|
641
|
-
return o[0] = g, o[1] = l, o[2] =
|
|
641
|
+
return o[0] = g, o[1] = l, o[2] = y, o[3] = p, false;
|
|
642
642
|
if (a < n)
|
|
643
|
-
return o[0] = g, o[1] = D, o[2] =
|
|
643
|
+
return o[0] = g, o[1] = D, o[2] = y, o[3] = s, false;
|
|
644
644
|
} else if (a === n) {
|
|
645
|
-
if (g >
|
|
646
|
-
return o[0] = c, o[1] = a, o[2] = h, o[3] = n,
|
|
647
|
-
if (g <
|
|
648
|
-
return o[0] = E, o[1] = a, o[2] = N, o[3] = n,
|
|
645
|
+
if (g > y)
|
|
646
|
+
return o[0] = c, o[1] = a, o[2] = h, o[3] = n, false;
|
|
647
|
+
if (g < y)
|
|
648
|
+
return o[0] = E, o[1] = a, o[2] = N, o[3] = n, false;
|
|
649
649
|
} else {
|
|
650
|
-
var U = e.height / e.width, X = i.height / i.width, M = (n - a) / (
|
|
651
|
-
if (-U === M ? g >
|
|
652
|
-
return
|
|
653
|
-
if (g >
|
|
650
|
+
var U = e.height / e.width, X = i.height / i.width, M = (n - a) / (y - g), G = void 0, F = void 0, b = void 0, Y = void 0, k = void 0, H = void 0;
|
|
651
|
+
if (-U === M ? g > y ? (o[0] = T, o[1] = D, x = true) : (o[0] = E, o[1] = l, x = true) : U === M && (g > y ? (o[0] = c, o[1] = l, x = true) : (o[0] = L, o[1] = D, x = true)), -X === M ? y > g ? (o[2] = u, o[3] = p, _ = true) : (o[2] = h, o[3] = s, _ = true) : X === M && (y > g ? (o[2] = N, o[3] = s, _ = true) : (o[2] = A, o[3] = p, _ = true)), x && _)
|
|
652
|
+
return false;
|
|
653
|
+
if (g > y ? a > n ? (G = this.getCardinalDirection(U, M, 4), F = this.getCardinalDirection(X, M, 2)) : (G = this.getCardinalDirection(-U, M, 3), F = this.getCardinalDirection(-X, M, 1)) : a > n ? (G = this.getCardinalDirection(-U, M, 1), F = this.getCardinalDirection(-X, M, 3)) : (G = this.getCardinalDirection(U, M, 2), F = this.getCardinalDirection(X, M, 4)), !x)
|
|
654
654
|
switch (G) {
|
|
655
655
|
case 1:
|
|
656
656
|
Y = l, b = g + -d / M, o[0] = b, o[1] = Y;
|
|
@@ -668,41 +668,41 @@ function wt() {
|
|
|
668
668
|
if (!_)
|
|
669
669
|
switch (F) {
|
|
670
670
|
case 1:
|
|
671
|
-
H = s, k =
|
|
671
|
+
H = s, k = y + -R / M, o[2] = k, o[3] = H;
|
|
672
672
|
break;
|
|
673
673
|
case 2:
|
|
674
674
|
k = A, H = n + C * M, o[2] = k, o[3] = H;
|
|
675
675
|
break;
|
|
676
676
|
case 3:
|
|
677
|
-
H = p, k =
|
|
677
|
+
H = p, k = y + R / M, o[2] = k, o[3] = H;
|
|
678
678
|
break;
|
|
679
679
|
case 4:
|
|
680
680
|
k = u, H = n + -C * M, o[2] = k, o[3] = H;
|
|
681
681
|
break;
|
|
682
682
|
}
|
|
683
683
|
}
|
|
684
|
-
return
|
|
684
|
+
return false;
|
|
685
685
|
}, t.getCardinalDirection = function(e, i, o) {
|
|
686
686
|
return e > i ? o : 1 + o % 4;
|
|
687
687
|
}, t.getIntersection = function(e, i, o, g) {
|
|
688
688
|
if (g == null)
|
|
689
689
|
return this.getIntersection2(e, i, o);
|
|
690
|
-
var a = e.x,
|
|
691
|
-
return d = c -
|
|
690
|
+
var a = e.x, y = e.y, n = i.x, c = i.y, l = o.x, E = o.y, T = g.x, D = g.y, L = void 0, O = void 0, d = void 0, N = void 0, s = void 0, h = void 0, u = void 0, p = void 0, A = void 0;
|
|
691
|
+
return d = c - y, s = a - n, u = n * y - a * c, N = D - E, h = l - T, p = T * E - l * D, A = d * h - N * s, A === 0 ? null : (L = (s * p - h * u) / A, O = (N * u - d * p) / A, new r(L, O));
|
|
692
692
|
}, t.angleOfVector = function(e, i, o, g) {
|
|
693
693
|
var a = void 0;
|
|
694
694
|
return e !== o ? (a = Math.atan((g - i) / (o - e)), o < e ? a += Math.PI : g < i && (a += this.TWO_PI)) : g < i ? a = this.ONE_AND_HALF_PI : a = this.HALF_PI, a;
|
|
695
695
|
}, t.doIntersect = function(e, i, o, g) {
|
|
696
|
-
var a = e.x,
|
|
696
|
+
var a = e.x, y = e.y, n = i.x, c = i.y, l = o.x, E = o.y, T = g.x, D = g.y, L = (n - a) * (D - E) - (T - l) * (c - y);
|
|
697
697
|
if (L === 0)
|
|
698
|
-
return
|
|
699
|
-
var O = ((D - E) * (T - a) + (l - T) * (D -
|
|
698
|
+
return false;
|
|
699
|
+
var O = ((D - E) * (T - a) + (l - T) * (D - y)) / L, d = ((y - c) * (T - a) + (n - a) * (D - y)) / L;
|
|
700
700
|
return 0 < O && O < 1 && 0 < d && d < 1;
|
|
701
701
|
}, t.HALF_PI = 0.5 * Math.PI, t.ONE_AND_HALF_PI = 1.5 * Math.PI, t.TWO_PI = 2 * Math.PI, t.THREE_PI = 3 * Math.PI, f.exports = t;
|
|
702
702
|
},
|
|
703
703
|
/* 9 */
|
|
704
704
|
/***/
|
|
705
|
-
function(f, m,
|
|
705
|
+
function(f, m, v) {
|
|
706
706
|
function r() {
|
|
707
707
|
}
|
|
708
708
|
r.sign = function(t) {
|
|
@@ -715,40 +715,40 @@ function wt() {
|
|
|
715
715
|
},
|
|
716
716
|
/* 10 */
|
|
717
717
|
/***/
|
|
718
|
-
function(f, m,
|
|
718
|
+
function(f, m, v) {
|
|
719
719
|
function r() {
|
|
720
720
|
}
|
|
721
721
|
r.MAX_VALUE = 2147483647, r.MIN_VALUE = -2147483648, f.exports = r;
|
|
722
722
|
},
|
|
723
723
|
/* 11 */
|
|
724
724
|
/***/
|
|
725
|
-
function(f, m,
|
|
725
|
+
function(f, m, v) {
|
|
726
726
|
var r = /* @__PURE__ */ function() {
|
|
727
|
-
function a(
|
|
727
|
+
function a(y, n) {
|
|
728
728
|
for (var c = 0; c < n.length; c++) {
|
|
729
729
|
var l = n[c];
|
|
730
|
-
l.enumerable = l.enumerable ||
|
|
730
|
+
l.enumerable = l.enumerable || false, l.configurable = true, "value" in l && (l.writable = true), Object.defineProperty(y, l.key, l);
|
|
731
731
|
}
|
|
732
732
|
}
|
|
733
|
-
return function(
|
|
734
|
-
return n && a(
|
|
733
|
+
return function(y, n, c) {
|
|
734
|
+
return n && a(y.prototype, n), c && a(y, c), y;
|
|
735
735
|
};
|
|
736
736
|
}();
|
|
737
|
-
function t(a,
|
|
738
|
-
if (!(a instanceof
|
|
737
|
+
function t(a, y) {
|
|
738
|
+
if (!(a instanceof y))
|
|
739
739
|
throw new TypeError("Cannot call a class as a function");
|
|
740
740
|
}
|
|
741
|
-
var e = function(
|
|
742
|
-
return { value:
|
|
743
|
-
}, i = function(
|
|
744
|
-
return
|
|
745
|
-
}, o = function(
|
|
746
|
-
var c =
|
|
747
|
-
return c !== null ? c.next = l : n.head = l, l !== null ? l.prev = c : n.tail = c,
|
|
741
|
+
var e = function(y) {
|
|
742
|
+
return { value: y, next: null, prev: null };
|
|
743
|
+
}, i = function(y, n, c, l) {
|
|
744
|
+
return y !== null ? y.next = n : l.head = n, c !== null ? c.prev = n : l.tail = n, n.prev = y, n.next = c, l.length++, n;
|
|
745
|
+
}, o = function(y, n) {
|
|
746
|
+
var c = y.prev, l = y.next;
|
|
747
|
+
return c !== null ? c.next = l : n.head = l, l !== null ? l.prev = c : n.tail = c, y.prev = y.next = null, n.length--, y;
|
|
748
748
|
}, g = function() {
|
|
749
|
-
function a(
|
|
749
|
+
function a(y) {
|
|
750
750
|
var n = this;
|
|
751
|
-
t(this, a), this.length = 0, this.head = null, this.tail = null,
|
|
751
|
+
t(this, a), this.length = 0, this.head = null, this.tail = null, y == null ? void 0 : y.forEach(function(c) {
|
|
752
752
|
return n.push(c);
|
|
753
753
|
});
|
|
754
754
|
}
|
|
@@ -836,7 +836,7 @@ function wt() {
|
|
|
836
836
|
},
|
|
837
837
|
/* 12 */
|
|
838
838
|
/***/
|
|
839
|
-
function(f, m,
|
|
839
|
+
function(f, m, v) {
|
|
840
840
|
function r(t, e, i) {
|
|
841
841
|
this.x = null, this.y = null, t == null && e == null && i == null ? (this.x = 0, this.y = 0) : typeof t == "number" && typeof e == "number" && i == null ? (this.x = t, this.y = e) : t.constructor.name == "Point" && e == null && i == null && (i = t, this.x = i.x, this.y = i.y);
|
|
842
842
|
}
|
|
@@ -864,7 +864,7 @@ function wt() {
|
|
|
864
864
|
},
|
|
865
865
|
/* 13 */
|
|
866
866
|
/***/
|
|
867
|
-
function(f, m,
|
|
867
|
+
function(f, m, v) {
|
|
868
868
|
function r(t, e, i, o) {
|
|
869
869
|
this.x = 0, this.y = 0, this.width = 0, this.height = 0, t != null && e != null && i != null && o != null && (this.x = t, this.y = e, this.width = i, this.height = o);
|
|
870
870
|
}
|
|
@@ -910,7 +910,7 @@ function wt() {
|
|
|
910
910
|
},
|
|
911
911
|
/* 14 */
|
|
912
912
|
/***/
|
|
913
|
-
function(f, m,
|
|
913
|
+
function(f, m, v) {
|
|
914
914
|
var r = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
915
915
|
return typeof e;
|
|
916
916
|
} : function(e) {
|
|
@@ -929,7 +929,7 @@ function wt() {
|
|
|
929
929
|
},
|
|
930
930
|
/* 15 */
|
|
931
931
|
/***/
|
|
932
|
-
function(f, m,
|
|
932
|
+
function(f, m, v) {
|
|
933
933
|
function r(l) {
|
|
934
934
|
if (Array.isArray(l)) {
|
|
935
935
|
for (var E = 0, T = Array(l.length); E < l.length; E++)
|
|
@@ -938,9 +938,9 @@ function wt() {
|
|
|
938
938
|
} else
|
|
939
939
|
return Array.from(l);
|
|
940
940
|
}
|
|
941
|
-
var t =
|
|
941
|
+
var t = v(0), e = v(6), i = v(3), o = v(1), g = v(5), a = v(4), y = v(17), n = v(27);
|
|
942
942
|
function c(l) {
|
|
943
|
-
n.call(this), this.layoutQuality = t.QUALITY, this.createBendsAsNeeded = t.DEFAULT_CREATE_BENDS_AS_NEEDED, this.incremental = t.DEFAULT_INCREMENTAL, this.animationOnLayout = t.DEFAULT_ANIMATION_ON_LAYOUT, this.animationDuringLayout = t.DEFAULT_ANIMATION_DURING_LAYOUT, this.animationPeriod = t.DEFAULT_ANIMATION_PERIOD, this.uniformLeafNodeSizes = t.DEFAULT_UNIFORM_LEAF_NODE_SIZES, this.edgeToDummyNodes = /* @__PURE__ */ new Map(), this.graphManager = new e(this), this.isLayoutFinished =
|
|
943
|
+
n.call(this), this.layoutQuality = t.QUALITY, this.createBendsAsNeeded = t.DEFAULT_CREATE_BENDS_AS_NEEDED, this.incremental = t.DEFAULT_INCREMENTAL, this.animationOnLayout = t.DEFAULT_ANIMATION_ON_LAYOUT, this.animationDuringLayout = t.DEFAULT_ANIMATION_DURING_LAYOUT, this.animationPeriod = t.DEFAULT_ANIMATION_PERIOD, this.uniformLeafNodeSizes = t.DEFAULT_UNIFORM_LEAF_NODE_SIZES, this.edgeToDummyNodes = /* @__PURE__ */ new Map(), this.graphManager = new e(this), this.isLayoutFinished = false, this.isSubLayout = false, this.isRemoteUse = false, l != null && (this.isRemoteUse = l);
|
|
944
944
|
}
|
|
945
945
|
c.RANDOM_SEED = 1, c.prototype = Object.create(n.prototype), c.prototype.getGraphManager = function() {
|
|
946
946
|
return this.graphManager;
|
|
@@ -962,9 +962,9 @@ function wt() {
|
|
|
962
962
|
}, c.prototype.checkLayoutSuccess = function() {
|
|
963
963
|
return this.graphManager.getRoot() == null || this.graphManager.getRoot().getNodes().length == 0 || this.graphManager.includesInvalidEdge();
|
|
964
964
|
}, c.prototype.runLayout = function() {
|
|
965
|
-
this.isLayoutFinished =
|
|
965
|
+
this.isLayoutFinished = false, this.tilingPreLayout && this.tilingPreLayout(), this.initParameters();
|
|
966
966
|
var l;
|
|
967
|
-
return this.checkLayoutSuccess() ? l =
|
|
967
|
+
return this.checkLayoutSuccess() ? l = false : l = this.layout(), t.ANIMATE === "during" ? false : (l && (this.isSubLayout || this.doPostLayout()), this.tilingPostLayout && this.tilingPostLayout(), this.isLayoutFinished = true, l);
|
|
968
968
|
}, c.prototype.doPostLayout = function() {
|
|
969
969
|
this.incremental || this.transform(), this.update();
|
|
970
970
|
}, c.prototype.update2 = function() {
|
|
@@ -1001,12 +1001,12 @@ function wt() {
|
|
|
1001
1001
|
}
|
|
1002
1002
|
}
|
|
1003
1003
|
}, c.prototype.initParameters = function() {
|
|
1004
|
-
this.isSubLayout || (this.layoutQuality = t.QUALITY, this.animationDuringLayout = t.DEFAULT_ANIMATION_DURING_LAYOUT, this.animationPeriod = t.DEFAULT_ANIMATION_PERIOD, this.animationOnLayout = t.DEFAULT_ANIMATION_ON_LAYOUT, this.incremental = t.DEFAULT_INCREMENTAL, this.createBendsAsNeeded = t.DEFAULT_CREATE_BENDS_AS_NEEDED, this.uniformLeafNodeSizes = t.DEFAULT_UNIFORM_LEAF_NODE_SIZES), this.animationDuringLayout && (this.animationOnLayout =
|
|
1004
|
+
this.isSubLayout || (this.layoutQuality = t.QUALITY, this.animationDuringLayout = t.DEFAULT_ANIMATION_DURING_LAYOUT, this.animationPeriod = t.DEFAULT_ANIMATION_PERIOD, this.animationOnLayout = t.DEFAULT_ANIMATION_ON_LAYOUT, this.incremental = t.DEFAULT_INCREMENTAL, this.createBendsAsNeeded = t.DEFAULT_CREATE_BENDS_AS_NEEDED, this.uniformLeafNodeSizes = t.DEFAULT_UNIFORM_LEAF_NODE_SIZES), this.animationDuringLayout && (this.animationOnLayout = false);
|
|
1005
1005
|
}, c.prototype.transform = function(l) {
|
|
1006
1006
|
if (l == null)
|
|
1007
1007
|
this.transform(new a(0, 0));
|
|
1008
1008
|
else {
|
|
1009
|
-
var E = new
|
|
1009
|
+
var E = new y(), T = this.graphManager.getRoot().updateLeftTop();
|
|
1010
1010
|
if (T != null) {
|
|
1011
1011
|
E.setWorldOrgX(l.x), E.setWorldOrgY(l.y), E.setDeviceOrgX(T.x), E.setDeviceOrgY(T.y);
|
|
1012
1012
|
for (var D = this.getAllNodes(), L, O = 0; O < D.length; O++)
|
|
@@ -1015,13 +1015,13 @@ function wt() {
|
|
|
1015
1015
|
}
|
|
1016
1016
|
}, c.prototype.positionNodesRandomly = function(l) {
|
|
1017
1017
|
if (l == null)
|
|
1018
|
-
this.positionNodesRandomly(this.getGraphManager().getRoot()), this.getGraphManager().getRoot().updateBounds(
|
|
1018
|
+
this.positionNodesRandomly(this.getGraphManager().getRoot()), this.getGraphManager().getRoot().updateBounds(true);
|
|
1019
1019
|
else
|
|
1020
1020
|
for (var E, T, D = l.getNodes(), L = 0; L < D.length; L++)
|
|
1021
1021
|
E = D[L], T = E.getChild(), T == null || T.getNodes().length == 0 ? E.scatter() : (this.positionNodesRandomly(T), E.updateBounds());
|
|
1022
1022
|
}, c.prototype.getFlatForest = function() {
|
|
1023
|
-
for (var l = [], E =
|
|
1024
|
-
T[L].getChild() != null && (D =
|
|
1023
|
+
for (var l = [], E = true, T = this.graphManager.getRoot().getNodes(), D = true, L = 0; L < T.length; L++)
|
|
1024
|
+
T[L].getChild() != null && (D = false);
|
|
1025
1025
|
if (!D)
|
|
1026
1026
|
return l;
|
|
1027
1027
|
var O = /* @__PURE__ */ new Set(), d = [], N = /* @__PURE__ */ new Map(), s = [];
|
|
@@ -1035,7 +1035,7 @@ function wt() {
|
|
|
1035
1035
|
if (!O.has(p))
|
|
1036
1036
|
d.push(p), N.set(p, h);
|
|
1037
1037
|
else {
|
|
1038
|
-
E =
|
|
1038
|
+
E = false;
|
|
1039
1039
|
break;
|
|
1040
1040
|
}
|
|
1041
1041
|
}
|
|
@@ -1093,8 +1093,8 @@ function wt() {
|
|
|
1093
1093
|
}, c.findCenterOfTree = function(l) {
|
|
1094
1094
|
var E = [];
|
|
1095
1095
|
E = E.concat(l);
|
|
1096
|
-
var T = [], D = /* @__PURE__ */ new Map(), L =
|
|
1097
|
-
(E.length == 1 || E.length == 2) && (L =
|
|
1096
|
+
var T = [], D = /* @__PURE__ */ new Map(), L = false, O = null;
|
|
1097
|
+
(E.length == 1 || E.length == 2) && (L = true, O = E[0]);
|
|
1098
1098
|
for (var d = 0; d < E.length; d++) {
|
|
1099
1099
|
var N = E[d], s = N.getNeighborsList().size;
|
|
1100
1100
|
D.set(N, N.getNeighborsList().size), s == 1 && T.push(N);
|
|
@@ -1114,7 +1114,7 @@ function wt() {
|
|
|
1114
1114
|
}
|
|
1115
1115
|
});
|
|
1116
1116
|
}
|
|
1117
|
-
T = T.concat(h), (E.length == 1 || E.length == 2) && (L =
|
|
1117
|
+
T = T.concat(h), (E.length == 1 || E.length == 2) && (L = true, O = E[0]);
|
|
1118
1118
|
}
|
|
1119
1119
|
return O;
|
|
1120
1120
|
}, c.prototype.setGraphManager = function(l) {
|
|
@@ -1123,7 +1123,7 @@ function wt() {
|
|
|
1123
1123
|
},
|
|
1124
1124
|
/* 16 */
|
|
1125
1125
|
/***/
|
|
1126
|
-
function(f, m,
|
|
1126
|
+
function(f, m, v) {
|
|
1127
1127
|
function r() {
|
|
1128
1128
|
}
|
|
1129
1129
|
r.seed = 1, r.x = 0, r.nextDouble = function() {
|
|
@@ -1132,8 +1132,8 @@ function wt() {
|
|
|
1132
1132
|
},
|
|
1133
1133
|
/* 17 */
|
|
1134
1134
|
/***/
|
|
1135
|
-
function(f, m,
|
|
1136
|
-
var r =
|
|
1135
|
+
function(f, m, v) {
|
|
1136
|
+
var r = v(4);
|
|
1137
1137
|
function t(e, i) {
|
|
1138
1138
|
this.lworldOrgX = 0, this.lworldOrgY = 0, this.ldeviceOrgX = 0, this.ldeviceOrgY = 0, this.lworldExtX = 1, this.lworldExtY = 1, this.ldeviceExtX = 1, this.ldeviceExtY = 1;
|
|
1139
1139
|
}
|
|
@@ -1188,7 +1188,7 @@ function wt() {
|
|
|
1188
1188
|
},
|
|
1189
1189
|
/* 18 */
|
|
1190
1190
|
/***/
|
|
1191
|
-
function(f, m,
|
|
1191
|
+
function(f, m, v) {
|
|
1192
1192
|
function r(n) {
|
|
1193
1193
|
if (Array.isArray(n)) {
|
|
1194
1194
|
for (var c = 0, l = Array(n.length); c < n.length; c++)
|
|
@@ -1197,13 +1197,13 @@ function wt() {
|
|
|
1197
1197
|
} else
|
|
1198
1198
|
return Array.from(n);
|
|
1199
1199
|
}
|
|
1200
|
-
var t =
|
|
1200
|
+
var t = v(15), e = v(7), i = v(0), o = v(8), g = v(9);
|
|
1201
1201
|
function a() {
|
|
1202
1202
|
t.call(this), this.useSmartIdealEdgeLengthCalculation = e.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION, this.idealEdgeLength = e.DEFAULT_EDGE_LENGTH, this.springConstant = e.DEFAULT_SPRING_STRENGTH, this.repulsionConstant = e.DEFAULT_REPULSION_STRENGTH, this.gravityConstant = e.DEFAULT_GRAVITY_STRENGTH, this.compoundGravityConstant = e.DEFAULT_COMPOUND_GRAVITY_STRENGTH, this.gravityRangeFactor = e.DEFAULT_GRAVITY_RANGE_FACTOR, this.compoundGravityRangeFactor = e.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR, this.displacementThresholdPerNode = 3 * e.DEFAULT_EDGE_LENGTH / 100, this.coolingFactor = e.DEFAULT_COOLING_FACTOR_INCREMENTAL, this.initialCoolingFactor = e.DEFAULT_COOLING_FACTOR_INCREMENTAL, this.totalDisplacement = 0, this.oldTotalDisplacement = 0, this.maxIterations = e.MAX_ITERATIONS;
|
|
1203
1203
|
}
|
|
1204
1204
|
a.prototype = Object.create(t.prototype);
|
|
1205
|
-
for (var
|
|
1206
|
-
a[
|
|
1205
|
+
for (var y in t)
|
|
1206
|
+
a[y] = t[y];
|
|
1207
1207
|
a.prototype.initParameters = function() {
|
|
1208
1208
|
t.prototype.initParameters.call(this, arguments), this.totalIterations = 0, this.notAnimatedIterations = 0, this.useFRGridVariant = e.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION, this.grid = [];
|
|
1209
1209
|
}, a.prototype.calcIdealEdgeLengths = function() {
|
|
@@ -1216,7 +1216,7 @@ function wt() {
|
|
|
1216
1216
|
for (var n = this.getAllEdges(), c, l = 0; l < n.length; l++)
|
|
1217
1217
|
c = n[l], this.calcSpringForce(c, c.idealLength);
|
|
1218
1218
|
}, a.prototype.calcRepulsionForces = function() {
|
|
1219
|
-
var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
1219
|
+
var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true, c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false, l, E, T, D, L = this.getAllNodes(), O;
|
|
1220
1220
|
if (this.useFRGridVariant)
|
|
1221
1221
|
for (this.totalIterations % e.GRID_CALCULATION_CHECK_PERIOD == 1 && n && this.updateGrid(), O = /* @__PURE__ */ new Set(), l = 0; l < L.length; l++)
|
|
1222
1222
|
T = L[l], this.calculateRepulsionForceOfANode(T, O, n, c), O.add(T);
|
|
@@ -1249,7 +1249,7 @@ function wt() {
|
|
|
1249
1249
|
var c, l, E, T, D, L, O, d;
|
|
1250
1250
|
c = n.getOwner(), l = (c.getRight() + c.getLeft()) / 2, E = (c.getTop() + c.getBottom()) / 2, T = n.getCenterX() - l, D = n.getCenterY() - E, L = Math.abs(T) + n.getWidth() / 2, O = Math.abs(D) + n.getHeight() / 2, n.getOwner() == this.graphManager.getRoot() ? (d = c.getEstimatedSize() * this.gravityRangeFactor, (L > d || O > d) && (n.gravitationForceX = -this.gravityConstant * T, n.gravitationForceY = -this.gravityConstant * D)) : (d = c.getEstimatedSize() * this.compoundGravityRangeFactor, (L > d || O > d) && (n.gravitationForceX = -this.gravityConstant * T * this.compoundGravityConstant, n.gravitationForceY = -this.gravityConstant * D * this.compoundGravityConstant));
|
|
1251
1251
|
}, a.prototype.isConverged = function() {
|
|
1252
|
-
var n, c =
|
|
1252
|
+
var n, c = false;
|
|
1253
1253
|
return this.totalIterations > this.maxIterations / 3 && (c = Math.abs(this.totalDisplacement - this.oldTotalDisplacement) < 2), n = this.totalDisplacement < this.totalDisplacementThreshold, this.oldTotalDisplacement = this.totalDisplacement, n || c;
|
|
1254
1254
|
}, a.prototype.animate = function() {
|
|
1255
1255
|
this.animationDuringLayout && !this.isSubLayout && (this.notAnimatedIterations == this.animationPeriod ? (this.update(), this.notAnimatedIterations = 0) : this.notAnimatedIterations++);
|
|
@@ -1298,8 +1298,8 @@ function wt() {
|
|
|
1298
1298
|
},
|
|
1299
1299
|
/* 19 */
|
|
1300
1300
|
/***/
|
|
1301
|
-
function(f, m,
|
|
1302
|
-
var r =
|
|
1301
|
+
function(f, m, v) {
|
|
1302
|
+
var r = v(1), t = v(7);
|
|
1303
1303
|
function e(o, g, a) {
|
|
1304
1304
|
r.call(this, o, g, a), this.idealLength = t.DEFAULT_EDGE_LENGTH;
|
|
1305
1305
|
}
|
|
@@ -1310,8 +1310,8 @@ function wt() {
|
|
|
1310
1310
|
},
|
|
1311
1311
|
/* 20 */
|
|
1312
1312
|
/***/
|
|
1313
|
-
function(f, m,
|
|
1314
|
-
var r =
|
|
1313
|
+
function(f, m, v) {
|
|
1314
|
+
var r = v(3);
|
|
1315
1315
|
function t(i, o, g, a) {
|
|
1316
1316
|
r.call(this, i, o, g, a), 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 = [];
|
|
1317
1317
|
}
|
|
@@ -1324,7 +1324,7 @@ function wt() {
|
|
|
1324
1324
|
},
|
|
1325
1325
|
/* 21 */
|
|
1326
1326
|
/***/
|
|
1327
|
-
function(f, m,
|
|
1327
|
+
function(f, m, v) {
|
|
1328
1328
|
function r(t, e) {
|
|
1329
1329
|
this.width = 0, this.height = 0, t !== null && e !== null && (this.height = e, this.width = t);
|
|
1330
1330
|
}
|
|
@@ -1340,8 +1340,8 @@ function wt() {
|
|
|
1340
1340
|
},
|
|
1341
1341
|
/* 22 */
|
|
1342
1342
|
/***/
|
|
1343
|
-
function(f, m,
|
|
1344
|
-
var r =
|
|
1343
|
+
function(f, m, v) {
|
|
1344
|
+
var r = v(14);
|
|
1345
1345
|
function t() {
|
|
1346
1346
|
this.map = {}, this.keys = [];
|
|
1347
1347
|
}
|
|
@@ -1359,8 +1359,8 @@ function wt() {
|
|
|
1359
1359
|
},
|
|
1360
1360
|
/* 23 */
|
|
1361
1361
|
/***/
|
|
1362
|
-
function(f, m,
|
|
1363
|
-
var r =
|
|
1362
|
+
function(f, m, v) {
|
|
1363
|
+
var r = v(14);
|
|
1364
1364
|
function t() {
|
|
1365
1365
|
this.set = {};
|
|
1366
1366
|
}
|
|
@@ -1391,40 +1391,40 @@ function wt() {
|
|
|
1391
1391
|
},
|
|
1392
1392
|
/* 24 */
|
|
1393
1393
|
/***/
|
|
1394
|
-
function(f, m,
|
|
1394
|
+
function(f, m, v) {
|
|
1395
1395
|
var r = /* @__PURE__ */ function() {
|
|
1396
1396
|
function o(g, a) {
|
|
1397
|
-
for (var
|
|
1398
|
-
var n = a[
|
|
1399
|
-
n.enumerable = n.enumerable ||
|
|
1397
|
+
for (var y = 0; y < a.length; y++) {
|
|
1398
|
+
var n = a[y];
|
|
1399
|
+
n.enumerable = n.enumerable || false, n.configurable = true, "value" in n && (n.writable = true), Object.defineProperty(g, n.key, n);
|
|
1400
1400
|
}
|
|
1401
1401
|
}
|
|
1402
|
-
return function(g, a,
|
|
1403
|
-
return a && o(g.prototype, a),
|
|
1402
|
+
return function(g, a, y) {
|
|
1403
|
+
return a && o(g.prototype, a), y && o(g, y), g;
|
|
1404
1404
|
};
|
|
1405
1405
|
}();
|
|
1406
1406
|
function t(o, g) {
|
|
1407
1407
|
if (!(o instanceof g))
|
|
1408
1408
|
throw new TypeError("Cannot call a class as a function");
|
|
1409
1409
|
}
|
|
1410
|
-
var e =
|
|
1410
|
+
var e = v(11), i = function() {
|
|
1411
1411
|
function o(g, a) {
|
|
1412
1412
|
t(this, o), (a !== null || a !== void 0) && (this.compareFunction = this._defaultCompareFunction);
|
|
1413
|
-
var
|
|
1414
|
-
g instanceof e ?
|
|
1413
|
+
var y = void 0;
|
|
1414
|
+
g instanceof e ? y = g.size() : y = g.length, this._quicksort(g, 0, y - 1);
|
|
1415
1415
|
}
|
|
1416
1416
|
return r(o, [{
|
|
1417
1417
|
key: "_quicksort",
|
|
1418
|
-
value: function(a,
|
|
1419
|
-
if (
|
|
1420
|
-
var c = this._partition(a,
|
|
1421
|
-
this._quicksort(a,
|
|
1418
|
+
value: function(a, y, n) {
|
|
1419
|
+
if (y < n) {
|
|
1420
|
+
var c = this._partition(a, y, n);
|
|
1421
|
+
this._quicksort(a, y, c), this._quicksort(a, c + 1, n);
|
|
1422
1422
|
}
|
|
1423
1423
|
}
|
|
1424
1424
|
}, {
|
|
1425
1425
|
key: "_partition",
|
|
1426
|
-
value: function(a,
|
|
1427
|
-
for (var c = this._get(a,
|
|
1426
|
+
value: function(a, y, n) {
|
|
1427
|
+
for (var c = this._get(a, y), l = y, E = n; ; ) {
|
|
1428
1428
|
for (; this.compareFunction(c, this._get(a, E)); )
|
|
1429
1429
|
E--;
|
|
1430
1430
|
for (; this.compareFunction(this._get(a, l), c); )
|
|
@@ -1436,24 +1436,24 @@ function wt() {
|
|
|
1436
1436
|
}
|
|
1437
1437
|
}, {
|
|
1438
1438
|
key: "_get",
|
|
1439
|
-
value: function(a,
|
|
1440
|
-
return a instanceof e ? a.get_object_at(
|
|
1439
|
+
value: function(a, y) {
|
|
1440
|
+
return a instanceof e ? a.get_object_at(y) : a[y];
|
|
1441
1441
|
}
|
|
1442
1442
|
}, {
|
|
1443
1443
|
key: "_set",
|
|
1444
|
-
value: function(a,
|
|
1445
|
-
a instanceof e ? a.set_object_at(
|
|
1444
|
+
value: function(a, y, n) {
|
|
1445
|
+
a instanceof e ? a.set_object_at(y, n) : a[y] = n;
|
|
1446
1446
|
}
|
|
1447
1447
|
}, {
|
|
1448
1448
|
key: "_swap",
|
|
1449
|
-
value: function(a,
|
|
1450
|
-
var c = this._get(a,
|
|
1451
|
-
this._set(a,
|
|
1449
|
+
value: function(a, y, n) {
|
|
1450
|
+
var c = this._get(a, y);
|
|
1451
|
+
this._set(a, y, this._get(a, n)), this._set(a, n, c);
|
|
1452
1452
|
}
|
|
1453
1453
|
}, {
|
|
1454
1454
|
key: "_defaultCompareFunction",
|
|
1455
|
-
value: function(a,
|
|
1456
|
-
return
|
|
1455
|
+
value: function(a, y) {
|
|
1456
|
+
return y > a;
|
|
1457
1457
|
}
|
|
1458
1458
|
}]), o;
|
|
1459
1459
|
}();
|
|
@@ -1461,12 +1461,12 @@ function wt() {
|
|
|
1461
1461
|
},
|
|
1462
1462
|
/* 25 */
|
|
1463
1463
|
/***/
|
|
1464
|
-
function(f, m,
|
|
1464
|
+
function(f, m, v) {
|
|
1465
1465
|
var r = /* @__PURE__ */ function() {
|
|
1466
1466
|
function i(o, g) {
|
|
1467
1467
|
for (var a = 0; a < g.length; a++) {
|
|
1468
|
-
var
|
|
1469
|
-
|
|
1468
|
+
var y = g[a];
|
|
1469
|
+
y.enumerable = y.enumerable || false, y.configurable = true, "value" in y && (y.writable = true), Object.defineProperty(o, y.key, y);
|
|
1470
1470
|
}
|
|
1471
1471
|
}
|
|
1472
1472
|
return function(o, g, a) {
|
|
@@ -1479,8 +1479,8 @@ function wt() {
|
|
|
1479
1479
|
}
|
|
1480
1480
|
var e = function() {
|
|
1481
1481
|
function i(o, g) {
|
|
1482
|
-
var a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1,
|
|
1483
|
-
t(this, i), this.sequence1 = o, this.sequence2 = g, this.match_score = a, this.mismatch_penalty =
|
|
1482
|
+
var a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, y = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : -1, n = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : -1;
|
|
1483
|
+
t(this, i), this.sequence1 = o, this.sequence2 = g, this.match_score = a, this.mismatch_penalty = y, this.gap_penalty = n, this.iMax = o.length + 1, this.jMax = g.length + 1, this.grid = new Array(this.iMax);
|
|
1484
1484
|
for (var c = 0; c < this.iMax; c++) {
|
|
1485
1485
|
this.grid[c] = new Array(this.jMax);
|
|
1486
1486
|
for (var l = 0; l < this.jMax; l++)
|
|
@@ -1509,15 +1509,15 @@ function wt() {
|
|
|
1509
1509
|
key: "computeGrids",
|
|
1510
1510
|
value: function() {
|
|
1511
1511
|
for (var g = 1; g < this.jMax; g++)
|
|
1512
|
-
this.grid[0][g] = this.grid[0][g - 1] + this.gap_penalty, this.tracebackGrid[0][g] = [
|
|
1512
|
+
this.grid[0][g] = this.grid[0][g - 1] + this.gap_penalty, this.tracebackGrid[0][g] = [false, false, true];
|
|
1513
1513
|
for (var a = 1; a < this.iMax; a++)
|
|
1514
|
-
this.grid[a][0] = this.grid[a - 1][0] + this.gap_penalty, this.tracebackGrid[a][0] = [
|
|
1515
|
-
for (var
|
|
1514
|
+
this.grid[a][0] = this.grid[a - 1][0] + this.gap_penalty, this.tracebackGrid[a][0] = [false, true, false];
|
|
1515
|
+
for (var y = 1; y < this.iMax; y++)
|
|
1516
1516
|
for (var n = 1; n < this.jMax; n++) {
|
|
1517
1517
|
var c = void 0;
|
|
1518
|
-
this.sequence1[
|
|
1519
|
-
var l = this.grid[
|
|
1520
|
-
this.grid[
|
|
1518
|
+
this.sequence1[y - 1] === this.sequence2[n - 1] ? c = this.grid[y - 1][n - 1] + this.match_score : c = this.grid[y - 1][n - 1] + this.mismatch_penalty;
|
|
1519
|
+
var l = this.grid[y - 1][n] + this.gap_penalty, E = this.grid[y][n - 1] + this.gap_penalty, T = [c, l, E], D = this.arrayAllMaxIndexes(T);
|
|
1520
|
+
this.grid[y][n] = T[D[0]], this.tracebackGrid[y][n] = [D.includes(0), D.includes(1), D.includes(2)];
|
|
1521
1521
|
}
|
|
1522
1522
|
this.score = this.grid[this.iMax - 1][this.jMax - 1];
|
|
1523
1523
|
}
|
|
@@ -1531,16 +1531,16 @@ function wt() {
|
|
|
1531
1531
|
seq1: "",
|
|
1532
1532
|
seq2: ""
|
|
1533
1533
|
}); g[0]; ) {
|
|
1534
|
-
var a = g[0],
|
|
1535
|
-
|
|
1534
|
+
var a = g[0], y = this.tracebackGrid[a.pos[0]][a.pos[1]];
|
|
1535
|
+
y[0] && g.push({
|
|
1536
1536
|
pos: [a.pos[0] - 1, a.pos[1] - 1],
|
|
1537
1537
|
seq1: this.sequence1[a.pos[0] - 1] + a.seq1,
|
|
1538
1538
|
seq2: this.sequence2[a.pos[1] - 1] + a.seq2
|
|
1539
|
-
}),
|
|
1539
|
+
}), y[1] && g.push({
|
|
1540
1540
|
pos: [a.pos[0] - 1, a.pos[1]],
|
|
1541
1541
|
seq1: this.sequence1[a.pos[0] - 1] + a.seq1,
|
|
1542
1542
|
seq2: "-" + a.seq2
|
|
1543
|
-
}),
|
|
1543
|
+
}), y[2] && g.push({
|
|
1544
1544
|
pos: [a.pos[0], a.pos[1] - 1],
|
|
1545
1545
|
seq1: "-" + a.seq1,
|
|
1546
1546
|
seq2: this.sequence2[a.pos[1] - 1] + a.seq2
|
|
@@ -1555,9 +1555,9 @@ function wt() {
|
|
|
1555
1555
|
}, {
|
|
1556
1556
|
key: "getAllIndexes",
|
|
1557
1557
|
value: function(g, a) {
|
|
1558
|
-
for (var
|
|
1559
|
-
|
|
1560
|
-
return
|
|
1558
|
+
for (var y = [], n = -1; (n = g.indexOf(a, n + 1)) !== -1; )
|
|
1559
|
+
y.push(n);
|
|
1560
|
+
return y;
|
|
1561
1561
|
}
|
|
1562
1562
|
}, {
|
|
1563
1563
|
key: "arrayAllMaxIndexes",
|
|
@@ -1570,14 +1570,14 @@ function wt() {
|
|
|
1570
1570
|
},
|
|
1571
1571
|
/* 26 */
|
|
1572
1572
|
/***/
|
|
1573
|
-
function(f, m,
|
|
1573
|
+
function(f, m, v) {
|
|
1574
1574
|
var r = function() {
|
|
1575
1575
|
};
|
|
1576
|
-
r.FDLayout =
|
|
1576
|
+
r.FDLayout = v(18), r.FDLayoutConstants = v(7), r.FDLayoutEdge = v(19), r.FDLayoutNode = v(20), r.DimensionD = v(21), r.HashMap = v(22), r.HashSet = v(23), r.IGeometry = v(8), r.IMath = v(9), r.Integer = v(10), r.Point = v(12), r.PointD = v(4), r.RandomSeed = v(16), r.RectangleD = v(13), r.Transform = v(17), r.UniqueIDGeneretor = v(14), r.Quicksort = v(24), r.LinkedList = v(11), r.LGraphObject = v(2), r.LGraph = v(5), r.LEdge = v(1), r.LGraphManager = v(6), r.LNode = v(3), r.Layout = v(15), r.LayoutConstants = v(0), r.NeedlemanWunsch = v(25), f.exports = r;
|
|
1577
1577
|
},
|
|
1578
1578
|
/* 27 */
|
|
1579
1579
|
/***/
|
|
1580
|
-
function(f, m,
|
|
1580
|
+
function(f, m, v) {
|
|
1581
1581
|
function r() {
|
|
1582
1582
|
this.listeners = [];
|
|
1583
1583
|
}
|
|
@@ -1608,35 +1608,35 @@ function wt() {
|
|
|
1608
1608
|
var St = et.exports, ft;
|
|
1609
1609
|
function Gt() {
|
|
1610
1610
|
return ft || (ft = 1, function(I, w) {
|
|
1611
|
-
(function(m,
|
|
1612
|
-
I.exports =
|
|
1611
|
+
(function(m, v) {
|
|
1612
|
+
I.exports = v(wt());
|
|
1613
1613
|
})(St, function(f) {
|
|
1614
1614
|
return (
|
|
1615
1615
|
/******/
|
|
1616
1616
|
function(m) {
|
|
1617
|
-
var
|
|
1617
|
+
var v = {};
|
|
1618
1618
|
function r(t) {
|
|
1619
|
-
if (
|
|
1620
|
-
return
|
|
1621
|
-
var e =
|
|
1619
|
+
if (v[t])
|
|
1620
|
+
return v[t].exports;
|
|
1621
|
+
var e = v[t] = {
|
|
1622
1622
|
/******/
|
|
1623
1623
|
i: t,
|
|
1624
1624
|
/******/
|
|
1625
|
-
l:
|
|
1625
|
+
l: false,
|
|
1626
1626
|
/******/
|
|
1627
1627
|
exports: {}
|
|
1628
1628
|
/******/
|
|
1629
1629
|
};
|
|
1630
|
-
return m[t].call(e.exports, e, e.exports, r), e.l =
|
|
1630
|
+
return m[t].call(e.exports, e, e.exports, r), e.l = true, e.exports;
|
|
1631
1631
|
}
|
|
1632
|
-
return r.m = m, r.c =
|
|
1632
|
+
return r.m = m, r.c = v, r.i = function(t) {
|
|
1633
1633
|
return t;
|
|
1634
1634
|
}, r.d = function(t, e, i) {
|
|
1635
1635
|
r.o(t, e) || Object.defineProperty(t, e, {
|
|
1636
1636
|
/******/
|
|
1637
|
-
configurable:
|
|
1637
|
+
configurable: false,
|
|
1638
1638
|
/******/
|
|
1639
|
-
enumerable:
|
|
1639
|
+
enumerable: true,
|
|
1640
1640
|
/******/
|
|
1641
1641
|
get: i
|
|
1642
1642
|
/******/
|
|
@@ -1660,22 +1660,22 @@ function Gt() {
|
|
|
1660
1660
|
}([
|
|
1661
1661
|
/* 0 */
|
|
1662
1662
|
/***/
|
|
1663
|
-
function(m,
|
|
1663
|
+
function(m, v) {
|
|
1664
1664
|
m.exports = f;
|
|
1665
1665
|
},
|
|
1666
1666
|
/* 1 */
|
|
1667
1667
|
/***/
|
|
1668
|
-
function(m,
|
|
1668
|
+
function(m, v, r) {
|
|
1669
1669
|
var t = r(0).FDLayoutConstants;
|
|
1670
1670
|
function e() {
|
|
1671
1671
|
}
|
|
1672
1672
|
for (var i in t)
|
|
1673
1673
|
e[i] = t[i];
|
|
1674
|
-
e.DEFAULT_USE_MULTI_LEVEL_SCALING =
|
|
1674
|
+
e.DEFAULT_USE_MULTI_LEVEL_SCALING = false, e.DEFAULT_RADIAL_SEPARATION = t.DEFAULT_EDGE_LENGTH, e.DEFAULT_COMPONENT_SEPERATION = 60, e.TILE = true, e.TILING_PADDING_VERTICAL = 10, e.TILING_PADDING_HORIZONTAL = 10, e.TREE_REDUCTION_ON_INCREMENTAL = false, m.exports = e;
|
|
1675
1675
|
},
|
|
1676
1676
|
/* 2 */
|
|
1677
1677
|
/***/
|
|
1678
|
-
function(m,
|
|
1678
|
+
function(m, v, r) {
|
|
1679
1679
|
var t = r(0).FDLayoutEdge;
|
|
1680
1680
|
function e(o, g, a) {
|
|
1681
1681
|
t.call(this, o, g, a);
|
|
@@ -1687,7 +1687,7 @@ function Gt() {
|
|
|
1687
1687
|
},
|
|
1688
1688
|
/* 3 */
|
|
1689
1689
|
/***/
|
|
1690
|
-
function(m,
|
|
1690
|
+
function(m, v, r) {
|
|
1691
1691
|
var t = r(0).LGraph;
|
|
1692
1692
|
function e(o, g, a) {
|
|
1693
1693
|
t.call(this, o, g, a);
|
|
@@ -1699,7 +1699,7 @@ function Gt() {
|
|
|
1699
1699
|
},
|
|
1700
1700
|
/* 4 */
|
|
1701
1701
|
/***/
|
|
1702
|
-
function(m,
|
|
1702
|
+
function(m, v, r) {
|
|
1703
1703
|
var t = r(0).LGraphManager;
|
|
1704
1704
|
function e(o) {
|
|
1705
1705
|
t.call(this, o);
|
|
@@ -1711,10 +1711,10 @@ function Gt() {
|
|
|
1711
1711
|
},
|
|
1712
1712
|
/* 5 */
|
|
1713
1713
|
/***/
|
|
1714
|
-
function(m,
|
|
1714
|
+
function(m, v, r) {
|
|
1715
1715
|
var t = r(0).FDLayoutNode, e = r(0).IMath;
|
|
1716
|
-
function i(g, a,
|
|
1717
|
-
t.call(this, g, a,
|
|
1716
|
+
function i(g, a, y, n) {
|
|
1717
|
+
t.call(this, g, a, y, n);
|
|
1718
1718
|
}
|
|
1719
1719
|
i.prototype = Object.create(t.prototype);
|
|
1720
1720
|
for (var o in t)
|
|
@@ -1723,8 +1723,8 @@ function Gt() {
|
|
|
1723
1723
|
var g = this.graphManager.getLayout();
|
|
1724
1724
|
this.displacementX = g.coolingFactor * (this.springForceX + this.repulsionForceX + this.gravitationForceX) / this.noOfChildren, this.displacementY = g.coolingFactor * (this.springForceY + this.repulsionForceY + this.gravitationForceY) / this.noOfChildren, Math.abs(this.displacementX) > g.coolingFactor * g.maxNodeDisplacement && (this.displacementX = g.coolingFactor * g.maxNodeDisplacement * e.sign(this.displacementX)), Math.abs(this.displacementY) > g.coolingFactor * g.maxNodeDisplacement && (this.displacementY = g.coolingFactor * g.maxNodeDisplacement * e.sign(this.displacementY)), this.child == null ? this.moveBy(this.displacementX, this.displacementY) : this.child.getNodes().length == 0 ? this.moveBy(this.displacementX, this.displacementY) : this.propogateDisplacementToChildren(this.displacementX, this.displacementY), g.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;
|
|
1725
1725
|
}, i.prototype.propogateDisplacementToChildren = function(g, a) {
|
|
1726
|
-
for (var
|
|
1727
|
-
n =
|
|
1726
|
+
for (var y = this.getChild().getNodes(), n, c = 0; c < y.length; c++)
|
|
1727
|
+
n = y[c], n.getChild() == null ? (n.moveBy(g, a), n.displacementX += g, n.displacementY += a) : n.propogateDisplacementToChildren(g, a);
|
|
1728
1728
|
}, i.prototype.setPred1 = function(g) {
|
|
1729
1729
|
this.pred1 = g;
|
|
1730
1730
|
}, i.prototype.getPred1 = function() {
|
|
@@ -1743,8 +1743,8 @@ function Gt() {
|
|
|
1743
1743
|
},
|
|
1744
1744
|
/* 6 */
|
|
1745
1745
|
/***/
|
|
1746
|
-
function(m,
|
|
1747
|
-
var t = r(0).FDLayout, e = r(4), i = r(3), o = r(5), g = r(2), a = r(1),
|
|
1746
|
+
function(m, v, r) {
|
|
1747
|
+
var t = r(0).FDLayout, e = r(4), i = r(3), o = r(5), g = r(2), a = r(1), y = r(0).FDLayoutConstants, n = r(0).LayoutConstants, c = r(0).Point, l = r(0).PointD, E = r(0).Layout, T = r(0).Integer, D = r(0).IGeometry, L = r(0).LGraph, O = r(0).Transform;
|
|
1748
1748
|
function d() {
|
|
1749
1749
|
t.call(this), this.toBeTiled = {};
|
|
1750
1750
|
}
|
|
@@ -1761,7 +1761,7 @@ function Gt() {
|
|
|
1761
1761
|
}, d.prototype.newEdge = function(s) {
|
|
1762
1762
|
return new g(null, null, s);
|
|
1763
1763
|
}, d.prototype.initParameters = function() {
|
|
1764
|
-
t.prototype.initParameters.call(this, arguments), this.isSubLayout || (a.DEFAULT_EDGE_LENGTH < 10 ? this.idealEdgeLength = 10 : this.idealEdgeLength = a.DEFAULT_EDGE_LENGTH, this.useSmartIdealEdgeLengthCalculation = a.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION, this.springConstant =
|
|
1764
|
+
t.prototype.initParameters.call(this, arguments), this.isSubLayout || (a.DEFAULT_EDGE_LENGTH < 10 ? this.idealEdgeLength = 10 : this.idealEdgeLength = a.DEFAULT_EDGE_LENGTH, this.useSmartIdealEdgeLengthCalculation = a.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION, this.springConstant = y.DEFAULT_SPRING_STRENGTH, this.repulsionConstant = y.DEFAULT_REPULSION_STRENGTH, this.gravityConstant = y.DEFAULT_GRAVITY_STRENGTH, this.compoundGravityConstant = y.DEFAULT_COMPOUND_GRAVITY_STRENGTH, this.gravityRangeFactor = y.DEFAULT_GRAVITY_RANGE_FACTOR, this.compoundGravityRangeFactor = y.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR, this.prunedNodesAll = [], this.growTreeIterations = 0, this.afterGrowthIterations = 0, this.isTreeGrowing = false, this.isGrowthFinished = false, this.coolingCycle = 0, this.maxCoolingCycle = this.maxIterations / y.CONVERGENCE_CHECK_PERIOD, this.finalTemperature = y.CONVERGENCE_CHECK_PERIOD / this.maxIterations, this.coolingAdjuster = 1);
|
|
1765
1765
|
}, d.prototype.layout = function() {
|
|
1766
1766
|
var s = n.DEFAULT_CREATE_BENDS_AS_NEEDED;
|
|
1767
1767
|
return s && (this.createBendpoints(), this.graphManager.resetAllEdges()), this.level = 0, this.classicLayout();
|
|
@@ -1786,19 +1786,19 @@ function Gt() {
|
|
|
1786
1786
|
this.graphManager.setAllNodesToApplyGravitation(u), this.positionNodesRandomly();
|
|
1787
1787
|
}
|
|
1788
1788
|
}
|
|
1789
|
-
return this.initSpringEmbedder(), this.runSpringEmbedder(),
|
|
1789
|
+
return this.initSpringEmbedder(), this.runSpringEmbedder(), true;
|
|
1790
1790
|
}, d.prototype.tick = function() {
|
|
1791
1791
|
if (this.totalIterations++, this.totalIterations === this.maxIterations && !this.isTreeGrowing && !this.isGrowthFinished)
|
|
1792
1792
|
if (this.prunedNodesAll.length > 0)
|
|
1793
|
-
this.isTreeGrowing =
|
|
1793
|
+
this.isTreeGrowing = true;
|
|
1794
1794
|
else
|
|
1795
|
-
return
|
|
1796
|
-
if (this.totalIterations %
|
|
1795
|
+
return true;
|
|
1796
|
+
if (this.totalIterations % y.CONVERGENCE_CHECK_PERIOD == 0 && !this.isTreeGrowing && !this.isGrowthFinished) {
|
|
1797
1797
|
if (this.isConverged())
|
|
1798
1798
|
if (this.prunedNodesAll.length > 0)
|
|
1799
|
-
this.isTreeGrowing =
|
|
1799
|
+
this.isTreeGrowing = true;
|
|
1800
1800
|
else
|
|
1801
|
-
return
|
|
1801
|
+
return true;
|
|
1802
1802
|
this.coolingCycle++, this.layoutQuality == 0 ? this.coolingAdjuster = this.coolingCycle : this.layoutQuality == 1 && (this.coolingAdjuster = this.coolingCycle / 3), this.coolingFactor = Math.max(this.initialCoolingFactor - Math.pow(this.coolingCycle, Math.log(100 * (this.initialCoolingFactor - this.finalTemperature)) / Math.log(this.maxCoolingCycle)) / 100 * this.coolingAdjuster, this.finalTemperature), this.animationPeriod = Math.ceil(this.initialAnimationPeriod * Math.sqrt(this.coolingFactor));
|
|
1803
1803
|
}
|
|
1804
1804
|
if (this.isTreeGrowing) {
|
|
@@ -1808,18 +1808,18 @@ function Gt() {
|
|
|
1808
1808
|
var s = new Set(this.getAllNodes()), h = this.nodesWithGravity.filter(function(A) {
|
|
1809
1809
|
return s.has(A);
|
|
1810
1810
|
});
|
|
1811
|
-
this.graphManager.setAllNodesToApplyGravitation(h), this.graphManager.updateBounds(), this.updateGrid(), this.coolingFactor =
|
|
1811
|
+
this.graphManager.setAllNodesToApplyGravitation(h), this.graphManager.updateBounds(), this.updateGrid(), this.coolingFactor = y.DEFAULT_COOLING_FACTOR_INCREMENTAL;
|
|
1812
1812
|
} else
|
|
1813
|
-
this.isTreeGrowing =
|
|
1813
|
+
this.isTreeGrowing = false, this.isGrowthFinished = true;
|
|
1814
1814
|
this.growTreeIterations++;
|
|
1815
1815
|
}
|
|
1816
1816
|
if (this.isGrowthFinished) {
|
|
1817
1817
|
if (this.isConverged())
|
|
1818
|
-
return
|
|
1819
|
-
this.afterGrowthIterations % 10 == 0 && (this.graphManager.updateBounds(), this.updateGrid()), this.coolingFactor =
|
|
1818
|
+
return true;
|
|
1819
|
+
this.afterGrowthIterations % 10 == 0 && (this.graphManager.updateBounds(), this.updateGrid()), this.coolingFactor = y.DEFAULT_COOLING_FACTOR_INCREMENTAL * ((100 - this.afterGrowthIterations) / 100), this.afterGrowthIterations++;
|
|
1820
1820
|
}
|
|
1821
1821
|
var u = !this.isTreeGrowing && !this.isGrowthFinished, p = this.growTreeIterations % 10 == 1 && this.isTreeGrowing || this.afterGrowthIterations % 10 == 1 && this.isGrowthFinished;
|
|
1822
|
-
return this.totalDisplacement = 0, this.graphManager.updateBounds(), this.calcSpringForces(), this.calcRepulsionForces(u, p), this.calcGravitationalForces(), this.moveNodes(), this.animate(),
|
|
1822
|
+
return this.totalDisplacement = 0, this.graphManager.updateBounds(), this.calcSpringForces(), this.calcRepulsionForces(u, p), this.calcGravitationalForces(), this.moveNodes(), this.animate(), false;
|
|
1823
1823
|
}, d.prototype.getPositionsData = function() {
|
|
1824
1824
|
for (var s = this.graphManager.getAllNodes(), h = {}, u = 0; u < s.length; u++) {
|
|
1825
1825
|
var p = s[u].rect, A = s[u].id;
|
|
@@ -1834,8 +1834,8 @@ function Gt() {
|
|
|
1834
1834
|
return h;
|
|
1835
1835
|
}, d.prototype.runSpringEmbedder = function() {
|
|
1836
1836
|
this.initialAnimationPeriod = 25, this.animationPeriod = this.initialAnimationPeriod;
|
|
1837
|
-
var s =
|
|
1838
|
-
if (
|
|
1837
|
+
var s = false;
|
|
1838
|
+
if (y.ANIMATE === "during")
|
|
1839
1839
|
this.emit("layoutstarted");
|
|
1840
1840
|
else {
|
|
1841
1841
|
for (; !s; )
|
|
@@ -1979,19 +1979,19 @@ function Gt() {
|
|
|
1979
1979
|
return this.toBeTiled[h];
|
|
1980
1980
|
var u = s.getChild();
|
|
1981
1981
|
if (u == null)
|
|
1982
|
-
return this.toBeTiled[h] =
|
|
1982
|
+
return this.toBeTiled[h] = false, false;
|
|
1983
1983
|
for (var p = u.getNodes(), A = 0; A < p.length; A++) {
|
|
1984
1984
|
var C = p[A];
|
|
1985
1985
|
if (this.getNodeDegree(C) > 0)
|
|
1986
|
-
return this.toBeTiled[h] =
|
|
1986
|
+
return this.toBeTiled[h] = false, false;
|
|
1987
1987
|
if (C.getChild() == null) {
|
|
1988
|
-
this.toBeTiled[C.id] =
|
|
1988
|
+
this.toBeTiled[C.id] = false;
|
|
1989
1989
|
continue;
|
|
1990
1990
|
}
|
|
1991
1991
|
if (!this.getToBeTiled(C))
|
|
1992
|
-
return this.toBeTiled[h] =
|
|
1992
|
+
return this.toBeTiled[h] = false, false;
|
|
1993
1993
|
}
|
|
1994
|
-
return this.toBeTiled[h] =
|
|
1994
|
+
return this.toBeTiled[h] = true, true;
|
|
1995
1995
|
}, d.prototype.getNodeDegree = function(s) {
|
|
1996
1996
|
s.id;
|
|
1997
1997
|
for (var h = s.getEdges(), u = 0, p = 0; p < h.length; p++) {
|
|
@@ -2074,9 +2074,9 @@ function Gt() {
|
|
|
2074
2074
|
}, d.prototype.canAddHorizontal = function(s, h, u) {
|
|
2075
2075
|
var p = this.getShortestRowIndex(s);
|
|
2076
2076
|
if (p < 0)
|
|
2077
|
-
return
|
|
2077
|
+
return true;
|
|
2078
2078
|
var A = s.rowWidth[p];
|
|
2079
|
-
if (A + s.horizontalPadding + h <= s.width) return
|
|
2079
|
+
if (A + s.horizontalPadding + h <= s.width) return true;
|
|
2080
2080
|
var C = 0;
|
|
2081
2081
|
s.rowHeight[p] < u && p > 0 && (C = u + s.verticalPadding - s.rowHeight[p]);
|
|
2082
2082
|
var R;
|
|
@@ -2100,12 +2100,12 @@ function Gt() {
|
|
|
2100
2100
|
}, d.prototype.tilingPostLayout = function() {
|
|
2101
2101
|
a.TILE && (this.repopulateZeroDegreeMembers(), this.repopulateCompounds());
|
|
2102
2102
|
}, d.prototype.reduceTrees = function() {
|
|
2103
|
-
for (var s = [], h =
|
|
2103
|
+
for (var s = [], h = true, u; h; ) {
|
|
2104
2104
|
var p = this.graphManager.getAllNodes(), A = [];
|
|
2105
|
-
h =
|
|
2105
|
+
h = false;
|
|
2106
2106
|
for (var C = 0; C < p.length; C++)
|
|
2107
|
-
u = p[C], u.getEdges().length == 1 && !u.getEdges()[0].isInterGraph && u.getChild() == null && (A.push([u, u.getEdges()[0], u.getOwner()]), h =
|
|
2108
|
-
if (h ==
|
|
2107
|
+
u = p[C], u.getEdges().length == 1 && !u.getEdges()[0].isInterGraph && u.getChild() == null && (A.push([u, u.getEdges()[0], u.getOwner()]), h = true);
|
|
2108
|
+
if (h == true) {
|
|
2109
2109
|
for (var R = [], x = 0; x < A.length; x++)
|
|
2110
2110
|
A[x][0].getEdges().length == 1 && (R.push(A[x]), A[x][0].getOwner().remove(A[x][0]));
|
|
2111
2111
|
s.push(R), this.graphManager.resetAllNodes(), this.graphManager.resetAllEdges();
|
|
@@ -2144,12 +2144,12 @@ function Gt() {
|
|
|
2144
2144
|
h = P;
|
|
2145
2145
|
} else
|
|
2146
2146
|
h = k;
|
|
2147
|
-
h == 0 ? p.setCenter(u.getCenterX(), u.getCenterY() - u.getHeight() / 2 -
|
|
2147
|
+
h == 0 ? p.setCenter(u.getCenterX(), u.getCenterY() - u.getHeight() / 2 - y.DEFAULT_EDGE_LENGTH - p.getHeight() / 2) : h == 1 ? p.setCenter(u.getCenterX() + u.getWidth() / 2 + y.DEFAULT_EDGE_LENGTH + p.getWidth() / 2, u.getCenterY()) : h == 2 ? p.setCenter(u.getCenterX(), u.getCenterY() + u.getHeight() / 2 + y.DEFAULT_EDGE_LENGTH + p.getHeight() / 2) : p.setCenter(u.getCenterX() - u.getWidth() / 2 - y.DEFAULT_EDGE_LENGTH - p.getWidth() / 2, u.getCenterY());
|
|
2148
2148
|
}, m.exports = d;
|
|
2149
2149
|
},
|
|
2150
2150
|
/* 7 */
|
|
2151
2151
|
/***/
|
|
2152
|
-
function(m,
|
|
2152
|
+
function(m, v, r) {
|
|
2153
2153
|
var t = {};
|
|
2154
2154
|
t.layoutBase = r(0), t.CoSEConstants = r(1), t.CoSEEdge = r(2), t.CoSEGraph = r(3), t.CoSEGraphManager = r(4), t.CoSELayout = r(6), t.CoSENode = r(5), m.exports = t;
|
|
2155
2155
|
}
|
|
@@ -2162,35 +2162,35 @@ function Gt() {
|
|
|
2162
2162
|
var _t = tt.exports, pt;
|
|
2163
2163
|
function Ft() {
|
|
2164
2164
|
return pt || (pt = 1, function(I, w) {
|
|
2165
|
-
(function(m,
|
|
2166
|
-
I.exports =
|
|
2165
|
+
(function(m, v) {
|
|
2166
|
+
I.exports = v(Gt());
|
|
2167
2167
|
})(_t, function(f) {
|
|
2168
2168
|
return (
|
|
2169
2169
|
/******/
|
|
2170
2170
|
function(m) {
|
|
2171
|
-
var
|
|
2171
|
+
var v = {};
|
|
2172
2172
|
function r(t) {
|
|
2173
|
-
if (
|
|
2174
|
-
return
|
|
2175
|
-
var e =
|
|
2173
|
+
if (v[t])
|
|
2174
|
+
return v[t].exports;
|
|
2175
|
+
var e = v[t] = {
|
|
2176
2176
|
/******/
|
|
2177
2177
|
i: t,
|
|
2178
2178
|
/******/
|
|
2179
|
-
l:
|
|
2179
|
+
l: false,
|
|
2180
2180
|
/******/
|
|
2181
2181
|
exports: {}
|
|
2182
2182
|
/******/
|
|
2183
2183
|
};
|
|
2184
|
-
return m[t].call(e.exports, e, e.exports, r), e.l =
|
|
2184
|
+
return m[t].call(e.exports, e, e.exports, r), e.l = true, e.exports;
|
|
2185
2185
|
}
|
|
2186
|
-
return r.m = m, r.c =
|
|
2186
|
+
return r.m = m, r.c = v, r.i = function(t) {
|
|
2187
2187
|
return t;
|
|
2188
2188
|
}, r.d = function(t, e, i) {
|
|
2189
2189
|
r.o(t, e) || Object.defineProperty(t, e, {
|
|
2190
2190
|
/******/
|
|
2191
|
-
configurable:
|
|
2191
|
+
configurable: false,
|
|
2192
2192
|
/******/
|
|
2193
|
-
enumerable:
|
|
2193
|
+
enumerable: true,
|
|
2194
2194
|
/******/
|
|
2195
2195
|
get: i
|
|
2196
2196
|
/******/
|
|
@@ -2214,13 +2214,13 @@ function Ft() {
|
|
|
2214
2214
|
}([
|
|
2215
2215
|
/* 0 */
|
|
2216
2216
|
/***/
|
|
2217
|
-
function(m,
|
|
2217
|
+
function(m, v) {
|
|
2218
2218
|
m.exports = f;
|
|
2219
2219
|
},
|
|
2220
2220
|
/* 1 */
|
|
2221
2221
|
/***/
|
|
2222
|
-
function(m,
|
|
2223
|
-
var t = r(0).layoutBase.LayoutConstants, e = r(0).layoutBase.FDLayoutConstants, i = r(0).CoSEConstants, o = r(0).CoSELayout, g = r(0).CoSENode, a = r(0).layoutBase.PointD,
|
|
2222
|
+
function(m, v, r) {
|
|
2223
|
+
var t = r(0).layoutBase.LayoutConstants, e = r(0).layoutBase.FDLayoutConstants, i = r(0).CoSEConstants, o = r(0).CoSELayout, g = r(0).CoSENode, a = r(0).layoutBase.PointD, y = r(0).layoutBase.DimensionD, n = {
|
|
2224
2224
|
// Called on `layoutready`
|
|
2225
2225
|
ready: function() {
|
|
2226
2226
|
},
|
|
@@ -2233,15 +2233,15 @@ function Ft() {
|
|
|
2233
2233
|
// - "proof" slow cooling rate
|
|
2234
2234
|
quality: "default",
|
|
2235
2235
|
// include labels in node dimensions
|
|
2236
|
-
nodeDimensionsIncludeLabels:
|
|
2236
|
+
nodeDimensionsIncludeLabels: false,
|
|
2237
2237
|
// number of ticks per frame; higher is faster but more jerky
|
|
2238
2238
|
refresh: 30,
|
|
2239
2239
|
// Whether to fit the network view after when done
|
|
2240
|
-
fit:
|
|
2240
|
+
fit: true,
|
|
2241
2241
|
// Padding on fit
|
|
2242
2242
|
padding: 10,
|
|
2243
2243
|
// Whether to enable incremental mode
|
|
2244
|
-
randomize:
|
|
2244
|
+
randomize: true,
|
|
2245
2245
|
// Node repulsion (non overlapping) multiplier
|
|
2246
2246
|
nodeRepulsion: 4500,
|
|
2247
2247
|
// Ideal edge (non nested) length
|
|
@@ -2255,7 +2255,7 @@ function Ft() {
|
|
|
2255
2255
|
// Maximum number of iterations to perform
|
|
2256
2256
|
numIter: 2500,
|
|
2257
2257
|
// For enabling tiling
|
|
2258
|
-
tile:
|
|
2258
|
+
tile: true,
|
|
2259
2259
|
// Type of layout animation. The option set is {'during', 'end', false}
|
|
2260
2260
|
animate: "end",
|
|
2261
2261
|
// Duration for animate:end
|
|
@@ -2291,7 +2291,7 @@ function Ft() {
|
|
|
2291
2291
|
var D, L, O = this.options;
|
|
2292
2292
|
this.idToLNode = {};
|
|
2293
2293
|
var d = this.layout = new o(), N = this;
|
|
2294
|
-
N.stopped =
|
|
2294
|
+
N.stopped = false, this.cy = this.options.cy, this.cy.trigger({ type: "layoutstart", layout: this });
|
|
2295
2295
|
var s = d.newGraphManager();
|
|
2296
2296
|
this.gm = s;
|
|
2297
2297
|
var h = this.options.eles.nodes(), u = this.options.eles.edges();
|
|
@@ -2312,11 +2312,11 @@ function Ft() {
|
|
|
2312
2312
|
};
|
|
2313
2313
|
}, U = function X() {
|
|
2314
2314
|
for (var M = function() {
|
|
2315
|
-
O.fit && O.cy.fit(O.eles, O.padding), D || (D =
|
|
2315
|
+
O.fit && O.cy.fit(O.eles, O.padding), D || (D = true, N.cy.one("layoutready", O.ready), N.cy.trigger({ type: "layoutready", layout: N }));
|
|
2316
2316
|
}, G = N.options.refresh, F, b = 0; b < G && !F; b++)
|
|
2317
2317
|
F = N.stopped || N.layout.tick();
|
|
2318
2318
|
if (F) {
|
|
2319
|
-
d.checkLayoutSuccess() && !d.isSubLayout && d.doPostLayout(), d.tilingPostLayout && d.tilingPostLayout(), d.isLayoutFinished =
|
|
2319
|
+
d.checkLayoutSuccess() && !d.isSubLayout && d.doPostLayout(), d.tilingPostLayout && d.tilingPostLayout(), d.isLayoutFinished = true, N.options.eles.nodes().positions(_), M(), N.cy.one("layoutstop", N.options.stop), N.cy.trigger({ type: "layoutstop", layout: N }), L && cancelAnimationFrame(L), D = false;
|
|
2320
2320
|
return;
|
|
2321
2321
|
}
|
|
2322
2322
|
var Y = N.layout.getPositionsData();
|
|
@@ -2336,18 +2336,18 @@ function Ft() {
|
|
|
2336
2336
|
};
|
|
2337
2337
|
return d.addListener("layoutstarted", function() {
|
|
2338
2338
|
N.options.animate === "during" && (L = requestAnimationFrame(U));
|
|
2339
|
-
}), d.runLayout(), this.options.animate !== "during" && (N.options.eles.nodes().not(":parent").layoutPositions(N, N.options, _), D =
|
|
2339
|
+
}), d.runLayout(), this.options.animate !== "during" && (N.options.eles.nodes().not(":parent").layoutPositions(N, N.options, _), D = false), this;
|
|
2340
2340
|
}, l.prototype.getTopMostNodes = function(D) {
|
|
2341
2341
|
for (var L = {}, O = 0; O < D.length; O++)
|
|
2342
|
-
L[D[O].id()] =
|
|
2342
|
+
L[D[O].id()] = true;
|
|
2343
2343
|
var d = D.filter(function(N, s) {
|
|
2344
2344
|
typeof N == "number" && (N = s);
|
|
2345
2345
|
for (var h = N.parent()[0]; h != null; ) {
|
|
2346
2346
|
if (L[h.id()])
|
|
2347
|
-
return
|
|
2347
|
+
return false;
|
|
2348
2348
|
h = h.parent()[0];
|
|
2349
2349
|
}
|
|
2350
|
-
return
|
|
2350
|
+
return true;
|
|
2351
2351
|
});
|
|
2352
2352
|
return d;
|
|
2353
2353
|
}, l.prototype.processChildrenList = function(D, L, O) {
|
|
@@ -2355,8 +2355,8 @@ function Ft() {
|
|
|
2355
2355
|
var s = L[N], h = s.children(), u, p = s.layoutDimensions({
|
|
2356
2356
|
nodeDimensionsIncludeLabels: this.options.nodeDimensionsIncludeLabels
|
|
2357
2357
|
});
|
|
2358
|
-
if (s.outerWidth() != null && s.outerHeight() != null ? u = D.add(new g(O.graphManager, new a(s.position("x") - p.w / 2, s.position("y") - p.h / 2), new
|
|
2359
|
-
var A = s.boundingBox({ includeLabels:
|
|
2358
|
+
if (s.outerWidth() != null && s.outerHeight() != null ? u = D.add(new g(O.graphManager, new a(s.position("x") - p.w / 2, s.position("y") - p.h / 2), new y(parseFloat(p.w), parseFloat(p.h)))) : u = D.add(new g(this.graphManager)), u.id = s.data("id"), u.paddingLeft = parseInt(s.css("padding")), u.paddingTop = parseInt(s.css("padding")), u.paddingRight = parseInt(s.css("padding")), u.paddingBottom = parseInt(s.css("padding")), this.options.nodeDimensionsIncludeLabels && s.isParent()) {
|
|
2359
|
+
var A = s.boundingBox({ includeLabels: true, includeNodes: false }).w, C = s.boundingBox({ includeLabels: true, includeNodes: false }).h, R = s.css("text-halign");
|
|
2360
2360
|
u.labelWidth = A, u.labelHeight = C, u.labelPos = R;
|
|
2361
2361
|
}
|
|
2362
2362
|
if (this.idToLNode[s.data("id")] = u, isNaN(u.rect.x) && (u.rect.x = 0), isNaN(u.rect.y) && (u.rect.y = 0), h != null && h.length > 0) {
|
|
@@ -2365,7 +2365,7 @@ function Ft() {
|
|
|
2365
2365
|
}
|
|
2366
2366
|
}
|
|
2367
2367
|
}, l.prototype.stop = function() {
|
|
2368
|
-
return this.stopped =
|
|
2368
|
+
return this.stopped = true, this;
|
|
2369
2369
|
};
|
|
2370
2370
|
var T = function(L) {
|
|
2371
2371
|
L("layout", "cose-bilkent", l);
|
|
@@ -2384,7 +2384,7 @@ var at = function() {
|
|
|
2384
2384
|
var I = /* @__PURE__ */ S(function(O, d, N, s) {
|
|
2385
2385
|
for (N = N || {}, s = O.length; s--; N[O[s]] = d) ;
|
|
2386
2386
|
return N;
|
|
2387
|
-
}, "o"), w = [1, 4], f = [1, 13], m = [1, 12],
|
|
2387
|
+
}, "o"), w = [1, 4], f = [1, 13], m = [1, 12], v = [1, 15], r = [1, 16], t = [1, 20], e = [1, 19], i = [6, 7, 8], o = [1, 26], g = [1, 24], a = [1, 25], y = [6, 7, 11], n = [1, 6, 13, 15, 16, 19, 22], c = [1, 33], l = [1, 34], E = [1, 6, 7, 11, 13, 15, 16, 19, 22], T = {
|
|
2388
2388
|
trace: /* @__PURE__ */ S(function() {
|
|
2389
2389
|
}, "trace"),
|
|
2390
2390
|
yy: {},
|
|
@@ -2439,7 +2439,7 @@ var at = function() {
|
|
|
2439
2439
|
break;
|
|
2440
2440
|
}
|
|
2441
2441
|
}, "anonymous"),
|
|
2442
|
-
table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: w }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: w }, { 6: f, 7: [1, 10], 9: 9, 12: 11, 13: m, 14: 14, 15:
|
|
2442
|
+
table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: w }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: w }, { 6: f, 7: [1, 10], 9: 9, 12: 11, 13: m, 14: 14, 15: v, 16: r, 17: 17, 18: 18, 19: t, 22: e }, I(i, [2, 3]), { 1: [2, 2] }, I(i, [2, 4]), I(i, [2, 5]), { 1: [2, 6], 6: f, 12: 21, 13: m, 14: 14, 15: v, 16: r, 17: 17, 18: 18, 19: t, 22: e }, { 6: f, 9: 22, 12: 11, 13: m, 14: 14, 15: v, 16: r, 17: 17, 18: 18, 19: t, 22: e }, { 6: o, 7: g, 10: 23, 11: a }, I(y, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: t, 22: e }), I(y, [2, 18]), I(y, [2, 19]), I(y, [2, 20]), I(y, [2, 21]), I(y, [2, 23]), I(y, [2, 24]), I(y, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: o, 7: g, 10: 32, 11: a }, { 1: [2, 7], 6: f, 12: 21, 13: m, 14: 14, 15: v, 16: r, 17: 17, 18: 18, 19: t, 22: e }, I(n, [2, 14], { 7: c, 11: l }), I(E, [2, 8]), I(E, [2, 9]), I(E, [2, 10]), I(y, [2, 15]), I(y, [2, 16]), I(y, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, I(n, [2, 13], { 7: c, 11: l }), I(E, [2, 11]), I(E, [2, 12]), { 21: [1, 37] }, I(y, [2, 25]), I(y, [2, 27])],
|
|
2443
2443
|
defaultActions: { 2: [2, 1], 6: [2, 2] },
|
|
2444
2444
|
parseError: /* @__PURE__ */ S(function(d, N) {
|
|
2445
2445
|
if (N.recoverable)
|
|
@@ -2511,10 +2511,10 @@ Expecting ` + J.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : st =
|
|
|
2511
2511
|
j && (s = s.slice(0, -1 * j * 2), u = u.slice(0, -1 * j), p = p.slice(0, -1 * j)), s.push(this.productions_[$[1]][0]), u.push(Q.$), p.push(Q._$), gt = A[s[s.length - 2]][s[s.length - 1]], s.push(gt);
|
|
2512
2512
|
break;
|
|
2513
2513
|
case 3:
|
|
2514
|
-
return
|
|
2514
|
+
return true;
|
|
2515
2515
|
}
|
|
2516
2516
|
}
|
|
2517
|
-
return
|
|
2517
|
+
return true;
|
|
2518
2518
|
}, "parse")
|
|
2519
2519
|
}, D = /* @__PURE__ */ function() {
|
|
2520
2520
|
var O = {
|
|
@@ -2527,7 +2527,7 @@ Expecting ` + J.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : st =
|
|
|
2527
2527
|
}, "parseError"),
|
|
2528
2528
|
// resets the lexer, sets new input
|
|
2529
2529
|
setInput: /* @__PURE__ */ S(function(d, N) {
|
|
2530
|
-
return this.yy = N || this.yy || {}, this._input = d, this._more = this._backtrack = this.done =
|
|
2530
|
+
return this.yy = N || this.yy || {}, this._input = d, this._more = this._backtrack = this.done = false, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
2531
2531
|
first_line: 1,
|
|
2532
2532
|
first_column: 0,
|
|
2533
2533
|
last_line: 1,
|
|
@@ -2557,12 +2557,12 @@ Expecting ` + J.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : st =
|
|
|
2557
2557
|
}, "unput"),
|
|
2558
2558
|
// When called from action, caches matched text and appends it on next action
|
|
2559
2559
|
more: /* @__PURE__ */ S(function() {
|
|
2560
|
-
return this._more =
|
|
2560
|
+
return this._more = true, this;
|
|
2561
2561
|
}, "more"),
|
|
2562
2562
|
// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
|
|
2563
2563
|
reject: /* @__PURE__ */ S(function() {
|
|
2564
2564
|
if (this.options.backtrack_lexer)
|
|
2565
|
-
this._backtrack =
|
|
2565
|
+
this._backtrack = true;
|
|
2566
2566
|
else
|
|
2567
2567
|
return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
2568
2568
|
` + this.showPosition(), {
|
|
@@ -2619,36 +2619,36 @@ Expecting ` + J.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : st =
|
|
|
2619
2619
|
last_line: this.yylineno + 1,
|
|
2620
2620
|
first_column: this.yylloc.last_column,
|
|
2621
2621
|
last_column: h ? h[h.length - 1].length - h[h.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + d[0].length
|
|
2622
|
-
}, this.yytext += d[0], this.match += d[0], this.matches = d, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more =
|
|
2622
|
+
}, this.yytext += d[0], this.match += d[0], this.matches = d, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = false, this._backtrack = false, this._input = this._input.slice(d[0].length), this.matched += d[0], s = this.performAction.call(this, this.yy, this, N, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = false), s)
|
|
2623
2623
|
return s;
|
|
2624
2624
|
if (this._backtrack) {
|
|
2625
2625
|
for (var p in u)
|
|
2626
2626
|
this[p] = u[p];
|
|
2627
|
-
return
|
|
2627
|
+
return false;
|
|
2628
2628
|
}
|
|
2629
|
-
return
|
|
2629
|
+
return false;
|
|
2630
2630
|
}, "test_match"),
|
|
2631
2631
|
// return next match in input
|
|
2632
2632
|
next: /* @__PURE__ */ S(function() {
|
|
2633
2633
|
if (this.done)
|
|
2634
2634
|
return this.EOF;
|
|
2635
|
-
this._input || (this.done =
|
|
2635
|
+
this._input || (this.done = true);
|
|
2636
2636
|
var d, N, s, h;
|
|
2637
2637
|
this._more || (this.yytext = "", this.match = "");
|
|
2638
2638
|
for (var u = this._currentRules(), p = 0; p < u.length; p++)
|
|
2639
2639
|
if (s = this._input.match(this.rules[u[p]]), s && (!N || s[0].length > N[0].length)) {
|
|
2640
2640
|
if (N = s, h = p, this.options.backtrack_lexer) {
|
|
2641
|
-
if (d = this.test_match(s, u[p]), d !==
|
|
2641
|
+
if (d = this.test_match(s, u[p]), d !== false)
|
|
2642
2642
|
return d;
|
|
2643
2643
|
if (this._backtrack) {
|
|
2644
|
-
N =
|
|
2644
|
+
N = false;
|
|
2645
2645
|
continue;
|
|
2646
2646
|
} else
|
|
2647
|
-
return
|
|
2647
|
+
return false;
|
|
2648
2648
|
} else if (!this.options.flex)
|
|
2649
2649
|
break;
|
|
2650
2650
|
}
|
|
2651
|
-
return N ? (d = this.test_match(N, u[h]), d !==
|
|
2651
|
+
return N ? (d = this.test_match(N, u[h]), d !== false ? d : false) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
2652
2652
|
` + this.showPosition(), {
|
|
2653
2653
|
text: "",
|
|
2654
2654
|
token: null,
|
|
@@ -2685,7 +2685,7 @@ Expecting ` + J.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : st =
|
|
|
2685
2685
|
stateStackSize: /* @__PURE__ */ S(function() {
|
|
2686
2686
|
return this.conditionStack.length;
|
|
2687
2687
|
}, "stateStackSize"),
|
|
2688
|
-
options: { "case-insensitive":
|
|
2688
|
+
options: { "case-insensitive": true },
|
|
2689
2689
|
performAction: /* @__PURE__ */ S(function(N, s, h, u) {
|
|
2690
2690
|
switch (h) {
|
|
2691
2691
|
case 0:
|
|
@@ -2773,7 +2773,7 @@ Expecting ` + J.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : st =
|
|
|
2773
2773
|
}
|
|
2774
2774
|
}, "anonymous"),
|
|
2775
2775
|
rules: [/^(?:\s*%%.*)/i, /^(?:mindmap\b)/i, /^(?::::)/i, /^(?:.+)/i, /^(?:\n)/i, /^(?:::icon\()/i, /^(?:[\s]+[\n])/i, /^(?:[\n]+)/i, /^(?:[^\)]+)/i, /^(?:\))/i, /^(?:-\))/i, /^(?:\(-)/i, /^(?:\)\))/i, /^(?:\))/i, /^(?:\(\()/i, /^(?:\{\{)/i, /^(?:\()/i, /^(?:\[)/i, /^(?:[\s]+)/i, /^(?:[^\(\[\n\)\{\}]+)/i, /^(?:$)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:[^"]+)/i, /^(?:["])/i, /^(?:[\)]\))/i, /^(?:[\)])/i, /^(?:[\]])/i, /^(?:\}\})/i, /^(?:\(-)/i, /^(?:-\))/i, /^(?:\(\()/i, /^(?:\()/i, /^(?:[^\)\]\(\}]+)/i, /^(?:.+(?!\(\())/i],
|
|
2776
|
-
conditions: { CLASS: { rules: [3, 4], inclusive:
|
|
2776
|
+
conditions: { CLASS: { rules: [3, 4], inclusive: false }, ICON: { rules: [8, 9], inclusive: false }, NSTR2: { rules: [22, 23], inclusive: false }, NSTR: { rules: [25, 26], inclusive: false }, NODE: { rules: [21, 24, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36], inclusive: false }, INITIAL: { rules: [0, 1, 2, 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], inclusive: true } }
|
|
2777
2777
|
};
|
|
2778
2778
|
return O;
|
|
2779
2779
|
}();
|
|
@@ -2792,10 +2792,10 @@ var Pt = at, Z = [], vt = 0, ht = {}, Yt = /* @__PURE__ */ S(() => {
|
|
|
2792
2792
|
return Z[w];
|
|
2793
2793
|
return null;
|
|
2794
2794
|
}, "getParent"), kt = /* @__PURE__ */ S(() => Z.length > 0 ? Z[0] : null, "getMindmap"), Ht = /* @__PURE__ */ S((I, w, f, m) => {
|
|
2795
|
-
var
|
|
2795
|
+
var _a, _b;
|
|
2796
2796
|
z.info("addNode", I, w, f, m);
|
|
2797
|
-
const
|
|
2798
|
-
let r = ((
|
|
2797
|
+
const v = ot();
|
|
2798
|
+
let r = ((_a = v.mindmap) == null ? void 0 : _a.padding) ?? it.mindmap.padding;
|
|
2799
2799
|
switch (m) {
|
|
2800
2800
|
case W.ROUNDED_RECT:
|
|
2801
2801
|
case W.RECT:
|
|
@@ -2804,12 +2804,12 @@ var Pt = at, Z = [], vt = 0, ht = {}, Yt = /* @__PURE__ */ S(() => {
|
|
|
2804
2804
|
}
|
|
2805
2805
|
const t = {
|
|
2806
2806
|
id: vt++,
|
|
2807
|
-
nodeId: nt(w,
|
|
2807
|
+
nodeId: nt(w, v),
|
|
2808
2808
|
level: I,
|
|
2809
|
-
descr: nt(f,
|
|
2809
|
+
descr: nt(f, v),
|
|
2810
2810
|
type: m,
|
|
2811
2811
|
children: [],
|
|
2812
|
-
width: ((
|
|
2812
|
+
width: ((_b = v.mindmap) == null ? void 0 : _b.maxNodeWidth) ?? it.mindmap.maxNodeWidth,
|
|
2813
2813
|
padding: r
|
|
2814
2814
|
}, e = Xt(I);
|
|
2815
2815
|
if (e)
|
|
@@ -2892,59 +2892,59 @@ var Pt = at, Z = [], vt = 0, ht = {}, Yt = /* @__PURE__ */ S(() => {
|
|
|
2892
2892
|
}, "defaultBkg"), Jt = /* @__PURE__ */ S(function(I, w, f) {
|
|
2893
2893
|
w.append("rect").attr("id", "node-" + f.id).attr("class", "node-bkg node-" + I.type2Str(f.type)).attr("height", f.height).attr("width", f.width);
|
|
2894
2894
|
}, "rectBkg"), te = /* @__PURE__ */ S(function(I, w, f) {
|
|
2895
|
-
const m = f.width,
|
|
2895
|
+
const m = f.width, v = f.height, r = 0.15 * m, t = 0.25 * m, e = 0.35 * m, i = 0.2 * m;
|
|
2896
2896
|
w.append("path").attr("id", "node-" + f.id).attr("class", "node-bkg node-" + I.type2Str(f.type)).attr(
|
|
2897
2897
|
"d",
|
|
2898
2898
|
`M0 0 a${r},${r} 0 0,1 ${m * 0.25},${-1 * m * 0.1}
|
|
2899
2899
|
a${e},${e} 1 0,1 ${m * 0.4},${-1 * m * 0.1}
|
|
2900
2900
|
a${t},${t} 1 0,1 ${m * 0.35},${1 * m * 0.2}
|
|
2901
2901
|
|
|
2902
|
-
a${r},${r} 1 0,1 ${m * 0.15},${1 *
|
|
2903
|
-
a${i},${i} 1 0,1 ${-1 * m * 0.15},${1 *
|
|
2902
|
+
a${r},${r} 1 0,1 ${m * 0.15},${1 * v * 0.35}
|
|
2903
|
+
a${i},${i} 1 0,1 ${-1 * m * 0.15},${1 * v * 0.65}
|
|
2904
2904
|
|
|
2905
2905
|
a${t},${r} 1 0,1 ${-1 * m * 0.25},${m * 0.15}
|
|
2906
2906
|
a${e},${e} 1 0,1 ${-1 * m * 0.5},0
|
|
2907
2907
|
a${r},${r} 1 0,1 ${-1 * m * 0.25},${-1 * m * 0.15}
|
|
2908
2908
|
|
|
2909
|
-
a${r},${r} 1 0,1 ${-1 * m * 0.1},${-1 *
|
|
2910
|
-
a${i},${i} 1 0,1 ${m * 0.1},${-1 *
|
|
2909
|
+
a${r},${r} 1 0,1 ${-1 * m * 0.1},${-1 * v * 0.35}
|
|
2910
|
+
a${i},${i} 1 0,1 ${m * 0.1},${-1 * v * 0.65}
|
|
2911
2911
|
|
|
2912
2912
|
H0 V0 Z`
|
|
2913
2913
|
);
|
|
2914
2914
|
}, "cloudBkg"), ee = /* @__PURE__ */ S(function(I, w, f) {
|
|
2915
|
-
const m = f.width,
|
|
2915
|
+
const m = f.width, v = f.height, r = 0.15 * m;
|
|
2916
2916
|
w.append("path").attr("id", "node-" + f.id).attr("class", "node-bkg node-" + I.type2Str(f.type)).attr(
|
|
2917
2917
|
"d",
|
|
2918
|
-
`M0 0 a${r},${r} 1 0,0 ${m * 0.25},${-1 *
|
|
2918
|
+
`M0 0 a${r},${r} 1 0,0 ${m * 0.25},${-1 * v * 0.1}
|
|
2919
2919
|
a${r},${r} 1 0,0 ${m * 0.25},0
|
|
2920
2920
|
a${r},${r} 1 0,0 ${m * 0.25},0
|
|
2921
|
-
a${r},${r} 1 0,0 ${m * 0.25},${1 *
|
|
2921
|
+
a${r},${r} 1 0,0 ${m * 0.25},${1 * v * 0.1}
|
|
2922
2922
|
|
|
2923
|
-
a${r},${r} 1 0,0 ${m * 0.15},${1 *
|
|
2924
|
-
a${r * 0.8},${r * 0.8} 1 0,0 0,${1 *
|
|
2925
|
-
a${r},${r} 1 0,0 ${-1 * m * 0.15},${1 *
|
|
2923
|
+
a${r},${r} 1 0,0 ${m * 0.15},${1 * v * 0.33}
|
|
2924
|
+
a${r * 0.8},${r * 0.8} 1 0,0 0,${1 * v * 0.34}
|
|
2925
|
+
a${r},${r} 1 0,0 ${-1 * m * 0.15},${1 * v * 0.33}
|
|
2926
2926
|
|
|
2927
|
-
a${r},${r} 1 0,0 ${-1 * m * 0.25},${
|
|
2927
|
+
a${r},${r} 1 0,0 ${-1 * m * 0.25},${v * 0.15}
|
|
2928
2928
|
a${r},${r} 1 0,0 ${-1 * m * 0.25},0
|
|
2929
2929
|
a${r},${r} 1 0,0 ${-1 * m * 0.25},0
|
|
2930
|
-
a${r},${r} 1 0,0 ${-1 * m * 0.25},${-1 *
|
|
2930
|
+
a${r},${r} 1 0,0 ${-1 * m * 0.25},${-1 * v * 0.15}
|
|
2931
2931
|
|
|
2932
|
-
a${r},${r} 1 0,0 ${-1 * m * 0.1},${-1 *
|
|
2933
|
-
a${r * 0.8},${r * 0.8} 1 0,0 0,${-1 *
|
|
2934
|
-
a${r},${r} 1 0,0 ${m * 0.1},${-1 *
|
|
2932
|
+
a${r},${r} 1 0,0 ${-1 * m * 0.1},${-1 * v * 0.33}
|
|
2933
|
+
a${r * 0.8},${r * 0.8} 1 0,0 0,${-1 * v * 0.34}
|
|
2934
|
+
a${r},${r} 1 0,0 ${m * 0.1},${-1 * v * 0.33}
|
|
2935
2935
|
|
|
2936
2936
|
H0 V0 Z`
|
|
2937
2937
|
);
|
|
2938
2938
|
}, "bangBkg"), re = /* @__PURE__ */ S(function(I, w, f) {
|
|
2939
2939
|
w.append("circle").attr("id", "node-" + f.id).attr("class", "node-bkg node-" + I.type2Str(f.type)).attr("r", f.width / 2);
|
|
2940
2940
|
}, "circleBkg");
|
|
2941
|
-
function yt(I, w, f, m,
|
|
2941
|
+
function yt(I, w, f, m, v) {
|
|
2942
2942
|
return I.insert("polygon", ":first-child").attr(
|
|
2943
2943
|
"points",
|
|
2944
2944
|
m.map(function(r) {
|
|
2945
2945
|
return r.x + "," + r.y;
|
|
2946
2946
|
}).join(" ")
|
|
2947
|
-
).attr("transform", "translate(" + (
|
|
2947
|
+
).attr("transform", "translate(" + (v.width - w) / 2 + ", " + f + ")");
|
|
2948
2948
|
}
|
|
2949
2949
|
S(yt, "insertPolygonShape");
|
|
2950
2950
|
var ie = /* @__PURE__ */ S(function(I, w, f) {
|
|
@@ -2959,8 +2959,8 @@ var ie = /* @__PURE__ */ S(function(I, w, f) {
|
|
|
2959
2959
|
yt(w, t, m, e, f);
|
|
2960
2960
|
}, "hexagonBkg"), ne = /* @__PURE__ */ S(function(I, w, f) {
|
|
2961
2961
|
w.append("rect").attr("id", "node-" + f.id).attr("class", "node-bkg node-" + I.type2Str(f.type)).attr("height", f.height).attr("rx", f.padding).attr("ry", f.padding).attr("width", f.width);
|
|
2962
|
-
}, "roundedRectBkg"), se = /* @__PURE__ */ S(async function(I, w, f, m,
|
|
2963
|
-
const r =
|
|
2962
|
+
}, "roundedRectBkg"), se = /* @__PURE__ */ S(async function(I, w, f, m, v) {
|
|
2963
|
+
const r = v.htmlLabels, t = m % (Kt - 1), e = w.append("g");
|
|
2964
2964
|
f.section = t;
|
|
2965
2965
|
let i = "section-" + t;
|
|
2966
2966
|
t < 0 && (i += " section-root"), e.attr("class", (f.class ? f.class + " " : "") + "mindmap-node " + i);
|
|
@@ -2974,10 +2974,10 @@ var ie = /* @__PURE__ */ S(function(I, w, f) {
|
|
|
2974
2974
|
width: f.width,
|
|
2975
2975
|
classes: "mindmap-node-label"
|
|
2976
2976
|
},
|
|
2977
|
-
|
|
2977
|
+
v
|
|
2978
2978
|
), r || g.attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle");
|
|
2979
|
-
const
|
|
2980
|
-
if (f.height =
|
|
2979
|
+
const y = g.node().getBBox(), [n] = Rt(v.fontSize);
|
|
2980
|
+
if (f.height = y.height + n * 1.1 * 0.5 + f.padding, f.width = y.width + 2 * f.padding, f.icon)
|
|
2981
2981
|
if (f.type === I.nodeType.CIRCLE)
|
|
2982
2982
|
f.height += 50, f.width += 50, e.append("foreignObject").attr("height", "50px").attr("width", f.width).attr("style", "text-align: center;").append("div").attr("class", "icon-container").append("i").attr("class", "node-icon-" + t + " " + f.icon), g.attr(
|
|
2983
2983
|
"transform",
|
|
@@ -2994,7 +2994,7 @@ var ie = /* @__PURE__ */ S(function(I, w, f) {
|
|
|
2994
2994
|
);
|
|
2995
2995
|
}
|
|
2996
2996
|
else if (r) {
|
|
2997
|
-
const c = (f.width -
|
|
2997
|
+
const c = (f.width - y.width) / 2, l = (f.height - y.height) / 2;
|
|
2998
2998
|
g.attr("transform", "translate(" + c + ", " + l + ")");
|
|
2999
2999
|
} else {
|
|
3000
3000
|
const c = f.width / 2, l = f.padding / 2;
|
|
@@ -3025,27 +3025,27 @@ var ie = /* @__PURE__ */ S(function(I, w, f) {
|
|
|
3025
3025
|
}
|
|
3026
3026
|
return I.setElementForId(f.id, e), f.height;
|
|
3027
3027
|
}, "drawNode"), ae = /* @__PURE__ */ S(function(I, w) {
|
|
3028
|
-
const f = I.getElementById(w.id), m = w.x || 0,
|
|
3029
|
-
f.attr("transform", "translate(" + m + "," +
|
|
3028
|
+
const f = I.getElementById(w.id), m = w.x || 0, v = w.y || 0;
|
|
3029
|
+
f.attr("transform", "translate(" + m + "," + v + ")");
|
|
3030
3030
|
}, "positionNode");
|
|
3031
3031
|
dt.use(Ut);
|
|
3032
|
-
async function lt(I, w, f, m,
|
|
3033
|
-
await se(I, w, f, m,
|
|
3032
|
+
async function lt(I, w, f, m, v) {
|
|
3033
|
+
await se(I, w, f, m, v), f.children && await Promise.all(
|
|
3034
3034
|
f.children.map(
|
|
3035
|
-
(r, t) => lt(I, w, r, m < 0 ? t : m,
|
|
3035
|
+
(r, t) => lt(I, w, r, m < 0 ? t : m, v)
|
|
3036
3036
|
)
|
|
3037
3037
|
);
|
|
3038
3038
|
}
|
|
3039
3039
|
S(lt, "drawNodes");
|
|
3040
3040
|
function Et(I, w) {
|
|
3041
3041
|
w.edges().map((f, m) => {
|
|
3042
|
-
const
|
|
3042
|
+
const v = f.data();
|
|
3043
3043
|
if (f[0]._private.bodyBounds) {
|
|
3044
3044
|
const r = f[0]._private.rscratch;
|
|
3045
|
-
z.trace("Edge: ", m,
|
|
3045
|
+
z.trace("Edge: ", m, v), I.insert("path").attr(
|
|
3046
3046
|
"d",
|
|
3047
3047
|
`M ${r.startX},${r.startY} L ${r.midX},${r.midY} L${r.endX},${r.endY} `
|
|
3048
|
-
).attr("class", "edge section-edge-" +
|
|
3048
|
+
).attr("class", "edge section-edge-" + v.section + " edge-depth-" + v.depth);
|
|
3049
3049
|
}
|
|
3050
3050
|
});
|
|
3051
3051
|
}
|
|
@@ -3067,15 +3067,15 @@ function ct(I, w, f, m) {
|
|
|
3067
3067
|
x: I.x,
|
|
3068
3068
|
y: I.y
|
|
3069
3069
|
}
|
|
3070
|
-
}), I.children && I.children.forEach((
|
|
3071
|
-
ct(
|
|
3070
|
+
}), I.children && I.children.forEach((v) => {
|
|
3071
|
+
ct(v, w, f, m + 1), w.add({
|
|
3072
3072
|
group: "edges",
|
|
3073
3073
|
data: {
|
|
3074
|
-
id: `${I.id}_${
|
|
3074
|
+
id: `${I.id}_${v.id}`,
|
|
3075
3075
|
source: I.id,
|
|
3076
|
-
target:
|
|
3076
|
+
target: v.id,
|
|
3077
3077
|
depth: m,
|
|
3078
|
-
section:
|
|
3078
|
+
section: v.section
|
|
3079
3079
|
}
|
|
3080
3080
|
});
|
|
3081
3081
|
});
|
|
@@ -3083,7 +3083,7 @@ function ct(I, w, f, m) {
|
|
|
3083
3083
|
S(ct, "addNodes");
|
|
3084
3084
|
function Lt(I, w) {
|
|
3085
3085
|
return new Promise((f) => {
|
|
3086
|
-
const m = It("body").append("div").attr("id", "cy").attr("style", "display:none"),
|
|
3086
|
+
const m = It("body").append("div").attr("id", "cy").attr("style", "display:none"), v = dt({
|
|
3087
3087
|
container: document.getElementById("cy"),
|
|
3088
3088
|
// container to render in
|
|
3089
3089
|
style: [
|
|
@@ -3095,54 +3095,54 @@ function Lt(I, w) {
|
|
|
3095
3095
|
}
|
|
3096
3096
|
]
|
|
3097
3097
|
});
|
|
3098
|
-
m.remove(), ct(I,
|
|
3098
|
+
m.remove(), ct(I, v, w, 0), v.nodes().forEach(function(r) {
|
|
3099
3099
|
r.layoutDimensions = () => {
|
|
3100
3100
|
const t = r.data();
|
|
3101
3101
|
return { w: t.width, h: t.height };
|
|
3102
3102
|
};
|
|
3103
|
-
}),
|
|
3103
|
+
}), v.layout({
|
|
3104
3104
|
name: "cose-bilkent",
|
|
3105
3105
|
// @ts-ignore Types for cose-bilkent are not correct?
|
|
3106
3106
|
quality: "proof",
|
|
3107
|
-
styleEnabled:
|
|
3108
|
-
animate:
|
|
3109
|
-
}).run(),
|
|
3110
|
-
z.info("Ready", r), f(
|
|
3107
|
+
styleEnabled: false,
|
|
3108
|
+
animate: false
|
|
3109
|
+
}).run(), v.ready((r) => {
|
|
3110
|
+
z.info("Ready", r), f(v);
|
|
3111
3111
|
});
|
|
3112
3112
|
});
|
|
3113
3113
|
}
|
|
3114
3114
|
S(Lt, "layoutMindmap");
|
|
3115
3115
|
function Tt(I, w) {
|
|
3116
3116
|
w.nodes().map((f, m) => {
|
|
3117
|
-
const
|
|
3118
|
-
|
|
3119
|
-
const r = I.getElementById(
|
|
3120
|
-
z.info("Id:", m, "Position: (", f.position().x, ", ", f.position().y, ")",
|
|
3117
|
+
const v = f.data();
|
|
3118
|
+
v.x = f.position().x, v.y = f.position().y, ae(I, v);
|
|
3119
|
+
const r = I.getElementById(v.nodeId);
|
|
3120
|
+
z.info("Id:", m, "Position: (", f.position().x, ", ", f.position().y, ")", v), r.attr(
|
|
3121
3121
|
"transform",
|
|
3122
|
-
`translate(${f.position().x -
|
|
3122
|
+
`translate(${f.position().x - v.width / 2}, ${f.position().y - v.height / 2})`
|
|
3123
3123
|
), r.attr("attr", `apa-${m})`);
|
|
3124
3124
|
});
|
|
3125
3125
|
}
|
|
3126
3126
|
S(Tt, "positionNodes");
|
|
3127
3127
|
var oe = /* @__PURE__ */ S(async (I, w, f, m) => {
|
|
3128
|
-
var
|
|
3128
|
+
var _a, _b;
|
|
3129
3129
|
z.debug(`Rendering mindmap diagram
|
|
3130
3130
|
` + I);
|
|
3131
|
-
const
|
|
3131
|
+
const v = m.db, r = v.getMindmap();
|
|
3132
3132
|
if (!r)
|
|
3133
3133
|
return;
|
|
3134
3134
|
const t = ot();
|
|
3135
|
-
t.htmlLabels =
|
|
3135
|
+
t.htmlLabels = false;
|
|
3136
3136
|
const e = Nt(w), i = e.append("g");
|
|
3137
3137
|
i.attr("class", "mindmap-edges");
|
|
3138
3138
|
const o = e.append("g");
|
|
3139
|
-
o.attr("class", "mindmap-nodes"), await lt(
|
|
3139
|
+
o.attr("class", "mindmap-nodes"), await lt(v, o, r, -1, t);
|
|
3140
3140
|
const g = await Lt(r, t);
|
|
3141
|
-
Et(i, g), Tt(
|
|
3141
|
+
Et(i, g), Tt(v, g), Dt(
|
|
3142
3142
|
void 0,
|
|
3143
3143
|
e,
|
|
3144
|
-
((
|
|
3145
|
-
((
|
|
3144
|
+
((_a = t.mindmap) == null ? void 0 : _a.padding) ?? it.mindmap.padding,
|
|
3145
|
+
((_b = t.mindmap) == null ? void 0 : _b.useMaxWidth) ?? it.mindmap.useMaxWidth
|
|
3146
3146
|
);
|
|
3147
3147
|
}, "draw"), he = {
|
|
3148
3148
|
draw: oe
|