@pi-outpost/embed 0.1.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/LICENSE +21 -0
- package/README.md +63 -0
- package/dist/abnfDiagram-VRR7QNED-BPTALLb_.cjs +1 -0
- package/dist/abnfDiagram-VRR7QNED-DlAvVtuC.js +89 -0
- package/dist/arc-BBnpgwVQ.js +80 -0
- package/dist/arc-DcUn9_NX.cjs +1 -0
- package/dist/architecture-TIHT7OUA-D-35jO9Y.cjs +1 -0
- package/dist/architecture-TIHT7OUA-DDyMqjR1.js +3 -0
- package/dist/architectureDiagram-ZJ3FMSHR-Bh5-VPPg.cjs +36 -0
- package/dist/architectureDiagram-ZJ3FMSHR-D7UsY5ua.js +4120 -0
- package/dist/array-CApNbSU9.js +6 -0
- package/dist/array-DZSRzHA_.cjs +1 -0
- package/dist/bash-BLBHkRa_.js +169 -0
- package/dist/bash-DHJu-DNv.cjs +1 -0
- package/dist/blockDiagram-677ZJIJ3-BrXgigdO.cjs +132 -0
- package/dist/blockDiagram-677ZJIJ3-s-fanRPN.js +3160 -0
- package/dist/c-4QgYfi8K.cjs +1 -0
- package/dist/c-Cw4FsAeJ.js +176 -0
- package/dist/c4Diagram-LMCZKHZV-BbZFAi_K.js +2962 -0
- package/dist/c4Diagram-LMCZKHZV-DFBVQ9Uo.cjs +10 -0
- package/dist/channel-DV0ST12Z.js +5 -0
- package/dist/channel-DkMGzfUR.cjs +1 -0
- package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +1 -0
- package/dist/chunk-2Q5K7J3B-DqJF2oYF.js +15 -0
- package/dist/chunk-32BRIVSS-Byu3FrKX.js +61 -0
- package/dist/chunk-32BRIVSS-oWSJWk-u.cjs +1 -0
- package/dist/chunk-52WLFC77-C9zQbcGs.js +590 -0
- package/dist/chunk-52WLFC77-D9PTsiCj.cjs +10 -0
- package/dist/chunk-5VM5RSS4-BMfgdMFU.js +5 -0
- package/dist/chunk-5VM5RSS4-CwDmQ9T_.cjs +15 -0
- package/dist/chunk-7BUUIJ7U-BFUeQBoS.js +82 -0
- package/dist/chunk-7BUUIJ7U-MzS1pW_S.cjs +1 -0
- package/dist/chunk-C7G6YPKG-CDjkH_UW.cjs +1 -0
- package/dist/chunk-C7G6YPKG-GTlyrFFt.js +67 -0
- package/dist/chunk-EX3LRPZG-BBldDxGh.js +2046 -0
- package/dist/chunk-EX3LRPZG-u-BKCEWO.cjs +231 -0
- package/dist/chunk-FWX5IMBZ-h3GfgkP2.js +57 -0
- package/dist/chunk-FWX5IMBZ-nqBth1J9.cjs +1 -0
- package/dist/chunk-HOUHSVGY-CgfXy94u.cjs +1 -0
- package/dist/chunk-HOUHSVGY-CtRCnz1G.js +277 -0
- package/dist/chunk-ICXQ74PX-BmEfYj-r.cjs +2 -0
- package/dist/chunk-ICXQ74PX-CC59NQmW.js +1366 -0
- package/dist/chunk-JWPE2WC7-B_J6qwQL.js +8 -0
- package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +1 -0
- package/dist/chunk-KEIR6QF5-BVnxrdHo.js +21388 -0
- package/dist/chunk-KEIR6QF5-Cy_QBNG6.cjs +161 -0
- package/dist/chunk-MOJQB5TN-D6YxvkUY.js +490 -0
- package/dist/chunk-MOJQB5TN-H2vwz-oQ.cjs +88 -0
- package/dist/chunk-OGEWGWER-BGdqgMza.js +32 -0
- package/dist/chunk-OGEWGWER-BP4o8A-v.cjs +1 -0
- package/dist/chunk-PUDLZKDR-C8jMDFq6.js +4142 -0
- package/dist/chunk-PUDLZKDR-DtzwSdxX.cjs +156 -0
- package/dist/chunk-Q4XR5HBZ-Bk18cMuk.js +1628 -0
- package/dist/chunk-Q4XR5HBZ-COrrWZzi.cjs +70 -0
- package/dist/chunk-RYQCIY6F-27FDzaaE.cjs +1 -0
- package/dist/chunk-RYQCIY6F-C-YC3QS_.js +239 -0
- package/dist/chunk-V7JOEXUC-BROsdKzY.js +3357 -0
- package/dist/chunk-V7JOEXUC-Cfrm5GQn.cjs +206 -0
- package/dist/chunk-VAUOI2AC-05FwamOA.js +10 -0
- package/dist/chunk-VAUOI2AC-CBXi4Di2.cjs +1 -0
- package/dist/chunk-VR4S4FIN-CSU_1xTZ.cjs +1 -0
- package/dist/chunk-VR4S4FIN-Ci491c8N.js +26 -0
- package/dist/chunk-WYO6CB5R-BTvDzbWd.cjs +127 -0
- package/dist/chunk-WYO6CB5R-Y9HJHB3Q.js +3739 -0
- package/dist/chunk-XXDRQBXY-DsVp5qjg.js +9 -0
- package/dist/chunk-XXDRQBXY-gWcN0uCZ.cjs +1 -0
- package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +1 -0
- package/dist/chunk-Y2CYZVJY-CwsV_8W4.js +12 -0
- package/dist/chunk-ZGVPDNZ5-CDTkXY1G.js +3736 -0
- package/dist/chunk-ZGVPDNZ5-COEQX4AZ.cjs +62 -0
- package/dist/chunk-ZIRB5QZD-BU6XQUGC.cjs +32 -0
- package/dist/chunk-ZIRB5QZD-Cj-y77rH.js +1146 -0
- package/dist/classDiagram-OUVF2IWQ-Avsu6OKn.cjs +1 -0
- package/dist/classDiagram-OUVF2IWQ-eC72Wwol.js +30 -0
- package/dist/classDiagram-v2-EOCWNBFH-Avsu6OKn.cjs +1 -0
- package/dist/classDiagram-v2-EOCWNBFH-DsRoQgCt.js +30 -0
- package/dist/core-2nR1zkKb.cjs +3 -0
- package/dist/core-BO2hTFeF.js +845 -0
- package/dist/cose-bilkent-JH36ORCC-AyWV1dUo.cjs +1 -0
- package/dist/cose-bilkent-JH36ORCC-BFo5zomD.js +2251 -0
- package/dist/cpp-BUtp-HE2.cjs +1 -0
- package/dist/cpp-CeyO6lBG.js +225 -0
- package/dist/csharp-BJu4kEpt.cjs +1 -0
- package/dist/csharp-Ck6Fet_o.js +260 -0
- package/dist/css-ClSGJRju.js +140 -0
- package/dist/css-DeFr0lev.cjs +1 -0
- package/dist/cynefin-VYW2F7L2-DHhUPDgc.cjs +1 -0
- package/dist/cynefin-VYW2F7L2-DwiVqvhg.js +3 -0
- package/dist/cynefinDiagram-TSTJHNR4-BRUl09PN.js +349 -0
- package/dist/cynefinDiagram-TSTJHNR4-rKPqxFde.cjs +62 -0
- package/dist/cytoscape.esm-ByjvpCPI.cjs +321 -0
- package/dist/cytoscape.esm-asYnbYTy.js +18148 -0
- package/dist/dagre-BBlCxSvR.cjs +1 -0
- package/dist/dagre-BpqwxFKp.js +1701 -0
- package/dist/dagre-VKFMJZFB-BsfMZfPu.cjs +4 -0
- package/dist/dagre-VKFMJZFB-ChTkS14y.js +328 -0
- package/dist/defaultLocale-u9yUoUmE.cjs +1 -0
- package/dist/defaultLocale-up9-vqhM.js +201 -0
- package/dist/diagram-FQU43EPY-BnAYoLDy.js +432 -0
- package/dist/diagram-FQU43EPY-CdbwLZpm.cjs +3 -0
- package/dist/diagram-G47NLZAW-C1ZiELQG.js +525 -0
- package/dist/diagram-G47NLZAW-CtWKuxkf.cjs +24 -0
- package/dist/diagram-NH7WQ7WH-Be0KXo6w.js +134 -0
- package/dist/diagram-NH7WQ7WH-CG6VWVza.cjs +24 -0
- package/dist/diagram-OA4YK3LP-B7avlqjG.js +300 -0
- package/dist/diagram-OA4YK3LP-Drq_GA6o.cjs +30 -0
- package/dist/diagram-WEI45ONY-CoPX6-sx.js +214 -0
- package/dist/diagram-WEI45ONY-SJmgVL59.cjs +41 -0
- package/dist/dist-D6LMt8nW.js +59 -0
- package/dist/dist-DNGlMOWd.cjs +1 -0
- package/dist/dockerfile-O4rAswfG.js +34 -0
- package/dist/dockerfile-YBgAWga3.cjs +1 -0
- package/dist/ebnfDiagram-CCIWWBDH-B-T4_JnX.js +100 -0
- package/dist/ebnfDiagram-CCIWWBDH-BY7L3HVQ.cjs +1 -0
- package/dist/erDiagram-Q63AITRT-DPgZpeaH.js +1727 -0
- package/dist/erDiagram-Q63AITRT-w4C1PxYd.cjs +85 -0
- package/dist/eventmodeling-45OFAUF4-COTtdYDJ.js +3 -0
- package/dist/eventmodeling-45OFAUF4-CPEyr9kU.cjs +1 -0
- package/dist/flowDiagram-23GEKE2U-CQxPdUX4.cjs +1 -0
- package/dist/flowDiagram-23GEKE2U-ClCSBl2p.js +17 -0
- package/dist/ganttDiagram-NO4QXBWP-BcBp028S.cjs +292 -0
- package/dist/ganttDiagram-NO4QXBWP-Cf12fLfa.js +3083 -0
- package/dist/gitGraph-TEB2WS4Q-C3qBT0GM.js +3 -0
- package/dist/gitGraph-TEB2WS4Q-a8KsoPmR.cjs +1 -0
- package/dist/gitGraphDiagram-IHSO6WYX-13ahKewT.js +729 -0
- package/dist/gitGraphDiagram-IHSO6WYX-BTtNkGkN.cjs +106 -0
- package/dist/go-D-pz-dmd.cjs +1 -0
- package/dist/go-rg7jg1mu.js +140 -0
- package/dist/graphlib-B0GbLif1.js +1267 -0
- package/dist/graphlib-CkkG5MuS.cjs +1 -0
- package/dist/info-DKCQHKI2-BEYhR6ip.cjs +1 -0
- package/dist/info-DKCQHKI2-BPF6-pOb.js +3 -0
- package/dist/infoDiagram-FWYZ7A6U-20rh0VNL.cjs +2 -0
- package/dist/infoDiagram-FWYZ7A6U-DcV-eSsb.js +20 -0
- package/dist/ini-C1q3_1-Q.js +88 -0
- package/dist/ini-nVcUEghj.cjs +1 -0
- package/dist/init-07zIhv_j.cjs +1 -0
- package/dist/init-CirqLVcp.js +15 -0
- package/dist/ishikawaDiagram-FXEZZL3T-BTaBCHIG.js +719 -0
- package/dist/ishikawaDiagram-FXEZZL3T-BUq5kcFI.cjs +70 -0
- package/dist/java-CUN_usaq.cjs +1 -0
- package/dist/java-HguKEfA2.js +169 -0
- package/dist/javascript-C8NCH8DE.js +436 -0
- package/dist/javascript-UZXSyUuu.cjs +1 -0
- package/dist/journeyDiagram-5HDEW3XC-Cl9Z4b58.js +884 -0
- package/dist/journeyDiagram-5HDEW3XC-XQa-rhY_.cjs +139 -0
- package/dist/json-Cp01TR_B.js +36 -0
- package/dist/json-usH_MUzR.cjs +1 -0
- package/dist/kanban-definition-HUTT4EX6-CtWnZ0nS.js +975 -0
- package/dist/kanban-definition-HUTT4EX6-DVHXUPOt.cjs +89 -0
- package/dist/line-Ca8dE_lT.cjs +1 -0
- package/dist/line-O2xx2vVQ.js +34 -0
- package/dist/linear-CVhyaVzf.js +289 -0
- package/dist/linear-Cl2-QuPP.cjs +1 -0
- package/dist/map-CwPlMWPw.cjs +1 -0
- package/dist/map-DU12fF3s.js +241 -0
- package/dist/markdown-CzgRofaE.js +181 -0
- package/dist/markdown-qeo95R0i.cjs +1 -0
- package/dist/mermaid-parser.core-B8DQcCaz.js +638 -0
- package/dist/mermaid-parser.core-Cgsz0CdK.cjs +6 -0
- package/dist/mermaid.core-BR-iKb2Q.js +1064 -0
- package/dist/mermaid.core-DQrbAA--.cjs +10 -0
- package/dist/mindmap-definition-LN4V7U3C-C0I9iWmq.cjs +96 -0
- package/dist/mindmap-definition-LN4V7U3C-lkSmRsIC.js +1008 -0
- package/dist/mount.d.ts +31 -0
- package/dist/ordinal-CCTD6_le.js +65 -0
- package/dist/ordinal-CUPR-p0T.cjs +1 -0
- package/dist/packet-7NZHBO7P-DqvBYJTR.js +3 -0
- package/dist/packet-7NZHBO7P-Dz0O2bgq.cjs +1 -0
- package/dist/path-Kklx0M1v.cjs +1 -0
- package/dist/path-mKa7UESy.js +85 -0
- package/dist/pegDiagram-2B236MQR-BgRCQTZd.js +94 -0
- package/dist/pegDiagram-2B236MQR-hlmRl_PA.cjs +1 -0
- package/dist/php-C9FOMGEA.js +294 -0
- package/dist/php-j6EhDZDE.cjs +2 -0
- package/dist/pi-outpost-embed.cjs +305 -0
- package/dist/pi-outpost-embed.js +40942 -0
- package/dist/pie-RZYD4A2V-Hi9UdoE3.cjs +1 -0
- package/dist/pie-RZYD4A2V-qnruo9sH.js +3 -0
- package/dist/pieDiagram-ENE6RG2P-BVi7ck2I.js +205 -0
- package/dist/pieDiagram-ENE6RG2P-Buuvrs-h.cjs +39 -0
- package/dist/plaintext-BYYAHR3Z.js +10 -0
- package/dist/plaintext-DmnjizxG.cjs +1 -0
- package/dist/python-BYJzTRkK.cjs +1 -0
- package/dist/python-DKAazMIE.js +238 -0
- package/dist/quadrantDiagram-ABIIQ3AL-DeU97c2B.js +2001 -0
- package/dist/quadrantDiagram-ABIIQ3AL-LCbC0LEt.cjs +7 -0
- package/dist/radar-I7S5WNFK-Dqdssa34.cjs +1 -0
- package/dist/radar-I7S5WNFK-np_pJCO-.js +3 -0
- package/dist/railroad-3IZDKUUU-NILjDQft.cjs +1 -0
- package/dist/railroad-3IZDKUUU-sjKBeXxB.js +3 -0
- package/dist/railroad-abnf-AHOZXSZD-BojH9sxV.cjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-x5cC_e_R.js +3 -0
- package/dist/railroad-ebnf-EBAXGLYW-2mlWpz38.js +3 -0
- package/dist/railroad-ebnf-EBAXGLYW-BKCSut1M.cjs +1 -0
- package/dist/railroad-peg-LSFZ7HO6-CsH-gnsp.cjs +1 -0
- package/dist/railroad-peg-LSFZ7HO6-D5vguo03.js +3 -0
- package/dist/railroadDiagram-RFXS5EU6-CMTDNjsw.cjs +1 -0
- package/dist/railroadDiagram-RFXS5EU6-DNSNpLmQ.js +76 -0
- package/dist/requirementDiagram-TGXJPOKE-CdspXMgv.js +2223 -0
- package/dist/requirementDiagram-TGXJPOKE-irImpO8w.cjs +84 -0
- package/dist/rolldown-runtime-Dqa2HsxW.js +20 -0
- package/dist/rolldown-runtime-mLOUI7ql.cjs +1 -0
- package/dist/rough.esm-C5XyeDCN.js +1352 -0
- package/dist/rough.esm-r0QOSzHM.cjs +1 -0
- package/dist/ruby-BAUeZQKZ.js +262 -0
- package/dist/ruby-ClR4zp-1.cjs +1 -0
- package/dist/rust-DiTjMjP5.js +169 -0
- package/dist/rust-ghVvEWhm.cjs +1 -0
- package/dist/sankeyDiagram-HTMAVEWB-B0ZJBVpN.cjs +40 -0
- package/dist/sankeyDiagram-HTMAVEWB-BQcvUCMA.js +970 -0
- package/dist/scss-CKxh5HRg.cjs +1 -0
- package/dist/scss-CckAvQOx.js +150 -0
- package/dist/sequenceDiagram-DBY2YBRQ-BQFP2DGs.js +4168 -0
- package/dist/sequenceDiagram-DBY2YBRQ-C5WukkcA.cjs +162 -0
- package/dist/sizeCapture-X5ZJPWSS-DKbHZNyz.js +46 -0
- package/dist/sizeCapture-X5ZJPWSS-bJ2ZX4Du.cjs +1 -0
- package/dist/sql-B-Rnc2C3.js +118 -0
- package/dist/sql-B7syKcd8.cjs +1 -0
- package/dist/src-CR--T_NF.cjs +1 -0
- package/dist/src-DJ4x3y2O.js +2142 -0
- package/dist/stateDiagram-2N3HPSRC-4aBQt5dk.js +220 -0
- package/dist/stateDiagram-2N3HPSRC-YbRd67eD.cjs +1 -0
- package/dist/stateDiagram-v2-6OUMAXLB-D-c6D5za.js +30 -0
- package/dist/stateDiagram-v2-6OUMAXLB-ciXN_270.cjs +1 -0
- package/dist/swimlanes-5IMT3BWC-C8zkS7yx.cjs +1 -0
- package/dist/swimlanes-5IMT3BWC-aKH3Xgob.js +5066 -0
- package/dist/swimlanesDiagram-G3AALYLV-BcgsG1in.js +31 -0
- package/dist/swimlanesDiagram-G3AALYLV-CBjVJdH0.cjs +8 -0
- package/dist/timeline-definition-FHXFAJF6-DS-X0FCl.cjs +120 -0
- package/dist/timeline-definition-FHXFAJF6-Lnag6wiw.js +1069 -0
- package/dist/treeView-QDETBFTQ-Cpg_YeQ4.cjs +1 -0
- package/dist/treeView-QDETBFTQ-DdpEhzZX.js +3 -0
- package/dist/treemap-6X3UGDF4-BeCuRpkA.js +3 -0
- package/dist/treemap-6X3UGDF4-CFAmnKaf.cjs +1 -0
- package/dist/typescript-clWeqIBY.cjs +1 -0
- package/dist/typescript-mdYq8uqf.js +521 -0
- package/dist/vennDiagram-L72KCM5P-CF7lC7jn.js +1880 -0
- package/dist/vennDiagram-L72KCM5P-DYZP8jT_.cjs +34 -0
- package/dist/wardley-OPB4EBWU-B0jnKd8x.cjs +1 -0
- package/dist/wardley-OPB4EBWU-DlIk2K0J.js +3 -0
- package/dist/wardleyDiagram-EHGQE667-CbtWlMOa.js +645 -0
- package/dist/wardleyDiagram-EHGQE667-Dxewrpeh.cjs +78 -0
- package/dist/xml-BamqaQOf.cjs +1 -0
- package/dist/xml-DVYfB8uY.js +166 -0
- package/dist/xychartDiagram-FW5EYKEG-BAnVfMdN.cjs +7 -0
- package/dist/xychartDiagram-FW5EYKEG-DmdGPSi6.js +2102 -0
- package/dist/yaml-_1BORZTQ.js +144 -0
- package/dist/yaml-bAgWofBg.cjs +1 -0
- package/package.json +72 -0
|
@@ -0,0 +1,590 @@
|
|
|
1
|
+
import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
|
+
import { m as t, p as n } from "./src-DJ4x3y2O.js";
|
|
3
|
+
import { T as r, b as i, x as a } from "./chunk-WYO6CB5R-Y9HJHB3Q.js";
|
|
4
|
+
import { $ as o, J as s, K as c, Q as l, X as u, Y as d, Z as f, et as p, g as m, nt as h, q as g, rt as _, tt as v, u as y } from "./chunk-ICXQ74PX-CC59NQmW.js";
|
|
5
|
+
import { t as b } from "./line-O2xx2vVQ.js";
|
|
6
|
+
import { n as x } from "./chunk-Q4XR5HBZ-Bk18cMuk.js";
|
|
7
|
+
import { i as S, n as ee, r as C, t as w } from "./chunk-7BUUIJ7U-BFUeQBoS.js";
|
|
8
|
+
import { n as T } from "./chunk-OGEWGWER-BGdqgMza.js";
|
|
9
|
+
import { i as E, n as D } from "./chunk-C7G6YPKG-GTlyrFFt.js";
|
|
10
|
+
import { t as te } from "./rough.esm-C5XyeDCN.js";
|
|
11
|
+
import { r as O } from "./chunk-ZGVPDNZ5-CDTkXY1G.js";
|
|
12
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-52WLFC77.mjs
|
|
13
|
+
var ne = /* @__PURE__ */ e((e, t, n, r, i, a = !1, o) => {
|
|
14
|
+
t.arrowTypeStart && j(e, "start", t.arrowTypeStart, n, r, i, a, o), t.arrowTypeEnd && j(e, "end", t.arrowTypeEnd, n, r, i, a, o);
|
|
15
|
+
}, "addEdgeMarkers"), k = {
|
|
16
|
+
arrow_cross: {
|
|
17
|
+
type: "cross",
|
|
18
|
+
fill: !1
|
|
19
|
+
},
|
|
20
|
+
arrow_point: {
|
|
21
|
+
type: "point",
|
|
22
|
+
fill: !0
|
|
23
|
+
},
|
|
24
|
+
arrow_barb: {
|
|
25
|
+
type: "barb",
|
|
26
|
+
fill: !0
|
|
27
|
+
},
|
|
28
|
+
arrow_barb_neo: {
|
|
29
|
+
type: "barb",
|
|
30
|
+
fill: !0
|
|
31
|
+
},
|
|
32
|
+
arrow_circle: {
|
|
33
|
+
type: "circle",
|
|
34
|
+
fill: !1
|
|
35
|
+
},
|
|
36
|
+
aggregation: {
|
|
37
|
+
type: "aggregation",
|
|
38
|
+
fill: !1
|
|
39
|
+
},
|
|
40
|
+
extension: {
|
|
41
|
+
type: "extension",
|
|
42
|
+
fill: !1
|
|
43
|
+
},
|
|
44
|
+
composition: {
|
|
45
|
+
type: "composition",
|
|
46
|
+
fill: !0
|
|
47
|
+
},
|
|
48
|
+
dependency: {
|
|
49
|
+
type: "dependency",
|
|
50
|
+
fill: !0
|
|
51
|
+
},
|
|
52
|
+
lollipop: {
|
|
53
|
+
type: "lollipop",
|
|
54
|
+
fill: !1
|
|
55
|
+
},
|
|
56
|
+
only_one: {
|
|
57
|
+
type: "onlyOne",
|
|
58
|
+
fill: !1
|
|
59
|
+
},
|
|
60
|
+
zero_or_one: {
|
|
61
|
+
type: "zeroOrOne",
|
|
62
|
+
fill: !1
|
|
63
|
+
},
|
|
64
|
+
one_or_more: {
|
|
65
|
+
type: "oneOrMore",
|
|
66
|
+
fill: !1
|
|
67
|
+
},
|
|
68
|
+
zero_or_more: {
|
|
69
|
+
type: "zeroOrMore",
|
|
70
|
+
fill: !1
|
|
71
|
+
},
|
|
72
|
+
requirement_arrow: {
|
|
73
|
+
type: "requirement_arrow",
|
|
74
|
+
fill: !1
|
|
75
|
+
},
|
|
76
|
+
requirement_contains: {
|
|
77
|
+
type: "requirement_contains",
|
|
78
|
+
fill: !1
|
|
79
|
+
}
|
|
80
|
+
}, A = [
|
|
81
|
+
"cross",
|
|
82
|
+
"point",
|
|
83
|
+
"circle",
|
|
84
|
+
"lollipop",
|
|
85
|
+
"aggregation",
|
|
86
|
+
"extension",
|
|
87
|
+
"composition",
|
|
88
|
+
"dependency",
|
|
89
|
+
"barb"
|
|
90
|
+
], j = /* @__PURE__ */ e((e, n, r, i, a, o, s = !1, c) => {
|
|
91
|
+
let l = k[r], u = l && A.includes(l.type);
|
|
92
|
+
if (!l) {
|
|
93
|
+
t.warn(`Unknown arrow type: ${r}`);
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
let d = `${a}_${o}-${l.type}${n === "start" ? "Start" : "End"}${s && u ? "-margin" : ""}`;
|
|
97
|
+
if (c && c.trim() !== "") {
|
|
98
|
+
let t = `${d}_${c.replace(/[^\dA-Za-z]/g, "_")}`;
|
|
99
|
+
if (!document.getElementById(t)) {
|
|
100
|
+
let e = document.getElementById(d);
|
|
101
|
+
if (e) {
|
|
102
|
+
let n = e.cloneNode(!0);
|
|
103
|
+
n.id = t, n.querySelectorAll("path, circle, line").forEach((e) => {
|
|
104
|
+
e.setAttribute("stroke", c), l.fill && e.setAttribute("fill", c);
|
|
105
|
+
}), e.parentNode?.appendChild(n);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
e.attr(`marker-${n}`, `url(${i}#${t})`);
|
|
109
|
+
} else e.attr(`marker-${n}`, `url(${i}#${d})`);
|
|
110
|
+
}, "addEdgeMarker"), re = /* @__PURE__ */ e((e) => typeof e == "string" ? e : a()?.flowchart?.curve, "resolveEdgeCurveType"), M = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ e(() => {
|
|
111
|
+
M.clear(), N.clear();
|
|
112
|
+
}, "clear"), F = /* @__PURE__ */ e((e) => e ? typeof e == "string" ? e : e.reduce((e, t) => e + ";" + t, "") : "", "getLabelStyles"), I = /* @__PURE__ */ e(async (e, i) => {
|
|
113
|
+
let o = a(), s = r(o), { labelStyles: c } = E(i);
|
|
114
|
+
i.labelStyle = c;
|
|
115
|
+
let l = e.insert("g").attr("class", "edgeLabel"), u = l.insert("g").attr("class", "label").attr("data-id", i.id), d = i.labelType === "markdown", f = await x(e, i.label, {
|
|
116
|
+
style: F(i.labelStyle),
|
|
117
|
+
useHtmlLabels: s,
|
|
118
|
+
addSvgBackground: !0,
|
|
119
|
+
isNode: !1,
|
|
120
|
+
markdown: d,
|
|
121
|
+
width: void 0
|
|
122
|
+
}, o);
|
|
123
|
+
u.node().appendChild(f), t.info("abc82", i, i.labelType);
|
|
124
|
+
let p = f.getBBox(), m = p;
|
|
125
|
+
if (s) {
|
|
126
|
+
let e = f.children[0], t = n(f);
|
|
127
|
+
p = e.getBoundingClientRect(), m = p, t.attr("width", p.width), t.attr("height", p.height);
|
|
128
|
+
} else {
|
|
129
|
+
let e = n(f).select("text").node();
|
|
130
|
+
e && typeof e.getBBox == "function" && (m = e.getBBox());
|
|
131
|
+
}
|
|
132
|
+
u.attr("transform", w(m, s)), M.set(i.id, l), i.width = p.width, i.height = p.height;
|
|
133
|
+
let h;
|
|
134
|
+
if (i.startLabelLeft) {
|
|
135
|
+
let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"), a = await O(r, i.startLabelLeft, F(i.labelStyle) || "", !1, !1);
|
|
136
|
+
h = a;
|
|
137
|
+
let o = a.getBBox();
|
|
138
|
+
if (s) {
|
|
139
|
+
let e = a.children[0], t = n(a);
|
|
140
|
+
o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
|
|
141
|
+
}
|
|
142
|
+
r.attr("transform", w(o, s)), N.get(i.id) || N.set(i.id, {}), N.get(i.id).startLeft = t, L(h, i.startLabelLeft);
|
|
143
|
+
}
|
|
144
|
+
if (i.startLabelRight) {
|
|
145
|
+
let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"), a = await O(r, i.startLabelRight, F(i.labelStyle) || "", !1, !1);
|
|
146
|
+
h = a;
|
|
147
|
+
let o = a.getBBox();
|
|
148
|
+
if (s) {
|
|
149
|
+
let e = a.children[0], t = n(a);
|
|
150
|
+
o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
|
|
151
|
+
}
|
|
152
|
+
r.attr("transform", w(o, s)), N.get(i.id) || N.set(i.id, {}), N.get(i.id).startRight = t, L(h, i.startLabelRight);
|
|
153
|
+
}
|
|
154
|
+
if (i.endLabelLeft) {
|
|
155
|
+
let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"), a = await O(t, i.endLabelLeft, F(i.labelStyle) || "", !1, !1);
|
|
156
|
+
h = a;
|
|
157
|
+
let o = a.getBBox();
|
|
158
|
+
if (s) {
|
|
159
|
+
let e = a.children[0], t = n(a);
|
|
160
|
+
o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
|
|
161
|
+
}
|
|
162
|
+
r.attr("transform", w(o, s)), N.get(i.id) || N.set(i.id, {}), N.get(i.id).endLeft = t, L(h, i.endLabelLeft);
|
|
163
|
+
}
|
|
164
|
+
if (i.endLabelRight) {
|
|
165
|
+
let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"), a = await O(t, i.endLabelRight, F(i.labelStyle) || "", !1, !1);
|
|
166
|
+
h = a;
|
|
167
|
+
let o = a.getBBox();
|
|
168
|
+
if (s) {
|
|
169
|
+
let e = a.children[0], t = n(a);
|
|
170
|
+
o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
|
|
171
|
+
}
|
|
172
|
+
r.attr("transform", w(o, s)), N.get(i.id) || N.set(i.id, {}), N.get(i.id).endRight = t, L(h, i.endLabelRight);
|
|
173
|
+
}
|
|
174
|
+
return f;
|
|
175
|
+
}, "insertEdgeLabel");
|
|
176
|
+
function L(e, t) {
|
|
177
|
+
r(a()) && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px");
|
|
178
|
+
}
|
|
179
|
+
e(L, "setTerminalWidth");
|
|
180
|
+
var R = /* @__PURE__ */ e((e, n) => {
|
|
181
|
+
t.debug("Moving label abc88 ", e.id, e.label, M.get(e.id), n);
|
|
182
|
+
let r = n.updatedPath ? n.updatedPath : n.originalPath, { subGraphTitleTotalMargin: i } = T(a());
|
|
183
|
+
if (e.label) {
|
|
184
|
+
let a = M.get(e.id), o = e.x, s = e.y;
|
|
185
|
+
if (r) {
|
|
186
|
+
let i = m.calcLabelPosition(r);
|
|
187
|
+
t.debug("Moving label " + e.label + " from (", o, ",", s, ") to (", i.x, ",", i.y, ") abc88"), n.updatedPath && (o = i.x, s = i.y);
|
|
188
|
+
}
|
|
189
|
+
a.attr("transform", `translate(${o}, ${s + i / 2})`);
|
|
190
|
+
}
|
|
191
|
+
if (e.startLabelLeft) {
|
|
192
|
+
let t = N.get(e.id).startLeft, n = e.x, i = e.y;
|
|
193
|
+
if (r) {
|
|
194
|
+
let t = m.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", r);
|
|
195
|
+
n = t.x, i = t.y;
|
|
196
|
+
}
|
|
197
|
+
t.attr("transform", `translate(${n}, ${i})`);
|
|
198
|
+
}
|
|
199
|
+
if (e.startLabelRight) {
|
|
200
|
+
let t = N.get(e.id).startRight, n = e.x, i = e.y;
|
|
201
|
+
if (r) {
|
|
202
|
+
let t = m.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", r);
|
|
203
|
+
n = t.x, i = t.y;
|
|
204
|
+
}
|
|
205
|
+
t.attr("transform", `translate(${n}, ${i})`);
|
|
206
|
+
}
|
|
207
|
+
if (e.endLabelLeft) {
|
|
208
|
+
let t = N.get(e.id).endLeft, n = e.x, i = e.y;
|
|
209
|
+
if (r) {
|
|
210
|
+
let t = m.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", r);
|
|
211
|
+
n = t.x, i = t.y;
|
|
212
|
+
}
|
|
213
|
+
t.attr("transform", `translate(${n}, ${i})`);
|
|
214
|
+
}
|
|
215
|
+
if (e.endLabelRight) {
|
|
216
|
+
let t = N.get(e.id).endRight, n = e.x, i = e.y;
|
|
217
|
+
if (r) {
|
|
218
|
+
let t = m.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", r);
|
|
219
|
+
n = t.x, i = t.y;
|
|
220
|
+
}
|
|
221
|
+
t.attr("transform", `translate(${n}, ${i})`);
|
|
222
|
+
}
|
|
223
|
+
}, "positionEdgeLabel"), ie = /* @__PURE__ */ e((e, t) => {
|
|
224
|
+
if (!e?.isLabelEdge || !e?.id?.endsWith("-to-label") || !Array.isArray(t) || t.length !== 2) return t;
|
|
225
|
+
let [n, r] = t, i = Math.abs(r.x - n.x), a = Math.abs(r.y - n.y);
|
|
226
|
+
return i < .001 || a < .001 ? t : a >= i ? [
|
|
227
|
+
n,
|
|
228
|
+
{
|
|
229
|
+
x: n.x,
|
|
230
|
+
y: r.y
|
|
231
|
+
},
|
|
232
|
+
r
|
|
233
|
+
] : [
|
|
234
|
+
n,
|
|
235
|
+
{
|
|
236
|
+
x: r.x,
|
|
237
|
+
y: n.y
|
|
238
|
+
},
|
|
239
|
+
r
|
|
240
|
+
];
|
|
241
|
+
}, "orthogonalizeToLabelClippedPoints"), z = /* @__PURE__ */ e((e, t) => {
|
|
242
|
+
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;
|
|
243
|
+
return i >= o || a >= s;
|
|
244
|
+
}, "outsideNode"), B = /* @__PURE__ */ e((e, n, r) => {
|
|
245
|
+
t.debug(`intersection calc abc89:
|
|
246
|
+
outsidePoint: ${JSON.stringify(n)}
|
|
247
|
+
insidePoint : ${JSON.stringify(r)}
|
|
248
|
+
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);
|
|
249
|
+
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);
|
|
250
|
+
if (Math.abs(a - n.y) * s > Math.abs(i - n.x) * l) {
|
|
251
|
+
let e = r.y < n.y ? n.y - l - a : a - l - n.y;
|
|
252
|
+
c = d * e / u;
|
|
253
|
+
let i = {
|
|
254
|
+
x: r.x < n.x ? r.x + c : r.x - d + c,
|
|
255
|
+
y: r.y < n.y ? r.y + u - e : r.y - u + e
|
|
256
|
+
};
|
|
257
|
+
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;
|
|
258
|
+
} else {
|
|
259
|
+
c = r.x < n.x ? n.x - s - i : i - s - n.x;
|
|
260
|
+
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;
|
|
261
|
+
return t.debug(`sides calc abc89, Q ${u}, q ${e}, R ${d}, r ${c}`, {
|
|
262
|
+
_x: a,
|
|
263
|
+
_y: o
|
|
264
|
+
}), c === 0 && (a = n.x, o = n.y), d === 0 && (a = n.x), u === 0 && (o = n.y), {
|
|
265
|
+
x: a,
|
|
266
|
+
y: o
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
}, "intersection"), V = /* @__PURE__ */ e((e, n) => {
|
|
270
|
+
t.warn("abc88 cutPathAtIntersect", e, n);
|
|
271
|
+
let r = [], i = e[0], a = !1;
|
|
272
|
+
return e.forEach((e) => {
|
|
273
|
+
if (t.info("abc88 checking point", e, n), !z(n, e) && !a) {
|
|
274
|
+
let o = B(n, i, e);
|
|
275
|
+
t.debug("abc88 inside", e, i, o), t.debug("abc88 intersection", o, n);
|
|
276
|
+
let s = !1;
|
|
277
|
+
r.forEach((e) => {
|
|
278
|
+
s ||= e.x === o.x && e.y === o.y;
|
|
279
|
+
}), r.some((e) => e.x === o.x && e.y === o.y) ? t.warn("abc88 no intersect", o, r) : r.push(o), a = !0;
|
|
280
|
+
} else t.warn("abc88 outside", e, i), i = e, a || r.push(e);
|
|
281
|
+
}), t.debug("returning points", r), r;
|
|
282
|
+
}, "cutPathAtIntersect");
|
|
283
|
+
function H(e) {
|
|
284
|
+
let t = [], n = [];
|
|
285
|
+
for (let r = 1; r < e.length - 1; r++) {
|
|
286
|
+
let i = e[r - 1], a = e[r], o = e[r + 1];
|
|
287
|
+
(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));
|
|
288
|
+
}
|
|
289
|
+
return {
|
|
290
|
+
cornerPoints: t,
|
|
291
|
+
cornerPointPositions: n
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
e(H, "extractCornerPoints");
|
|
295
|
+
var U = /* @__PURE__ */ e(function(e, t, n) {
|
|
296
|
+
let r = t.x - e.x, i = t.y - e.y, a = n / Math.sqrt(r * r + i * i);
|
|
297
|
+
return {
|
|
298
|
+
x: t.x - a * r,
|
|
299
|
+
y: t.y - a * i
|
|
300
|
+
};
|
|
301
|
+
}, "findAdjacentPoint"), ae = /* @__PURE__ */ e(function(e) {
|
|
302
|
+
let { cornerPointPositions: n } = H(e), r = [];
|
|
303
|
+
for (let i = 0; i < e.length; i++) if (n.includes(i)) {
|
|
304
|
+
let n = e[i - 1], a = e[i + 1], o = e[i], s = U(n, o, 5), c = U(a, o, 5), l = c.x - s.x, u = c.y - s.y;
|
|
305
|
+
r.push(s);
|
|
306
|
+
let d = Math.sqrt(2) * 2, f = {
|
|
307
|
+
x: o.x,
|
|
308
|
+
y: o.y
|
|
309
|
+
};
|
|
310
|
+
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 ? {
|
|
311
|
+
x: l < 0 ? s.x - 5 + d : s.x + 5 - d,
|
|
312
|
+
y: u < 0 ? s.y - d : s.y + d
|
|
313
|
+
} : {
|
|
314
|
+
x: l < 0 ? s.x - d : s.x + d,
|
|
315
|
+
y: u < 0 ? s.y - 5 + d : s.y + 5 - d
|
|
316
|
+
}) : t.debug("Corner point skipping fixing", Math.abs(a.x - n.x), Math.abs(a.y - n.y)), r.push(f, c);
|
|
317
|
+
} else r.push(e[i]);
|
|
318
|
+
return r;
|
|
319
|
+
}, "fixCorners"), oe = /* @__PURE__ */ e((e, t, n) => {
|
|
320
|
+
let r = e - t - n, i = Math.floor(r / 4);
|
|
321
|
+
return `0 ${t} ${Array(i).fill("2 2").join(" ")} ${n}`;
|
|
322
|
+
}, "generateDashArray"), W = /* @__PURE__ */ e(function(e, r, i, x, C, w, T, E = !1) {
|
|
323
|
+
if (!T) throw Error(`insertEdge: missing diagramId for edge "${r.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);
|
|
324
|
+
let { handDrawnSeed: O, layout: k } = a(), A = r.points, j = !1, M = C;
|
|
325
|
+
var N = w;
|
|
326
|
+
let P = [];
|
|
327
|
+
for (let e in r.cssCompiledStyles) D(e) || P.push(r.cssCompiledStyles[e]);
|
|
328
|
+
if (k === "swimlane") {
|
|
329
|
+
if (N.intersect && M.intersect && Array.isArray(A) && A.length >= 2) if (A.length === 2) A = [M.intersect(A[0]), N.intersect(A[1])];
|
|
330
|
+
else {
|
|
331
|
+
let e = A.slice(1, -1), t = e[0], n = e[e.length - 1], r = .5, i = Math.abs(A[A.length - 1].x - n.x) < r && Math.abs(A[A.length - 1].y - n.y) < r, a = M.intersect(t), o = i ? n : N.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];
|
|
332
|
+
A = [
|
|
333
|
+
...c,
|
|
334
|
+
...e,
|
|
335
|
+
...l
|
|
336
|
+
];
|
|
337
|
+
}
|
|
338
|
+
A = ie(r, A);
|
|
339
|
+
} else N.intersect && M.intersect && !E && (A = A.slice(1, r.points.length - 1), A.unshift(M.intersect(A[0])), A.push(N.intersect(A[A.length - 1])));
|
|
340
|
+
let F = btoa(JSON.stringify(A));
|
|
341
|
+
r.toCluster && (t.info("to cluster abc88", i.get(r.toCluster)), A = V(r.points, i.get(r.toCluster).node), j = !0), r.fromCluster && (t.debug("from cluster abc88", i.get(r.fromCluster), JSON.stringify(A, null, 2)), A = V(A.reverse(), i.get(r.fromCluster).node).reverse(), j = !0);
|
|
342
|
+
let I = A.filter((e) => !Number.isNaN(e.y)), L = re(r.curve);
|
|
343
|
+
L !== "rounded" && (I = ae(I));
|
|
344
|
+
let R = _;
|
|
345
|
+
switch (L) {
|
|
346
|
+
case "linear":
|
|
347
|
+
R = _;
|
|
348
|
+
break;
|
|
349
|
+
case "basis":
|
|
350
|
+
R = p;
|
|
351
|
+
break;
|
|
352
|
+
case "cardinal":
|
|
353
|
+
R = o;
|
|
354
|
+
break;
|
|
355
|
+
case "bumpX":
|
|
356
|
+
R = v;
|
|
357
|
+
break;
|
|
358
|
+
case "bumpY":
|
|
359
|
+
R = h;
|
|
360
|
+
break;
|
|
361
|
+
case "catmullRom":
|
|
362
|
+
R = l;
|
|
363
|
+
break;
|
|
364
|
+
case "monotoneX":
|
|
365
|
+
R = u;
|
|
366
|
+
break;
|
|
367
|
+
case "monotoneY":
|
|
368
|
+
R = f;
|
|
369
|
+
break;
|
|
370
|
+
case "natural":
|
|
371
|
+
R = d;
|
|
372
|
+
break;
|
|
373
|
+
case "step":
|
|
374
|
+
R = s;
|
|
375
|
+
break;
|
|
376
|
+
case "stepAfter":
|
|
377
|
+
R = c;
|
|
378
|
+
break;
|
|
379
|
+
case "stepBefore":
|
|
380
|
+
R = g;
|
|
381
|
+
break;
|
|
382
|
+
case "rounded":
|
|
383
|
+
R = _;
|
|
384
|
+
break;
|
|
385
|
+
default: R = p;
|
|
386
|
+
}
|
|
387
|
+
let { x: z, y: B } = ee(r), H = b().x(z).y(B).curve(R), U;
|
|
388
|
+
switch (r.thickness) {
|
|
389
|
+
case "normal":
|
|
390
|
+
U = "edge-thickness-normal";
|
|
391
|
+
break;
|
|
392
|
+
case "thick":
|
|
393
|
+
U = "edge-thickness-thick";
|
|
394
|
+
break;
|
|
395
|
+
case "invisible":
|
|
396
|
+
U = "edge-thickness-invisible";
|
|
397
|
+
break;
|
|
398
|
+
default: U = "edge-thickness-normal";
|
|
399
|
+
}
|
|
400
|
+
switch (r.pattern) {
|
|
401
|
+
case "solid":
|
|
402
|
+
U += " edge-pattern-solid";
|
|
403
|
+
break;
|
|
404
|
+
case "dotted":
|
|
405
|
+
U += " edge-pattern-dotted";
|
|
406
|
+
break;
|
|
407
|
+
case "dashed":
|
|
408
|
+
U += " edge-pattern-dashed";
|
|
409
|
+
break;
|
|
410
|
+
default: U += " edge-pattern-solid";
|
|
411
|
+
}
|
|
412
|
+
let W, K = L === "rounded" ? G(q(I, r), 5) : H(I), J = Array.isArray(r.style) ? r.style : [r.style], Y = J.find((e) => e?.startsWith("stroke:")), X = "";
|
|
413
|
+
r.animate && (X = "edge-animation-fast"), r.animation && (X = "edge-animation-" + r.animation);
|
|
414
|
+
let Z = !1;
|
|
415
|
+
if (r.look === "handDrawn") {
|
|
416
|
+
let t = te.svg(e);
|
|
417
|
+
Object.assign([], I);
|
|
418
|
+
let i = t.path(K, {
|
|
419
|
+
roughness: .3,
|
|
420
|
+
seed: O
|
|
421
|
+
});
|
|
422
|
+
U += " transition", W = n(i).select("path").attr("id", `${T}-${r.id}`).attr("class", " " + U + (r.classes ? " " + r.classes : "") + (X ? " " + X : "")).attr("style", J ? J.reduce((e, t) => e + ";" + t, "") : "");
|
|
423
|
+
let a = W.attr("d");
|
|
424
|
+
W.attr("d", a), e.node().appendChild(W.node());
|
|
425
|
+
} else {
|
|
426
|
+
let t = P.join(";"), n = J ? J.reduce((e, t) => e + t + ";", "") : "", i = (t ? t + ";" + n + ";" : n) + ";" + (J ? J.reduce((e, t) => e + ";" + t, "") : "");
|
|
427
|
+
W = e.append("path").attr("d", K).attr("id", `${T}-${r.id}`).attr("class", " " + U + (r.classes ? " " + r.classes : "") + (X ? " " + X : "")).attr("style", i), Y = i.match(/stroke:([^;]+)/)?.[1], Z = r.animate === !0 || !!r.animation || t.includes("animation");
|
|
428
|
+
let a = W.node(), o = typeof a.getTotalLength == "function" ? a.getTotalLength() : 0, s = S[r.arrowTypeStart] || 0, c = S[r.arrowTypeEnd] || 0;
|
|
429
|
+
if (r.look === "neo" && !Z) {
|
|
430
|
+
let e = `stroke-dasharray: ${r.pattern === "dotted" || r.pattern === "dashed" ? oe(o, s, c) : `0 ${s} ${o - s - c} ${c}`}; stroke-dashoffset: 0;`;
|
|
431
|
+
W.attr("style", e + W.attr("style"));
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
W.attr("data-edge", !0), W.attr("data-et", "edge"), W.attr("data-id", r.id), W.attr("data-points", F), W.attr("data-look", y(r.look)), r.showPoints && I.forEach((t) => {
|
|
435
|
+
e.append("circle").style("stroke", "red").style("fill", "red").attr("r", 1).attr("cx", t.x).attr("cy", t.y);
|
|
436
|
+
});
|
|
437
|
+
let Q = "";
|
|
438
|
+
(a().flowchart.arrowMarkerAbsolute || a().state.arrowMarkerAbsolute) && (Q = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, Q = Q.replace(/\(/g, "\\(").replace(/\)/g, "\\)")), t.info("arrowTypeStart", r.arrowTypeStart), t.info("arrowTypeEnd", r.arrowTypeEnd);
|
|
439
|
+
let se = !Z && r?.look === "neo";
|
|
440
|
+
ne(W, r, Q, T, x, se, Y);
|
|
441
|
+
let ce = Math.floor(A.length / 2), le = A[ce];
|
|
442
|
+
m.isLabelCoordinateInPath(le, W.attr("d")) || (j = !0);
|
|
443
|
+
let $ = {};
|
|
444
|
+
return j && ($.updatedPath = A), $.originalPath = r.points, $;
|
|
445
|
+
}, "insertEdge");
|
|
446
|
+
function G(e, t) {
|
|
447
|
+
if (e.length < 2) return "";
|
|
448
|
+
let n = "", r = e.length, i = 1e-5;
|
|
449
|
+
for (let a = 0; a < r; a++) {
|
|
450
|
+
let o = e[a], s = e[a - 1], c = e[a + 1];
|
|
451
|
+
if (a === 0) n += `M${o.x},${o.y}`;
|
|
452
|
+
else if (a === r - 1) n += `L${o.x},${o.y}`;
|
|
453
|
+
else {
|
|
454
|
+
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);
|
|
455
|
+
if (u < i || d < i) {
|
|
456
|
+
n += `L${o.x},${o.y}`;
|
|
457
|
+
continue;
|
|
458
|
+
}
|
|
459
|
+
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)));
|
|
460
|
+
if (_ < i || Math.abs(Math.PI - _) < i) {
|
|
461
|
+
n += `L${o.x},${o.y}`;
|
|
462
|
+
continue;
|
|
463
|
+
}
|
|
464
|
+
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;
|
|
465
|
+
n += `L${y},${b}`, n += `Q${o.x},${o.y} ${x},${S}`;
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
return n;
|
|
469
|
+
}
|
|
470
|
+
e(G, "generateRoundedPath");
|
|
471
|
+
function K(e, t) {
|
|
472
|
+
if (!e || !t) return {
|
|
473
|
+
angle: 0,
|
|
474
|
+
deltaX: 0,
|
|
475
|
+
deltaY: 0
|
|
476
|
+
};
|
|
477
|
+
let n = t.x - e.x, r = t.y - e.y;
|
|
478
|
+
return {
|
|
479
|
+
angle: Math.atan2(r, n),
|
|
480
|
+
deltaX: n,
|
|
481
|
+
deltaY: r
|
|
482
|
+
};
|
|
483
|
+
}
|
|
484
|
+
e(K, "calculateDeltaAndAngle");
|
|
485
|
+
function q(e, t) {
|
|
486
|
+
let n = e.map((e) => ({ ...e }));
|
|
487
|
+
if (e.length >= 2 && C[t.arrowTypeStart]) {
|
|
488
|
+
let r = C[t.arrowTypeStart], i = e[0], a = e[1], { angle: o } = K(i, a), s = r * Math.cos(o), c = r * Math.sin(o);
|
|
489
|
+
n[0].x = i.x + s, n[0].y = i.y + c;
|
|
490
|
+
}
|
|
491
|
+
let r = e.length;
|
|
492
|
+
if (r >= 2 && C[t.arrowTypeEnd]) {
|
|
493
|
+
let i = C[t.arrowTypeEnd], a = e[r - 1], o = e[r - 2], { angle: s } = K(o, a), c = i * Math.cos(s), l = i * Math.sin(s);
|
|
494
|
+
n[r - 1].x = a.x - c, n[r - 1].y = a.y - l;
|
|
495
|
+
}
|
|
496
|
+
return n;
|
|
497
|
+
}
|
|
498
|
+
e(q, "applyMarkerOffsetsToPoints");
|
|
499
|
+
var J = /* @__PURE__ */ e((e, t, n, r) => {
|
|
500
|
+
t.forEach((t) => {
|
|
501
|
+
Y[t](e, n, r);
|
|
502
|
+
});
|
|
503
|
+
}, "insertMarkers"), Y = {
|
|
504
|
+
extension: /* @__PURE__ */ e((e, n, r) => {
|
|
505
|
+
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").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");
|
|
506
|
+
}, "extension"),
|
|
507
|
+
composition: /* @__PURE__ */ e((e, t, n) => {
|
|
508
|
+
e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionStart").attr("class", "marker composition " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionEnd").attr("class", "marker composition " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionStart-margin").attr("class", "marker composition " + t).attr("refX", 15).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("viewBox", "0 0 15 15").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionEnd-margin").attr("class", "marker composition " + t).attr("refX", 3.5).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
|
|
509
|
+
}, "composition"),
|
|
510
|
+
aggregation: /* @__PURE__ */ e((e, t, n) => {
|
|
511
|
+
e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationStart").attr("class", "marker aggregation " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationEnd").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationStart-margin").attr("class", "marker aggregation " + t).attr("refX", 15).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 2).attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationEnd-margin").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 2).attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
|
|
512
|
+
}, "aggregation"),
|
|
513
|
+
dependency: /* @__PURE__ */ e((e, t, n) => {
|
|
514
|
+
e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyStart").attr("class", "marker dependency " + t).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyEnd").attr("class", "marker dependency " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyStart-margin").attr("class", "marker dependency " + t).attr("refX", 4).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyEnd-margin").attr("class", "marker dependency " + t).attr("refX", 16).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
|
|
515
|
+
}, "dependency"),
|
|
516
|
+
lollipop: /* @__PURE__ */ e((e, t, n) => {
|
|
517
|
+
e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopStart").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopEnd").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopStart-margin").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6).attr("stroke-width", 2), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopEnd-margin").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6).attr("stroke-width", 2);
|
|
518
|
+
}, "lollipop"),
|
|
519
|
+
point: /* @__PURE__ */ e((e, t, n) => {
|
|
520
|
+
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");
|
|
521
|
+
}, "point"),
|
|
522
|
+
circle: /* @__PURE__ */ e((e, t, n) => {
|
|
523
|
+
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");
|
|
524
|
+
}, "circle"),
|
|
525
|
+
cross: /* @__PURE__ */ e((e, t, n) => {
|
|
526
|
+
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");
|
|
527
|
+
}, "cross"),
|
|
528
|
+
barb: /* @__PURE__ */ e((e, t, n) => {
|
|
529
|
+
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");
|
|
530
|
+
}, "barb"),
|
|
531
|
+
barbNeo: /* @__PURE__ */ e((e, t, n) => {
|
|
532
|
+
let { themeVariables: r } = i(), { transitionColor: a } = r;
|
|
533
|
+
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", `${a}`);
|
|
534
|
+
}, "barbNeo"),
|
|
535
|
+
only_one: /* @__PURE__ */ e((e, t, n) => {
|
|
536
|
+
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");
|
|
537
|
+
}, "only_one"),
|
|
538
|
+
zero_or_one: /* @__PURE__ */ e((e, t, n) => {
|
|
539
|
+
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");
|
|
540
|
+
r.append("circle").attr("fill", "white").attr("cx", 21).attr("cy", 9).attr("r", 6), r.append("path").attr("d", "M9,0 L9,18");
|
|
541
|
+
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");
|
|
542
|
+
i.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 9).attr("r", 6), i.append("path").attr("d", "M21,0 L21,18");
|
|
543
|
+
}, "zero_or_one"),
|
|
544
|
+
one_or_more: /* @__PURE__ */ e((e, t, n) => {
|
|
545
|
+
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");
|
|
546
|
+
}, "one_or_more"),
|
|
547
|
+
zero_or_more: /* @__PURE__ */ e((e, t, n) => {
|
|
548
|
+
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");
|
|
549
|
+
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");
|
|
550
|
+
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");
|
|
551
|
+
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");
|
|
552
|
+
}, "zero_or_more"),
|
|
553
|
+
only_one_neo: /* @__PURE__ */ e((e, t, n) => {
|
|
554
|
+
let { themeVariables: r } = i(), { strokeWidth: a } = r;
|
|
555
|
+
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", `${a}`), 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", `${a}`);
|
|
556
|
+
}, "only_one_neo"),
|
|
557
|
+
zero_or_one_neo: /* @__PURE__ */ e((e, t, n) => {
|
|
558
|
+
let { themeVariables: r } = i(), { strokeWidth: a, mainBkg: o } = r, s = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneStart").attr("class", "marker zeroOrOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse");
|
|
559
|
+
s.append("circle").attr("fill", o ?? "white").attr("cx", 21).attr("cy", 9).attr("stroke-width", `${a}`).attr("r", 6), s.append("path").attr("d", "M9,0 L9,18").attr("stroke-width", `${a}`);
|
|
560
|
+
let c = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneEnd").attr("class", "marker zeroOrOne " + t).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto");
|
|
561
|
+
c.append("circle").attr("fill", o ?? "white").attr("cx", 9).attr("cy", 9).attr("stroke-width", `${a}`).attr("r", 6), c.append("path").attr("d", "M21,0 L21,18").attr("stroke-width", `${a}`);
|
|
562
|
+
}, "zero_or_one_neo"),
|
|
563
|
+
one_or_more_neo: /* @__PURE__ */ e((e, t, n) => {
|
|
564
|
+
let { themeVariables: r } = i(), { strokeWidth: a } = r;
|
|
565
|
+
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", `${a}`), 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", `${a}`);
|
|
566
|
+
}, "one_or_more_neo"),
|
|
567
|
+
zero_or_more_neo: /* @__PURE__ */ e((e, t, n) => {
|
|
568
|
+
let { themeVariables: r } = i(), { strokeWidth: a, mainBkg: o } = r, s = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreStart").attr("class", "marker zeroOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto");
|
|
569
|
+
s.append("circle").attr("fill", o ?? "white").attr("cx", 45.5).attr("cy", 18).attr("r", 6).attr("stroke-width", `${a}`), s.append("path").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width", `${a}`);
|
|
570
|
+
let c = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreEnd").attr("class", "marker zeroOrMore " + t).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse");
|
|
571
|
+
c.append("circle").attr("fill", o ?? "white").attr("cx", 11).attr("cy", 18).attr("r", 6).attr("stroke-width", `${a}`), c.append("path").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width", `${a}`);
|
|
572
|
+
}, "zero_or_more_neo"),
|
|
573
|
+
requirement_arrow: /* @__PURE__ */ e((e, t, n) => {
|
|
574
|
+
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");
|
|
575
|
+
}, "requirement_arrow"),
|
|
576
|
+
requirement_contains: /* @__PURE__ */ e((e, t, n) => {
|
|
577
|
+
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");
|
|
578
|
+
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);
|
|
579
|
+
}, "requirement_contains"),
|
|
580
|
+
requirement_arrow_neo: /* @__PURE__ */ e((e, t, n) => {
|
|
581
|
+
let { themeVariables: r } = i(), { strokeWidth: a } = r;
|
|
582
|
+
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", `${a}`).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");
|
|
583
|
+
}, "requirement_arrow_neo"),
|
|
584
|
+
requirement_contains_neo: /* @__PURE__ */ e((e, t, n) => {
|
|
585
|
+
let { themeVariables: r } = i(), { strokeWidth: a } = r, o = e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_containsStart").attr("refX", 0).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("g");
|
|
586
|
+
o.append("circle").attr("cx", 10).attr("cy", 10).attr("r", 9).attr("fill", "none"), o.append("line").attr("x1", 1).attr("x2", 19).attr("y1", 10).attr("y2", 10), o.append("line").attr("y1", 1).attr("y2", 19).attr("x1", 10).attr("x2", 10), o.selectAll("*").attr("stroke-width", `${a}`);
|
|
587
|
+
}, "requirement_contains_neo")
|
|
588
|
+
}, X = J;
|
|
589
|
+
//#endregion
|
|
590
|
+
export { X as a, I as i, M as n, R as o, W as r, N as s, P as t };
|