@omg-dev/app 0.5.0 → 0.6.1
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-lib/{ChangelogPage-8lbvM9Pz.js → ChangelogPage-Cjj_DiYL.js} +57 -1
- package/dist-lib/{File-B-qYa2zY.js → File-DQRr5F_e.js} +1761 -1826
- package/dist-lib/FileEditor-BrI3dfcp.js +6895 -0
- package/dist-lib/FileTreePane-J8P-OiHb.js +8413 -0
- package/dist-lib/{FileViewer-Clmf04v1.js → FileViewer-DRrfus7c.js} +1 -1
- package/dist-lib/{SessionFilesPanel-BKcTU57t.js → SessionFilesPanel-DxVJ43fE.js} +69 -69
- package/dist-lib/{TermView-gazV6UMU.js → TermView-B4V-DyD-.js} +521 -530
- package/dist-lib/{abnfDiagram-VRR7QNED-Chn1Z_p9.js → abnfDiagram-VRR7QNED-CiXfOnAu.js} +4 -4
- package/dist-lib/{arc-B652oHQ-.js → arc-QOMNKQA5.js} +1 -1
- package/dist-lib/{architectureDiagram-ZJ3FMSHR-CMatArpz.js → architectureDiagram-ZJ3FMSHR-BcFBTmfD.js} +2059 -2064
- package/dist-lib/{blockDiagram-677ZJIJ3-CEOPfI9A.js → blockDiagram-677ZJIJ3-Qj8-RIV3.js} +920 -925
- package/dist-lib/{c4Diagram-LMCZKHZV-DcUHrESL.js → c4Diagram-LMCZKHZV-BpinEmj4.js} +598 -593
- package/dist-lib/{channel-B5lJFbed.js → channel-D6YHMmF7.js} +1 -1
- package/dist-lib/{chat-engine-83mwx0z2.js → chat-engine-CUiDTHFP.js} +1173 -1218
- package/dist-lib/chunk-2Q5K7J3B-CFSi414U.js +18 -0
- package/dist-lib/{chunk-32BRIVSS-IYmNSvH8.js → chunk-32BRIVSS-DvywQiCk.js} +1 -1
- package/dist-lib/{chunk-5VM5RSS4-DO2g-xIj.js → chunk-5VM5RSS4-xd6XuI9Q.js} +1 -1
- package/dist-lib/{chunk-BO2N2NFS-kYiI5SD9.js → chunk-BO2N2NFS-BbJdm-59.js} +4892 -4903
- package/dist-lib/{chunk-EX3LRPZG-N96wfks9.js → chunk-EX3LRPZG-BLDKx-Yg.js} +507 -514
- package/dist-lib/chunk-JWPE2WC7-DnwG7Xzp.js +8 -0
- package/dist-lib/chunk-MOJQB5TN-BrENeFT5.js +670 -0
- package/dist-lib/chunk-RYQCIY6F-I-J4fVFd.js +313 -0
- package/dist-lib/{chunk-V7JOEXUC-DQwf2vkP.js → chunk-V7JOEXUC-Bkakcs1-.js} +458 -453
- package/dist-lib/chunk-VR4S4FIN-BDq3jZ0m.js +19 -0
- package/dist-lib/{chunk-XXDRQBXY-Ccv4aRcn.js → chunk-XXDRQBXY-DRKeYnrF.js} +1 -1
- package/dist-lib/{classDiagram-v2-EOCWNBFH-DOn-rhuL.js → classDiagram-OUVF2IWQ-DISUfvR5.js} +2 -2
- package/dist-lib/{classDiagram-OUVF2IWQ-DOn-rhuL.js → classDiagram-v2-EOCWNBFH-DISUfvR5.js} +2 -2
- package/dist-lib/{coding-agents-page-8Nf-IuE2.js → coding-agents-page-DtxZ0nbQ.js} +152 -131
- package/dist-lib/computer-page-DIJeFOZz.js +8860 -0
- package/dist-lib/{cose-bilkent-JH36ORCC-C-tACTrT.js → cose-bilkent-JH36ORCC-DCfmoChv.js} +281 -281
- package/dist-lib/{create-BrnHvSDE.js → create-CBk9uwJH.js} +2 -2
- package/dist-lib/cynefin-VYW2F7L2-XAY3mHv8.js +24430 -0
- package/dist-lib/{cynefinDiagram-TSTJHNR4-Be7CamD2.js → cynefinDiagram-TSTJHNR4-CrgvPEr1.js} +3 -3
- package/dist-lib/{cytoscape.esm-B0ledd6M.js → cytoscape.esm-BB6Ga9He.js} +3 -3
- package/dist-lib/dagre-VKFMJZFB-CE5k06mJ.js +343 -0
- package/dist-lib/{diagram-FQU43EPY-Jg12ow4Z.js → diagram-FQU43EPY-gOcCiJEN.js} +136 -139
- package/dist-lib/diagram-G47NLZAW-BVJLfRsd.js +531 -0
- package/dist-lib/diagram-NH7WQ7WH-u6QnHasL.js +145 -0
- package/dist-lib/diagram-OA4YK3LP-D4Kcl3uM.js +350 -0
- package/dist-lib/{diagram-WEI45ONY-D1kKPOc_.js → diagram-WEI45ONY-6a__oIb0.js} +38 -42
- package/dist-lib/{ebnfDiagram-CCIWWBDH-BhQWrGMc.js → ebnfDiagram-CCIWWBDH-PXSrB6lG.js} +4 -4
- package/dist-lib/{embedded-BmrQsEvQ.js → embedded-PUsgcSTE.js} +13043 -13082
- package/dist-lib/{engine-compile-BeDRSL6Y.js → engine-compile-D_stzVMa.js} +2939 -2991
- package/dist-lib/{erDiagram-Q63AITRT-D2q6Nmwa.js → erDiagram-Q63AITRT-BbsttUCs.js} +286 -284
- package/dist-lib/flowDiagram-23GEKE2U-CX5x3zVA.js +1641 -0
- package/dist-lib/{ganttDiagram-NO4QXBWP-C_Lj-cJB.js → ganttDiagram-NO4QXBWP-Bq0aSPs8.js} +2 -2
- package/dist-lib/gitGraphDiagram-IHSO6WYX-BjAezjIv.js +815 -0
- package/dist-lib/{graph-B68L3K2T.js → graph-DAHC4kPm.js} +2 -2
- package/dist-lib/{highlighted-body-OFNGDK62-C2DGVKV8.js → highlighted-body-OFNGDK62-DWhG_ijx.js} +1 -1
- package/dist-lib/index-B0neMIbR.js +16520 -0
- package/dist-lib/index-BBC0E3Qg.js +4994 -0
- package/dist-lib/{index-Dtkd4mEk.js → index-CE7H8LiZ.js} +2 -2
- package/dist-lib/{index-DWkBvb-9.js → index-FgVvPpIY.js} +2 -2
- package/dist-lib/index.js +1 -1
- package/dist-lib/{infoDiagram-FWYZ7A6U-BbUkT0KS.js → infoDiagram-FWYZ7A6U-Bo_FNR91.js} +2 -2
- package/dist-lib/ishikawaDiagram-FXEZZL3T-C5bGD-Eb.js +624 -0
- package/dist-lib/{journeyDiagram-5HDEW3XC-CgykmVSC.js → journeyDiagram-5HDEW3XC-C8qM7SxF.js} +4 -4
- package/dist-lib/kanban-definition-HUTT4EX6-C-EK5Puz.js +724 -0
- package/dist-lib/{katex-jHfnQmlp.js → katex-DoRnZ_sp.js} +1 -1
- package/dist-lib/{layout-BGrtsiRL.js → layout-DBbo_M5I.js} +2 -2
- package/dist-lib/{linear-B5ZSwawJ.js → linear-zGzX0-I0.js} +1 -1
- package/dist-lib/{map-hbfFlSln.js → map-DRdzG8Ho.js} +1 -1
- package/dist-lib/mermaid-GHXKKRXX-hOE9C3qW.js +4 -0
- package/dist-lib/{mindmap-definition-LN4V7U3C-CfhfeEht.js → mindmap-definition-LN4V7U3C-DlVCRx6k.js} +310 -311
- package/dist-lib/{pegDiagram-2B236MQR-CYDAJHPF.js → pegDiagram-2B236MQR-DrKNikeG.js} +4 -4
- package/dist-lib/{pieDiagram-ENE6RG2P-udKxQm4p.js → pieDiagram-ENE6RG2P-Fm_jc0HL.js} +83 -84
- package/dist-lib/quadrantDiagram-ABIIQ3AL-zDRY0VtB.js +1029 -0
- package/dist-lib/{railroadDiagram-RFXS5EU6-q0Svkmuy.js → railroadDiagram-RFXS5EU6-BQuFX39y.js} +4 -4
- package/dist-lib/{requirementDiagram-TGXJPOKE-tNxRI1gc.js → requirementDiagram-TGXJPOKE-BWwBQZXn.js} +269 -268
- package/dist-lib/{resume-session-sheet-Dr_81Gfm.js → resume-session-sheet-DTe_2QtJ.js} +2 -3
- package/dist-lib/sankeyDiagram-HTMAVEWB-BjRyuB6L.js +859 -0
- package/dist-lib/{sequenceDiagram-DBY2YBRQ-Dvl2_CXL.js → sequenceDiagram-DBY2YBRQ-69pcw_2M.js} +892 -899
- package/dist-lib/{session-token-usage-CGhHZ3lT.js → session-token-usage-DY4vFlfs.js} +82 -83
- package/dist-lib/{shadow-text-size-CBCTdbYU.js → shadow-text-size-smWA4wIU.js} +1 -2
- package/dist-lib/{shipped-page-p3oulUiM.js → shipped-page-B-ruG8li.js} +233 -236
- package/dist-lib/sizeCapture-X5ZJPWSS-DqkV8s1N.js +46 -0
- package/dist-lib/{stateDiagram-2N3HPSRC-CnWB7HvU.js → stateDiagram-2N3HPSRC-0vE3REl_.js} +4 -4
- package/dist-lib/{stateDiagram-v2-6OUMAXLB-DnZ0UI2p.js → stateDiagram-v2-6OUMAXLB-u_56Obsh.js} +2 -2
- package/dist-lib/{streamdown-response-Dbn0PKUH.js → streamdown-response-BQy3geXs.js} +290 -297
- package/dist-lib/styles.css +1 -1
- package/dist-lib/swimlanes-5IMT3BWC-H0raIBd1.js +5332 -0
- package/dist-lib/{swimlanesDiagram-G3AALYLV-CKyOeqF_.js → swimlanesDiagram-G3AALYLV-By52HaDu.js} +2 -2
- package/dist-lib/timeline-definition-FHXFAJF6-h1LLYUQk.js +1055 -0
- package/dist-lib/vennDiagram-L72KCM5P-B4wDw_Kh.js +1578 -0
- package/dist-lib/wardleyDiagram-EHGQE667-DLMBGiwD.js +678 -0
- package/dist-lib/{xychartDiagram-FW5EYKEG-m3s7caPv.js → xychartDiagram-FW5EYKEG-BHvf5Noj.js} +526 -496
- package/package.json +4 -3
- package/dist-lib/FileEditor-BIz0qCyW.js +0 -6892
- package/dist-lib/FileTreePane-BG2k7gTc.js +0 -8422
- package/dist-lib/chunk-2Q5K7J3B-Ex8Ly28R.js +0 -15
- package/dist-lib/chunk-JWPE2WC7-DFPBClX_.js +0 -9
- package/dist-lib/chunk-MOJQB5TN-dusfI9ob.js +0 -664
- package/dist-lib/chunk-RYQCIY6F-fkeERzIG.js +0 -315
- package/dist-lib/chunk-VR4S4FIN-hOZG7eF3.js +0 -20
- package/dist-lib/cynefin-VYW2F7L2-DQXPWaog.js +0 -23853
- package/dist-lib/dagre-VKFMJZFB-BhCjK7XQ.js +0 -346
- package/dist-lib/diagram-G47NLZAW-C3_z2t6T.js +0 -530
- package/dist-lib/diagram-NH7WQ7WH-DUdK08IT.js +0 -143
- package/dist-lib/diagram-OA4YK3LP-TUUyRYY3.js +0 -353
- package/dist-lib/flowDiagram-23GEKE2U-DU3S3biU.js +0 -1645
- package/dist-lib/gitGraphDiagram-IHSO6WYX-CvGu0XAR.js +0 -828
- package/dist-lib/index-DcwavxA1.js +0 -5062
- package/dist-lib/index-JkCQXUYs.js +0 -16566
- package/dist-lib/ishikawaDiagram-FXEZZL3T-D_Y6Tuyb.js +0 -622
- package/dist-lib/kanban-definition-HUTT4EX6-CPFLTskY.js +0 -726
- package/dist-lib/mermaid-GHXKKRXX-Ox_2d3uB.js +0 -4
- package/dist-lib/quadrantDiagram-ABIIQ3AL-BmDmLczk.js +0 -1025
- package/dist-lib/sankeyDiagram-HTMAVEWB-B9Bl7f2P.js +0 -847
- package/dist-lib/sizeCapture-X5ZJPWSS-B1EeO3N9.js +0 -47
- package/dist-lib/swimlanes-5IMT3BWC-CvqDJcS9.js +0 -5353
- package/dist-lib/timeline-definition-FHXFAJF6-b15X0Oru.js +0 -1066
- package/dist-lib/vennDiagram-L72KCM5P-C4lh5m77.js +0 -1585
- package/dist-lib/wardleyDiagram-EHGQE667-Cev6fT_D.js +0 -684
|
@@ -1,315 +0,0 @@
|
|
|
1
|
-
import { _ as d, l as i } from "./index-JkCQXUYs.js";
|
|
2
|
-
import { i as C, G as y } from "./graph-B68L3K2T.js";
|
|
3
|
-
import { b as _, m as X } from "./map-hbfFlSln.js";
|
|
4
|
-
var j = 4;
|
|
5
|
-
function p(e) {
|
|
6
|
-
return _(e, j);
|
|
7
|
-
}
|
|
8
|
-
function b(e) {
|
|
9
|
-
var r = {
|
|
10
|
-
options: {
|
|
11
|
-
directed: e.isDirected(),
|
|
12
|
-
multigraph: e.isMultigraph(),
|
|
13
|
-
compound: e.isCompound()
|
|
14
|
-
},
|
|
15
|
-
nodes: F(e),
|
|
16
|
-
edges: M(e)
|
|
17
|
-
};
|
|
18
|
-
return C(e.graph()) || (r.value = p(e.graph())), r;
|
|
19
|
-
}
|
|
20
|
-
function F(e) {
|
|
21
|
-
return X(e.nodes(), function(r) {
|
|
22
|
-
var s = e.node(r), n = e.parent(r), a = { v: r };
|
|
23
|
-
return C(s) || (a.value = s), C(n) || (a.parent = n), a;
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
function M(e) {
|
|
27
|
-
return X(e.edges(), function(r) {
|
|
28
|
-
var s = e.edge(r), n = { v: r.v, w: r.w };
|
|
29
|
-
return C(r.name) || (n.name = r.name), C(s) || (n.value = s), n;
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
var c = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map(), A = /* @__PURE__ */ new Map(), J = /* @__PURE__ */ d(() => {
|
|
33
|
-
v.clear(), A.clear(), c.clear();
|
|
34
|
-
}, "clear"), g = /* @__PURE__ */ d((e, r) => {
|
|
35
|
-
const s = v.get(r) || [];
|
|
36
|
-
return i.trace("In isDescendant", r, " ", e, " = ", s.includes(e)), s.includes(e);
|
|
37
|
-
}, "isDescendant"), R = /* @__PURE__ */ d((e, r) => {
|
|
38
|
-
const s = v.get(r) || [];
|
|
39
|
-
return i.info("Descendants of ", r, " is ", s), i.info("Edge is ", e), e.v === r || e.w === r ? !1 : s ? s.includes(e.v) || g(e.v, r) || g(e.w, r) || s.includes(e.w) : (i.debug("Tilt, ", r, ",not in descendants"), !1);
|
|
40
|
-
}, "edgeInCluster"), x = /* @__PURE__ */ d((e, r, s, n) => {
|
|
41
|
-
i.warn(
|
|
42
|
-
"Copying children of ",
|
|
43
|
-
e,
|
|
44
|
-
"root",
|
|
45
|
-
n,
|
|
46
|
-
"data",
|
|
47
|
-
r.node(e),
|
|
48
|
-
n
|
|
49
|
-
);
|
|
50
|
-
const a = r.children(e) || [];
|
|
51
|
-
e !== n && a.push(e), i.warn("Copying (nodes) clusterId", e, "nodes", a), a.forEach((o) => {
|
|
52
|
-
if (r.children(o).length > 0)
|
|
53
|
-
x(o, r, s, n);
|
|
54
|
-
else {
|
|
55
|
-
const l = r.node(o);
|
|
56
|
-
i.info("cp ", o, " to ", n, " with parent ", e), s.setNode(o, l), n !== r.parent(o) && (i.warn("Setting parent", o, r.parent(o)), s.setParent(o, r.parent(o))), e !== n && o !== e ? (i.debug("Setting parent", o, e), s.setParent(o, e)) : (i.info("In copy ", e, "root", n, "data", r.node(e), n), i.debug(
|
|
57
|
-
"Not Setting parent for node=",
|
|
58
|
-
o,
|
|
59
|
-
"cluster!==rootId",
|
|
60
|
-
e !== n,
|
|
61
|
-
"node!==clusterId",
|
|
62
|
-
o !== e
|
|
63
|
-
));
|
|
64
|
-
const u = r.edges(o);
|
|
65
|
-
i.debug("Copying Edges", u), u.forEach((t) => {
|
|
66
|
-
i.info("Edge", t);
|
|
67
|
-
const f = r.edge(t.v, t.w, t.name);
|
|
68
|
-
i.info("Edge data", f, n);
|
|
69
|
-
try {
|
|
70
|
-
if (R(t, n)) {
|
|
71
|
-
const w = v.get(n) || [], m = w.includes(t.v) || g(t.v, n) || t.v === n, D = w.includes(t.w) || g(t.w, n) || t.w === n;
|
|
72
|
-
if (m && D)
|
|
73
|
-
i.info("Copying as ", t.v, t.w, f, t.name), s.setEdge(t.v, t.w, f, t.name), i.info("newGraph edges ", s.edges(), s.edge(s.edges()[0]));
|
|
74
|
-
else {
|
|
75
|
-
const N = m ? n : t.v, h = D ? n : t.w;
|
|
76
|
-
i.info("Rebinding cross-boundary edge as ", N, h, f, t.name), r.setEdge(N, h, f, t.name);
|
|
77
|
-
}
|
|
78
|
-
} else
|
|
79
|
-
i.info(
|
|
80
|
-
"Skipping copy of edge ",
|
|
81
|
-
t.v,
|
|
82
|
-
"-->",
|
|
83
|
-
t.w,
|
|
84
|
-
" rootId: ",
|
|
85
|
-
n,
|
|
86
|
-
" clusterId:",
|
|
87
|
-
e
|
|
88
|
-
);
|
|
89
|
-
} catch (w) {
|
|
90
|
-
i.error(w);
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
i.debug("Removing node", o), r.removeNode(o);
|
|
95
|
-
});
|
|
96
|
-
}, "copy"), O = /* @__PURE__ */ d((e, r) => {
|
|
97
|
-
const s = r.children(e);
|
|
98
|
-
let n = [...s];
|
|
99
|
-
for (const a of s)
|
|
100
|
-
A.set(a, e), n = [...n, ...O(a, r)];
|
|
101
|
-
return n;
|
|
102
|
-
}, "extractDescendants"), P = /* @__PURE__ */ d((e, r, s) => {
|
|
103
|
-
const n = e.edges().filter((t) => t.v === r || t.w === r), a = e.edges().filter((t) => t.v === s || t.w === s), o = n.map((t) => ({ v: t.v === r ? s : t.v, w: t.w === r ? r : t.w })), l = a.map((t) => ({ v: t.v, w: t.w }));
|
|
104
|
-
return o.filter((t) => l.some((f) => t.v === f.v && t.w === f.w));
|
|
105
|
-
}, "findCommonEdges"), E = /* @__PURE__ */ d((e, r, s) => {
|
|
106
|
-
const n = r.children(e);
|
|
107
|
-
if (i.trace("Searching children of id ", e, n), n.length < 1)
|
|
108
|
-
return e;
|
|
109
|
-
let a;
|
|
110
|
-
for (const o of n) {
|
|
111
|
-
const l = E(o, r, s), u = P(r, s, l);
|
|
112
|
-
if (l)
|
|
113
|
-
if (u.length > 0)
|
|
114
|
-
a = l;
|
|
115
|
-
else
|
|
116
|
-
return l;
|
|
117
|
-
}
|
|
118
|
-
return a;
|
|
119
|
-
}, "findNonClusterChild"), S = /* @__PURE__ */ d((e) => !c.has(e) || !c.get(e).externalConnections ? e : c.has(e) ? c.get(e).id : e, "getAnchorId"), U = /* @__PURE__ */ d((e, r) => {
|
|
120
|
-
var s;
|
|
121
|
-
if (!e || r > 10) {
|
|
122
|
-
i.debug("Opting out, no graph ");
|
|
123
|
-
return;
|
|
124
|
-
} else
|
|
125
|
-
i.debug("Opting in, graph ");
|
|
126
|
-
e.nodes().forEach(function(n) {
|
|
127
|
-
e.children(n).length > 0 && (i.warn(
|
|
128
|
-
"Cluster identified",
|
|
129
|
-
n,
|
|
130
|
-
" Replacement id in edges: ",
|
|
131
|
-
E(n, e, n)
|
|
132
|
-
), v.set(n, O(n, e)), c.set(n, { id: E(n, e, n), clusterData: e.node(n) }));
|
|
133
|
-
}), e.nodes().forEach(function(n) {
|
|
134
|
-
const a = e.children(n), o = e.edges();
|
|
135
|
-
a.length > 0 ? (i.debug("Cluster identified", n, v), o.forEach((l) => {
|
|
136
|
-
const u = g(l.v, n), t = g(l.w, n);
|
|
137
|
-
u ^ t && (i.warn("Edge: ", l, " leaves cluster ", n), i.warn("Descendants of XXX ", n, ": ", v.get(n)), c.get(n).externalConnections = !0);
|
|
138
|
-
})) : i.debug("Not a cluster ", n, v);
|
|
139
|
-
});
|
|
140
|
-
for (let n of c.keys()) {
|
|
141
|
-
const a = c.get(n).id, o = e.parent(a);
|
|
142
|
-
o !== n && c.has(o) && !c.get(o).externalConnections && (c.get(n).id = o);
|
|
143
|
-
const l = e.edges().some((u) => u.v === n);
|
|
144
|
-
if (a && ((s = c.get(n)) != null && s.externalConnections) && l && L(e, a, n)) {
|
|
145
|
-
const u = T(e, n, e.parent(a));
|
|
146
|
-
u && (c.get(n).id = u);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
e.edges().forEach(function(n) {
|
|
150
|
-
const a = e.edge(n);
|
|
151
|
-
i.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(n)), i.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(e.edge(n)));
|
|
152
|
-
let o = n.v, l = n.w;
|
|
153
|
-
if (i.warn(
|
|
154
|
-
"Fix XXX",
|
|
155
|
-
c,
|
|
156
|
-
"ids:",
|
|
157
|
-
n.v,
|
|
158
|
-
n.w,
|
|
159
|
-
"Translating: ",
|
|
160
|
-
c.get(n.v),
|
|
161
|
-
" --- ",
|
|
162
|
-
c.get(n.w)
|
|
163
|
-
), c.get(n.v) || c.get(n.w)) {
|
|
164
|
-
if (i.warn("Fixing and trying - removing XXX", n.v, n.w, n.name), o = S(n.v), l = S(n.w), e.removeEdge(n.v, n.w, n.name), o !== n.v) {
|
|
165
|
-
const u = e.parent(o);
|
|
166
|
-
c.get(u).externalConnections = !0, a.fromCluster = n.v;
|
|
167
|
-
}
|
|
168
|
-
if (l !== n.w) {
|
|
169
|
-
const u = e.parent(l);
|
|
170
|
-
c.get(u).externalConnections = !0, a.toCluster = n.w;
|
|
171
|
-
}
|
|
172
|
-
i.warn("Fix Replacing with XXX", o, l, n.name), e.setEdge(o, l, a, n.name);
|
|
173
|
-
}
|
|
174
|
-
}), i.warn("Adjusted Graph", b(e)), k(e, 0), i.trace(c);
|
|
175
|
-
}, "adjustClustersAndEdges"), k = /* @__PURE__ */ d((e, r) => {
|
|
176
|
-
var a, o, l, u;
|
|
177
|
-
if (i.warn("extractor - ", r, b(e), e.children("D")), r > 10) {
|
|
178
|
-
i.error("Bailing out");
|
|
179
|
-
return;
|
|
180
|
-
}
|
|
181
|
-
let s = e.nodes(), n = !1;
|
|
182
|
-
for (const t of s) {
|
|
183
|
-
const f = e.children(t);
|
|
184
|
-
n = n || f.length > 0;
|
|
185
|
-
}
|
|
186
|
-
if (!n) {
|
|
187
|
-
i.debug("Done, no node has children", e.nodes());
|
|
188
|
-
return;
|
|
189
|
-
}
|
|
190
|
-
i.debug("Nodes = ", s, r);
|
|
191
|
-
for (const t of s)
|
|
192
|
-
if (i.debug(
|
|
193
|
-
"Extracting node",
|
|
194
|
-
t,
|
|
195
|
-
c,
|
|
196
|
-
c.has(t) && !c.get(t).externalConnections,
|
|
197
|
-
!e.parent(t),
|
|
198
|
-
e.node(t),
|
|
199
|
-
e.children("D"),
|
|
200
|
-
" Depth ",
|
|
201
|
-
r
|
|
202
|
-
), !c.has(t))
|
|
203
|
-
i.debug("Not a cluster", t, r);
|
|
204
|
-
else if ((o = (a = c.get(t)) == null ? void 0 : a.clusterData) != null && o.explicitDir && e.children(t) && e.children(t).length > 0) {
|
|
205
|
-
i.warn("Cluster with explicit dir, creating subgraph for children", t, r);
|
|
206
|
-
const f = c.get(t).clusterData.dir, w = new y({
|
|
207
|
-
multigraph: !0,
|
|
208
|
-
compound: !0
|
|
209
|
-
}).setGraph({
|
|
210
|
-
rankdir: f,
|
|
211
|
-
nodesep: 50,
|
|
212
|
-
ranksep: 50,
|
|
213
|
-
marginx: 8,
|
|
214
|
-
marginy: 8
|
|
215
|
-
}).setDefaultEdgeLabel(function() {
|
|
216
|
-
return {};
|
|
217
|
-
});
|
|
218
|
-
x(t, e, w, t);
|
|
219
|
-
const m = e.node(t) || {};
|
|
220
|
-
e.setNode(t, {
|
|
221
|
-
...m,
|
|
222
|
-
clusterNode: !0,
|
|
223
|
-
id: t,
|
|
224
|
-
clusterData: c.get(t).clusterData,
|
|
225
|
-
label: c.get(t).label,
|
|
226
|
-
graph: w
|
|
227
|
-
}), i.warn(
|
|
228
|
-
"Subgraph for cluster with explicit dir created:",
|
|
229
|
-
t,
|
|
230
|
-
b(w)
|
|
231
|
-
);
|
|
232
|
-
} else if (!c.get(t).externalConnections && e.children(t) && e.children(t).length > 0) {
|
|
233
|
-
i.warn(
|
|
234
|
-
"Cluster without external connections, without a parent and with children",
|
|
235
|
-
t,
|
|
236
|
-
r
|
|
237
|
-
);
|
|
238
|
-
let w = e.graph().rankdir === "TB" ? "LR" : "TB";
|
|
239
|
-
(u = (l = c.get(t)) == null ? void 0 : l.clusterData) != null && u.dir && (w = c.get(t).clusterData.dir, i.warn("Fixing dir", c.get(t).clusterData.dir, w));
|
|
240
|
-
const m = new y({
|
|
241
|
-
multigraph: !0,
|
|
242
|
-
compound: !0
|
|
243
|
-
}).setGraph({
|
|
244
|
-
rankdir: w,
|
|
245
|
-
nodesep: 50,
|
|
246
|
-
ranksep: 50,
|
|
247
|
-
marginx: 8,
|
|
248
|
-
marginy: 8
|
|
249
|
-
}).setDefaultEdgeLabel(function() {
|
|
250
|
-
return {};
|
|
251
|
-
});
|
|
252
|
-
x(t, e, m, t);
|
|
253
|
-
const D = e.node(t) || {};
|
|
254
|
-
e.setNode(t, {
|
|
255
|
-
...D,
|
|
256
|
-
clusterNode: !0,
|
|
257
|
-
id: t,
|
|
258
|
-
clusterData: c.get(t).clusterData,
|
|
259
|
-
label: c.get(t).label,
|
|
260
|
-
graph: m
|
|
261
|
-
}), i.debug("Old graph after copy", b(e));
|
|
262
|
-
} else
|
|
263
|
-
i.warn(
|
|
264
|
-
"Cluster ** ",
|
|
265
|
-
t,
|
|
266
|
-
" **not meeting the criteria !externalConnections:",
|
|
267
|
-
!c.get(t).externalConnections,
|
|
268
|
-
" no parent: ",
|
|
269
|
-
!e.parent(t),
|
|
270
|
-
" children ",
|
|
271
|
-
e.children(t) && e.children(t).length > 0,
|
|
272
|
-
e.children("D"),
|
|
273
|
-
r
|
|
274
|
-
), i.debug(c);
|
|
275
|
-
s = e.nodes(), i.warn("New list of nodes", s);
|
|
276
|
-
for (const t of s) {
|
|
277
|
-
const f = e.node(t);
|
|
278
|
-
i.warn(" Now next level", t, f), f != null && f.clusterNode && k(f.graph, r + 1);
|
|
279
|
-
}
|
|
280
|
-
}, "extractor"), B = /* @__PURE__ */ d((e, r) => {
|
|
281
|
-
if (r.length === 0)
|
|
282
|
-
return [];
|
|
283
|
-
let s = Object.assign([], r);
|
|
284
|
-
return r.forEach((n) => {
|
|
285
|
-
const a = e.children(n), o = B(e, a);
|
|
286
|
-
s = [...s, ...o];
|
|
287
|
-
}), s;
|
|
288
|
-
}, "sorter"), W = /* @__PURE__ */ d((e) => B(e, e.children()), "sortNodesByHierarchy"), L = /* @__PURE__ */ d((e, r, s) => {
|
|
289
|
-
let n = e.parent(r);
|
|
290
|
-
for (; n && n !== s; ) {
|
|
291
|
-
const a = c.get(n);
|
|
292
|
-
if (a && !a.externalConnections)
|
|
293
|
-
return !0;
|
|
294
|
-
n = e.parent(n);
|
|
295
|
-
}
|
|
296
|
-
return !1;
|
|
297
|
-
}, "isNodeInExtractableCluster"), T = /* @__PURE__ */ d((e, r, s) => {
|
|
298
|
-
const n = e.children(r) ?? [];
|
|
299
|
-
for (const a of n) {
|
|
300
|
-
if (a === s || g(a, s))
|
|
301
|
-
continue;
|
|
302
|
-
const o = E(a, e, r);
|
|
303
|
-
if (o && !L(e, o, r))
|
|
304
|
-
return o;
|
|
305
|
-
}
|
|
306
|
-
return null;
|
|
307
|
-
}, "findSafeAnchorNode");
|
|
308
|
-
export {
|
|
309
|
-
U as a,
|
|
310
|
-
c as b,
|
|
311
|
-
J as c,
|
|
312
|
-
E as f,
|
|
313
|
-
W as s,
|
|
314
|
-
b as w
|
|
315
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { _ as a, e as w, l as x } from "./index-JkCQXUYs.js";
|
|
2
|
-
var d = /* @__PURE__ */ a((e, t, i, o) => {
|
|
3
|
-
e.attr("class", i);
|
|
4
|
-
const { width: r, height: h, x: n, y: c } = u(e, t);
|
|
5
|
-
w(e, h, r, o);
|
|
6
|
-
const s = l(n, c, r, h, t);
|
|
7
|
-
e.attr("viewBox", s), x.debug(`viewBox configured: ${s} with padding: ${t}`);
|
|
8
|
-
}, "setupViewPortForSVG"), u = /* @__PURE__ */ a((e, t) => {
|
|
9
|
-
var o;
|
|
10
|
-
const i = ((o = e.node()) == null ? void 0 : o.getBBox()) || { width: 0, height: 0, x: 0, y: 0 };
|
|
11
|
-
return {
|
|
12
|
-
width: i.width + t * 2,
|
|
13
|
-
height: i.height + t * 2,
|
|
14
|
-
x: i.x,
|
|
15
|
-
y: i.y
|
|
16
|
-
};
|
|
17
|
-
}, "calculateDimensionsWithPadding"), l = /* @__PURE__ */ a((e, t, i, o, r) => `${e - r} ${t - r} ${i} ${o}`, "createViewBox");
|
|
18
|
-
export {
|
|
19
|
-
d as s
|
|
20
|
-
};
|