@kong-ui-public/documentation 0.7.83 → 0.7.84

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.
Files changed (66) hide show
  1. package/dist/_basePickBy-CMfPif8e-CmRJF0Pz.js +151 -0
  2. package/dist/_baseUniq-CXqhI00C-BfnSCqya.js +615 -0
  3. package/dist/arc-JIMrD458-iE0qPqUL.js +83 -0
  4. package/dist/architecture-I3QFYML2-Bgw7-fJd-BmHcSoDq.js +5 -0
  5. package/dist/{architectureDiagram-V6B76FHG-CMXFnETI-RxxML1uW.js → architectureDiagram-AYX4OTIS-XPsSAXrN-CriQXfFm.js} +4 -4
  6. package/dist/blockDiagram-XN6IQ5JY-IfzOVP1S-DoilgKcQ.js +2247 -0
  7. package/dist/{c4Diagram-THADGKDP-BoXI_MdM-85LhjWUD.js → c4Diagram-GPMAACGM-RttNBnvg-DemUG3qf.js} +2 -2
  8. package/dist/{channel-BlAyqTfO-DcF7shsf.js → channel-DEiqvYYf-DqQTZyIM.js} +1 -1
  9. package/dist/{chunk-OQCM5LHU-BXp7HdZf-DAxyAqhb.js → chunk-BAOP5US2-D_mPkUfX-Dlqx79Tr.js} +1 -1
  10. package/dist/chunk-CXDZ2C6O-B6QVQzrJ-CdVn1xaX.js +1301 -0
  11. package/dist/{chunk-DUMQOTYW-BvseU82P-Cv9cgfHg.js → chunk-EICJXIV7-B3uVnKYK-BPFil4EM.js} +1 -1
  12. package/dist/{chunk-2JBRQKJ5-D-tjQIH--CX9PfGSj.js → chunk-JZAHL7AJ-B8L_7Xh_-C2ETRUtV.js} +21 -21
  13. package/dist/{chunk-2RYQ3QTB-CJAPCFIj-C6EEVa0L.js → chunk-RGXPSUNZ-PjQy3A3Y-BiDEi6k5.js} +1 -1
  14. package/dist/{chunk-XVOYOM2C-DSF8EQmO-CJoKjxiE.js → chunk-VCFP4HPQ-qZEjUbIz-7kfkUrsj.js} +1 -1
  15. package/dist/classDiagram-FEGYTUDG-Bu9qKgav-DF2ZcQyp.js +14 -0
  16. package/dist/classDiagram-v2-R65JCUOM-Bu9qKgav-DF2ZcQyp.js +14 -0
  17. package/dist/{clone-BxgFQWIV-C8w0qOf5.js → clone-elND5I63-U8WRvSPu.js} +1 -1
  18. package/dist/dagre-SWNTG5WE-CcKMLYcK-tREOd3Fb.js +447 -0
  19. package/dist/{diagram-QS5GVLUX-Ck_HO8gZ-CFWjkYXj.js → diagram-NZMEDLQF-vjbbgzvH-BDFE_-Eo.js} +6 -6
  20. package/dist/documentation.es.js +1 -1
  21. package/dist/documentation.umd.js +401 -273
  22. package/dist/{erDiagram-62CBQV5Y-CaO8CQzG-DYEXkRnA.js → erDiagram-WO52GFNT-N8TeMKSM-BojFH-Dn.js} +56 -56
  23. package/dist/flowDiagram-TSWR6T2D-DzECWIN--CnDMIIi-.js +1484 -0
  24. package/dist/{ganttDiagram-ASEIQ4P5-BiIuu6iJ-DXC89NBD.js → ganttDiagram-FAOCOTIY-DmxDGUpf-BGJLIQAo.js} +61 -61
  25. package/dist/gitGraph-YCYPL57B-BKlVjqGu-BRRTPERj.js +5 -0
  26. package/dist/{gitGraphDiagram-UL5UFKDR-C4dDL1m3-pGO-Nubf.js → gitGraphDiagram-5C7YHVU6-CfJ_hQ2h-C2aLT5AH.js} +21 -21
  27. package/dist/{graph-BDwITe7N-Dg4ZhErV.js → graph-C5siWsaJ-djbzUgq8.js} +52 -55
  28. package/dist/{index-D1jNpyAG.js → index-BXFfc1qh.js} +17314 -15496
  29. package/dist/info-46DW6VJ7-QBUrqpM0-D7DXfBfh.js +5 -0
  30. package/dist/{infoDiagram-7APDZ6AT-DQAU4aEA-ZuNKK8Q1.js → infoDiagram-P5D6MX3V-CthsN8fk-ju-grajk.js} +2 -2
  31. package/dist/{journeyDiagram-G5LC7W2K-BDjs8Ede-CBVXgKDg.js → journeyDiagram-UIGPPNLY-CB1xWSVF-CnOTIXjT.js} +3 -3
  32. package/dist/kanban-definition-KMT3NSR2-B76JZ_Kx-BuaYPyou.js +718 -0
  33. package/dist/layout-mwnMvyc4-B2PmGvWD.js +1321 -0
  34. package/dist/{linear-DJf2yjqH-Qa8JBmhC.js → linear-XztDb0hj-RsuwoFLQ.js} +46 -46
  35. package/dist/{mermaid-parser.core-DKcB0zTx-Cuc2e_U9.js → mermaid-parser.core-C4mt_cFi-BuaZi6gx.js} +9 -9
  36. package/dist/{mindmap-definition-FCEC46F3-Dfona71I-BMB5v8Sw.js → mindmap-definition-R7LC4OIY-Cg3Nsctr-BcCPx65V.js} +1 -1
  37. package/dist/packet-W2GHVCYJ-BJGXYVlB-DlnQVVmK.js +5 -0
  38. package/dist/pie-BEWT4RHE-XO1bTOj2-DEYSeXSg.js +5 -0
  39. package/dist/{pieDiagram-OZX6XH5M-CVVFrPaX-C40AWUnf.js → pieDiagram-BLWKPB35-Bs5Iyn_g-CnOiPji_.js} +27 -27
  40. package/dist/{quadrantDiagram-VG34DGKC-D_n6ouG0-B7tCVKZS.js → quadrantDiagram-QXWEEFXS-n8j7IqmF-CloVXY0U.js} +16 -16
  41. package/dist/{requirementDiagram-FPZB6IJI-DgzsPnSP-BdT6rZ42.js → requirementDiagram-XAUNFCZY-DI_Pyl2h-D8hqXle2.js} +20 -20
  42. package/dist/{sankeyDiagram-KMMQDL5K-slN_anzC-C8cSA1pn.js → sankeyDiagram-LVV36NHA-Bei7yBJl-DvbyWSci.js} +1 -1
  43. package/dist/{sequenceDiagram-PQT5PN7B-DmYxtSNe-kmiDoefU.js → sequenceDiagram-D25TJ2OB-NAPdhBbI-DQR1b0UZ.js} +21 -21
  44. package/dist/{stateDiagram-TQSDS2D4-DaGylNtS-DZvK22EK.js → stateDiagram-GNSP7T6Y-Dzq9j0YG-BgVCaCOx.js} +14 -15
  45. package/dist/{stateDiagram-v2-J5TZWJW5-CkpV3aOb-CRLcbMy9.js → stateDiagram-v2-HP6YRVRG-Jl4ubGlG-BeMvcZLQ.js} +2 -3
  46. package/dist/{timeline-definition-KYQAIZUX-BbQn7lRo-DdMJtCcZ.js → timeline-definition-27KQCCZ3-Dyj-cUhB-cBpLcB_z.js} +91 -91
  47. package/dist/{xychartDiagram-LESROZAQ-C5RGN8Yc-D1Q0T8zi.js → xychartDiagram-MYLB5AYS-Bc_nZcHL-YLCG5NJT.js} +2 -2
  48. package/package.json +2 -2
  49. package/dist/_basePickBy-C3_IHxiB-Bgb-nBpw.js +0 -143
  50. package/dist/_baseUniq-Cede_3wW-BVX848YU.js +0 -622
  51. package/dist/arc-CFIMKg_S-CJkN7pL8.js +0 -83
  52. package/dist/architecture-I3QFYML2-CsfpifL5-B7ba29Kf.js +0 -5
  53. package/dist/blockDiagram-EN3ZKWFM-CyddtNyi-BO48RJ5X.js +0 -1232
  54. package/dist/chunk-BAVOGKFW-DMR4mnUx-ZqKP-ubQ.js +0 -1092
  55. package/dist/chunk-UGV5ZQQN-DJ9JPuwX-CiNn-tmJ.js +0 -254
  56. package/dist/chunk-YWFND7JV-CJxpOF0s-CKv3TLz3.js +0 -786
  57. package/dist/classDiagram-4BHYIK4I-Bh2E4V_q-Bp1df6xf.js +0 -214
  58. package/dist/classDiagram-v2-FI7KE7WJ-zeS53lAE--zqW0wuN.js +0 -545
  59. package/dist/dagre-P3YPLUS5-DvPNKrZS-BqJ7-FR_.js +0 -421
  60. package/dist/flowDiagram-JSIZSE4D-C3p20RgK-76C6C_fU.js +0 -1380
  61. package/dist/gitGraph-YCYPL57B-BXHaWu1_-L6S_Q-ER.js +0 -5
  62. package/dist/info-46DW6VJ7-gLazUuGQ-CgME-TPe.js +0 -5
  63. package/dist/json-Dg9P6BhK-CcBa4IfV.js +0 -31
  64. package/dist/layout--tn8zpzB-CFuPSG6n.js +0 -1381
  65. package/dist/packet-W2GHVCYJ-Dn1-cCwP-_7hKzD3w.js +0 -5
  66. package/dist/pie-BEWT4RHE-DvPKCMtn-CWoQ7JX6.js +0 -5
