@nxgt/material 1.12.3 → 1.16.0
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/README.md +5 -1
- package/dist/abnfDiagram-O67JEVCF-mm89LXw2.js +89 -0
- package/dist/architecture-7GRP2DOG-DDr0RGVC.js +3 -0
- package/dist/architectureDiagram-NJMV4G6O-CGoA5SIv.js +4146 -0
- package/dist/array-CApNbSU9.js +6 -0
- package/dist/blockDiagram-BEXU5L5S-Dq8gitB4.js +1946 -0
- package/dist/c4Diagram-YGBWAQC7-DO_alqIu.js +2990 -0
- package/dist/channel-1fT-W0NS.js +5 -0
- package/dist/chunk-2Q5K7J3B-kzxEEeTu.js +15 -0
- package/dist/chunk-3FUC2YCW-C3yD2fMw.js +364 -0
- package/dist/chunk-5DYCD2WN-Dn2jrYde.js +37 -0
- package/dist/chunk-5VM5RSS4-Cr17nBXp.js +5 -0
- package/dist/chunk-6AEJRKK7-JyfUnUEu.js +10 -0
- package/dist/chunk-742MDFTN-BbWkrtj2.js +275 -0
- package/dist/chunk-7INBJB4K-C3x7JNTG.js +4487 -0
- package/dist/chunk-7M6MHVWA-Cc7UTu4b.js +4256 -0
- package/dist/chunk-7PRAP22T-C8rsGRvH.js +67 -0
- package/dist/chunk-DUW6YSOI-BdOla2G8.js +10 -0
- package/dist/chunk-FOHPRMQF-Crq0JMf2.js +21388 -0
- package/dist/chunk-GNY47TPC-d-Bi8r0p.js +75 -0
- package/dist/chunk-GTNCS2PH-CTS015lZ.js +490 -0
- package/dist/chunk-GWA4HPMP-B4pgM-E1.js +61 -0
- package/dist/chunk-J5ZVWO5B-CYzz6Pq8.js +12 -0
- package/dist/chunk-JWPE2WC7-Ccb0QaC8.js +8 -0
- package/dist/chunk-LNGE3PJU-CiGrDO_F.js +1513 -0
- package/dist/chunk-MBY4JIJT-Dg6AeftH.js +1847 -0
- package/dist/chunk-NETBCI7D-TXZM0vKz.js +236 -0
- package/dist/chunk-O7XYJQB3-md6vjVm4.js +3922 -0
- package/dist/chunk-UA2S7LBM-DQTYPe9y.js +363 -0
- package/dist/chunk-WEXAMYUT-DmKWJz6y.js +26 -0
- package/dist/chunk-XXDRQBXY-C9XIYQdM.js +9 -0
- package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
- package/dist/chunk-Z7XXMR3K-BoDf6lxl.js +677 -0
- package/dist/chunk-ZIGJFQKS-CP5430fN.js +663 -0
- package/dist/classDiagram-v2-NBCMYWYE-6KoTmufe.js +3397 -0
- package/dist/components.js +3 -3
- package/dist/cose-bilkent-JH36ORCC-CejnZl_t.js +2251 -0
- package/dist/cynefin-OW5HDTMX-B8HVdZhp.js +3 -0
- package/dist/cynefinDiagram-VND7K2PF-DZnc0dlm.js +349 -0
- package/dist/cytoscape.esm-_jXi1N4y.js +18151 -0
- package/dist/dagre-6A5THRUB-cuS57NO5.js +2192 -0
- package/dist/diagram-22UHCM2B-zQSFmH0t.js +5084 -0
- package/dist/diagram-3UASUU5V-D45Fgu1j.js +724 -0
- package/dist/diagram-ATOU4E4O-YMtQnlqd.js +432 -0
- package/dist/diagram-CDSNMT55-DP7UmEW1.js +301 -0
- package/dist/diagram-MLGK6HIB-WvSqrTRC.js +134 -0
- package/dist/diagram-MPIPVDR6-C2F3__mt.js +214 -0
- package/dist/dist-1DdJvBEt.js +50 -0
- package/dist/{dist-DGsPFADz.js → dist-DppLdkXt.js} +2 -2
- package/dist/dnd.js +2 -2
- package/dist/ebnfDiagram-ZINNZB2B-BZC6cSiy.js +100 -0
- package/dist/elk-276RUBZZ-7DJf1MEV.js +47598 -0
- package/dist/erDiagram-OPXOYQCR-YKlEVEF0.js +1970 -0
- package/dist/eventmodeling-NTZA5JFV-C1CEo-26.js +3 -0
- package/dist/flowDiagram-KWPJA3E3-DyLvzIlg.js +17 -0
- package/dist/ganttDiagram-FUAMR5RP-KIaOrYOF.js +2928 -0
- package/dist/gitGraph-4MIJSDKK-BTeCS_5q.js +3 -0
- package/dist/gitGraphDiagram-X574FWY7-DpFW-7JE.js +729 -0
- package/dist/graphlib-DFaO_iIU.js +372 -0
- package/dist/{hooks-BjSuqEof.js → hooks-C5xy0u03.js} +1 -1
- package/dist/hooks.js +1 -1
- package/dist/{i18n-DmVqVJXj.js → i18n-Cech9IAc.js} +328 -843
- package/dist/i18n.js +1 -1
- package/dist/info-A6RAGUB7-BvtuPd9C.js +3 -0
- package/dist/infoDiagram-VRGFBTTK-H3F-BCnu.js +20 -0
- package/dist/init-Buj1GKRa.js +27 -0
- package/dist/isArrayLikeObject-VG1KOJ3m.js +539 -0
- package/dist/ishikawaDiagram-OU5B5YK6-DgQDmcF3.js +719 -0
- package/dist/journeyDiagram-ZHPQQLJL-CanDOlfn.js +884 -0
- package/dist/kanban-definition-PNTS6WVX-DmnUgxgb.js +976 -0
- package/dist/katex-BMQ6LGsM.js +21962 -0
- package/dist/lib/components/index.d.ts +4 -0
- package/dist/lib/components/ui/action-card.d.ts +1 -1
- package/dist/lib/components/ui/chat/chat-composer-mentions.d.ts +8 -0
- package/dist/lib/components/ui/chat/chat-composer.d.ts +5 -1
- package/dist/lib/components/ui/chat/chat-markdown.d.ts +2 -2
- package/dist/lib/components/ui/emoji/emoji-list.d.ts +5 -0
- package/dist/lib/components/ui/emoji/emoji-picker.d.ts +7 -0
- package/dist/lib/components/ui/emoji/emoji.utils.d.ts +2 -0
- package/dist/lib/components/ui/emoji/emoji.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/emoji/index.d.ts +4 -0
- package/dist/lib/components/ui/emoji/types.d.ts +6 -0
- package/dist/lib/components/ui/entity-header.stories.d.ts +1 -0
- package/dist/lib/components/ui/kanban/kanban.stories.d.ts +1 -0
- package/dist/lib/components/ui/markdown/index.d.ts +3 -0
- package/dist/lib/components/ui/markdown/markdown.d.ts +7 -0
- package/dist/lib/components/ui/markdown/markdown.stories.d.ts +14 -0
- package/dist/lib/components/ui/markdown/markdown.test.d.ts +1 -0
- package/dist/lib/components/ui/markdown/markdown.utils.d.ts +1 -0
- package/dist/lib/components/ui/markdown/mermaid.lazy.d.ts +12 -0
- package/dist/lib/components/ui/markdown/partials/markdown-code.d.ts +2 -0
- package/dist/lib/components/ui/markdown/partials/mermaid-diagram.d.ts +4 -0
- package/dist/lib/components/ui/mentions/index.d.ts +3 -0
- package/dist/lib/components/ui/mentions/mention-list.d.ts +8 -0
- package/dist/lib/components/ui/mentions/mentions.utils.d.ts +7 -0
- package/dist/lib/components/ui/mentions/mentions.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/mentions/types.d.ts +7 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/mention/mention-list.d.ts +12 -1
- package/dist/lib/components/ui/terminal/index.d.ts +2 -0
- package/dist/lib/components/ui/terminal/terminal.d.ts +11 -0
- package/dist/lib/components/ui/terminal/terminal.stories.d.ts +14 -0
- package/dist/lib/components/ui/terminal/terminal.utils.d.ts +5 -0
- package/dist/lib/components/ui/terminal/terminal.utils.test.d.ts +1 -0
- package/dist/lib/i18n/resources/en/index.d.ts +13 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +14 -1
- package/dist/lib/i18n/resources/fr/index.d.ts +13 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +14 -1
- package/dist/lib/i18n/resources/index.d.ts +26 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/{lib-B1KXma-r.js → lib-Bbw5QPoj.js} +472 -471
- package/dist/lib.js +2 -2
- package/dist/{main-Cw-Yaqo9.js → main-BjDU9FDM.js} +58614 -29566
- package/dist/main.js +6 -6
- package/dist/material.css +1 -1
- package/dist/math-C5EhTgJw.js +10 -0
- package/dist/mermaid-parser.core-Cz-MfB4Z.js +638 -0
- package/dist/mermaid.core-BI1sunfX.js +1096 -0
- package/dist/mindmap-definition-NLK3R4M7-DW0BIU_q.js +1008 -0
- package/dist/ordinal-DuP05kVQ.js +65 -0
- package/dist/packet-AYTQ26CC-CshIswP8.js +3 -0
- package/dist/path-Cjou0lUh.js +85 -0
- package/dist/pegDiagram-GJSIUBJH-CJIx0u4M.js +94 -0
- package/dist/pie-WAS4IAKB-CYs22y4X.js +3 -0
- package/dist/pieDiagram-5QR66LMP-zAhv5fKz.js +157 -0
- package/dist/quadrantDiagram-O4NWA36T-CO4n_yQo.js +2001 -0
- package/dist/radar-RG4KPBEZ-BOJKjbGv.js +3 -0
- package/dist/railroad-74A4TZTK-Dt1BmUkI.js +3 -0
- package/dist/railroad-abnf-HS5TGJTU-Cs9GMUMY.js +3 -0
- package/dist/railroad-ebnf-LZEXJU2U-D4y0fXoW.js +3 -0
- package/dist/railroad-peg-WCYAUIDC-D2f_ZNR5.js +3 -0
- package/dist/railroadDiagram-XR7U4H2S-B8iV7mfe.js +76 -0
- package/dist/requirementDiagram-PLB6GJNP-CGoX1NrW.js +2228 -0
- package/dist/rough.esm-rcMoXTJj.js +1352 -0
- package/dist/sankeyDiagram-IPEJSGJF-DdSM2wiI.js +962 -0
- package/dist/sequenceDiagram-PO4LG4MO-CCRqF5XO.js +4200 -0
- package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
- package/dist/src-B4npqWNl.js +1775 -0
- package/dist/stateDiagram-v2-GCMORJYK-CQTX5ks8.js +2143 -0
- package/dist/step-B6KjpKgN.js +706 -0
- package/dist/string-B-ZWXCs2.js +392 -0
- package/dist/swimlanes-2SLR337P-C2NNOb5n.js +4763 -0
- package/dist/swimlanesDiagram-TC7HE7FX-CPsqPrbP.js +28 -0
- package/dist/timeline-definition-EJHVYXUP-DuxGHv-N.js +1073 -0
- package/dist/treeView-Q6P3EWNA-BrJylG9N.js +3 -0
- package/dist/treemap-WGGIJYW6-DpIZuqbj.js +3 -0
- package/dist/usecaseDiagram-POWQR4AR-cuAeIBW3.js +9932 -0
- package/dist/vennDiagram-UO4OBE2U-DLwBSAnC.js +1880 -0
- package/dist/wardley-WFR3VGLG-CbwdAAbH.js +3 -0
- package/dist/wardleyDiagram-VNRHLVJA-D7IZU6vu.js +645 -0
- package/dist/xychartDiagram-PMCCYNJV-BDOFv_xK.js +2167 -0
- package/package.json +7 -1
|
@@ -0,0 +1,677 @@
|
|
|
1
|
+
import { Tl as e } from "./main-BjDU9FDM.js";
|
|
2
|
+
import { n as t, t as n } from "./src-B4npqWNl.js";
|
|
3
|
+
import { _ as r, a as i, i as a, n as o, o as s, p as c, r as l, t as u, u as d, v as f } from "./step-B6KjpKgN.js";
|
|
4
|
+
import { K as p, g as m, q as h, u as g } from "./chunk-ZIGJFQKS-CP5430fN.js";
|
|
5
|
+
import { n as _ } from "./chunk-Y2CYZVJY-i11wjrBe.js";
|
|
6
|
+
import { T as v, b as y, x as b } from "./chunk-O7XYJQB3-md6vjVm4.js";
|
|
7
|
+
import { n as x, r as S } from "./chunk-MBY4JIJT-Dg6AeftH.js";
|
|
8
|
+
import { i as C, n as ee } from "./chunk-7PRAP22T-C8rsGRvH.js";
|
|
9
|
+
import { t as te } from "./rough.esm-rcMoXTJj.js";
|
|
10
|
+
import { t as w } from "./chunk-7INBJB4K-C3x7JNTG.js";
|
|
11
|
+
import { n as T } from "./chunk-5DYCD2WN-Dn2jrYde.js";
|
|
12
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-Z7XXMR3K.mjs
|
|
13
|
+
var E = /* @__PURE__ */ _((e, t) => {
|
|
14
|
+
if (t) return "translate(" + -e.width / 2 + ", " + -e.height / 2 + ")";
|
|
15
|
+
let n = e.x ?? 0, r = e.y ?? 0;
|
|
16
|
+
return "translate(" + -(n + e.width / 2) + ", " + -(r + e.height / 2) + ")";
|
|
17
|
+
}, "computeLabelTransform"), D = {
|
|
18
|
+
aggregation: 17.25,
|
|
19
|
+
extension: 17.25,
|
|
20
|
+
composition: 17.25,
|
|
21
|
+
dependency: 6,
|
|
22
|
+
lollipop: 13.5,
|
|
23
|
+
arrow_point: 4,
|
|
24
|
+
arrow_barb: 0,
|
|
25
|
+
arrow_barb_neo: 5.5
|
|
26
|
+
}, O = {
|
|
27
|
+
arrow_point: 4,
|
|
28
|
+
arrow_cross: 12.5,
|
|
29
|
+
arrow_circle: 12.5
|
|
30
|
+
};
|
|
31
|
+
function k(e, t) {
|
|
32
|
+
if (e === void 0 || t === void 0) return {
|
|
33
|
+
angle: 0,
|
|
34
|
+
deltaX: 0,
|
|
35
|
+
deltaY: 0
|
|
36
|
+
};
|
|
37
|
+
e = A(e), t = A(t);
|
|
38
|
+
let [n, r] = [e.x, e.y], [i, a] = [t.x, t.y], o = i - n, s = a - r;
|
|
39
|
+
return {
|
|
40
|
+
angle: Math.atan(s / o),
|
|
41
|
+
deltaX: o,
|
|
42
|
+
deltaY: s
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
_(k, "calculateDeltaAndAngle");
|
|
46
|
+
var A = /* @__PURE__ */ _((e) => Array.isArray(e) ? {
|
|
47
|
+
x: e[0],
|
|
48
|
+
y: e[1]
|
|
49
|
+
} : e, "pointTransformer"), ne = /* @__PURE__ */ _((e) => ({
|
|
50
|
+
x: /* @__PURE__ */ _(function(t, n, r) {
|
|
51
|
+
let i = 0, a = A(r[0]).x < A(r[r.length - 1]).x ? "left" : "right";
|
|
52
|
+
if (n === 0 && Object.hasOwn(D, e.arrowTypeStart)) {
|
|
53
|
+
let { angle: t, deltaX: n } = k(r[0], r[1]);
|
|
54
|
+
i = D[e.arrowTypeStart] * Math.cos(t) * (n >= 0 ? 1 : -1);
|
|
55
|
+
} else if (n === r.length - 1 && Object.hasOwn(D, e.arrowTypeEnd)) {
|
|
56
|
+
let { angle: t, deltaX: n } = k(r[r.length - 1], r[r.length - 2]);
|
|
57
|
+
i = D[e.arrowTypeEnd] * Math.cos(t) * (n >= 0 ? 1 : -1);
|
|
58
|
+
}
|
|
59
|
+
let o = Math.abs(A(t).x - A(r[r.length - 1]).x), s = Math.abs(A(t).y - A(r[r.length - 1]).y), c = Math.abs(A(t).x - A(r[0]).x), l = Math.abs(A(t).y - A(r[0]).y), u = D[e.arrowTypeStart], d = D[e.arrowTypeEnd];
|
|
60
|
+
if (o < d && o > 0 && s < d) {
|
|
61
|
+
let e = d + 1 - o;
|
|
62
|
+
e *= a === "right" ? -1 : 1, i -= e;
|
|
63
|
+
}
|
|
64
|
+
if (c < u && c > 0 && l < u) {
|
|
65
|
+
let e = u + 1 - c;
|
|
66
|
+
e *= a === "right" ? -1 : 1, i += e;
|
|
67
|
+
}
|
|
68
|
+
return A(t).x + i;
|
|
69
|
+
}, "x"),
|
|
70
|
+
y: /* @__PURE__ */ _(function(t, n, r) {
|
|
71
|
+
let i = 0, a = A(r[0]).y < A(r[r.length - 1]).y ? "down" : "up";
|
|
72
|
+
if (n === 0 && Object.hasOwn(D, e.arrowTypeStart)) {
|
|
73
|
+
let { angle: t, deltaY: n } = k(r[0], r[1]);
|
|
74
|
+
i = D[e.arrowTypeStart] * Math.abs(Math.sin(t)) * (n >= 0 ? 1 : -1);
|
|
75
|
+
} else if (n === r.length - 1 && Object.hasOwn(D, e.arrowTypeEnd)) {
|
|
76
|
+
let { angle: t, deltaY: n } = k(r[r.length - 1], r[r.length - 2]);
|
|
77
|
+
i = D[e.arrowTypeEnd] * Math.abs(Math.sin(t)) * (n >= 0 ? 1 : -1);
|
|
78
|
+
}
|
|
79
|
+
let o = Math.abs(A(t).y - A(r[r.length - 1]).y), s = Math.abs(A(t).x - A(r[r.length - 1]).x), c = Math.abs(A(t).y - A(r[0]).y), l = Math.abs(A(t).x - A(r[0]).x), u = D[e.arrowTypeStart], d = D[e.arrowTypeEnd];
|
|
80
|
+
if (o < d && o > 0 && s < d) {
|
|
81
|
+
let e = d + 1 - o;
|
|
82
|
+
e *= a === "up" ? -1 : 1, i -= e;
|
|
83
|
+
}
|
|
84
|
+
if (c < u && c > 0 && l < u) {
|
|
85
|
+
let e = u + 1 - c;
|
|
86
|
+
e *= a === "up" ? -1 : 1, i += e;
|
|
87
|
+
}
|
|
88
|
+
return A(t).y + i;
|
|
89
|
+
}, "y")
|
|
90
|
+
}), "getLineFunctionsWithOffset"), re = /* @__PURE__ */ _((e, t, n, r, i, a = !1, o) => {
|
|
91
|
+
t.arrowTypeStart && N(e, "start", t.arrowTypeStart, n, r, i, a, o), t.arrowTypeEnd && N(e, "end", t.arrowTypeEnd, n, r, i, a, o);
|
|
92
|
+
}, "addEdgeMarkers"), j = {
|
|
93
|
+
arrow_cross: {
|
|
94
|
+
type: "cross",
|
|
95
|
+
fill: !1
|
|
96
|
+
},
|
|
97
|
+
arrow_point: {
|
|
98
|
+
type: "point",
|
|
99
|
+
fill: !0
|
|
100
|
+
},
|
|
101
|
+
arrow_barb: {
|
|
102
|
+
type: "barb",
|
|
103
|
+
fill: !0
|
|
104
|
+
},
|
|
105
|
+
arrow_barb_neo: {
|
|
106
|
+
type: "barb",
|
|
107
|
+
fill: !0
|
|
108
|
+
},
|
|
109
|
+
arrow_circle: {
|
|
110
|
+
type: "circle",
|
|
111
|
+
fill: !1
|
|
112
|
+
},
|
|
113
|
+
arrow_hierarchy: {
|
|
114
|
+
type: "hierarchy",
|
|
115
|
+
fill: !1
|
|
116
|
+
},
|
|
117
|
+
aggregation: {
|
|
118
|
+
type: "aggregation",
|
|
119
|
+
fill: !1
|
|
120
|
+
},
|
|
121
|
+
extension: {
|
|
122
|
+
type: "extension",
|
|
123
|
+
fill: !1
|
|
124
|
+
},
|
|
125
|
+
composition: {
|
|
126
|
+
type: "composition",
|
|
127
|
+
fill: !0
|
|
128
|
+
},
|
|
129
|
+
dependency: {
|
|
130
|
+
type: "dependency",
|
|
131
|
+
fill: !0
|
|
132
|
+
},
|
|
133
|
+
lollipop: {
|
|
134
|
+
type: "lollipop",
|
|
135
|
+
fill: !1
|
|
136
|
+
},
|
|
137
|
+
only_one: {
|
|
138
|
+
type: "onlyOne",
|
|
139
|
+
fill: !1
|
|
140
|
+
},
|
|
141
|
+
zero_or_one: {
|
|
142
|
+
type: "zeroOrOne",
|
|
143
|
+
fill: !1
|
|
144
|
+
},
|
|
145
|
+
one_or_more: {
|
|
146
|
+
type: "oneOrMore",
|
|
147
|
+
fill: !1
|
|
148
|
+
},
|
|
149
|
+
zero_or_more: {
|
|
150
|
+
type: "zeroOrMore",
|
|
151
|
+
fill: !1
|
|
152
|
+
},
|
|
153
|
+
requirement_arrow: {
|
|
154
|
+
type: "requirement_arrow",
|
|
155
|
+
fill: !1
|
|
156
|
+
},
|
|
157
|
+
requirement_contains: {
|
|
158
|
+
type: "requirement_contains",
|
|
159
|
+
fill: !1
|
|
160
|
+
}
|
|
161
|
+
}, M = [
|
|
162
|
+
"cross",
|
|
163
|
+
"point",
|
|
164
|
+
"circle",
|
|
165
|
+
"lollipop",
|
|
166
|
+
"aggregation",
|
|
167
|
+
"extension",
|
|
168
|
+
"composition",
|
|
169
|
+
"dependency",
|
|
170
|
+
"barb"
|
|
171
|
+
], N = /* @__PURE__ */ _((e, n, r, i, a, o, s = !1, c) => {
|
|
172
|
+
if (!r || r === "none") return;
|
|
173
|
+
let l = j[r], u = l && M.includes(l.type);
|
|
174
|
+
if (!l) {
|
|
175
|
+
t.warn(`Unknown arrow type: ${r}`);
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
let d = `${a}_${o}-${l.type}${n === "start" ? "Start" : "End"}${s && u ? "-margin" : ""}`;
|
|
179
|
+
if (c && c.trim() !== "") {
|
|
180
|
+
let t = `${d}_${c.replace(/[^\dA-Za-z]/g, "_")}`;
|
|
181
|
+
if (!document.getElementById(t)) {
|
|
182
|
+
let e = document.getElementById(d);
|
|
183
|
+
if (e) {
|
|
184
|
+
let n = e.cloneNode(!0);
|
|
185
|
+
n.id = t, n.querySelectorAll("path, circle, line").forEach((e) => {
|
|
186
|
+
e.setAttribute("stroke", c), l.fill && e.setAttribute("fill", c);
|
|
187
|
+
}), e.parentNode?.appendChild(n);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
e.attr(`marker-${n}`, `url(${i}#${t})`);
|
|
191
|
+
} else e.attr(`marker-${n}`, `url(${i}#${d})`);
|
|
192
|
+
}, "addEdgeMarker"), ie = /* @__PURE__ */ _((e) => typeof e == "string" ? e : b()?.flowchart?.curve, "resolveEdgeCurveType"), P = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new Map(), I = /* @__PURE__ */ _(() => {
|
|
193
|
+
P.clear(), F.clear();
|
|
194
|
+
}, "clear"), L = /* @__PURE__ */ _((e) => !!(e.label || e.startLabelLeft || e.startLabelRight || e.endLabelLeft || e.endLabelRight), "hasEdgeLabel"), R = /* @__PURE__ */ _((e) => e ? typeof e == "string" ? e : e.reduce((e, t) => e + ";" + t, "") : "", "getLabelStyles"), z = /* @__PURE__ */ _(async (e, r) => {
|
|
195
|
+
let i = b(), a = v(i), { labelStyles: o } = C(r);
|
|
196
|
+
r.labelStyle = o;
|
|
197
|
+
let s = e.insert("g").attr("class", "edgeLabel"), c = s.insert("g").attr("class", "label").attr("data-id", r.id), l = r.labelType === "markdown", u = await x(e, r.label, {
|
|
198
|
+
style: R(r.labelStyle),
|
|
199
|
+
useHtmlLabels: a,
|
|
200
|
+
addSvgBackground: !0,
|
|
201
|
+
isNode: !1,
|
|
202
|
+
markdown: l,
|
|
203
|
+
width: void 0
|
|
204
|
+
}, i);
|
|
205
|
+
c.node().appendChild(u), t.info("abc82", r, r.labelType);
|
|
206
|
+
let d, f;
|
|
207
|
+
if (a) {
|
|
208
|
+
let e = u.children[0], t = n(u);
|
|
209
|
+
d = await S.measure(() => e.getBoundingClientRect()), f = d, t.attr("width", d.width), t.attr("height", d.height);
|
|
210
|
+
} else {
|
|
211
|
+
let e = n(u).select("text").node();
|
|
212
|
+
await S.measure(() => {
|
|
213
|
+
d = u.getBBox(), f = e && typeof e.getBBox == "function" ? e.getBBox() : d;
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
c.attr("transform", E(f, a)), P.set(r.id, s), r.width = d.width, r.height = d.height;
|
|
217
|
+
let p;
|
|
218
|
+
if (r.startLabelLeft) {
|
|
219
|
+
let t = e.insert("g").attr("class", "edgeTerminals"), i = t.insert("g").attr("class", "inner"), o = await w(i, r.startLabelLeft, R(r.labelStyle) || "", !1, !1);
|
|
220
|
+
p = o;
|
|
221
|
+
let s = o.getBBox();
|
|
222
|
+
if (a) {
|
|
223
|
+
let e = o.children[0], t = n(o);
|
|
224
|
+
s = e.getBoundingClientRect(), t.attr("width", s.width), t.attr("height", s.height);
|
|
225
|
+
}
|
|
226
|
+
i.attr("transform", E(s, a)), F.get(r.id) || F.set(r.id, {}), F.get(r.id).startLeft = t, B(p, r.startLabelLeft);
|
|
227
|
+
}
|
|
228
|
+
if (r.startLabelRight) {
|
|
229
|
+
let t = e.insert("g").attr("class", "edgeTerminals"), i = t.insert("g").attr("class", "inner"), o = await w(i, r.startLabelRight, R(r.labelStyle) || "", !1, !1);
|
|
230
|
+
p = o;
|
|
231
|
+
let s = o.getBBox();
|
|
232
|
+
if (a) {
|
|
233
|
+
let e = o.children[0], t = n(o);
|
|
234
|
+
s = e.getBoundingClientRect(), t.attr("width", s.width), t.attr("height", s.height);
|
|
235
|
+
}
|
|
236
|
+
i.attr("transform", E(s, a)), F.get(r.id) || F.set(r.id, {}), F.get(r.id).startRight = t, B(p, r.startLabelRight);
|
|
237
|
+
}
|
|
238
|
+
if (r.endLabelLeft) {
|
|
239
|
+
let t = e.insert("g").attr("class", "edgeTerminals"), i = t.insert("g").attr("class", "inner"), o = await w(t, r.endLabelLeft, R(r.labelStyle) || "", !1, !1);
|
|
240
|
+
p = o;
|
|
241
|
+
let s = o.getBBox();
|
|
242
|
+
if (a) {
|
|
243
|
+
let e = o.children[0], t = n(o);
|
|
244
|
+
s = e.getBoundingClientRect(), t.attr("width", s.width), t.attr("height", s.height);
|
|
245
|
+
}
|
|
246
|
+
i.attr("transform", E(s, a)), F.get(r.id) || F.set(r.id, {}), F.get(r.id).endLeft = t, B(p, r.endLabelLeft);
|
|
247
|
+
}
|
|
248
|
+
if (r.endLabelRight) {
|
|
249
|
+
let t = e.insert("g").attr("class", "edgeTerminals"), i = t.insert("g").attr("class", "inner"), o = await w(t, r.endLabelRight, R(r.labelStyle) || "", !1, !1);
|
|
250
|
+
p = o;
|
|
251
|
+
let s = o.getBBox();
|
|
252
|
+
if (a) {
|
|
253
|
+
let e = o.children[0], t = n(o);
|
|
254
|
+
s = e.getBoundingClientRect(), t.attr("width", s.width), t.attr("height", s.height);
|
|
255
|
+
}
|
|
256
|
+
i.attr("transform", E(s, a)), F.get(r.id) || F.set(r.id, {}), F.get(r.id).endRight = t, B(p, r.endLabelRight);
|
|
257
|
+
}
|
|
258
|
+
return u;
|
|
259
|
+
}, "insertEdgeLabel");
|
|
260
|
+
function B(e, t) {
|
|
261
|
+
v(b()) && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px");
|
|
262
|
+
}
|
|
263
|
+
_(B, "setTerminalWidth");
|
|
264
|
+
var V = /* @__PURE__ */ _((e, n) => {
|
|
265
|
+
t.debug("Moving label abc88 ", e.id, e.label, P.get(e.id), n);
|
|
266
|
+
let r = n.updatedPath ? n.updatedPath : n.originalPath, { subGraphTitleTotalMargin: i } = T(b());
|
|
267
|
+
if (e.label) {
|
|
268
|
+
let a = P.get(e.id), o = e.x, s = e.y;
|
|
269
|
+
if (r) {
|
|
270
|
+
let i = m.calcLabelPosition(r);
|
|
271
|
+
t.debug("Moving label " + e.label + " from (", o, ",", s, ") to (", i.x, ",", i.y, ") abc88"), n.updatedPath && (o = i.x, s = i.y);
|
|
272
|
+
}
|
|
273
|
+
a.attr("transform", `translate(${o}, ${s + i / 2})`);
|
|
274
|
+
}
|
|
275
|
+
if (e.startLabelLeft) {
|
|
276
|
+
let t = F.get(e.id).startLeft, n = e.x, i = e.y;
|
|
277
|
+
if (r) {
|
|
278
|
+
let t = m.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", r);
|
|
279
|
+
n = t.x, i = t.y;
|
|
280
|
+
}
|
|
281
|
+
t.attr("transform", `translate(${n}, ${i})`);
|
|
282
|
+
}
|
|
283
|
+
if (e.startLabelRight) {
|
|
284
|
+
let t = F.get(e.id).startRight, n = e.x, i = e.y;
|
|
285
|
+
if (r) {
|
|
286
|
+
let t = m.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", r);
|
|
287
|
+
n = t.x, i = t.y;
|
|
288
|
+
}
|
|
289
|
+
t.attr("transform", `translate(${n}, ${i})`);
|
|
290
|
+
}
|
|
291
|
+
if (e.endLabelLeft) {
|
|
292
|
+
let t = F.get(e.id).endLeft, n = e.x, i = e.y;
|
|
293
|
+
if (r) {
|
|
294
|
+
let t = m.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", r);
|
|
295
|
+
n = t.x, i = t.y;
|
|
296
|
+
}
|
|
297
|
+
t.attr("transform", `translate(${n}, ${i})`);
|
|
298
|
+
}
|
|
299
|
+
if (e.endLabelRight) {
|
|
300
|
+
let t = F.get(e.id).endRight, n = e.x, i = e.y;
|
|
301
|
+
if (r) {
|
|
302
|
+
let t = m.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", r);
|
|
303
|
+
n = t.x, i = t.y;
|
|
304
|
+
}
|
|
305
|
+
t.attr("transform", `translate(${n}, ${i})`);
|
|
306
|
+
}
|
|
307
|
+
}, "positionEdgeLabel"), ae = /* @__PURE__ */ _((e, t) => {
|
|
308
|
+
if (!e?.isLabelEdge || !e?.id?.endsWith("-to-label") || !Array.isArray(t) || t.length !== 2) return t;
|
|
309
|
+
let [n, r] = t, i = Math.abs(r.x - n.x), a = Math.abs(r.y - n.y);
|
|
310
|
+
return i < .001 || a < .001 ? t : a >= i ? [
|
|
311
|
+
n,
|
|
312
|
+
{
|
|
313
|
+
x: n.x,
|
|
314
|
+
y: r.y
|
|
315
|
+
},
|
|
316
|
+
r
|
|
317
|
+
] : [
|
|
318
|
+
n,
|
|
319
|
+
{
|
|
320
|
+
x: r.x,
|
|
321
|
+
y: n.y
|
|
322
|
+
},
|
|
323
|
+
r
|
|
324
|
+
];
|
|
325
|
+
}, "orthogonalizeToLabelClippedPoints"), H = /* @__PURE__ */ _((e, t) => {
|
|
326
|
+
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;
|
|
327
|
+
return i >= o || a >= s;
|
|
328
|
+
}, "outsideNode"), U = /* @__PURE__ */ _((e, n, r) => {
|
|
329
|
+
t.debug(`intersection calc abc89:
|
|
330
|
+
outsidePoint: ${JSON.stringify(n)}
|
|
331
|
+
insidePoint : ${JSON.stringify(r)}
|
|
332
|
+
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);
|
|
333
|
+
let i = e.x, a = e.y, o = Math.abs(i - r.x), s = e.width / 2, c = r.x < n.x ? s - o : s + o, l = e.height / 2, u = Math.abs(n.y - r.y), d = Math.abs(n.x - r.x);
|
|
334
|
+
if (Math.abs(a - n.y) * s > Math.abs(i - n.x) * l) {
|
|
335
|
+
let e = r.y < n.y ? n.y - l - a : a - l - n.y;
|
|
336
|
+
c = d * e / u;
|
|
337
|
+
let i = {
|
|
338
|
+
x: r.x < n.x ? r.x + c : r.x - d + c,
|
|
339
|
+
y: r.y < n.y ? r.y + u - e : r.y - u + e
|
|
340
|
+
};
|
|
341
|
+
return c === 0 && (i.x = n.x, i.y = n.y), d === 0 && (i.x = n.x), u === 0 && (i.y = n.y), t.debug(`abc89 top/bottom calc, Q ${u}, q ${e}, R ${d}, r ${c}`, i), i;
|
|
342
|
+
} else {
|
|
343
|
+
c = r.x < n.x ? n.x - s - i : i - s - n.x;
|
|
344
|
+
let e = u * c / d, a = r.x < n.x ? r.x + d - c : r.x - d + c, o = r.y < n.y ? r.y + e : r.y - e;
|
|
345
|
+
return t.debug(`sides calc abc89, Q ${u}, q ${e}, R ${d}, r ${c}`, {
|
|
346
|
+
_x: a,
|
|
347
|
+
_y: o
|
|
348
|
+
}), c === 0 && (a = n.x, o = n.y), d === 0 && (a = n.x), u === 0 && (o = n.y), {
|
|
349
|
+
x: a,
|
|
350
|
+
y: o
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
}, "intersection"), W = /* @__PURE__ */ _((e, n) => {
|
|
354
|
+
t.warn("abc88 cutPathAtIntersect", e, n);
|
|
355
|
+
let r = [], i = e[0], a = !1;
|
|
356
|
+
return e.forEach((e) => {
|
|
357
|
+
if (t.info("abc88 checking point", e, n), !H(n, e) && !a) {
|
|
358
|
+
let o = U(n, i, e);
|
|
359
|
+
t.debug("abc88 inside", e, i, o), t.debug("abc88 intersection", o, n);
|
|
360
|
+
let s = !1;
|
|
361
|
+
r.forEach((e) => {
|
|
362
|
+
s ||= e.x === o.x && e.y === o.y;
|
|
363
|
+
}), r.some((e) => e.x === o.x && e.y === o.y) ? t.warn("abc88 no intersect", o, r) : r.push(o), a = !0;
|
|
364
|
+
} else t.warn("abc88 outside", e, i), i = e, a || r.push(e);
|
|
365
|
+
}), t.debug("returning points", r), r;
|
|
366
|
+
}, "cutPathAtIntersect");
|
|
367
|
+
function G(e) {
|
|
368
|
+
let t = [], n = [];
|
|
369
|
+
for (let r = 1; r < e.length - 1; r++) {
|
|
370
|
+
let i = e[r - 1], a = e[r], o = e[r + 1];
|
|
371
|
+
(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));
|
|
372
|
+
}
|
|
373
|
+
return {
|
|
374
|
+
cornerPoints: t,
|
|
375
|
+
cornerPointPositions: n
|
|
376
|
+
};
|
|
377
|
+
}
|
|
378
|
+
_(G, "extractCornerPoints");
|
|
379
|
+
var K = /* @__PURE__ */ _(function(e, t, n) {
|
|
380
|
+
let r = t.x - e.x, i = t.y - e.y, a = n / Math.sqrt(r * r + i * i);
|
|
381
|
+
return {
|
|
382
|
+
x: t.x - a * r,
|
|
383
|
+
y: t.y - a * i
|
|
384
|
+
};
|
|
385
|
+
}, "findAdjacentPoint"), oe = /* @__PURE__ */ _(function(e) {
|
|
386
|
+
let { cornerPointPositions: n } = G(e), r = [];
|
|
387
|
+
for (let i = 0; i < e.length; i++) if (n.includes(i)) {
|
|
388
|
+
let n = e[i - 1], a = e[i + 1], o = e[i], s = K(n, o, 5), c = K(a, o, 5), l = c.x - s.x, u = c.y - s.y;
|
|
389
|
+
r.push(s);
|
|
390
|
+
let d = Math.sqrt(2) * 2, f = {
|
|
391
|
+
x: o.x,
|
|
392
|
+
y: o.y
|
|
393
|
+
};
|
|
394
|
+
Math.abs(a.x - n.x) > 10 && Math.abs(a.y - n.y) >= 10 ? (t.debug("Corner point fixing", Math.abs(a.x - n.x), Math.abs(a.y - n.y)), f = o.x === s.x ? {
|
|
395
|
+
x: l < 0 ? s.x - 5 + d : s.x + 5 - d,
|
|
396
|
+
y: u < 0 ? s.y - d : s.y + d
|
|
397
|
+
} : {
|
|
398
|
+
x: l < 0 ? s.x - d : s.x + d,
|
|
399
|
+
y: u < 0 ? s.y - 5 + d : s.y + 5 - d
|
|
400
|
+
}) : t.debug("Corner point skipping fixing", Math.abs(a.x - n.x), Math.abs(a.y - n.y)), r.push(f, c);
|
|
401
|
+
} else r.push(e[i]);
|
|
402
|
+
return r;
|
|
403
|
+
}, "fixCorners"), se = /* @__PURE__ */ _((e, t, n) => {
|
|
404
|
+
let r = e - t - n, i = Math.floor(r / 4);
|
|
405
|
+
return `0 ${t} ${Array(Number.isFinite(i) ? Math.max(0, i) : 0).fill("2 2").join(" ")} ${n}`;
|
|
406
|
+
}, "generateDashArray"), q = /* @__PURE__ */ _(function(_, v, y, x, S, C, w, T = !1) {
|
|
407
|
+
if (!w) throw Error(`insertEdge: missing diagramId for edge "${v.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);
|
|
408
|
+
let { handDrawnSeed: E, layout: D } = b(), k = v.points, A = !1, j = S;
|
|
409
|
+
var M = C;
|
|
410
|
+
let N = [];
|
|
411
|
+
for (let e in v.cssCompiledStyles) ee(e) || N.push(v.cssCompiledStyles[e]);
|
|
412
|
+
if (D === "swimlane") {
|
|
413
|
+
if (M.intersect && j.intersect && Array.isArray(k) && k.length >= 2) if (k.length === 2) k = [j.intersect(k[0]), M.intersect(k[1])];
|
|
414
|
+
else {
|
|
415
|
+
let e = k.slice(1, -1), t = e[0], n = e[e.length - 1], r = .5, i = Math.abs(k[k.length - 1].x - n.x) < r && Math.abs(k[k.length - 1].y - n.y) < r, a = j.intersect(t), o = i ? n : M.intersect(n), s = Math.abs(o.x - n.x) < r && Math.abs(o.y - n.y) < r, c = Math.abs(a.x - t.x) < r && Math.abs(a.y - t.y) < r ? [] : [a], l = s ? [] : [o];
|
|
416
|
+
k = [
|
|
417
|
+
...c,
|
|
418
|
+
...e,
|
|
419
|
+
...l
|
|
420
|
+
];
|
|
421
|
+
}
|
|
422
|
+
k = ae(v, k);
|
|
423
|
+
} else M.intersect && j.intersect && !T && (k = k.slice(1, v.points.length - 1), k.unshift(j.intersect(k[0])), k.push(M.intersect(k[k.length - 1])));
|
|
424
|
+
let P = btoa(JSON.stringify(k));
|
|
425
|
+
v.toCluster && (t.info("to cluster abc88", y.get(v.toCluster)), k = W(v.points, y.get(v.toCluster).node), A = !0), v.fromCluster && (t.debug("from cluster abc88", y.get(v.fromCluster), JSON.stringify(k, null, 2)), k = W(k.reverse(), y.get(v.fromCluster).node).reverse(), A = !0);
|
|
426
|
+
let F = k.filter((e) => !Number.isNaN(e.y)), I = ie(v.curve);
|
|
427
|
+
I !== "rounded" && (F = oe(F));
|
|
428
|
+
let L = f;
|
|
429
|
+
switch (I) {
|
|
430
|
+
case "linear":
|
|
431
|
+
L = f;
|
|
432
|
+
break;
|
|
433
|
+
case "basis":
|
|
434
|
+
L = r;
|
|
435
|
+
break;
|
|
436
|
+
case "cardinal":
|
|
437
|
+
L = c;
|
|
438
|
+
break;
|
|
439
|
+
case "bumpX":
|
|
440
|
+
L = p;
|
|
441
|
+
break;
|
|
442
|
+
case "bumpY":
|
|
443
|
+
L = h;
|
|
444
|
+
break;
|
|
445
|
+
case "catmullRom":
|
|
446
|
+
L = d;
|
|
447
|
+
break;
|
|
448
|
+
case "monotoneX":
|
|
449
|
+
L = i;
|
|
450
|
+
break;
|
|
451
|
+
case "monotoneY":
|
|
452
|
+
L = s;
|
|
453
|
+
break;
|
|
454
|
+
case "natural":
|
|
455
|
+
L = a;
|
|
456
|
+
break;
|
|
457
|
+
case "step":
|
|
458
|
+
L = l;
|
|
459
|
+
break;
|
|
460
|
+
case "stepAfter":
|
|
461
|
+
L = u;
|
|
462
|
+
break;
|
|
463
|
+
case "stepBefore":
|
|
464
|
+
L = o;
|
|
465
|
+
break;
|
|
466
|
+
case "rounded":
|
|
467
|
+
L = f;
|
|
468
|
+
break;
|
|
469
|
+
default: L = r;
|
|
470
|
+
}
|
|
471
|
+
let { x: R, y: z } = ne(v), B = e().x(R).y(z).curve(L), V;
|
|
472
|
+
switch (v.thickness) {
|
|
473
|
+
case "normal":
|
|
474
|
+
V = "edge-thickness-normal";
|
|
475
|
+
break;
|
|
476
|
+
case "thick":
|
|
477
|
+
V = "edge-thickness-thick";
|
|
478
|
+
break;
|
|
479
|
+
case "invisible":
|
|
480
|
+
V = "edge-thickness-invisible";
|
|
481
|
+
break;
|
|
482
|
+
default: V = "edge-thickness-normal";
|
|
483
|
+
}
|
|
484
|
+
switch (v.pattern) {
|
|
485
|
+
case "solid":
|
|
486
|
+
V += " edge-pattern-solid";
|
|
487
|
+
break;
|
|
488
|
+
case "dotted":
|
|
489
|
+
V += " edge-pattern-dotted";
|
|
490
|
+
break;
|
|
491
|
+
case "dashed":
|
|
492
|
+
V += " edge-pattern-dashed";
|
|
493
|
+
break;
|
|
494
|
+
default: V += " edge-pattern-solid";
|
|
495
|
+
}
|
|
496
|
+
let H, U = I === "rounded" ? J(X(F, v), 5) : B(F), G = Array.isArray(v.style) ? v.style : [v.style], K = G.find((e) => e?.startsWith("stroke:")), q = "";
|
|
497
|
+
v.animate && (q = "edge-animation-fast"), v.animation && (q = "edge-animation-" + v.animation);
|
|
498
|
+
let Y = !1;
|
|
499
|
+
if (v.look === "handDrawn") {
|
|
500
|
+
let e = te.svg(_);
|
|
501
|
+
Object.assign([], F);
|
|
502
|
+
let t = e.path(U, {
|
|
503
|
+
roughness: .3,
|
|
504
|
+
seed: E
|
|
505
|
+
});
|
|
506
|
+
V += " transition", H = n(t).select("path").attr("id", `${w}-${v.id}`).attr("class", " " + V + (v.classes ? " " + v.classes : "") + (q ? " " + q : "")).attr("style", G ? G.reduce((e, t) => e + ";" + t, "") : "");
|
|
507
|
+
let r = H.attr("d");
|
|
508
|
+
H.attr("d", r), _.node().appendChild(H.node());
|
|
509
|
+
} else {
|
|
510
|
+
let e = N.join(";"), t = G ? G.reduce((e, t) => e + t + ";", "") : "", n = (e ? e + ";" + t + ";" : t) + ";" + (G ? G.reduce((e, t) => e + ";" + t, "") : "");
|
|
511
|
+
H = _.append("path").attr("d", U).attr("id", `${w}-${v.id}`).attr("class", " " + V + (v.classes ? " " + v.classes : "") + (q ? " " + q : "")).attr("style", n), K = n.match(/stroke:([^;]+)/)?.[1], Y = v.animate === !0 || !!v.animation || e.includes("animation");
|
|
512
|
+
let r = H.node(), i = typeof r.getTotalLength == "function" ? r.getTotalLength() : 0, a = O[v.arrowTypeStart] || 0, o = O[v.arrowTypeEnd] || 0;
|
|
513
|
+
if (v.look === "neo" && !Y) {
|
|
514
|
+
let e = `stroke-dasharray: ${v.pattern === "dotted" || v.pattern === "dashed" ? se(i, a, o) : `0 ${a} ${i - a - o} ${o}`}; stroke-dashoffset: 0;`;
|
|
515
|
+
H.attr("style", e + H.attr("style"));
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
H.attr("data-edge", !0), H.attr("data-et", "edge"), H.attr("data-id", v.id), H.attr("data-points", P), H.attr("data-look", g(v.look)), v.showPoints && F.forEach((e) => {
|
|
519
|
+
_.append("circle").style("stroke", "red").style("fill", "red").attr("r", 1).attr("cx", e.x).attr("cy", e.y);
|
|
520
|
+
});
|
|
521
|
+
let Z = "";
|
|
522
|
+
(b().flowchart.arrowMarkerAbsolute || b().state.arrowMarkerAbsolute) && (Z = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, Z = Z.replace(/\(/g, "\\(").replace(/\)/g, "\\)")), t.info("arrowTypeStart", v.arrowTypeStart), t.info("arrowTypeEnd", v.arrowTypeEnd);
|
|
523
|
+
let Q = !Y && v?.look === "neo";
|
|
524
|
+
re(H, v, Z, w, x, Q, K);
|
|
525
|
+
let ce = Math.floor(k.length / 2), le = k[ce];
|
|
526
|
+
m.isLabelCoordinateInPath(le, H.attr("d")) || (A = !0);
|
|
527
|
+
let $ = {};
|
|
528
|
+
return A && ($.updatedPath = k), $.originalPath = v.points, $;
|
|
529
|
+
}, "insertEdge");
|
|
530
|
+
function J(e, t) {
|
|
531
|
+
if (e.length < 2) return "";
|
|
532
|
+
let n = "", r = e.length, i = 1e-5;
|
|
533
|
+
for (let a = 0; a < r; a++) {
|
|
534
|
+
let o = e[a], s = e[a - 1], c = e[a + 1];
|
|
535
|
+
if (a === 0) n += `M${o.x},${o.y}`;
|
|
536
|
+
else if (a === r - 1) n += `L${o.x},${o.y}`;
|
|
537
|
+
else {
|
|
538
|
+
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);
|
|
539
|
+
if (u < i || d < i) {
|
|
540
|
+
n += `L${o.x},${o.y}`;
|
|
541
|
+
continue;
|
|
542
|
+
}
|
|
543
|
+
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)));
|
|
544
|
+
if (_ < i || Math.abs(Math.PI - _) < i) {
|
|
545
|
+
n += `L${o.x},${o.y}`;
|
|
546
|
+
continue;
|
|
547
|
+
}
|
|
548
|
+
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;
|
|
549
|
+
n += `L${y},${b}`, n += `Q${o.x},${o.y} ${x},${S}`;
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
return n;
|
|
553
|
+
}
|
|
554
|
+
_(J, "generateRoundedPath");
|
|
555
|
+
function Y(e, t) {
|
|
556
|
+
if (!e || !t) return {
|
|
557
|
+
angle: 0,
|
|
558
|
+
deltaX: 0,
|
|
559
|
+
deltaY: 0
|
|
560
|
+
};
|
|
561
|
+
let n = t.x - e.x, r = t.y - e.y;
|
|
562
|
+
return {
|
|
563
|
+
angle: Math.atan2(r, n),
|
|
564
|
+
deltaX: n,
|
|
565
|
+
deltaY: r
|
|
566
|
+
};
|
|
567
|
+
}
|
|
568
|
+
_(Y, "calculateDeltaAndAngle");
|
|
569
|
+
function X(e, t) {
|
|
570
|
+
let n = e.map((e) => ({ ...e }));
|
|
571
|
+
if (e.length >= 2 && D[t.arrowTypeStart]) {
|
|
572
|
+
let r = D[t.arrowTypeStart], i = e[0], a = e[1], { angle: o } = Y(i, a), s = r * Math.cos(o), c = r * Math.sin(o);
|
|
573
|
+
n[0].x = i.x + s, n[0].y = i.y + c;
|
|
574
|
+
}
|
|
575
|
+
let r = e.length;
|
|
576
|
+
if (r >= 2 && D[t.arrowTypeEnd]) {
|
|
577
|
+
let i = D[t.arrowTypeEnd], a = e[r - 1], o = e[r - 2], { angle: s } = Y(o, a), c = i * Math.cos(s), l = i * Math.sin(s);
|
|
578
|
+
n[r - 1].x = a.x - c, n[r - 1].y = a.y - l;
|
|
579
|
+
}
|
|
580
|
+
return n;
|
|
581
|
+
}
|
|
582
|
+
_(X, "applyMarkerOffsetsToPoints");
|
|
583
|
+
var Z = /* @__PURE__ */ _((e, t, n, r) => {
|
|
584
|
+
t.forEach((t) => {
|
|
585
|
+
Q[t](e, n, r);
|
|
586
|
+
});
|
|
587
|
+
}, "insertMarkers"), Q = {
|
|
588
|
+
extension: /* @__PURE__ */ _((e, n, r) => {
|
|
589
|
+
t.trace("Making markers for ", r), e.append("defs").append("marker").attr("id", r + "_" + n + "-extensionStart").attr("class", "marker extension " + n).attr("refX", 18).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), e.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").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 1,1 V 13 L18,7 Z"), e.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"), e.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");
|
|
590
|
+
}, "extension"),
|
|
591
|
+
composition: /* @__PURE__ */ _((e, t, n) => {
|
|
592
|
+
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").attr("markerUnits", "userSpaceOnUse").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").attr("markerUnits", "userSpaceOnUse").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");
|
|
593
|
+
}, "composition"),
|
|
594
|
+
aggregation: /* @__PURE__ */ _((e, t, n) => {
|
|
595
|
+
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").attr("markerUnits", "userSpaceOnUse").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").attr("markerUnits", "userSpaceOnUse").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");
|
|
596
|
+
}, "aggregation"),
|
|
597
|
+
dependency: /* @__PURE__ */ _((e, t, n) => {
|
|
598
|
+
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").attr("markerUnits", "userSpaceOnUse").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").attr("markerUnits", "userSpaceOnUse").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");
|
|
599
|
+
}, "dependency"),
|
|
600
|
+
lollipop: /* @__PURE__ */ _((e, t, n) => {
|
|
601
|
+
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").attr("markerUnits", "userSpaceOnUse").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").attr("markerUnits", "userSpaceOnUse").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);
|
|
602
|
+
}, "lollipop"),
|
|
603
|
+
point: /* @__PURE__ */ _((e, t, n) => {
|
|
604
|
+
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");
|
|
605
|
+
}, "point"),
|
|
606
|
+
circle: /* @__PURE__ */ _((e, t, n) => {
|
|
607
|
+
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");
|
|
608
|
+
}, "circle"),
|
|
609
|
+
cross: /* @__PURE__ */ _((e, t, n) => {
|
|
610
|
+
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");
|
|
611
|
+
}, "cross"),
|
|
612
|
+
barb: /* @__PURE__ */ _((e, t, n) => {
|
|
613
|
+
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");
|
|
614
|
+
}, "barb"),
|
|
615
|
+
barbNeo: /* @__PURE__ */ _((e, t, n) => {
|
|
616
|
+
let { themeVariables: r } = y(), { transitionColor: i } = r;
|
|
617
|
+
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}`);
|
|
618
|
+
}, "barbNeo"),
|
|
619
|
+
hierarchy: /* @__PURE__ */ _((e, t, n) => {
|
|
620
|
+
e.append("marker").attr("id", n + "_" + t + "-hierarchyEnd").attr("class", "marker hierarchy " + t).attr("viewBox", "0 0 12 10").attr("refX", 10).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 10).attr("orient", "auto").append("path").attr("d", "M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0").style("fill", "none"), e.append("marker").attr("id", n + "_" + t + "-hierarchyStart").attr("class", "marker hierarchy " + t).attr("viewBox", "0 0 12 10").attr("refX", 2).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 10).attr("orient", "auto").append("path").attr("d", "M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0").style("fill", "none");
|
|
621
|
+
}, "hierarchy"),
|
|
622
|
+
only_one: /* @__PURE__ */ _((e, t, n) => {
|
|
623
|
+
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");
|
|
624
|
+
}, "only_one"),
|
|
625
|
+
zero_or_one: /* @__PURE__ */ _((e, t, n) => {
|
|
626
|
+
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");
|
|
627
|
+
r.append("circle").attr("fill", "white").attr("cx", 21).attr("cy", 9).attr("r", 6), r.append("path").attr("d", "M9,0 L9,18");
|
|
628
|
+
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");
|
|
629
|
+
i.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 9).attr("r", 6), i.append("path").attr("d", "M21,0 L21,18");
|
|
630
|
+
}, "zero_or_one"),
|
|
631
|
+
one_or_more: /* @__PURE__ */ _((e, t, n) => {
|
|
632
|
+
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");
|
|
633
|
+
}, "one_or_more"),
|
|
634
|
+
zero_or_more: /* @__PURE__ */ _((e, t, n) => {
|
|
635
|
+
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");
|
|
636
|
+
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");
|
|
637
|
+
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");
|
|
638
|
+
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");
|
|
639
|
+
}, "zero_or_more"),
|
|
640
|
+
only_one_neo: /* @__PURE__ */ _((e, t, n) => {
|
|
641
|
+
let { themeVariables: r } = y(), { strokeWidth: i } = r;
|
|
642
|
+
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}`);
|
|
643
|
+
}, "only_one_neo"),
|
|
644
|
+
zero_or_one_neo: /* @__PURE__ */ _((e, t, n) => {
|
|
645
|
+
let { themeVariables: r } = y(), { strokeWidth: i, mainBkg: a } = r, o = 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");
|
|
646
|
+
o.append("circle").attr("fill", a ?? "white").attr("cx", 21).attr("cy", 9).attr("stroke-width", `${i}`).attr("r", 6), o.append("path").attr("d", "M9,0 L9,18").attr("stroke-width", `${i}`);
|
|
647
|
+
let s = 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");
|
|
648
|
+
s.append("circle").attr("fill", a ?? "white").attr("cx", 9).attr("cy", 9).attr("stroke-width", `${i}`).attr("r", 6), s.append("path").attr("d", "M21,0 L21,18").attr("stroke-width", `${i}`);
|
|
649
|
+
}, "zero_or_one_neo"),
|
|
650
|
+
one_or_more_neo: /* @__PURE__ */ _((e, t, n) => {
|
|
651
|
+
let { themeVariables: r } = y(), { strokeWidth: i } = r;
|
|
652
|
+
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}`);
|
|
653
|
+
}, "one_or_more_neo"),
|
|
654
|
+
zero_or_more_neo: /* @__PURE__ */ _((e, t, n) => {
|
|
655
|
+
let { themeVariables: r } = y(), { strokeWidth: i, mainBkg: a } = r, o = 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");
|
|
656
|
+
o.append("circle").attr("fill", a ?? "white").attr("cx", 45.5).attr("cy", 18).attr("r", 6).attr("stroke-width", `${i}`), o.append("path").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width", `${i}`);
|
|
657
|
+
let s = 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");
|
|
658
|
+
s.append("circle").attr("fill", a ?? "white").attr("cx", 11).attr("cy", 18).attr("r", 6).attr("stroke-width", `${i}`), s.append("path").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width", `${i}`);
|
|
659
|
+
}, "zero_or_more_neo"),
|
|
660
|
+
requirement_arrow: /* @__PURE__ */ _((e, t, n) => {
|
|
661
|
+
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");
|
|
662
|
+
}, "requirement_arrow"),
|
|
663
|
+
requirement_contains: /* @__PURE__ */ _((e, t, n) => {
|
|
664
|
+
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");
|
|
665
|
+
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);
|
|
666
|
+
}, "requirement_contains"),
|
|
667
|
+
requirement_arrow_neo: /* @__PURE__ */ _((e, t, n) => {
|
|
668
|
+
let { themeVariables: r } = y(), { strokeWidth: i } = r;
|
|
669
|
+
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");
|
|
670
|
+
}, "requirement_arrow_neo"),
|
|
671
|
+
requirement_contains_neo: /* @__PURE__ */ _((e, t, n) => {
|
|
672
|
+
let { themeVariables: r } = y(), { strokeWidth: i } = r, a = 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");
|
|
673
|
+
a.append("circle").attr("cx", 10).attr("cy", 10).attr("r", 9).attr("fill", "none"), a.append("line").attr("x1", 1).attr("x2", 19).attr("y1", 10).attr("y2", 10), a.append("line").attr("y1", 1).attr("y2", 19).attr("x1", 10).attr("x2", 10), a.selectAll("*").attr("stroke-width", `${i}`);
|
|
674
|
+
}, "requirement_contains_neo")
|
|
675
|
+
}, ce = Z;
|
|
676
|
+
//#endregion
|
|
677
|
+
export { z as a, ce as c, q as i, V as l, P as n, D as o, L as r, O as s, I as t, F as u };
|