@cloudbase/agent-example-ui-web-shared 1.0.1-alpha.7 → 1.0.1-alpha.9
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/_baseUniq-cVV8eVk4.js +477 -0
- package/dist/{arc-BPwhK7WV.js → arc-K1FrNqso.js} +1 -1
- package/dist/{architecture-U656AL7Q-Dckop6jg.js → architecture-U656AL7Q-to_mAQ15.js} +1 -1
- package/dist/{architectureDiagram-VXUJARFQ-Bb0L6lVC.js → architectureDiagram-VXUJARFQ-BShk_CjT.js} +4 -4
- package/dist/{blockDiagram-VD42YOAC-C1ZvOL0q.js → blockDiagram-VD42YOAC-ffg2IsPK.js} +5 -5
- package/dist/{c4Diagram-YG6GDRKO-CGAIzfE2.js → c4Diagram-YG6GDRKO-CzC11UAD.js} +2 -2
- package/dist/{channel-BgWUdIRw.js → channel-DZUw4Jym.js} +1 -1
- package/dist/{chunk-4BX2VUAB-DS0FUC4c.js → chunk-4BX2VUAB-QlwpQ37g.js} +1 -1
- package/dist/{chunk-55IACEB6-BmfAO3Gs.js → chunk-55IACEB6-DgsusDqn.js} +1 -1
- package/dist/{chunk-B4BG7PRW-DJhpx3a7.js → chunk-B4BG7PRW-CbDtd1_E.js} +4 -4
- package/dist/{chunk-DI55MBZ5-9KClYtUI.js → chunk-DI55MBZ5-gY6Ctlor.js} +3 -3
- package/dist/{chunk-FMBD7UC4-DEgKR2aK.js → chunk-FMBD7UC4-D8WRKfVU.js} +1 -1
- package/dist/{chunk-QN33PNHL-BsK9Xghy.js → chunk-QN33PNHL-wY4Ezg3J.js} +1 -1
- package/dist/{chunk-QZHKN3VN-DkI929nz.js → chunk-QZHKN3VN-BHIfnb-O.js} +1 -1
- package/dist/{chunk-TZMSLE5B-B1ivHGP6.js → chunk-TZMSLE5B-CnoGb1rB.js} +1 -1
- package/dist/{classDiagram-v2-WZHVMYZB-BKno_zkC.js → classDiagram-2ON5EDUG-CDZBJdHx.js} +2 -2
- package/dist/{classDiagram-2ON5EDUG-BKno_zkC.js → classDiagram-v2-WZHVMYZB-CDZBJdHx.js} +2 -2
- package/dist/{clone-B51D-6Zd.js → clone-Duhsnio3.js} +1 -1
- package/dist/{code-block-QI2IAROF-8bRuEjqD.js → code-block-QI2IAROF-CzSb8xF-.js} +1 -1
- package/dist/{cose-bilkent-S5V4N54A-CcNlLEPd.js → cose-bilkent-S5V4N54A-BLZtkSUu.js} +2 -2
- package/dist/{dagre-6UL2VRFP-D7Busma-.js → dagre-6UL2VRFP-C0go1FWV.js} +109 -110
- package/dist/{diagram-PSM6KHXK-CWnIoq3N.js → diagram-PSM6KHXK-BZFNkNP-.js} +16 -16
- package/dist/{diagram-QEK2KX5R-B3RGWMKk.js → diagram-QEK2KX5R-BbUBKb5Z.js} +3 -3
- package/dist/{diagram-S2PKOQOG-BsBqg-YG.js → diagram-S2PKOQOG-DeT4C-Sp.js} +3 -3
- package/dist/{erDiagram-Q2GNP2WA-CvIuG7Iw.js → erDiagram-Q2GNP2WA-VNDyUx_F.js} +4 -4
- package/dist/example-ui-web-shared.js +1 -1
- package/dist/example-ui-web-shared.umd.cjs +351 -351
- package/dist/{flowDiagram-NV44I4VS-CcwZxtO-.js → flowDiagram-NV44I4VS-CKppoJRW.js} +5 -5
- package/dist/{ganttDiagram-JELNMOA3-DqoII7Qh.js → ganttDiagram-JELNMOA3-Cd-Bx2Dj.js} +3 -3
- package/dist/{gitGraph-F6HP7TQM-BDKgl9YL.js → gitGraph-F6HP7TQM-CZUN3uDn.js} +1 -1
- package/dist/{gitGraphDiagram-NY62KEGX-BUL11sl1.js → gitGraphDiagram-NY62KEGX-BLHYMkUI.js} +4 -4
- package/dist/graph-pMIG5nR2.js +381 -0
- package/dist/{index-BOMuRfvV.js → index-C0i3yfGY.js} +2 -2
- package/dist/info-NVLQJR56-Da1Yvbv-.js +5 -0
- package/dist/{infoDiagram-WHAUD3N6-ifZ2DZ3s.js → infoDiagram-WHAUD3N6-DLGOnr_j.js} +2 -2
- package/dist/{journeyDiagram-XKPGCS4Q-B3DoA1hV.js → journeyDiagram-XKPGCS4Q-D1BVNBwf.js} +4 -4
- package/dist/{kanban-definition-3W4ZIXB7-BB7pFEqD.js → kanban-definition-3W4ZIXB7-BDXKA_XK.js} +2 -2
- package/dist/layout-BNC3zfeD.js +1441 -0
- package/dist/{linear-aF-fWbWE.js → linear-OBE0x2u6.js} +23 -23
- package/dist/mermaid-NA5CF7SZ-B9gXYNLm.js +4 -0
- package/dist/{mermaid-parser.core-wI6AXMvA.js → mermaid-parser.core-CUvjhjKj.js} +6714 -5493
- package/dist/{mermaid.core-6385Tvmf.js → mermaid.core-CHxrqvgN.js} +91 -93
- package/dist/min-kNLlT3kq.js +38 -0
- package/dist/{mindmap-definition-VGOIOE7T-Dr0Wz6z2.js → mindmap-definition-VGOIOE7T-CBGhaVLO.js} +11 -11
- package/dist/{packet-BFZMPI3H-CzOOgCi0.js → packet-BFZMPI3H-BG07uiH4.js} +1 -1
- package/dist/pie-7BOR55EZ-B3dNUVzf.js +5 -0
- package/dist/{pieDiagram-ADFJNKIX-463eEngi.js → pieDiagram-ADFJNKIX-sQvicivm.js} +9 -9
- package/dist/{quadrantDiagram-AYHSOK5B-DjcuzUKG.js → quadrantDiagram-AYHSOK5B-CkiGHUhu.js} +2 -2
- package/dist/radar-NHE76QYJ-NsnUnvCz.js +5 -0
- package/dist/{requirementDiagram-UZGBJVZJ-BOwMO9Yw.js → requirementDiagram-UZGBJVZJ-DNjBL8qo.js} +3 -3
- package/dist/{sankeyDiagram-TZEHDZUN-DiBr8gMA.js → sankeyDiagram-TZEHDZUN-CMdHSmRX.js} +1 -1
- package/dist/{sequenceDiagram-WL72ISMW-D7yAl17W.js → sequenceDiagram-WL72ISMW-DMSMqtpw.js} +3 -3
- package/dist/{stateDiagram-FKZM4ZOC-DnEcctwl.js → stateDiagram-FKZM4ZOC-BzrNuizz.js} +4 -4
- package/dist/{stateDiagram-v2-4FDKWEC3-Bq6M2KMt.js → stateDiagram-v2-4FDKWEC3-Cor07J1O.js} +2 -2
- package/dist/{timeline-definition-IT6M3QCI-D6YQK2KN.js → timeline-definition-IT6M3QCI-CFzHWgCi.js} +2 -2
- package/dist/{treemap-KMMF4GRG-BOUeHarA.js → treemap-KMMF4GRG-kkYB2_ss.js} +1 -1
- package/dist/{xychartDiagram-PRI3JC2R-BkwgZVoW.js → xychartDiagram-PRI3JC2R-Bs8wzjBy.js} +2 -2
- package/package.json +2 -2
- package/dist/_basePickBy-DpiOpcu8.js +0 -151
- package/dist/_baseUniq-BP66E-mI.js +0 -614
- package/dist/graph-CFHilF1e.js +0 -247
- package/dist/info-NVLQJR56-gx-uQAKc.js +0 -5
- package/dist/layout-C6IuyfpS.js +0 -1335
- package/dist/mermaid-NA5CF7SZ-O4rdCQT5.js +0 -4
- package/dist/pie-7BOR55EZ-D9T5cFFp.js +0 -5
- package/dist/radar-NHE76QYJ-DOqzibGg.js +0 -5
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { _ as w, ar as F, as as Y, at as _, au as H, l as
|
|
2
|
-
import { G as B } from "./graph-
|
|
3
|
-
import { l as I } from "./layout-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { m as A } from "./_basePickBy-DpiOpcu8.js";
|
|
1
|
+
import { _ as w, ar as F, as as Y, at as _, au as H, l as i, c as V, av as z, aw as U, ag as $, al as q, ah as P, af as K, ax as Q, ay as W, az as Z } from "./mermaid.core-CHxrqvgN.js";
|
|
2
|
+
import { i as b, G as B } from "./graph-pMIG5nR2.js";
|
|
3
|
+
import { l as I } from "./layout-BNC3zfeD.js";
|
|
4
|
+
import { c as L } from "./clone-Duhsnio3.js";
|
|
5
|
+
import { m as A } from "./min-kNLlT3kq.js";
|
|
7
6
|
function h(e) {
|
|
8
7
|
var t = {
|
|
9
8
|
options: {
|
|
@@ -18,8 +17,8 @@ function h(e) {
|
|
|
18
17
|
}
|
|
19
18
|
function ee(e) {
|
|
20
19
|
return A(e.nodes(), function(t) {
|
|
21
|
-
var n = e.node(t), a = e.parent(t),
|
|
22
|
-
return b(n) || (
|
|
20
|
+
var n = e.node(t), a = e.parent(t), r = { v: t };
|
|
21
|
+
return b(n) || (r.value = n), b(a) || (r.parent = a), r;
|
|
23
22
|
});
|
|
24
23
|
}
|
|
25
24
|
function ne(e) {
|
|
@@ -32,12 +31,12 @@ var d = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), J = /* @__PURE
|
|
|
32
31
|
y.clear(), J.clear(), d.clear();
|
|
33
32
|
}, "clear"), D = /* @__PURE__ */ w((e, t) => {
|
|
34
33
|
const n = y.get(t) || [];
|
|
35
|
-
return
|
|
34
|
+
return i.trace("In isDescendant", t, " ", e, " = ", n.includes(e)), n.includes(e);
|
|
36
35
|
}, "isDescendant"), se = /* @__PURE__ */ w((e, t) => {
|
|
37
36
|
const n = y.get(t) || [];
|
|
38
|
-
return
|
|
37
|
+
return i.info("Descendants of ", t, " is ", n), i.info("Edge is ", e), e.v === t || e.w === t ? !1 : n ? n.includes(e.v) || D(e.v, t) || D(e.w, t) || n.includes(e.w) : (i.debug("Tilt, ", t, ",not in descendants"), !1);
|
|
39
38
|
}, "edgeInCluster"), G = /* @__PURE__ */ w((e, t, n, a) => {
|
|
40
|
-
|
|
39
|
+
i.warn(
|
|
41
40
|
"Copying children of ",
|
|
42
41
|
e,
|
|
43
42
|
"root",
|
|
@@ -46,13 +45,13 @@ var d = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), J = /* @__PURE
|
|
|
46
45
|
t.node(e),
|
|
47
46
|
a
|
|
48
47
|
);
|
|
49
|
-
const
|
|
50
|
-
e !== a &&
|
|
48
|
+
const r = t.children(e) || [];
|
|
49
|
+
e !== a && r.push(e), i.warn("Copying (nodes) clusterId", e, "nodes", r), r.forEach((o) => {
|
|
51
50
|
if (t.children(o).length > 0)
|
|
52
51
|
G(o, t, n, a);
|
|
53
52
|
else {
|
|
54
53
|
const l = t.node(o);
|
|
55
|
-
|
|
54
|
+
i.info("cp ", o, " to ", a, " with parent ", e), n.setNode(o, l), a !== t.parent(o) && (i.warn("Setting parent", o, t.parent(o)), n.setParent(o, t.parent(o))), e !== a && o !== e ? (i.debug("Setting parent", o, e), n.setParent(o, e)) : (i.info("In copy ", e, "root", a, "data", t.node(e), a), i.debug(
|
|
56
55
|
"Not Setting parent for node=",
|
|
57
56
|
o,
|
|
58
57
|
"cluster!==rootId",
|
|
@@ -61,12 +60,12 @@ var d = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), J = /* @__PURE
|
|
|
61
60
|
o !== e
|
|
62
61
|
));
|
|
63
62
|
const u = t.edges(o);
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
i.debug("Copying Edges", u), u.forEach((c) => {
|
|
64
|
+
i.info("Edge", c);
|
|
66
65
|
const m = t.edge(c.v, c.w, c.name);
|
|
67
|
-
|
|
66
|
+
i.info("Edge data", m, a);
|
|
68
67
|
try {
|
|
69
|
-
se(c, a) ? (
|
|
68
|
+
se(c, a) ? (i.info("Copying as ", c.v, c.w, m, c.name), n.setEdge(c.v, c.w, m, c.name), i.info("newGraph edges ", n.edges(), n.edge(n.edges()[0]))) : i.info(
|
|
70
69
|
"Skipping copy of edge ",
|
|
71
70
|
c.v,
|
|
72
71
|
"-->",
|
|
@@ -77,64 +76,64 @@ var d = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), J = /* @__PURE
|
|
|
77
76
|
e
|
|
78
77
|
);
|
|
79
78
|
} catch (v) {
|
|
80
|
-
|
|
79
|
+
i.error(v);
|
|
81
80
|
}
|
|
82
81
|
});
|
|
83
82
|
}
|
|
84
|
-
|
|
83
|
+
i.debug("Removing node", o), t.removeNode(o);
|
|
85
84
|
});
|
|
86
85
|
}, "copy"), R = /* @__PURE__ */ w((e, t) => {
|
|
87
86
|
const n = t.children(e);
|
|
88
87
|
let a = [...n];
|
|
89
|
-
for (const
|
|
90
|
-
J.set(
|
|
88
|
+
for (const r of n)
|
|
89
|
+
J.set(r, e), a = [...a, ...R(r, t)];
|
|
91
90
|
return a;
|
|
92
|
-
}, "extractDescendants"),
|
|
93
|
-
const a = e.edges().filter((c) => c.v === t || c.w === t),
|
|
91
|
+
}, "extractDescendants"), ie = /* @__PURE__ */ w((e, t, n) => {
|
|
92
|
+
const a = e.edges().filter((c) => c.v === t || c.w === t), r = e.edges().filter((c) => c.v === n || c.w === n), o = a.map((c) => ({ v: c.v === t ? n : c.v, w: c.w === t ? t : c.w })), l = r.map((c) => ({ v: c.v, w: c.w }));
|
|
94
93
|
return o.filter((c) => l.some((m) => c.v === m.v && c.w === m.w));
|
|
95
94
|
}, "findCommonEdges"), C = /* @__PURE__ */ w((e, t, n) => {
|
|
96
95
|
const a = t.children(e);
|
|
97
|
-
if (
|
|
96
|
+
if (i.trace("Searching children of id ", e, a), a.length < 1)
|
|
98
97
|
return e;
|
|
99
|
-
let
|
|
98
|
+
let r;
|
|
100
99
|
for (const o of a) {
|
|
101
|
-
const l = C(o, t, n), u =
|
|
100
|
+
const l = C(o, t, n), u = ie(t, n, l);
|
|
102
101
|
if (l)
|
|
103
102
|
if (u.length > 0)
|
|
104
|
-
|
|
103
|
+
r = l;
|
|
105
104
|
else
|
|
106
105
|
return l;
|
|
107
106
|
}
|
|
108
|
-
return
|
|
109
|
-
}, "findNonClusterChild"), k = /* @__PURE__ */ w((e) => !d.has(e) || !d.get(e).externalConnections ? e : d.has(e) ? d.get(e).id : e, "getAnchorId"),
|
|
107
|
+
return r;
|
|
108
|
+
}, "findNonClusterChild"), k = /* @__PURE__ */ w((e) => !d.has(e) || !d.get(e).externalConnections ? e : d.has(e) ? d.get(e).id : e, "getAnchorId"), re = /* @__PURE__ */ w((e, t) => {
|
|
110
109
|
if (!e || t > 10) {
|
|
111
|
-
|
|
110
|
+
i.debug("Opting out, no graph ");
|
|
112
111
|
return;
|
|
113
112
|
} else
|
|
114
|
-
|
|
113
|
+
i.debug("Opting in, graph ");
|
|
115
114
|
e.nodes().forEach(function(n) {
|
|
116
|
-
e.children(n).length > 0 && (
|
|
115
|
+
e.children(n).length > 0 && (i.warn(
|
|
117
116
|
"Cluster identified",
|
|
118
117
|
n,
|
|
119
118
|
" Replacement id in edges: ",
|
|
120
119
|
C(n, e, n)
|
|
121
120
|
), y.set(n, R(n, e)), d.set(n, { id: C(n, e, n), clusterData: e.node(n) }));
|
|
122
121
|
}), e.nodes().forEach(function(n) {
|
|
123
|
-
const a = e.children(n),
|
|
124
|
-
a.length > 0 ? (
|
|
122
|
+
const a = e.children(n), r = e.edges();
|
|
123
|
+
a.length > 0 ? (i.debug("Cluster identified", n, y), r.forEach((o) => {
|
|
125
124
|
const l = D(o.v, n), u = D(o.w, n);
|
|
126
|
-
l ^ u && (
|
|
127
|
-
})) :
|
|
125
|
+
l ^ u && (i.warn("Edge: ", o, " leaves cluster ", n), i.warn("Descendants of XXX ", n, ": ", y.get(n)), d.get(n).externalConnections = !0);
|
|
126
|
+
})) : i.debug("Not a cluster ", n, y);
|
|
128
127
|
});
|
|
129
128
|
for (let n of d.keys()) {
|
|
130
|
-
const a = d.get(n).id,
|
|
131
|
-
|
|
129
|
+
const a = d.get(n).id, r = e.parent(a);
|
|
130
|
+
r !== n && d.has(r) && !d.get(r).externalConnections && (d.get(n).id = r);
|
|
132
131
|
}
|
|
133
132
|
e.edges().forEach(function(n) {
|
|
134
133
|
const a = e.edge(n);
|
|
135
|
-
|
|
136
|
-
let
|
|
137
|
-
if (
|
|
134
|
+
i.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(n)), i.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(e.edge(n)));
|
|
135
|
+
let r = n.v, o = n.w;
|
|
136
|
+
if (i.warn(
|
|
138
137
|
"Fix XXX",
|
|
139
138
|
d,
|
|
140
139
|
"ids:",
|
|
@@ -145,53 +144,53 @@ var d = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), J = /* @__PURE
|
|
|
145
144
|
" --- ",
|
|
146
145
|
d.get(n.w)
|
|
147
146
|
), d.get(n.v) || d.get(n.w)) {
|
|
148
|
-
if (
|
|
149
|
-
const l = e.parent(
|
|
147
|
+
if (i.warn("Fixing and trying - removing XXX", n.v, n.w, n.name), r = k(n.v), o = k(n.w), e.removeEdge(n.v, n.w, n.name), r !== n.v) {
|
|
148
|
+
const l = e.parent(r);
|
|
150
149
|
d.get(l).externalConnections = !0, a.fromCluster = n.v;
|
|
151
150
|
}
|
|
152
151
|
if (o !== n.w) {
|
|
153
152
|
const l = e.parent(o);
|
|
154
153
|
d.get(l).externalConnections = !0, a.toCluster = n.w;
|
|
155
154
|
}
|
|
156
|
-
|
|
155
|
+
i.warn("Fix Replacing with XXX", r, o, n.name), e.setEdge(r, o, a, n.name);
|
|
157
156
|
}
|
|
158
|
-
}),
|
|
157
|
+
}), i.warn("Adjusted Graph", h(e)), T(e, 0), i.trace(d);
|
|
159
158
|
}, "adjustClustersAndEdges"), T = /* @__PURE__ */ w((e, t) => {
|
|
160
|
-
if (
|
|
161
|
-
|
|
159
|
+
if (i.warn("extractor - ", t, h(e), e.children("D")), t > 10) {
|
|
160
|
+
i.error("Bailing out");
|
|
162
161
|
return;
|
|
163
162
|
}
|
|
164
163
|
let n = e.nodes(), a = !1;
|
|
165
|
-
for (const
|
|
166
|
-
const o = e.children(
|
|
164
|
+
for (const r of n) {
|
|
165
|
+
const o = e.children(r);
|
|
167
166
|
a = a || o.length > 0;
|
|
168
167
|
}
|
|
169
168
|
if (!a) {
|
|
170
|
-
|
|
169
|
+
i.debug("Done, no node has children", e.nodes());
|
|
171
170
|
return;
|
|
172
171
|
}
|
|
173
|
-
|
|
174
|
-
for (const
|
|
175
|
-
if (
|
|
172
|
+
i.debug("Nodes = ", n, t);
|
|
173
|
+
for (const r of n)
|
|
174
|
+
if (i.debug(
|
|
176
175
|
"Extracting node",
|
|
177
|
-
|
|
176
|
+
r,
|
|
178
177
|
d,
|
|
179
|
-
d.has(
|
|
180
|
-
!e.parent(
|
|
181
|
-
e.node(
|
|
178
|
+
d.has(r) && !d.get(r).externalConnections,
|
|
179
|
+
!e.parent(r),
|
|
180
|
+
e.node(r),
|
|
182
181
|
e.children("D"),
|
|
183
182
|
" Depth ",
|
|
184
183
|
t
|
|
185
|
-
), !d.has(
|
|
186
|
-
|
|
187
|
-
else if (!d.get(
|
|
188
|
-
|
|
184
|
+
), !d.has(r))
|
|
185
|
+
i.debug("Not a cluster", r, t);
|
|
186
|
+
else if (!d.get(r).externalConnections && e.children(r) && e.children(r).length > 0) {
|
|
187
|
+
i.warn(
|
|
189
188
|
"Cluster without external connections, without a parent and with children",
|
|
190
|
-
|
|
189
|
+
r,
|
|
191
190
|
t
|
|
192
191
|
);
|
|
193
192
|
let l = e.graph().rankdir === "TB" ? "LR" : "TB";
|
|
194
|
-
d.get(
|
|
193
|
+
d.get(r)?.clusterData?.dir && (l = d.get(r).clusterData.dir, i.warn("Fixing dir", d.get(r).clusterData.dir, l));
|
|
195
194
|
const u = new B({
|
|
196
195
|
multigraph: !0,
|
|
197
196
|
compound: !0
|
|
@@ -204,52 +203,52 @@ var d = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), J = /* @__PURE
|
|
|
204
203
|
}).setDefaultEdgeLabel(function() {
|
|
205
204
|
return {};
|
|
206
205
|
});
|
|
207
|
-
|
|
206
|
+
i.warn("Old graph before copy", h(e)), G(r, e, u, r), e.setNode(r, {
|
|
208
207
|
clusterNode: !0,
|
|
209
|
-
id:
|
|
210
|
-
clusterData: d.get(
|
|
211
|
-
label: d.get(
|
|
208
|
+
id: r,
|
|
209
|
+
clusterData: d.get(r).clusterData,
|
|
210
|
+
label: d.get(r).label,
|
|
212
211
|
graph: u
|
|
213
|
-
}),
|
|
212
|
+
}), i.warn("New graph after copy node: (", r, ")", h(u)), i.debug("Old graph after copy", h(e));
|
|
214
213
|
} else
|
|
215
|
-
|
|
214
|
+
i.warn(
|
|
216
215
|
"Cluster ** ",
|
|
217
|
-
|
|
216
|
+
r,
|
|
218
217
|
" **not meeting the criteria !externalConnections:",
|
|
219
|
-
!d.get(
|
|
218
|
+
!d.get(r).externalConnections,
|
|
220
219
|
" no parent: ",
|
|
221
|
-
!e.parent(
|
|
220
|
+
!e.parent(r),
|
|
222
221
|
" children ",
|
|
223
|
-
e.children(
|
|
222
|
+
e.children(r) && e.children(r).length > 0,
|
|
224
223
|
e.children("D"),
|
|
225
224
|
t
|
|
226
|
-
),
|
|
227
|
-
n = e.nodes(),
|
|
228
|
-
for (const
|
|
229
|
-
const o = e.node(
|
|
230
|
-
|
|
225
|
+
), i.debug(d);
|
|
226
|
+
n = e.nodes(), i.warn("New list of nodes", n);
|
|
227
|
+
for (const r of n) {
|
|
228
|
+
const o = e.node(r);
|
|
229
|
+
i.warn(" Now next level", r, o), o?.clusterNode && T(o.graph, t + 1);
|
|
231
230
|
}
|
|
232
231
|
}, "extractor"), M = /* @__PURE__ */ w((e, t) => {
|
|
233
232
|
if (t.length === 0)
|
|
234
233
|
return [];
|
|
235
234
|
let n = Object.assign([], t);
|
|
236
235
|
return t.forEach((a) => {
|
|
237
|
-
const
|
|
236
|
+
const r = e.children(a), o = M(e, r);
|
|
238
237
|
n = [...n, ...o];
|
|
239
238
|
}), n;
|
|
240
|
-
}, "sorter"), oe = /* @__PURE__ */ w((e) => M(e, e.children()), "sortNodesByHierarchy"), j = /* @__PURE__ */ w(async (e, t, n, a,
|
|
241
|
-
|
|
239
|
+
}, "sorter"), oe = /* @__PURE__ */ w((e) => M(e, e.children()), "sortNodesByHierarchy"), j = /* @__PURE__ */ w(async (e, t, n, a, r, o) => {
|
|
240
|
+
i.warn("Graph in recursive render:XAX", h(t), r);
|
|
242
241
|
const l = t.graph().rankdir;
|
|
243
|
-
|
|
242
|
+
i.trace("Dir in recursive render - dir:", l);
|
|
244
243
|
const u = e.insert("g").attr("class", "root");
|
|
245
|
-
t.nodes() ?
|
|
244
|
+
t.nodes() ? i.info("Recursive render XXX", t.nodes()) : i.info("No nodes found for", t), t.edges().length > 0 && i.info("Recursive edges", t.edge(t.edges()[0]));
|
|
246
245
|
const c = u.insert("g").attr("class", "clusters"), m = u.insert("g").attr("class", "edgePaths"), v = u.insert("g").attr("class", "edgeLabels"), X = u.insert("g").attr("class", "nodes");
|
|
247
246
|
await Promise.all(
|
|
248
247
|
t.nodes().map(async function(f) {
|
|
249
248
|
const s = t.node(f);
|
|
250
|
-
if (
|
|
251
|
-
const g = JSON.parse(JSON.stringify(
|
|
252
|
-
|
|
249
|
+
if (r !== void 0) {
|
|
250
|
+
const g = JSON.parse(JSON.stringify(r.clusterData));
|
|
251
|
+
i.trace(
|
|
253
252
|
`Setting data for parent cluster XXX
|
|
254
253
|
Node.id = `,
|
|
255
254
|
f,
|
|
@@ -258,11 +257,11 @@ var d = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), J = /* @__PURE
|
|
|
258
257
|
g.height,
|
|
259
258
|
`
|
|
260
259
|
Parent cluster`,
|
|
261
|
-
|
|
262
|
-
), t.setNode(
|
|
260
|
+
r.height
|
|
261
|
+
), t.setNode(r.id, g), t.parent(f) || (i.trace("Setting parent", f, r.id), t.setParent(f, r.id, g));
|
|
263
262
|
}
|
|
264
|
-
if (
|
|
265
|
-
|
|
263
|
+
if (i.info("(Insert) Node XXX" + f + ": " + JSON.stringify(t.node(f))), s?.clusterNode) {
|
|
264
|
+
i.info("Cluster identified XBX", f, s.width, t.node(f));
|
|
266
265
|
const { ranksep: g, nodesep: E } = t.graph();
|
|
267
266
|
s.graph.setGraph({
|
|
268
267
|
...s.graph.graph(),
|
|
@@ -277,7 +276,7 @@ Parent cluster`,
|
|
|
277
276
|
t.node(f),
|
|
278
277
|
o
|
|
279
278
|
), x = N.elem;
|
|
280
|
-
z(s, x), s.diff = N.diff || 0,
|
|
279
|
+
z(s, x), s.diff = N.diff || 0, i.info(
|
|
281
280
|
"New compound node after recursive render XAX",
|
|
282
281
|
f,
|
|
283
282
|
"width",
|
|
@@ -289,7 +288,7 @@ Parent cluster`,
|
|
|
289
288
|
// node.y
|
|
290
289
|
), U(x, s);
|
|
291
290
|
} else
|
|
292
|
-
t.children(f).length > 0 ? (
|
|
291
|
+
t.children(f).length > 0 ? (i.trace(
|
|
293
292
|
"Cluster - the non recursive path XBX",
|
|
294
293
|
f,
|
|
295
294
|
s.id,
|
|
@@ -297,12 +296,12 @@ Parent cluster`,
|
|
|
297
296
|
s.width,
|
|
298
297
|
"Graph:",
|
|
299
298
|
t
|
|
300
|
-
),
|
|
299
|
+
), i.trace(C(s.id, t)), d.set(s.id, { id: C(s.id, t), node: s })) : (i.trace("Node - the non recursive path XAX", f, X, t.node(f), l), await $(X, t.node(f), { config: o, dir: l }));
|
|
301
300
|
})
|
|
302
301
|
), await (/* @__PURE__ */ w(async () => {
|
|
303
302
|
const f = t.edges().map(async function(s) {
|
|
304
303
|
const g = t.edge(s.v, s.w, s.name);
|
|
305
|
-
|
|
304
|
+
i.info("Edge " + s.v + " -> " + s.w + ": " + JSON.stringify(s)), i.info("Edge " + s.v + " -> " + s.w + ": ", s, " ", JSON.stringify(t.edge(s))), i.info(
|
|
306
305
|
"Fix",
|
|
307
306
|
d,
|
|
308
307
|
"ids:",
|
|
@@ -314,12 +313,12 @@ Parent cluster`,
|
|
|
314
313
|
), await Z(v, g);
|
|
315
314
|
});
|
|
316
315
|
await Promise.all(f);
|
|
317
|
-
}, "processEdges"))(),
|
|
316
|
+
}, "processEdges"))(), i.info("Graph before layout:", JSON.stringify(h(t))), i.info("############################################# XXX"), i.info("### Layout ### XXX"), i.info("############################################# XXX"), I(t), i.info("Graph after layout:", JSON.stringify(h(t)));
|
|
318
317
|
let O = 0, { subGraphTitleTotalMargin: S } = q(o);
|
|
319
318
|
return await Promise.all(
|
|
320
319
|
oe(t).map(async function(f) {
|
|
321
320
|
const s = t.node(f);
|
|
322
|
-
if (
|
|
321
|
+
if (i.info(
|
|
323
322
|
"Position XBX => " + f + ": (" + s.x,
|
|
324
323
|
"," + s.y,
|
|
325
324
|
") width: ",
|
|
@@ -327,7 +326,7 @@ Parent cluster`,
|
|
|
327
326
|
" height: ",
|
|
328
327
|
s.height
|
|
329
328
|
), s?.clusterNode)
|
|
330
|
-
s.y += S,
|
|
329
|
+
s.y += S, i.info(
|
|
331
330
|
"A tainted cluster node XBX1",
|
|
332
331
|
f,
|
|
333
332
|
s.id,
|
|
@@ -338,7 +337,7 @@ Parent cluster`,
|
|
|
338
337
|
t.parent(f)
|
|
339
338
|
), d.get(s.id).node = s, P(s);
|
|
340
339
|
else if (t.children(f).length > 0) {
|
|
341
|
-
|
|
340
|
+
i.info(
|
|
342
341
|
"A pure cluster node XBX1",
|
|
343
342
|
f,
|
|
344
343
|
s.id,
|
|
@@ -349,10 +348,10 @@ Parent cluster`,
|
|
|
349
348
|
t.parent(f)
|
|
350
349
|
), s.height += S, t.node(s.parentId);
|
|
351
350
|
const g = s?.padding / 2 || 0, E = s?.labelBBox?.height || 0, N = E - g || 0;
|
|
352
|
-
|
|
351
|
+
i.debug("OffsetY", N, "labelHeight", E, "halfPadding", g), await K(c, s), d.get(s.id).node = s;
|
|
353
352
|
} else {
|
|
354
353
|
const g = t.node(s.parentId);
|
|
355
|
-
s.y += S / 2,
|
|
354
|
+
s.y += S / 2, i.info(
|
|
356
355
|
"A regular node XBX1 - using the padding",
|
|
357
356
|
s.id,
|
|
358
357
|
"parent",
|
|
@@ -372,16 +371,16 @@ Parent cluster`,
|
|
|
372
371
|
})
|
|
373
372
|
), t.edges().forEach(function(f) {
|
|
374
373
|
const s = t.edge(f);
|
|
375
|
-
|
|
374
|
+
i.info("Edge " + f.v + " -> " + f.w + ": " + JSON.stringify(s), s), s.points.forEach((x) => x.y += S / 2);
|
|
376
375
|
const g = t.node(f.v);
|
|
377
376
|
var E = t.node(f.w);
|
|
378
377
|
const N = Q(m, s, d, n, g, E, a);
|
|
379
378
|
W(s, N);
|
|
380
379
|
}), t.nodes().forEach(function(f) {
|
|
381
380
|
const s = t.node(f);
|
|
382
|
-
|
|
383
|
-
}),
|
|
384
|
-
}, "recursiveRender"),
|
|
381
|
+
i.info(f, s.type, s.diff), s.isGroup && (O = s.diff);
|
|
382
|
+
}), i.warn("Returning from recursive render XAX", u, O), { elem: u, diff: O };
|
|
383
|
+
}, "recursiveRender"), ue = /* @__PURE__ */ w(async (e, t) => {
|
|
385
384
|
const n = new B({
|
|
386
385
|
multigraph: !0,
|
|
387
386
|
compound: !0
|
|
@@ -396,7 +395,7 @@ Parent cluster`,
|
|
|
396
395
|
}), a = t.select("g");
|
|
397
396
|
F(a, e.markers, e.type, e.diagramId), Y(), _(), H(), te(), e.nodes.forEach((o) => {
|
|
398
397
|
n.setNode(o.id, { ...o }), o.parentId && n.setParent(o.id, o.parentId);
|
|
399
|
-
}),
|
|
398
|
+
}), i.debug("Edges:", e.edges), e.edges.forEach((o) => {
|
|
400
399
|
if (o.start === o.end) {
|
|
401
400
|
const l = o.start, u = l + "---" + l + "---1", c = l + "---" + l + "---2", m = n.node(l);
|
|
402
401
|
n.setNode(u, {
|
|
@@ -428,17 +427,17 @@ Parent cluster`,
|
|
|
428
427
|
v.label = "", v.arrowTypeEnd = "none", v.id = l + "-cyclic-special-1", X.arrowTypeStart = "none", X.arrowTypeEnd = "none", X.id = l + "-cyclic-special-mid", p.label = "", m.isGroup && (v.fromCluster = l, p.toCluster = l), p.id = l + "-cyclic-special-2", p.arrowTypeStart = "none", n.setEdge(l, u, v, l + "-cyclic-special-0"), n.setEdge(u, c, X, l + "-cyclic-special-1"), n.setEdge(c, l, p, l + "-cyc<lic-special-2");
|
|
429
428
|
} else
|
|
430
429
|
n.setEdge(o.start, o.end, { ...o }, o.id);
|
|
431
|
-
}),
|
|
432
|
-
const
|
|
430
|
+
}), i.warn("Graph at first:", JSON.stringify(h(n))), re(n), i.warn("Graph after XAX:", JSON.stringify(h(n)));
|
|
431
|
+
const r = V();
|
|
433
432
|
await j(
|
|
434
433
|
a,
|
|
435
434
|
n,
|
|
436
435
|
e.type,
|
|
437
436
|
e.diagramId,
|
|
438
437
|
void 0,
|
|
439
|
-
|
|
438
|
+
r
|
|
440
439
|
);
|
|
441
440
|
}, "render");
|
|
442
441
|
export {
|
|
443
|
-
|
|
442
|
+
ue as render
|
|
444
443
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as w, D as te, E as ae, H as he, e as ue, l as K,
|
|
2
|
-
import { s as we } from "./chunk-QN33PNHL-
|
|
3
|
-
import { p as Ce } from "./chunk-4BX2VUAB-
|
|
4
|
-
import { p as Te } from "./mermaid-parser.core-
|
|
1
|
+
import { _ as w, D as te, E as ae, H as he, e as ue, l as K, b8 as P, d as Y, b as pe, a as fe, p as ge, q as me, g as ye, s as Se, F as ve, b9 as xe, y as be } from "./mermaid.core-CHxrqvgN.js";
|
|
2
|
+
import { s as we } from "./chunk-QN33PNHL-wY4Ezg3J.js";
|
|
3
|
+
import { p as Ce } from "./chunk-4BX2VUAB-QlwpQ37g.js";
|
|
4
|
+
import { p as Te } from "./mermaid-parser.core-CUvjhjKj.js";
|
|
5
5
|
import { b as O } from "./defaultLocale-D7EN2tov.js";
|
|
6
6
|
import { o as J } from "./ordinal-DfAQgscy.js";
|
|
7
7
|
function Le(t) {
|
|
@@ -97,10 +97,10 @@ function* Re() {
|
|
|
97
97
|
}
|
|
98
98
|
function Q(t, a) {
|
|
99
99
|
t instanceof Map ? (t = [void 0, t], a === void 0 && (a = Ie)) : a === void 0 && (a = He);
|
|
100
|
-
for (var l = new
|
|
100
|
+
for (var l = new U(t), n, o = [l], s, d, h, g; n = o.pop(); )
|
|
101
101
|
if ((d = a(n.data)) && (g = (d = Array.from(d)).length))
|
|
102
102
|
for (n.children = d, h = g - 1; h >= 0; --h)
|
|
103
|
-
o.push(s = d[h] = new
|
|
103
|
+
o.push(s = d[h] = new U(d[h])), s.parent = n, s.depth = n.depth + 1;
|
|
104
104
|
return l.eachBefore(qe);
|
|
105
105
|
}
|
|
106
106
|
function We() {
|
|
@@ -121,11 +121,11 @@ function qe(t) {
|
|
|
121
121
|
t.height = a;
|
|
122
122
|
while ((t = t.parent) && t.height < ++a);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function U(t) {
|
|
125
125
|
this.data = t, this.depth = this.height = 0, this.parent = null;
|
|
126
126
|
}
|
|
127
|
-
|
|
128
|
-
constructor:
|
|
127
|
+
U.prototype = Q.prototype = {
|
|
128
|
+
constructor: U,
|
|
129
129
|
count: $e,
|
|
130
130
|
each: Ae,
|
|
131
131
|
eachAfter: ke,
|
|
@@ -164,8 +164,8 @@ function Ye(t, a, l, n, o) {
|
|
|
164
164
|
for (var s = t.children, d, h = -1, g = s.length, c = t.value && (o - l) / t.value; ++h < g; )
|
|
165
165
|
d = s[h], d.x0 = a, d.x1 = n, d.y0 = l, d.y1 = l += d.value * c;
|
|
166
166
|
}
|
|
167
|
-
var
|
|
168
|
-
function
|
|
167
|
+
var Ue = (1 + Math.sqrt(5)) / 2;
|
|
168
|
+
function Ze(t, a, l, n, o, s) {
|
|
169
169
|
for (var d = [], h = a.children, g, c, u = 0, b = 0, r = h.length, x, S, v = a.value, p, m, N, k, V, R, M; u < r; ) {
|
|
170
170
|
x = o - l, S = s - n;
|
|
171
171
|
do
|
|
@@ -184,12 +184,12 @@ function Ue(t, a, l, n, o, s) {
|
|
|
184
184
|
}
|
|
185
185
|
const Je = (function t(a) {
|
|
186
186
|
function l(n, o, s, d, h) {
|
|
187
|
-
|
|
187
|
+
Ze(a, n, o, s, d, h);
|
|
188
188
|
}
|
|
189
189
|
return l.ratio = function(n) {
|
|
190
190
|
return t((n = +n) > 1 ? n : 1);
|
|
191
191
|
}, l;
|
|
192
|
-
})(
|
|
192
|
+
})(Ue);
|
|
193
193
|
function Ke() {
|
|
194
194
|
var t = Je, a = !1, l = 1, n = 1, o = [0], s = q, d = q, h = q, g = q, c = q;
|
|
195
195
|
function u(r) {
|
|
@@ -440,12 +440,12 @@ var Qe = /* @__PURE__ */ w((t, a) => {
|
|
|
440
440
|
let I = Math.max(
|
|
441
441
|
z,
|
|
442
442
|
Math.min(F, Math.round(y * T))
|
|
443
|
-
),
|
|
444
|
-
for (;
|
|
443
|
+
), Z = y + H + I;
|
|
444
|
+
for (; Z > A && y > _ && (y--, I = Math.max(
|
|
445
445
|
z,
|
|
446
446
|
Math.min(F, Math.round(y * T))
|
|
447
447
|
), !(I < z && y === _)); )
|
|
448
|
-
i.style("font-size", `${y}px`),
|
|
448
|
+
i.style("font-size", `${y}px`), Z = y + H + I;
|
|
449
449
|
i.style("font-size", `${y}px`), (L.getComputedTextLength() > D || y < _ || A < y) && i.style("display", "none");
|
|
450
450
|
}), s.showValues !== !1 && j.append("text").attr("class", "treemapValue").attr("x", (i) => (i.x1 - i.x0) / 2).attr("y", function(i) {
|
|
451
451
|
return (i.y1 - i.y0) / 2;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as l, s as k, g as R, q as E, p as F, a as I, b as _, H as D, y as G, D as f, E as C, F as P, l as z, K as H } from "./mermaid.core-
|
|
2
|
-
import { p as V } from "./chunk-4BX2VUAB-
|
|
3
|
-
import { p as W } from "./mermaid-parser.core-
|
|
1
|
+
import { _ as l, s as k, g as R, q as E, p as F, a as I, b as _, H as D, y as G, D as f, E as C, F as P, l as z, K as H } from "./mermaid.core-CHxrqvgN.js";
|
|
2
|
+
import { p as V } from "./chunk-4BX2VUAB-QlwpQ37g.js";
|
|
3
|
+
import { p as W } from "./mermaid-parser.core-CUvjhjKj.js";
|
|
4
4
|
var x = {
|
|
5
5
|
showLegend: !0,
|
|
6
6
|
ticks: 5,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as b, D as m, H as B, e as C, l as w, b as S, a as D, p as T, q as E, g as F, s as P, E as z, F as A, y as W } from "./mermaid.core-
|
|
2
|
-
import { p as _ } from "./chunk-4BX2VUAB-
|
|
3
|
-
import { p as N } from "./mermaid-parser.core-
|
|
1
|
+
import { _ as b, D as m, H as B, e as C, l as w, b as S, a as D, p as T, q as E, g as F, s as P, E as z, F as A, y as W } from "./mermaid.core-CHxrqvgN.js";
|
|
2
|
+
import { p as _ } from "./chunk-4BX2VUAB-QlwpQ37g.js";
|
|
3
|
+
import { p as N } from "./mermaid-parser.core-CUvjhjKj.js";
|
|
4
4
|
var L = A.packet, u, v = (u = class {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.packet = [], this.setAccTitle = S, this.getAccTitle = D, this.setDiagramTitle = T, this.getDiagramTitle = E, this.getAccDescription = F, this.setAccDescription = P;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as Dt } from "./chunk-55IACEB6-
|
|
2
|
-
import { s as wt } from "./chunk-QN33PNHL-
|
|
3
|
-
import { _ as u, b as Vt, a as Lt, s as Mt, g as Bt, p as Ft, q as Yt, c as tt, l as D, y as Pt, x as zt, A as Gt, B as Kt, o as Zt, r as Ut, d as jt, u as Wt } from "./mermaid.core-
|
|
4
|
-
import { c as Qt } from "./channel-
|
|
1
|
+
import { g as Dt } from "./chunk-55IACEB6-DgsusDqn.js";
|
|
2
|
+
import { s as wt } from "./chunk-QN33PNHL-wY4Ezg3J.js";
|
|
3
|
+
import { _ as u, b as Vt, a as Lt, s as Mt, g as Bt, p as Ft, q as Yt, c as tt, l as D, y as Pt, x as zt, A as Gt, B as Kt, o as Zt, r as Ut, d as jt, u as Wt } from "./mermaid.core-CHxrqvgN.js";
|
|
4
|
+
import { c as Qt } from "./channel-DZUw4Jym.js";
|
|
5
5
|
var dt = (function() {
|
|
6
6
|
var s = /* @__PURE__ */ u(function(R, n, a, c) {
|
|
7
7
|
for (a = a || {}, c = R.length; c--; a[R[c]] = n) ;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as a, q as o, l as i, e as r, m as n, p as S, i as t, o as l, n as m, r as d } from "./index-
|
|
1
|
+
import { A as a, q as o, l as i, e as r, m as n, p as S, i as t, o as l, n as m, r as d } from "./index-C0i3yfGY.js";
|
|
2
2
|
export {
|
|
3
3
|
a as AgKitChat,
|
|
4
4
|
o as AgentSelector,
|