@kong-ui-public/documentation 1.1.2 → 1.1.3
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-zlkqRmFy-CQP0PMRw.js → _basePickBy-zlkqRmFy-Dq-PK6tA.js} +27 -27
- package/dist/_baseUniq-SAfYgIkf-DhYxnvgt.js +614 -0
- package/dist/{arc-CK9P6CkJ-B3oiAYoG.js → arc-CK9P6CkJ-lihx_wEv.js} +31 -31
- package/dist/{architecture-I3QFYML2-DJzmbE4M-BYAx4I-4.js → architecture-I3QFYML2-DJzmbE4M-B5s0Q1wg.js} +1 -1
- package/dist/{architectureDiagram-UYN6MBPD-DkZdgpXi-BC7nb0IZ.js → architectureDiagram-UYN6MBPD-DkZdgpXi-CC-fAW7y.js} +850 -850
- package/dist/{blockDiagram-ZHA2E4KO-DnCMGCMN-CU7ARVHN.js → blockDiagram-ZHA2E4KO-DnCMGCMN-B9tod6Dk.js} +477 -477
- package/dist/{c4Diagram-6F5ED5ID-D5yqWyf0-DEuKG0sN.js → c4Diagram-6F5ED5ID-D5yqWyf0-B1iuFSQ1.js} +203 -203
- package/dist/{channel-bVcNKbrJ-C4S-4qV3.js → channel-bVcNKbrJ-DEGmvXXN.js} +1 -1
- package/dist/{chunk-5HRBRIJM-BjQ8go1b-733bxiZ-.js → chunk-5HRBRIJM-BjQ8go1b-BszOhLz8.js} +4 -4
- package/dist/{chunk-7U56Z5CX-awhAxjZ0-DpUJ4fo1.js → chunk-7U56Z5CX-awhAxjZ0-CHd4qyz3.js} +120 -120
- package/dist/{chunk-ASOPGD6M-B5bA_saK-C3yF9T7p.js → chunk-ASOPGD6M-B5bA_saK-RaS3hIfR.js} +1 -1
- package/dist/{chunk-KFBOBJHC-nixdujtH-B4639Jmi.js → chunk-KFBOBJHC-nixdujtH-DCajFn7e.js} +1 -1
- package/dist/{chunk-T2TOU4HS-DqOVhIzl-piSN2Cjl.js → chunk-T2TOU4HS-DqOVhIzl-1waDvYDY.js} +229 -229
- package/dist/{chunk-TMUBEWPD-BRIzn5gH-SlHeKBx9.js → chunk-TMUBEWPD-BRIzn5gH-Ch1SRQ7H.js} +1 -1
- package/dist/{classDiagram-LNE6IOMH-fQzyXfo--C9LjXboP.js → classDiagram-LNE6IOMH-fQzyXfo--BpuwdnmV.js} +4 -4
- package/dist/{classDiagram-v2-MQ7JQ4JX-fQzyXfo--C9LjXboP.js → classDiagram-v2-MQ7JQ4JX-fQzyXfo--BpuwdnmV.js} +4 -4
- package/dist/{clone-_5SW34SG-DtUOH1l1.js → clone-_5SW34SG-BWxdvZXA.js} +1 -1
- package/dist/{cytoscape.esm-DAyNQ0qu-B7WxGuVh.js → cytoscape.esm-DAyNQ0qu-i5PnoWfE.js} +976 -976
- package/dist/{dagre-4EVJKHTY-CcAruc30-DaOjmyb6.js → dagre-4EVJKHTY-CcAruc30-H9W22Yky.js} +85 -85
- package/dist/{diagram-QW4FP2JN-DZT_0aFO-YCKYx1k-.js → diagram-QW4FP2JN-DZT_0aFO-AmG94tp5.js} +21 -21
- package/dist/documentation.es.js +1 -1
- package/dist/{erDiagram-6RL3IURR-BfgUC5jv-CS9Q9iKF.js → erDiagram-6RL3IURR-BfgUC5jv-BNzxBFoY.js} +201 -201
- package/dist/{flowDiagram-7ASYPVHJ-Bo9CnsE7-CkM-DJdr.js → flowDiagram-7ASYPVHJ-Bo9CnsE7-CSLq7kw9.js} +222 -222
- package/dist/{ganttDiagram-NTVNEXSI-8E9hjd6N-iN-VNXrV.js → ganttDiagram-NTVNEXSI-8E9hjd6N-CjQQCbaM.js} +16 -16
- package/dist/{gitGraph-YCYPL57B-BnErPIwo-DWobPBzL.js → gitGraph-YCYPL57B-BnErPIwo-DxQPpoWq.js} +1 -1
- package/dist/{gitGraphDiagram-NRZ2UAAF-B-t90-9e-Co4q5oQK.js → gitGraphDiagram-NRZ2UAAF-B-t90-9e-B6JY8bWo.js} +17 -17
- package/dist/{graph-BYZMvqpu-BpeF1PUA.js → graph-BYZMvqpu-CWGqkYZM.js} +43 -43
- package/dist/{index-ZM4BlVwk.js → index-BXOX6oou.js} +3487 -3487
- package/dist/{info-46DW6VJ7-DPpbx_vA-CnDg11wg.js → info-46DW6VJ7-DPpbx_vA-BmAPar7H.js} +1 -1
- package/dist/{infoDiagram-A4XQUW5V-Bo9uoOcA-WvvF1295.js → infoDiagram-A4XQUW5V-Bo9uoOcA-CtFRRRot.js} +2 -2
- package/dist/{journeyDiagram-G5WM74LC-BE7U42Ad-BFF_wJwi.js → journeyDiagram-G5WM74LC-BE7U42Ad-of9fN5Vr.js} +173 -173
- package/dist/{kanban-definition-QRCXZQQD-C-5-UNRm-LjA3yK5r.js → kanban-definition-QRCXZQQD-C-5-UNRm-DecJsseT.js} +168 -168
- package/dist/{katex-Qk2jHgyB-CF_fuFJb.js → katex-Qk2jHgyB-_qyJ_37x.js} +1054 -1054
- package/dist/{layout-BHI4imdk-DgoNZaqw.js → layout-BHI4imdk-BlkmyDbe.js} +19 -19
- package/dist/{linear-C2PheBya-wGRbEA3e.js → linear-C2PheBya-DijeUNjP.js} +2 -2
- package/dist/{mermaid-parser.core-Ce96PX3Q-DPc-bPXG.js → mermaid-parser.core-Ce96PX3Q-DtNzRUJ7.js} +32 -32
- package/dist/{mindmap-definition-GWI6TPTV-C98Syvj2-DOvfo2r8.js → mindmap-definition-GWI6TPTV-C98Syvj2-Btvji3Oh.js} +421 -421
- package/dist/{packet-W2GHVCYJ-BLiQbm7T-DbS7CM6G.js → packet-W2GHVCYJ-BLiQbm7T-E8ztaW67.js} +1 -1
- package/dist/{pie-BEWT4RHE-D3Mbo3mT-DB-aeuYE.js → pie-BEWT4RHE-D3Mbo3mT-BGVGE8TE.js} +1 -1
- package/dist/{pieDiagram-YF2LJOPJ-BJV27s9B-DS-nBsbY.js → pieDiagram-YF2LJOPJ-BJV27s9B-DVrzAwZP.js} +20 -20
- package/dist/{quadrantDiagram-OS5C2QUG-M57vVPSx-DMjI1wdt.js → quadrantDiagram-OS5C2QUG-M57vVPSx-DrN-qVPg.js} +131 -131
- package/dist/{requirementDiagram-MIRIMTAZ-D0KDg7rf-DeEsJ26T.js → requirementDiagram-MIRIMTAZ-D0KDg7rf-FCJNuddX.js} +77 -77
- package/dist/{sankeyDiagram-Y46BX6SQ-D6EdYPdp-BA6cRE1h.js → sankeyDiagram-Y46BX6SQ-D6EdYPdp-ClC_w0Hg.js} +108 -108
- package/dist/{sequenceDiagram-G6AWOVSC-B171TAb1-DMtStdxJ.js → sequenceDiagram-G6AWOVSC-B171TAb1-B6jBix6L.js} +181 -181
- package/dist/{stateDiagram-MAYHULR4-D7FUnT9_-Du3mnoL2.js → stateDiagram-MAYHULR4-D7FUnT9_-B7dSTUAT.js} +81 -81
- package/dist/{stateDiagram-v2-4JROLMXI-Cyc74STT-DR1h52WB.js → stateDiagram-v2-4JROLMXI-Cyc74STT-BhUBvhmS.js} +4 -4
- package/dist/{timeline-definition-U7ZMHBDA-Bw-dp1yf-BO9wUMSJ.js → timeline-definition-U7ZMHBDA-Bw-dp1yf-DAx9hgzp.js} +126 -126
- package/dist/{xychartDiagram-6QU3TZC5-CqbTSF5W-CwiL6udJ.js → xychartDiagram-6QU3TZC5-CqbTSF5W-Dy5Ia8cd.js} +70 -70
- package/package.json +2 -2
- package/dist/_baseUniq-SAfYgIkf-BO_CV6Oz.js +0 -614
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as w, 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-
|
|
2
|
-
import { L as k } from "./graph-BYZMvqpu-
|
|
3
|
-
import { o as V } from "./layout-BHI4imdk-
|
|
4
|
-
import { E as x } from "./_baseUniq-SAfYgIkf-
|
|
5
|
-
import { a as W } from "./clone-_5SW34SG-
|
|
6
|
-
import { g as G } from "./_basePickBy-zlkqRmFy-
|
|
1
|
+
import { _ as w, 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-BXOX6oou.js";
|
|
2
|
+
import { L as k } from "./graph-BYZMvqpu-CWGqkYZM.js";
|
|
3
|
+
import { o as V } from "./layout-BHI4imdk-BlkmyDbe.js";
|
|
4
|
+
import { E as x } from "./_baseUniq-SAfYgIkf-DhYxnvgt.js";
|
|
5
|
+
import { a as W } from "./clone-_5SW34SG-BWxdvZXA.js";
|
|
6
|
+
import { g as G } from "./_basePickBy-zlkqRmFy-Dq-PK6tA.js";
|
|
7
7
|
function X(e) {
|
|
8
8
|
var n = {
|
|
9
9
|
options: {
|
|
@@ -51,8 +51,8 @@ var u = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), B = /* @__PURE
|
|
|
51
51
|
if (n.children(c).length > 0)
|
|
52
52
|
J(c, n, r, s);
|
|
53
53
|
else {
|
|
54
|
-
const
|
|
55
|
-
t.info("cp ", c, " to ", s, " with parent ", e), r.setNode(c,
|
|
54
|
+
const a = n.node(c);
|
|
55
|
+
t.info("cp ", c, " to ", s, " with parent ", e), r.setNode(c, a), s !== n.parent(c) && (t.warn("Setting parent", c, n.parent(c)), r.setParent(c, n.parent(c))), e !== s && c !== e ? (t.debug("Setting parent", c, e), r.setParent(c, e)) : (t.info("In copy ", e, "root", s, "data", n.node(e), s), t.debug(
|
|
56
56
|
"Not Setting parent for node=",
|
|
57
57
|
c,
|
|
58
58
|
"cluster!==rootId",
|
|
@@ -90,20 +90,20 @@ var u = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), B = /* @__PURE
|
|
|
90
90
|
B.set(d, e), s = [...s, ...P(d, n)];
|
|
91
91
|
return s;
|
|
92
92
|
}, "extractDescendants"), te = /* @__PURE__ */ w((e, n, r) => {
|
|
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 })),
|
|
94
|
-
return c.filter((l) =>
|
|
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
|
+
return c.filter((l) => a.some((f) => l.v === f.v && l.w === f.w));
|
|
95
95
|
}, "findCommonEdges"), S = /* @__PURE__ */ w((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
|
|
102
|
-
if (
|
|
101
|
+
const a = S(c, n, r), l = te(n, r, a);
|
|
102
|
+
if (a)
|
|
103
103
|
if (l.length > 0)
|
|
104
|
-
d =
|
|
104
|
+
d = a;
|
|
105
105
|
else
|
|
106
|
-
return
|
|
106
|
+
return a;
|
|
107
107
|
}
|
|
108
108
|
return d;
|
|
109
109
|
}, "findNonClusterChild"), O = /* @__PURE__ */ w((e) => !u.has(e) || !u.get(e).externalConnections ? e : u.has(e) ? u.get(e).id : e, "getAnchorId"), ie = /* @__PURE__ */ w((e, n) => {
|
|
@@ -122,8 +122,8 @@ var u = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), B = /* @__PURE
|
|
|
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) => {
|
|
125
|
-
const
|
|
126
|
-
|
|
125
|
+
const a = I(c.v, r), l = I(c.w, r);
|
|
126
|
+
a ^ l && (t.warn("Edge: ", c, " leaves cluster ", r), t.warn("Descendants of XXX ", r, ": ", N.get(r)), u.get(r).externalConnections = !0);
|
|
127
127
|
})) : t.debug("Not a cluster ", r, N);
|
|
128
128
|
});
|
|
129
129
|
for (let r of u.keys()) {
|
|
@@ -146,12 +146,12 @@ var u = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), B = /* @__PURE
|
|
|
146
146
|
u.get(r.w)
|
|
147
147
|
), u.get(r.v) || u.get(r.w)) {
|
|
148
148
|
if (t.warn("Fixing and trying - removing XXX", r.v, r.w, r.name), d = O(r.v), c = O(r.w), e.removeEdge(r.v, r.w, r.name), d !== r.v) {
|
|
149
|
-
const
|
|
150
|
-
u.get(
|
|
149
|
+
const a = e.parent(d);
|
|
150
|
+
u.get(a).externalConnections = !0, s.fromCluster = r.v;
|
|
151
151
|
}
|
|
152
152
|
if (c !== r.w) {
|
|
153
|
-
const
|
|
154
|
-
u.get(
|
|
153
|
+
const a = e.parent(c);
|
|
154
|
+
u.get(a).externalConnections = !0, s.toCluster = r.w;
|
|
155
155
|
}
|
|
156
156
|
t.warn("Fix Replacing with XXX", d, c, r.name), e.setEdge(d, c, s, r.name);
|
|
157
157
|
}
|
|
@@ -163,8 +163,8 @@ var u = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), B = /* @__PURE
|
|
|
163
163
|
return;
|
|
164
164
|
}
|
|
165
165
|
let d = e.nodes(), c = !1;
|
|
166
|
-
for (const
|
|
167
|
-
const l = e.children(
|
|
166
|
+
for (const a of d) {
|
|
167
|
+
const l = e.children(a);
|
|
168
168
|
c = c || l.length > 0;
|
|
169
169
|
}
|
|
170
170
|
if (!c) {
|
|
@@ -172,27 +172,27 @@ var u = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), B = /* @__PURE
|
|
|
172
172
|
return;
|
|
173
173
|
}
|
|
174
174
|
t.debug("Nodes = ", d, n);
|
|
175
|
-
for (const
|
|
175
|
+
for (const a of d)
|
|
176
176
|
if (t.debug(
|
|
177
177
|
"Extracting node",
|
|
178
|
-
|
|
178
|
+
a,
|
|
179
179
|
u,
|
|
180
|
-
u.has(
|
|
181
|
-
!e.parent(
|
|
182
|
-
e.node(
|
|
180
|
+
u.has(a) && !u.get(a).externalConnections,
|
|
181
|
+
!e.parent(a),
|
|
182
|
+
e.node(a),
|
|
183
183
|
e.children("D"),
|
|
184
184
|
" Depth ",
|
|
185
185
|
n
|
|
186
|
-
), !u.has(
|
|
187
|
-
t.debug("Not a cluster",
|
|
188
|
-
else if (!u.get(
|
|
186
|
+
), !u.has(a))
|
|
187
|
+
t.debug("Not a cluster", a, n);
|
|
188
|
+
else if (!u.get(a).externalConnections && e.children(a) && e.children(a).length > 0) {
|
|
189
189
|
t.warn(
|
|
190
190
|
"Cluster without external connections, without a parent and with children",
|
|
191
|
-
|
|
191
|
+
a,
|
|
192
192
|
n
|
|
193
193
|
);
|
|
194
194
|
let l = e.graph().rankdir === "TB" ? "LR" : "TB";
|
|
195
|
-
(s = (r = u.get(
|
|
195
|
+
(s = (r = u.get(a)) == null ? void 0 : r.clusterData) != null && s.dir && (l = u.get(a).clusterData.dir, t.warn("Fixing dir", u.get(a).clusterData.dir, l));
|
|
196
196
|
const f = new k({
|
|
197
197
|
multigraph: !0,
|
|
198
198
|
compound: !0
|
|
@@ -205,30 +205,30 @@ var u = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), B = /* @__PURE
|
|
|
205
205
|
}).setDefaultEdgeLabel(function() {
|
|
206
206
|
return {};
|
|
207
207
|
});
|
|
208
|
-
t.warn("Old graph before copy", X(e)), J(
|
|
208
|
+
t.warn("Old graph before copy", X(e)), J(a, e, f, a), e.setNode(a, {
|
|
209
209
|
clusterNode: !0,
|
|
210
|
-
id:
|
|
211
|
-
clusterData: u.get(
|
|
212
|
-
label: u.get(
|
|
210
|
+
id: a,
|
|
211
|
+
clusterData: u.get(a).clusterData,
|
|
212
|
+
label: u.get(a).label,
|
|
213
213
|
graph: f
|
|
214
|
-
}), t.warn("New graph after copy node: (",
|
|
214
|
+
}), t.warn("New graph after copy node: (", a, ")", X(f)), t.debug("Old graph after copy", X(e));
|
|
215
215
|
} else
|
|
216
216
|
t.warn(
|
|
217
217
|
"Cluster ** ",
|
|
218
|
-
|
|
218
|
+
a,
|
|
219
219
|
" **not meeting the criteria !externalConnections:",
|
|
220
|
-
!u.get(
|
|
220
|
+
!u.get(a).externalConnections,
|
|
221
221
|
" no parent: ",
|
|
222
|
-
!e.parent(
|
|
222
|
+
!e.parent(a),
|
|
223
223
|
" children ",
|
|
224
|
-
e.children(
|
|
224
|
+
e.children(a) && e.children(a).length > 0,
|
|
225
225
|
e.children("D"),
|
|
226
226
|
n
|
|
227
227
|
), t.debug(u);
|
|
228
228
|
d = e.nodes(), t.warn("New list of nodes", d);
|
|
229
|
-
for (const
|
|
230
|
-
const l = e.node(
|
|
231
|
-
t.warn(" Now next level",
|
|
229
|
+
for (const a of d) {
|
|
230
|
+
const l = e.node(a);
|
|
231
|
+
t.warn(" Now next level", a, l), l != null && l.clusterNode && A(l.graph, n + 1);
|
|
232
232
|
}
|
|
233
233
|
}, "extractor"), R = /* @__PURE__ */ w((e, n) => {
|
|
234
234
|
if (n.length === 0)
|
|
@@ -238,16 +238,16 @@ var u = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), B = /* @__PURE
|
|
|
238
238
|
const d = e.children(s), c = R(e, d);
|
|
239
239
|
r = [...r, ...c];
|
|
240
240
|
}), r;
|
|
241
|
-
}, "sorter"),
|
|
241
|
+
}, "sorter"), ae = /* @__PURE__ */ w((e) => R(e, e.children()), "sortNodesByHierarchy"), T = /* @__PURE__ */ w(async (e, n, r, s, d, c) => {
|
|
242
242
|
t.warn("Graph in recursive render:XAX", X(n), d);
|
|
243
|
-
const
|
|
244
|
-
t.trace("Dir in recursive render - dir:",
|
|
243
|
+
const a = n.graph().rankdir;
|
|
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
247
|
const f = l.insert("g").attr("class", "clusters"), E = l.insert("g").attr("class", "edgePaths"), C = l.insert("g").attr("class", "edgeLabels"), h = l.insert("g").attr("class", "nodes");
|
|
248
248
|
await Promise.all(
|
|
249
249
|
n.nodes().map(async function(g) {
|
|
250
|
-
const
|
|
250
|
+
const o = n.node(g);
|
|
251
251
|
if (d !== void 0) {
|
|
252
252
|
const i = JSON.parse(JSON.stringify(d.clusterData));
|
|
253
253
|
t.trace(
|
|
@@ -262,64 +262,64 @@ Parent cluster`,
|
|
|
262
262
|
d.height
|
|
263
263
|
), n.setNode(d.id, i), n.parent(g) || (t.trace("Setting parent", g, d.id), n.setParent(g, d.id, i));
|
|
264
264
|
}
|
|
265
|
-
if (t.info("(Insert) Node XXX" + g + ": " + JSON.stringify(n.node(g))),
|
|
266
|
-
t.info("Cluster identified XBX", g,
|
|
265
|
+
if (t.info("(Insert) Node XXX" + g + ": " + JSON.stringify(n.node(g))), o != null && o.clusterNode) {
|
|
266
|
+
t.info("Cluster identified XBX", g, o.width, n.node(g));
|
|
267
267
|
const { ranksep: i, nodesep: v } = n.graph();
|
|
268
|
-
|
|
269
|
-
...
|
|
268
|
+
o.graph.setGraph({
|
|
269
|
+
...o.graph.graph(),
|
|
270
270
|
ranksep: i + 25,
|
|
271
271
|
nodesep: v
|
|
272
272
|
});
|
|
273
273
|
const m = await T(
|
|
274
274
|
h,
|
|
275
|
-
|
|
275
|
+
o.graph,
|
|
276
276
|
r,
|
|
277
277
|
s,
|
|
278
278
|
n.node(g),
|
|
279
279
|
c
|
|
280
280
|
), b = m.elem;
|
|
281
|
-
_(
|
|
281
|
+
_(o, b), o.diff = m.diff || 0, t.info(
|
|
282
282
|
"New compound node after recursive render XAX",
|
|
283
283
|
g,
|
|
284
284
|
"width",
|
|
285
285
|
// node,
|
|
286
|
-
|
|
286
|
+
o.width,
|
|
287
287
|
"height",
|
|
288
|
-
|
|
288
|
+
o.height
|
|
289
289
|
// node.x,
|
|
290
290
|
// node.y
|
|
291
|
-
), H(b,
|
|
291
|
+
), H(b, o);
|
|
292
292
|
} else
|
|
293
293
|
n.children(g).length > 0 ? (t.trace(
|
|
294
294
|
"Cluster - the non recursive path XBX",
|
|
295
295
|
g,
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
296
|
+
o.id,
|
|
297
|
+
o,
|
|
298
|
+
o.width,
|
|
299
299
|
"Graph:",
|
|
300
300
|
n
|
|
301
|
-
), t.trace(S(
|
|
301
|
+
), t.trace(S(o.id, n)), u.set(o.id, { id: S(o.id, n), node: o })) : (t.trace("Node - the non recursive path XAX", g, h, n.node(g), a), await $(h, n.node(g), { config: c, dir: a }));
|
|
302
302
|
})
|
|
303
303
|
), await (/* @__PURE__ */ w(async () => {
|
|
304
|
-
const g = n.edges().map(async function(
|
|
305
|
-
const i = n.edge(
|
|
306
|
-
t.info("Edge " +
|
|
304
|
+
const g = n.edges().map(async function(o) {
|
|
305
|
+
const i = n.edge(o.v, o.w, o.name);
|
|
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(
|
|
307
307
|
"Fix",
|
|
308
308
|
u,
|
|
309
309
|
"ids:",
|
|
310
|
-
|
|
311
|
-
|
|
310
|
+
o.v,
|
|
311
|
+
o.w,
|
|
312
312
|
"Translating: ",
|
|
313
|
-
u.get(
|
|
314
|
-
u.get(
|
|
313
|
+
u.get(o.v),
|
|
314
|
+
u.get(o.w)
|
|
315
315
|
), await q(C, i);
|
|
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
319
|
let p = 0, { subGraphTitleTotalMargin: y } = z(c);
|
|
320
320
|
return await Promise.all(
|
|
321
|
-
|
|
322
|
-
var
|
|
321
|
+
ae(n).map(async function(g) {
|
|
322
|
+
var o;
|
|
323
323
|
const i = n.node(g);
|
|
324
324
|
if (t.info(
|
|
325
325
|
"Position XBX => " + g + ": (" + i.x,
|
|
@@ -350,7 +350,7 @@ Parent cluster`,
|
|
|
350
350
|
i.height,
|
|
351
351
|
n.parent(g)
|
|
352
352
|
), i.height += y, n.node(i.parentId);
|
|
353
|
-
const v = (i == null ? void 0 : i.padding) / 2 || 0, m = ((
|
|
353
|
+
const v = (i == null ? void 0 : i.padding) / 2 || 0, m = ((o = i == null ? void 0 : i.labelBBox) == null ? void 0 : o.height) || 0, b = m - v || 0;
|
|
354
354
|
t.debug("OffsetY", b, "labelHeight", m, "halfPadding", v), await K(f, i), u.get(i.id).node = i;
|
|
355
355
|
} else {
|
|
356
356
|
const v = n.node(i.parentId);
|
|
@@ -373,25 +373,25 @@ Parent cluster`,
|
|
|
373
373
|
}
|
|
374
374
|
})
|
|
375
375
|
), n.edges().forEach(function(g) {
|
|
376
|
-
const
|
|
377
|
-
t.info("Edge " + g.v + " -> " + g.w + ": " + JSON.stringify(
|
|
376
|
+
const o = n.edge(g);
|
|
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
379
|
var v = n.node(g.w);
|
|
380
|
-
const m = Q(E,
|
|
381
|
-
U(
|
|
380
|
+
const m = Q(E, o, u, r, i, v, s);
|
|
381
|
+
U(o, m);
|
|
382
382
|
}), n.nodes().forEach(function(g) {
|
|
383
|
-
const
|
|
384
|
-
t.info(g,
|
|
383
|
+
const o = n.node(g);
|
|
384
|
+
t.info(g, o.type, o.diff), o.isGroup && (p = o.diff);
|
|
385
385
|
}), t.warn("Returning from recursive render XAX", l, p), { elem: l, diff: p };
|
|
386
386
|
}, "recursiveRender"), ue = /* @__PURE__ */ w(async (e, n) => {
|
|
387
|
-
var r, s, d, c,
|
|
387
|
+
var r, s, d, c, a, l;
|
|
388
388
|
const f = new k({
|
|
389
389
|
multigraph: !0,
|
|
390
390
|
compound: !0
|
|
391
391
|
}).setGraph({
|
|
392
392
|
rankdir: e.direction,
|
|
393
393
|
nodesep: ((r = e.config) == null ? void 0 : r.nodeSpacing) || ((d = (s = e.config) == null ? void 0 : s.flowchart) == null ? void 0 : d.nodeSpacing) || e.nodeSpacing,
|
|
394
|
-
ranksep: ((c = e.config) == null ? void 0 : c.rankSpacing) || ((l = (
|
|
394
|
+
ranksep: ((c = e.config) == null ? void 0 : c.rankSpacing) || ((l = (a = e.config) == null ? void 0 : a.flowchart) == null ? void 0 : l.rankSpacing) || e.rankSpacing,
|
|
395
395
|
marginx: 8,
|
|
396
396
|
marginy: 8
|
|
397
397
|
}).setDefaultEdgeLabel(function() {
|
|
@@ -401,11 +401,11 @@ Parent cluster`,
|
|
|
401
401
|
f.setNode(h.id, { ...h }), h.parentId && f.setParent(h.id, h.parentId);
|
|
402
402
|
}), t.debug("Edges:", e.edges), e.edges.forEach((h) => {
|
|
403
403
|
if (h.start === h.end) {
|
|
404
|
-
const p = h.start, y = p + "---" + p + "---1", g = p + "---" + p + "---2",
|
|
404
|
+
const p = h.start, y = p + "---" + p + "---1", g = p + "---" + p + "---2", o = f.node(p);
|
|
405
405
|
f.setNode(y, {
|
|
406
406
|
domId: y,
|
|
407
407
|
id: y,
|
|
408
|
-
parentId:
|
|
408
|
+
parentId: o.parentId,
|
|
409
409
|
labelStyle: "",
|
|
410
410
|
label: "",
|
|
411
411
|
padding: 0,
|
|
@@ -414,10 +414,10 @@ Parent cluster`,
|
|
|
414
414
|
style: "",
|
|
415
415
|
width: 10,
|
|
416
416
|
height: 10
|
|
417
|
-
}), f.setParent(y,
|
|
417
|
+
}), f.setParent(y, o.parentId), f.setNode(g, {
|
|
418
418
|
domId: g,
|
|
419
419
|
id: g,
|
|
420
|
-
parentId:
|
|
420
|
+
parentId: o.parentId,
|
|
421
421
|
labelStyle: "",
|
|
422
422
|
padding: 0,
|
|
423
423
|
// shape: 'rect',
|
|
@@ -426,9 +426,9 @@ Parent cluster`,
|
|
|
426
426
|
style: "",
|
|
427
427
|
width: 10,
|
|
428
428
|
height: 10
|
|
429
|
-
}), f.setParent(g,
|
|
429
|
+
}), f.setParent(g, o.parentId);
|
|
430
430
|
const i = structuredClone(h), v = structuredClone(h), m = structuredClone(h);
|
|
431
|
-
i.label = "", i.arrowTypeEnd = "none", i.id = p + "-cyclic-special-1", v.arrowTypeEnd = "none", v.id = p + "-cyclic-special-mid", m.label = "",
|
|
431
|
+
i.label = "", i.arrowTypeEnd = "none", i.id = p + "-cyclic-special-1", v.arrowTypeEnd = "none", v.id = p + "-cyclic-special-mid", m.label = "", o.isGroup && (i.fromCluster = p, m.toCluster = p), m.id = p + "-cyclic-special-2", f.setEdge(p, y, i, p + "-cyclic-special-0"), f.setEdge(y, g, v, p + "-cyclic-special-1"), f.setEdge(g, p, m, p + "-cyc<lic-special-2");
|
|
432
432
|
} else
|
|
433
433
|
f.setEdge(h.start, h.end, { ...h }, h.id);
|
|
434
434
|
}), t.warn("Graph at first:", JSON.stringify(X(f))), ie(f), t.warn("Graph after XAX:", JSON.stringify(X(f)));
|
package/dist/{diagram-QW4FP2JN-DZT_0aFO-YCKYx1k-.js → diagram-QW4FP2JN-DZT_0aFO-AmG94tp5.js}
RENAMED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { m as B } from "./chunk-TMUBEWPD-BRIzn5gH-
|
|
2
|
-
import {
|
|
3
|
-
import { D as Y } from "./mermaid-parser.core-Ce96PX3Q-
|
|
1
|
+
import { m as B } from "./chunk-TMUBEWPD-BRIzn5gH-Ch1SRQ7H.js";
|
|
2
|
+
import { _ as i, a5 as S, a6 as D, aj as T, ak as W, a7 as z, a8 as P, aC as x, aW as A, aa as F, aq as v, aD as E, aE as R, l as $ } from "./index-BXOX6oou.js";
|
|
3
|
+
import { D as Y } from "./mermaid-parser.core-Ce96PX3Q-DtNzRUJ7.js";
|
|
4
4
|
var C = {
|
|
5
5
|
packet: []
|
|
6
|
-
}, m = structuredClone(C), _ =
|
|
7
|
-
const t =
|
|
6
|
+
}, m = structuredClone(C), _ = R.packet, H = /* @__PURE__ */ i(() => {
|
|
7
|
+
const t = x({
|
|
8
8
|
..._,
|
|
9
|
-
...
|
|
9
|
+
...E().packet
|
|
10
10
|
});
|
|
11
11
|
return t.showBits && (t.paddingY += 10), t;
|
|
12
12
|
}, "getConfig"), L = /* @__PURE__ */ i(() => m.packet, "getPacket"), M = /* @__PURE__ */ i((t) => {
|
|
13
13
|
t.length > 0 && m.packet.push(t);
|
|
14
|
-
}, "pushWord"),
|
|
14
|
+
}, "pushWord"), j = /* @__PURE__ */ i(() => {
|
|
15
15
|
v(), m = structuredClone(C);
|
|
16
16
|
}, "clear"), u = {
|
|
17
17
|
pushWord: M,
|
|
18
18
|
getPacket: L,
|
|
19
19
|
getConfig: H,
|
|
20
|
-
clear:
|
|
21
|
-
setAccTitle:
|
|
22
|
-
getAccTitle:
|
|
20
|
+
clear: j,
|
|
21
|
+
setAccTitle: P,
|
|
22
|
+
getAccTitle: z,
|
|
23
23
|
setDiagramTitle: W,
|
|
24
|
-
getDiagramTitle:
|
|
25
|
-
getAccDescription:
|
|
26
|
-
setAccDescription:
|
|
27
|
-
},
|
|
24
|
+
getDiagramTitle: T,
|
|
25
|
+
getAccDescription: D,
|
|
26
|
+
setAccDescription: S
|
|
27
|
+
}, q = 1e4, I = /* @__PURE__ */ i((t) => {
|
|
28
28
|
B(t, u);
|
|
29
29
|
let e = -1, o = [], s = 1;
|
|
30
30
|
const { bitsPerRow: n } = u.getConfig();
|
|
@@ -35,15 +35,15 @@ var C = {
|
|
|
35
35
|
throw new Error(
|
|
36
36
|
`Packet block ${a} - ${r ?? a} is not contiguous. It should start from ${e + 1}.`
|
|
37
37
|
);
|
|
38
|
-
for (e = r ?? a,
|
|
39
|
-
const [f, c] =
|
|
38
|
+
for (e = r ?? a, $.debug(`Packet block ${a} - ${e} with label ${p}`); o.length <= n + 1 && u.getPacket().length < q; ) {
|
|
39
|
+
const [f, c] = X({ start: a, end: r, label: p }, s, n);
|
|
40
40
|
if (o.push(f), f.end + 1 === s * n && (u.pushWord(o), o = [], s++), !c)
|
|
41
41
|
break;
|
|
42
42
|
({ start: a, end: r, label: p } = c);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
u.pushWord(o);
|
|
46
|
-
}, "populate"),
|
|
46
|
+
}, "populate"), X = /* @__PURE__ */ i((t, e, o) => {
|
|
47
47
|
if (t.end === void 0 && (t.end = t.start), t.start > t.end)
|
|
48
48
|
throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);
|
|
49
49
|
return t.end + 1 <= e * o ? [t, void 0] : [
|
|
@@ -61,11 +61,11 @@ var C = {
|
|
|
61
61
|
}, "getNextFittingBlock"), G = {
|
|
62
62
|
parse: /* @__PURE__ */ i(async (t) => {
|
|
63
63
|
const e = await Y("packet", t);
|
|
64
|
-
|
|
64
|
+
$.debug(e), I(e);
|
|
65
65
|
}, "parse")
|
|
66
66
|
}, J = /* @__PURE__ */ i((t, e, o, s) => {
|
|
67
|
-
const n = s.db, a = n.getConfig(), { rowHeight: r, paddingY: p, bitWidth: f, bitsPerRow: c } = a, h = n.getPacket(), l = n.getDiagramTitle(), g = r + p, d = g * (h.length + 1) - (l ? 0 : r), k = f * c + 2, b =
|
|
68
|
-
b.attr("viewbox", `0 0 ${k} ${d}`),
|
|
67
|
+
const n = s.db, a = n.getConfig(), { rowHeight: r, paddingY: p, bitWidth: f, bitsPerRow: c } = a, h = n.getPacket(), l = n.getDiagramTitle(), g = r + p, d = g * (h.length + 1) - (l ? 0 : r), k = f * c + 2, b = A(e);
|
|
68
|
+
b.attr("viewbox", `0 0 ${k} ${d}`), F(b, d, k, a.useMaxWidth);
|
|
69
69
|
for (const [w, y] of h.entries())
|
|
70
70
|
K(b, y, w, a);
|
|
71
71
|
b.append("text").text(l).attr("x", k / 2).attr("y", d - g / 2).attr("dominant-baseline", "middle").attr("text-anchor", "middle").attr("class", "packetTitle");
|
|
@@ -90,7 +90,7 @@ var C = {
|
|
|
90
90
|
blockStrokeWidth: "1",
|
|
91
91
|
blockFillColor: "#efefef"
|
|
92
92
|
}, U = /* @__PURE__ */ i(({ packet: t } = {}) => {
|
|
93
|
-
const e =
|
|
93
|
+
const e = x(O, t);
|
|
94
94
|
return `
|
|
95
95
|
.packetByte {
|
|
96
96
|
font-size: ${e.byteFontSize};
|
package/dist/documentation.es.js
CHANGED