@kong-ui-public/documentation 1.5.78 → 1.6.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 +4 -4
- 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
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import { p as h, 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-DfVKdDwj.js";
|
|
2
|
+
import { y as O, l as X } from "./graphlib-D2YdGpuK-CnQPmzkS.js";
|
|
3
|
+
import { z as Q, V as k, a as U } from "./dagre-DJxg_nfI-hVOVexz-.js";
|
|
4
|
+
var W = 4;
|
|
5
|
+
function ee(e) {
|
|
6
|
+
return U(e, W);
|
|
7
|
+
}
|
|
8
|
+
function m(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 X(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), o = e.parent(n), i = { v: n };
|
|
23
|
+
return X(r) || (i.value = r), X(o) || (i.parent = o), i;
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
function ne(e) {
|
|
27
|
+
return k(e.edges(), function(n) {
|
|
28
|
+
var r = e.edge(n), o = {
|
|
29
|
+
v: n.v,
|
|
30
|
+
w: n.w
|
|
31
|
+
};
|
|
32
|
+
return X(n.name) || (o.name = n.name), X(r) || (o.value = r), o;
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
var s = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), G = /* @__PURE__ */ new Map(), te = /* @__PURE__ */ h(() => {
|
|
36
|
+
b.clear(), G.clear(), s.clear();
|
|
37
|
+
}, "clear"), x = /* @__PURE__ */ h((e, n) => {
|
|
38
|
+
let r = b.get(n) || [];
|
|
39
|
+
return a.trace("In isDescendant", n, " ", e, " = ", r.includes(e)), r.includes(e);
|
|
40
|
+
}, "isDescendant"), ae = /* @__PURE__ */ h((e, n) => {
|
|
41
|
+
let r = b.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) || x(e.v, n) || x(e.w, n) || r.includes(e.w) : (a.debug("Tilt, ", n, ",not in descendants"), !1);
|
|
43
|
+
}, "edgeInCluster"), R = /* @__PURE__ */ h((e, n, r, o) => {
|
|
44
|
+
a.warn("Copying children of ", e, "root", o, "data", n.node(e), o);
|
|
45
|
+
let i = n.children(e) || [];
|
|
46
|
+
e !== o && i.push(e), a.warn("Copying (nodes) clusterId", e, "nodes", i), i.forEach((d) => {
|
|
47
|
+
if (n.children(d).length > 0) R(d, n, r, o);
|
|
48
|
+
else {
|
|
49
|
+
let l = n.node(d);
|
|
50
|
+
a.info("cp ", d, " to ", o, " with parent ", e), r.setNode(d, l), o !== n.parent(d) && (a.warn("Setting parent", d, n.parent(d)), r.setParent(d, n.parent(d))), e !== o && d !== e ? (a.debug("Setting parent", d, e), r.setParent(d, e)) : (a.info("In copy ", e, "root", o, "data", n.node(e), o), a.debug("Not Setting parent for node=", d, "cluster!==rootId", e !== o, "node!==clusterId", d !== e));
|
|
51
|
+
let g = n.edges(d);
|
|
52
|
+
a.debug("Copying Edges", g), g.forEach((c) => {
|
|
53
|
+
a.info("Edge", c);
|
|
54
|
+
let v = n.edge(c.v, c.w, c.name);
|
|
55
|
+
a.info("Edge data", v, o);
|
|
56
|
+
try {
|
|
57
|
+
ae(c, o) ? (a.info("Copying as ", c.v, c.w, v, c.name), r.setEdge(c.v, c.w, v, c.name), a.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : a.info("Skipping copy of edge ", c.v, "-->", c.w, " rootId: ", o, " clusterId:", e);
|
|
58
|
+
} catch (p) {
|
|
59
|
+
a.error(p);
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
a.debug("Removing node", d), n.removeNode(d);
|
|
64
|
+
});
|
|
65
|
+
}, "copy"), T = /* @__PURE__ */ h((e, n) => {
|
|
66
|
+
let r = n.children(e), o = [...r];
|
|
67
|
+
for (let i of r) G.set(i, e), o = [...o, ...T(i, n)];
|
|
68
|
+
return o;
|
|
69
|
+
}, "extractDescendants"), ie = /* @__PURE__ */ h((e, n, r) => {
|
|
70
|
+
let o = e.edges().filter((g) => g.v === n || g.w === n), i = e.edges().filter((g) => g.v === r || g.w === r), d = o.map((g) => ({
|
|
71
|
+
v: g.v === n ? r : g.v,
|
|
72
|
+
w: g.w === n ? n : g.w
|
|
73
|
+
})), l = i.map((g) => ({
|
|
74
|
+
v: g.v,
|
|
75
|
+
w: g.w
|
|
76
|
+
}));
|
|
77
|
+
return d.filter((g) => l.some((c) => g.v === c.v && g.w === c.w));
|
|
78
|
+
}, "findCommonEdges"), E = /* @__PURE__ */ h((e, n, r) => {
|
|
79
|
+
let o = n.children(e);
|
|
80
|
+
if (a.trace("Searching children of id ", e, o), o.length < 1) return e;
|
|
81
|
+
let i;
|
|
82
|
+
for (let d of o) {
|
|
83
|
+
let l = E(d, n, r), g = ie(n, r, l);
|
|
84
|
+
if (l) if (g.length > 0) i = l;
|
|
85
|
+
else return l;
|
|
86
|
+
}
|
|
87
|
+
return i;
|
|
88
|
+
}, "findNonClusterChild"), L = /* @__PURE__ */ h((e) => !s.has(e) || !s.get(e).externalConnections ? e : s.has(e) ? s.get(e).id : e, "getAnchorId"), de = /* @__PURE__ */ h((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: ", E(r, e, r)), b.set(r, T(r, e)), s.set(r, {
|
|
95
|
+
id: E(r, e, r),
|
|
96
|
+
clusterData: e.node(r)
|
|
97
|
+
}));
|
|
98
|
+
}), e.nodes().forEach(function(r) {
|
|
99
|
+
let o = e.children(r), i = e.edges();
|
|
100
|
+
o.length > 0 ? (a.debug("Cluster identified", r, b), i.forEach((d) => {
|
|
101
|
+
x(d.v, r) ^ x(d.w, r) && (a.warn("Edge: ", d, " leaves cluster ", r), a.warn("Descendants of XXX ", r, ": ", b.get(r)), s.get(r).externalConnections = !0);
|
|
102
|
+
})) : a.debug("Not a cluster ", r, b);
|
|
103
|
+
});
|
|
104
|
+
for (let r of s.keys()) {
|
|
105
|
+
let o = s.get(r).id, i = e.parent(o);
|
|
106
|
+
i !== r && s.has(i) && !s.get(i).externalConnections && (s.get(r).id = i);
|
|
107
|
+
}
|
|
108
|
+
e.edges().forEach(function(r) {
|
|
109
|
+
let o = 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 i = r.v, d = r.w;
|
|
112
|
+
if (a.warn("Fix XXX", s, "ids:", r.v, r.w, "Translating: ", s.get(r.v), " --- ", s.get(r.w)), s.get(r.v) || s.get(r.w)) {
|
|
113
|
+
if (a.warn("Fixing and trying - removing XXX", r.v, r.w, r.name), i = L(r.v), d = L(r.w), e.removeEdge(r.v, r.w, r.name), i !== r.v) {
|
|
114
|
+
let l = e.parent(i);
|
|
115
|
+
s.get(l).externalConnections = !0, o.fromCluster = r.v;
|
|
116
|
+
}
|
|
117
|
+
if (d !== r.w) {
|
|
118
|
+
let l = e.parent(d);
|
|
119
|
+
s.get(l).externalConnections = !0, o.toCluster = r.w;
|
|
120
|
+
}
|
|
121
|
+
a.warn("Fix Replacing with XXX", i, d, r.name), e.setEdge(i, d, o, r.name);
|
|
122
|
+
}
|
|
123
|
+
}), a.warn("Adjusted Graph", m(e)), P(e, 0), a.trace(s);
|
|
124
|
+
}, "adjustClustersAndEdges"), P = /* @__PURE__ */ h((e, n) => {
|
|
125
|
+
if (a.warn("extractor - ", n, m(e), e.children("D")), n > 10) {
|
|
126
|
+
a.error("Bailing out");
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
let r = e.nodes(), o = !1;
|
|
130
|
+
for (let i of r) {
|
|
131
|
+
let d = e.children(i);
|
|
132
|
+
o ||= d.length > 0;
|
|
133
|
+
}
|
|
134
|
+
if (!o) {
|
|
135
|
+
a.debug("Done, no node has children", e.nodes());
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
a.debug("Nodes = ", r, n);
|
|
139
|
+
for (let i of r) if (a.debug("Extracting node", i, s, s.has(i) && !s.get(i).externalConnections, !e.parent(i), e.node(i), e.children("D"), " Depth ", n), !s.has(i)) a.debug("Not a cluster", i, n);
|
|
140
|
+
else if (!s.get(i).externalConnections && e.children(i) && e.children(i).length > 0) {
|
|
141
|
+
a.warn("Cluster without external connections, without a parent and with children", i, n);
|
|
142
|
+
let d = e.graph().rankdir === "TB" ? "LR" : "TB";
|
|
143
|
+
s.get(i)?.clusterData?.dir && (d = s.get(i).clusterData.dir, a.warn("Fixing dir", s.get(i).clusterData.dir, d));
|
|
144
|
+
let l = new O({
|
|
145
|
+
multigraph: !0,
|
|
146
|
+
compound: !0
|
|
147
|
+
}).setGraph({
|
|
148
|
+
rankdir: d,
|
|
149
|
+
nodesep: 50,
|
|
150
|
+
ranksep: 50,
|
|
151
|
+
marginx: 8,
|
|
152
|
+
marginy: 8
|
|
153
|
+
}).setDefaultEdgeLabel(function() {
|
|
154
|
+
return {};
|
|
155
|
+
});
|
|
156
|
+
a.warn("Old graph before copy", m(e)), R(i, e, l, i), e.setNode(i, {
|
|
157
|
+
clusterNode: !0,
|
|
158
|
+
id: i,
|
|
159
|
+
clusterData: s.get(i).clusterData,
|
|
160
|
+
label: s.get(i).label,
|
|
161
|
+
graph: l
|
|
162
|
+
}), a.warn("New graph after copy node: (", i, ")", m(l)), a.debug("Old graph after copy", m(e));
|
|
163
|
+
} else a.warn("Cluster ** ", i, " **not meeting the criteria !externalConnections:", !s.get(i).externalConnections, " no parent: ", !e.parent(i), " children ", e.children(i) && e.children(i).length > 0, e.children("D"), n), a.debug(s);
|
|
164
|
+
r = e.nodes(), a.warn("New list of nodes", r);
|
|
165
|
+
for (let i of r) {
|
|
166
|
+
let d = e.node(i);
|
|
167
|
+
a.warn(" Now next level", i, d), d?.clusterNode && P(d.graph, n + 1);
|
|
168
|
+
}
|
|
169
|
+
}, "extractor"), A = /* @__PURE__ */ h((e, n) => {
|
|
170
|
+
if (n.length === 0) return [];
|
|
171
|
+
let r = Object.assign([], n);
|
|
172
|
+
return n.forEach((o) => {
|
|
173
|
+
let i = A(e, e.children(o));
|
|
174
|
+
r = [...r, ...i];
|
|
175
|
+
}), r;
|
|
176
|
+
}, "sorter"), oe = /* @__PURE__ */ h((e) => A(e, e.children()), "sortNodesByHierarchy"), B = /* @__PURE__ */ h(async (e, n, r, o, i, d) => {
|
|
177
|
+
a.warn("Graph in recursive render:XAX", m(n), i);
|
|
178
|
+
let l = n.graph().rankdir;
|
|
179
|
+
a.trace("Dir in recursive render - dir:", l);
|
|
180
|
+
let g = e.insert("g").attr("class", "root");
|
|
181
|
+
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]));
|
|
182
|
+
let c = g.insert("g").attr("class", "clusters"), v = g.insert("g").attr("class", "edgePaths"), p = g.insert("g").attr("class", "edgeLabels"), w = g.insert("g").attr("class", "nodes");
|
|
183
|
+
await Promise.all(n.nodes().map(async function(f) {
|
|
184
|
+
let t = n.node(f);
|
|
185
|
+
if (i !== void 0) {
|
|
186
|
+
let u = JSON.parse(JSON.stringify(i.clusterData));
|
|
187
|
+
a.trace(`Setting data for parent cluster XXX
|
|
188
|
+
Node.id = `, f, `
|
|
189
|
+
data=`, u.height, `
|
|
190
|
+
Parent cluster`, i.height), n.setNode(i.id, u), n.parent(f) || (a.trace("Setting parent", f, i.id), n.setParent(f, i.id, u));
|
|
191
|
+
}
|
|
192
|
+
if (a.info("(Insert) Node XXX" + f + ": " + JSON.stringify(n.node(f))), t?.clusterNode) {
|
|
193
|
+
a.info("Cluster identified XBX", f, t.width, n.node(f));
|
|
194
|
+
let { ranksep: u, nodesep: C } = n.graph();
|
|
195
|
+
t.graph.setGraph({
|
|
196
|
+
...t.graph.graph(),
|
|
197
|
+
ranksep: u + 25,
|
|
198
|
+
nodesep: C
|
|
199
|
+
});
|
|
200
|
+
let S = await B(w, t.graph, r, o, n.node(f), d), I = S.elem;
|
|
201
|
+
j(t, I), t.diff = S.diff || 0, a.info("New compound node after recursive render XAX", f, "width", t.width, "height", t.height), Y(I, t);
|
|
202
|
+
} else n.children(f).length > 0 ? (a.trace("Cluster - the non recursive path XBX", f, t.id, t, t.width, "Graph:", n), a.trace(E(t.id, n)), s.set(t.id, {
|
|
203
|
+
id: E(t.id, n),
|
|
204
|
+
node: t
|
|
205
|
+
})) : (a.trace("Node - the non recursive path XAX", f, w, n.node(f), l), await Z(w, n.node(f), {
|
|
206
|
+
config: d,
|
|
207
|
+
dir: l
|
|
208
|
+
}));
|
|
209
|
+
})), await (/* @__PURE__ */ h(async () => {
|
|
210
|
+
let f = n.edges().map(async function(t) {
|
|
211
|
+
let u = n.edge(t.v, t.w, t.name);
|
|
212
|
+
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", s, "ids:", t.v, t.w, "Translating: ", s.get(t.v), s.get(t.w)), await H(p, u);
|
|
213
|
+
});
|
|
214
|
+
await Promise.all(f);
|
|
215
|
+
}, "processEdges"))(), a.info("Graph before layout:", JSON.stringify(m(n))), a.info("############################################# XXX"), a.info("### Layout ### XXX"), a.info("############################################# XXX"), Q(n), a.info("Graph after layout:", JSON.stringify(m(n)));
|
|
216
|
+
let y = 0, { subGraphTitleTotalMargin: N } = V(d);
|
|
217
|
+
return await Promise.all(oe(n).map(async function(f) {
|
|
218
|
+
let t = n.node(f);
|
|
219
|
+
if (a.info("Position XBX => " + f + ": (" + t.x, "," + t.y, ") width: ", t.width, " height: ", t.height), t?.clusterNode) t.y += N, a.info("A tainted cluster node XBX1", f, t.id, t.width, t.height, t.x, t.y, n.parent(f)), s.get(t.id).node = t, D(t);
|
|
220
|
+
else if (n.children(f).length > 0) {
|
|
221
|
+
a.info("A pure cluster node XBX1", f, t.id, t.x, t.y, t.width, t.height, n.parent(f)), t.height += N, n.node(t.parentId);
|
|
222
|
+
let u = t?.padding / 2 || 0, C = t?.labelBBox?.height || 0, S = C - u || 0;
|
|
223
|
+
a.debug("OffsetY", S, "labelHeight", C, "halfPadding", u), await _(c, t), s.get(t.id).node = t;
|
|
224
|
+
} else {
|
|
225
|
+
let u = n.node(t.parentId);
|
|
226
|
+
t.y += N / 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", u, u?.offsetY, t), D(t);
|
|
227
|
+
}
|
|
228
|
+
})), n.edges().forEach(function(f) {
|
|
229
|
+
let t = n.edge(f);
|
|
230
|
+
a.info("Edge " + f.v + " -> " + f.w + ": " + JSON.stringify(t), t), t.points.forEach((u) => u.y += N / 2), q(t, K(v, t, s, r, n.node(f.v), n.node(f.w), o));
|
|
231
|
+
}), n.nodes().forEach(function(f) {
|
|
232
|
+
let t = n.node(f);
|
|
233
|
+
a.info(f, t.type, t.diff), t.isGroup && (y = t.diff);
|
|
234
|
+
}), a.warn("Returning from recursive render XAX", g, y), {
|
|
235
|
+
elem: g,
|
|
236
|
+
diff: y
|
|
237
|
+
};
|
|
238
|
+
}, "recursiveRender"), fe = /* @__PURE__ */ h(async (e, n) => {
|
|
239
|
+
let r = new O({
|
|
240
|
+
multigraph: !0,
|
|
241
|
+
compound: !0
|
|
242
|
+
}).setGraph({
|
|
243
|
+
rankdir: e.direction,
|
|
244
|
+
nodesep: e.config?.nodeSpacing || e.config?.flowchart?.nodeSpacing || e.nodeSpacing,
|
|
245
|
+
ranksep: e.config?.rankSpacing || e.config?.flowchart?.rankSpacing || e.rankSpacing,
|
|
246
|
+
marginx: 8,
|
|
247
|
+
marginy: 8
|
|
248
|
+
}).setDefaultEdgeLabel(function() {
|
|
249
|
+
return {};
|
|
250
|
+
}), o = n.select("g");
|
|
251
|
+
J(o, e.markers, e.type, e.diagramId), F(), z(), M(), te(), e.nodes.forEach((d) => {
|
|
252
|
+
r.setNode(d.id, { ...d }), d.parentId && r.setParent(d.id, d.parentId);
|
|
253
|
+
}), a.debug("Edges:", e.edges), e.edges.forEach((d) => {
|
|
254
|
+
if (d.start === d.end) {
|
|
255
|
+
let l = d.start, g = l + "---" + l + "---1", c = l + "---" + l + "---2", v = r.node(l);
|
|
256
|
+
r.setNode(g, {
|
|
257
|
+
domId: g,
|
|
258
|
+
id: g,
|
|
259
|
+
parentId: v.parentId,
|
|
260
|
+
labelStyle: "",
|
|
261
|
+
label: "",
|
|
262
|
+
padding: 0,
|
|
263
|
+
shape: "labelRect",
|
|
264
|
+
style: "",
|
|
265
|
+
width: 10,
|
|
266
|
+
height: 10
|
|
267
|
+
}), r.setParent(g, v.parentId), r.setNode(c, {
|
|
268
|
+
domId: c,
|
|
269
|
+
id: c,
|
|
270
|
+
parentId: v.parentId,
|
|
271
|
+
labelStyle: "",
|
|
272
|
+
padding: 0,
|
|
273
|
+
shape: "labelRect",
|
|
274
|
+
label: "",
|
|
275
|
+
style: "",
|
|
276
|
+
width: 10,
|
|
277
|
+
height: 10
|
|
278
|
+
}), r.setParent(c, v.parentId);
|
|
279
|
+
let p = structuredClone(d), w = structuredClone(d), y = structuredClone(d);
|
|
280
|
+
p.label = "", p.arrowTypeEnd = "none", p.endLabelLeft = "", p.endLabelRight = "", p.startLabelLeft = "", p.id = l + "-cyclic-special-1", w.startLabelRight = "", w.startLabelLeft = "", w.endLabelLeft = "", w.endLabelRight = "", w.arrowTypeStart = "none", w.arrowTypeEnd = "none", w.id = l + "-cyclic-special-mid", y.label = "", y.startLabelRight = "", y.startLabelLeft = "", y.arrowTypeStart = "none", v.isGroup && (p.fromCluster = l, y.toCluster = l), y.id = l + "-cyclic-special-2", y.arrowTypeStart = "none", r.setEdge(l, g, p, l + "-cyclic-special-0"), r.setEdge(g, c, w, l + "-cyclic-special-1"), r.setEdge(c, l, y, l + "-cyc<lic-special-2");
|
|
281
|
+
} else r.setEdge(d.start, d.end, { ...d }, d.id);
|
|
282
|
+
}), a.warn("Graph at first:", JSON.stringify(m(r))), de(r), a.warn("Graph after XAX:", JSON.stringify(m(r)));
|
|
283
|
+
let i = $();
|
|
284
|
+
await B(o, r, e.type, e.diagramId, void 0, i);
|
|
285
|
+
}, "render");
|
|
286
|
+
export {
|
|
287
|
+
fe as render
|
|
288
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as _, v as T, Z as N, b as j, W as cn, O as Zn, V as Hn, z as Cr, A as Ir, E as D, q as Sr, K as Kn, L as Xn, M as fn, c as dn, d as W, n as Br, F as Tr, S as Fr, P as Gr, e as Ur, r as On, $ as En, j as U, h as sn, f as _n, H as vn, T as Yn, J as s, y as x, R as Qn, k as qr, g as zr, x as hn, i as nr, X as $, l as m, m as rr, _ as Vr, o as J, U as Dr, Y as I, p as Wr, s as tr, t as er, u as q, w as Jr, B as Zr, D as $n, C as Hr, G as or, I as Kr, N as Xr, Q as Yr, a0 as Qr, a1 as nt } from "./graphlib-D2YdGpuK-
|
|
1
|
+
import { a as _, v as T, Z as N, b as j, W as cn, O as Zn, V as Hn, z as Cr, A as Ir, E as D, q as Sr, K as Kn, L as Xn, M as fn, c as dn, d as W, n as Br, F as Tr, S as Fr, P as Gr, e as Ur, r as On, $ as En, j as U, h as sn, f as _n, H as vn, T as Yn, J as s, y as x, R as Qn, k as qr, g as zr, x as hn, i as nr, X as $, l as m, m as rr, _ as Vr, o as J, U as Dr, Y as I, p as Wr, s as tr, t as er, u as q, w as Jr, B as Zr, D as $n, C as Hr, G as or, I as Kr, N as Xr, Q as Yr, a0 as Qr, a1 as nt } from "./graphlib-D2YdGpuK-CnQPmzkS.js";
|
|
2
2
|
var rt = /\s/;
|
|
3
3
|
function tt(n) {
|
|
4
4
|
for (var r = n.length; r-- && rt.test(n.charAt(r)); ) ;
|
|
@@ -29,7 +29,7 @@ function st(n) {
|
|
|
29
29
|
var r = F(n), t = r % 1;
|
|
30
30
|
return r === r ? t ? r - t : r : 0;
|
|
31
31
|
}
|
|
32
|
-
var Mn = Object.create, vt = /* @__PURE__ */ function() {
|
|
32
|
+
var Mn = Object.create, vt = /* @__PURE__ */ (function() {
|
|
33
33
|
function n() {
|
|
34
34
|
}
|
|
35
35
|
return function(r) {
|
|
@@ -39,10 +39,10 @@ var Mn = Object.create, vt = /* @__PURE__ */ function() {
|
|
|
39
39
|
var t = new n();
|
|
40
40
|
return n.prototype = void 0, t;
|
|
41
41
|
};
|
|
42
|
-
}();
|
|
42
|
+
})();
|
|
43
43
|
function ir(n, r) {
|
|
44
44
|
var t = -1, e = n.length;
|
|
45
|
-
for (r
|
|
45
|
+
for (r ||= Array(e); ++t < e; ) r[t] = n[t];
|
|
46
46
|
return r;
|
|
47
47
|
}
|
|
48
48
|
function Z(n, r, t) {
|
|
@@ -60,7 +60,7 @@ function H(n, r, t) {
|
|
|
60
60
|
}
|
|
61
61
|
function S(n, r, t, e) {
|
|
62
62
|
var o = !t;
|
|
63
|
-
t
|
|
63
|
+
t ||= {};
|
|
64
64
|
for (var i = -1, a = r.length; ++i < a; ) {
|
|
65
65
|
var u = r[i], c = void 0;
|
|
66
66
|
c === void 0 && (c = n[u]), o ? Z(t, u, c) : H(t, u, c);
|
|
@@ -226,7 +226,7 @@ function G(n, r, t, e, o, i) {
|
|
|
226
226
|
a = re(n, v, u);
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
|
-
i
|
|
229
|
+
i ||= new Hn();
|
|
230
230
|
var g = i.get(n);
|
|
231
231
|
if (g) return g;
|
|
232
232
|
i.set(n, a), ue(n) ? n.forEach(function(p) {
|
|
@@ -276,7 +276,7 @@ function Ge(n, r, t, e, o, i, a) {
|
|
|
276
276
|
}
|
|
277
277
|
function pr(n, r, t, e, o) {
|
|
278
278
|
n !== r && er(r, function(i, a) {
|
|
279
|
-
if (o
|
|
279
|
+
if (o ||= new Hn(), j(i)) Ge(n, r, a, t, pr, e, o);
|
|
280
280
|
else {
|
|
281
281
|
var u = e ? e(on(n, a), i, a + "", n, r, o) : void 0;
|
|
282
282
|
u === void 0 && (u = i), en(n, a, u);
|
|
@@ -840,7 +840,7 @@ function To(n, r, t) {
|
|
|
840
840
|
}
|
|
841
841
|
function _r(n, r, t) {
|
|
842
842
|
var e = n.node(t).parent, o = !0, i = r.edge(t, e), a = 0;
|
|
843
|
-
return i
|
|
843
|
+
return i ||= (o = !1, r.edge(e, t)), a = i.weight, s(r.nodeEdges(t), function(u) {
|
|
844
844
|
var c = u.v === t, f = c ? u.w : u.v;
|
|
845
845
|
if (f !== e) {
|
|
846
846
|
var d = c === o, v = r.edge(u).weight;
|
|
@@ -1616,7 +1616,7 @@ function Zi(n) {
|
|
|
1616
1616
|
s(n.edges(), function(r) {
|
|
1617
1617
|
if (r.v === r.w) {
|
|
1618
1618
|
var t = n.node(r.v);
|
|
1619
|
-
t.selfEdges
|
|
1619
|
+
t.selfEdges ||= [], t.selfEdges.push({
|
|
1620
1620
|
e: r,
|
|
1621
1621
|
label: n.edge(r)
|
|
1622
1622
|
}), n.removeEdge(r);
|
package/dist/{diagram-2AECGRRQ-B2gF_dHe-DCRSlKG-.js → diagram-2AECGRRQ-B2gF_dHe-Bv_EpxRz.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { G as k, K as O, i as S, f as F, W as I, U as E, p as o, a0 as z, H as G, s as y, o as w, F as P, g as R, ah as D, A as W } from "./index-
|
|
2
|
-
import { t as B } from "./chunk-4BX2VUAB-C_NnimAy
|
|
3
|
-
import { r as H } from "./wardley-L42UT6IY-BjAkE_cs-
|
|
1
|
+
import { G as k, K as O, i as S, f as F, W as I, U as E, p as o, a0 as z, H as G, s as y, o as w, F as P, g as R, ah as D, A as W } from "./index-DfVKdDwj.js";
|
|
2
|
+
import { t as B } from "./chunk-4BX2VUAB-C_NnimAy--QQ0Db2V.js";
|
|
3
|
+
import { r as H } from "./wardley-L42UT6IY-BjAkE_cs-C-giFqos.js";
|
|
4
4
|
var h = {
|
|
5
5
|
showLegend: !0,
|
|
6
6
|
ticks: 5,
|
|
@@ -30,10 +30,7 @@ var h = {
|
|
|
30
30
|
let t = b();
|
|
31
31
|
if (t.length === 0) throw Error("Axes must be populated before curves for reference entries");
|
|
32
32
|
return t.map((e) => {
|
|
33
|
-
let r = a.find((i) =>
|
|
34
|
-
var n;
|
|
35
|
-
return ((n = i.axis) == null ? void 0 : n.$refText) === e.name;
|
|
36
|
-
});
|
|
33
|
+
let r = a.find((i) => i.axis?.$refText === e.name);
|
|
37
34
|
if (r === void 0) throw Error("Missing entry for axis " + e.label);
|
|
38
35
|
return r.value;
|
|
39
36
|
});
|
|
@@ -44,14 +41,13 @@ var h = {
|
|
|
44
41
|
setAxes: U,
|
|
45
42
|
setCurves: q,
|
|
46
43
|
setOptions: /* @__PURE__ */ o((a) => {
|
|
47
|
-
|
|
48
|
-
let t = a.reduce((s, c) => (s[c.name] = c, s), {});
|
|
44
|
+
let t = a.reduce((e, r) => (e[r.name] = r, e), {});
|
|
49
45
|
p.options = {
|
|
50
|
-
showLegend:
|
|
51
|
-
ticks:
|
|
52
|
-
max:
|
|
53
|
-
min:
|
|
54
|
-
graticule:
|
|
46
|
+
showLegend: t.showLegend?.value ?? h.showLegend,
|
|
47
|
+
ticks: t.ticks?.value ?? h.ticks,
|
|
48
|
+
max: t.max?.value ?? h.max,
|
|
49
|
+
min: t.min?.value ?? h.min,
|
|
50
|
+
graticule: t.graticule?.value ?? h.graticule
|
|
55
51
|
};
|
|
56
52
|
}, "setOptions"),
|
|
57
53
|
getConfig: j,
|
package/dist/{diagram-5GNKFQAL-DJ9WwRrD-DtSWJY6-.js → diagram-5GNKFQAL-DJ9WwRrD-WVvm0Icu.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as u, U as B, G as y, i as C, K as T, W as V, p as i, s as b, g as f, a0 as $, A as v, o as A, H as D, F as N } from "./index-
|
|
2
|
-
import { t as W } from "./chunk-4BX2VUAB-C_NnimAy
|
|
3
|
-
import { r as X } from "./wardley-L42UT6IY-BjAkE_cs-
|
|
4
|
-
import { t as F } from "./chunk-QZHKN3VN-DN6nBdn0-
|
|
1
|
+
import { f as u, U as B, G as y, i as C, K as T, W as V, p as i, s as b, g as f, a0 as $, A as v, o as A, H as D, F as N } from "./index-DfVKdDwj.js";
|
|
2
|
+
import { t as W } from "./chunk-4BX2VUAB-C_NnimAy--QQ0Db2V.js";
|
|
3
|
+
import { r as X } from "./wardley-L42UT6IY-BjAkE_cs-C-giFqos.js";
|
|
4
|
+
import { t as F } from "./chunk-QZHKN3VN-DN6nBdn0-BvQOETVz.js";
|
|
5
5
|
var s = new F(() => ({
|
|
6
6
|
cnt: 1,
|
|
7
7
|
stack: [{
|