@antdv-next/x 1.0.2-beta.2 → 1.0.2-beta.4
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/actions/Actions.js +1 -1
- package/dist/attachments/index.js +1 -1
- package/dist/conversations/index.js +1 -1
- package/dist/file-card/FileCard.js +1 -1
- package/dist/file-card/List.js +1 -1
- package/dist/index.umd.js +25 -25
- package/dist/locale/useLocale.js +1 -1
- package/dist/mermaid/Mermaid.js +1 -1
- package/dist/package.js +1 -1
- package/dist/prompts/Prompts.js +1 -1
- package/dist/sender/Sender.js +1 -1
- package/dist/sender/SenderHeader.js +1 -1
- package/dist/sender/SenderSwitch.js +1 -1
- package/dist/sources/Sources.js +1 -1
- package/dist/suggestion/Suggestion.js +1 -1
- package/dist/theme/genStyleUtils.js +1 -1
- package/dist/think/Think.js +1 -1
- package/dist/thought-chain/Item.js +1 -1
- package/dist/thought-chain/Node.js +1 -1
- package/dist/thought-chain/ThoughtChain.js +1 -1
- package/dist/welcome/index.js +1 -1
- package/dist/x-provider/hooks/use-x-provider-context.js +1 -1
- package/es/{Serializer-y_SfSPKv.js → Serializer-D1JYN1kI.js} +4 -4
- package/es/{_basePickBy-DPqob0cQ.js → _basePickBy-DFHEGO2M.js} +23 -23
- package/es/{_baseUniq-AMhRdOMz.js → _baseUniq-BlS7rXTs.js} +83 -83
- package/es/antdv-next-x.esm.js +44833 -7290
- package/es/{arc-caEkbRYF.js → arc-BuXEd18J.js} +3 -3
- package/es/architecture-PBZL5I3N-D7tS55xM.js +3 -0
- package/es/{architectureDiagram-2XIMDMQ5-ZOgJV9Kg.js → architectureDiagram-2XIMDMQ5-CmfsCwJk.js} +85 -85
- package/es/{blockDiagram-WCTKOSBZ-8iZwAKBK.js → blockDiagram-WCTKOSBZ-lJAan65A.js} +530 -530
- package/es/{c4Diagram-IC4MRINW-DrH9eRMR.js → c4Diagram-IC4MRINW-B1c2x_1Q.js} +170 -170
- package/es/channel-DFgF_2F7.js +5 -0
- package/es/{chunk-4BX2VUAB-DUVpjbJi.js → chunk-4BX2VUAB-J2N81Fpp.js} +2 -2
- package/es/{chunk-55IACEB6-RlJ-J3tE.js → chunk-55IACEB6-DGtfGRgi.js} +2 -2
- package/es/{chunk-7E7YKBS2-ChLFamzc.js → chunk-7E7YKBS2-CL2d4WAf.js} +2 -2
- package/es/{chunk-7R4GIKGN-B9vamSzt.js → chunk-7R4GIKGN-QT6IorJ_.js} +3 -3
- package/es/{chunk-C72U2L5F-BV-rXau1.js → chunk-C72U2L5F-OHTVpS-m.js} +2 -2
- package/es/{chunk-EGIJ26TM-GvsuORRL.js → chunk-EGIJ26TM-DyMPGYrB.js} +2 -2
- package/es/{chunk-FMBD7UC4-D6ZlqqMC.js → chunk-FMBD7UC4-DCcRjunY.js} +2 -2
- package/es/{chunk-GEFDOKGD-DM6dsEsk.js → chunk-GEFDOKGD-BWpC-zoH.js} +278 -278
- package/es/chunk-GLR3WWYH-DiXcKb5Y.js +41 -0
- package/es/{chunk-HHEYEP7N-FVfYw94p.js → chunk-HHEYEP7N-Cxc7E4dX.js} +3 -3
- package/es/{chunk-JSJVCQXG-Wr9uPcCh.js → chunk-JSJVCQXG-D8_heHOp.js} +4 -4
- package/es/{chunk-KX2RTZJC-BGffjoxB.js → chunk-KX2RTZJC-D5cc4rj6.js} +3 -3
- package/es/{chunk-KYZI473N-Bit5smNE.js → chunk-KYZI473N-BHJ3T5Zv.js} +573 -573
- package/es/{chunk-L3YUKLVL-DBuHDpQ2.js → chunk-L3YUKLVL-7oGaUOdc.js} +2 -2
- package/es/{chunk-MX3YWQON-Cbj2WwUZ.js → chunk-MX3YWQON-BxE-Aq9c.js} +2 -2
- package/es/{chunk-NQ4KR5QH-FPQ-IHJN.js → chunk-NQ4KR5QH-EYQBXkqP.js} +120 -120
- package/es/{chunk-O4XLMI2P-BCDk0ZIW.js → chunk-O4XLMI2P-qjOoGpnx.js} +238 -238
- package/es/{chunk-OZEHJAEY-BZ24IOgQ.js → chunk-OZEHJAEY-D82nx27s.js} +2 -2
- package/es/{chunk-PQ6SQG4A-DpwBx6Hx.js → chunk-PQ6SQG4A-D3jtNCWN.js} +3 -3
- package/es/{chunk-PU5JKC2W-BNpJuXxn.js → chunk-PU5JKC2W-DdP8BS-S.js} +76 -76
- package/es/{chunk-QZHKN3VN-NEMwPryC.js → chunk-QZHKN3VN-CW3cFN-h.js} +2 -2
- package/es/{chunk-R5LLSJPH-g44vgerl.js → chunk-R5LLSJPH-CreI2kO9.js} +2 -2
- package/es/{chunk-WL4C6EOR-B6l-Yy2t.js → chunk-WL4C6EOR-BDbxJyGk.js} +120 -120
- package/es/{chunk-XIRO2GV7-CaFInIOW.js → chunk-XIRO2GV7-S5KkbVnN.js} +2 -2
- package/es/{chunk-XPW4576I-Cp1j6iTN.js → chunk-XPW4576I-B0KVSHwE.js} +2 -2
- package/es/{chunk-XZSTWKYB-CGk7ipHd.js → chunk-XZSTWKYB-CucN1XvM.js} +93 -93
- package/es/{chunk-YBOYWFTD-dOTBpTYs.js → chunk-YBOYWFTD-CvaddD9G.js} +8 -8
- package/es/classDiagram-VBA2DB6C-Co3LMmg8.js +29 -0
- package/es/classDiagram-v2-RAHNMMFH-BZscgdF2.js +29 -0
- package/es/clone-r3YukIBB.js +8 -0
- package/es/{cose-bilkent-S5V4N54A-DlmXyn6m.js → cose-bilkent-S5V4N54A-B5OQuIhl.js} +3 -3
- package/es/{cytoscape.esm-BY3wHcbp.js → cytoscape.esm-i2CZcWd-.js} +1 -1
- package/es/{dagre-B1qTL793.js → dagre-5aGJFKmT.js} +57 -57
- package/es/dagre-KLK3FWXG-BI5QQMXo.js +294 -0
- package/es/{defaultLocale-BaPFSbai.js → defaultLocale-bckJcYh1.js} +12 -12
- package/es/{diagram-E7M64L7V-Dnd8N74o.js → diagram-E7M64L7V-Dz62Vz_a.js} +83 -83
- package/es/{diagram-IFDJBPK2-Dan7RsGr.js → diagram-IFDJBPK2-9fjvFkSc.js} +31 -31
- package/es/{diagram-P4PSJMXO-DwKJpttH.js → diagram-P4PSJMXO-BlX6jFjZ.js} +32 -32
- package/es/{dist-DltyvPj3.js → dist-BX_roQzC.js} +1 -1
- package/es/{erDiagram-INFDFZHY-CGO6k23w.js → erDiagram-INFDFZHY-BcRXu8Cp.js} +128 -128
- package/es/{flowDiagram-PKNHOUZH-DFN1GsRx.js → flowDiagram-PKNHOUZH-UeyfgU8z.js} +156 -156
- package/es/{ganttDiagram-A5KZAMGK-Cf5NxH1w.js → ganttDiagram-A5KZAMGK-txCzqgQ5.js} +625 -622
- package/es/gitGraph-HDMCJU4V-CxsS0Qr1.js +3 -0
- package/es/{gitGraphDiagram-K3NZZRJ6-BgE6aSZO.js → gitGraphDiagram-K3NZZRJ6-DghWYaFU.js} +176 -176
- package/es/{graphlib-DFxSohCv.js → graphlib-dRkI1OCL.js} +4 -4
- package/es/{html-C2-_98S6.js → html-B6UxjOv0.js} +1 -1
- package/es/html-Hb1oe8XT.js +2 -0
- package/es/info-3K5VOQVL-COqdvM99.js +3 -0
- package/es/{infoDiagram-LFFYTUFH-WcApcdl5.js → infoDiagram-LFFYTUFH-CA-vlAvP.js} +5 -5
- package/es/{init-PAs0hR-b.js → init-B75p2clj.js} +1 -1
- package/es/{isArrayLikeObject-BEG9p74d.js → isArrayLikeObject-jl2bjkAJ.js} +80 -80
- package/es/{isEmpty-B1YrVV8B.js → isEmpty-CmA-HYrg.js} +3 -3
- package/es/{ishikawaDiagram-PHBUUO56-DwK7J31a.js → ishikawaDiagram-PHBUUO56-DjdpS9Lb.js} +67 -67
- package/es/{journeyDiagram-4ABVD52K-CWuA57by.js → journeyDiagram-4ABVD52K-CIJfC1fp.js} +6 -6
- package/es/{kanban-definition-K7BYSVSG-DBt3gYRQ.js → kanban-definition-K7BYSVSG-CC2vwGck.js} +11 -11
- package/es/{katex-OR8z_f6I.js → katex-DCMiIo1z.js} +1 -1
- package/es/{line-zOBKZCP5.js → line-Cu9NTacD.js} +4 -4
- package/es/{linear-DttXWw4q.js → linear-C0rAYYmp.js} +23 -23
- package/es/{math-DPzKeDKn.js → math-CoDOuve-.js} +1 -1
- package/es/{mermaid-parser.core-CWNEdmZ_.js → mermaid-parser.core-7Wn2L29P.js} +16 -16
- package/es/{mermaid.core-DPBXXViR.js → mermaid.core-Bvy_Q6Hu.js} +208 -208
- package/es/{mindmap-definition-YRQLILUH-Bq2xqboX.js → mindmap-definition-YRQLILUH-BzTYDYmK.js} +16 -16
- package/es/{ordinal-D8PKtxfM.js → ordinal-F3U6aXtP.js} +3 -3
- package/es/packet-RMMSAZCW-2PTjWKLd.js +3 -0
- package/es/{path-DZ-6AyWK.js → path-Dm3C8WEs.js} +3 -3
- package/es/pie-UPGHQEXC-Du8-k-EA.js +3 -0
- package/es/{pieDiagram-SKSYHLDU-D4iMzwzH.js → pieDiagram-SKSYHLDU-COvqE_C6.js} +32 -32
- package/es/{quadrantDiagram-337W2JSQ-DSbXC0z6.js → quadrantDiagram-337W2JSQ-Dgv8ccjt.js} +4 -4
- package/es/radar-KQ55EAFF-jJOhyjxC.js +3 -0
- package/es/{requirementDiagram-Z7DCOOCP-D7eLn3fs.js → requirementDiagram-Z7DCOOCP-B2NyhxO-.js} +59 -59
- package/es/{rough.esm-C_hJ3ICT.js → rough.esm-BhGP2Udb.js} +1 -1
- package/es/{sankeyDiagram-WA2Y5GQK-DN5ZPgWU.js → sankeyDiagram-WA2Y5GQK-BfnH_gpl.js} +18 -18
- package/es/{sequenceDiagram-2WXFIKYE-CRFEBP8-.js → sequenceDiagram-2WXFIKYE-DXssVQOF.js} +390 -390
- package/es/{src-BH16DVv0.js → src-CUQ6oOYk.js} +86 -86
- package/es/{stateDiagram-RAJIS63D-CfO23QJX.js → stateDiagram-RAJIS63D-DvDLfupV.js} +68 -68
- package/es/stateDiagram-v2-FVOUBMTO-DIXyaX9W.js +27 -0
- package/es/{timeline-definition-YZTLITO2-DmpPrD-3.js → timeline-definition-YZTLITO2-ErcRjbZf.js} +4 -4
- package/es/treemap-KZPCXAKY-CvZAIYVa.js +3 -0
- package/es/{vennDiagram-LZ73GAT5-B80Xr4jV.js → vennDiagram-LZ73GAT5-CDTZUtc8.js} +107 -107
- package/es/{vue-DTiWrQBM.js → vue-2aJw7p5p.js} +2 -2
- package/es/{vue-html-BG3Xflut.js → vue-html-DEjI8X9t.js} +1 -1
- package/es/{xychartDiagram-JWTSCODW-DvQyPDr4.js → xychartDiagram-JWTSCODW-Y21jBOTg.js} +103 -103
- package/package.json +1 -1
- package/es/architecture-PBZL5I3N-CBmkTWjb.js +0 -3
- package/es/channel-DIQFjdG3.js +0 -5
- package/es/chunk-GLR3WWYH-CqFdLic9.js +0 -41
- package/es/classDiagram-VBA2DB6C-B3yBiQy3.js +0 -29
- package/es/classDiagram-v2-RAHNMMFH-jbFYm_Xj.js +0 -29
- package/es/clone-DXVS0uSx.js +0 -8
- package/es/dagre-KLK3FWXG-CEhXRLVR.js +0 -294
- package/es/gitGraph-HDMCJU4V-CrEEHSZS.js +0 -3
- package/es/html-JbFqcNgP.js +0 -2
- package/es/info-3K5VOQVL-Dg3DCp4F.js +0 -3
- package/es/packet-RMMSAZCW-Dk7mKMJ4.js +0 -3
- package/es/pie-UPGHQEXC-CnM5YLNO.js +0 -3
- package/es/radar-KQ55EAFF-BwfADDx8.js +0 -3
- package/es/stateDiagram-v2-FVOUBMTO-BGWbXepL.js +0 -27
- package/es/treemap-KZPCXAKY-BWfn7JxQ.js +0 -3
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { b as g, w as _ } from "./chunk-7R4GIKGN-
|
|
4
|
-
import { t as v } from "./line-
|
|
5
|
-
import { n as y } from "./chunk-PU5JKC2W-
|
|
6
|
-
import { i as b, n as x, r as S, t as C } from "./chunk-MX3YWQON-
|
|
7
|
-
import { n as w } from "./chunk-YBOYWFTD-
|
|
8
|
-
import { i as T, n as
|
|
9
|
-
import { t as
|
|
10
|
-
import { r as
|
|
11
|
-
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/chunk-O4XLMI2P.mjs
|
|
12
|
-
var
|
|
13
|
-
t.arrowTypeStart &&
|
|
14
|
-
}, "addEdgeMarkers"),
|
|
1
|
+
import { g as e, h as t, p as n } from "./src-CUQ6oOYk.js";
|
|
2
|
+
import { C as r, D as i, E as a, O as o, S as s, T as c, _ as l, b as u, h as d, v as f, w as p, x as m, y as h } from "./chunk-GEFDOKGD-BWpC-zoH.js";
|
|
3
|
+
import { b as g, w as _ } from "./chunk-7R4GIKGN-QT6IorJ_.js";
|
|
4
|
+
import { t as v } from "./line-Cu9NTacD.js";
|
|
5
|
+
import { n as y } from "./chunk-PU5JKC2W-DdP8BS-S.js";
|
|
6
|
+
import { i as b, n as x, r as S, t as C } from "./chunk-MX3YWQON-BxE-Aq9c.js";
|
|
7
|
+
import { n as w } from "./chunk-YBOYWFTD-CvaddD9G.js";
|
|
8
|
+
import { i as T, n as E } from "./chunk-PQ6SQG4A-D3jtNCWN.js";
|
|
9
|
+
import { t as D } from "./rough.esm-BhGP2Udb.js";
|
|
10
|
+
import { r as O } from "./chunk-KYZI473N-BHJ3T5Zv.js";
|
|
11
|
+
//#region ../../node_modules/.pnpm/mermaid@11.13.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-O4XLMI2P.mjs
|
|
12
|
+
var ee = /* @__PURE__ */ t((e, t, n, r, i, a) => {
|
|
13
|
+
t.arrowTypeStart && A(e, "start", t.arrowTypeStart, n, r, i, a), t.arrowTypeEnd && A(e, "end", t.arrowTypeEnd, n, r, i, a);
|
|
14
|
+
}, "addEdgeMarkers"), k = {
|
|
15
15
|
arrow_cross: {
|
|
16
16
|
type: "cross",
|
|
17
17
|
fill: !1
|
|
@@ -72,182 +72,182 @@ var D = /* @__PURE__ */ m((e, t, n, r, i, a) => {
|
|
|
72
72
|
type: "requirement_contains",
|
|
73
73
|
fill: !1
|
|
74
74
|
}
|
|
75
|
-
},
|
|
76
|
-
let
|
|
77
|
-
if (!
|
|
78
|
-
|
|
75
|
+
}, A = /* @__PURE__ */ t((t, n, r, i, a, o, s) => {
|
|
76
|
+
let c = k[r];
|
|
77
|
+
if (!c) {
|
|
78
|
+
e.warn(`Unknown arrow type: ${r}`);
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
81
|
-
let
|
|
82
|
-
if (
|
|
83
|
-
let
|
|
84
|
-
if (!document.getElementById(
|
|
85
|
-
let
|
|
86
|
-
if (
|
|
87
|
-
let
|
|
88
|
-
|
|
89
|
-
e.setAttribute("stroke",
|
|
90
|
-
}),
|
|
81
|
+
let l = `${a}_${o}-${c.type}${n === "start" ? "Start" : "End"}`;
|
|
82
|
+
if (s && s.trim() !== "") {
|
|
83
|
+
let e = `${l}_${s.replace(/[^\dA-Za-z]/g, "_")}`;
|
|
84
|
+
if (!document.getElementById(e)) {
|
|
85
|
+
let t = document.getElementById(l);
|
|
86
|
+
if (t) {
|
|
87
|
+
let n = t.cloneNode(!0);
|
|
88
|
+
n.id = e, n.querySelectorAll("path, circle, line").forEach((e) => {
|
|
89
|
+
e.setAttribute("stroke", s), c.fill && e.setAttribute("fill", s);
|
|
90
|
+
}), t.parentNode?.appendChild(n);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
|
|
94
|
-
} else
|
|
95
|
-
}, "addEdgeMarker"),
|
|
96
|
-
|
|
97
|
-
}, "clear"),
|
|
98
|
-
let
|
|
99
|
-
|
|
100
|
-
let
|
|
101
|
-
style:
|
|
102
|
-
useHtmlLabels:
|
|
93
|
+
t.attr(`marker-${n}`, `url(${i}#${e})`);
|
|
94
|
+
} else t.attr(`marker-${n}`, `url(${i}#${l})`);
|
|
95
|
+
}, "addEdgeMarker"), te = /* @__PURE__ */ t((e) => typeof e == "string" ? e : g()?.flowchart?.curve, "resolveEdgeCurveType"), j = /* @__PURE__ */ new Map(), M = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ t(() => {
|
|
96
|
+
j.clear(), M.clear();
|
|
97
|
+
}, "clear"), P = /* @__PURE__ */ t((e) => e ? typeof e == "string" ? e : e.reduce((e, t) => e + ";" + t, "") : "", "getLabelStyles"), F = /* @__PURE__ */ t(async (t, r) => {
|
|
98
|
+
let i = g(), a = _(i), { labelStyles: o } = T(r);
|
|
99
|
+
r.labelStyle = o;
|
|
100
|
+
let s = t.insert("g").attr("class", "edgeLabel"), c = s.insert("g").attr("class", "label").attr("data-id", r.id), l = r.labelType === "markdown", u = await y(t, r.label, {
|
|
101
|
+
style: P(r.labelStyle),
|
|
102
|
+
useHtmlLabels: a,
|
|
103
103
|
addSvgBackground: !0,
|
|
104
104
|
isNode: !1,
|
|
105
|
-
markdown:
|
|
105
|
+
markdown: l,
|
|
106
106
|
width: void 0
|
|
107
|
-
},
|
|
108
|
-
|
|
109
|
-
let
|
|
110
|
-
if (
|
|
111
|
-
let e =
|
|
112
|
-
|
|
107
|
+
}, i);
|
|
108
|
+
c.node().appendChild(u), e.info("abc82", r, r.labelType);
|
|
109
|
+
let d = u.getBBox(), f = d;
|
|
110
|
+
if (a) {
|
|
111
|
+
let e = u.children[0], t = n(u);
|
|
112
|
+
d = e.getBoundingClientRect(), f = d, t.attr("width", d.width), t.attr("height", d.height);
|
|
113
113
|
} else {
|
|
114
|
-
let e =
|
|
115
|
-
e && typeof e.getBBox == "function" && (
|
|
114
|
+
let e = n(u).select("text").node();
|
|
115
|
+
e && typeof e.getBBox == "function" && (f = e.getBBox());
|
|
116
116
|
}
|
|
117
|
-
|
|
118
|
-
let
|
|
119
|
-
if (
|
|
120
|
-
let
|
|
121
|
-
|
|
122
|
-
let
|
|
123
|
-
if (
|
|
124
|
-
let e =
|
|
125
|
-
|
|
117
|
+
c.attr("transform", C(f, a)), j.set(r.id, s), r.width = d.width, r.height = d.height;
|
|
118
|
+
let p;
|
|
119
|
+
if (r.startLabelLeft) {
|
|
120
|
+
let e = t.insert("g").attr("class", "edgeTerminals"), i = e.insert("g").attr("class", "inner"), o = await O(i, r.startLabelLeft, P(r.labelStyle) || "", !1, !1);
|
|
121
|
+
p = o;
|
|
122
|
+
let s = o.getBBox();
|
|
123
|
+
if (a) {
|
|
124
|
+
let e = o.children[0], t = n(o);
|
|
125
|
+
s = e.getBoundingClientRect(), t.attr("width", s.width), t.attr("height", s.height);
|
|
126
126
|
}
|
|
127
|
-
i.attr("transform", C(
|
|
127
|
+
i.attr("transform", C(s, a)), M.get(r.id) || M.set(r.id, {}), M.get(r.id).startLeft = e, I(p, r.startLabelLeft);
|
|
128
128
|
}
|
|
129
|
-
if (
|
|
130
|
-
let
|
|
131
|
-
|
|
132
|
-
let
|
|
133
|
-
if (
|
|
134
|
-
let e =
|
|
135
|
-
|
|
129
|
+
if (r.startLabelRight) {
|
|
130
|
+
let e = t.insert("g").attr("class", "edgeTerminals"), i = e.insert("g").attr("class", "inner"), o = await O(i, r.startLabelRight, P(r.labelStyle) || "", !1, !1);
|
|
131
|
+
p = o, i.node().appendChild(o);
|
|
132
|
+
let s = o.getBBox();
|
|
133
|
+
if (a) {
|
|
134
|
+
let e = o.children[0], t = n(o);
|
|
135
|
+
s = e.getBoundingClientRect(), t.attr("width", s.width), t.attr("height", s.height);
|
|
136
136
|
}
|
|
137
|
-
i.attr("transform", C(
|
|
137
|
+
i.attr("transform", C(s, a)), M.get(r.id) || M.set(r.id, {}), M.get(r.id).startRight = e, I(p, r.startLabelRight);
|
|
138
138
|
}
|
|
139
|
-
if (
|
|
140
|
-
let
|
|
141
|
-
|
|
142
|
-
let
|
|
143
|
-
if (
|
|
144
|
-
let e =
|
|
145
|
-
|
|
139
|
+
if (r.endLabelLeft) {
|
|
140
|
+
let e = t.insert("g").attr("class", "edgeTerminals"), i = e.insert("g").attr("class", "inner"), o = await O(i, r.endLabelLeft, P(r.labelStyle) || "", !1, !1);
|
|
141
|
+
p = o;
|
|
142
|
+
let s = o.getBBox();
|
|
143
|
+
if (a) {
|
|
144
|
+
let e = o.children[0], t = n(o);
|
|
145
|
+
s = e.getBoundingClientRect(), t.attr("width", s.width), t.attr("height", s.height);
|
|
146
146
|
}
|
|
147
|
-
i.attr("transform", C(
|
|
147
|
+
i.attr("transform", C(s, a)), e.node().appendChild(o), M.get(r.id) || M.set(r.id, {}), M.get(r.id).endLeft = e, I(p, r.endLabelLeft);
|
|
148
148
|
}
|
|
149
|
-
if (
|
|
150
|
-
let
|
|
151
|
-
|
|
152
|
-
let
|
|
153
|
-
if (
|
|
154
|
-
let e =
|
|
155
|
-
|
|
149
|
+
if (r.endLabelRight) {
|
|
150
|
+
let e = t.insert("g").attr("class", "edgeTerminals"), i = e.insert("g").attr("class", "inner"), o = await O(i, r.endLabelRight, P(r.labelStyle) || "", !1, !1);
|
|
151
|
+
p = o;
|
|
152
|
+
let s = o.getBBox();
|
|
153
|
+
if (a) {
|
|
154
|
+
let e = o.children[0], t = n(o);
|
|
155
|
+
s = e.getBoundingClientRect(), t.attr("width", s.width), t.attr("height", s.height);
|
|
156
156
|
}
|
|
157
|
-
i.attr("transform", C(
|
|
157
|
+
i.attr("transform", C(s, a)), e.node().appendChild(o), M.get(r.id) || M.set(r.id, {}), M.get(r.id).endRight = e, I(p, r.endLabelRight);
|
|
158
158
|
}
|
|
159
|
-
return
|
|
159
|
+
return u;
|
|
160
160
|
}, "insertEdgeLabel");
|
|
161
|
-
function
|
|
161
|
+
function I(e, t) {
|
|
162
162
|
_(g()) && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px");
|
|
163
163
|
}
|
|
164
|
-
|
|
165
|
-
var
|
|
166
|
-
|
|
167
|
-
let
|
|
168
|
-
if (
|
|
169
|
-
let
|
|
170
|
-
if (
|
|
171
|
-
let
|
|
172
|
-
|
|
164
|
+
t(I, "setTerminalWidth");
|
|
165
|
+
var L = /* @__PURE__ */ t((t, n) => {
|
|
166
|
+
e.debug("Moving label abc88 ", t.id, t.label, j.get(t.id), n);
|
|
167
|
+
let r = n.updatedPath ? n.updatedPath : n.originalPath, { subGraphTitleTotalMargin: i } = w(g());
|
|
168
|
+
if (t.label) {
|
|
169
|
+
let a = j.get(t.id), o = t.x, s = t.y;
|
|
170
|
+
if (r) {
|
|
171
|
+
let i = d.calcLabelPosition(r);
|
|
172
|
+
e.debug("Moving label " + t.label + " from (", o, ",", s, ") to (", i.x, ",", i.y, ") abc88"), n.updatedPath && (o = i.x, s = i.y);
|
|
173
173
|
}
|
|
174
|
-
|
|
174
|
+
a.attr("transform", `translate(${o}, ${s + i / 2})`);
|
|
175
175
|
}
|
|
176
|
-
if (
|
|
177
|
-
let
|
|
178
|
-
if (
|
|
179
|
-
let
|
|
180
|
-
|
|
176
|
+
if (t.startLabelLeft) {
|
|
177
|
+
let e = M.get(t.id).startLeft, n = t.x, i = t.y;
|
|
178
|
+
if (r) {
|
|
179
|
+
let e = d.calcTerminalLabelPosition(t.arrowTypeStart ? 10 : 0, "start_left", r);
|
|
180
|
+
n = e.x, i = e.y;
|
|
181
181
|
}
|
|
182
|
-
|
|
182
|
+
e.attr("transform", `translate(${n}, ${i})`);
|
|
183
183
|
}
|
|
184
|
-
if (
|
|
185
|
-
let
|
|
186
|
-
if (
|
|
187
|
-
let
|
|
188
|
-
|
|
184
|
+
if (t.startLabelRight) {
|
|
185
|
+
let e = M.get(t.id).startRight, n = t.x, i = t.y;
|
|
186
|
+
if (r) {
|
|
187
|
+
let e = d.calcTerminalLabelPosition(t.arrowTypeStart ? 10 : 0, "start_right", r);
|
|
188
|
+
n = e.x, i = e.y;
|
|
189
189
|
}
|
|
190
|
-
|
|
190
|
+
e.attr("transform", `translate(${n}, ${i})`);
|
|
191
191
|
}
|
|
192
|
-
if (
|
|
193
|
-
let
|
|
194
|
-
if (
|
|
195
|
-
let
|
|
196
|
-
|
|
192
|
+
if (t.endLabelLeft) {
|
|
193
|
+
let e = M.get(t.id).endLeft, n = t.x, i = t.y;
|
|
194
|
+
if (r) {
|
|
195
|
+
let e = d.calcTerminalLabelPosition(t.arrowTypeEnd ? 10 : 0, "end_left", r);
|
|
196
|
+
n = e.x, i = e.y;
|
|
197
197
|
}
|
|
198
|
-
|
|
198
|
+
e.attr("transform", `translate(${n}, ${i})`);
|
|
199
199
|
}
|
|
200
|
-
if (
|
|
201
|
-
let
|
|
202
|
-
if (
|
|
203
|
-
let
|
|
204
|
-
|
|
200
|
+
if (t.endLabelRight) {
|
|
201
|
+
let e = M.get(t.id).endRight, n = t.x, i = t.y;
|
|
202
|
+
if (r) {
|
|
203
|
+
let e = d.calcTerminalLabelPosition(t.arrowTypeEnd ? 10 : 0, "end_right", r);
|
|
204
|
+
n = e.x, i = e.y;
|
|
205
205
|
}
|
|
206
|
-
|
|
206
|
+
e.attr("transform", `translate(${n}, ${i})`);
|
|
207
207
|
}
|
|
208
|
-
}, "positionEdgeLabel"),
|
|
208
|
+
}, "positionEdgeLabel"), R = /* @__PURE__ */ t((e, t) => {
|
|
209
209
|
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;
|
|
210
210
|
return i >= o || a >= s;
|
|
211
|
-
}, "outsideNode"),
|
|
212
|
-
|
|
213
|
-
outsidePoint: ${JSON.stringify(
|
|
214
|
-
insidePoint : ${JSON.stringify(
|
|
215
|
-
node : x:${
|
|
216
|
-
let
|
|
217
|
-
if (Math.abs(
|
|
218
|
-
let
|
|
219
|
-
|
|
220
|
-
let
|
|
221
|
-
x:
|
|
222
|
-
y:
|
|
211
|
+
}, "outsideNode"), z = /* @__PURE__ */ t((t, n, r) => {
|
|
212
|
+
e.debug(`intersection calc abc89:
|
|
213
|
+
outsidePoint: ${JSON.stringify(n)}
|
|
214
|
+
insidePoint : ${JSON.stringify(r)}
|
|
215
|
+
node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);
|
|
216
|
+
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);
|
|
217
|
+
if (Math.abs(a - n.y) * s > Math.abs(i - n.x) * l) {
|
|
218
|
+
let t = r.y < n.y ? n.y - l - a : a - l - n.y;
|
|
219
|
+
c = d * t / u;
|
|
220
|
+
let i = {
|
|
221
|
+
x: r.x < n.x ? r.x + c : r.x - d + c,
|
|
222
|
+
y: r.y < n.y ? r.y + u - t : r.y - u + t
|
|
223
223
|
};
|
|
224
|
-
return
|
|
224
|
+
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;
|
|
225
225
|
} else {
|
|
226
|
-
|
|
227
|
-
let
|
|
228
|
-
return
|
|
229
|
-
_x:
|
|
230
|
-
_y:
|
|
231
|
-
}),
|
|
232
|
-
x:
|
|
233
|
-
y:
|
|
226
|
+
c = r.x < n.x ? n.x - s - i : i - s - n.x;
|
|
227
|
+
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;
|
|
228
|
+
return e.debug(`sides calc abc89, Q ${u}, q ${t}, R ${d}, r ${c}`, {
|
|
229
|
+
_x: a,
|
|
230
|
+
_y: o
|
|
231
|
+
}), c === 0 && (a = n.x, o = n.y), d === 0 && (a = n.x), u === 0 && (o = n.y), {
|
|
232
|
+
x: a,
|
|
233
|
+
y: o
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
|
-
}, "intersection"),
|
|
237
|
-
|
|
238
|
-
let
|
|
239
|
-
return
|
|
240
|
-
if (
|
|
241
|
-
let
|
|
242
|
-
|
|
243
|
-
let
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
}),
|
|
247
|
-
} else
|
|
248
|
-
}),
|
|
236
|
+
}, "intersection"), B = /* @__PURE__ */ t((t, n) => {
|
|
237
|
+
e.warn("abc88 cutPathAtIntersect", t, n);
|
|
238
|
+
let r = [], i = t[0], a = !1;
|
|
239
|
+
return t.forEach((t) => {
|
|
240
|
+
if (e.info("abc88 checking point", t, n), !R(n, t) && !a) {
|
|
241
|
+
let o = z(n, i, t);
|
|
242
|
+
e.debug("abc88 inside", t, i, o), e.debug("abc88 intersection", o, n);
|
|
243
|
+
let s = !1;
|
|
244
|
+
r.forEach((e) => {
|
|
245
|
+
s ||= e.x === o.x && e.y === o.y;
|
|
246
|
+
}), r.some((e) => e.x === o.x && e.y === o.y) ? e.warn("abc88 no intersect", o, r) : r.push(o), a = !0;
|
|
247
|
+
} else e.warn("abc88 outside", t, i), i = t, a || r.push(t);
|
|
248
|
+
}), e.debug("returning points", r), r;
|
|
249
249
|
}, "cutPathAtIntersect");
|
|
250
|
-
function
|
|
250
|
+
function V(e) {
|
|
251
251
|
let t = [], n = [];
|
|
252
252
|
for (let r = 1; r < e.length - 1; r++) {
|
|
253
253
|
let i = e[r - 1], a = e[r], o = e[r + 1];
|
|
@@ -258,88 +258,88 @@ function B(e) {
|
|
|
258
258
|
cornerPointPositions: n
|
|
259
259
|
};
|
|
260
260
|
}
|
|
261
|
-
|
|
262
|
-
var
|
|
261
|
+
t(V, "extractCornerPoints");
|
|
262
|
+
var H = /* @__PURE__ */ t(function(e, t, n) {
|
|
263
263
|
let r = t.x - e.x, i = t.y - e.y, a = n / Math.sqrt(r * r + i * i);
|
|
264
264
|
return {
|
|
265
265
|
x: t.x - a * r,
|
|
266
266
|
y: t.y - a * i
|
|
267
267
|
};
|
|
268
|
-
}, "findAdjacentPoint"),
|
|
269
|
-
let { cornerPointPositions:
|
|
270
|
-
for (let
|
|
271
|
-
let
|
|
272
|
-
|
|
273
|
-
let
|
|
274
|
-
x:
|
|
275
|
-
y:
|
|
268
|
+
}, "findAdjacentPoint"), ne = /* @__PURE__ */ t(function(t) {
|
|
269
|
+
let { cornerPointPositions: n } = V(t), r = [];
|
|
270
|
+
for (let i = 0; i < t.length; i++) if (n.includes(i)) {
|
|
271
|
+
let n = t[i - 1], a = t[i + 1], o = t[i], s = H(n, o, 5), c = H(a, o, 5), l = c.x - s.x, u = c.y - s.y;
|
|
272
|
+
r.push(s);
|
|
273
|
+
let d = Math.sqrt(2) * 2, f = {
|
|
274
|
+
x: o.x,
|
|
275
|
+
y: o.y
|
|
276
276
|
};
|
|
277
|
-
Math.abs(
|
|
278
|
-
x:
|
|
279
|
-
y:
|
|
277
|
+
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 ? {
|
|
278
|
+
x: l < 0 ? s.x - 5 + d : s.x + 5 - d,
|
|
279
|
+
y: u < 0 ? s.y - d : s.y + d
|
|
280
280
|
} : {
|
|
281
|
-
x:
|
|
282
|
-
y:
|
|
283
|
-
}) :
|
|
284
|
-
} else
|
|
285
|
-
return
|
|
286
|
-
}, "fixCorners"), re = /* @__PURE__ */
|
|
281
|
+
x: l < 0 ? s.x - d : s.x + d,
|
|
282
|
+
y: u < 0 ? s.y - 5 + d : s.y + 5 - d
|
|
283
|
+
}) : e.debug("Corner point skipping fixing", Math.abs(a.x - n.x), Math.abs(a.y - n.y)), r.push(f, c);
|
|
284
|
+
} else r.push(t[i]);
|
|
285
|
+
return r;
|
|
286
|
+
}, "fixCorners"), re = /* @__PURE__ */ t((e, t, n) => {
|
|
287
287
|
let r = e - t - n, i = Math.floor(r / 4);
|
|
288
288
|
return `0 ${t} ${Array(i).fill("2 2").join(" ")} ${n}`;
|
|
289
|
-
}, "generateDashArray"), U = /* @__PURE__ */
|
|
290
|
-
let { handDrawnSeed:
|
|
291
|
-
var
|
|
292
|
-
let
|
|
293
|
-
for (let e in _.cssCompiledStyles)
|
|
294
|
-
|
|
295
|
-
let
|
|
296
|
-
_.toCluster && (
|
|
297
|
-
let
|
|
298
|
-
|
|
299
|
-
let
|
|
300
|
-
switch (
|
|
289
|
+
}, "generateDashArray"), U = /* @__PURE__ */ t(function(t, _, y, S, C, w, T, O = !1) {
|
|
290
|
+
let { handDrawnSeed: k } = g(), A = _.points, j = !1, M = C;
|
|
291
|
+
var N = w;
|
|
292
|
+
let P = [];
|
|
293
|
+
for (let e in _.cssCompiledStyles) E(e) || P.push(_.cssCompiledStyles[e]);
|
|
294
|
+
e.debug("UIO intersect check", _.points, N.x, M.x), N.intersect && M.intersect && !O && (A = A.slice(1, _.points.length - 1), A.unshift(M.intersect(A[0])), e.debug("Last point UIO", _.start, "-->", _.end, A[A.length - 1], N, N.intersect(A[A.length - 1])), A.push(N.intersect(A[A.length - 1])));
|
|
295
|
+
let F = btoa(JSON.stringify(A));
|
|
296
|
+
_.toCluster && (e.info("to cluster abc88", y.get(_.toCluster)), A = B(_.points, y.get(_.toCluster).node), j = !0), _.fromCluster && (e.debug("from cluster abc88", y.get(_.fromCluster), JSON.stringify(A, null, 2)), A = B(A.reverse(), y.get(_.fromCluster).node).reverse(), j = !0);
|
|
297
|
+
let I = A.filter((e) => !Number.isNaN(e.y)), L = te(_.curve);
|
|
298
|
+
L !== "rounded" && (I = ne(I));
|
|
299
|
+
let R = o;
|
|
300
|
+
switch (L) {
|
|
301
301
|
case "linear":
|
|
302
|
-
|
|
302
|
+
R = o;
|
|
303
303
|
break;
|
|
304
304
|
case "basis":
|
|
305
|
-
|
|
305
|
+
R = c;
|
|
306
306
|
break;
|
|
307
307
|
case "cardinal":
|
|
308
|
-
|
|
308
|
+
R = p;
|
|
309
309
|
break;
|
|
310
310
|
case "bumpX":
|
|
311
|
-
|
|
311
|
+
R = a;
|
|
312
312
|
break;
|
|
313
313
|
case "bumpY":
|
|
314
|
-
|
|
314
|
+
R = i;
|
|
315
315
|
break;
|
|
316
316
|
case "catmullRom":
|
|
317
|
-
|
|
317
|
+
R = r;
|
|
318
318
|
break;
|
|
319
319
|
case "monotoneX":
|
|
320
|
-
|
|
320
|
+
R = m;
|
|
321
321
|
break;
|
|
322
322
|
case "monotoneY":
|
|
323
|
-
|
|
323
|
+
R = s;
|
|
324
324
|
break;
|
|
325
325
|
case "natural":
|
|
326
|
-
|
|
326
|
+
R = u;
|
|
327
327
|
break;
|
|
328
328
|
case "step":
|
|
329
|
-
|
|
329
|
+
R = h;
|
|
330
330
|
break;
|
|
331
331
|
case "stepAfter":
|
|
332
|
-
|
|
332
|
+
R = l;
|
|
333
333
|
break;
|
|
334
334
|
case "stepBefore":
|
|
335
|
-
|
|
335
|
+
R = f;
|
|
336
336
|
break;
|
|
337
337
|
case "rounded":
|
|
338
|
-
|
|
338
|
+
R = o;
|
|
339
339
|
break;
|
|
340
|
-
default:
|
|
340
|
+
default: R = c;
|
|
341
341
|
}
|
|
342
|
-
let { x:
|
|
342
|
+
let { x: z, y: V } = x(_), H = v().x(z).y(V).curve(R), U;
|
|
343
343
|
switch (_.thickness) {
|
|
344
344
|
case "normal":
|
|
345
345
|
U = "edge-thickness-normal";
|
|
@@ -364,37 +364,37 @@ var V = /* @__PURE__ */ m(function(e, t, n) {
|
|
|
364
364
|
break;
|
|
365
365
|
default: U += " edge-pattern-solid";
|
|
366
366
|
}
|
|
367
|
-
let G, q =
|
|
367
|
+
let G, q = L === "rounded" ? W(K(I, _), 5) : H(I), J = Array.isArray(_.style) ? _.style : [_.style], Y = J.find((e) => e?.startsWith("stroke:")), X = "";
|
|
368
368
|
_.animate && (X = "edge-animation-fast"), _.animation && (X = "edge-animation-" + _.animation);
|
|
369
369
|
let Z = !1;
|
|
370
370
|
if (_.look === "handDrawn") {
|
|
371
|
-
let e =
|
|
372
|
-
Object.assign([],
|
|
373
|
-
let
|
|
371
|
+
let e = D.svg(t);
|
|
372
|
+
Object.assign([], I);
|
|
373
|
+
let r = e.path(q, {
|
|
374
374
|
roughness: .3,
|
|
375
|
-
seed:
|
|
375
|
+
seed: k
|
|
376
376
|
});
|
|
377
|
-
U += " transition", G =
|
|
378
|
-
let
|
|
379
|
-
G.attr("d",
|
|
377
|
+
U += " transition", G = n(r).select("path").attr("id", _.id).attr("class", " " + U + (_.classes ? " " + _.classes : "") + (X ? " " + X : "")).attr("style", J ? J.reduce((e, t) => e + ";" + t, "") : "");
|
|
378
|
+
let i = G.attr("d");
|
|
379
|
+
G.attr("d", i), t.node().appendChild(G.node());
|
|
380
380
|
} else {
|
|
381
|
-
let e =
|
|
382
|
-
G =
|
|
383
|
-
let
|
|
381
|
+
let e = P.join(";"), n = J ? J.reduce((e, t) => e + t + ";", "") : "", r = (e ? e + ";" + n + ";" : n) + ";" + (J ? J.reduce((e, t) => e + ";" + t, "") : "");
|
|
382
|
+
G = t.append("path").attr("d", q).attr("id", _.id).attr("class", " " + U + (_.classes ? " " + _.classes : "") + (X ? " " + X : "")).attr("style", r), Y = r.match(/stroke:([^;]+)/)?.[1], Z = _.animate === !0 || !!_.animation || e.includes("animation");
|
|
383
|
+
let i = G.node(), a = typeof i.getTotalLength == "function" ? i.getTotalLength() : 0, o = b[_.arrowTypeStart] || 0, s = b[_.arrowTypeEnd] || 0;
|
|
384
384
|
if (_.look === "neo" && !Z) {
|
|
385
|
-
let e = `stroke-dasharray: ${_.pattern === "dotted" || _.pattern === "dashed" ? re(
|
|
385
|
+
let e = `stroke-dasharray: ${_.pattern === "dotted" || _.pattern === "dashed" ? re(a, o, s) : `0 ${o} ${a - o - s} ${s}`}; stroke-dashoffset: 0;`;
|
|
386
386
|
G.attr("style", e + G.attr("style"));
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
|
-
G.attr("data-edge", !0), G.attr("data-et", "edge"), G.attr("data-id", _.id), G.attr("data-points",
|
|
390
|
-
|
|
389
|
+
G.attr("data-edge", !0), G.attr("data-et", "edge"), G.attr("data-id", _.id), G.attr("data-points", F), _.showPoints && I.forEach((e) => {
|
|
390
|
+
t.append("circle").style("stroke", "red").style("fill", "red").attr("r", 1).attr("cx", e.x).attr("cy", e.y);
|
|
391
391
|
});
|
|
392
392
|
let Q = "";
|
|
393
|
-
(g().flowchart.arrowMarkerAbsolute || g().state.arrowMarkerAbsolute) && (Q = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, Q = Q.replace(/\(/g, "\\(").replace(/\)/g, "\\)")),
|
|
394
|
-
let ie = Math.floor(
|
|
395
|
-
|
|
393
|
+
(g().flowchart.arrowMarkerAbsolute || g().state.arrowMarkerAbsolute) && (Q = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, Q = Q.replace(/\(/g, "\\(").replace(/\)/g, "\\)")), e.info("arrowTypeStart", _.arrowTypeStart), e.info("arrowTypeEnd", _.arrowTypeEnd), ee(G, _, Q, T, S, Y);
|
|
394
|
+
let ie = Math.floor(A.length / 2), ae = A[ie];
|
|
395
|
+
d.isLabelCoordinateInPath(ae, G.attr("d")) || (j = !0);
|
|
396
396
|
let $ = {};
|
|
397
|
-
return
|
|
397
|
+
return j && ($.updatedPath = A), $.originalPath = _.points, $;
|
|
398
398
|
}, "insertEdge");
|
|
399
399
|
function W(e, t) {
|
|
400
400
|
if (e.length < 2) return "";
|
|
@@ -420,7 +420,7 @@ function W(e, t) {
|
|
|
420
420
|
}
|
|
421
421
|
return n;
|
|
422
422
|
}
|
|
423
|
-
|
|
423
|
+
t(W, "generateRoundedPath");
|
|
424
424
|
function G(e, t) {
|
|
425
425
|
if (!e || !t) return {
|
|
426
426
|
angle: 0,
|
|
@@ -434,7 +434,7 @@ function G(e, t) {
|
|
|
434
434
|
deltaY: r
|
|
435
435
|
};
|
|
436
436
|
}
|
|
437
|
-
|
|
437
|
+
t(G, "calculateDeltaAndAngle");
|
|
438
438
|
function K(e, t) {
|
|
439
439
|
let n = e.map((e) => ({ ...e }));
|
|
440
440
|
if (e.length >= 2 && S[t.arrowTypeStart]) {
|
|
@@ -448,64 +448,64 @@ function K(e, t) {
|
|
|
448
448
|
}
|
|
449
449
|
return n;
|
|
450
450
|
}
|
|
451
|
-
|
|
452
|
-
var q = /* @__PURE__ */
|
|
451
|
+
t(K, "applyMarkerOffsetsToPoints");
|
|
452
|
+
var q = /* @__PURE__ */ t((e, t, n, r) => {
|
|
453
453
|
t.forEach((t) => {
|
|
454
454
|
J[t](e, n, r);
|
|
455
455
|
});
|
|
456
456
|
}, "insertMarkers"), J = {
|
|
457
|
-
extension: /* @__PURE__ */
|
|
458
|
-
|
|
457
|
+
extension: /* @__PURE__ */ t((t, n, r) => {
|
|
458
|
+
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").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");
|
|
459
459
|
}, "extension"),
|
|
460
|
-
composition: /* @__PURE__ */
|
|
460
|
+
composition: /* @__PURE__ */ t((e, t, n) => {
|
|
461
461
|
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");
|
|
462
462
|
}, "composition"),
|
|
463
|
-
aggregation: /* @__PURE__ */
|
|
463
|
+
aggregation: /* @__PURE__ */ t((e, t, n) => {
|
|
464
464
|
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");
|
|
465
465
|
}, "aggregation"),
|
|
466
|
-
dependency: /* @__PURE__ */
|
|
466
|
+
dependency: /* @__PURE__ */ t((e, t, n) => {
|
|
467
467
|
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");
|
|
468
468
|
}, "dependency"),
|
|
469
|
-
lollipop: /* @__PURE__ */
|
|
469
|
+
lollipop: /* @__PURE__ */ t((e, t, n) => {
|
|
470
470
|
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);
|
|
471
471
|
}, "lollipop"),
|
|
472
|
-
point: /* @__PURE__ */
|
|
472
|
+
point: /* @__PURE__ */ t((e, t, n) => {
|
|
473
473
|
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");
|
|
474
474
|
}, "point"),
|
|
475
|
-
circle: /* @__PURE__ */
|
|
475
|
+
circle: /* @__PURE__ */ t((e, t, n) => {
|
|
476
476
|
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");
|
|
477
477
|
}, "circle"),
|
|
478
|
-
cross: /* @__PURE__ */
|
|
478
|
+
cross: /* @__PURE__ */ t((e, t, n) => {
|
|
479
479
|
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");
|
|
480
480
|
}, "cross"),
|
|
481
|
-
barb: /* @__PURE__ */
|
|
481
|
+
barb: /* @__PURE__ */ t((e, t, n) => {
|
|
482
482
|
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");
|
|
483
483
|
}, "barb"),
|
|
484
|
-
only_one: /* @__PURE__ */
|
|
484
|
+
only_one: /* @__PURE__ */ t((e, t, n) => {
|
|
485
485
|
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");
|
|
486
486
|
}, "only_one"),
|
|
487
|
-
zero_or_one: /* @__PURE__ */
|
|
487
|
+
zero_or_one: /* @__PURE__ */ t((e, t, n) => {
|
|
488
488
|
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");
|
|
489
489
|
r.append("circle").attr("fill", "white").attr("cx", 21).attr("cy", 9).attr("r", 6), r.append("path").attr("d", "M9,0 L9,18");
|
|
490
490
|
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");
|
|
491
491
|
i.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 9).attr("r", 6), i.append("path").attr("d", "M21,0 L21,18");
|
|
492
492
|
}, "zero_or_one"),
|
|
493
|
-
one_or_more: /* @__PURE__ */
|
|
493
|
+
one_or_more: /* @__PURE__ */ t((e, t, n) => {
|
|
494
494
|
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");
|
|
495
495
|
}, "one_or_more"),
|
|
496
|
-
zero_or_more: /* @__PURE__ */
|
|
496
|
+
zero_or_more: /* @__PURE__ */ t((e, t, n) => {
|
|
497
497
|
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");
|
|
498
498
|
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");
|
|
499
499
|
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");
|
|
500
500
|
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");
|
|
501
501
|
}, "zero_or_more"),
|
|
502
|
-
requirement_arrow: /* @__PURE__ */
|
|
502
|
+
requirement_arrow: /* @__PURE__ */ t((e, t, n) => {
|
|
503
503
|
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");
|
|
504
504
|
}, "requirement_arrow"),
|
|
505
|
-
requirement_contains: /* @__PURE__ */
|
|
505
|
+
requirement_contains: /* @__PURE__ */ t((e, t, n) => {
|
|
506
506
|
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");
|
|
507
507
|
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);
|
|
508
508
|
}, "requirement_contains")
|
|
509
509
|
}, Y = q;
|
|
510
510
|
//#endregion
|
|
511
|
-
export {
|
|
511
|
+
export { L as a, Y as i, U as n, F as r, N as t };
|