@@ -1,421 +0,0 @@
1
- import { _ as w, m as R, c as T, a as L, b as F, l as t, g as M, u as $, s as j, i as Y, d as _, e as H, p as I, f as q, h as z, j as K } from "./index-D1jNpyAG.js";
2
- import { D as O } from "./graph-BDwITe7N-Dg4ZhErV.js";
3
- import { o as Q } from "./layout--tn8zpzB-CFuPSG6n.js";
4
- import { v as X } from "./json-Dg9P6BhK-CcBa4IfV.js";
5
- var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), G = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ w(() => {
6
- b.clear(), G.clear(), f.clear();
7
- }, "clear"), S = /* @__PURE__ */ w((e, n) => {
8
- const r = b.get(n) || [];
9
- return t.trace("In isDescendant", n, " ", e, " = ", r.includes(e)), r.includes(e);
10
- }, "isDescendant"), V = /* @__PURE__ */ w((e, n) => {
11
- const r = b.get(n) || [];
12
- 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) || S(e.v, n) || S(e.w, n) || r.includes(e.w) : (t.debug("Tilt, ", n, ",not in descendants"), !1);
13
- }, "edgeInCluster"), k = /* @__PURE__ */ w((e, n, r, l) => {
14
- t.warn(
15
- "Copying children of ",
16
- e,
17
- "root",
18
- l,
19
- "data",
20
- n.node(e),
21
- l
22
- );
23
- const a = n.children(e) || [];
24
- e !== l && a.push(e), t.warn("Copying (nodes) clusterId", e, "nodes", a), a.forEach((s) => {
25
- if (n.children(s).length > 0)
26
- k(s, n, r, l);
27
- else {
28
- const o = n.node(s);
29
- t.info("cp ", s, " to ", l, " with parent ", e), r.setNode(s, o), l !== n.parent(s) && (t.warn("Setting parent", s, n.parent(s)), r.setParent(s, n.parent(s))), e !== l && s !== e ? (t.debug("Setting parent", s, e), r.setParent(s, e)) : (t.info("In copy ", e, "root", l, "data", n.node(e), l), t.debug(
30
- "Not Setting parent for node=",
31
- s,
32
- "cluster!==rootId",
33
- e !== l,
34
- "node!==clusterId",
35
- s !== e
36
- ));
37
- const c = n.edges(s);
38
- t.debug("Copying Edges", c), c.forEach((h) => {
39
- t.info("Edge", h);
40
- const E = n.edge(h.v, h.w, h.name);
41
- t.info("Edge data", E, l);
42
- try {
43
- V(h, l) ? (t.info("Copying as ", h.v, h.w, E, h.name), r.setEdge(h.v, h.w, E, h.name), t.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : t.info(
44
- "Skipping copy of edge ",
45
- h.v,
46
- "-->",
47
- h.w,
48
- " rootId: ",
49
- l,
50
- " clusterId:",
51
- e
52
- );
53
- } catch (C) {
54
- t.error(C);
55
- }
56
- });
57
- }
58
- t.debug("Removing node", s), n.removeNode(s);
59
- });
60
- }, "copy"), B = /* @__PURE__ */ w((e, n) => {
61
- const r = n.children(e);
62
- let l = [...r];
63
- for (const a of r)
64
- G.set(a, e), l = [...l, ...B(a, n)];
65
- return l;
66
- }, "extractDescendants"), W = /* @__PURE__ */ w((e, n, r) => {
67
- const l = e.edges().filter((c) => c.v === n || c.w === n), a = e.edges().filter((c) => c.v === r || c.w === r), s = l.map((c) => ({ v: c.v === n ? r : c.v, w: c.w === n ? n : c.w })), o = a.map((c) => ({ v: c.v, w: c.w }));
68
- return s.filter((c) => o.some((h) => c.v === h.v && c.w === h.w));
69
- }, "findCommonEdges"), x = /* @__PURE__ */ w((e, n, r) => {
70
- const l = n.children(e);
71
- if (t.trace("Searching children of id ", e, l), l.length < 1)
72
- return e;
73
- let a;
74
- for (const s of l) {
75
- const o = x(s, n, r), c = W(n, r, o);
76
- if (o)
77
- if (c.length > 0)
78
- a = o;
79
- else
80
- return o;
81
- }
82
- return a;
83
- }, "findNonClusterChild"), D = /* @__PURE__ */ w((e) => !f.has(e) || !f.get(e).externalConnections ? e : f.has(e) ? f.get(e).id : e, "getAnchorId"), Z = /* @__PURE__ */ w((e, n) => {
84
- if (!e || n > 10) {
85
- t.debug("Opting out, no graph ");
86
- return;
87
- } else
88
- t.debug("Opting in, graph ");
89
- e.nodes().forEach(function(r) {
90
- e.children(r).length > 0 && (t.warn(
91
- "Cluster identified",
92
- r,
93
- " Replacement id in edges: ",
94
- x(r, e, r)
95
- ), b.set(r, B(r, e)), f.set(r, { id: x(r, e, r), clusterData: e.node(r) }));
96
- }), e.nodes().forEach(function(r) {
97
- const l = e.children(r), a = e.edges();
98
- l.length > 0 ? (t.debug("Cluster identified", r, b), a.forEach((s) => {
99
- const o = S(s.v, r), c = S(s.w, r);
100
- o ^ c && (t.warn("Edge: ", s, " leaves cluster ", r), t.warn("Descendants of XXX ", r, ": ", b.get(r)), f.get(r).externalConnections = !0);
101
- })) : t.debug("Not a cluster ", r, b);
102
- });
103
- for (let r of f.keys()) {
104
- const l = f.get(r).id, a = e.parent(l);
105
- a !== r && f.has(a) && !f.get(a).externalConnections && (f.get(r).id = a);
106
- }
107
- e.edges().forEach(function(r) {
108
- const l = e.edge(r);
109
- t.warn("Edge " + r.v + " -> " + r.w + ": " + JSON.stringify(r)), t.warn("Edge " + r.v + " -> " + r.w + ": " + JSON.stringify(e.edge(r)));
110
- let a = r.v, s = r.w;
111
- if (t.warn(
112
- "Fix XXX",
113
- f,
114
- "ids:",
115
- r.v,
116
- r.w,
117
- "Translating: ",
118
- f.get(r.v),
119
- " --- ",
120
- f.get(r.w)
121
- ), f.get(r.v) || f.get(r.w)) {
122
- if (t.warn("Fixing and trying - removing XXX", r.v, r.w, r.name), a = D(r.v), s = D(r.w), e.removeEdge(r.v, r.w, r.name), a !== r.v) {
123
- const o = e.parent(a);
124
- f.get(o).externalConnections = !0, l.fromCluster = r.v;
125
- }
126
- if (s !== r.w) {
127
- const o = e.parent(s);
128
- f.get(o).externalConnections = !0, l.toCluster = r.w;
129
- }
130
- t.warn("Fix Replacing with XXX", a, s, r.name), e.setEdge(a, s, l, r.name);
131
- }
132
- }), t.warn("Adjusted Graph", X(e)), P(e, 0), t.trace(f);
133
- }, "adjustClustersAndEdges"), P = /* @__PURE__ */ w((e, n) => {
134
- var r, l;
135
- if (t.warn("extractor - ", n, X(e), e.children("D")), n > 10) {
136
- t.error("Bailing out");
137
- return;
138
- }
139
- let a = e.nodes(), s = !1;
140
- for (const o of a) {
141
- const c = e.children(o);
142
- s = s || c.length > 0;
143
- }
144
- if (!s) {
145
- t.debug("Done, no node has children", e.nodes());
146
- return;
147
- }
148
- t.debug("Nodes = ", a, n);
149
- for (const o of a)
150
- if (t.debug(
151
- "Extracting node",
152
- o,
153
- f,
154
- f.has(o) && !f.get(o).externalConnections,
155
- !e.parent(o),
156
- e.node(o),
157
- e.children("D"),
158
- " Depth ",
159
- n
160
- ), !f.has(o))
161
- t.debug("Not a cluster", o, n);
162
- else if (!f.get(o).externalConnections && e.children(o) && e.children(o).length > 0) {
163
- t.warn(
164
- "Cluster without external connections, without a parent and with children",
165
- o,
166
- n
167
- );
168
- let c = e.graph().rankdir === "TB" ? "LR" : "TB";
169
- (l = (r = f.get(o)) == null ? void 0 : r.clusterData) != null && l.dir && (c = f.get(o).clusterData.dir, t.warn("Fixing dir", f.get(o).clusterData.dir, c));
170
- const h = new O({
171
- multigraph: !0,
172
- compound: !0
173
- }).setGraph({
174
- rankdir: c,
175
- nodesep: 50,
176
- ranksep: 50,
177
- marginx: 8,
178
- marginy: 8
179
- }).setDefaultEdgeLabel(function() {
180
- return {};
181
- });
182
- t.warn("Old graph before copy", X(e)), k(o, e, h, o), e.setNode(o, {
183
- clusterNode: !0,
184
- id: o,
185
- clusterData: f.get(o).clusterData,
186
- label: f.get(o).label,
187
- graph: h
188
- }), t.warn("New graph after copy node: (", o, ")", X(h)), t.debug("Old graph after copy", X(e));
189
- } else
190
- t.warn(
191
- "Cluster ** ",
192
- o,
193
- " **not meeting the criteria !externalConnections:",
194
- !f.get(o).externalConnections,
195
- " no parent: ",
196
- !e.parent(o),
197
- " children ",
198
- e.children(o) && e.children(o).length > 0,
199
- e.children("D"),
200
- n
201
- ), t.debug(f);
202
- a = e.nodes(), t.warn("New list of nodes", a);
203
- for (const o of a) {
204
- const c = e.node(o);
205
- t.warn(" Now next level", o, c), c != null && c.clusterNode && P(c.graph, n + 1);
206
- }
207
- }, "extractor"), J = /* @__PURE__ */ w((e, n) => {
208
- if (n.length === 0)
209
- return [];
210
- let r = Object.assign([], n);
211
- return n.forEach((l) => {
212
- const a = e.children(l), s = J(e, a);
213
- r = [...r, ...s];
214
- }), r;
215
- }, "sorter"), ee = /* @__PURE__ */ w((e) => J(e, e.children()), "sortNodesByHierarchy"), A = /* @__PURE__ */ w(async (e, n, r, l, a, s) => {
216
- t.warn("Graph in recursive render:XAX", X(n), a);
217
- const o = n.graph().rankdir;
218
- t.trace("Dir in recursive render - dir:", o);
219
- const c = e.insert("g").attr("class", "root");
220
- 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]));
221
- const h = c.insert("g").attr("class", "clusters"), E = c.insert("g").attr("class", "edgePaths"), C = c.insert("g").attr("class", "edgeLabels"), u = c.insert("g").attr("class", "nodes");
222
- await Promise.all(
223
- n.nodes().map(async function(g) {
224
- const d = n.node(g);
225
- if (a !== void 0) {
226
- const i = JSON.parse(JSON.stringify(a.clusterData));
227
- t.trace(
228
- `Setting data for parent cluster XXX
229
- Node.id = `,
230
- g,
231
- `
232
- data=`,
233
- i.height,
234
- `
235
- Parent cluster`,
236
- a.height
237
- ), n.setNode(a.id, i), n.parent(g) || (t.trace("Setting parent", g, a.id), n.setParent(g, a.id, i));
238
- }
239
- if (t.info("(Insert) Node XXX" + g + ": " + JSON.stringify(n.node(g))), d != null && d.clusterNode) {
240
- t.info("Cluster identified XBX", g, d.width, n.node(g));
241
- const { ranksep: i, nodesep: v } = n.graph();
242
- d.graph.setGraph({
243
- ...d.graph.graph(),
244
- ranksep: i + 25,
245
- nodesep: v
246
- });
247
- const m = await A(
248
- u,
249
- d.graph,
250
- r,
251
- l,
252
- n.node(g),
253
- s
254
- ), N = m.elem;
255
- $(d, N), d.diff = m.diff || 0, t.info(
256
- "New compound node after recursive render XAX",
257
- g,
258
- "width",
259
- // node,
260
- d.width,
261
- "height",
262
- d.height
263
- // node.x,
264
- // node.y
265
- ), j(N, d);
266
- } else
267
- n.children(g).length > 0 ? (t.trace(
268
- "Cluster - the non recursive path XBX",
269
- g,
270
- d.id,
271
- d,
272
- d.width,
273
- "Graph:",
274
- n
275
- ), t.trace(x(d.id, n)), f.set(d.id, { id: x(d.id, n), node: d })) : (t.trace("Node - the non recursive path XAX", g, u, n.node(g), o), await Y(u, n.node(g), o));
276
- })
277
- ), await (/* @__PURE__ */ w(async () => {
278
- const g = n.edges().map(async function(d) {
279
- const i = n.edge(d.v, d.w, d.name);
280
- t.info("Edge " + d.v + " -> " + d.w + ": " + JSON.stringify(d)), t.info("Edge " + d.v + " -> " + d.w + ": ", d, " ", JSON.stringify(n.edge(d))), t.info(
281
- "Fix",
282
- f,
283
- "ids:",
284
- d.v,
285
- d.w,
286
- "Translating: ",
287
- f.get(d.v),
288
- f.get(d.w)
289
- ), await _(C, i);
290
- });
291
- await Promise.all(g);
292
- }, "processEdges"))(), t.info("Graph before layout:", JSON.stringify(X(n))), t.info("############################################# XXX"), t.info("### Layout ### XXX"), t.info("############################################# XXX"), Q(n), t.info("Graph after layout:", JSON.stringify(X(n)));
293
- let p = 0, { subGraphTitleTotalMargin: y } = H(s);
294
- return await Promise.all(
295
- ee(n).map(async function(g) {
296
- var d;
297
- const i = n.node(g);
298
- if (t.info(
299
- "Position XBX => " + g + ": (" + i.x,
300
- "," + i.y,
301
- ") width: ",
302
- i.width,
303
- " height: ",
304
- i.height
305
- ), i != null && i.clusterNode)
306
- i.y += y, t.info(
307
- "A tainted cluster node XBX1",
308
- g,
309
- i.id,
310
- i.width,
311
- i.height,
312
- i.x,
313
- i.y,
314
- n.parent(g)
315
- ), f.get(i.id).node = i, I(i);
316
- else if (n.children(g).length > 0) {
317
- t.info(
318
- "A pure cluster node XBX1",
319
- g,
320
- i.id,
321
- i.x,
322
- i.y,
323
- i.width,
324
- i.height,
325
- n.parent(g)
326
- ), i.height += y, n.node(i.parentId);
327
- const v = (i == null ? void 0 : i.padding) / 2 || 0, m = ((d = i == null ? void 0 : i.labelBBox) == null ? void 0 : d.height) || 0, N = m - v || 0;
328
- t.debug("OffsetY", N, "labelHeight", m, "halfPadding", v), await q(h, i), f.get(i.id).node = i;
329
- } else {
330
- const v = n.node(i.parentId);
331
- i.y += y / 2, t.info(
332
- "A regular node XBX1 - using the padding",
333
- i.id,
334
- "parent",
335
- i.parentId,
336
- i.width,
337
- i.height,
338
- i.x,
339
- i.y,
340
- "offsetY",
341
- i.offsetY,
342
- "parent",
343
- v,
344
- v == null ? void 0 : v.offsetY,
345
- i
346
- ), I(i);
347
- }
348
- })
349
- ), n.edges().forEach(function(g) {
350
- const d = n.edge(g);
351
- t.info("Edge " + g.v + " -> " + g.w + ": " + JSON.stringify(d), d), d.points.forEach((N) => N.y += y / 2);
352
- const i = n.node(g.v);
353
- var v = n.node(g.w);
354
- const m = z(E, d, f, r, i, v, l);
355
- K(d, m);
356
- }), n.nodes().forEach(function(g) {
357
- const d = n.node(g);
358
- t.info(g, d.type, d.diff), d.isGroup && (p = d.diff);
359
- }), t.warn("Returning from recursive render XAX", c, p), { elem: c, diff: p };
360
- }, "recursiveRender"), oe = /* @__PURE__ */ w(async (e, n) => {
361
- var r, l, a, s, o, c;
362
- const h = new O({
363
- multigraph: !0,
364
- compound: !0
365
- }).setGraph({
366
- rankdir: e.direction,
367
- nodesep: ((r = e.config) == null ? void 0 : r.nodeSpacing) || ((a = (l = e.config) == null ? void 0 : l.flowchart) == null ? void 0 : a.nodeSpacing) || e.nodeSpacing,
368
- ranksep: ((s = e.config) == null ? void 0 : s.rankSpacing) || ((c = (o = e.config) == null ? void 0 : o.flowchart) == null ? void 0 : c.rankSpacing) || e.rankSpacing,
369
- marginx: 8,
370
- marginy: 8
371
- }).setDefaultEdgeLabel(function() {
372
- return {};
373
- }), E = n.select("g");
374
- R(E, e.markers, e.type, e.diagramId), T(), L(), F(), U(), e.nodes.forEach((u) => {
375
- h.setNode(u.id, { ...u }), u.parentId && h.setParent(u.id, u.parentId);
376
- }), t.debug("Edges:", e.edges), e.edges.forEach((u) => {
377
- if (u.start === u.end) {
378
- const p = u.start, y = p + "---" + p + "---1", g = p + "---" + p + "---2", d = h.node(p);
379
- h.setNode(y, {
380
- domId: y,
381
- id: y,
382
- parentId: d.parentId,
383
- labelStyle: "",
384
- label: "",
385
- padding: 0,
386
- shape: "labelRect",
387
- // shape: 'rect',
388
- style: "",
389
- width: 10,
390
- height: 10
391
- }), h.setParent(y, d.parentId), h.setNode(g, {
392
- domId: g,
393
- id: g,
394
- parentId: d.parentId,
395
- labelStyle: "",
396
- padding: 0,
397
- // shape: 'rect',
398
- shape: "labelRect",
399
- label: "",
400
- style: "",
401
- width: 10,
402
- height: 10
403
- }), h.setParent(g, d.parentId);
404
- const i = structuredClone(u), v = structuredClone(u), m = structuredClone(u);
405
- i.label = "", i.arrowTypeEnd = "none", i.id = p + "-cyclic-special-1", v.arrowTypeEnd = "none", v.id = p + "-cyclic-special-mid", m.label = "", d.isGroup && (i.fromCluster = p, m.toCluster = p), m.id = p + "-cyclic-special-2", h.setEdge(p, y, i, p + "-cyclic-special-0"), h.setEdge(y, g, v, p + "-cyclic-special-1"), h.setEdge(g, p, m, p + "-cyc<lic-special-2");
406
- } else
407
- h.setEdge(u.start, u.end, { ...u }, u.id);
408
- }), t.warn("Graph at first:", JSON.stringify(X(h))), Z(h), t.warn("Graph after XAX:", JSON.stringify(X(h)));
409
- const C = M();
410
- await A(
411
- E,
412
- h,
413
- e.type,
414
- e.diagramId,
415
- void 0,
416
- C
417
- );
418
- }, "render");
419
- export {
420
- oe as render
421
- };