@blueking/ai-blueking 2.1.4-beta.7 → 2.1.4-beta.8
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/standalone/_baseFor-DZ1vnh4H.js +393 -0
- package/dist/standalone/arc-WNacHY26.js +80 -0
- package/dist/standalone/architecture-YZFGNWBL-pIa_tKdA.js +3 -0
- package/dist/standalone/architectureDiagram-Q4EWVU46-Bfam8Fg3.js +4057 -0
- package/dist/standalone/array-CWNufkl9.js +6 -0
- package/dist/standalone/blockDiagram-DXYQGD6D-vAb9uyF5.js +3033 -0
- package/dist/standalone/c4Diagram-AHTNJAMY-BWACU0ER.js +2961 -0
- package/dist/standalone/channel-Br5ChI8U.js +5 -0
- package/dist/standalone/chunk-2KRD3SAO-Deh6AASy.js +23 -0
- package/dist/standalone/chunk-336JU56O-CFKWNcxR.js +49 -0
- package/dist/standalone/chunk-426QAEUC-D_wKNd3w.js +9 -0
- package/dist/standalone/chunk-4BX2VUAB-DKC_OBWg.js +8 -0
- package/dist/standalone/chunk-4TB4RGXK-HiVG7T1A.js +3254 -0
- package/dist/standalone/chunk-55IACEB6-DBivnNb2.js +8 -0
- package/dist/standalone/chunk-5FUZZQ4R-tiEjqlP4.js +3638 -0
- package/dist/standalone/chunk-5PVQY5BW-BCjrVrWB.js +1299 -0
- package/dist/standalone/chunk-67CJDMHE-BX09W6oy.js +23 -0
- package/dist/standalone/chunk-7N4EOEYR-G144j5Vc.js +35 -0
- package/dist/standalone/chunk-AA7GKIK3-Dx9YCoJ-.js +30 -0
- package/dist/standalone/chunk-BSJP7CBP-DE8WR0MI.js +82 -0
- package/dist/standalone/chunk-CIAEETIT-Bv86XVLB.js +23 -0
- package/dist/standalone/chunk-EDXVE4YY-DE9KzYM-.js +25 -0
- package/dist/standalone/chunk-ENJZ2VHE-DlxIC-A3.js +560 -0
- package/dist/standalone/chunk-FMBD7UC4-DCkBrKFO.js +5 -0
- package/dist/standalone/chunk-FOC6F5B3-C7hwrEZJ.js +23 -0
- package/dist/standalone/chunk-ICPOFSXX-B9JXAgJU.js +2772 -0
- package/dist/standalone/chunk-K5T4RW27-T6hJxJM0.js +16070 -0
- package/dist/standalone/chunk-KGLVRYIC-C0JPhrjn.js +23 -0
- package/dist/standalone/chunk-LIHQZDEY-CiavnvWh.js +64 -0
- package/dist/standalone/chunk-ORNJ4GCN-BtJ79bik.js +31 -0
- package/dist/standalone/chunk-OYMX7WX6-D2UHnmfD.js +2014 -0
- package/dist/standalone/chunk-QZHKN3VN-DhzThSvb.js +15 -0
- package/dist/standalone/chunk-U2HBQHQK-75Isf1R4.js +1896 -0
- package/dist/standalone/chunk-WQLz0Won.js +20 -0
- package/dist/standalone/chunk-X2U36JSP-DSzducJI.js +67 -0
- package/dist/standalone/chunk-XPW4576I-BFhmu0d4.js +1146 -0
- package/dist/standalone/chunk-YZCP3GAM-90EaSO-2.js +60 -0
- package/dist/standalone/chunk-ZZ45TVLE-DUagTZ9d.js +32 -0
- package/dist/standalone/classDiagram-6PBFFD2Q-Bwt78q4N.js +29 -0
- package/dist/standalone/classDiagram-v2-HSJHXN6E-B2qI9-xf.js +29 -0
- package/dist/standalone/clone-CBw-BHXl.js +8 -0
- package/dist/standalone/cose-bilkent-S5V4N54A-DFJ1nlog.js +2250 -0
- package/dist/standalone/cytoscape.esm-DdhenceR.js +18103 -0
- package/dist/standalone/dagre-KV5264BT-CXTBtAae.js +293 -0
- package/dist/standalone/dagre-kfvGmNUa.js +1606 -0
- package/dist/standalone/defaultLocale-bckJcYh1.js +201 -0
- package/dist/standalone/diagram-5BDNPKRD--gLHDKg-.js +101 -0
- package/dist/standalone/diagram-G4DWMVQ6-BwLE9Hsf.js +524 -0
- package/dist/standalone/diagram-MMDJMWI5-CoilYxa0.js +213 -0
- package/dist/standalone/diagram-TYMM5635-BupwRdr6.js +133 -0
- package/dist/standalone/dist-Dlj1jr8W.js +59 -0
- package/dist/standalone/erDiagram-SMLLAGMA-tIdn6ZCM.js +1700 -0
- package/dist/standalone/flatten-CXxC4cn2.js +40 -0
- package/dist/standalone/flowDiagram-DWJPFMVM-C86bLTAY.js +4146 -0
- package/dist/standalone/ganttDiagram-T4ZO3ILL-BT23lv_X.js +3077 -0
- package/dist/standalone/gitGraph-7Q5UKJZL-C-7nG8PF.js +3 -0
- package/dist/standalone/gitGraphDiagram-UUTBAWPF-DT1BGQsP.js +728 -0
- package/dist/standalone/graphlib-DrXiQBFg.js +373 -0
- package/dist/standalone/index.es.min.js +59705 -0
- package/dist/standalone/index.iife.min.js +3502 -0
- package/dist/standalone/index.umd.min.js +3502 -0
- package/dist/standalone/info-OMHHGYJF-BOS7mrON.js +3 -0
- package/dist/standalone/infoDiagram-42DDH7IO-Dx7LFK0B.js +19 -0
- package/dist/standalone/init-B75p2clj.js +15 -0
- package/dist/standalone/isEmpty-CVG4Bj-P.js +35 -0
- package/dist/standalone/ishikawaDiagram-UXIWVN3A-CX4cX3qb.js +718 -0
- package/dist/standalone/journeyDiagram-VCZTEJTY-BCvxmmFn.js +883 -0
- package/dist/standalone/kanban-definition-6JOO6SKY-SVINWaiM.js +973 -0
- package/dist/standalone/katex-CKrw0rbA.js +22016 -0
- package/dist/standalone/line-BF1XS-Ng.js +34 -0
- package/dist/standalone/linear-DGQDIL28.js +289 -0
- package/dist/standalone/mermaid-parser.core-Blz-Qy2h.js +69 -0
- package/dist/standalone/mermaid.core-CHTh1JGx.js +944 -0
- package/dist/standalone/mindmap-definition-QFDTVHPH-1Trzro3y.js +1009 -0
- package/dist/standalone/ordinal-F3U6aXtP.js +65 -0
- package/dist/standalone/packet-4T2RLAQJ-ai5Omp1h.js +3 -0
- package/dist/standalone/path-Dm3C8WEs.js +85 -0
- package/dist/standalone/pie-ZZUOXDRM-Df1rG6QC.js +3 -0
- package/dist/standalone/pieDiagram-DEJITSTG-D5Omb898.js +165 -0
- package/dist/standalone/purify.es-CZ_RvYUu.js +549 -0
- package/dist/standalone/quadrantDiagram-34T5L4WZ-Ct4g9T4o.js +1974 -0
- package/dist/standalone/radar-PYXPWWZC-B2t6k6Fg.js +3 -0
- package/dist/standalone/reduce-DbMsJ4nx.js +532 -0
- package/dist/standalone/requirementDiagram-MS252O5E-CP0BUgnz.js +2221 -0
- package/dist/standalone/rough.esm-UCEI3PYn.js +1352 -0
- package/dist/standalone/sankeyDiagram-XADWPNL6-D6C7yZ3k.js +920 -0
- package/dist/standalone/sequenceDiagram-FGHM5R23-KeodespT.js +4157 -0
- package/dist/standalone/src-CFVe5TPD.js +2146 -0
- package/dist/standalone/stateDiagram-FHFEXIEX-DAupoS9U.js +217 -0
- package/dist/standalone/stateDiagram-v2-QKLJ7IA2-C1Lw_i_z.js +27 -0
- package/dist/standalone/style.css +1 -0
- package/dist/standalone/timeline-definition-GMOUNBTQ-Cwhj84lX.js +1068 -0
- package/dist/standalone/treeView-SZITEDCU-BnoMeJSb.js +3 -0
- package/dist/standalone/treemap-W4RFUUIX-B38XFBZF.js +3 -0
- package/dist/standalone/vennDiagram-DHZGUBPP-_1PHloeO.js +1858 -0
- package/dist/standalone/wardley-RL74JXVD-bB8BBy_Y.js +3 -0
- package/dist/standalone/wardleyDiagram-NUSXRM2D-DRLCx-qh.js +578 -0
- package/dist/standalone/xychartDiagram-5P7HB3ND-Bz2-4Ufi.js +2044 -0
- package/dist/standalone-mount-core.d.ts +34 -0
- package/dist/standalone-mount-core.d.ts.map +1 -0
- package/dist/standalone-mount.d.ts +14 -0
- package/dist/standalone-mount.d.ts.map +1 -0
- package/dist/standalone.d.ts +8 -0
- package/dist/standalone.d.ts.map +1 -0
- package/package.json +12 -3
|
@@ -0,0 +1,560 @@
|
|
|
1
|
+
import { g as e, h as t, p as n } from "./src-CFVe5TPD.js";
|
|
2
|
+
import { b as r, w as i, y as a } from "./chunk-ICPOFSXX-B9JXAgJU.js";
|
|
3
|
+
import { B as o, F as s, G as c, H as l, I as u, L as d, P as f, R as p, U as m, V as h, W as g, h as _, l as v, z as y } from "./chunk-5PVQY5BW-BCjrVrWB.js";
|
|
4
|
+
import { t as b } from "./line-BF1XS-Ng.js";
|
|
5
|
+
import { n as x } from "./chunk-U2HBQHQK-75Isf1R4.js";
|
|
6
|
+
import { i as S, n as ee, r as C, t as w } from "./chunk-BSJP7CBP-DE8WR0MI.js";
|
|
7
|
+
import { n as T } from "./chunk-ZZ45TVLE-DUagTZ9d.js";
|
|
8
|
+
import { i as E, n as D } from "./chunk-X2U36JSP-DSzducJI.js";
|
|
9
|
+
import { t as te } from "./rough.esm-UCEI3PYn.js";
|
|
10
|
+
import { r as O } from "./chunk-5FUZZQ4R-tiEjqlP4.js";
|
|
11
|
+
//#region ../../node_modules/.pnpm/mermaid@11.14.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ENJZ2VHE.mjs
|
|
12
|
+
var ne = /* @__PURE__ */ t((e, t, n, r, i, a = !1, o) => {
|
|
13
|
+
t.arrowTypeStart && j(e, "start", t.arrowTypeStart, n, r, i, a, o), t.arrowTypeEnd && j(e, "end", t.arrowTypeEnd, n, r, i, a, o);
|
|
14
|
+
}, "addEdgeMarkers"), k = {
|
|
15
|
+
arrow_cross: {
|
|
16
|
+
type: "cross",
|
|
17
|
+
fill: !1
|
|
18
|
+
},
|
|
19
|
+
arrow_point: {
|
|
20
|
+
type: "point",
|
|
21
|
+
fill: !0
|
|
22
|
+
},
|
|
23
|
+
arrow_barb: {
|
|
24
|
+
type: "barb",
|
|
25
|
+
fill: !0
|
|
26
|
+
},
|
|
27
|
+
arrow_barb_neo: {
|
|
28
|
+
type: "barb",
|
|
29
|
+
fill: !0
|
|
30
|
+
},
|
|
31
|
+
arrow_circle: {
|
|
32
|
+
type: "circle",
|
|
33
|
+
fill: !1
|
|
34
|
+
},
|
|
35
|
+
aggregation: {
|
|
36
|
+
type: "aggregation",
|
|
37
|
+
fill: !1
|
|
38
|
+
},
|
|
39
|
+
extension: {
|
|
40
|
+
type: "extension",
|
|
41
|
+
fill: !1
|
|
42
|
+
},
|
|
43
|
+
composition: {
|
|
44
|
+
type: "composition",
|
|
45
|
+
fill: !0
|
|
46
|
+
},
|
|
47
|
+
dependency: {
|
|
48
|
+
type: "dependency",
|
|
49
|
+
fill: !0
|
|
50
|
+
},
|
|
51
|
+
lollipop: {
|
|
52
|
+
type: "lollipop",
|
|
53
|
+
fill: !1
|
|
54
|
+
},
|
|
55
|
+
only_one: {
|
|
56
|
+
type: "onlyOne",
|
|
57
|
+
fill: !1
|
|
58
|
+
},
|
|
59
|
+
zero_or_one: {
|
|
60
|
+
type: "zeroOrOne",
|
|
61
|
+
fill: !1
|
|
62
|
+
},
|
|
63
|
+
one_or_more: {
|
|
64
|
+
type: "oneOrMore",
|
|
65
|
+
fill: !1
|
|
66
|
+
},
|
|
67
|
+
zero_or_more: {
|
|
68
|
+
type: "zeroOrMore",
|
|
69
|
+
fill: !1
|
|
70
|
+
},
|
|
71
|
+
requirement_arrow: {
|
|
72
|
+
type: "requirement_arrow",
|
|
73
|
+
fill: !1
|
|
74
|
+
},
|
|
75
|
+
requirement_contains: {
|
|
76
|
+
type: "requirement_contains",
|
|
77
|
+
fill: !1
|
|
78
|
+
}
|
|
79
|
+
}, A = [
|
|
80
|
+
"cross",
|
|
81
|
+
"point",
|
|
82
|
+
"circle",
|
|
83
|
+
"lollipop",
|
|
84
|
+
"aggregation",
|
|
85
|
+
"extension",
|
|
86
|
+
"composition",
|
|
87
|
+
"dependency",
|
|
88
|
+
"barb"
|
|
89
|
+
], j = /* @__PURE__ */ t((t, n, r, i, a, o, s = !1, c) => {
|
|
90
|
+
let l = k[r], u = l && A.includes(l.type);
|
|
91
|
+
if (!l) {
|
|
92
|
+
e.warn(`Unknown arrow type: ${r}`);
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
let d = `${a}_${o}-${l.type}${n === "start" ? "Start" : "End"}${s && u ? "-margin" : ""}`;
|
|
96
|
+
if (c && c.trim() !== "") {
|
|
97
|
+
let e = `${d}_${c.replace(/[^\dA-Za-z]/g, "_")}`;
|
|
98
|
+
if (!document.getElementById(e)) {
|
|
99
|
+
let t = document.getElementById(d);
|
|
100
|
+
if (t) {
|
|
101
|
+
let n = t.cloneNode(!0);
|
|
102
|
+
n.id = e, n.querySelectorAll("path, circle, line").forEach((e) => {
|
|
103
|
+
e.setAttribute("stroke", c), l.fill && e.setAttribute("fill", c);
|
|
104
|
+
}), t.parentNode?.appendChild(n);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
t.attr(`marker-${n}`, `url(${i}#${e})`);
|
|
108
|
+
} else t.attr(`marker-${n}`, `url(${i}#${d})`);
|
|
109
|
+
}, "addEdgeMarker"), re = /* @__PURE__ */ t((e) => typeof e == "string" ? e : r()?.flowchart?.curve, "resolveEdgeCurveType"), M = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ t(() => {
|
|
110
|
+
M.clear(), N.clear();
|
|
111
|
+
}, "clear"), F = /* @__PURE__ */ t((e) => e ? typeof e == "string" ? e : e.reduce((e, t) => e + ";" + t, "") : "", "getLabelStyles"), I = /* @__PURE__ */ t(async (t, a) => {
|
|
112
|
+
let o = r(), s = i(o), { labelStyles: c } = E(a);
|
|
113
|
+
a.labelStyle = c;
|
|
114
|
+
let l = t.insert("g").attr("class", "edgeLabel"), u = l.insert("g").attr("class", "label").attr("data-id", a.id), d = a.labelType === "markdown", f = await x(t, a.label, {
|
|
115
|
+
style: F(a.labelStyle),
|
|
116
|
+
useHtmlLabels: s,
|
|
117
|
+
addSvgBackground: !0,
|
|
118
|
+
isNode: !1,
|
|
119
|
+
markdown: d,
|
|
120
|
+
width: void 0
|
|
121
|
+
}, o);
|
|
122
|
+
u.node().appendChild(f), e.info("abc82", a, a.labelType);
|
|
123
|
+
let p = f.getBBox(), m = p;
|
|
124
|
+
if (s) {
|
|
125
|
+
let e = f.children[0], t = n(f);
|
|
126
|
+
p = e.getBoundingClientRect(), m = p, t.attr("width", p.width), t.attr("height", p.height);
|
|
127
|
+
} else {
|
|
128
|
+
let e = n(f).select("text").node();
|
|
129
|
+
e && typeof e.getBBox == "function" && (m = e.getBBox());
|
|
130
|
+
}
|
|
131
|
+
u.attr("transform", w(m, s)), M.set(a.id, l), a.width = p.width, a.height = p.height;
|
|
132
|
+
let h;
|
|
133
|
+
if (a.startLabelLeft) {
|
|
134
|
+
let e = t.insert("g").attr("class", "edgeTerminals"), r = e.insert("g").attr("class", "inner"), i = await O(r, a.startLabelLeft, F(a.labelStyle) || "", !1, !1);
|
|
135
|
+
h = i;
|
|
136
|
+
let o = i.getBBox();
|
|
137
|
+
if (s) {
|
|
138
|
+
let e = i.children[0], t = n(i);
|
|
139
|
+
o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
|
|
140
|
+
}
|
|
141
|
+
r.attr("transform", w(o, s)), N.get(a.id) || N.set(a.id, {}), N.get(a.id).startLeft = e, L(h, a.startLabelLeft);
|
|
142
|
+
}
|
|
143
|
+
if (a.startLabelRight) {
|
|
144
|
+
let e = t.insert("g").attr("class", "edgeTerminals"), r = e.insert("g").attr("class", "inner"), i = await O(r, a.startLabelRight, F(a.labelStyle) || "", !1, !1);
|
|
145
|
+
h = i, r.node().appendChild(i);
|
|
146
|
+
let o = i.getBBox();
|
|
147
|
+
if (s) {
|
|
148
|
+
let e = i.children[0], t = n(i);
|
|
149
|
+
o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
|
|
150
|
+
}
|
|
151
|
+
r.attr("transform", w(o, s)), N.get(a.id) || N.set(a.id, {}), N.get(a.id).startRight = e, L(h, a.startLabelRight);
|
|
152
|
+
}
|
|
153
|
+
if (a.endLabelLeft) {
|
|
154
|
+
let e = t.insert("g").attr("class", "edgeTerminals"), r = e.insert("g").attr("class", "inner"), i = await O(r, a.endLabelLeft, F(a.labelStyle) || "", !1, !1);
|
|
155
|
+
h = i;
|
|
156
|
+
let o = i.getBBox();
|
|
157
|
+
if (s) {
|
|
158
|
+
let e = i.children[0], t = n(i);
|
|
159
|
+
o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
|
|
160
|
+
}
|
|
161
|
+
r.attr("transform", w(o, s)), e.node().appendChild(i), N.get(a.id) || N.set(a.id, {}), N.get(a.id).endLeft = e, L(h, a.endLabelLeft);
|
|
162
|
+
}
|
|
163
|
+
if (a.endLabelRight) {
|
|
164
|
+
let e = t.insert("g").attr("class", "edgeTerminals"), r = e.insert("g").attr("class", "inner"), i = await O(r, a.endLabelRight, F(a.labelStyle) || "", !1, !1);
|
|
165
|
+
h = i;
|
|
166
|
+
let o = i.getBBox();
|
|
167
|
+
if (s) {
|
|
168
|
+
let e = i.children[0], t = n(i);
|
|
169
|
+
o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
|
|
170
|
+
}
|
|
171
|
+
r.attr("transform", w(o, s)), e.node().appendChild(i), N.get(a.id) || N.set(a.id, {}), N.get(a.id).endRight = e, L(h, a.endLabelRight);
|
|
172
|
+
}
|
|
173
|
+
return f;
|
|
174
|
+
}, "insertEdgeLabel");
|
|
175
|
+
function L(e, t) {
|
|
176
|
+
i(r()) && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px");
|
|
177
|
+
}
|
|
178
|
+
t(L, "setTerminalWidth");
|
|
179
|
+
var R = /* @__PURE__ */ t((t, n) => {
|
|
180
|
+
e.debug("Moving label abc88 ", t.id, t.label, M.get(t.id), n);
|
|
181
|
+
let i = n.updatedPath ? n.updatedPath : n.originalPath, { subGraphTitleTotalMargin: a } = T(r());
|
|
182
|
+
if (t.label) {
|
|
183
|
+
let r = M.get(t.id), o = t.x, s = t.y;
|
|
184
|
+
if (i) {
|
|
185
|
+
let r = _.calcLabelPosition(i);
|
|
186
|
+
e.debug("Moving label " + t.label + " from (", o, ",", s, ") to (", r.x, ",", r.y, ") abc88"), n.updatedPath && (o = r.x, s = r.y);
|
|
187
|
+
}
|
|
188
|
+
r.attr("transform", `translate(${o}, ${s + a / 2})`);
|
|
189
|
+
}
|
|
190
|
+
if (t.startLabelLeft) {
|
|
191
|
+
let e = N.get(t.id).startLeft, n = t.x, r = t.y;
|
|
192
|
+
if (i) {
|
|
193
|
+
let e = _.calcTerminalLabelPosition(t.arrowTypeStart ? 10 : 0, "start_left", i);
|
|
194
|
+
n = e.x, r = e.y;
|
|
195
|
+
}
|
|
196
|
+
e.attr("transform", `translate(${n}, ${r})`);
|
|
197
|
+
}
|
|
198
|
+
if (t.startLabelRight) {
|
|
199
|
+
let e = N.get(t.id).startRight, n = t.x, r = t.y;
|
|
200
|
+
if (i) {
|
|
201
|
+
let e = _.calcTerminalLabelPosition(t.arrowTypeStart ? 10 : 0, "start_right", i);
|
|
202
|
+
n = e.x, r = e.y;
|
|
203
|
+
}
|
|
204
|
+
e.attr("transform", `translate(${n}, ${r})`);
|
|
205
|
+
}
|
|
206
|
+
if (t.endLabelLeft) {
|
|
207
|
+
let e = N.get(t.id).endLeft, n = t.x, r = t.y;
|
|
208
|
+
if (i) {
|
|
209
|
+
let e = _.calcTerminalLabelPosition(t.arrowTypeEnd ? 10 : 0, "end_left", i);
|
|
210
|
+
n = e.x, r = e.y;
|
|
211
|
+
}
|
|
212
|
+
e.attr("transform", `translate(${n}, ${r})`);
|
|
213
|
+
}
|
|
214
|
+
if (t.endLabelRight) {
|
|
215
|
+
let e = N.get(t.id).endRight, n = t.x, r = t.y;
|
|
216
|
+
if (i) {
|
|
217
|
+
let e = _.calcTerminalLabelPosition(t.arrowTypeEnd ? 10 : 0, "end_right", i);
|
|
218
|
+
n = e.x, r = e.y;
|
|
219
|
+
}
|
|
220
|
+
e.attr("transform", `translate(${n}, ${r})`);
|
|
221
|
+
}
|
|
222
|
+
}, "positionEdgeLabel"), z = /* @__PURE__ */ t((e, t) => {
|
|
223
|
+
let n = e.x, r = e.y, i = Math.abs(t.x - n), a = Math.abs(t.y - r), o = e.width / 2, s = e.height / 2;
|
|
224
|
+
return i >= o || a >= s;
|
|
225
|
+
}, "outsideNode"), B = /* @__PURE__ */ t((t, n, r) => {
|
|
226
|
+
e.debug(`intersection calc abc89:
|
|
227
|
+
outsidePoint: ${JSON.stringify(n)}
|
|
228
|
+
insidePoint : ${JSON.stringify(r)}
|
|
229
|
+
node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);
|
|
230
|
+
let i = t.x, a = t.y, o = Math.abs(i - r.x), s = t.width / 2, c = r.x < n.x ? s - o : s + o, l = t.height / 2, u = Math.abs(n.y - r.y), d = Math.abs(n.x - r.x);
|
|
231
|
+
if (Math.abs(a - n.y) * s > Math.abs(i - n.x) * l) {
|
|
232
|
+
let t = r.y < n.y ? n.y - l - a : a - l - n.y;
|
|
233
|
+
c = d * t / u;
|
|
234
|
+
let i = {
|
|
235
|
+
x: r.x < n.x ? r.x + c : r.x - d + c,
|
|
236
|
+
y: r.y < n.y ? r.y + u - t : r.y - u + t
|
|
237
|
+
};
|
|
238
|
+
return c === 0 && (i.x = n.x, i.y = n.y), d === 0 && (i.x = n.x), u === 0 && (i.y = n.y), e.debug(`abc89 top/bottom calc, Q ${u}, q ${t}, R ${d}, r ${c}`, i), i;
|
|
239
|
+
} else {
|
|
240
|
+
c = r.x < n.x ? n.x - s - i : i - s - n.x;
|
|
241
|
+
let t = u * c / d, a = r.x < n.x ? r.x + d - c : r.x - d + c, o = r.y < n.y ? r.y + t : r.y - t;
|
|
242
|
+
return e.debug(`sides calc abc89, Q ${u}, q ${t}, R ${d}, r ${c}`, {
|
|
243
|
+
_x: a,
|
|
244
|
+
_y: o
|
|
245
|
+
}), c === 0 && (a = n.x, o = n.y), d === 0 && (a = n.x), u === 0 && (o = n.y), {
|
|
246
|
+
x: a,
|
|
247
|
+
y: o
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
}, "intersection"), V = /* @__PURE__ */ t((t, n) => {
|
|
251
|
+
e.warn("abc88 cutPathAtIntersect", t, n);
|
|
252
|
+
let r = [], i = t[0], a = !1;
|
|
253
|
+
return t.forEach((t) => {
|
|
254
|
+
if (e.info("abc88 checking point", t, n), !z(n, t) && !a) {
|
|
255
|
+
let o = B(n, i, t);
|
|
256
|
+
e.debug("abc88 inside", t, i, o), e.debug("abc88 intersection", o, n);
|
|
257
|
+
let s = !1;
|
|
258
|
+
r.forEach((e) => {
|
|
259
|
+
s ||= e.x === o.x && e.y === o.y;
|
|
260
|
+
}), r.some((e) => e.x === o.x && e.y === o.y) ? e.warn("abc88 no intersect", o, r) : r.push(o), a = !0;
|
|
261
|
+
} else e.warn("abc88 outside", t, i), i = t, a || r.push(t);
|
|
262
|
+
}), e.debug("returning points", r), r;
|
|
263
|
+
}, "cutPathAtIntersect");
|
|
264
|
+
function H(e) {
|
|
265
|
+
let t = [], n = [];
|
|
266
|
+
for (let r = 1; r < e.length - 1; r++) {
|
|
267
|
+
let i = e[r - 1], a = e[r], o = e[r + 1];
|
|
268
|
+
(i.x === a.x && a.y === o.y && Math.abs(a.x - o.x) > 5 && Math.abs(a.y - i.y) > 5 || i.y === a.y && a.x === o.x && Math.abs(a.x - i.x) > 5 && Math.abs(a.y - o.y) > 5) && (t.push(a), n.push(r));
|
|
269
|
+
}
|
|
270
|
+
return {
|
|
271
|
+
cornerPoints: t,
|
|
272
|
+
cornerPointPositions: n
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
t(H, "extractCornerPoints");
|
|
276
|
+
var U = /* @__PURE__ */ t(function(e, t, n) {
|
|
277
|
+
let r = t.x - e.x, i = t.y - e.y, a = n / Math.sqrt(r * r + i * i);
|
|
278
|
+
return {
|
|
279
|
+
x: t.x - a * r,
|
|
280
|
+
y: t.y - a * i
|
|
281
|
+
};
|
|
282
|
+
}, "findAdjacentPoint"), ie = /* @__PURE__ */ t(function(t) {
|
|
283
|
+
let { cornerPointPositions: n } = H(t), r = [];
|
|
284
|
+
for (let i = 0; i < t.length; i++) if (n.includes(i)) {
|
|
285
|
+
let n = t[i - 1], a = t[i + 1], o = t[i], s = U(n, o, 5), c = U(a, o, 5), l = c.x - s.x, u = c.y - s.y;
|
|
286
|
+
r.push(s);
|
|
287
|
+
let d = Math.sqrt(2) * 2, f = {
|
|
288
|
+
x: o.x,
|
|
289
|
+
y: o.y
|
|
290
|
+
};
|
|
291
|
+
Math.abs(a.x - n.x) > 10 && Math.abs(a.y - n.y) >= 10 ? (e.debug("Corner point fixing", Math.abs(a.x - n.x), Math.abs(a.y - n.y)), f = o.x === s.x ? {
|
|
292
|
+
x: l < 0 ? s.x - 5 + d : s.x + 5 - d,
|
|
293
|
+
y: u < 0 ? s.y - d : s.y + d
|
|
294
|
+
} : {
|
|
295
|
+
x: l < 0 ? s.x - d : s.x + d,
|
|
296
|
+
y: u < 0 ? s.y - 5 + d : s.y + 5 - d
|
|
297
|
+
}) : e.debug("Corner point skipping fixing", Math.abs(a.x - n.x), Math.abs(a.y - n.y)), r.push(f, c);
|
|
298
|
+
} else r.push(t[i]);
|
|
299
|
+
return r;
|
|
300
|
+
}, "fixCorners"), W = /* @__PURE__ */ t((e, t, n) => {
|
|
301
|
+
let r = e - t - n, i = Math.floor(r / 4);
|
|
302
|
+
return `0 ${t} ${Array(i).fill("2 2").join(" ")} ${n}`;
|
|
303
|
+
}, "generateDashArray"), G = /* @__PURE__ */ t(function(t, i, a, x, C, w, T, E = !1) {
|
|
304
|
+
if (!T) throw Error(`insertEdge: missing diagramId for edge "${i.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);
|
|
305
|
+
let { handDrawnSeed: O } = r(), k = i.points, A = !1, j = C;
|
|
306
|
+
var M = w;
|
|
307
|
+
let N = [];
|
|
308
|
+
for (let e in i.cssCompiledStyles) D(e) || N.push(i.cssCompiledStyles[e]);
|
|
309
|
+
e.debug("UIO intersect check", i.points, M.x, j.x), M.intersect && j.intersect && !E && (k = k.slice(1, i.points.length - 1), k.unshift(j.intersect(k[0])), e.debug("Last point UIO", i.start, "-->", i.end, k[k.length - 1], M, M.intersect(k[k.length - 1])), k.push(M.intersect(k[k.length - 1])));
|
|
310
|
+
let P = btoa(JSON.stringify(k));
|
|
311
|
+
i.toCluster && (e.info("to cluster abc88", a.get(i.toCluster)), k = V(i.points, a.get(i.toCluster).node), A = !0), i.fromCluster && (e.debug("from cluster abc88", a.get(i.fromCluster), JSON.stringify(k, null, 2)), k = V(k.reverse(), a.get(i.fromCluster).node).reverse(), A = !0);
|
|
312
|
+
let F = k.filter((e) => !Number.isNaN(e.y)), I = re(i.curve);
|
|
313
|
+
I !== "rounded" && (F = ie(F));
|
|
314
|
+
let L = c;
|
|
315
|
+
switch (I) {
|
|
316
|
+
case "linear":
|
|
317
|
+
L = c;
|
|
318
|
+
break;
|
|
319
|
+
case "basis":
|
|
320
|
+
L = l;
|
|
321
|
+
break;
|
|
322
|
+
case "cardinal":
|
|
323
|
+
L = h;
|
|
324
|
+
break;
|
|
325
|
+
case "bumpX":
|
|
326
|
+
L = m;
|
|
327
|
+
break;
|
|
328
|
+
case "bumpY":
|
|
329
|
+
L = g;
|
|
330
|
+
break;
|
|
331
|
+
case "catmullRom":
|
|
332
|
+
L = o;
|
|
333
|
+
break;
|
|
334
|
+
case "monotoneX":
|
|
335
|
+
L = p;
|
|
336
|
+
break;
|
|
337
|
+
case "monotoneY":
|
|
338
|
+
L = y;
|
|
339
|
+
break;
|
|
340
|
+
case "natural":
|
|
341
|
+
L = d;
|
|
342
|
+
break;
|
|
343
|
+
case "step":
|
|
344
|
+
L = u;
|
|
345
|
+
break;
|
|
346
|
+
case "stepAfter":
|
|
347
|
+
L = f;
|
|
348
|
+
break;
|
|
349
|
+
case "stepBefore":
|
|
350
|
+
L = s;
|
|
351
|
+
break;
|
|
352
|
+
case "rounded":
|
|
353
|
+
L = c;
|
|
354
|
+
break;
|
|
355
|
+
default: L = l;
|
|
356
|
+
}
|
|
357
|
+
let { x: R, y: z } = ee(i), B = b().x(R).y(z).curve(L), H;
|
|
358
|
+
switch (i.thickness) {
|
|
359
|
+
case "normal":
|
|
360
|
+
H = "edge-thickness-normal";
|
|
361
|
+
break;
|
|
362
|
+
case "thick":
|
|
363
|
+
H = "edge-thickness-thick";
|
|
364
|
+
break;
|
|
365
|
+
case "invisible":
|
|
366
|
+
H = "edge-thickness-invisible";
|
|
367
|
+
break;
|
|
368
|
+
default: H = "edge-thickness-normal";
|
|
369
|
+
}
|
|
370
|
+
switch (i.pattern) {
|
|
371
|
+
case "solid":
|
|
372
|
+
H += " edge-pattern-solid";
|
|
373
|
+
break;
|
|
374
|
+
case "dotted":
|
|
375
|
+
H += " edge-pattern-dotted";
|
|
376
|
+
break;
|
|
377
|
+
case "dashed":
|
|
378
|
+
H += " edge-pattern-dashed";
|
|
379
|
+
break;
|
|
380
|
+
default: H += " edge-pattern-solid";
|
|
381
|
+
}
|
|
382
|
+
let U, G = I === "rounded" ? K(J(F, i), 5) : B(F), q = Array.isArray(i.style) ? i.style : [i.style], Y = q.find((e) => e?.startsWith("stroke:")), X = "";
|
|
383
|
+
i.animate && (X = "edge-animation-fast"), i.animation && (X = "edge-animation-" + i.animation);
|
|
384
|
+
let Z = !1;
|
|
385
|
+
if (i.look === "handDrawn") {
|
|
386
|
+
let e = te.svg(t);
|
|
387
|
+
Object.assign([], F);
|
|
388
|
+
let r = e.path(G, {
|
|
389
|
+
roughness: .3,
|
|
390
|
+
seed: O
|
|
391
|
+
});
|
|
392
|
+
H += " transition", U = n(r).select("path").attr("id", `${T}-${i.id}`).attr("class", " " + H + (i.classes ? " " + i.classes : "") + (X ? " " + X : "")).attr("style", q ? q.reduce((e, t) => e + ";" + t, "") : "");
|
|
393
|
+
let a = U.attr("d");
|
|
394
|
+
U.attr("d", a), t.node().appendChild(U.node());
|
|
395
|
+
} else {
|
|
396
|
+
let e = N.join(";"), n = q ? q.reduce((e, t) => e + t + ";", "") : "", r = (e ? e + ";" + n + ";" : n) + ";" + (q ? q.reduce((e, t) => e + ";" + t, "") : "");
|
|
397
|
+
U = t.append("path").attr("d", G).attr("id", `${T}-${i.id}`).attr("class", " " + H + (i.classes ? " " + i.classes : "") + (X ? " " + X : "")).attr("style", r), Y = r.match(/stroke:([^;]+)/)?.[1], Z = i.animate === !0 || !!i.animation || e.includes("animation");
|
|
398
|
+
let a = U.node(), o = typeof a.getTotalLength == "function" ? a.getTotalLength() : 0, s = S[i.arrowTypeStart] || 0, c = S[i.arrowTypeEnd] || 0;
|
|
399
|
+
if (i.look === "neo" && !Z) {
|
|
400
|
+
let e = `stroke-dasharray: ${i.pattern === "dotted" || i.pattern === "dashed" ? W(o, s, c) : `0 ${s} ${o - s - c} ${c}`}; stroke-dashoffset: 0;`;
|
|
401
|
+
U.attr("style", e + U.attr("style"));
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
U.attr("data-edge", !0), U.attr("data-et", "edge"), U.attr("data-id", i.id), U.attr("data-points", P), U.attr("data-look", v(i.look)), i.showPoints && F.forEach((e) => {
|
|
405
|
+
t.append("circle").style("stroke", "red").style("fill", "red").attr("r", 1).attr("cx", e.x).attr("cy", e.y);
|
|
406
|
+
});
|
|
407
|
+
let Q = "";
|
|
408
|
+
(r().flowchart.arrowMarkerAbsolute || r().state.arrowMarkerAbsolute) && (Q = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, Q = Q.replace(/\(/g, "\\(").replace(/\)/g, "\\)")), e.info("arrowTypeStart", i.arrowTypeStart), e.info("arrowTypeEnd", i.arrowTypeEnd);
|
|
409
|
+
let ae = !Z && i?.look === "neo";
|
|
410
|
+
ne(U, i, Q, T, x, ae, Y);
|
|
411
|
+
let oe = Math.floor(k.length / 2), se = k[oe];
|
|
412
|
+
_.isLabelCoordinateInPath(se, U.attr("d")) || (A = !0);
|
|
413
|
+
let $ = {};
|
|
414
|
+
return A && ($.updatedPath = k), $.originalPath = i.points, $;
|
|
415
|
+
}, "insertEdge");
|
|
416
|
+
function K(e, t) {
|
|
417
|
+
if (e.length < 2) return "";
|
|
418
|
+
let n = "", r = e.length, i = 1e-5;
|
|
419
|
+
for (let a = 0; a < r; a++) {
|
|
420
|
+
let o = e[a], s = e[a - 1], c = e[a + 1];
|
|
421
|
+
if (a === 0) n += `M${o.x},${o.y}`;
|
|
422
|
+
else if (a === r - 1) n += `L${o.x},${o.y}`;
|
|
423
|
+
else {
|
|
424
|
+
let e = o.x - s.x, r = o.y - s.y, a = c.x - o.x, l = c.y - o.y, u = Math.hypot(e, r), d = Math.hypot(a, l);
|
|
425
|
+
if (u < i || d < i) {
|
|
426
|
+
n += `L${o.x},${o.y}`;
|
|
427
|
+
continue;
|
|
428
|
+
}
|
|
429
|
+
let f = e / u, p = r / u, m = a / d, h = l / d, g = f * m + p * h, _ = Math.acos(Math.max(-1, Math.min(1, g)));
|
|
430
|
+
if (_ < i || Math.abs(Math.PI - _) < i) {
|
|
431
|
+
n += `L${o.x},${o.y}`;
|
|
432
|
+
continue;
|
|
433
|
+
}
|
|
434
|
+
let v = Math.min(t / Math.sin(_ / 2), u / 2, d / 2), y = o.x - f * v, b = o.y - p * v, x = o.x + m * v, S = o.y + h * v;
|
|
435
|
+
n += `L${y},${b}`, n += `Q${o.x},${o.y} ${x},${S}`;
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
return n;
|
|
439
|
+
}
|
|
440
|
+
t(K, "generateRoundedPath");
|
|
441
|
+
function q(e, t) {
|
|
442
|
+
if (!e || !t) return {
|
|
443
|
+
angle: 0,
|
|
444
|
+
deltaX: 0,
|
|
445
|
+
deltaY: 0
|
|
446
|
+
};
|
|
447
|
+
let n = t.x - e.x, r = t.y - e.y;
|
|
448
|
+
return {
|
|
449
|
+
angle: Math.atan2(r, n),
|
|
450
|
+
deltaX: n,
|
|
451
|
+
deltaY: r
|
|
452
|
+
};
|
|
453
|
+
}
|
|
454
|
+
t(q, "calculateDeltaAndAngle");
|
|
455
|
+
function J(e, t) {
|
|
456
|
+
let n = e.map((e) => ({ ...e }));
|
|
457
|
+
if (e.length >= 2 && C[t.arrowTypeStart]) {
|
|
458
|
+
let r = C[t.arrowTypeStart], i = e[0], a = e[1], { angle: o } = q(i, a), s = r * Math.cos(o), c = r * Math.sin(o);
|
|
459
|
+
n[0].x = i.x + s, n[0].y = i.y + c;
|
|
460
|
+
}
|
|
461
|
+
let r = e.length;
|
|
462
|
+
if (r >= 2 && C[t.arrowTypeEnd]) {
|
|
463
|
+
let i = C[t.arrowTypeEnd], a = e[r - 1], o = e[r - 2], { angle: s } = q(o, a), c = i * Math.cos(s), l = i * Math.sin(s);
|
|
464
|
+
n[r - 1].x = a.x - c, n[r - 1].y = a.y - l;
|
|
465
|
+
}
|
|
466
|
+
return n;
|
|
467
|
+
}
|
|
468
|
+
t(J, "applyMarkerOffsetsToPoints");
|
|
469
|
+
var Y = /* @__PURE__ */ t((e, t, n, r) => {
|
|
470
|
+
t.forEach((t) => {
|
|
471
|
+
X[t](e, n, r);
|
|
472
|
+
});
|
|
473
|
+
}, "insertMarkers"), X = {
|
|
474
|
+
extension: /* @__PURE__ */ t((t, n, r) => {
|
|
475
|
+
e.trace("Making markers for ", r), t.append("defs").append("marker").attr("id", r + "_" + n + "-extensionStart").attr("class", "marker extension " + n).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), t.append("defs").append("marker").attr("id", r + "_" + n + "-extensionEnd").attr("class", "marker extension " + n).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z"), t.append("marker").attr("id", r + "_" + n + "-extensionStart-margin").attr("class", "marker extension " + n).attr("refX", 18).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").attr("viewBox", "0 0 20 14").append("polygon").attr("points", "10,7 18,13 18,1").style("stroke-width", 2).style("stroke-dasharray", "0"), t.append("defs").append("marker").attr("id", r + "_" + n + "-extensionEnd-margin").attr("class", "marker extension " + n).attr("refX", 9).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").attr("viewBox", "0 0 20 14").append("polygon").attr("points", "10,1 10,13 18,7").style("stroke-width", 2).style("stroke-dasharray", "0");
|
|
476
|
+
}, "extension"),
|
|
477
|
+
composition: /* @__PURE__ */ t((e, t, n) => {
|
|
478
|
+
e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionStart").attr("class", "marker composition " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionEnd").attr("class", "marker composition " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionStart-margin").attr("class", "marker composition " + t).attr("refX", 15).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("viewBox", "0 0 15 15").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionEnd-margin").attr("class", "marker composition " + t).attr("refX", 3.5).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
|
|
479
|
+
}, "composition"),
|
|
480
|
+
aggregation: /* @__PURE__ */ t((e, t, n) => {
|
|
481
|
+
e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationStart").attr("class", "marker aggregation " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationEnd").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationStart-margin").attr("class", "marker aggregation " + t).attr("refX", 15).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 2).attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationEnd-margin").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 2).attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
|
|
482
|
+
}, "aggregation"),
|
|
483
|
+
dependency: /* @__PURE__ */ t((e, t, n) => {
|
|
484
|
+
e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyStart").attr("class", "marker dependency " + t).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyEnd").attr("class", "marker dependency " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyStart-margin").attr("class", "marker dependency " + t).attr("refX", 4).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyEnd-margin").attr("class", "marker dependency " + t).attr("refX", 16).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
|
|
485
|
+
}, "dependency"),
|
|
486
|
+
lollipop: /* @__PURE__ */ t((e, t, n) => {
|
|
487
|
+
e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopStart").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopEnd").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopStart-margin").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6).attr("stroke-width", 2), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopEnd-margin").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6).attr("stroke-width", 2);
|
|
488
|
+
}, "lollipop"),
|
|
489
|
+
point: /* @__PURE__ */ t((e, t, n) => {
|
|
490
|
+
e.append("marker").attr("id", n + "_" + t + "-pointEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-pointStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-pointEnd-margin").attr("class", "marker " + t).attr("viewBox", "0 0 11.5 14").attr("refX", 11.5).attr("refY", 7).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 10.5).attr("markerHeight", 14).attr("orient", "auto").append("path").attr("d", "M 0 0 L 11.5 7 L 0 14 z").attr("class", "arrowMarkerPath").style("stroke-width", 0).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-pointStart-margin").attr("class", "marker " + t).attr("viewBox", "0 0 11.5 14").attr("refX", 1).attr("refY", 7).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11.5).attr("markerHeight", 14).attr("orient", "auto").append("polygon").attr("points", "0,7 11.5,14 11.5,0").attr("class", "arrowMarkerPath").style("stroke-width", 0).style("stroke-dasharray", "1,0");
|
|
491
|
+
}, "point"),
|
|
492
|
+
circle: /* @__PURE__ */ t((e, t, n) => {
|
|
493
|
+
e.append("marker").attr("id", n + "_" + t + "-circleEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-circleStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-circleEnd-margin").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refY", 5).attr("refX", 12.25).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 14).attr("markerHeight", 14).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 0).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-circleStart-margin").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", -2).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 14).attr("markerHeight", 14).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 0).style("stroke-dasharray", "1,0");
|
|
494
|
+
}, "circle"),
|
|
495
|
+
cross: /* @__PURE__ */ t((e, t, n) => {
|
|
496
|
+
e.append("marker").attr("id", n + "_" + t + "-crossEnd").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-crossStart").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-crossEnd-margin").attr("class", "marker cross " + t).attr("viewBox", "0 0 15 15").attr("refX", 17.7).attr("refY", 7.5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 1,1 L 14,14 M 1,14 L 14,1").attr("class", "arrowMarkerPath").style("stroke-width", 2.5), e.append("marker").attr("id", n + "_" + t + "-crossStart-margin").attr("class", "marker cross " + t).attr("viewBox", "0 0 15 15").attr("refX", -3.5).attr("refY", 7.5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 1,1 L 14,14 M 1,14 L 14,1").attr("class", "arrowMarkerPath").style("stroke-width", 2.5).style("stroke-dasharray", "1,0");
|
|
497
|
+
}, "cross"),
|
|
498
|
+
barb: /* @__PURE__ */ t((e, t, n) => {
|
|
499
|
+
e.append("defs").append("marker").attr("id", n + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
|
|
500
|
+
}, "barb"),
|
|
501
|
+
barbNeo: /* @__PURE__ */ t((e, t, n) => {
|
|
502
|
+
let { themeVariables: r } = a(), { transitionColor: i } = r;
|
|
503
|
+
e.append("defs").append("marker").attr("id", n + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L11,14 L13,7 L11,0 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-barbEnd-margin").attr("refX", 17).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M 19,7 L11,14 L13,7 L11,0 Z").attr("fill", `${i}`);
|
|
504
|
+
}, "barbNeo"),
|
|
505
|
+
only_one: /* @__PURE__ */ t((e, t, n) => {
|
|
506
|
+
e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneStart").attr("class", "marker onlyOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("d", "M9,0 L9,18 M15,0 L15,18"), e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneEnd").attr("class", "marker onlyOne " + t).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("d", "M3,0 L3,18 M9,0 L9,18");
|
|
507
|
+
}, "only_one"),
|
|
508
|
+
zero_or_one: /* @__PURE__ */ t((e, t, n) => {
|
|
509
|
+
let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneStart").attr("class", "marker zeroOrOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto");
|
|
510
|
+
r.append("circle").attr("fill", "white").attr("cx", 21).attr("cy", 9).attr("r", 6), r.append("path").attr("d", "M9,0 L9,18");
|
|
511
|
+
let i = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneEnd").attr("class", "marker zeroOrOne " + t).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto");
|
|
512
|
+
i.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 9).attr("r", 6), i.append("path").attr("d", "M21,0 L21,18");
|
|
513
|
+
}, "zero_or_one"),
|
|
514
|
+
one_or_more: /* @__PURE__ */ t((e, t, n) => {
|
|
515
|
+
e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreStart").attr("class", "marker oneOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("d", "M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"), e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreEnd").attr("class", "marker oneOrMore " + t).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18");
|
|
516
|
+
}, "one_or_more"),
|
|
517
|
+
zero_or_more: /* @__PURE__ */ t((e, t, n) => {
|
|
518
|
+
let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreStart").attr("class", "marker zeroOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto");
|
|
519
|
+
r.append("circle").attr("fill", "white").attr("cx", 48).attr("cy", 18).attr("r", 6), r.append("path").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18");
|
|
520
|
+
let i = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreEnd").attr("class", "marker zeroOrMore " + t).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto");
|
|
521
|
+
i.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 18).attr("r", 6), i.append("path").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18");
|
|
522
|
+
}, "zero_or_more"),
|
|
523
|
+
only_one_neo: /* @__PURE__ */ t((e, t, n) => {
|
|
524
|
+
let { themeVariables: r } = a(), { strokeWidth: i } = r;
|
|
525
|
+
e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneStart").attr("class", "marker onlyOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M9,0 L9,18 M15,0 L15,18").attr("stroke-width", `${i}`), e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneEnd").attr("class", "marker onlyOne " + t).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M3,0 L3,18 M9,0 L9,18").attr("stroke-width", `${i}`);
|
|
526
|
+
}, "only_one_neo"),
|
|
527
|
+
zero_or_one_neo: /* @__PURE__ */ t((e, t, n) => {
|
|
528
|
+
let { themeVariables: r } = a(), { strokeWidth: i, mainBkg: o } = r, s = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneStart").attr("class", "marker zeroOrOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse");
|
|
529
|
+
s.append("circle").attr("fill", o ?? "white").attr("cx", 21).attr("cy", 9).attr("stroke-width", `${i}`).attr("r", 6), s.append("path").attr("d", "M9,0 L9,18").attr("stroke-width", `${i}`);
|
|
530
|
+
let c = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneEnd").attr("class", "marker zeroOrOne " + t).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto");
|
|
531
|
+
c.append("circle").attr("fill", o ?? "white").attr("cx", 9).attr("cy", 9).attr("stroke-width", `${i}`).attr("r", 6), c.append("path").attr("d", "M21,0 L21,18").attr("stroke-width", `${i}`);
|
|
532
|
+
}, "zero_or_one_neo"),
|
|
533
|
+
one_or_more_neo: /* @__PURE__ */ t((e, t, n) => {
|
|
534
|
+
let { themeVariables: r } = a(), { strokeWidth: i } = r;
|
|
535
|
+
e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreStart").attr("class", "marker oneOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width", `${i}`), e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreEnd").attr("class", "marker oneOrMore " + t).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width", `${i}`);
|
|
536
|
+
}, "one_or_more_neo"),
|
|
537
|
+
zero_or_more_neo: /* @__PURE__ */ t((e, t, n) => {
|
|
538
|
+
let { themeVariables: r } = a(), { strokeWidth: i, mainBkg: o } = r, s = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreStart").attr("class", "marker zeroOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto");
|
|
539
|
+
s.append("circle").attr("fill", o ?? "white").attr("cx", 45.5).attr("cy", 18).attr("r", 6).attr("stroke-width", `${i}`), s.append("path").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width", `${i}`);
|
|
540
|
+
let c = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreEnd").attr("class", "marker zeroOrMore " + t).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse");
|
|
541
|
+
c.append("circle").attr("fill", o ?? "white").attr("cx", 11).attr("cy", 18).attr("r", 6).attr("stroke-width", `${i}`), c.append("path").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width", `${i}`);
|
|
542
|
+
}, "zero_or_more_neo"),
|
|
543
|
+
requirement_arrow: /* @__PURE__ */ t((e, t, n) => {
|
|
544
|
+
e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_arrowEnd").attr("refX", 20).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("path").attr("d", "M0,0\n L20,10\n M20,10\n L0,20");
|
|
545
|
+
}, "requirement_arrow"),
|
|
546
|
+
requirement_contains: /* @__PURE__ */ t((e, t, n) => {
|
|
547
|
+
let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_containsStart").attr("refX", 0).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("g");
|
|
548
|
+
r.append("circle").attr("cx", 10).attr("cy", 10).attr("r", 9).attr("fill", "none"), r.append("line").attr("x1", 1).attr("x2", 19).attr("y1", 10).attr("y2", 10), r.append("line").attr("y1", 1).attr("y2", 19).attr("x1", 10).attr("x2", 10);
|
|
549
|
+
}, "requirement_contains"),
|
|
550
|
+
requirement_arrow_neo: /* @__PURE__ */ t((e, t, n) => {
|
|
551
|
+
let { themeVariables: r } = a(), { strokeWidth: i } = r;
|
|
552
|
+
e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_arrowEnd").attr("refX", 20).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").attr("stroke-width", `${i}`).attr("viewBox", "0 0 25 20").append("path").attr("d", "M0,0\n L20,10\n M20,10\n L0,20").attr("stroke-linejoin", "miter");
|
|
553
|
+
}, "requirement_arrow_neo"),
|
|
554
|
+
requirement_contains_neo: /* @__PURE__ */ t((e, t, n) => {
|
|
555
|
+
let { themeVariables: r } = a(), { strokeWidth: i } = r, o = e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_containsStart").attr("refX", 0).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("g");
|
|
556
|
+
o.append("circle").attr("cx", 10).attr("cy", 10).attr("r", 9).attr("fill", "none"), o.append("line").attr("x1", 1).attr("x2", 19).attr("y1", 10).attr("y2", 10), o.append("line").attr("y1", 1).attr("y2", 19).attr("x1", 10).attr("x2", 10), o.selectAll("*").attr("stroke-width", `${i}`);
|
|
557
|
+
}, "requirement_contains_neo")
|
|
558
|
+
}, Z = Y;
|
|
559
|
+
//#endregion
|
|
560
|
+
export { R as a, Z as i, G as n, I as r, P as t };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { h as e } from "./src-CFVe5TPD.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/mermaid@11.14.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-FMBD7UC4.mjs
|
|
3
|
+
var t = /* @__PURE__ */ e(() => "\n /* Font Awesome icon styling - consolidated */\n .label-icon {\n display: inline-block;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n }\n \n .node .label-icon path {\n fill: currentColor;\n stroke: revert;\n stroke-width: revert;\n }\n", "getIconStyles");
|
|
4
|
+
//#endregion
|
|
5
|
+
export { t };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { _ as e, c as t, g as n, h as r, i, m as a, s as o, t as s, v as c } from "./chunk-K5T4RW27-T6hJxJM0.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@mermaid-js+parser@1.1.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOC6F5B3.mjs
|
|
3
|
+
var l = class extends s {
|
|
4
|
+
static {
|
|
5
|
+
a(this, "PacketTokenBuilder");
|
|
6
|
+
}
|
|
7
|
+
constructor() {
|
|
8
|
+
super(["packet"]);
|
|
9
|
+
}
|
|
10
|
+
}, u = { parser: {
|
|
11
|
+
TokenBuilder: /* @__PURE__ */ a(() => new l(), "TokenBuilder"),
|
|
12
|
+
ValueConverter: /* @__PURE__ */ a(() => new i(), "ValueConverter")
|
|
13
|
+
} };
|
|
14
|
+
function d(i = r) {
|
|
15
|
+
let a = n(c(i), o), s = n(e({ shared: a }), t, u);
|
|
16
|
+
return a.ServiceRegistry.register(s), {
|
|
17
|
+
shared: a,
|
|
18
|
+
Packet: s
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
a(d, "createPacketServices");
|
|
22
|
+
//#endregion
|
|
23
|
+
export { d as n, u as t };
|