@kong-ui-public/documentation 1.4.17-pr.2640.fb8bab909.0 → 1.4.17
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/_basePickBy-BCsiP0lE-DJBdvZNn.js +151 -0
- package/dist/{_baseUniq-SAfYgIkf-buEvGj9H.js → _baseUniq-CsvgMmt0-CCBG5z_B.js} +165 -165
- package/dist/arc-DYb5Ak6k-js8YHzj6.js +83 -0
- package/dist/architecture-U656AL7Q-LZu-yAfZ-CQD6AyxA.js +5 -0
- package/dist/architectureDiagram-KFL7JDKH-BK_an8l5-D20M_MXF.js +4665 -0
- package/dist/blockDiagram-ZYB65J3Q-C0KtqCEe-pwEm3-ie.js +2265 -0
- package/dist/{c4Diagram-6F5ED5ID-D5yqWyf0-DzlUmurv.js → c4Diagram-AAMF2YG6-DYHWlrmc-C6NWDsTV.js} +4 -4
- package/dist/{channel-bVcNKbrJ-NqcPkfCx.js → channel-3QVQMCTA-BwyrTaJi.js} +1 -1
- package/dist/{chunk-TMUBEWPD-BRIzn5gH-alZ9Sg3f.js → chunk-ANTBXLJU-BhR1MDfy-Bec7kb00.js} +1 -1
- package/dist/{chunk-KFBOBJHC-nixdujtH-CrTZo7r-.js → chunk-FHKO5MBM-z_nuC8Da-Dge2Nbr5.js} +1 -1
- package/dist/chunk-GLLZNHP4-DgwBbAOT-BUrsAxH8.js +19 -0
- package/dist/chunk-JBRWN2VN-CHua2TSC-BYWS19Oz.js +1374 -0
- package/dist/chunk-LXBSTHXV-CoED0jHL-Cc8w4JL1.js +1382 -0
- package/dist/chunk-NRVI72HA-DxsqT4Dt-Bo_vu9qn.js +20 -0
- package/dist/{chunk-ASOPGD6M-B5bA_saK-BiT875Ve.js → chunk-OMD6QJNC-_VI6zVGr-Bb4P7zNG.js} +1 -1
- package/dist/chunk-WVR4S24B-C4HIWky3-CkJ0DHSJ.js +8 -0
- package/dist/classDiagram-3BZAVTQC-DrmNjTt_-CS9fxl_R.js +16 -0
- package/dist/classDiagram-v2-QTMF73CY-DrmNjTt_-CS9fxl_R.js +16 -0
- package/dist/{clone-_5SW34SG-DOuhA6mG.js → clone-C0dvnYv6-BozdSvey.js} +1 -1
- package/dist/cytoscape.esm-CjI2IsL8-DYIumutE.js +18721 -0
- package/dist/{dagre-4EVJKHTY-CcAruc30-B3UMlKNl.js → dagre-2BBEFEWP-Bh_bYuL8-Cej31YXN.js} +53 -53
- package/dist/defaultLocale-D7EN2tov-CK6dgF7Y.js +171 -0
- package/dist/diagram-4IRLE6MV-34TaesxP-XfF-gcP2.js +533 -0
- package/dist/diagram-GUPCWM2R-Cr4-5_uX-B8mxM1Uc.js +143 -0
- package/dist/diagram-RP2FKANI-COpvHjzI-C-_mZxuk.js +221 -0
- package/dist/documentation.es.js +1 -1
- package/dist/documentation.umd.js +860 -399
- package/dist/erDiagram-HZWUO2LU-Cu2MerRS-KziSgDQg.js +840 -0
- package/dist/flowDiagram-THRYKUMA-CfrQTB8C-BYn8LF24.js +1627 -0
- package/dist/ganttDiagram-WV7ZQ7D5-gkieebY_-C7YOriZ4.js +2504 -0
- package/dist/gitGraph-F6HP7TQM-suE5ufvy-CQDQV2yP.js +5 -0
- package/dist/{gitGraphDiagram-NRZ2UAAF-B-t90-9e-BkGPAEnk.js → gitGraphDiagram-OJR772UL-CYA7EIoU-Bqc1qZk4.js} +103 -103
- package/dist/{graph-BYZMvqpu-BXRs5843.js → graph-B_1gOUDz-Dm6REFzZ.js} +2 -2
- package/dist/{index-CMZig9xg.js → index-BDD0CD9m.js} +9834 -9540
- package/dist/info-NVLQJR56-CdsHk-Jf-tf8zb8tD.js +5 -0
- package/dist/infoDiagram-6WOFNB3A-ajp3t5Lm-D80dGo5F.js +24 -0
- package/dist/{journeyDiagram-G5WM74LC-BE7U42Ad-y6YegUqL.js → journeyDiagram-FFXJYRFH-kgCEEPLo-CakI8CyJ.js} +357 -333
- package/dist/{kanban-definition-QRCXZQQD-C-5-UNRm-BOYYKTAB.js → kanban-definition-KOZQBZVT-CmM4CHe6-rjuufCiO.js} +75 -73
- package/dist/{katex-Qk2jHgyB-_qyJ_37x.js → katex-C0Lgw_Sx-CbX2I1cQ.js} +1864 -1814
- package/dist/{layout-BHI4imdk-CESYC-il.js → layout-9vIfpCf3-FfABA43y.js} +81 -81
- package/dist/linear-C-k9vokG-Md9dfBfB.js +259 -0
- package/dist/{mermaid-parser.core-Ce96PX3Q-CV9ue_xr.js → mermaid-parser.core-DHL9WXVx-DeKF3RZx.js} +4080 -3590
- package/dist/{mindmap-definition-GWI6TPTV-C98Syvj2-DUWC1UH5.js → mindmap-definition-LNHGMQRG-BsypuFYj-DSVrvuog.js} +1112 -1100
- package/dist/packet-BFZMPI3H-BcK9kJ-B-BxxCPBGn.js +5 -0
- package/dist/pie-7BOR55EZ-Vt5px0F3-BM7egbMh.js +5 -0
- package/dist/pieDiagram-DBDJKBY4-Bam6gKTi-BOqYeC6c.js +161 -0
- package/dist/{quadrantDiagram-OS5C2QUG-M57vVPSx-BRx-dMGe.js → quadrantDiagram-YPSRARAO-CJwMw09m-CN2OO-Le.js} +2 -2
- package/dist/radar-NHE76QYJ-Br11XWE4-4RP4MPFA.js +5 -0
- package/dist/requirementDiagram-EGVEC5DT-DkRytT0X-C2zigskn.js +850 -0
- package/dist/{sankeyDiagram-Y46BX6SQ-D6EdYPdp-D2Qzxmhx.js → sankeyDiagram-HRAUVNP4-08s1UHMk-2j8idkNs.js} +198 -193
- package/dist/{sequenceDiagram-G6AWOVSC-B171TAb1-KCpoI-Ck.js → sequenceDiagram-WFGC7UMF-6_s7-CN7-D-oTpLFJ.js} +1001 -992
- package/dist/stateDiagram-UUKSUZ4H-eWajY90l-BlM614AN.js +263 -0
- package/dist/stateDiagram-v2-EYPG3UTE-Dh7Ngu1O-YVMiocHE.js +16 -0
- package/dist/style.css +1 -1
- package/dist/timeline-definition-3HZDQTIS-4TPEOhE8-fDDLVlO8.js +799 -0
- package/dist/treemap-KMMF4GRG-nu7WEuPi-C1YG24W8.js +5 -0
- package/dist/{xychartDiagram-6QU3TZC5-CqbTSF5W-CUbJ50KT.js → xychartDiagram-FDP5SA34-BbtKlU7T-D1BI5nWs.js} +459 -423
- package/package.json +4 -4
- package/dist/_basePickBy-zlkqRmFy-D6w9JBLu.js +0 -151
- package/dist/arc-CK9P6CkJ-DVgfRhzX.js +0 -83
- package/dist/architecture-I3QFYML2-DJzmbE4M-C3v7Cpg0.js +0 -5
- package/dist/architectureDiagram-UYN6MBPD-DkZdgpXi-BTThTJ0F.js +0 -4592
- package/dist/blockDiagram-ZHA2E4KO-DnCMGCMN-DBXa-baO.js +0 -2247
- package/dist/chunk-5HRBRIJM-BjQ8go1b-CJmT3AYe.js +0 -24
- package/dist/chunk-7U56Z5CX-awhAxjZ0-Cs_UWlwk.js +0 -1213
- package/dist/chunk-T2TOU4HS-DqOVhIzl-O3PUl7Qp.js +0 -1301
- package/dist/classDiagram-LNE6IOMH-fQzyXfo--DYLd8UQH.js +0 -14
- package/dist/classDiagram-v2-MQ7JQ4JX-fQzyXfo--DYLd8UQH.js +0 -14
- package/dist/cytoscape.esm-DAyNQ0qu-i5PnoWfE.js +0 -16110
- package/dist/diagram-QW4FP2JN-DZT_0aFO-SYzM51ke.js +0 -126
- package/dist/erDiagram-6RL3IURR-BfgUC5jv-BrebVho-.js +0 -937
- package/dist/flowDiagram-7ASYPVHJ-Bo9CnsE7-Ds2vln_y.js +0 -1484
- package/dist/ganttDiagram-NTVNEXSI-8E9hjd6N-fR_cmeDc.js +0 -2491
- package/dist/gitGraph-YCYPL57B-BnErPIwo-DXUTceC1.js +0 -5
- package/dist/info-46DW6VJ7-DPpbx_vA-omPXKuBd.js +0 -5
- package/dist/infoDiagram-A4XQUW5V-Bo9uoOcA-CnlgI27B.js +0 -22
- package/dist/linear-C2PheBya-BHVXLcru.js +0 -423
- package/dist/packet-W2GHVCYJ-BLiQbm7T-BD1xX8XM.js +0 -5
- package/dist/pie-BEWT4RHE-D3Mbo3mT-B4n38n6N.js +0 -5
- package/dist/pieDiagram-YF2LJOPJ-BJV27s9B-DA7hy5wG.js +0 -161
- package/dist/requirementDiagram-MIRIMTAZ-D0KDg7rf-CRMUyo68.js +0 -768
- package/dist/stateDiagram-MAYHULR4-D7FUnT9_-aCApnrI4.js +0 -268
- package/dist/stateDiagram-v2-4JROLMXI-Cyc74STT-D-7hwTRo.js +0 -14
- package/dist/timeline-definition-U7ZMHBDA-Bw-dp1yf-C01CsNUU.js +0 -804
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { L as k } from "./graph-
|
|
3
|
-
import { o as V } from "./layout-
|
|
4
|
-
import { E as
|
|
5
|
-
import { a as W } from "./clone-
|
|
6
|
-
import { g as G } from "./_basePickBy-
|
|
1
|
+
import { _ as v, m as L, c as M, a as j, b as F, l as t, g as Y, u as _, s as H, i as $, d as q, e as z, p as D, f as K, h as Q, j as U } from "./index-BDD0CD9m.js";
|
|
2
|
+
import { L as k } from "./graph-B_1gOUDz-Dm6REFzZ.js";
|
|
3
|
+
import { o as V } from "./layout-9vIfpCf3-FfABA43y.js";
|
|
4
|
+
import { E as S } from "./_baseUniq-CsvgMmt0-CCBG5z_B.js";
|
|
5
|
+
import { a as W } from "./clone-C0dvnYv6-BozdSvey.js";
|
|
6
|
+
import { g as G } from "./_basePickBy-BCsiP0lE-DJBdvZNn.js";
|
|
7
7
|
function X(e) {
|
|
8
8
|
var n = {
|
|
9
9
|
options: {
|
|
@@ -14,29 +14,29 @@ function X(e) {
|
|
|
14
14
|
nodes: Z(e),
|
|
15
15
|
edges: ee(e)
|
|
16
16
|
};
|
|
17
|
-
return
|
|
17
|
+
return S(e.graph()) || (n.value = W(e.graph())), n;
|
|
18
18
|
}
|
|
19
19
|
function Z(e) {
|
|
20
20
|
return G(e.nodes(), function(n) {
|
|
21
21
|
var r = e.node(n), s = e.parent(n), d = { v: n };
|
|
22
|
-
return
|
|
22
|
+
return S(r) || (d.value = r), S(s) || (d.parent = s), d;
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
function ee(e) {
|
|
26
26
|
return G(e.edges(), function(n) {
|
|
27
27
|
var r = e.edge(n), s = { v: n.v, w: n.w };
|
|
28
|
-
return
|
|
28
|
+
return S(n.name) || (s.name = n.name), S(r) || (s.value = r), s;
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
-
var u = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map(), ne = /* @__PURE__ */
|
|
31
|
+
var u = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map(), ne = /* @__PURE__ */ v(() => {
|
|
32
32
|
N.clear(), B.clear(), u.clear();
|
|
33
|
-
}, "clear"), I = /* @__PURE__ */
|
|
33
|
+
}, "clear"), I = /* @__PURE__ */ v((e, n) => {
|
|
34
34
|
const r = N.get(n) || [];
|
|
35
35
|
return t.trace("In isDescendant", n, " ", e, " = ", r.includes(e)), r.includes(e);
|
|
36
|
-
}, "isDescendant"), re = /* @__PURE__ */
|
|
36
|
+
}, "isDescendant"), re = /* @__PURE__ */ v((e, n) => {
|
|
37
37
|
const r = N.get(n) || [];
|
|
38
38
|
return t.info("Descendants of ", n, " is ", r), t.info("Edge is ", e), e.v === n || e.w === n ? !1 : r ? r.includes(e.v) || I(e.v, n) || I(e.w, n) || r.includes(e.w) : (t.debug("Tilt, ", n, ",not in descendants"), !1);
|
|
39
|
-
}, "edgeInCluster"), J = /* @__PURE__ */
|
|
39
|
+
}, "edgeInCluster"), J = /* @__PURE__ */ v((e, n, r, s) => {
|
|
40
40
|
t.warn(
|
|
41
41
|
"Copying children of ",
|
|
42
42
|
e,
|
|
@@ -83,22 +83,22 @@ var u = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), B = /* @__PURE
|
|
|
83
83
|
}
|
|
84
84
|
t.debug("Removing node", c), n.removeNode(c);
|
|
85
85
|
});
|
|
86
|
-
}, "copy"), P = /* @__PURE__ */
|
|
86
|
+
}, "copy"), P = /* @__PURE__ */ v((e, n) => {
|
|
87
87
|
const r = n.children(e);
|
|
88
88
|
let s = [...r];
|
|
89
89
|
for (const d of r)
|
|
90
90
|
B.set(d, e), s = [...s, ...P(d, n)];
|
|
91
91
|
return s;
|
|
92
|
-
}, "extractDescendants"), te = /* @__PURE__ */
|
|
92
|
+
}, "extractDescendants"), te = /* @__PURE__ */ v((e, n, r) => {
|
|
93
93
|
const s = e.edges().filter((l) => l.v === n || l.w === n), d = e.edges().filter((l) => l.v === r || l.w === r), c = s.map((l) => ({ v: l.v === n ? r : l.v, w: l.w === n ? n : l.w })), a = d.map((l) => ({ v: l.v, w: l.w }));
|
|
94
94
|
return c.filter((l) => a.some((f) => l.v === f.v && l.w === f.w));
|
|
95
|
-
}, "findCommonEdges"),
|
|
95
|
+
}, "findCommonEdges"), x = /* @__PURE__ */ v((e, n, r) => {
|
|
96
96
|
const s = n.children(e);
|
|
97
97
|
if (t.trace("Searching children of id ", e, s), s.length < 1)
|
|
98
98
|
return e;
|
|
99
99
|
let d;
|
|
100
100
|
for (const c of s) {
|
|
101
|
-
const a =
|
|
101
|
+
const a = x(c, n, r), l = te(n, r, a);
|
|
102
102
|
if (a)
|
|
103
103
|
if (l.length > 0)
|
|
104
104
|
d = a;
|
|
@@ -106,7 +106,7 @@ var u = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), B = /* @__PURE
|
|
|
106
106
|
return a;
|
|
107
107
|
}
|
|
108
108
|
return d;
|
|
109
|
-
}, "findNonClusterChild"), O = /* @__PURE__ */
|
|
109
|
+
}, "findNonClusterChild"), O = /* @__PURE__ */ v((e) => !u.has(e) || !u.get(e).externalConnections ? e : u.has(e) ? u.get(e).id : e, "getAnchorId"), ie = /* @__PURE__ */ v((e, n) => {
|
|
110
110
|
if (!e || n > 10) {
|
|
111
111
|
t.debug("Opting out, no graph ");
|
|
112
112
|
return;
|
|
@@ -117,8 +117,8 @@ var u = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), B = /* @__PURE
|
|
|
117
117
|
"Cluster identified",
|
|
118
118
|
r,
|
|
119
119
|
" Replacement id in edges: ",
|
|
120
|
-
|
|
121
|
-
), N.set(r, P(r, e)), u.set(r, { id:
|
|
120
|
+
x(r, e, r)
|
|
121
|
+
), N.set(r, P(r, e)), u.set(r, { id: x(r, e, r), clusterData: e.node(r) }));
|
|
122
122
|
}), e.nodes().forEach(function(r) {
|
|
123
123
|
const s = e.children(r), d = e.edges();
|
|
124
124
|
s.length > 0 ? (t.debug("Cluster identified", r, N), d.forEach((c) => {
|
|
@@ -155,8 +155,8 @@ var u = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), B = /* @__PURE
|
|
|
155
155
|
}
|
|
156
156
|
t.warn("Fix Replacing with XXX", d, c, r.name), e.setEdge(d, c, s, r.name);
|
|
157
157
|
}
|
|
158
|
-
}), t.warn("Adjusted Graph", X(e)),
|
|
159
|
-
}, "adjustClustersAndEdges"),
|
|
158
|
+
}), t.warn("Adjusted Graph", X(e)), T(e, 0), t.trace(u);
|
|
159
|
+
}, "adjustClustersAndEdges"), T = /* @__PURE__ */ v((e, n) => {
|
|
160
160
|
var r, s;
|
|
161
161
|
if (t.warn("extractor - ", n, X(e), e.children("D")), n > 10) {
|
|
162
162
|
t.error("Bailing out");
|
|
@@ -228,23 +228,23 @@ var u = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), B = /* @__PURE
|
|
|
228
228
|
d = e.nodes(), t.warn("New list of nodes", d);
|
|
229
229
|
for (const a of d) {
|
|
230
230
|
const l = e.node(a);
|
|
231
|
-
t.warn(" Now next level", a, l), l != null && l.clusterNode &&
|
|
231
|
+
t.warn(" Now next level", a, l), l != null && l.clusterNode && T(l.graph, n + 1);
|
|
232
232
|
}
|
|
233
|
-
}, "extractor"),
|
|
233
|
+
}, "extractor"), A = /* @__PURE__ */ v((e, n) => {
|
|
234
234
|
if (n.length === 0)
|
|
235
235
|
return [];
|
|
236
236
|
let r = Object.assign([], n);
|
|
237
237
|
return n.forEach((s) => {
|
|
238
|
-
const d = e.children(s), c =
|
|
238
|
+
const d = e.children(s), c = A(e, d);
|
|
239
239
|
r = [...r, ...c];
|
|
240
240
|
}), r;
|
|
241
|
-
}, "sorter"), ae = /* @__PURE__ */
|
|
241
|
+
}, "sorter"), ae = /* @__PURE__ */ v((e) => A(e, e.children()), "sortNodesByHierarchy"), R = /* @__PURE__ */ v(async (e, n, r, s, d, c) => {
|
|
242
242
|
t.warn("Graph in recursive render:XAX", X(n), d);
|
|
243
243
|
const a = n.graph().rankdir;
|
|
244
244
|
t.trace("Dir in recursive render - dir:", a);
|
|
245
245
|
const l = e.insert("g").attr("class", "root");
|
|
246
246
|
n.nodes() ? t.info("Recursive render XXX", n.nodes()) : t.info("No nodes found for", n), n.edges().length > 0 && t.info("Recursive edges", n.edge(n.edges()[0]));
|
|
247
|
-
const f = l.insert("g").attr("class", "clusters"), E = l.insert("g").attr("class", "edgePaths"), C = l.insert("g").attr("class", "edgeLabels"),
|
|
247
|
+
const f = l.insert("g").attr("class", "clusters"), E = l.insert("g").attr("class", "edgePaths"), C = l.insert("g").attr("class", "edgeLabels"), p = l.insert("g").attr("class", "nodes");
|
|
248
248
|
await Promise.all(
|
|
249
249
|
n.nodes().map(async function(g) {
|
|
250
250
|
const o = n.node(g);
|
|
@@ -264,14 +264,14 @@ Parent cluster`,
|
|
|
264
264
|
}
|
|
265
265
|
if (t.info("(Insert) Node XXX" + g + ": " + JSON.stringify(n.node(g))), o != null && o.clusterNode) {
|
|
266
266
|
t.info("Cluster identified XBX", g, o.width, n.node(g));
|
|
267
|
-
const { ranksep: i, nodesep:
|
|
267
|
+
const { ranksep: i, nodesep: w } = n.graph();
|
|
268
268
|
o.graph.setGraph({
|
|
269
269
|
...o.graph.graph(),
|
|
270
270
|
ranksep: i + 25,
|
|
271
|
-
nodesep:
|
|
271
|
+
nodesep: w
|
|
272
272
|
});
|
|
273
|
-
const m = await
|
|
274
|
-
|
|
273
|
+
const m = await R(
|
|
274
|
+
p,
|
|
275
275
|
o.graph,
|
|
276
276
|
r,
|
|
277
277
|
s,
|
|
@@ -298,9 +298,9 @@ Parent cluster`,
|
|
|
298
298
|
o.width,
|
|
299
299
|
"Graph:",
|
|
300
300
|
n
|
|
301
|
-
), t.trace(
|
|
301
|
+
), t.trace(x(o.id, n)), u.set(o.id, { id: x(o.id, n), node: o })) : (t.trace("Node - the non recursive path XAX", g, p, n.node(g), a), await $(p, n.node(g), { config: c, dir: a }));
|
|
302
302
|
})
|
|
303
|
-
), await (/* @__PURE__ */
|
|
303
|
+
), await (/* @__PURE__ */ v(async () => {
|
|
304
304
|
const g = n.edges().map(async function(o) {
|
|
305
305
|
const i = n.edge(o.v, o.w, o.name);
|
|
306
306
|
t.info("Edge " + o.v + " -> " + o.w + ": " + JSON.stringify(o)), t.info("Edge " + o.v + " -> " + o.w + ": ", o, " ", JSON.stringify(n.edge(o))), t.info(
|
|
@@ -316,7 +316,7 @@ Parent cluster`,
|
|
|
316
316
|
});
|
|
317
317
|
await Promise.all(g);
|
|
318
318
|
}, "processEdges"))(), t.info("Graph before layout:", JSON.stringify(X(n))), t.info("############################################# XXX"), t.info("### Layout ### XXX"), t.info("############################################# XXX"), V(n), t.info("Graph after layout:", JSON.stringify(X(n)));
|
|
319
|
-
let
|
|
319
|
+
let h = 0, { subGraphTitleTotalMargin: y } = z(c);
|
|
320
320
|
return await Promise.all(
|
|
321
321
|
ae(n).map(async function(g) {
|
|
322
322
|
var o;
|
|
@@ -350,10 +350,10 @@ Parent cluster`,
|
|
|
350
350
|
i.height,
|
|
351
351
|
n.parent(g)
|
|
352
352
|
), i.height += y, n.node(i.parentId);
|
|
353
|
-
const
|
|
354
|
-
t.debug("OffsetY", b, "labelHeight", m, "halfPadding",
|
|
353
|
+
const w = (i == null ? void 0 : i.padding) / 2 || 0, m = ((o = i == null ? void 0 : i.labelBBox) == null ? void 0 : o.height) || 0, b = m - w || 0;
|
|
354
|
+
t.debug("OffsetY", b, "labelHeight", m, "halfPadding", w), await K(f, i), u.get(i.id).node = i;
|
|
355
355
|
} else {
|
|
356
|
-
const
|
|
356
|
+
const w = n.node(i.parentId);
|
|
357
357
|
i.y += y / 2, t.info(
|
|
358
358
|
"A regular node XBX1 - using the padding",
|
|
359
359
|
i.id,
|
|
@@ -366,8 +366,8 @@ Parent cluster`,
|
|
|
366
366
|
"offsetY",
|
|
367
367
|
i.offsetY,
|
|
368
368
|
"parent",
|
|
369
|
-
|
|
370
|
-
|
|
369
|
+
w,
|
|
370
|
+
w == null ? void 0 : w.offsetY,
|
|
371
371
|
i
|
|
372
372
|
), D(i);
|
|
373
373
|
}
|
|
@@ -376,14 +376,14 @@ Parent cluster`,
|
|
|
376
376
|
const o = n.edge(g);
|
|
377
377
|
t.info("Edge " + g.v + " -> " + g.w + ": " + JSON.stringify(o), o), o.points.forEach((b) => b.y += y / 2);
|
|
378
378
|
const i = n.node(g.v);
|
|
379
|
-
var
|
|
380
|
-
const m = Q(E, o, u, r, i,
|
|
379
|
+
var w = n.node(g.w);
|
|
380
|
+
const m = Q(E, o, u, r, i, w, s);
|
|
381
381
|
U(o, m);
|
|
382
382
|
}), n.nodes().forEach(function(g) {
|
|
383
383
|
const o = n.node(g);
|
|
384
|
-
t.info(g, o.type, o.diff), o.isGroup && (
|
|
385
|
-
}), t.warn("Returning from recursive render XAX", l,
|
|
386
|
-
}, "recursiveRender"), ue = /* @__PURE__ */
|
|
384
|
+
t.info(g, o.type, o.diff), o.isGroup && (h = o.diff);
|
|
385
|
+
}), t.warn("Returning from recursive render XAX", l, h), { elem: l, diff: h };
|
|
386
|
+
}, "recursiveRender"), ue = /* @__PURE__ */ v(async (e, n) => {
|
|
387
387
|
var r, s, d, c, a, l;
|
|
388
388
|
const f = new k({
|
|
389
389
|
multigraph: !0,
|
|
@@ -397,11 +397,11 @@ Parent cluster`,
|
|
|
397
397
|
}).setDefaultEdgeLabel(function() {
|
|
398
398
|
return {};
|
|
399
399
|
}), E = n.select("g");
|
|
400
|
-
L(E, e.markers, e.type, e.diagramId), M(), j(), F(), ne(), e.nodes.forEach((
|
|
401
|
-
f.setNode(
|
|
402
|
-
}), t.debug("Edges:", e.edges), e.edges.forEach((
|
|
403
|
-
if (
|
|
404
|
-
const
|
|
400
|
+
L(E, e.markers, e.type, e.diagramId), M(), j(), F(), ne(), e.nodes.forEach((p) => {
|
|
401
|
+
f.setNode(p.id, { ...p }), p.parentId && f.setParent(p.id, p.parentId);
|
|
402
|
+
}), t.debug("Edges:", e.edges), e.edges.forEach((p) => {
|
|
403
|
+
if (p.start === p.end) {
|
|
404
|
+
const h = p.start, y = h + "---" + h + "---1", g = h + "---" + h + "---2", o = f.node(h);
|
|
405
405
|
f.setNode(y, {
|
|
406
406
|
domId: y,
|
|
407
407
|
id: y,
|
|
@@ -427,13 +427,13 @@ Parent cluster`,
|
|
|
427
427
|
width: 10,
|
|
428
428
|
height: 10
|
|
429
429
|
}), f.setParent(g, o.parentId);
|
|
430
|
-
const i = structuredClone(
|
|
431
|
-
i.label = "", i.arrowTypeEnd = "none", i.id =
|
|
430
|
+
const i = structuredClone(p), w = structuredClone(p), m = structuredClone(p);
|
|
431
|
+
i.label = "", i.arrowTypeEnd = "none", i.id = h + "-cyclic-special-1", w.arrowTypeStart = "none", w.arrowTypeEnd = "none", w.id = h + "-cyclic-special-mid", m.label = "", o.isGroup && (i.fromCluster = h, m.toCluster = h), m.id = h + "-cyclic-special-2", m.arrowTypeStart = "none", f.setEdge(h, y, i, h + "-cyclic-special-0"), f.setEdge(y, g, w, h + "-cyclic-special-1"), f.setEdge(g, h, m, h + "-cyc<lic-special-2");
|
|
432
432
|
} else
|
|
433
|
-
f.setEdge(
|
|
433
|
+
f.setEdge(p.start, p.end, { ...p }, p.id);
|
|
434
434
|
}), t.warn("Graph at first:", JSON.stringify(X(f))), ie(f), t.warn("Graph after XAX:", JSON.stringify(X(f)));
|
|
435
435
|
const C = Y();
|
|
436
|
-
await
|
|
436
|
+
await R(
|
|
437
437
|
E,
|
|
438
438
|
f,
|
|
439
439
|
e.type,
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
function J(t) {
|
|
2
|
+
return Math.abs(t = Math.round(t)) >= 1e21 ? t.toLocaleString("en").replace(/,/g, "") : t.toString(10);
|
|
3
|
+
}
|
|
4
|
+
function N(t, i) {
|
|
5
|
+
if ((o = (t = i ? t.toExponential(i - 1) : t.toExponential()).indexOf("e")) < 0) return null;
|
|
6
|
+
var o, r = t.slice(0, o);
|
|
7
|
+
return [
|
|
8
|
+
r.length > 1 ? r[0] + r.slice(2) : r,
|
|
9
|
+
+t.slice(o + 1)
|
|
10
|
+
];
|
|
11
|
+
}
|
|
12
|
+
function K(t) {
|
|
13
|
+
return t = N(Math.abs(t)), t ? t[1] : NaN;
|
|
14
|
+
}
|
|
15
|
+
function P(t, i) {
|
|
16
|
+
return function(o, r) {
|
|
17
|
+
for (var n = o.length, s = [], d = 0, u = t[0], y = 0; n > 0 && u > 0 && (y + u + 1 > r && (u = Math.max(1, r - y)), s.push(o.substring(n -= u, n + u)), !((y += u + 1) > r)); )
|
|
18
|
+
u = t[d = (d + 1) % t.length];
|
|
19
|
+
return s.reverse().join(i);
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function Q(t) {
|
|
23
|
+
return function(i) {
|
|
24
|
+
return i.replace(/[0-9]/g, function(o) {
|
|
25
|
+
return t[+o];
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
var R = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
30
|
+
function E(t) {
|
|
31
|
+
if (!(i = R.exec(t))) throw new Error("invalid format: " + t);
|
|
32
|
+
var i;
|
|
33
|
+
return new $({
|
|
34
|
+
fill: i[1],
|
|
35
|
+
align: i[2],
|
|
36
|
+
sign: i[3],
|
|
37
|
+
symbol: i[4],
|
|
38
|
+
zero: i[5],
|
|
39
|
+
width: i[6],
|
|
40
|
+
comma: i[7],
|
|
41
|
+
precision: i[8] && i[8].slice(1),
|
|
42
|
+
trim: i[9],
|
|
43
|
+
type: i[10]
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
E.prototype = $.prototype;
|
|
47
|
+
function $(t) {
|
|
48
|
+
this.fill = t.fill === void 0 ? " " : t.fill + "", this.align = t.align === void 0 ? ">" : t.align + "", this.sign = t.sign === void 0 ? "-" : t.sign + "", this.symbol = t.symbol === void 0 ? "" : t.symbol + "", this.zero = !!t.zero, this.width = t.width === void 0 ? void 0 : +t.width, this.comma = !!t.comma, this.precision = t.precision === void 0 ? void 0 : +t.precision, this.trim = !!t.trim, this.type = t.type === void 0 ? "" : t.type + "";
|
|
49
|
+
}
|
|
50
|
+
$.prototype.toString = function() {
|
|
51
|
+
return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
|
|
52
|
+
};
|
|
53
|
+
function V(t) {
|
|
54
|
+
t: for (var i = t.length, o = 1, r = -1, n; o < i; ++o)
|
|
55
|
+
switch (t[o]) {
|
|
56
|
+
case ".":
|
|
57
|
+
r = n = o;
|
|
58
|
+
break;
|
|
59
|
+
case "0":
|
|
60
|
+
r === 0 && (r = o), n = o;
|
|
61
|
+
break;
|
|
62
|
+
default:
|
|
63
|
+
if (!+t[o]) break t;
|
|
64
|
+
r > 0 && (r = 0);
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
return r > 0 ? t.slice(0, r) + t.slice(n + 1) : t;
|
|
68
|
+
}
|
|
69
|
+
var q;
|
|
70
|
+
function W(t, i) {
|
|
71
|
+
var o = N(t, i);
|
|
72
|
+
if (!o) return t + "";
|
|
73
|
+
var r = o[0], n = o[1], s = n - (q = Math.max(-8, Math.min(8, Math.floor(n / 3))) * 3) + 1, d = r.length;
|
|
74
|
+
return s === d ? r : s > d ? r + new Array(s - d + 1).join("0") : s > 0 ? r.slice(0, s) + "." + r.slice(s) : "0." + new Array(1 - s).join("0") + N(t, Math.max(0, i + s - 1))[0];
|
|
75
|
+
}
|
|
76
|
+
function O(t, i) {
|
|
77
|
+
var o = N(t, i);
|
|
78
|
+
if (!o) return t + "";
|
|
79
|
+
var r = o[0], n = o[1];
|
|
80
|
+
return n < 0 ? "0." + new Array(-n).join("0") + r : r.length > n + 1 ? r.slice(0, n + 1) + "." + r.slice(n + 1) : r + new Array(n - r.length + 2).join("0");
|
|
81
|
+
}
|
|
82
|
+
const T = {
|
|
83
|
+
"%": (t, i) => (t * 100).toFixed(i),
|
|
84
|
+
b: (t) => Math.round(t).toString(2),
|
|
85
|
+
c: (t) => t + "",
|
|
86
|
+
d: J,
|
|
87
|
+
e: (t, i) => t.toExponential(i),
|
|
88
|
+
f: (t, i) => t.toFixed(i),
|
|
89
|
+
g: (t, i) => t.toPrecision(i),
|
|
90
|
+
o: (t) => Math.round(t).toString(8),
|
|
91
|
+
p: (t, i) => O(t * 100, i),
|
|
92
|
+
r: O,
|
|
93
|
+
s: W,
|
|
94
|
+
X: (t) => Math.round(t).toString(16).toUpperCase(),
|
|
95
|
+
x: (t) => Math.round(t).toString(16)
|
|
96
|
+
};
|
|
97
|
+
function U(t) {
|
|
98
|
+
return t;
|
|
99
|
+
}
|
|
100
|
+
var Y = Array.prototype.map, Z = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
|
|
101
|
+
function _(t) {
|
|
102
|
+
var i = t.grouping === void 0 || t.thousands === void 0 ? U : P(Y.call(t.grouping, Number), t.thousands + ""), o = t.currency === void 0 ? "" : t.currency[0] + "", r = t.currency === void 0 ? "" : t.currency[1] + "", n = t.decimal === void 0 ? "." : t.decimal + "", s = t.numerals === void 0 ? U : Q(Y.call(t.numerals, String)), d = t.percent === void 0 ? "%" : t.percent + "", u = t.minus === void 0 ? "−" : t.minus + "", y = t.nan === void 0 ? "NaN" : t.nan + "";
|
|
103
|
+
function C(a) {
|
|
104
|
+
a = E(a);
|
|
105
|
+
var M = a.fill, b = a.align, h = a.sign, w = a.symbol, v = a.zero, x = a.width, j = a.comma, g = a.precision, F = a.trim, c = a.type;
|
|
106
|
+
c === "n" ? (j = !0, c = "g") : T[c] || (g === void 0 && (g = 12), F = !0, c = "g"), (v || M === "0" && b === "=") && (v = !0, M = "0", b = "=");
|
|
107
|
+
var D = w === "$" ? o : w === "#" && /[boxX]/.test(c) ? "0" + c.toLowerCase() : "", H = w === "$" ? r : /[%p]/.test(c) ? d : "", L = T[c], I = /[defgprs%]/.test(c);
|
|
108
|
+
g = g === void 0 ? 6 : /[gprs]/.test(c) ? Math.max(1, Math.min(21, g)) : Math.max(0, Math.min(20, g));
|
|
109
|
+
function X(e) {
|
|
110
|
+
var m = D, l = H, p, G, k;
|
|
111
|
+
if (c === "c")
|
|
112
|
+
l = L(e) + l, e = "";
|
|
113
|
+
else {
|
|
114
|
+
e = +e;
|
|
115
|
+
var S = e < 0 || 1 / e < 0;
|
|
116
|
+
if (e = isNaN(e) ? y : L(Math.abs(e), g), F && (e = V(e)), S && +e == 0 && h !== "+" && (S = !1), m = (S ? h === "(" ? h : u : h === "-" || h === "(" ? "" : h) + m, l = (c === "s" ? Z[8 + q / 3] : "") + l + (S && h === "(" ? ")" : ""), I) {
|
|
117
|
+
for (p = -1, G = e.length; ++p < G; )
|
|
118
|
+
if (k = e.charCodeAt(p), 48 > k || k > 57) {
|
|
119
|
+
l = (k === 46 ? n + e.slice(p + 1) : e.slice(p)) + l, e = e.slice(0, p);
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
j && !v && (e = i(e, 1 / 0));
|
|
125
|
+
var z = m.length + e.length + l.length, f = z < x ? new Array(x - z + 1).join(M) : "";
|
|
126
|
+
switch (j && v && (e = i(f + e, f.length ? x - l.length : 1 / 0), f = ""), b) {
|
|
127
|
+
case "<":
|
|
128
|
+
e = m + e + l + f;
|
|
129
|
+
break;
|
|
130
|
+
case "=":
|
|
131
|
+
e = m + f + e + l;
|
|
132
|
+
break;
|
|
133
|
+
case "^":
|
|
134
|
+
e = f.slice(0, z = f.length >> 1) + m + e + l + f.slice(z);
|
|
135
|
+
break;
|
|
136
|
+
default:
|
|
137
|
+
e = f + m + e + l;
|
|
138
|
+
break;
|
|
139
|
+
}
|
|
140
|
+
return s(e);
|
|
141
|
+
}
|
|
142
|
+
return X.toString = function() {
|
|
143
|
+
return a + "";
|
|
144
|
+
}, X;
|
|
145
|
+
}
|
|
146
|
+
function B(a, M) {
|
|
147
|
+
var b = C((a = E(a), a.type = "f", a)), h = Math.max(-8, Math.min(8, Math.floor(K(M) / 3))) * 3, w = Math.pow(10, -h), v = Z[8 + h / 3];
|
|
148
|
+
return function(x) {
|
|
149
|
+
return b(w * x) + v;
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
return {
|
|
153
|
+
format: C,
|
|
154
|
+
formatPrefix: B
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
var A, tt, it;
|
|
158
|
+
et({
|
|
159
|
+
thousands: ",",
|
|
160
|
+
grouping: [3],
|
|
161
|
+
currency: ["$", ""]
|
|
162
|
+
});
|
|
163
|
+
function et(t) {
|
|
164
|
+
return A = _(t), tt = A.format, it = A.formatPrefix, A;
|
|
165
|
+
}
|
|
166
|
+
export {
|
|
167
|
+
K as J,
|
|
168
|
+
E as N,
|
|
169
|
+
tt as n,
|
|
170
|
+
it as t
|
|
171
|
+
};
|