@ucap-llm/ai-ui 1.1.13 → 1.1.15
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/_basePickBy-DMehTBs0-8955b30b.mjs +151 -0
- package/_basePickBy-e7598e72.mjs +153 -0
- package/{_baseUniq-2bcae05e.mjs → _baseUniq-8cd7fbc4.mjs} +150 -150
- package/_baseUniq-DPnX6tpB-5eb6efbd.mjs +615 -0
- package/ai-ui.es.js +9 -8
- package/ai-ui.umd.js +3425 -923
- package/arc-8909f880.mjs +85 -0
- package/arc-qimaJRLH-591a6072.mjs +85 -0
- package/architecture-4AB2E3PP-DFmEpUnA-62fe65dd.mjs +10 -0
- package/architecture-4AB2E3PP-b04ae9dd.mjs +10 -0
- package/{architectureDiagram-IEHRJDOE-e4684ef3.mjs → architectureDiagram-IEHRJDOE-1ccc2c64.mjs} +123 -123
- package/architectureDiagram-IEHRJDOE-BRVAVUEE-c068faae.mjs +4641 -0
- package/{blockDiagram-JOT3LUYC-504ee31e.mjs → blockDiagram-JOT3LUYC-63569de5.mjs} +5 -5
- package/blockDiagram-JOT3LUYC-Cs4tSRey-54d8e29b.mjs +2251 -0
- package/{c4Diagram-VJAJSXHY-c5ba6af4.mjs → c4Diagram-VJAJSXHY-355a4170.mjs} +23 -23
- package/c4Diagram-VJAJSXHY-C3F9fO0L-0df97cd8.mjs +1583 -0
- package/channel-CuHzivgY-bb3d765a.mjs +5 -0
- package/channel-a1f4f18c.mjs +5 -0
- package/{chunk-4BMEZGHF-8d9a2e4f.mjs → chunk-4BMEZGHF-705995af.mjs} +1 -1
- package/chunk-4BMEZGHF-btTOjzEX-c9c5432c.mjs +9 -0
- package/{chunk-A2AXSNBT-41ae29f2.mjs → chunk-A2AXSNBT-3a857566.mjs} +10 -10
- package/chunk-A2AXSNBT-CPBZRsS7-a80df701.mjs +1373 -0
- package/{chunk-AEK57VVT-69e121d6.mjs → chunk-AEK57VVT-6c60e1ee.mjs} +45 -45
- package/chunk-AEK57VVT-D62Iwyam-238a3d85.mjs +1361 -0
- package/{chunk-D6G4REZN-472adc5b.mjs → chunk-D6G4REZN-11c52918.mjs} +5 -5
- package/chunk-D6G4REZN-HlFmQTJy-20704636.mjs +64 -0
- package/chunk-RZ5BOZE2-DIFgOqDt-495bec03.mjs +24 -0
- package/{chunk-RZ5BOZE2-b7d5d4f5.mjs → chunk-RZ5BOZE2-d6db8103.mjs} +9 -9
- package/chunk-XZIHB7SX-CCrbsG0u-f30e4124.mjs +15 -0
- package/{chunk-XZIHB7SX-56c08d07.mjs → chunk-XZIHB7SX-fafd3ca2.mjs} +1 -1
- package/classDiagram-GIVACNV2-Bv5U0XPL-622b22ed.mjs +18 -0
- package/{classDiagram-v2-COTLJTTW-1deea5cc.mjs → classDiagram-GIVACNV2-eca9aeb6.mjs} +5 -5
- package/classDiagram-v2-COTLJTTW-Bv5U0XPL-622b22ed.mjs +18 -0
- package/{classDiagram-GIVACNV2-1deea5cc.mjs → classDiagram-v2-COTLJTTW-eca9aeb6.mjs} +5 -5
- package/{clone-1f18a17f.mjs → clone-327a1426.mjs} +1 -1
- package/clone-Csc9uFbU-6c4f28bd.mjs +8 -0
- package/cytoscape.esm-Swd9B-1A-3101f241.mjs +18730 -0
- package/{dagre-OKDRZEBW-74e73dcf.mjs → dagre-OKDRZEBW-9059bb36.mjs} +81 -81
- package/dagre-OKDRZEBW-CoMQYlxF-96274fb0.mjs +448 -0
- package/{diagram-SSKATNLV-1a562cb0.mjs → diagram-SSKATNLV-70f68e72.mjs} +34 -34
- package/diagram-SSKATNLV-CPuZUaGP-50edcaa0.mjs +225 -0
- package/{diagram-VNBRO52H-b765e46f.mjs → diagram-VNBRO52H-39273710.mjs} +35 -35
- package/diagram-VNBRO52H-DIIZ-Sll-969266e6.mjs +130 -0
- package/{erDiagram-Q7BY3M3F-022c4343.mjs → erDiagram-Q7BY3M3F-96ba3906.mjs} +3 -3
- package/erDiagram-Q7BY3M3F-ZKWAM_uE-41c0350d.mjs +843 -0
- package/{flowDiagram-4HSFHLVR-6036e284.mjs → flowDiagram-4HSFHLVR-795e3830.mjs} +29 -29
- package/flowDiagram-4HSFHLVR-CUJXGEG3-801dde13.mjs +1624 -0
- package/{ganttDiagram-APWFNJXF-be871387.mjs → ganttDiagram-APWFNJXF-736e67b6.mjs} +398 -398
- package/ganttDiagram-APWFNJXF-C1pgubbs-20beffc3.mjs +2527 -0
- package/gitGraph-O2Q2CXLX-00465db9.mjs +10 -0
- package/gitGraph-O2Q2CXLX-BYavwGzs-e5f1990e.mjs +10 -0
- package/{gitGraphDiagram-7IBYFJ6S-da63c888.mjs → gitGraphDiagram-7IBYFJ6S-115329ab.mjs} +88 -88
- package/gitGraphDiagram-7IBYFJ6S-CndxirR4-b39d4089.mjs +716 -0
- package/{graph-e71f0e3e.mjs → graph-9e073c5f.mjs} +8 -8
- package/graph-DOmtxVvg-727f4e14.mjs +247 -0
- package/index-433e2395.mjs +168385 -0
- package/info-4N47QTOZ-688db415.mjs +10 -0
- package/info-4N47QTOZ-DPyDFN1Z-821cf2f7.mjs +10 -0
- package/{infoDiagram-PH2N3AL5-3e1c1c1f.mjs → infoDiagram-PH2N3AL5-29e9585a.mjs} +9 -9
- package/infoDiagram-PH2N3AL5-BkSS3vpU-ef4bf66d.mjs +26 -0
- package/init-DjUOC4st-87c930f1.mjs +16 -0
- package/{journeyDiagram-U35MCT3I-6d29748d.mjs → journeyDiagram-U35MCT3I-7c5644d1.mjs} +41 -41
- package/journeyDiagram-U35MCT3I-BN-kCDeJ-ac350902.mjs +811 -0
- package/{kanban-definition-NDS4AKOZ-c231ae4c.mjs → kanban-definition-NDS4AKOZ-eff441f9.mjs} +47 -47
- package/kanban-definition-NDS4AKOZ-gaDUOiKt-efdba942.mjs +720 -0
- package/{layout-b9b9e407.mjs → layout-501d22f0.mjs} +19 -19
- package/layout-8X5HiOVA-b6e13cf9.mjs +1323 -0
- package/linear-BgV5F0PU-8137edad.mjs +447 -0
- package/{linear-99040ddc.mjs → linear-fd3cd932.mjs} +56 -56
- package/{mermaid-parser.core-55f134dc.mjs → mermaid-parser.core-6eb44241.mjs} +160 -160
- package/mermaid-parser.core-BTS3sfcL-8c80284a.mjs +12810 -0
- package/{mindmap-definition-ALO5MXBD-938e2e65.mjs → mindmap-definition-ALO5MXBD-2fe3c748.mjs} +1 -1
- package/mindmap-definition-ALO5MXBD-B8q_1sIj-c3599d3c.mjs +3225 -0
- package/ordinal-DfAQgscy-1c8e46a9.mjs +65 -0
- package/package.json +2 -2
- package/packet-KVYON367-DcfdOX-U-afac932a.mjs +10 -0
- package/packet-KVYON367-c82af3fe.mjs +10 -0
- package/pie-R6RNRRYF-DKruFncB-d07f60c2.mjs +10 -0
- package/pie-R6RNRRYF-eb27797b.mjs +10 -0
- package/pieDiagram-IB7DONF6-Bijui6_Q-db9fdf3a.mjs +166 -0
- package/{pieDiagram-IB7DONF6-6a11673b.mjs → pieDiagram-IB7DONF6-e6863984.mjs} +36 -36
- package/{quadrantDiagram-7GDLP6J5-a4a4d9ac.mjs → quadrantDiagram-7GDLP6J5-88df12c2.mjs} +15 -15
- package/quadrantDiagram-7GDLP6J5-DzIzViUj-b13add98.mjs +1027 -0
- package/radar-MK3ICKWK-723229d0.mjs +10 -0
- package/radar-MK3ICKWK-D8wbkmr5-3165faf6.mjs +10 -0
- package/{requirementDiagram-KVF5MWMF-a7093c74.mjs → requirementDiagram-KVF5MWMF-7228051c.mjs} +50 -50
- package/requirementDiagram-KVF5MWMF-Hqsbdpfq-23374f24.mjs +853 -0
- package/{sankeyDiagram-QLVOVGJD-f4bcbb2d.mjs → sankeyDiagram-QLVOVGJD-00a31a99.mjs} +87 -87
- package/sankeyDiagram-QLVOVGJD-DGCeusqJ-8ca7e64d.mjs +826 -0
- package/{sequenceDiagram-X6HHIX6F-9071cfff.mjs → sequenceDiagram-X6HHIX6F-de203309.mjs} +3 -3
- package/sequenceDiagram-X6HHIX6F-kuEE9wSd-5f0ec5cd.mjs +2283 -0
- package/{stateDiagram-DGXRK772-fb22a7a5.mjs → stateDiagram-DGXRK772-2341237a.mjs} +48 -48
- package/stateDiagram-DGXRK772-Cq-Ce3WP-266efa7f.mjs +274 -0
- package/{stateDiagram-v2-YXO3MK2T-67326b76.mjs → stateDiagram-v2-YXO3MK2T-8c81deed.mjs} +5 -5
- package/stateDiagram-v2-YXO3MK2T-CplwFWn1-c0024e4e.mjs +18 -0
- package/style.css +10 -1
- package/timeline-definition-BDJGKUSR-USv5sZzx-22548912.mjs +806 -0
- package/{timeline-definition-BDJGKUSR-44f50d45.mjs → timeline-definition-BDJGKUSR-e615901b.mjs} +79 -79
- package/{xychartDiagram-VJFVF3MP-2df503f6.mjs → xychartDiagram-VJFVF3MP-9ad66a6b.mjs} +28 -28
- package/xychartDiagram-VJFVF3MP-CXCfFZBM-e5ca151e.mjs +1306 -0
- package/_basePickBy-12958109.mjs +0 -153
- package/arc-14f9a207.mjs +0 -85
- package/architecture-4AB2E3PP-bb512ddb.mjs +0 -10
- package/channel-7bd711b4.mjs +0 -5
- package/gitGraph-O2Q2CXLX-83cfcbef.mjs +0 -10
- package/index-f83d4b07.mjs +0 -97448
- package/info-4N47QTOZ-20cf90f5.mjs +0 -10
- package/katex-2e45926a.mjs +0 -11700
- package/packet-KVYON367-453a49e8.mjs +0 -10
- package/pie-R6RNRRYF-4d95c8dc.mjs +0 -10
- package/radar-MK3ICKWK-100e8fa4.mjs +0 -10
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { G as B } from "./graph-
|
|
3
|
-
import { l as
|
|
4
|
-
import { i as x } from "./_baseUniq-
|
|
5
|
-
import { c as
|
|
6
|
-
import { m as A } from "./_basePickBy-
|
|
1
|
+
import { bz as X, cV as Y, cW as j, cX as H, cY as _, bM as i, bF as V, cZ as $, c_ as z, cG as U, cL as W, cH as P, cF as Z, c$ as q, d0 as K, d1 as Q } from "./index-433e2395.mjs";
|
|
2
|
+
import { G as B } from "./graph-9e073c5f.mjs";
|
|
3
|
+
import { l as L } from "./layout-501d22f0.mjs";
|
|
4
|
+
import { i as x } from "./_baseUniq-8cd7fbc4.mjs";
|
|
5
|
+
import { c as I } from "./clone-327a1426.mjs";
|
|
6
|
+
import { m as A } from "./_basePickBy-e7598e72.mjs";
|
|
7
7
|
import "vue";
|
|
8
8
|
function E(e) {
|
|
9
9
|
var t = {
|
|
@@ -15,12 +15,12 @@ function E(e) {
|
|
|
15
15
|
nodes: ee(e),
|
|
16
16
|
edges: ne(e)
|
|
17
17
|
};
|
|
18
|
-
return x(e.graph()) || (t.value =
|
|
18
|
+
return x(e.graph()) || (t.value = I(e.graph())), t;
|
|
19
19
|
}
|
|
20
20
|
function ee(e) {
|
|
21
21
|
return A(e.nodes(), function(t) {
|
|
22
|
-
var n = e.node(t), o = e.parent(t),
|
|
23
|
-
return x(n) || (
|
|
22
|
+
var n = e.node(t), o = e.parent(t), a = { v: t };
|
|
23
|
+
return x(n) || (a.value = n), x(o) || (a.parent = o), a;
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
function ne(e) {
|
|
@@ -29,15 +29,15 @@ function ne(e) {
|
|
|
29
29
|
return x(t.name) || (o.name = t.name), x(n) || (o.value = n), o;
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
-
var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(),
|
|
33
|
-
b.clear(),
|
|
32
|
+
var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), G = /* @__PURE__ */ new Map(), te = /* @__PURE__ */ X(() => {
|
|
33
|
+
b.clear(), G.clear(), f.clear();
|
|
34
34
|
}, "clear"), O = /* @__PURE__ */ X((e, t) => {
|
|
35
35
|
const n = b.get(t) || [];
|
|
36
36
|
return i.trace("In isDescendant", t, " ", e, " = ", n.includes(e)), n.includes(e);
|
|
37
37
|
}, "isDescendant"), se = /* @__PURE__ */ X((e, t) => {
|
|
38
38
|
const n = b.get(t) || [];
|
|
39
39
|
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) || O(e.v, t) || O(e.w, t) || n.includes(e.w) : (i.debug("Tilt, ", t, ",not in descendants"), !1);
|
|
40
|
-
}, "edgeInCluster"),
|
|
40
|
+
}, "edgeInCluster"), J = /* @__PURE__ */ X((e, t, n, o) => {
|
|
41
41
|
i.warn(
|
|
42
42
|
"Copying children of ",
|
|
43
43
|
e,
|
|
@@ -47,27 +47,27 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
|
|
|
47
47
|
t.node(e),
|
|
48
48
|
o
|
|
49
49
|
);
|
|
50
|
-
const
|
|
51
|
-
e !== o &&
|
|
52
|
-
if (t.children(
|
|
53
|
-
|
|
50
|
+
const a = t.children(e) || [];
|
|
51
|
+
e !== o && a.push(e), i.warn("Copying (nodes) clusterId", e, "nodes", a), a.forEach((c) => {
|
|
52
|
+
if (t.children(c).length > 0)
|
|
53
|
+
J(c, t, n, o);
|
|
54
54
|
else {
|
|
55
|
-
const r = t.node(
|
|
56
|
-
i.info("cp ",
|
|
55
|
+
const r = t.node(c);
|
|
56
|
+
i.info("cp ", c, " to ", o, " with parent ", e), n.setNode(c, r), o !== t.parent(c) && (i.warn("Setting parent", c, t.parent(c)), n.setParent(c, t.parent(c))), e !== o && c !== e ? (i.debug("Setting parent", c, e), n.setParent(c, e)) : (i.info("In copy ", e, "root", o, "data", t.node(e), o), i.debug(
|
|
57
57
|
"Not Setting parent for node=",
|
|
58
|
-
|
|
58
|
+
c,
|
|
59
59
|
"cluster!==rootId",
|
|
60
60
|
e !== o,
|
|
61
61
|
"node!==clusterId",
|
|
62
|
-
|
|
62
|
+
c !== e
|
|
63
63
|
));
|
|
64
|
-
const u = t.edges(
|
|
64
|
+
const u = t.edges(c);
|
|
65
65
|
i.debug("Copying Edges", u), u.forEach((l) => {
|
|
66
66
|
i.info("Edge", l);
|
|
67
|
-
const
|
|
68
|
-
i.info("Edge data",
|
|
67
|
+
const v = t.edge(l.v, l.w, l.name);
|
|
68
|
+
i.info("Edge data", v, o);
|
|
69
69
|
try {
|
|
70
|
-
se(l, o) ? (i.info("Copying as ", l.v, l.w,
|
|
70
|
+
se(l, o) ? (i.info("Copying as ", l.v, l.w, v, l.name), n.setEdge(l.v, l.w, v, l.name), i.info("newGraph edges ", n.edges(), n.edge(n.edges()[0]))) : i.info(
|
|
71
71
|
"Skipping copy of edge ",
|
|
72
72
|
l.v,
|
|
73
73
|
"-->",
|
|
@@ -82,31 +82,31 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
|
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
|
-
i.debug("Removing node",
|
|
85
|
+
i.debug("Removing node", c), t.removeNode(c);
|
|
86
86
|
});
|
|
87
87
|
}, "copy"), R = /* @__PURE__ */ X((e, t) => {
|
|
88
88
|
const n = t.children(e);
|
|
89
89
|
let o = [...n];
|
|
90
|
-
for (const
|
|
91
|
-
|
|
90
|
+
for (const a of n)
|
|
91
|
+
G.set(a, e), o = [...o, ...R(a, t)];
|
|
92
92
|
return o;
|
|
93
93
|
}, "extractDescendants"), ie = /* @__PURE__ */ X((e, t, n) => {
|
|
94
|
-
const o = e.edges().filter((l) => l.v === t || l.w === t),
|
|
95
|
-
return
|
|
94
|
+
const o = e.edges().filter((l) => l.v === t || l.w === t), a = e.edges().filter((l) => l.v === n || l.w === n), c = o.map((l) => ({ v: l.v === t ? n : l.v, w: l.w === t ? t : l.w })), r = a.map((l) => ({ v: l.v, w: l.w }));
|
|
95
|
+
return c.filter((l) => r.some((v) => l.v === v.v && l.w === v.w));
|
|
96
96
|
}, "findCommonEdges"), D = /* @__PURE__ */ X((e, t, n) => {
|
|
97
97
|
const o = t.children(e);
|
|
98
98
|
if (i.trace("Searching children of id ", e, o), o.length < 1)
|
|
99
99
|
return e;
|
|
100
|
-
let
|
|
101
|
-
for (const
|
|
102
|
-
const r = D(
|
|
100
|
+
let a;
|
|
101
|
+
for (const c of o) {
|
|
102
|
+
const r = D(c, t, n), u = ie(t, n, r);
|
|
103
103
|
if (r)
|
|
104
104
|
if (u.length > 0)
|
|
105
|
-
|
|
105
|
+
a = r;
|
|
106
106
|
else
|
|
107
107
|
return r;
|
|
108
108
|
}
|
|
109
|
-
return
|
|
109
|
+
return a;
|
|
110
110
|
}, "findNonClusterChild"), k = /* @__PURE__ */ X((e) => !f.has(e) || !f.get(e).externalConnections ? e : f.has(e) ? f.get(e).id : e, "getAnchorId"), re = /* @__PURE__ */ X((e, t) => {
|
|
111
111
|
if (!e || t > 10) {
|
|
112
112
|
i.debug("Opting out, no graph ");
|
|
@@ -121,20 +121,20 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
|
|
|
121
121
|
D(n, e, n)
|
|
122
122
|
), b.set(n, R(n, e)), f.set(n, { id: D(n, e, n), clusterData: e.node(n) }));
|
|
123
123
|
}), e.nodes().forEach(function(n) {
|
|
124
|
-
const o = e.children(n),
|
|
125
|
-
o.length > 0 ? (i.debug("Cluster identified", n, b),
|
|
126
|
-
const r = O(
|
|
127
|
-
r ^ u && (i.warn("Edge: ",
|
|
124
|
+
const o = e.children(n), a = e.edges();
|
|
125
|
+
o.length > 0 ? (i.debug("Cluster identified", n, b), a.forEach((c) => {
|
|
126
|
+
const r = O(c.v, n), u = O(c.w, n);
|
|
127
|
+
r ^ u && (i.warn("Edge: ", c, " leaves cluster ", n), i.warn("Descendants of XXX ", n, ": ", b.get(n)), f.get(n).externalConnections = !0);
|
|
128
128
|
})) : i.debug("Not a cluster ", n, b);
|
|
129
129
|
});
|
|
130
130
|
for (let n of f.keys()) {
|
|
131
|
-
const o = f.get(n).id,
|
|
132
|
-
|
|
131
|
+
const o = f.get(n).id, a = e.parent(o);
|
|
132
|
+
a !== n && f.has(a) && !f.get(a).externalConnections && (f.get(n).id = a);
|
|
133
133
|
}
|
|
134
134
|
e.edges().forEach(function(n) {
|
|
135
135
|
const o = e.edge(n);
|
|
136
136
|
i.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(n)), i.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(e.edge(n)));
|
|
137
|
-
let
|
|
137
|
+
let a = n.v, c = n.w;
|
|
138
138
|
if (i.warn(
|
|
139
139
|
"Fix XXX",
|
|
140
140
|
f,
|
|
@@ -146,19 +146,19 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
|
|
|
146
146
|
" --- ",
|
|
147
147
|
f.get(n.w)
|
|
148
148
|
), f.get(n.v) || f.get(n.w)) {
|
|
149
|
-
if (i.warn("Fixing and trying - removing XXX", n.v, n.w, n.name),
|
|
150
|
-
const r = e.parent(
|
|
149
|
+
if (i.warn("Fixing and trying - removing XXX", n.v, n.w, n.name), a = k(n.v), c = k(n.w), e.removeEdge(n.v, n.w, n.name), a !== n.v) {
|
|
150
|
+
const r = e.parent(a);
|
|
151
151
|
f.get(r).externalConnections = !0, o.fromCluster = n.v;
|
|
152
152
|
}
|
|
153
|
-
if (
|
|
154
|
-
const r = e.parent(
|
|
153
|
+
if (c !== n.w) {
|
|
154
|
+
const r = e.parent(c);
|
|
155
155
|
f.get(r).externalConnections = !0, o.toCluster = n.w;
|
|
156
156
|
}
|
|
157
|
-
i.warn("Fix Replacing with XXX",
|
|
157
|
+
i.warn("Fix Replacing with XXX", a, c, n.name), e.setEdge(a, c, o, n.name);
|
|
158
158
|
}
|
|
159
159
|
}), i.warn("Adjusted Graph", E(e)), T(e, 0), i.trace(f);
|
|
160
160
|
}, "adjustClustersAndEdges"), T = /* @__PURE__ */ X((e, t) => {
|
|
161
|
-
var
|
|
161
|
+
var a, c;
|
|
162
162
|
if (i.warn("extractor - ", t, E(e), e.children("D")), t > 10) {
|
|
163
163
|
i.error("Bailing out");
|
|
164
164
|
return;
|
|
@@ -193,8 +193,8 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
|
|
|
193
193
|
t
|
|
194
194
|
);
|
|
195
195
|
let l = e.graph().rankdir === "TB" ? "LR" : "TB";
|
|
196
|
-
(
|
|
197
|
-
const
|
|
196
|
+
(c = (a = f.get(r)) == null ? void 0 : a.clusterData) != null && c.dir && (l = f.get(r).clusterData.dir, i.warn("Fixing dir", f.get(r).clusterData.dir, l));
|
|
197
|
+
const v = new B({
|
|
198
198
|
multigraph: !0,
|
|
199
199
|
compound: !0
|
|
200
200
|
}).setGraph({
|
|
@@ -206,13 +206,13 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
|
|
|
206
206
|
}).setDefaultEdgeLabel(function() {
|
|
207
207
|
return {};
|
|
208
208
|
});
|
|
209
|
-
i.warn("Old graph before copy", E(e)),
|
|
209
|
+
i.warn("Old graph before copy", E(e)), J(r, e, v, r), e.setNode(r, {
|
|
210
210
|
clusterNode: !0,
|
|
211
211
|
id: r,
|
|
212
212
|
clusterData: f.get(r).clusterData,
|
|
213
213
|
label: f.get(r).label,
|
|
214
|
-
graph:
|
|
215
|
-
}), i.warn("New graph after copy node: (", r, ")", E(
|
|
214
|
+
graph: v
|
|
215
|
+
}), i.warn("New graph after copy node: (", r, ")", E(v)), i.debug("Old graph after copy", E(e));
|
|
216
216
|
} else
|
|
217
217
|
i.warn(
|
|
218
218
|
"Cluster ** ",
|
|
@@ -236,21 +236,21 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
|
|
|
236
236
|
return [];
|
|
237
237
|
let n = Object.assign([], t);
|
|
238
238
|
return t.forEach((o) => {
|
|
239
|
-
const
|
|
240
|
-
n = [...n, ...
|
|
239
|
+
const a = e.children(o), c = M(e, a);
|
|
240
|
+
n = [...n, ...c];
|
|
241
241
|
}), n;
|
|
242
|
-
}, "sorter"), oe = /* @__PURE__ */ X((e) => M(e, e.children()), "sortNodesByHierarchy"),
|
|
243
|
-
i.warn("Graph in recursive render:XAX", E(t),
|
|
242
|
+
}, "sorter"), oe = /* @__PURE__ */ X((e) => M(e, e.children()), "sortNodesByHierarchy"), F = /* @__PURE__ */ X(async (e, t, n, o, a, c) => {
|
|
243
|
+
i.warn("Graph in recursive render:XAX", E(t), a);
|
|
244
244
|
const r = t.graph().rankdir;
|
|
245
245
|
i.trace("Dir in recursive render - dir:", r);
|
|
246
246
|
const u = e.insert("g").attr("class", "root");
|
|
247
247
|
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]));
|
|
248
|
-
const l = u.insert("g").attr("class", "clusters"),
|
|
248
|
+
const l = u.insert("g").attr("class", "clusters"), v = u.insert("g").attr("class", "edgePaths"), C = u.insert("g").attr("class", "edgeLabels"), g = u.insert("g").attr("class", "nodes");
|
|
249
249
|
await Promise.all(
|
|
250
250
|
t.nodes().map(async function(d) {
|
|
251
251
|
const s = t.node(d);
|
|
252
|
-
if (
|
|
253
|
-
const w = JSON.parse(JSON.stringify(
|
|
252
|
+
if (a !== void 0) {
|
|
253
|
+
const w = JSON.parse(JSON.stringify(a.clusterData));
|
|
254
254
|
i.trace(
|
|
255
255
|
`Setting data for parent cluster XXX
|
|
256
256
|
Node.id = `,
|
|
@@ -260,8 +260,8 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
|
|
|
260
260
|
w.height,
|
|
261
261
|
`
|
|
262
262
|
Parent cluster`,
|
|
263
|
-
|
|
264
|
-
), t.setNode(
|
|
263
|
+
a.height
|
|
264
|
+
), t.setNode(a.id, w), t.parent(d) || (i.trace("Setting parent", d, a.id), t.setParent(d, a.id, w));
|
|
265
265
|
}
|
|
266
266
|
if (i.info("(Insert) Node XXX" + d + ": " + JSON.stringify(t.node(d))), s != null && s.clusterNode) {
|
|
267
267
|
i.info("Cluster identified XBX", d, s.width, t.node(d));
|
|
@@ -271,15 +271,15 @@ Parent cluster`,
|
|
|
271
271
|
ranksep: w + 25,
|
|
272
272
|
nodesep: m
|
|
273
273
|
});
|
|
274
|
-
const N = await
|
|
274
|
+
const N = await F(
|
|
275
275
|
g,
|
|
276
276
|
s.graph,
|
|
277
277
|
n,
|
|
278
278
|
o,
|
|
279
279
|
t.node(d),
|
|
280
|
-
|
|
280
|
+
c
|
|
281
281
|
), S = N.elem;
|
|
282
|
-
|
|
282
|
+
$(s, S), s.diff = N.diff || 0, i.info(
|
|
283
283
|
"New compound node after recursive render XAX",
|
|
284
284
|
d,
|
|
285
285
|
"width",
|
|
@@ -289,7 +289,7 @@ Parent cluster`,
|
|
|
289
289
|
s.height
|
|
290
290
|
// node.x,
|
|
291
291
|
// node.y
|
|
292
|
-
),
|
|
292
|
+
), z(S, s);
|
|
293
293
|
} else
|
|
294
294
|
t.children(d).length > 0 ? (i.trace(
|
|
295
295
|
"Cluster - the non recursive path XBX",
|
|
@@ -299,7 +299,7 @@ Parent cluster`,
|
|
|
299
299
|
s.width,
|
|
300
300
|
"Graph:",
|
|
301
301
|
t
|
|
302
|
-
), i.trace(D(s.id, t)), f.set(s.id, { id: D(s.id, t), node: s })) : (i.trace("Node - the non recursive path XAX", d, g, t.node(d), r), await
|
|
302
|
+
), i.trace(D(s.id, t)), f.set(s.id, { id: D(s.id, t), node: s })) : (i.trace("Node - the non recursive path XAX", d, g, t.node(d), r), await U(g, t.node(d), { config: c, dir: r }));
|
|
303
303
|
})
|
|
304
304
|
), await (/* @__PURE__ */ X(async () => {
|
|
305
305
|
const d = t.edges().map(async function(s) {
|
|
@@ -313,11 +313,11 @@ Parent cluster`,
|
|
|
313
313
|
"Translating: ",
|
|
314
314
|
f.get(s.v),
|
|
315
315
|
f.get(s.w)
|
|
316
|
-
), await
|
|
316
|
+
), await Q(C, w);
|
|
317
317
|
});
|
|
318
318
|
await Promise.all(d);
|
|
319
|
-
}, "processEdges"))(), i.info("Graph before layout:", JSON.stringify(E(t))), i.info("############################################# XXX"), i.info("### Layout ### XXX"), i.info("############################################# XXX"),
|
|
320
|
-
let p = 0, { subGraphTitleTotalMargin: y } =
|
|
319
|
+
}, "processEdges"))(), i.info("Graph before layout:", JSON.stringify(E(t))), i.info("############################################# XXX"), i.info("### Layout ### XXX"), i.info("############################################# XXX"), L(t), i.info("Graph after layout:", JSON.stringify(E(t)));
|
|
320
|
+
let p = 0, { subGraphTitleTotalMargin: y } = W(c);
|
|
321
321
|
return await Promise.all(
|
|
322
322
|
oe(t).map(async function(d) {
|
|
323
323
|
var w;
|
|
@@ -352,7 +352,7 @@ Parent cluster`,
|
|
|
352
352
|
t.parent(d)
|
|
353
353
|
), s.height += y, t.node(s.parentId);
|
|
354
354
|
const m = (s == null ? void 0 : s.padding) / 2 || 0, N = ((w = s == null ? void 0 : s.labelBBox) == null ? void 0 : w.height) || 0, S = N - m || 0;
|
|
355
|
-
i.debug("OffsetY", S, "labelHeight", N, "halfPadding", m), await
|
|
355
|
+
i.debug("OffsetY", S, "labelHeight", N, "halfPadding", m), await Z(l, s), f.get(s.id).node = s;
|
|
356
356
|
} else {
|
|
357
357
|
const m = t.node(s.parentId);
|
|
358
358
|
s.y += y / 2, i.info(
|
|
@@ -378,31 +378,31 @@ Parent cluster`,
|
|
|
378
378
|
i.info("Edge " + d.v + " -> " + d.w + ": " + JSON.stringify(s), s), s.points.forEach((S) => S.y += y / 2);
|
|
379
379
|
const w = t.node(d.v);
|
|
380
380
|
var m = t.node(d.w);
|
|
381
|
-
const N =
|
|
382
|
-
|
|
381
|
+
const N = q(v, s, f, n, w, m, o);
|
|
382
|
+
K(s, N);
|
|
383
383
|
}), t.nodes().forEach(function(d) {
|
|
384
384
|
const s = t.node(d);
|
|
385
385
|
i.info(d, s.type, s.diff), s.isGroup && (p = s.diff);
|
|
386
386
|
}), i.warn("Returning from recursive render XAX", u, p), { elem: u, diff: p };
|
|
387
387
|
}, "recursiveRender"), we = /* @__PURE__ */ X(async (e, t) => {
|
|
388
|
-
var
|
|
388
|
+
var c, r, u, l, v, C;
|
|
389
389
|
const n = new B({
|
|
390
390
|
multigraph: !0,
|
|
391
391
|
compound: !0
|
|
392
392
|
}).setGraph({
|
|
393
393
|
rankdir: e.direction,
|
|
394
|
-
nodesep: ((
|
|
395
|
-
ranksep: ((l = e.config) == null ? void 0 : l.rankSpacing) || ((C = (
|
|
394
|
+
nodesep: ((c = e.config) == null ? void 0 : c.nodeSpacing) || ((u = (r = e.config) == null ? void 0 : r.flowchart) == null ? void 0 : u.nodeSpacing) || e.nodeSpacing,
|
|
395
|
+
ranksep: ((l = e.config) == null ? void 0 : l.rankSpacing) || ((C = (v = e.config) == null ? void 0 : v.flowchart) == null ? void 0 : C.rankSpacing) || e.rankSpacing,
|
|
396
396
|
marginx: 8,
|
|
397
397
|
marginy: 8
|
|
398
398
|
}).setDefaultEdgeLabel(function() {
|
|
399
399
|
return {};
|
|
400
400
|
}), o = t.select("g");
|
|
401
|
-
|
|
401
|
+
Y(o, e.markers, e.type, e.diagramId), j(), H(), _(), te(), e.nodes.forEach((g) => {
|
|
402
402
|
n.setNode(g.id, { ...g }), g.parentId && n.setParent(g.id, g.parentId);
|
|
403
403
|
}), i.debug("Edges:", e.edges), e.edges.forEach((g) => {
|
|
404
404
|
if (g.start === g.end) {
|
|
405
|
-
const
|
|
405
|
+
const h = g.start, p = h + "---" + h + "---1", y = h + "---" + h + "---2", d = n.node(h);
|
|
406
406
|
n.setNode(p, {
|
|
407
407
|
domId: p,
|
|
408
408
|
id: p,
|
|
@@ -429,18 +429,18 @@ Parent cluster`,
|
|
|
429
429
|
height: 10
|
|
430
430
|
}), n.setParent(y, d.parentId);
|
|
431
431
|
const s = structuredClone(g), w = structuredClone(g), m = structuredClone(g);
|
|
432
|
-
s.label = "", s.arrowTypeEnd = "none", s.id =
|
|
432
|
+
s.label = "", s.arrowTypeEnd = "none", s.id = h + "-cyclic-special-1", w.arrowTypeStart = "none", w.arrowTypeEnd = "none", w.id = h + "-cyclic-special-mid", m.label = "", d.isGroup && (s.fromCluster = h, m.toCluster = h), m.id = h + "-cyclic-special-2", m.arrowTypeStart = "none", n.setEdge(h, p, s, h + "-cyclic-special-0"), n.setEdge(p, y, w, h + "-cyclic-special-1"), n.setEdge(y, h, m, h + "-cyc<lic-special-2");
|
|
433
433
|
} else
|
|
434
434
|
n.setEdge(g.start, g.end, { ...g }, g.id);
|
|
435
435
|
}), i.warn("Graph at first:", JSON.stringify(E(n))), re(n), i.warn("Graph after XAX:", JSON.stringify(E(n)));
|
|
436
|
-
const
|
|
437
|
-
await
|
|
436
|
+
const a = V();
|
|
437
|
+
await F(
|
|
438
438
|
o,
|
|
439
439
|
n,
|
|
440
440
|
e.type,
|
|
441
441
|
e.diagramId,
|
|
442
442
|
void 0,
|
|
443
|
-
|
|
443
|
+
a
|
|
444
444
|
);
|
|
445
445
|
}, "render");
|
|
446
446
|
export {
|