@kong-ui-public/documentation 1.5.78 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{arc-DZdQjcG8-C_2Dx6GQ.js → arc-DZdQjcG8-CduayE88.js} +2 -2
- package/dist/{architectureDiagram-3BPJPVTR-By_DXDyu-DTj86bUZ.js → architectureDiagram-3BPJPVTR-By_DXDyu-U3MSLbOU.js} +1506 -1513
- package/dist/blockDiagram-GPEHLZMM-9Cp9Hbl7-CKP-SiVG.js +3268 -0
- package/dist/{c4Diagram-AAUBKEIU-ftdwlfdB-CYiERTWJ.js → c4Diagram-AAUBKEIU-ftdwlfdB-D3A61SdV.js} +11 -12
- package/dist/{channel-DM9j7IFL-CjNPz4Hd.js → channel-DM9j7IFL-DxqBUxfY.js} +1 -1
- package/dist/{chunk-2J33WTMH-CBbjVzWb-BAAd-TK5.js → chunk-2J33WTMH-CBbjVzWb-0og4LHQ-.js} +7 -8
- package/dist/chunk-4BX2VUAB-C_NnimAy--QQ0Db2V.js +8 -0
- package/dist/{chunk-55IACEB6-DZn1aNO0-_bs5ibIB.js → chunk-55IACEB6-DZn1aNO0-A3zOZ7dT.js} +1 -1
- package/dist/{chunk-727SXJPM-B2_6_WLv-CzbzsbtK.js → chunk-727SXJPM-B2_6_WLv-Bs3CxHaX.js} +548 -549
- package/dist/{chunk-AQP2D5EJ-DEAEiJjW-BPr5JvkB.js → chunk-AQP2D5EJ-DEAEiJjW-DTbwZT8N.js} +446 -458
- package/dist/{chunk-FMBD7UC4-D_tZ4Dxg-BUygZnCT.js → chunk-FMBD7UC4-D_tZ4Dxg-DwjoPGUH.js} +1 -1
- package/dist/{chunk-ND2GUHAM-Duw3k8MU-Dr8SD23L.js → chunk-ND2GUHAM-Duw3k8MU-HmrdHLJ9.js} +1 -1
- package/dist/{chunk-QZHKN3VN-DN6nBdn0-DxWE5zsM.js → chunk-QZHKN3VN-DN6nBdn0-BvQOETVz.js} +1 -1
- package/dist/classDiagram-4FO5ZUOK-Du5qFrfN-BqXc0etQ.js +17 -0
- package/dist/classDiagram-v2-Q7XG4LA2-DM6zutfc-BqXc0etQ.js +17 -0
- package/dist/{cose-bilkent-S5V4N54A-0ZumbVgj-BKcFQWbE.js → cose-bilkent-S5V4N54A-0ZumbVgj-0z7CQbIH.js} +465 -465
- package/dist/{cytoscape.esm-BDIiOYYO-BbddfVIJ.js → cytoscape.esm-BDIiOYYO-C1jMBhD8.js} +356 -371
- package/dist/dagre-BM42HDAG-qMWMsyLb-DGMrq3i3.js +288 -0
- package/dist/{dagre-DJxg_nfI-BzVw7cNP.js → dagre-DJxg_nfI-hVOVexz-.js} +9 -9
- package/dist/{diagram-2AECGRRQ-B2gF_dHe-DCRSlKG-.js → diagram-2AECGRRQ-B2gF_dHe-Bv_EpxRz.js} +10 -14
- package/dist/{diagram-5GNKFQAL-DJ9WwRrD-DtSWJY6-.js → diagram-5GNKFQAL-DJ9WwRrD-WVvm0Icu.js} +4 -4
- package/dist/{diagram-KO2AKTUF-RfkqD-VW-ZR9mxccc.js → diagram-KO2AKTUF-RfkqD-VW-yyAds1Qq.js} +153 -156
- package/dist/{diagram-LMA3HP47-Ct7s9hIt-DXtPBRn4.js → diagram-LMA3HP47-Ct7s9hIt-Dy6f9BAO.js} +21 -22
- package/dist/{diagram-OG6HWLK6-BSYJ2CoI-DX1BfXw6.js → diagram-OG6HWLK6-BSYJ2CoI-ckmfat-L.js} +79 -81
- package/dist/documentation.es.js +1 -1
- package/dist/documentation.umd.js +374 -374
- package/dist/{erDiagram-TEJ5UH35-BudwiSYX-BPA5-1u6.js → erDiagram-TEJ5UH35-BudwiSYX-bVzp1Kjr.js} +134 -135
- package/dist/{flowDiagram-I6XJVG4X-B23Smlxp-Cb24VZnb.js → flowDiagram-I6XJVG4X-B23Smlxp-ClHvdCdJ.js} +842 -849
- package/dist/{ganttDiagram-6RSMTGT7-C-i89z_P-DEdTFlTH.js → ganttDiagram-6RSMTGT7-C-i89z_P-t5UAyRM5.js} +46 -46
- package/dist/gitGraphDiagram-PVQCEYII-DpVfXnUD-Cg3smOdz.js +734 -0
- package/dist/{graphlib-D2YdGpuK-CM8PX5pf.js → graphlib-D2YdGpuK-CnQPmzkS.js} +17 -17
- package/dist/{index-Dpyqhws4.js → index-DfVKdDwj.js} +16258 -16515
- package/dist/{infoDiagram-5YYISTIA-CDUwzFql-BsbTK2Me.js → infoDiagram-5YYISTIA-CDUwzFql-Bmthmcp4.js} +2 -2
- package/dist/{ishikawaDiagram-YF4QCWOH-MfYdx0rK-DsWP0O6d.js → ishikawaDiagram-YF4QCWOH-MfYdx0rK-cbltssua.js} +137 -138
- package/dist/{journeyDiagram-JHISSGLW-C_udOPtJ-BkIf9B4Q.js → journeyDiagram-JHISSGLW-C_udOPtJ-BjAvgSAR.js} +13 -13
- package/dist/{kanban-definition-UN3LZRKU-C1Su-UOY-6sw-wDwK.js → kanban-definition-UN3LZRKU-C1Su-UOY-DZ93dsWZ.js} +334 -336
- package/dist/{katex-D7tFlpqA-B7yKriH4.js → katex-D7tFlpqA-BOSQxXe1.js} +254 -256
- package/dist/{linear-1MXhYum8-CfR5ywK4.js → linear-1MXhYum8-9C1jno9G.js} +5 -5
- package/dist/{mindmap-definition-RKZ34NQL-MuSV765K-Cv2rDIFS.js → mindmap-definition-RKZ34NQL-MuSV765K-Kub1iXFv.js} +94 -97
- package/dist/{ordinal-D9ksOc8y-CrGveXkB.js → ordinal-D9ksOc8y-2hZwLyEk.js} +1 -1
- package/dist/{pieDiagram-4H26LBE5-TgFp7J6_-C8m2xJbj.js → pieDiagram-4H26LBE5-TgFp7J6_-i6NxP3Xz.js} +43 -44
- package/dist/{quadrantDiagram-W4KKPZXB-DKPne3o_-D0Tfl8NQ.js → quadrantDiagram-W4KKPZXB-DKPne3o_-DXLHqRuR.js} +351 -353
- package/dist/{requirementDiagram-4Y6WPE33-vh8uUAp_-C5zLx-_o.js → requirementDiagram-4Y6WPE33-vh8uUAp_-CHtsISxP.js} +384 -386
- package/dist/{sankeyDiagram-5OEKKPKP-Cgs6W_El-DBrv4QL_.js → sankeyDiagram-5OEKKPKP-Cgs6W_El-D7GZyd8n.js} +178 -178
- package/dist/{sequenceDiagram-3UESZ5HK-C5F57Dkt-D6DqZiJP.js → sequenceDiagram-3UESZ5HK-C5F57Dkt-BW1Hb7UW.js} +643 -653
- package/dist/{stateDiagram-AJRCARHV-09dUKG6Y-9QhAIhCk.js → stateDiagram-AJRCARHV-09dUKG6Y-Dm2a1vNu.js} +5 -5
- package/dist/stateDiagram-v2-BHNVJYJU-CWqmRt12-DbWzZ-j-.js +16 -0
- package/dist/style.css +1 -1
- package/dist/timeline-definition-PNZ67QCA-CCndyx0V-B5CT96H-.js +1095 -0
- package/dist/{vennDiagram-CIIHVFJN-DQfKxM3L-086u82L3.js → vennDiagram-CIIHVFJN-DQfKxM3L-qUaKEl7l.js} +596 -603
- package/dist/{wardley-L42UT6IY-BjAkE_cs-li1xYed9.js → wardley-L42UT6IY-BjAkE_cs-C-giFqos.js} +5760 -5809
- package/dist/wardleyDiagram-YWT4CUSO-Bf9L2NsL-DXPF2Ee9.js +639 -0
- package/dist/{xychartDiagram-2RQKCTM6-ChNH3q1U--vbcTXH5.js → xychartDiagram-2RQKCTM6-ChNH3q1U-a59DsJDA.js} +10 -10
- package/package.json +7 -7
- package/dist/blockDiagram-GPEHLZMM-9Cp9Hbl7-CSQRWfog.js +0 -3278
- package/dist/chunk-4BX2VUAB-C_NnimAy-B-8x_g6K.js +0 -9
- package/dist/classDiagram-4FO5ZUOK-Du5qFrfN-DLmqgbj1.js +0 -17
- package/dist/classDiagram-v2-Q7XG4LA2-DM6zutfc-DLmqgbj1.js +0 -17
- package/dist/dagre-BM42HDAG-qMWMsyLb-BzK2-5zM.js +0 -291
- package/dist/gitGraphDiagram-PVQCEYII-DpVfXnUD-BtfdBLxW.js +0 -747
- package/dist/stateDiagram-v2-BHNVJYJU-CWqmRt12-Br5eF-5b.js +0 -16
- package/dist/timeline-definition-PNZ67QCA-CCndyx0V-CkhwKYjQ.js +0 -1106
- package/dist/wardleyDiagram-YWT4CUSO-Bf9L2NsL-CCMCDU5F.js +0 -647
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { p as l } from "./index-Dpyqhws4.js";
|
|
2
|
-
function r(i, c) {
|
|
3
|
-
var e, o, a;
|
|
4
|
-
i.accDescr && ((e = c.setAccDescription) == null || e.call(c, i.accDescr)), i.accTitle && ((o = c.setAccTitle) == null || o.call(c, i.accTitle)), i.title && ((a = c.setDiagramTitle) == null || a.call(c, i.title));
|
|
5
|
-
}
|
|
6
|
-
l(r, "populateCommonDb");
|
|
7
|
-
export {
|
|
8
|
-
r as t
|
|
9
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { p as a } from "./index-Dpyqhws4.js";
|
|
2
|
-
import "./chunk-ND2GUHAM-Duw3k8MU-Dr8SD23L.js";
|
|
3
|
-
import { j as t, M as o, w as s, A as i } from "./chunk-727SXJPM-B2_6_WLv-CzbzsbtK.js";
|
|
4
|
-
var l = {
|
|
5
|
-
parser: s,
|
|
6
|
-
get db() {
|
|
7
|
-
return new i();
|
|
8
|
-
},
|
|
9
|
-
renderer: o,
|
|
10
|
-
styles: t,
|
|
11
|
-
init: /* @__PURE__ */ a((r) => {
|
|
12
|
-
r.class || (r.class = {}), r.class.arrowMarkerAbsolute = r.arrowMarkerAbsolute;
|
|
13
|
-
}, "init")
|
|
14
|
-
};
|
|
15
|
-
export {
|
|
16
|
-
l as diagram
|
|
17
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { p as a } from "./index-Dpyqhws4.js";
|
|
2
|
-
import "./chunk-ND2GUHAM-Duw3k8MU-Dr8SD23L.js";
|
|
3
|
-
import { j as t, M as o, w as s, A as i } from "./chunk-727SXJPM-B2_6_WLv-CzbzsbtK.js";
|
|
4
|
-
var l = {
|
|
5
|
-
parser: s,
|
|
6
|
-
get db() {
|
|
7
|
-
return new i();
|
|
8
|
-
},
|
|
9
|
-
renderer: o,
|
|
10
|
-
styles: t,
|
|
11
|
-
init: /* @__PURE__ */ a((r) => {
|
|
12
|
-
r.class || (r.class = {}), r.class.arrowMarkerAbsolute = r.arrowMarkerAbsolute;
|
|
13
|
-
}, "init")
|
|
14
|
-
};
|
|
15
|
-
export {
|
|
16
|
-
l as diagram
|
|
17
|
-
};
|
|
@@ -1,291 +0,0 @@
|
|
|
1
|
-
import { p as y, be as J, bf as F, bg as z, bh as M, g as a, Z as $, bi as j, bj as Y, az as Z, bk as H, aF as V, aA as D, ay as _, bl as q, bm as K } from "./index-Dpyqhws4.js";
|
|
2
|
-
import { y as O, l as C } from "./graphlib-D2YdGpuK-CM8PX5pf.js";
|
|
3
|
-
import { z as Q, V as k, a as U } from "./dagre-DJxg_nfI-BzVw7cNP.js";
|
|
4
|
-
var W = 4;
|
|
5
|
-
function ee(e) {
|
|
6
|
-
return U(e, W);
|
|
7
|
-
}
|
|
8
|
-
function b(e) {
|
|
9
|
-
var n = {
|
|
10
|
-
options: {
|
|
11
|
-
directed: e.isDirected(),
|
|
12
|
-
multigraph: e.isMultigraph(),
|
|
13
|
-
compound: e.isCompound()
|
|
14
|
-
},
|
|
15
|
-
nodes: re(e),
|
|
16
|
-
edges: ne(e)
|
|
17
|
-
};
|
|
18
|
-
return C(e.graph()) || (n.value = ee(e.graph())), n;
|
|
19
|
-
}
|
|
20
|
-
function re(e) {
|
|
21
|
-
return k(e.nodes(), function(n) {
|
|
22
|
-
var r = e.node(n), d = e.parent(n), o = { v: n };
|
|
23
|
-
return C(r) || (o.value = r), C(d) || (o.parent = d), o;
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
function ne(e) {
|
|
27
|
-
return k(e.edges(), function(n) {
|
|
28
|
-
var r = e.edge(n), d = {
|
|
29
|
-
v: n.v,
|
|
30
|
-
w: n.w
|
|
31
|
-
};
|
|
32
|
-
return C(n.name) || (d.name = n.name), C(r) || (d.value = r), d;
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
var f = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), G = /* @__PURE__ */ new Map(), te = /* @__PURE__ */ y(() => {
|
|
36
|
-
E.clear(), G.clear(), f.clear();
|
|
37
|
-
}, "clear"), I = /* @__PURE__ */ y((e, n) => {
|
|
38
|
-
let r = E.get(n) || [];
|
|
39
|
-
return a.trace("In isDescendant", n, " ", e, " = ", r.includes(e)), r.includes(e);
|
|
40
|
-
}, "isDescendant"), ae = /* @__PURE__ */ y((e, n) => {
|
|
41
|
-
let r = E.get(n) || [];
|
|
42
|
-
return a.info("Descendants of ", n, " is ", r), a.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) : (a.debug("Tilt, ", n, ",not in descendants"), !1);
|
|
43
|
-
}, "edgeInCluster"), R = /* @__PURE__ */ y((e, n, r, d) => {
|
|
44
|
-
a.warn("Copying children of ", e, "root", d, "data", n.node(e), d);
|
|
45
|
-
let o = n.children(e) || [];
|
|
46
|
-
e !== d && o.push(e), a.warn("Copying (nodes) clusterId", e, "nodes", o), o.forEach((l) => {
|
|
47
|
-
if (n.children(l).length > 0) R(l, n, r, d);
|
|
48
|
-
else {
|
|
49
|
-
let i = n.node(l);
|
|
50
|
-
a.info("cp ", l, " to ", d, " with parent ", e), r.setNode(l, i), d !== n.parent(l) && (a.warn("Setting parent", l, n.parent(l)), r.setParent(l, n.parent(l))), e !== d && l !== e ? (a.debug("Setting parent", l, e), r.setParent(l, e)) : (a.info("In copy ", e, "root", d, "data", n.node(e), d), a.debug("Not Setting parent for node=", l, "cluster!==rootId", e !== d, "node!==clusterId", l !== e));
|
|
51
|
-
let s = n.edges(l);
|
|
52
|
-
a.debug("Copying Edges", s), s.forEach((c) => {
|
|
53
|
-
a.info("Edge", c);
|
|
54
|
-
let X = n.edge(c.v, c.w, c.name);
|
|
55
|
-
a.info("Edge data", X, d);
|
|
56
|
-
try {
|
|
57
|
-
ae(c, d) ? (a.info("Copying as ", c.v, c.w, X, c.name), r.setEdge(c.v, c.w, X, c.name), a.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : a.info("Skipping copy of edge ", c.v, "-->", c.w, " rootId: ", d, " clusterId:", e);
|
|
58
|
-
} catch (N) {
|
|
59
|
-
a.error(N);
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
a.debug("Removing node", l), n.removeNode(l);
|
|
64
|
-
});
|
|
65
|
-
}, "copy"), T = /* @__PURE__ */ y((e, n) => {
|
|
66
|
-
let r = n.children(e), d = [...r];
|
|
67
|
-
for (let o of r) G.set(o, e), d = [...d, ...T(o, n)];
|
|
68
|
-
return d;
|
|
69
|
-
}, "extractDescendants"), ie = /* @__PURE__ */ y((e, n, r) => {
|
|
70
|
-
let d = e.edges().filter((s) => s.v === n || s.w === n), o = e.edges().filter((s) => s.v === r || s.w === r), l = d.map((s) => ({
|
|
71
|
-
v: s.v === n ? r : s.v,
|
|
72
|
-
w: s.w === n ? n : s.w
|
|
73
|
-
})), i = o.map((s) => ({
|
|
74
|
-
v: s.v,
|
|
75
|
-
w: s.w
|
|
76
|
-
}));
|
|
77
|
-
return l.filter((s) => i.some((c) => s.v === c.v && s.w === c.w));
|
|
78
|
-
}, "findCommonEdges"), S = /* @__PURE__ */ y((e, n, r) => {
|
|
79
|
-
let d = n.children(e);
|
|
80
|
-
if (a.trace("Searching children of id ", e, d), d.length < 1) return e;
|
|
81
|
-
let o;
|
|
82
|
-
for (let l of d) {
|
|
83
|
-
let i = S(l, n, r), s = ie(n, r, i);
|
|
84
|
-
if (i) if (s.length > 0) o = i;
|
|
85
|
-
else return i;
|
|
86
|
-
}
|
|
87
|
-
return o;
|
|
88
|
-
}, "findNonClusterChild"), L = /* @__PURE__ */ y((e) => !f.has(e) || !f.get(e).externalConnections ? e : f.has(e) ? f.get(e).id : e, "getAnchorId"), de = /* @__PURE__ */ y((e, n) => {
|
|
89
|
-
if (!e || n > 10) {
|
|
90
|
-
a.debug("Opting out, no graph ");
|
|
91
|
-
return;
|
|
92
|
-
} else a.debug("Opting in, graph ");
|
|
93
|
-
e.nodes().forEach(function(r) {
|
|
94
|
-
e.children(r).length > 0 && (a.warn("Cluster identified", r, " Replacement id in edges: ", S(r, e, r)), E.set(r, T(r, e)), f.set(r, {
|
|
95
|
-
id: S(r, e, r),
|
|
96
|
-
clusterData: e.node(r)
|
|
97
|
-
}));
|
|
98
|
-
}), e.nodes().forEach(function(r) {
|
|
99
|
-
let d = e.children(r), o = e.edges();
|
|
100
|
-
d.length > 0 ? (a.debug("Cluster identified", r, E), o.forEach((l) => {
|
|
101
|
-
I(l.v, r) ^ I(l.w, r) && (a.warn("Edge: ", l, " leaves cluster ", r), a.warn("Descendants of XXX ", r, ": ", E.get(r)), f.get(r).externalConnections = !0);
|
|
102
|
-
})) : a.debug("Not a cluster ", r, E);
|
|
103
|
-
});
|
|
104
|
-
for (let r of f.keys()) {
|
|
105
|
-
let d = f.get(r).id, o = e.parent(d);
|
|
106
|
-
o !== r && f.has(o) && !f.get(o).externalConnections && (f.get(r).id = o);
|
|
107
|
-
}
|
|
108
|
-
e.edges().forEach(function(r) {
|
|
109
|
-
let d = e.edge(r);
|
|
110
|
-
a.warn("Edge " + r.v + " -> " + r.w + ": " + JSON.stringify(r)), a.warn("Edge " + r.v + " -> " + r.w + ": " + JSON.stringify(e.edge(r)));
|
|
111
|
-
let o = r.v, l = r.w;
|
|
112
|
-
if (a.warn("Fix XXX", f, "ids:", r.v, r.w, "Translating: ", f.get(r.v), " --- ", f.get(r.w)), f.get(r.v) || f.get(r.w)) {
|
|
113
|
-
if (a.warn("Fixing and trying - removing XXX", r.v, r.w, r.name), o = L(r.v), l = L(r.w), e.removeEdge(r.v, r.w, r.name), o !== r.v) {
|
|
114
|
-
let i = e.parent(o);
|
|
115
|
-
f.get(i).externalConnections = !0, d.fromCluster = r.v;
|
|
116
|
-
}
|
|
117
|
-
if (l !== r.w) {
|
|
118
|
-
let i = e.parent(l);
|
|
119
|
-
f.get(i).externalConnections = !0, d.toCluster = r.w;
|
|
120
|
-
}
|
|
121
|
-
a.warn("Fix Replacing with XXX", o, l, r.name), e.setEdge(o, l, d, r.name);
|
|
122
|
-
}
|
|
123
|
-
}), a.warn("Adjusted Graph", b(e)), P(e, 0), a.trace(f);
|
|
124
|
-
}, "adjustClustersAndEdges"), P = /* @__PURE__ */ y((e, n) => {
|
|
125
|
-
var o, l;
|
|
126
|
-
if (a.warn("extractor - ", n, b(e), e.children("D")), n > 10) {
|
|
127
|
-
a.error("Bailing out");
|
|
128
|
-
return;
|
|
129
|
-
}
|
|
130
|
-
let r = e.nodes(), d = !1;
|
|
131
|
-
for (let i of r) {
|
|
132
|
-
let s = e.children(i);
|
|
133
|
-
d || (d = s.length > 0);
|
|
134
|
-
}
|
|
135
|
-
if (!d) {
|
|
136
|
-
a.debug("Done, no node has children", e.nodes());
|
|
137
|
-
return;
|
|
138
|
-
}
|
|
139
|
-
a.debug("Nodes = ", r, n);
|
|
140
|
-
for (let i of r) if (a.debug("Extracting node", i, f, f.has(i) && !f.get(i).externalConnections, !e.parent(i), e.node(i), e.children("D"), " Depth ", n), !f.has(i)) a.debug("Not a cluster", i, n);
|
|
141
|
-
else if (!f.get(i).externalConnections && e.children(i) && e.children(i).length > 0) {
|
|
142
|
-
a.warn("Cluster without external connections, without a parent and with children", i, n);
|
|
143
|
-
let s = e.graph().rankdir === "TB" ? "LR" : "TB";
|
|
144
|
-
(l = (o = f.get(i)) == null ? void 0 : o.clusterData) != null && l.dir && (s = f.get(i).clusterData.dir, a.warn("Fixing dir", f.get(i).clusterData.dir, s));
|
|
145
|
-
let c = new O({
|
|
146
|
-
multigraph: !0,
|
|
147
|
-
compound: !0
|
|
148
|
-
}).setGraph({
|
|
149
|
-
rankdir: s,
|
|
150
|
-
nodesep: 50,
|
|
151
|
-
ranksep: 50,
|
|
152
|
-
marginx: 8,
|
|
153
|
-
marginy: 8
|
|
154
|
-
}).setDefaultEdgeLabel(function() {
|
|
155
|
-
return {};
|
|
156
|
-
});
|
|
157
|
-
a.warn("Old graph before copy", b(e)), R(i, e, c, i), e.setNode(i, {
|
|
158
|
-
clusterNode: !0,
|
|
159
|
-
id: i,
|
|
160
|
-
clusterData: f.get(i).clusterData,
|
|
161
|
-
label: f.get(i).label,
|
|
162
|
-
graph: c
|
|
163
|
-
}), a.warn("New graph after copy node: (", i, ")", b(c)), a.debug("Old graph after copy", b(e));
|
|
164
|
-
} else a.warn("Cluster ** ", i, " **not meeting the criteria !externalConnections:", !f.get(i).externalConnections, " no parent: ", !e.parent(i), " children ", e.children(i) && e.children(i).length > 0, e.children("D"), n), a.debug(f);
|
|
165
|
-
r = e.nodes(), a.warn("New list of nodes", r);
|
|
166
|
-
for (let i of r) {
|
|
167
|
-
let s = e.node(i);
|
|
168
|
-
a.warn(" Now next level", i, s), s != null && s.clusterNode && P(s.graph, n + 1);
|
|
169
|
-
}
|
|
170
|
-
}, "extractor"), A = /* @__PURE__ */ y((e, n) => {
|
|
171
|
-
if (n.length === 0) return [];
|
|
172
|
-
let r = Object.assign([], n);
|
|
173
|
-
return n.forEach((d) => {
|
|
174
|
-
let o = A(e, e.children(d));
|
|
175
|
-
r = [...r, ...o];
|
|
176
|
-
}), r;
|
|
177
|
-
}, "sorter"), oe = /* @__PURE__ */ y((e) => A(e, e.children()), "sortNodesByHierarchy"), B = /* @__PURE__ */ y(async (e, n, r, d, o, l) => {
|
|
178
|
-
a.warn("Graph in recursive render:XAX", b(n), o);
|
|
179
|
-
let i = n.graph().rankdir;
|
|
180
|
-
a.trace("Dir in recursive render - dir:", i);
|
|
181
|
-
let s = e.insert("g").attr("class", "root");
|
|
182
|
-
n.nodes() ? a.info("Recursive render XXX", n.nodes()) : a.info("No nodes found for", n), n.edges().length > 0 && a.info("Recursive edges", n.edge(n.edges()[0]));
|
|
183
|
-
let c = s.insert("g").attr("class", "clusters"), X = s.insert("g").attr("class", "edgePaths"), N = s.insert("g").attr("class", "edgeLabels"), h = s.insert("g").attr("class", "nodes");
|
|
184
|
-
await Promise.all(n.nodes().map(async function(g) {
|
|
185
|
-
let t = n.node(g);
|
|
186
|
-
if (o !== void 0) {
|
|
187
|
-
let u = JSON.parse(JSON.stringify(o.clusterData));
|
|
188
|
-
a.trace(`Setting data for parent cluster XXX
|
|
189
|
-
Node.id = `, g, `
|
|
190
|
-
data=`, u.height, `
|
|
191
|
-
Parent cluster`, o.height), n.setNode(o.id, u), n.parent(g) || (a.trace("Setting parent", g, o.id), n.setParent(g, o.id, u));
|
|
192
|
-
}
|
|
193
|
-
if (a.info("(Insert) Node XXX" + g + ": " + JSON.stringify(n.node(g))), t == null ? void 0 : t.clusterNode) {
|
|
194
|
-
a.info("Cluster identified XBX", g, t.width, n.node(g));
|
|
195
|
-
let { ranksep: u, nodesep: w } = n.graph();
|
|
196
|
-
t.graph.setGraph({
|
|
197
|
-
...t.graph.graph(),
|
|
198
|
-
ranksep: u + 25,
|
|
199
|
-
nodesep: w
|
|
200
|
-
});
|
|
201
|
-
let v = await B(h, t.graph, r, d, n.node(g), l), x = v.elem;
|
|
202
|
-
j(t, x), t.diff = v.diff || 0, a.info("New compound node after recursive render XAX", g, "width", t.width, "height", t.height), Y(x, t);
|
|
203
|
-
} else n.children(g).length > 0 ? (a.trace("Cluster - the non recursive path XBX", g, t.id, t, t.width, "Graph:", n), a.trace(S(t.id, n)), f.set(t.id, {
|
|
204
|
-
id: S(t.id, n),
|
|
205
|
-
node: t
|
|
206
|
-
})) : (a.trace("Node - the non recursive path XAX", g, h, n.node(g), i), await Z(h, n.node(g), {
|
|
207
|
-
config: l,
|
|
208
|
-
dir: i
|
|
209
|
-
}));
|
|
210
|
-
})), await (/* @__PURE__ */ y(async () => {
|
|
211
|
-
let g = n.edges().map(async function(t) {
|
|
212
|
-
let u = n.edge(t.v, t.w, t.name);
|
|
213
|
-
a.info("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(t)), a.info("Edge " + t.v + " -> " + t.w + ": ", t, " ", JSON.stringify(n.edge(t))), a.info("Fix", f, "ids:", t.v, t.w, "Translating: ", f.get(t.v), f.get(t.w)), await H(N, u);
|
|
214
|
-
});
|
|
215
|
-
await Promise.all(g);
|
|
216
|
-
}, "processEdges"))(), a.info("Graph before layout:", JSON.stringify(b(n))), a.info("############################################# XXX"), a.info("### Layout ### XXX"), a.info("############################################# XXX"), Q(n), a.info("Graph after layout:", JSON.stringify(b(n)));
|
|
217
|
-
let p = 0, { subGraphTitleTotalMargin: m } = V(l);
|
|
218
|
-
return await Promise.all(oe(n).map(async function(g) {
|
|
219
|
-
var u;
|
|
220
|
-
let t = n.node(g);
|
|
221
|
-
if (a.info("Position XBX => " + g + ": (" + t.x, "," + t.y, ") width: ", t.width, " height: ", t.height), t == null ? void 0 : t.clusterNode) t.y += m, a.info("A tainted cluster node XBX1", g, t.id, t.width, t.height, t.x, t.y, n.parent(g)), f.get(t.id).node = t, D(t);
|
|
222
|
-
else if (n.children(g).length > 0) {
|
|
223
|
-
a.info("A pure cluster node XBX1", g, t.id, t.x, t.y, t.width, t.height, n.parent(g)), t.height += m, n.node(t.parentId);
|
|
224
|
-
let w = (t == null ? void 0 : t.padding) / 2 || 0, v = ((u = t == null ? void 0 : t.labelBBox) == null ? void 0 : u.height) || 0, x = v - w || 0;
|
|
225
|
-
a.debug("OffsetY", x, "labelHeight", v, "halfPadding", w), await _(c, t), f.get(t.id).node = t;
|
|
226
|
-
} else {
|
|
227
|
-
let w = n.node(t.parentId);
|
|
228
|
-
t.y += m / 2, a.info("A regular node XBX1 - using the padding", t.id, "parent", t.parentId, t.width, t.height, t.x, t.y, "offsetY", t.offsetY, "parent", w, w == null ? void 0 : w.offsetY, t), D(t);
|
|
229
|
-
}
|
|
230
|
-
})), n.edges().forEach(function(g) {
|
|
231
|
-
let t = n.edge(g);
|
|
232
|
-
a.info("Edge " + g.v + " -> " + g.w + ": " + JSON.stringify(t), t), t.points.forEach((u) => u.y += m / 2), q(t, K(X, t, f, r, n.node(g.v), n.node(g.w), d));
|
|
233
|
-
}), n.nodes().forEach(function(g) {
|
|
234
|
-
let t = n.node(g);
|
|
235
|
-
a.info(g, t.type, t.diff), t.isGroup && (p = t.diff);
|
|
236
|
-
}), a.warn("Returning from recursive render XAX", s, p), {
|
|
237
|
-
elem: s,
|
|
238
|
-
diff: p
|
|
239
|
-
};
|
|
240
|
-
}, "recursiveRender"), fe = /* @__PURE__ */ y(async (e, n) => {
|
|
241
|
-
var l, i, s, c, X, N;
|
|
242
|
-
let r = new O({
|
|
243
|
-
multigraph: !0,
|
|
244
|
-
compound: !0
|
|
245
|
-
}).setGraph({
|
|
246
|
-
rankdir: e.direction,
|
|
247
|
-
nodesep: ((l = e.config) == null ? void 0 : l.nodeSpacing) || ((s = (i = e.config) == null ? void 0 : i.flowchart) == null ? void 0 : s.nodeSpacing) || e.nodeSpacing,
|
|
248
|
-
ranksep: ((c = e.config) == null ? void 0 : c.rankSpacing) || ((N = (X = e.config) == null ? void 0 : X.flowchart) == null ? void 0 : N.rankSpacing) || e.rankSpacing,
|
|
249
|
-
marginx: 8,
|
|
250
|
-
marginy: 8
|
|
251
|
-
}).setDefaultEdgeLabel(function() {
|
|
252
|
-
return {};
|
|
253
|
-
}), d = n.select("g");
|
|
254
|
-
J(d, e.markers, e.type, e.diagramId), F(), z(), M(), te(), e.nodes.forEach((h) => {
|
|
255
|
-
r.setNode(h.id, { ...h }), h.parentId && r.setParent(h.id, h.parentId);
|
|
256
|
-
}), a.debug("Edges:", e.edges), e.edges.forEach((h) => {
|
|
257
|
-
if (h.start === h.end) {
|
|
258
|
-
let p = h.start, m = p + "---" + p + "---1", g = p + "---" + p + "---2", t = r.node(p);
|
|
259
|
-
r.setNode(m, {
|
|
260
|
-
domId: m,
|
|
261
|
-
id: m,
|
|
262
|
-
parentId: t.parentId,
|
|
263
|
-
labelStyle: "",
|
|
264
|
-
label: "",
|
|
265
|
-
padding: 0,
|
|
266
|
-
shape: "labelRect",
|
|
267
|
-
style: "",
|
|
268
|
-
width: 10,
|
|
269
|
-
height: 10
|
|
270
|
-
}), r.setParent(m, t.parentId), r.setNode(g, {
|
|
271
|
-
domId: g,
|
|
272
|
-
id: g,
|
|
273
|
-
parentId: t.parentId,
|
|
274
|
-
labelStyle: "",
|
|
275
|
-
padding: 0,
|
|
276
|
-
shape: "labelRect",
|
|
277
|
-
label: "",
|
|
278
|
-
style: "",
|
|
279
|
-
width: 10,
|
|
280
|
-
height: 10
|
|
281
|
-
}), r.setParent(g, t.parentId);
|
|
282
|
-
let u = structuredClone(h), w = structuredClone(h), v = structuredClone(h);
|
|
283
|
-
u.label = "", u.arrowTypeEnd = "none", u.endLabelLeft = "", u.endLabelRight = "", u.startLabelLeft = "", u.id = p + "-cyclic-special-1", w.startLabelRight = "", w.startLabelLeft = "", w.endLabelLeft = "", w.endLabelRight = "", w.arrowTypeStart = "none", w.arrowTypeEnd = "none", w.id = p + "-cyclic-special-mid", v.label = "", v.startLabelRight = "", v.startLabelLeft = "", v.arrowTypeStart = "none", t.isGroup && (u.fromCluster = p, v.toCluster = p), v.id = p + "-cyclic-special-2", v.arrowTypeStart = "none", r.setEdge(p, m, u, p + "-cyclic-special-0"), r.setEdge(m, g, w, p + "-cyclic-special-1"), r.setEdge(g, p, v, p + "-cyc<lic-special-2");
|
|
284
|
-
} else r.setEdge(h.start, h.end, { ...h }, h.id);
|
|
285
|
-
}), a.warn("Graph at first:", JSON.stringify(b(r))), de(r), a.warn("Graph after XAX:", JSON.stringify(b(r)));
|
|
286
|
-
let o = $();
|
|
287
|
-
await B(d, r, e.type, e.diagramId, void 0, o);
|
|
288
|
-
}, "render");
|
|
289
|
-
export {
|
|
290
|
-
fe as render
|
|
291
|
-
};
|