@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,236 @@
|
|
|
1
|
+
import { n as e } from "./chunk-Y2CYZVJY-i11wjrBe.js";
|
|
2
|
+
import { o as t } from "./chunk-Z7XXMR3K-BoDf6lxl.js";
|
|
3
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-NETBCI7D.mjs
|
|
4
|
+
var n = 5, r = 1e-5, i = 2, a = .6, o = 1e-6;
|
|
5
|
+
function s(e) {
|
|
6
|
+
let t = [];
|
|
7
|
+
for (let n = 0; n < e.length - 1; n++) t.push({
|
|
8
|
+
a: e[n],
|
|
9
|
+
b: e[n + 1]
|
|
10
|
+
});
|
|
11
|
+
return t;
|
|
12
|
+
}
|
|
13
|
+
e(s, "buildSegmentList");
|
|
14
|
+
function c(e, t, n, r) {
|
|
15
|
+
let i = t.x - e.x, a = t.y - e.y, s = r.x - n.x, c = r.y - n.y, l = i * c - a * s;
|
|
16
|
+
if (l === 0) return null;
|
|
17
|
+
let u = n.x - e.x, d = n.y - e.y, f = (u * c - d * s) / l, p = (u * a - d * i) / l;
|
|
18
|
+
return f <= o || f >= 1 - o || p <= o || p >= 1 - o ? null : {
|
|
19
|
+
point: {
|
|
20
|
+
x: e.x + f * i,
|
|
21
|
+
y: e.y + f * a
|
|
22
|
+
},
|
|
23
|
+
tA: f,
|
|
24
|
+
tB: p
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
e(c, "segmentIntersection");
|
|
28
|
+
function l(e) {
|
|
29
|
+
return Math.abs(e.b.x - e.a.x) >= Math.abs(e.b.y - e.a.y);
|
|
30
|
+
}
|
|
31
|
+
e(l, "isHorizontalSeg");
|
|
32
|
+
function u(e, t, r) {
|
|
33
|
+
if (e.curve !== "rounded") return !1;
|
|
34
|
+
let i = e.points, a = i[t], o = i[t + 1];
|
|
35
|
+
if (!a || !o) return !1;
|
|
36
|
+
let s = Math.hypot(o.x - a.x, o.y - a.y), c = r * s, l = t > 0 ? _(i[t - 1], a, o, n) : null;
|
|
37
|
+
if (l && c < l.cutLen) return !0;
|
|
38
|
+
let u = t + 2 < i.length ? _(a, o, i[t + 2], n) : null;
|
|
39
|
+
return u !== null && s - c < u.cutLen;
|
|
40
|
+
}
|
|
41
|
+
e(u, "crossingSitsInRoundedCorner");
|
|
42
|
+
function d(e) {
|
|
43
|
+
let t = [];
|
|
44
|
+
for (let n = 0; n < e.length; n++) {
|
|
45
|
+
let r = e[n], i = s(r.points);
|
|
46
|
+
for (let a = n + 1; a < e.length; a++) {
|
|
47
|
+
let n = e[a], o = s(n.points);
|
|
48
|
+
for (let [e, a] of i.entries()) for (let [i, s] of o.entries()) {
|
|
49
|
+
let o = c(a.a, a.b, s.a, s.b);
|
|
50
|
+
if (!o || u(r, e, o.tA) || u(n, i, o.tB)) continue;
|
|
51
|
+
let d = l(a);
|
|
52
|
+
d !== l(s) && d ? t.push({
|
|
53
|
+
jumpEdgeId: r.id,
|
|
54
|
+
otherEdgeId: n.id,
|
|
55
|
+
segIndex: e,
|
|
56
|
+
t: o.tA,
|
|
57
|
+
point: o.point
|
|
58
|
+
}) : t.push({
|
|
59
|
+
jumpEdgeId: n.id,
|
|
60
|
+
otherEdgeId: r.id,
|
|
61
|
+
segIndex: i,
|
|
62
|
+
t: o.tB,
|
|
63
|
+
point: o.point
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return t;
|
|
69
|
+
}
|
|
70
|
+
e(d, "findEdgeIntersections");
|
|
71
|
+
function f(e) {
|
|
72
|
+
return `${Math.round(e * 1e3) / 1e3}`;
|
|
73
|
+
}
|
|
74
|
+
e(f, "fmt");
|
|
75
|
+
function p(e) {
|
|
76
|
+
return `${f(e.x)},${f(e.y)}`;
|
|
77
|
+
}
|
|
78
|
+
e(p, "pointToString");
|
|
79
|
+
function m(e) {
|
|
80
|
+
let t = e.b.x - e.a.x, n = e.b.y - e.a.y;
|
|
81
|
+
return Math.abs(t) >= Math.abs(n) ? +(t >= 0) : +(n >= 0);
|
|
82
|
+
}
|
|
83
|
+
e(m, "getArcSweepFlag");
|
|
84
|
+
function h(e, n) {
|
|
85
|
+
if (e.length < 2) return e.map((e) => ({ ...e }));
|
|
86
|
+
let r = e.map((e) => ({ ...e })), i = n.arrowTypeStart && t[n.arrowTypeStart];
|
|
87
|
+
if (i) {
|
|
88
|
+
let t = e[0], n = e[1], a = Math.atan2(n.y - t.y, n.x - t.x);
|
|
89
|
+
r[0].x = t.x + i * Math.cos(a), r[0].y = t.y + i * Math.sin(a);
|
|
90
|
+
}
|
|
91
|
+
let a = n.arrowTypeEnd && t[n.arrowTypeEnd];
|
|
92
|
+
if (a) {
|
|
93
|
+
let t = e.length, n = e[t - 2], i = e[t - 1], o = Math.atan2(i.y - n.y, i.x - n.x);
|
|
94
|
+
r[t - 1].x = i.x - a * Math.cos(o), r[t - 1].y = i.y - a * Math.sin(o);
|
|
95
|
+
}
|
|
96
|
+
return r;
|
|
97
|
+
}
|
|
98
|
+
e(h, "applyMarkerOffsets");
|
|
99
|
+
function g(e, t, n, r, i) {
|
|
100
|
+
let a = e.point.x, o = e.point.y, s = {
|
|
101
|
+
x: a - t * e.r,
|
|
102
|
+
y: o - n * e.r
|
|
103
|
+
}, c = {
|
|
104
|
+
x: a + t * e.r,
|
|
105
|
+
y: o + n * e.r
|
|
106
|
+
}, l = [`L${p(s)}`];
|
|
107
|
+
return i === "arc" ? l.push(`A${f(e.r)},${f(e.r)} 0 0 ${r} ${p(c)}`) : l.push(`M${p(c)}`), l;
|
|
108
|
+
}
|
|
109
|
+
e(g, "emitJump");
|
|
110
|
+
function _(e, t, n, i) {
|
|
111
|
+
let a = t.x - e.x, o = t.y - e.y, s = n.x - t.x, c = n.y - t.y, l = Math.hypot(a, o), u = Math.hypot(s, c);
|
|
112
|
+
if (l < r || u < r) return null;
|
|
113
|
+
let d = a / l, f = o / l, p = s / u, m = c / u, h = d * p + f * m, g = Math.acos(Math.max(-1, Math.min(1, h)));
|
|
114
|
+
if (g < r || Math.abs(Math.PI - g) < r) return null;
|
|
115
|
+
let _ = Math.min(i / Math.sin(g / 2), l / 2, u / 2);
|
|
116
|
+
return {
|
|
117
|
+
startX: t.x - d * _,
|
|
118
|
+
startY: t.y - f * _,
|
|
119
|
+
endX: t.x + p * _,
|
|
120
|
+
endY: t.y + m * _,
|
|
121
|
+
ctrlX: t.x,
|
|
122
|
+
ctrlY: t.y,
|
|
123
|
+
cutLen: _
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
e(_, "computeRoundedCorner");
|
|
127
|
+
function v(e, t, r) {
|
|
128
|
+
let o = e.points;
|
|
129
|
+
if (o.length < 2) return "";
|
|
130
|
+
let c = h(o, e), l = e.curve === "rounded", u = s(c), d = /* @__PURE__ */ new Map();
|
|
131
|
+
for (let e of t) {
|
|
132
|
+
let t = u[e.segIndex];
|
|
133
|
+
if (!t) continue;
|
|
134
|
+
let n = Math.hypot(t.b.x - t.a.x, t.b.y - t.a.y), i = d.get(e.segIndex) ?? [];
|
|
135
|
+
i.push({
|
|
136
|
+
t: e.t,
|
|
137
|
+
point: e.point,
|
|
138
|
+
d: e.t * n,
|
|
139
|
+
r: r.jumpRadius
|
|
140
|
+
}), d.set(e.segIndex, i);
|
|
141
|
+
}
|
|
142
|
+
let v = [`M${p(c[0])}`];
|
|
143
|
+
for (let e = 0; e < u.length; e++) {
|
|
144
|
+
let t = u[e], o = Math.hypot(t.b.x - t.a.x, t.b.y - t.a.y), s = o === 0 ? 0 : (t.b.x - t.a.x) / o, h = o === 0 ? 0 : (t.b.y - t.a.y) / o, y = m(t), b = 0;
|
|
145
|
+
if (l && e > 0) {
|
|
146
|
+
let t = _(c[e - 1], c[e], c[e + 1] ?? c[e], n);
|
|
147
|
+
t && (b = t.cutLen);
|
|
148
|
+
}
|
|
149
|
+
let x = o, S = null;
|
|
150
|
+
l && e < u.length - 1 && (S = _(c[e], c[e + 1], c[e + 2] ?? c[e + 1], n), S && (x = o - S.cutLen));
|
|
151
|
+
let C = r.jumpRadius * a, w = [...d.get(e) ?? []].sort((e, t) => e.t - t.t).filter((e) => {
|
|
152
|
+
let t = Math.min(e.d - b, x - e.d) - i;
|
|
153
|
+
return e.r = Math.min(e.r, t), e.r >= C;
|
|
154
|
+
});
|
|
155
|
+
for (let e = 0; e < w.length - 1; e++) {
|
|
156
|
+
let t = w[e + 1].d - w[e].d;
|
|
157
|
+
if (w[e].r + w[e + 1].r > t) {
|
|
158
|
+
let n = t / 2;
|
|
159
|
+
w[e].r = Math.min(w[e].r, n), w[e + 1].r = Math.min(w[e + 1].r, n);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
for (let e of w) e.r < C || v.push(...g(e, s, h, y, r.jumpStyle));
|
|
163
|
+
l && S ? (v.push(`L${f(S.startX)},${f(S.startY)}`), v.push(`Q${f(S.ctrlX)},${f(S.ctrlY)} ${f(S.endX)},${f(S.endY)}`)) : v.push(`L${p(t.b)}`);
|
|
164
|
+
}
|
|
165
|
+
return v.join(" ");
|
|
166
|
+
}
|
|
167
|
+
e(v, "rewriteEdgePath");
|
|
168
|
+
function y(e) {
|
|
169
|
+
return /^[\d\s+,.LMelm-]*$/.test(e);
|
|
170
|
+
}
|
|
171
|
+
e(y, "isStraightPath");
|
|
172
|
+
function b(e) {
|
|
173
|
+
return !e || e === "linear" || e === "rounded" || e === "step" || e === "stepBefore" || e === "stepAfter";
|
|
174
|
+
}
|
|
175
|
+
e(b, "curveSupportsLineHops");
|
|
176
|
+
function x(e) {
|
|
177
|
+
if (!e) return null;
|
|
178
|
+
try {
|
|
179
|
+
let t = typeof atob == "function" ? atob(e) : Buffer.from(e, "base64").toString(), n = JSON.parse(t);
|
|
180
|
+
if (!Array.isArray(n)) return null;
|
|
181
|
+
let r = [];
|
|
182
|
+
for (let e of n) e && typeof e.x == "number" && typeof e.y == "number" && r.push({
|
|
183
|
+
x: e.x,
|
|
184
|
+
y: e.y
|
|
185
|
+
});
|
|
186
|
+
return r.length >= 2 ? r : null;
|
|
187
|
+
} catch {
|
|
188
|
+
return null;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
e(x, "decodeDataPoints");
|
|
192
|
+
function S(e, t, n) {
|
|
193
|
+
if (!n.enabled) return;
|
|
194
|
+
let r = e.node();
|
|
195
|
+
if (!r) return;
|
|
196
|
+
let i = /* @__PURE__ */ new Map();
|
|
197
|
+
for (let e of t) i.set(e.id, e);
|
|
198
|
+
let a = /* @__PURE__ */ new Map();
|
|
199
|
+
for (let e of r.querySelectorAll("path[data-id]")) {
|
|
200
|
+
let t = e.getAttribute("data-id");
|
|
201
|
+
t !== null && !a.has(t) && a.set(t, e);
|
|
202
|
+
}
|
|
203
|
+
let o = [];
|
|
204
|
+
for (let e of t) {
|
|
205
|
+
let t = a.get(e.id);
|
|
206
|
+
if (!t) continue;
|
|
207
|
+
let n = x(t.getAttribute("data-points")) ?? e.points;
|
|
208
|
+
o.push({
|
|
209
|
+
...e,
|
|
210
|
+
points: n
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
let s = d(o);
|
|
214
|
+
if (s.length === 0) return;
|
|
215
|
+
let c = /* @__PURE__ */ new Map();
|
|
216
|
+
for (let e of s) {
|
|
217
|
+
let t = c.get(e.jumpEdgeId) ?? [];
|
|
218
|
+
t.push(e), c.set(e.jumpEdgeId, t);
|
|
219
|
+
}
|
|
220
|
+
for (let e of o) {
|
|
221
|
+
let t = c.get(e.id);
|
|
222
|
+
if (!t || t.length === 0) continue;
|
|
223
|
+
let r = i.get(e.id)?.curve;
|
|
224
|
+
if (r !== void 0 && !b(r)) continue;
|
|
225
|
+
let o = a.get(e.id);
|
|
226
|
+
if (!o || r === void 0 && !y(o.getAttribute("d") ?? "")) continue;
|
|
227
|
+
let s = o.getAttribute("style") ?? "", l = /stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(s), u = l ? Number.parseFloat(l[1]) : null, d = l ? Number.parseFloat(l[2]) : null, f = v(e, t, n);
|
|
228
|
+
if (o.setAttribute("d", f), u !== null && d !== null && typeof o.getTotalLength == "function") {
|
|
229
|
+
let e = o.getTotalLength(), t = `0 ${u} ${Math.max(0, e - u - d)} ${d}`, n = s.replace(/stroke-dasharray\s*:[^;]*;?/g, `stroke-dasharray: ${t};`).replace(/;\s*;+/g, ";");
|
|
230
|
+
o.setAttribute("style", n);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
e(S, "applyLineJumpsToSvg");
|
|
235
|
+
//#endregion
|
|
236
|
+
export { S as t };
|