@pi-outpost/embed 0.57.0 → 0.59.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/dist/{abnfDiagram-WEYOIA3C-B_dTFm2g.js → abnfDiagram-S7VZAUFO-BdOzCXh1.js} +4 -4
- package/dist/{abnfDiagram-WEYOIA3C-Dk2VD3Iw.cjs → abnfDiagram-S7VZAUFO-zyFnpqZ0.cjs} +1 -1
- package/dist/{architectureDiagram-ZHVYKT53-CslNYmQN.js → architectureDiagram-YGSQEFNW-DiYOcBqo.js} +5 -5
- package/dist/{architectureDiagram-ZHVYKT53-Bud-mHjo.cjs → architectureDiagram-YGSQEFNW-gEzRb5xY.cjs} +3 -3
- package/dist/{blockDiagram-RJAE7QA3-Dgm9J6pS.js → blockDiagram-APKKGZFW-CIX-8mpK.js} +106 -107
- package/dist/{blockDiagram-RJAE7QA3-lEBn-_Yn.cjs → blockDiagram-APKKGZFW-KL3nQT0s.cjs} +7 -7
- package/dist/bpmnIcons-APHXDYXF-BcsYKfS7.js +39 -0
- package/dist/bpmnIcons-APHXDYXF-DX8xcBUd.cjs +1 -0
- package/dist/{c4Diagram-XDPPPE54-rbzhqhW5.js → c4Diagram-KJ2TOQU5-BS_M90FN.js} +8 -8
- package/dist/{c4Diagram-XDPPPE54-BKNqVY-U.cjs → c4Diagram-KJ2TOQU5-D-dCJWvI.cjs} +1 -1
- package/dist/{chunk-7S6XSTFO-ejBVk-tI.cjs → chunk-6MUBBAK2-BTabKnTR.cjs} +1 -1
- package/dist/{chunk-7S6XSTFO-DrDRohsE.js → chunk-6MUBBAK2-DlUTxzYh.js} +2 -2
- package/dist/{chunk-HAGFOTED-BUPxFGdn.cjs → chunk-AXFCVDMN-B6dhmE32.cjs} +8 -8
- package/dist/{chunk-HAGFOTED-ceXO12G4.js → chunk-AXFCVDMN-DrVQa3gP.js} +1256 -1041
- package/dist/{chunk-DSNLSHJZ-BxQ7lMXY.cjs → chunk-BG4553SI-DFPUniBw.cjs} +1 -1
- package/dist/{chunk-DSNLSHJZ-DPpiuUZK.js → chunk-BG4553SI-j_gQs8M_.js} +2 -0
- package/dist/chunk-DQASFODM-BBkQ8gE7.cjs +10 -0
- package/dist/{chunk-WQQL4CDK-C3yDIFZ3.js → chunk-DQASFODM-DAaU7yoa.js} +520 -211
- package/dist/{chunk-55XCU76K-o8OgDLPD.js → chunk-HFQBQIA3-DqHSeXIz.js} +2 -2
- package/dist/{chunk-55XCU76K-IpMfjRYv.cjs → chunk-HFQBQIA3-lOxrhpos.cjs} +1 -1
- package/dist/{chunk-ZCHMQSOR-BbO7eY2w.js → chunk-KQLB2F66-C7twW9LJ.js} +30 -30
- package/dist/{chunk-ZCHMQSOR-Cg8zPt0w.cjs → chunk-KQLB2F66-Ec2IAtUR.cjs} +1 -1
- package/dist/{chunk-4EMNKR2T-CGAdq4EA.cjs → chunk-KS47KZWR-C7Yv0kfF.cjs} +1 -1
- package/dist/{chunk-4EMNKR2T-BIO9veC4.js → chunk-KS47KZWR-OD3AMBe8.js} +2 -2
- package/dist/{chunk-ZAUX2LTX-DIQkgUFr.cjs → chunk-LEVMRMFU-BFGXlIAt.cjs} +1 -1
- package/dist/{chunk-ZAUX2LTX-P8LAwm_U.js → chunk-LEVMRMFU-NLMudZfn.js} +3 -3
- package/dist/chunk-M57EVK23-BSZ7OEGY.cjs +1 -0
- package/dist/{chunk-HNE4Q36P-uON_vFhT.js → chunk-M57EVK23-C8-Jp43x.js} +55 -54
- package/dist/{chunk-2E7WHVMD-Vo-POJc_.js → chunk-OY52VR5R-B7NRk2-S.js} +3 -3
- package/dist/{chunk-2E7WHVMD-BNsJOdNP.cjs → chunk-OY52VR5R-CvyV3pJF.cjs} +1 -1
- package/dist/{chunk-NQOKRVIF-DmOxzSOQ.js → chunk-QB3YPZ4I-DPQ26dC9.js} +788 -730
- package/dist/chunk-QB3YPZ4I-DaIXN7QF.cjs +213 -0
- package/dist/{chunk-YZO67HFG-DCQIFG8j.cjs → chunk-R3KSYZAL-BQPJVcO7.cjs} +1 -1
- package/dist/{chunk-YZO67HFG-WF3jklBn.js → chunk-R3KSYZAL-DeNSy3X8.js} +8 -8
- package/dist/{chunk-AQDTSKZB-DUZx386i.js → chunk-STOXU5M4-0WKKmqbF.js} +4 -4
- package/dist/{chunk-AQDTSKZB-B-MpZ-y2.cjs → chunk-STOXU5M4-CmoaBap6.cjs} +1 -1
- package/dist/{chunk-VQ5W62QI-Dw9Kffnl.cjs → chunk-TU62E6Q5-CMbRLUnW.cjs} +1 -1
- package/dist/{chunk-VQ5W62QI-Bvcxpp51.js → chunk-TU62E6Q5-DPxNUFFP.js} +2 -2
- package/dist/{chunk-UHW7PFBP-BTk1ZC8L.js → chunk-X4PVCEUW-C80IBt-t.js} +2 -2
- package/dist/{chunk-UHW7PFBP-Bays5Zi8.cjs → chunk-X4PVCEUW-Djs21j48.cjs} +1 -1
- package/dist/{classDiagram-v2-4MYWR3UA-DyMM0DMP.cjs → classDiagram-v2-L25IHNXF-CAbdJ2_W.cjs} +1 -1
- package/dist/{classDiagram-v2-4MYWR3UA-DIjHIULx.js → classDiagram-v2-L25IHNXF-CAts0vNW.js} +13 -13
- package/dist/{conversationExport-DojQkOLk.js → conversationExport-BWbYNcNf.js} +3 -3
- package/dist/{conversationExport-CE0UTxEg.cjs → conversationExport-DuKpkQDn.cjs} +1 -1
- package/dist/{conversationHistory-DdjP3rjR.cjs → conversationHistory-DIGz_MD4.cjs} +1 -1
- package/dist/{conversationHistory-g6h0_Fjx.js → conversationHistory-DXpSCV87.js} +2 -2
- package/dist/{cynefinDiagram-WF24UDRP-DEFG-MNh.js → cynefinDiagram-L36ESFBY-ByHpHKCc.js} +4 -4
- package/dist/{cynefinDiagram-WF24UDRP-BC09SRT2.cjs → cynefinDiagram-L36ESFBY-CrsJmb7x.cjs} +1 -1
- package/dist/{dagre-NK4GIZVX-D6Xuc_Nw.js → dagre-SPEB5RXH-C01_UMxx.js} +51 -51
- package/dist/{dagre-NK4GIZVX-D0_oLrA9.cjs → dagre-SPEB5RXH-ExCiSqVu.cjs} +2 -2
- package/dist/{diagram-TYUNFSNR-Dy2nkVin.cjs → diagram-3B7GL73J-CRNoSH2i.cjs} +2 -2
- package/dist/{diagram-TYUNFSNR-BSq4ni3b.js → diagram-3B7GL73J-D7i6eGGQ.js} +14 -14
- package/dist/{diagram-I5XIIV2D-Dom9usNq.cjs → diagram-DNEMPZML-CkhkOJo2.cjs} +1 -1
- package/dist/{diagram-I5XIIV2D-DbwsxgDf.js → diagram-DNEMPZML-Di5RqN_h.js} +4 -4
- package/dist/{diagram-RJA3I4VV-Bt-BxYua.cjs → diagram-L3MUGCDN-B1vXsDB1.cjs} +1 -1
- package/dist/{diagram-RJA3I4VV-DCygetH_.js → diagram-L3MUGCDN-BtQkAzOD.js} +4 -4
- package/dist/{diagram-CBK3MWTC-CuUrHQAz.js → diagram-LA4NIPWU-Badv-tyU.js} +6 -6
- package/dist/{diagram-CBK3MWTC-DbXGbFMz.cjs → diagram-LA4NIPWU-DST6DvSP.cjs} +1 -1
- package/dist/{diagram-PFBEJUXE-DAIw33Bx.cjs → diagram-MHCOC4E2-BafwTqOD.cjs} +1 -1
- package/dist/{diagram-PFBEJUXE-ChA6KYWw.js → diagram-MHCOC4E2-DmA9ezb9.js} +3 -3
- package/dist/{diagram-ODIL2UCW-CSnuo9bJ.js → diagram-XPFHEONP-CZHt29x-.js} +5 -5
- package/dist/{diagram-ODIL2UCW-CLSAtgxG.cjs → diagram-XPFHEONP-DCm8Rjp8.cjs} +2 -2
- package/dist/{docxExport-CrsGZa8E.cjs → docxExport-BlPADe6b.cjs} +1 -1
- package/dist/{docxExport-9XrmWN9x.js → docxExport-Bwi2TlqP.js} +2 -2
- package/dist/{ebnfDiagram-V4P3TTPT-e4I3Otpa.js → ebnfDiagram-UZSYDL2S-DVGQga8g.js} +4 -4
- package/dist/{ebnfDiagram-V4P3TTPT-6xhHNshj.cjs → ebnfDiagram-UZSYDL2S-fO0plY-B.cjs} +1 -1
- package/dist/elk-XV6XMXQE-BkH0WNCd.js +48285 -0
- package/dist/elk-XV6XMXQE-CioXUob9.cjs +27 -0
- package/dist/{erDiagram-KYQIGQAA-BTNANm6p.js → erDiagram-EYBAPDEH-Byy0RKKe.js} +12 -13
- package/dist/{erDiagram-KYQIGQAA-DsqyoDOz.cjs → erDiagram-EYBAPDEH-CUgDxVam.cjs} +2 -2
- package/dist/flowDiagram-MALGAFMO-D2e4rl0I.js +15 -0
- package/dist/flowDiagram-MALGAFMO-ZfeGO5tQ.cjs +1 -0
- package/dist/{ganttDiagram-R7GPNTJY-B1juClwW.cjs → ganttDiagram-23REXITY-D82ogzPM.cjs} +1 -1
- package/dist/{ganttDiagram-R7GPNTJY-CEGQ6hzi.js → ganttDiagram-23REXITY-DAs5LGLL.js} +2 -2
- package/dist/{gitGraphDiagram-PDYL7XHY-6cCNinUi.cjs → gitGraphDiagram-STJD7YCW-B3zcpUUP.cjs} +1 -1
- package/dist/{gitGraphDiagram-PDYL7XHY-D_ADFBrL.js → gitGraphDiagram-STJD7YCW-BVa0DHTU.js} +3 -3
- package/dist/{infoDiagram-MVDRKAX5-Dkuw3h5s.js → infoDiagram-KBXO4MBG-BW7IcSQr.js} +4 -4
- package/dist/{infoDiagram-MVDRKAX5-CVeFOzof.cjs → infoDiagram-KBXO4MBG-DRQkxKbg.cjs} +1 -1
- package/dist/{ishikawaDiagram-HPEHV2GE-oTSoKUOA.js → ishikawaDiagram-M35NCXHK-BiLoyI1l.js} +4 -4
- package/dist/{ishikawaDiagram-HPEHV2GE-92CAbMpi.cjs → ishikawaDiagram-M35NCXHK-DBokYlS8.cjs} +1 -1
- package/dist/{journeyDiagram-BOSHW7O7-Cb_yTQWF.cjs → journeyDiagram-OPLOXDXO-CgabMAC2.cjs} +1 -1
- package/dist/{journeyDiagram-BOSHW7O7-CMbGxPLA.js → journeyDiagram-OPLOXDXO-DsyubZVY.js} +3 -3
- package/dist/{kanban-definition-FNSA4HC5-DlUMoAIT.cjs → kanban-definition-BZKZHSQY-CLi3J9cI.cjs} +1 -1
- package/dist/{kanban-definition-FNSA4HC5-DzEQcVPw.js → kanban-definition-BZKZHSQY-DU8sOWQd.js} +10 -10
- package/dist/{line-ZwhMGa3_.cjs → line-Bf0B129l.cjs} +1 -1
- package/dist/{line-0VTxwDiV.js → line-DRq00lCg.js} +1 -1
- package/dist/{loadReferencedImage-RUfxAG0o.cjs → loadReferencedImage-D47xCpa7.cjs} +1 -1
- package/dist/{loadReferencedImage-LF2DEOPa.js → loadReferencedImage-VNYxXIzB.js} +1 -1
- package/dist/{mermaid.core-73kk5oPm.cjs → mermaid.core-BL4WDqAH.cjs} +12 -12
- package/dist/{mermaid.core-C8dp1dnD.js → mermaid.core-DPCy8dJO.js} +511 -504
- package/dist/{mermaidToImage-Ckx06W6z.cjs → mermaidToImage-B7I6iJ9s.cjs} +1 -1
- package/dist/{mermaidToImage-knc9XzLd.js → mermaidToImage-CViP9wx2.js} +1 -1
- package/dist/{mindmap-definition-6OY57UG3-CXobmoZM.js → mindmap-definition-I2QAS2VK-C2KpoDqG.js} +38 -68
- package/dist/{mindmap-definition-6OY57UG3-DLx3d1V6.cjs → mindmap-definition-I2QAS2VK-GT8_r7or.cjs} +8 -8
- package/dist/{pegDiagram-ECIUJNBX-ODBWqs1V.js → pegDiagram-FD4XPPHP-CSA4sB83.js} +4 -4
- package/dist/{pegDiagram-ECIUJNBX-B-eSDSQK.cjs → pegDiagram-FD4XPPHP-D0OZoETj.cjs} +1 -1
- package/dist/pi-outpost-embed.cjs +25 -25
- package/dist/pi-outpost-embed.js +2799 -2405
- package/dist/{pieDiagram-GNMPY74T-DYDC5z2D.js → pieDiagram-J4AKIIQI-CNLlH6kK.js} +4 -4
- package/dist/{pieDiagram-GNMPY74T-BtYyKCrf.cjs → pieDiagram-J4AKIIQI-O870G6iX.cjs} +1 -1
- package/dist/{quadrantDiagram-D57K4MC3-BfQWcg-D.js → quadrantDiagram-XTYBLID2-BjaZuA3m.js} +2 -2
- package/dist/{quadrantDiagram-D57K4MC3-Cu6JmzPE.cjs → quadrantDiagram-XTYBLID2-CfdtTmYm.cjs} +1 -1
- package/dist/{railroadDiagram-Y72NRBL7-BdHmqKV_.cjs → railroadDiagram-MRQ6NCDL-DDOA_8gY.cjs} +1 -1
- package/dist/{railroadDiagram-Y72NRBL7-ChQwG3mZ.js → railroadDiagram-MRQ6NCDL-DgAKQKiD.js} +4 -4
- package/dist/{requirementDiagram-EQYSW5RA-Dj4E0fE3.js → requirementDiagram-Y7LWUY3S-Bhlk2ueA.js} +12 -12
- package/dist/{requirementDiagram-EQYSW5RA-CDQ6Nza1.cjs → requirementDiagram-Y7LWUY3S-nSr_pknl.cjs} +1 -1
- package/dist/{sankeyDiagram-SY24JHO5-luxVW4uf.js → sankeyDiagram-WGJFYUXA-DUYWd4HF.js} +2 -2
- package/dist/{sankeyDiagram-SY24JHO5-BPFkmPzT.cjs → sankeyDiagram-WGJFYUXA-x6J896b3.cjs} +1 -1
- package/dist/{sequenceDiagram-BLEHNHQU-DX51aIRY.cjs → sequenceDiagram-5NDRBG5M-BFgcr8MT.cjs} +1 -1
- package/dist/{sequenceDiagram-BLEHNHQU-H4rQDzp-.js → sequenceDiagram-5NDRBG5M-D1YS8Amk.js} +5 -5
- package/dist/{stateDiagram-v2-A6IESKWZ-DBJ11U2p.js → stateDiagram-v2-FJ4FJNEA-6j2vDdvl.js} +13 -13
- package/dist/{stateDiagram-v2-A6IESKWZ-Dbp783Hd.cjs → stateDiagram-v2-FJ4FJNEA-DOTmLAY2.cjs} +1 -1
- package/dist/swimlanes-UMQ2AFYF-BQLQzNLz.cjs +1 -0
- package/dist/{swimlanes-B3ENRKFQ-Bp3vZCmK.js → swimlanes-UMQ2AFYF-CNb1NF60.js} +1742 -1338
- package/dist/swimlanesDiagram-OMPLPG4O-BNDsO6gw.cjs +8 -0
- package/dist/swimlanesDiagram-OMPLPG4O-BOl138lS.js +27 -0
- package/dist/{timeline-definition-JXYKGLGB-BE6iAj4r.js → timeline-definition-SEUHKTQE-B_909Amn.js} +4 -4
- package/dist/{timeline-definition-JXYKGLGB-DKhMPFBi.cjs → timeline-definition-SEUHKTQE-Du5-RSsU.cjs} +1 -1
- package/dist/{usecaseDiagram-WPOLBNNX-BRWufOTq.cjs → usecaseDiagram-AFA6YXN4-BUs_YsqB.cjs} +2 -2
- package/dist/{usecaseDiagram-WPOLBNNX-DY9Md_AG.js → usecaseDiagram-AFA6YXN4-CiVGRP5X.js} +12 -12
- package/dist/{vennDiagram-Q3Y3IDCW-NYVHk5sI.cjs → vennDiagram-NNMJR3RB-CKxaec4G.cjs} +1 -1
- package/dist/{vennDiagram-Q3Y3IDCW-DbPGt27W.js → vennDiagram-NNMJR3RB-l3A_FZxZ.js} +4 -4
- package/dist/{wardleyDiagram-IVAIDKWA-BHkJFpfC.js → wardleyDiagram-S7YFUSEH-BMQf5dl9.js} +4 -4
- package/dist/{wardleyDiagram-IVAIDKWA-DsYJNlmX.cjs → wardleyDiagram-S7YFUSEH-Ctqri3T4.cjs} +1 -1
- package/dist/{xychartDiagram-4URNHDU4-B_g46bSg.cjs → xychartDiagram-GGNKY7IX-BUma86Wh.cjs} +1 -1
- package/dist/{xychartDiagram-4URNHDU4-IvFjWG-y.js → xychartDiagram-GGNKY7IX-CuFU4ynf.js} +7 -7
- package/package.json +2 -2
- package/dist/channel-AESWk0Yw.cjs +0 -1
- package/dist/channel-CEoRf1uz.js +0 -5
- package/dist/chunk-HNE4Q36P-CCHAgwa3.cjs +0 -1
- package/dist/chunk-NQOKRVIF-DcZqKWzv.cjs +0 -213
- package/dist/chunk-WQQL4CDK-DxEEyQzx.cjs +0 -10
- package/dist/elk-QONTBCTQ-B8RYU1Ay.js +0 -47505
- package/dist/elk-QONTBCTQ-hBYUI6Nr.cjs +0 -27
- package/dist/flowDiagram-IUGLLWBU-BJlVRCj8.js +0 -15
- package/dist/flowDiagram-IUGLLWBU-CsC_IEV_.cjs +0 -1
- package/dist/swimlanes-B3ENRKFQ-DY1V--Rq.cjs +0 -1
- package/dist/swimlanesDiagram-AYQRV4AK-COavJcG4.js +0 -27
- package/dist/swimlanesDiagram-AYQRV4AK-dUd5QjxZ.cjs +0 -8
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
2
|
import { m as t, p as n } from "./src-65Lfw03T.js";
|
|
3
|
-
import { b as r,
|
|
4
|
-
import { $ as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { i as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { n as
|
|
11
|
-
//#region ../node_modules/
|
|
12
|
-
var
|
|
3
|
+
import { b as r, ot as i, st as a, w as o, y as s } from "./chunk-BG4553SI-j_gQs8M_.js";
|
|
4
|
+
import { $ as c, J as l, Q as u, X as d, Y as f, Z as p, _ as m, d as h, et as ee, it as g, nt as _, q as te, rt as ne, tt as v } from "./chunk-6MUBBAK2-DlUTxzYh.js";
|
|
5
|
+
import { t as re } from "./line-DRq00lCg.js";
|
|
6
|
+
import { n as ie, r as y } from "./chunk-STOXU5M4-0WKKmqbF.js";
|
|
7
|
+
import { i as b, n as ae } from "./chunk-X4PVCEUW-C80IBt-t.js";
|
|
8
|
+
import { t as oe } from "./rough.esm-D2JJJ0Ot.js";
|
|
9
|
+
import { t as x } from "./chunk-AXFCVDMN-DrVQa3gP.js";
|
|
10
|
+
import { n as se } from "./chunk-LEVMRMFU-NLMudZfn.js";
|
|
11
|
+
//#region ../node_modules/khroma/dist/methods/channel.js
|
|
12
|
+
var S = (e, t) => a.lang.round(i.parse(e)[t]), C = /* @__PURE__ */ e((e, t) => {
|
|
13
13
|
if (t) return "translate(" + -e.width / 2 + ", " + -e.height / 2 + ")";
|
|
14
14
|
let n = e.x ?? 0, r = e.y ?? 0;
|
|
15
15
|
return "translate(" + -(n + e.width / 2) + ", " + -(r + e.height / 2) + ")";
|
|
16
|
-
}, "computeLabelTransform"),
|
|
16
|
+
}, "computeLabelTransform"), w = {
|
|
17
17
|
aggregation: 17.25,
|
|
18
18
|
extension: 17.25,
|
|
19
19
|
composition: 17.25,
|
|
@@ -22,18 +22,20 @@ var E = /* @__PURE__ */ e((e, t) => {
|
|
|
22
22
|
arrow_point: 4,
|
|
23
23
|
arrow_barb: 0,
|
|
24
24
|
arrow_barb_neo: 5.5
|
|
25
|
-
},
|
|
25
|
+
}, T = {
|
|
26
26
|
arrow_point: 4,
|
|
27
27
|
arrow_cross: 12.5,
|
|
28
|
-
arrow_circle: 12.5
|
|
28
|
+
arrow_circle: 12.5,
|
|
29
|
+
arrow_open_head: 4,
|
|
30
|
+
arrow_hollow_circle: 8
|
|
29
31
|
};
|
|
30
|
-
function
|
|
32
|
+
function E(e, t) {
|
|
31
33
|
if (e === void 0 || t === void 0) return {
|
|
32
34
|
angle: 0,
|
|
33
35
|
deltaX: 0,
|
|
34
36
|
deltaY: 0
|
|
35
37
|
};
|
|
36
|
-
e =
|
|
38
|
+
e = D(e), t = D(t);
|
|
37
39
|
let [n, r] = [e.x, e.y], [i, a] = [t.x, t.y], o = i - n, s = a - r;
|
|
38
40
|
return {
|
|
39
41
|
angle: Math.atan(s / o),
|
|
@@ -41,21 +43,21 @@ function k(e, t) {
|
|
|
41
43
|
deltaY: s
|
|
42
44
|
};
|
|
43
45
|
}
|
|
44
|
-
e(
|
|
45
|
-
var
|
|
46
|
+
e(E, "calculateDeltaAndAngle");
|
|
47
|
+
var D = /* @__PURE__ */ e((e) => Array.isArray(e) ? {
|
|
46
48
|
x: e[0],
|
|
47
49
|
y: e[1]
|
|
48
|
-
} : e, "pointTransformer"),
|
|
50
|
+
} : e, "pointTransformer"), ce = /* @__PURE__ */ e((t) => ({
|
|
49
51
|
x: /* @__PURE__ */ e(function(e, n, r) {
|
|
50
|
-
let i = 0, a =
|
|
51
|
-
if (n === 0 && Object.hasOwn(
|
|
52
|
-
let { angle: e, deltaX: n } =
|
|
53
|
-
i =
|
|
54
|
-
} else if (n === r.length - 1 && Object.hasOwn(
|
|
55
|
-
let { angle: e, deltaX: n } =
|
|
56
|
-
i =
|
|
52
|
+
let i = 0, a = D(r[0]).x < D(r[r.length - 1]).x ? "left" : "right";
|
|
53
|
+
if (n === 0 && Object.hasOwn(w, t.arrowTypeStart)) {
|
|
54
|
+
let { angle: e, deltaX: n } = E(r[0], r[1]);
|
|
55
|
+
i = w[t.arrowTypeStart] * Math.cos(e) * (n >= 0 ? 1 : -1);
|
|
56
|
+
} else if (n === r.length - 1 && Object.hasOwn(w, t.arrowTypeEnd)) {
|
|
57
|
+
let { angle: e, deltaX: n } = E(r[r.length - 1], r[r.length - 2]);
|
|
58
|
+
i = w[t.arrowTypeEnd] * Math.cos(e) * (n >= 0 ? 1 : -1);
|
|
57
59
|
}
|
|
58
|
-
let o = Math.abs(
|
|
60
|
+
let o = Math.abs(D(e).x - D(r[r.length - 1]).x), s = Math.abs(D(e).y - D(r[r.length - 1]).y), c = Math.abs(D(e).x - D(r[0]).x), l = Math.abs(D(e).y - D(r[0]).y), u = w[t.arrowTypeStart], d = w[t.arrowTypeEnd];
|
|
59
61
|
if (o < d && o > 0 && s < d) {
|
|
60
62
|
let e = d + 1 - o;
|
|
61
63
|
e *= a === "right" ? -1 : 1, i -= e;
|
|
@@ -64,18 +66,18 @@ var A = /* @__PURE__ */ e((e) => Array.isArray(e) ? {
|
|
|
64
66
|
let e = u + 1 - c;
|
|
65
67
|
e *= a === "right" ? -1 : 1, i += e;
|
|
66
68
|
}
|
|
67
|
-
return
|
|
69
|
+
return D(e).x + i;
|
|
68
70
|
}, "x"),
|
|
69
71
|
y: /* @__PURE__ */ e(function(e, n, r) {
|
|
70
|
-
let i = 0, a =
|
|
71
|
-
if (n === 0 && Object.hasOwn(
|
|
72
|
-
let { angle: e, deltaY: n } =
|
|
73
|
-
i =
|
|
74
|
-
} else if (n === r.length - 1 && Object.hasOwn(
|
|
75
|
-
let { angle: e, deltaY: n } =
|
|
76
|
-
i =
|
|
72
|
+
let i = 0, a = D(r[0]).y < D(r[r.length - 1]).y ? "down" : "up";
|
|
73
|
+
if (n === 0 && Object.hasOwn(w, t.arrowTypeStart)) {
|
|
74
|
+
let { angle: e, deltaY: n } = E(r[0], r[1]);
|
|
75
|
+
i = w[t.arrowTypeStart] * Math.abs(Math.sin(e)) * (n >= 0 ? 1 : -1);
|
|
76
|
+
} else if (n === r.length - 1 && Object.hasOwn(w, t.arrowTypeEnd)) {
|
|
77
|
+
let { angle: e, deltaY: n } = E(r[r.length - 1], r[r.length - 2]);
|
|
78
|
+
i = w[t.arrowTypeEnd] * Math.abs(Math.sin(e)) * (n >= 0 ? 1 : -1);
|
|
77
79
|
}
|
|
78
|
-
let o = Math.abs(
|
|
80
|
+
let o = Math.abs(D(e).y - D(r[r.length - 1]).y), s = Math.abs(D(e).x - D(r[r.length - 1]).x), c = Math.abs(D(e).y - D(r[0]).y), l = Math.abs(D(e).x - D(r[0]).x), u = w[t.arrowTypeStart], d = w[t.arrowTypeEnd];
|
|
79
81
|
if (o < d && o > 0 && s < d) {
|
|
80
82
|
let e = d + 1 - o;
|
|
81
83
|
e *= a === "up" ? -1 : 1, i -= e;
|
|
@@ -84,11 +86,243 @@ var A = /* @__PURE__ */ e((e) => Array.isArray(e) ? {
|
|
|
84
86
|
let e = u + 1 - c;
|
|
85
87
|
e *= a === "up" ? -1 : 1, i += e;
|
|
86
88
|
}
|
|
87
|
-
return
|
|
89
|
+
return D(e).y + i;
|
|
88
90
|
}, "y")
|
|
89
|
-
}), "getLineFunctionsWithOffset"),
|
|
90
|
-
|
|
91
|
-
|
|
91
|
+
}), "getLineFunctionsWithOffset"), O = 1, k = /* @__PURE__ */ e((e) => typeof e == "number" && Number.isFinite(e) && e > 0 ? e : O, "getStepDuration"), A = /* @__PURE__ */ e((e) => typeof e.step == "number" && Number.isInteger(e.step) && e.step > 0, "isStepEdge"), j = [
|
|
92
|
+
.25,
|
|
93
|
+
.35,
|
|
94
|
+
.15,
|
|
95
|
+
.65,
|
|
96
|
+
.75,
|
|
97
|
+
.5,
|
|
98
|
+
.85,
|
|
99
|
+
.1,
|
|
100
|
+
.9
|
|
101
|
+
], M = 9, N = 11, le = 2, ue = "#333333", P = 12, F = 6, I = 14, L = .01, R = 4.5, z = /translate\(\s*(-?[\d.e]+)[\s,]+(-?[\d.e]+)/i, B = 4, V = .6, H = 4, de = /* @__PURE__ */ e((e, t, n = O) => {
|
|
102
|
+
let r = Math.max(t, e);
|
|
103
|
+
return {
|
|
104
|
+
begin: (e - 1) * n,
|
|
105
|
+
dur: n,
|
|
106
|
+
gap: (r - 1) * n
|
|
107
|
+
};
|
|
108
|
+
}, "getEdgeStepTiming"), fe = /* @__PURE__ */ e((e) => `step_${Array.from(e, (e) => /[\dA-Za-z]/.test(e) ? e : `_${(e.codePointAt(0) ?? 0).toString(16)}_`).join("")}`, "toAnimationId"), pe = /* @__PURE__ */ e((e) => {
|
|
109
|
+
let t = /^m\s*(-?[\d.e]+)[\s,]+(-?[\d.e]+)/i.exec(e.trim());
|
|
110
|
+
return t ? `translate(${t[1]},${t[2]}) ` : "";
|
|
111
|
+
}, "pathStartTranslate"), U = /* @__PURE__ */ e((e) => Array.from(e, (t, n) => {
|
|
112
|
+
let r = t.codePointAt(0) ?? 0;
|
|
113
|
+
if (r === 0) return "�";
|
|
114
|
+
let i = r <= 31 || r === 127, a = /\d/.test(t) && (n === 0 || n === 1 && e.startsWith("-"));
|
|
115
|
+
return i || a ? `\\${r.toString(16)} ` : e === "-" ? "\\-" : r >= 128 || /[\w-]/.test(t) ? t : `\\${t}`;
|
|
116
|
+
}).join(""), "escapeCssIdentifierFallback"), me = /* @__PURE__ */ e((e) => typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(e) : U(e), "escapeCssIdentifier"), he = /* @__PURE__ */ e((e, t) => {
|
|
117
|
+
let n = e.node(), r = n?.ownerSVGElement ?? n?.closest?.("svg") ?? n, i = t || r?.getAttribute("id");
|
|
118
|
+
if (!r || !i || r.querySelector("style.edge-step-style")) return;
|
|
119
|
+
let a = `#${me(i)} `, o = r.ownerDocument.createElementNS("http://www.w3.org/2000/svg", "style");
|
|
120
|
+
o.setAttribute("class", "edge-step-style"), o.textContent = `@media (prefers-reduced-motion: reduce) { ${a}.edge-step-dot, ${a}.edge-step-highlight { display: none; } }`, r.appendChild(o);
|
|
121
|
+
}, "ensureReducedMotionStyle"), ge = /* @__PURE__ */ e((e, t) => {
|
|
122
|
+
let n = e.filter((e) => Number.isFinite(e.x) && Number.isFinite(e.y));
|
|
123
|
+
if (n.length === 0) return;
|
|
124
|
+
let r = n.slice(1).map((e, t) => Math.hypot(e.x - n[t].x, e.y - n[t].y)), i = r.reduce((e, t) => e + t, 0) * t;
|
|
125
|
+
for (let [e, t] of r.entries()) {
|
|
126
|
+
if (i <= t && t > 0) {
|
|
127
|
+
let r = i / t, a = n[e], o = n[e + 1];
|
|
128
|
+
return {
|
|
129
|
+
x: a.x + (o.x - a.x) * r,
|
|
130
|
+
y: a.y + (o.y - a.y) * r
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
i -= t;
|
|
134
|
+
}
|
|
135
|
+
return n[n.length - 1];
|
|
136
|
+
}, "pointAlongPolyline"), _e = /* @__PURE__ */ e((e, t) => {
|
|
137
|
+
let n = typeof t?.getTotalLength == "function" ? t.getTotalLength() : 0, r = t?.getPointAtLength?.bind(t);
|
|
138
|
+
return n > 0 && r ? (e) => {
|
|
139
|
+
let { x: t, y: i } = r(n * e);
|
|
140
|
+
return {
|
|
141
|
+
x: t,
|
|
142
|
+
y: i
|
|
143
|
+
};
|
|
144
|
+
} : (t) => ge(e, t);
|
|
145
|
+
}, "createPathSampler"), ve = /* @__PURE__ */ e((e, t) => Math.min(Infinity, ...t.map((t) => {
|
|
146
|
+
let n = Math.max(Math.abs(e.x - t.x) - t.halfWidth, 0), r = Math.max(Math.abs(e.y - t.y) - t.halfHeight, 0);
|
|
147
|
+
return Math.hypot(n, r) - M;
|
|
148
|
+
})), "roomAround"), ye = /* @__PURE__ */ e((e, t) => {
|
|
149
|
+
let n = e(t), r = e(Math.max(t - L, 0)), i = e(Math.min(t + L, 1));
|
|
150
|
+
if (!n || !r || !i) return [];
|
|
151
|
+
let a = Math.hypot(i.x - r.x, i.y - r.y);
|
|
152
|
+
if (a === 0) return [];
|
|
153
|
+
let o = {
|
|
154
|
+
x: -(i.y - r.y) / a,
|
|
155
|
+
y: (i.x - r.x) / a
|
|
156
|
+
};
|
|
157
|
+
return [1, -1].map((e) => ({
|
|
158
|
+
x: n.x + o.x * I * e,
|
|
159
|
+
y: n.y + o.y * I * e
|
|
160
|
+
}));
|
|
161
|
+
}, "besideThePath"), be = /* @__PURE__ */ e((e, t) => {
|
|
162
|
+
let n = [...j.map(e), ...j.flatMap((t) => ye(e, t))], r, i = -Infinity;
|
|
163
|
+
for (let e of n) {
|
|
164
|
+
if (!e || !Number.isFinite(e.x) || !Number.isFinite(e.y)) continue;
|
|
165
|
+
let n = ve(e, t);
|
|
166
|
+
if (n >= le) return e;
|
|
167
|
+
n > i && (r = e, i = n);
|
|
168
|
+
}
|
|
169
|
+
return r;
|
|
170
|
+
}, "chooseBadgePosition"), xe = /* @__PURE__ */ e((e, t) => ({
|
|
171
|
+
...e,
|
|
172
|
+
halfWidth: t,
|
|
173
|
+
halfHeight: t
|
|
174
|
+
}), "square"), Se = /* @__PURE__ */ e((e) => {
|
|
175
|
+
let t = z.exec(e.getAttribute("transform") ?? "");
|
|
176
|
+
return t ? {
|
|
177
|
+
x: Number(t[1]),
|
|
178
|
+
y: Number(t[2])
|
|
179
|
+
} : {
|
|
180
|
+
x: 0,
|
|
181
|
+
y: 0
|
|
182
|
+
};
|
|
183
|
+
}, "translationOf"), W = /* @__PURE__ */ e((e) => {
|
|
184
|
+
let t = {
|
|
185
|
+
x: 0,
|
|
186
|
+
y: 0
|
|
187
|
+
};
|
|
188
|
+
for (let n = e; n && n.localName !== "svg"; n = n.parentElement) {
|
|
189
|
+
let { x: e, y: r } = Se(n);
|
|
190
|
+
t.x += e, t.y += r;
|
|
191
|
+
}
|
|
192
|
+
return t;
|
|
193
|
+
}, "offsetInSvg"), Ce = /* @__PURE__ */ e((e, t) => {
|
|
194
|
+
if (!z.test(e.getAttribute("transform") ?? "")) return;
|
|
195
|
+
let n = W(e), r = n.x - t.x, i = n.y - t.y, a = e.getBBox?.();
|
|
196
|
+
if (a) return {
|
|
197
|
+
x: r + a.x + a.width / 2,
|
|
198
|
+
y: i + a.y + a.height / 2,
|
|
199
|
+
halfWidth: a.width / 2,
|
|
200
|
+
halfHeight: a.height / 2
|
|
201
|
+
};
|
|
202
|
+
}, "boxedObstacle"), we = /* @__PURE__ */ e((e) => {
|
|
203
|
+
try {
|
|
204
|
+
let t = JSON.parse(atob(e.getAttribute("data-points") ?? ""));
|
|
205
|
+
return Array.isArray(t) ? t : [];
|
|
206
|
+
} catch {
|
|
207
|
+
return [];
|
|
208
|
+
}
|
|
209
|
+
}, "readPoints"), Te = /* @__PURE__ */ e((e, t) => {
|
|
210
|
+
let n = Math.hypot(e.x - t.x, e.y - t.y);
|
|
211
|
+
if (n === 0) return xe(e, P);
|
|
212
|
+
let r = {
|
|
213
|
+
x: (e.x - t.x) / n,
|
|
214
|
+
y: (e.y - t.y) / n
|
|
215
|
+
}, i = P / 2;
|
|
216
|
+
return {
|
|
217
|
+
x: e.x - r.x * i,
|
|
218
|
+
y: e.y - r.y * i,
|
|
219
|
+
halfWidth: Math.abs(r.x) * i + Math.abs(r.y) * F,
|
|
220
|
+
halfHeight: Math.abs(r.y) * i + Math.abs(r.x) * F
|
|
221
|
+
};
|
|
222
|
+
}, "arrowheadObstacle"), Ee = /* @__PURE__ */ e((e, t) => {
|
|
223
|
+
let n = e.getAttribute(t);
|
|
224
|
+
return !!n && n !== "none";
|
|
225
|
+
}, "hasMarker"), De = /* @__PURE__ */ e((t, n) => {
|
|
226
|
+
let r = we(t).filter((e) => Number.isFinite(e?.x) && Number.isFinite(e?.y));
|
|
227
|
+
if (r.length === 0) return [];
|
|
228
|
+
let i = W(t), a = /* @__PURE__ */ e((e) => ({
|
|
229
|
+
x: e.x + i.x - n.x,
|
|
230
|
+
y: e.y + i.y - n.y
|
|
231
|
+
}), "toSvg"), o = r.length - 1, s = [];
|
|
232
|
+
return Ee(t, "marker-start") && s.push(Te(a(r[0]), a(r[Math.min(1, o)]))), Ee(t, "marker-end") && s.push(Te(a(r[o]), a(r[Math.max(o - 1, 0)]))), s;
|
|
233
|
+
}, "arrowheadObstacles"), Oe = /* @__PURE__ */ e((e) => {
|
|
234
|
+
let t = {
|
|
235
|
+
x: 0,
|
|
236
|
+
y: 0
|
|
237
|
+
}, n = [...e?.querySelectorAll(".edgeLabel, .node") ?? []].map((e) => Ce(e, t)).filter((e) => e !== void 0), r = [...e?.querySelectorAll("path[data-edge=\"true\"]") ?? []].flatMap((e) => De(e, t));
|
|
238
|
+
return [...n, ...r];
|
|
239
|
+
}, "collectBadgeObstacles"), ke = /* @__PURE__ */ e((e, t) => {
|
|
240
|
+
if (!e.label || t.length === 0) return [];
|
|
241
|
+
let { x: n, y: r } = m.calcLabelPosition(t);
|
|
242
|
+
return [{
|
|
243
|
+
x: n,
|
|
244
|
+
y: r,
|
|
245
|
+
halfWidth: (e.width ?? 0) / 2,
|
|
246
|
+
halfHeight: (e.height ?? 0) / 2
|
|
247
|
+
}];
|
|
248
|
+
}, "edgeLabelObstacles"), Ae = /* @__PURE__ */ e((e) => {
|
|
249
|
+
let t = e / 255;
|
|
250
|
+
return t <= .03928 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
|
|
251
|
+
}, "linearChannel"), je = /* @__PURE__ */ e((e) => {
|
|
252
|
+
try {
|
|
253
|
+
let [t, n, r] = [
|
|
254
|
+
"r",
|
|
255
|
+
"g",
|
|
256
|
+
"b"
|
|
257
|
+
].map((t) => Ae(S(e, t)));
|
|
258
|
+
return .2126 * t + .7152 * n + .0722 * r;
|
|
259
|
+
} catch {
|
|
260
|
+
return;
|
|
261
|
+
}
|
|
262
|
+
}, "relativeLuminance"), Me = /* @__PURE__ */ e((e, t) => {
|
|
263
|
+
let n = je(e), r = je(t);
|
|
264
|
+
return n === void 0 || r === void 0 ? 0 : (Math.max(n, r) + .05) / (Math.min(n, r) + .05);
|
|
265
|
+
}, "contrastRatio"), Ne = /* @__PURE__ */ e((e, t) => {
|
|
266
|
+
let n = [
|
|
267
|
+
...t.filter((e) => !!e),
|
|
268
|
+
"#ffffff",
|
|
269
|
+
"#000000"
|
|
270
|
+
].map((t) => ({
|
|
271
|
+
color: t,
|
|
272
|
+
ratio: Me(e, t)
|
|
273
|
+
}));
|
|
274
|
+
return (n.find(({ ratio: e }) => e >= R) ?? n.reduce((e, t) => t.ratio > e.ratio ? t : e)).color;
|
|
275
|
+
}, "pickBadgeTextColor"), Pe = /* @__PURE__ */ e((e) => {
|
|
276
|
+
let t = e?.replace(/^stroke:\s*/, "").trim();
|
|
277
|
+
return t === "" ? void 0 : t;
|
|
278
|
+
}, "bareColor"), Fe = /* @__PURE__ */ e((e, t, n, r = Oe(e.node()?.closest("svg"))) => {
|
|
279
|
+
if (!A(t) || !t.showStepNumber) return;
|
|
280
|
+
let i = W(e.node()), a = r.map((e) => ({
|
|
281
|
+
...e,
|
|
282
|
+
x: e.x - i.x,
|
|
283
|
+
y: e.y - i.y
|
|
284
|
+
})), o = be(_e(n.points, n.pathNode), [...a, ...ke(t, n.points)]);
|
|
285
|
+
if (!o) return;
|
|
286
|
+
let s = Pe(n.color) ?? ue, c = e.append("g").attr("class", "edge-step-badge").attr("transform", `translate(${o.x},${o.y})`).attr("pointer-events", "none").attr("data-step", t.step);
|
|
287
|
+
return c.append("circle").attr("r", M).attr("fill", s), c.append("text").attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-size", N).attr("fill", Ne(s, n.textColors ?? [])).text(String(t.step)), xe({
|
|
288
|
+
x: o.x + i.x,
|
|
289
|
+
y: o.y + i.y
|
|
290
|
+
}, M);
|
|
291
|
+
}, "insertEdgeStepBadge"), Ie = /* @__PURE__ */ e((e, t, n) => {
|
|
292
|
+
e.append("animateTransform").attr("attributeName", "transform").attr("type", "scale").attr("values", "1;1").attr("dur", `${n}s`).attr("begin", `${t}.begin`).attr("fill", "remove");
|
|
293
|
+
}, "showWhileStepPlays"), Le = /* @__PURE__ */ e((e, t, n, r, i) => {
|
|
294
|
+
if (!A(t) || !n) return;
|
|
295
|
+
let { begin: a, dur: o, gap: s } = de(t.step, t.stepCount ?? t.step, k(t.stepDuration)), c = fe(`${r}-${t.id}-step`), l = `${pe(n)}scale(0)`, u = i?.replace(/^stroke:\s*/, "");
|
|
296
|
+
Ie(e.append("path").attr("class", "edge-step-highlight").attr("aria-hidden", "true").attr("d", n).attr("fill", "none").attr("stroke", u ?? "currentColor").attr("stroke-width", B).attr("stroke-linecap", "round").attr("stroke-opacity", V).attr("pointer-events", "none").attr("transform", l).attr("data-step", t.step), c, o);
|
|
297
|
+
let d = e.append("circle").attr("class", "edge-step-dot").attr("r", H).attr("aria-hidden", "true").attr("transform", l).attr("data-step", t.step);
|
|
298
|
+
u && d.attr("fill", u).attr("stroke", "none"), d.append("animateMotion").attr("id", c).attr("path", n).attr("dur", `${o}s`).attr("begin", `${a}s;${c}.end+${s}s`).attr("fill", "remove"), Ie(d, c, o), he(e, r);
|
|
299
|
+
}, "insertEdgeStepDot"), G = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ e((e) => {
|
|
300
|
+
let t = e.querySelector(":scope > g.edge-step-badges");
|
|
301
|
+
if (t) return t;
|
|
302
|
+
let n = e.ownerDocument.createElementNS("http://www.w3.org/2000/svg", "g");
|
|
303
|
+
return n.setAttribute("class", "edge-step-badges"), e.appendChild(n);
|
|
304
|
+
}, "badgeLayer"), ze = /* @__PURE__ */ e((e) => {
|
|
305
|
+
let t = e ? G.get(e) : void 0;
|
|
306
|
+
if (!e || !t) return;
|
|
307
|
+
G.delete(e);
|
|
308
|
+
let r = Oe(e);
|
|
309
|
+
for (let { elem: e, edge: i, options: a } of t) {
|
|
310
|
+
let t = e.node()?.parentElement;
|
|
311
|
+
if (!t) continue;
|
|
312
|
+
let o = Fe(n(Re(t)), i, a, r);
|
|
313
|
+
o && r.push(o);
|
|
314
|
+
}
|
|
315
|
+
}, "placeQueuedStepBadges"), Be = /* @__PURE__ */ e((e, t, n, r, i) => {
|
|
316
|
+
Le(e, t, n, r, i.color);
|
|
317
|
+
let a = e.node(), o = a?.ownerSVGElement ?? a;
|
|
318
|
+
o && A(t) && t.showStepNumber && G.set(o, [...G.get(o) ?? [], {
|
|
319
|
+
elem: e,
|
|
320
|
+
edge: t,
|
|
321
|
+
options: i
|
|
322
|
+
}]);
|
|
323
|
+
}, "insertEdgeStepMarks"), Ve = /* @__PURE__ */ e((e, t, n, r, i, a = !1, o) => {
|
|
324
|
+
t.arrowTypeStart && We(e, "start", t.arrowTypeStart, n, r, i, a, o), t.arrowTypeEnd && We(e, "end", t.arrowTypeEnd, n, r, i, a, o);
|
|
325
|
+
}, "addEdgeMarkers"), He = {
|
|
92
326
|
arrow_cross: {
|
|
93
327
|
type: "cross",
|
|
94
328
|
fill: !1
|
|
@@ -109,6 +343,14 @@ var A = /* @__PURE__ */ e((e) => Array.isArray(e) ? {
|
|
|
109
343
|
type: "circle",
|
|
110
344
|
fill: !1
|
|
111
345
|
},
|
|
346
|
+
arrow_open_head: {
|
|
347
|
+
type: "openArrow",
|
|
348
|
+
fill: !1
|
|
349
|
+
},
|
|
350
|
+
arrow_hollow_circle: {
|
|
351
|
+
type: "hollowCircle",
|
|
352
|
+
fill: !1
|
|
353
|
+
},
|
|
112
354
|
arrow_hierarchy: {
|
|
113
355
|
type: "hierarchy",
|
|
114
356
|
fill: !1
|
|
@@ -157,7 +399,7 @@ var A = /* @__PURE__ */ e((e) => Array.isArray(e) ? {
|
|
|
157
399
|
type: "requirement_contains",
|
|
158
400
|
fill: !1
|
|
159
401
|
}
|
|
160
|
-
},
|
|
402
|
+
}, Ue = [
|
|
161
403
|
"cross",
|
|
162
404
|
"point",
|
|
163
405
|
"circle",
|
|
@@ -167,9 +409,9 @@ var A = /* @__PURE__ */ e((e) => Array.isArray(e) ? {
|
|
|
167
409
|
"composition",
|
|
168
410
|
"dependency",
|
|
169
411
|
"barb"
|
|
170
|
-
],
|
|
412
|
+
], We = /* @__PURE__ */ e((e, n, r, i, a, o, s = !1, c) => {
|
|
171
413
|
if (!r || r === "none") return;
|
|
172
|
-
let l =
|
|
414
|
+
let l = He[r], u = l && Ue.includes(l.type);
|
|
173
415
|
if (!l) {
|
|
174
416
|
t.warn(`Unknown arrow type: ${r}`);
|
|
175
417
|
return;
|
|
@@ -188,91 +430,91 @@ var A = /* @__PURE__ */ e((e) => Array.isArray(e) ? {
|
|
|
188
430
|
}
|
|
189
431
|
e.attr(`marker-${n}`, `url(${i}#${t})`);
|
|
190
432
|
} else e.attr(`marker-${n}`, `url(${i}#${d})`);
|
|
191
|
-
}, "addEdgeMarker"),
|
|
192
|
-
|
|
193
|
-
}, "clear"),
|
|
194
|
-
let
|
|
195
|
-
|
|
196
|
-
let l = e.insert("g").attr("class", "edgeLabel"), u = l.insert("g").attr("class", "label").attr("data-id",
|
|
197
|
-
style:
|
|
433
|
+
}, "addEdgeMarker"), Ge = /* @__PURE__ */ e((e) => typeof e == "string" ? e : r()?.flowchart?.curve, "resolveEdgeCurveType"), K = /* @__PURE__ */ new Map(), q = /* @__PURE__ */ new Map(), Ke = /* @__PURE__ */ e(() => {
|
|
434
|
+
K.clear(), q.clear();
|
|
435
|
+
}, "clear"), qe = /* @__PURE__ */ e((e) => !!(e.label || e.startLabelLeft || e.startLabelRight || e.endLabelLeft || e.endLabelRight), "hasEdgeLabel"), J = /* @__PURE__ */ e((e) => e ? typeof e == "string" ? e : e.reduce((e, t) => e + ";" + t, "") : "", "getLabelStyles"), Je = /* @__PURE__ */ e(async (e, i) => {
|
|
436
|
+
let a = r(), s = o(a), { labelStyles: c } = b(i);
|
|
437
|
+
i.labelStyle = c;
|
|
438
|
+
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 ie(e, i.label, {
|
|
439
|
+
style: J(i.labelStyle),
|
|
198
440
|
useHtmlLabels: s,
|
|
199
441
|
addSvgBackground: !0,
|
|
200
442
|
isNode: !1,
|
|
201
443
|
markdown: d,
|
|
202
444
|
width: void 0
|
|
203
|
-
},
|
|
204
|
-
u.node().appendChild(f), t.info("abc82",
|
|
445
|
+
}, a);
|
|
446
|
+
u.node().appendChild(f), t.info("abc82", i, i.labelType);
|
|
205
447
|
let p, m;
|
|
206
448
|
if (s) {
|
|
207
449
|
let e = f.children[0], t = n(f);
|
|
208
|
-
p = await
|
|
450
|
+
p = await y.measure(() => e.getBoundingClientRect()), m = p, t.attr("width", p.width), t.attr("height", p.height);
|
|
209
451
|
} else {
|
|
210
452
|
let e = n(f).select("text").node();
|
|
211
|
-
await
|
|
453
|
+
await y.measure(() => {
|
|
212
454
|
p = f.getBBox(), m = e && typeof e.getBBox == "function" ? e.getBBox() : p;
|
|
213
455
|
});
|
|
214
456
|
}
|
|
215
|
-
u.attr("transform",
|
|
457
|
+
u.attr("transform", C(m, s)), K.set(i.id, l), i.width = p.width, i.height = p.height;
|
|
216
458
|
let h;
|
|
217
|
-
if (
|
|
218
|
-
let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"),
|
|
219
|
-
h =
|
|
220
|
-
let o =
|
|
459
|
+
if (i.startLabelLeft) {
|
|
460
|
+
let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"), a = await x(r, i.startLabelLeft, J(i.labelStyle) || "", !1, !1);
|
|
461
|
+
h = a;
|
|
462
|
+
let o = a.getBBox();
|
|
221
463
|
if (s) {
|
|
222
|
-
let e =
|
|
464
|
+
let e = a.children[0], t = n(a);
|
|
223
465
|
o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
|
|
224
466
|
}
|
|
225
|
-
r.attr("transform",
|
|
467
|
+
r.attr("transform", C(o, s)), q.get(i.id) || q.set(i.id, {}), q.get(i.id).startLeft = t, X(h, i.startLabelLeft, o), Y(i, "startLeft", o);
|
|
226
468
|
}
|
|
227
|
-
if (
|
|
228
|
-
let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"),
|
|
229
|
-
h =
|
|
230
|
-
let o =
|
|
469
|
+
if (i.startLabelRight) {
|
|
470
|
+
let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"), a = await x(r, i.startLabelRight, J(i.labelStyle) || "", !1, !1);
|
|
471
|
+
h = a;
|
|
472
|
+
let o = a.getBBox();
|
|
231
473
|
if (s) {
|
|
232
|
-
let e =
|
|
474
|
+
let e = a.children[0], t = n(a);
|
|
233
475
|
o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
|
|
234
476
|
}
|
|
235
|
-
r.attr("transform",
|
|
477
|
+
r.attr("transform", C(o, s)), q.get(i.id) || q.set(i.id, {}), q.get(i.id).startRight = t, X(h, i.startLabelRight, o), Y(i, "startRight", o);
|
|
236
478
|
}
|
|
237
|
-
if (
|
|
238
|
-
let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"),
|
|
239
|
-
h =
|
|
240
|
-
let o =
|
|
479
|
+
if (i.endLabelLeft) {
|
|
480
|
+
let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"), a = await x(r, i.endLabelLeft, J(i.labelStyle) || "", !1, !1);
|
|
481
|
+
h = a;
|
|
482
|
+
let o = a.getBBox();
|
|
241
483
|
if (s) {
|
|
242
|
-
let e =
|
|
484
|
+
let e = a.children[0], t = n(a);
|
|
243
485
|
o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
|
|
244
486
|
}
|
|
245
|
-
r.attr("transform",
|
|
487
|
+
r.attr("transform", C(o, s)), q.get(i.id) || q.set(i.id, {}), q.get(i.id).endLeft = t, X(h, i.endLabelLeft, o), Y(i, "endLeft", o);
|
|
246
488
|
}
|
|
247
|
-
if (
|
|
248
|
-
let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"),
|
|
249
|
-
h =
|
|
250
|
-
let o =
|
|
489
|
+
if (i.endLabelRight) {
|
|
490
|
+
let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"), a = await x(r, i.endLabelRight, J(i.labelStyle) || "", !1, !1);
|
|
491
|
+
h = a;
|
|
492
|
+
let o = a.getBBox();
|
|
251
493
|
if (s) {
|
|
252
|
-
let e =
|
|
494
|
+
let e = a.children[0], t = n(a);
|
|
253
495
|
o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
|
|
254
496
|
}
|
|
255
|
-
r.attr("transform",
|
|
497
|
+
r.attr("transform", C(o, s)), q.get(i.id) || q.set(i.id, {}), q.get(i.id).endRight = t, X(h, i.endLabelRight, o), Y(i, "endRight", o);
|
|
256
498
|
}
|
|
257
499
|
return f;
|
|
258
500
|
}, "insertEdgeLabel");
|
|
259
|
-
function
|
|
501
|
+
function Y(e, t, n) {
|
|
260
502
|
e.terminalLabelSizes ??= {}, e.terminalLabelSizes[t] = {
|
|
261
503
|
width: n.width,
|
|
262
504
|
height: n.height
|
|
263
505
|
};
|
|
264
506
|
}
|
|
265
|
-
e(
|
|
266
|
-
function
|
|
267
|
-
|
|
507
|
+
e(Y, "recordTerminalLabelSize");
|
|
508
|
+
function X(e, t, n) {
|
|
509
|
+
o(r()) && e && (e.style.width = Math.max(t.length * 9, n.width) + "px", e.style.height = n.height + "px");
|
|
268
510
|
}
|
|
269
|
-
e(
|
|
270
|
-
var
|
|
511
|
+
e(X, "setTerminalWidth");
|
|
512
|
+
var Ye = /* @__PURE__ */ e((e, t) => {
|
|
271
513
|
let n = e.x, r = e.y;
|
|
272
514
|
if (t?.updatedPath) {
|
|
273
|
-
let i =
|
|
515
|
+
let i = m.calcLabelPosition(t.updatedPath);
|
|
274
516
|
if (t.originalPath) {
|
|
275
|
-
let a =
|
|
517
|
+
let a = m.calcLabelPosition(t.originalPath);
|
|
276
518
|
n = e.x + (i.x - a.x), r = e.y + (i.y - a.y);
|
|
277
519
|
} else n = i.x, r = i.y;
|
|
278
520
|
}
|
|
@@ -280,47 +522,92 @@ var V = /* @__PURE__ */ e((e, t) => {
|
|
|
280
522
|
x: n,
|
|
281
523
|
y: r
|
|
282
524
|
};
|
|
283
|
-
}, "resolveEdgeLabelPosition"),
|
|
284
|
-
t.debug("Moving label abc88 ", e.id, e.label,
|
|
285
|
-
let i = r(), { subGraphTitleTotalMargin: a } =
|
|
525
|
+
}, "resolveEdgeLabelPosition"), Xe = /* @__PURE__ */ e((e, n) => {
|
|
526
|
+
t.debug("Moving label abc88 ", e.id, e.label, K.get(e.id), n);
|
|
527
|
+
let i = r(), { subGraphTitleTotalMargin: a } = se(i);
|
|
286
528
|
if (e.label) {
|
|
287
|
-
let r =
|
|
529
|
+
let r = K.get(e.id), { x: i, y: o } = Ye(e, n);
|
|
288
530
|
t.debug("Moving label " + e.label + " from (", e.x, ",", e.y, ") to (", i, ",", o, ") abc88"), r.attr("transform", `translate(${i}, ${o + a / 2})`);
|
|
289
531
|
}
|
|
290
532
|
let o = n.updatedPath ? n.updatedPath : n.originalPath;
|
|
291
533
|
if (e.startLabelLeft) {
|
|
292
|
-
let t =
|
|
534
|
+
let t = q.get(e.id).startLeft, n = e.x, r = e.y;
|
|
293
535
|
if (o) {
|
|
294
|
-
let t =
|
|
536
|
+
let t = m.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", o);
|
|
295
537
|
n = t.x, r = t.y;
|
|
296
538
|
}
|
|
297
539
|
t.attr("transform", `translate(${n}, ${r})`);
|
|
298
540
|
}
|
|
299
541
|
if (e.startLabelRight) {
|
|
300
|
-
let t =
|
|
542
|
+
let t = q.get(e.id).startRight, n = e.x, r = e.y;
|
|
301
543
|
if (o) {
|
|
302
|
-
let t =
|
|
544
|
+
let t = m.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", o);
|
|
303
545
|
n = t.x, r = t.y;
|
|
304
546
|
}
|
|
305
547
|
t.attr("transform", `translate(${n}, ${r})`);
|
|
306
548
|
}
|
|
307
549
|
if (e.endLabelLeft) {
|
|
308
|
-
let t =
|
|
550
|
+
let t = q.get(e.id).endLeft, n = e.x, r = e.y;
|
|
309
551
|
if (o) {
|
|
310
|
-
let t =
|
|
552
|
+
let t = m.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", o);
|
|
311
553
|
n = t.x, r = t.y;
|
|
312
554
|
}
|
|
313
555
|
t.attr("transform", `translate(${n}, ${r})`);
|
|
314
556
|
}
|
|
315
557
|
if (e.endLabelRight) {
|
|
316
|
-
let t =
|
|
558
|
+
let t = q.get(e.id).endRight, n = e.x, r = e.y;
|
|
317
559
|
if (o) {
|
|
318
|
-
let t =
|
|
560
|
+
let t = m.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", o);
|
|
319
561
|
n = t.x, r = t.y;
|
|
320
562
|
}
|
|
321
563
|
t.attr("transform", `translate(${n}, ${r})`);
|
|
322
564
|
}
|
|
323
|
-
}, "positionEdgeLabel"),
|
|
565
|
+
}, "positionEdgeLabel"), Z = .5, Q = /* @__PURE__ */ e((e, t) => Math.abs(e.x - t.x) < Z, "sharesColumn"), $ = /* @__PURE__ */ e((e, t) => Math.abs(e.y - t.y) < Z, "sharesRow"), Ze = /* @__PURE__ */ e((e, t) => Q(e, t) && $(e, t), "coincides");
|
|
566
|
+
function Qe(e, t, n) {
|
|
567
|
+
return Q(e, t) && !$(e, t) ? Q(n, t) : $(e, t) && !Q(e, t) ? $(n, t) : Q(n, t) || $(n, t);
|
|
568
|
+
}
|
|
569
|
+
e(Qe, "keepsArrivalAxis");
|
|
570
|
+
function $e(e, t, n) {
|
|
571
|
+
return Ze(e, t) ? {
|
|
572
|
+
heading: t,
|
|
573
|
+
from: n
|
|
574
|
+
} : {
|
|
575
|
+
heading: e,
|
|
576
|
+
from: t
|
|
577
|
+
};
|
|
578
|
+
}
|
|
579
|
+
e($e, "arrivalSegment");
|
|
580
|
+
function et({ heading: e, from: t }, n, r) {
|
|
581
|
+
return (e.x - t.x) * (r.x - n.x) + (e.y - t.y) * (r.y - n.y) < 0;
|
|
582
|
+
}
|
|
583
|
+
e(et, "runsAgainstHeading");
|
|
584
|
+
function tt({ heading: e, from: t }, n, r) {
|
|
585
|
+
return $(e, t) && !Q(e, t) ? {
|
|
586
|
+
x: r.x,
|
|
587
|
+
y: n.y
|
|
588
|
+
} : Q(e, t) && !$(e, t) ? {
|
|
589
|
+
x: n.x,
|
|
590
|
+
y: r.y
|
|
591
|
+
} : r;
|
|
592
|
+
}
|
|
593
|
+
e(tt, "snapToArrivalAxis");
|
|
594
|
+
function nt(e, t, n, r) {
|
|
595
|
+
if ((Q(e, t) || $(e, t)) && !Qe(e, t, r)) return e;
|
|
596
|
+
let i = $e(e, t, n);
|
|
597
|
+
return et(i, t, r) ? t : tt(i, t, r);
|
|
598
|
+
}
|
|
599
|
+
e(nt, "dockFinalPoint");
|
|
600
|
+
function rt(e) {
|
|
601
|
+
let t = Object.hasOwn(w, e) ? w[e] : 0;
|
|
602
|
+
return Number.isFinite(t) ? t : 0;
|
|
603
|
+
}
|
|
604
|
+
e(rt, "markerPullBack");
|
|
605
|
+
function it({ originalLast: e, lastInner: t, newLast: n, minLength: r }) {
|
|
606
|
+
let i = !Ze(e, t), a = Math.hypot(n.x - t.x, n.y - t.y);
|
|
607
|
+
return a >= Math.max(Z, r) ? n : i && a >= Z ? e : void 0;
|
|
608
|
+
}
|
|
609
|
+
e(it, "finalDockPoint");
|
|
610
|
+
var at = /* @__PURE__ */ e((e, t) => {
|
|
324
611
|
if (!e?.isLabelEdge || !e?.id?.endsWith("-to-label") || !Array.isArray(t) || t.length !== 2) return t;
|
|
325
612
|
let [n, r] = t, i = Math.abs(r.x - n.x), a = Math.abs(r.y - n.y);
|
|
326
613
|
return i < .001 || a < .001 ? t : a >= i ? [
|
|
@@ -338,10 +625,10 @@ var V = /* @__PURE__ */ e((e, t) => {
|
|
|
338
625
|
},
|
|
339
626
|
r
|
|
340
627
|
];
|
|
341
|
-
}, "orthogonalizeToLabelClippedPoints"),
|
|
628
|
+
}, "orthogonalizeToLabelClippedPoints"), ot = /* @__PURE__ */ e((e, t) => {
|
|
342
629
|
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;
|
|
343
630
|
return i >= o || a >= s;
|
|
344
|
-
}, "outsideNode"),
|
|
631
|
+
}, "outsideNode"), st = /* @__PURE__ */ e((e, n, r) => {
|
|
345
632
|
t.debug(`intersection calc abc89:
|
|
346
633
|
outsidePoint: ${JSON.stringify(n)}
|
|
347
634
|
insidePoint : ${JSON.stringify(r)}
|
|
@@ -367,12 +654,12 @@ var V = /* @__PURE__ */ e((e, t) => {
|
|
|
367
654
|
y: o
|
|
368
655
|
};
|
|
369
656
|
}
|
|
370
|
-
}, "intersection"),
|
|
657
|
+
}, "intersection"), ct = /* @__PURE__ */ e((e, n) => {
|
|
371
658
|
t.warn("abc88 cutPathAtIntersect", e, n);
|
|
372
659
|
let r = [], i = e[0], a = !1;
|
|
373
660
|
return e.forEach((e) => {
|
|
374
|
-
if (t.info("abc88 checking point", e, n), !
|
|
375
|
-
let o =
|
|
661
|
+
if (t.info("abc88 checking point", e, n), !ot(n, e) && !a) {
|
|
662
|
+
let o = st(n, i, e);
|
|
376
663
|
t.debug("abc88 inside", e, i, o), t.debug("abc88 intersection", o, n);
|
|
377
664
|
let s = !1;
|
|
378
665
|
r.forEach((e) => {
|
|
@@ -381,7 +668,7 @@ var V = /* @__PURE__ */ e((e, t) => {
|
|
|
381
668
|
} else t.warn("abc88 outside", e, i), i = e, a || r.push(e);
|
|
382
669
|
}), t.debug("returning points", r), r;
|
|
383
670
|
}, "cutPathAtIntersect");
|
|
384
|
-
function
|
|
671
|
+
function lt(e) {
|
|
385
672
|
let t = [], n = [];
|
|
386
673
|
for (let r = 1; r < e.length - 1; r++) {
|
|
387
674
|
let i = e[r - 1], a = e[r], o = e[r + 1];
|
|
@@ -392,17 +679,17 @@ function K(e) {
|
|
|
392
679
|
cornerPointPositions: n
|
|
393
680
|
};
|
|
394
681
|
}
|
|
395
|
-
e(
|
|
396
|
-
var
|
|
682
|
+
e(lt, "extractCornerPoints");
|
|
683
|
+
var ut = /* @__PURE__ */ e(function(e, t, n) {
|
|
397
684
|
let r = t.x - e.x, i = t.y - e.y, a = n / Math.sqrt(r * r + i * i);
|
|
398
685
|
return {
|
|
399
686
|
x: t.x - a * r,
|
|
400
687
|
y: t.y - a * i
|
|
401
688
|
};
|
|
402
|
-
}, "findAdjacentPoint"),
|
|
403
|
-
let { cornerPointPositions: n } =
|
|
689
|
+
}, "findAdjacentPoint"), dt = /* @__PURE__ */ e(function(e) {
|
|
690
|
+
let { cornerPointPositions: n } = lt(e), r = [];
|
|
404
691
|
for (let i = 0; i < e.length; i++) if (n.includes(i)) {
|
|
405
|
-
let n = e[i - 1], a = e[i + 1], o = e[i], s =
|
|
692
|
+
let n = e[i - 1], a = e[i + 1], o = e[i], s = ut(n, o, 5), c = ut(a, o, 5), l = c.x - s.x, u = c.y - s.y;
|
|
406
693
|
r.push(s);
|
|
407
694
|
let d = Math.sqrt(2) * 2, f = {
|
|
408
695
|
x: o.x,
|
|
@@ -417,136 +704,152 @@ var q = /* @__PURE__ */ e(function(e, t, n) {
|
|
|
417
704
|
}) : t.debug("Corner point skipping fixing", Math.abs(a.x - n.x), Math.abs(a.y - n.y)), r.push(f, c);
|
|
418
705
|
} else r.push(e[i]);
|
|
419
706
|
return r;
|
|
420
|
-
}, "fixCorners"),
|
|
707
|
+
}, "fixCorners"), ft = /* @__PURE__ */ e((e, t, n) => {
|
|
421
708
|
let r = e - t - n, i = Math.floor(r / 4);
|
|
422
709
|
return `0 ${t} ${Array(Number.isFinite(i) ? Math.max(0, i) : 0).fill("2 2").join(" ")} ${n}`;
|
|
423
|
-
}, "generateDashArray"),
|
|
424
|
-
if (!
|
|
425
|
-
let { handDrawnSeed:
|
|
426
|
-
var
|
|
427
|
-
let
|
|
428
|
-
for (let e in i.cssCompiledStyles)
|
|
429
|
-
if (
|
|
430
|
-
if (!
|
|
431
|
-
if (
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
710
|
+
}, "generateDashArray"), pt = /* @__PURE__ */ e(function(e, i, a, o, s, ie, y, b = !1, x = void 0) {
|
|
711
|
+
if (!y) throw Error(`insertEdge: missing diagramId for edge "${i.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);
|
|
712
|
+
let { handDrawnSeed: se, layout: S } = r(), C = x ?? S, w = i.points, E = !1, D = s;
|
|
713
|
+
var O = ie;
|
|
714
|
+
let k = [];
|
|
715
|
+
for (let e in i.cssCompiledStyles) ae(e) || k.push(i.cssCompiledStyles[e]);
|
|
716
|
+
if (C === "swimlane") {
|
|
717
|
+
if (!b && O.intersect && D.intersect && Array.isArray(w) && w.length >= 2) {
|
|
718
|
+
if (w.length === 2) {
|
|
719
|
+
let [e, t] = w;
|
|
720
|
+
w = Q(e, t) || $(e, t) ? [D.intersect(e), O.intersect(t)] : [D.intersect(t), O.intersect(e)];
|
|
721
|
+
} else {
|
|
722
|
+
let e = w.slice(1, -1), t = e[0], n = e[e.length - 1], r = D.intersect(t), a = w[w.length - 1], o = O.intersect(n), s = it({
|
|
723
|
+
originalLast: a,
|
|
724
|
+
lastInner: n,
|
|
725
|
+
newLast: nt(a, n, e.at(-2) ?? w[0], o),
|
|
726
|
+
minLength: rt(i.arrowTypeEnd)
|
|
727
|
+
}), c = Math.abs(r.x - t.x) < Z && Math.abs(r.y - t.y) < Z ? [] : [r], l = s ? [s] : [];
|
|
728
|
+
w = [
|
|
435
729
|
...c,
|
|
436
730
|
...e,
|
|
437
731
|
...l
|
|
438
732
|
];
|
|
439
733
|
}
|
|
440
734
|
}
|
|
441
|
-
|
|
442
|
-
} else
|
|
443
|
-
let
|
|
444
|
-
i.toCluster && (t.info("to cluster abc88", a.get(i.toCluster)),
|
|
445
|
-
let
|
|
446
|
-
|
|
447
|
-
let
|
|
448
|
-
switch (
|
|
735
|
+
w = at(i, w);
|
|
736
|
+
} else O.intersect && D.intersect && !b && (w = w.slice(1, i.points.length - 1), w.unshift(D.intersect(w[0])), w.push(O.intersect(w[w.length - 1])));
|
|
737
|
+
let A = btoa(JSON.stringify(w));
|
|
738
|
+
i.toCluster && (t.info("to cluster abc88", a.get(i.toCluster)), w = ct(i.points, a.get(i.toCluster).node), E = !0), i.fromCluster && (t.debug("from cluster abc88", a.get(i.fromCluster), JSON.stringify(w, null, 2)), w = ct(w.reverse(), a.get(i.fromCluster).node).reverse(), E = !0);
|
|
739
|
+
let j = w.filter((e) => !Number.isNaN(e.y)), M = Ge(i.curve);
|
|
740
|
+
M !== "rounded" && (j = dt(j));
|
|
741
|
+
let N = g;
|
|
742
|
+
switch (M) {
|
|
449
743
|
case "linear":
|
|
450
|
-
|
|
744
|
+
N = g;
|
|
451
745
|
break;
|
|
452
746
|
case "basis":
|
|
453
|
-
|
|
747
|
+
N = v;
|
|
454
748
|
break;
|
|
455
749
|
case "cardinal":
|
|
456
|
-
|
|
750
|
+
N = ee;
|
|
457
751
|
break;
|
|
458
752
|
case "bumpX":
|
|
459
|
-
|
|
753
|
+
N = _;
|
|
460
754
|
break;
|
|
461
755
|
case "bumpY":
|
|
462
|
-
|
|
756
|
+
N = ne;
|
|
463
757
|
break;
|
|
464
758
|
case "catmullRom":
|
|
465
|
-
|
|
759
|
+
N = c;
|
|
466
760
|
break;
|
|
467
761
|
case "monotoneX":
|
|
468
|
-
|
|
762
|
+
N = p;
|
|
469
763
|
break;
|
|
470
764
|
case "monotoneY":
|
|
471
|
-
|
|
765
|
+
N = u;
|
|
472
766
|
break;
|
|
473
767
|
case "natural":
|
|
474
|
-
|
|
768
|
+
N = d;
|
|
475
769
|
break;
|
|
476
770
|
case "step":
|
|
477
|
-
|
|
771
|
+
N = f;
|
|
478
772
|
break;
|
|
479
773
|
case "stepAfter":
|
|
480
|
-
|
|
774
|
+
N = te;
|
|
481
775
|
break;
|
|
482
776
|
case "stepBefore":
|
|
483
|
-
|
|
777
|
+
N = l;
|
|
484
778
|
break;
|
|
485
779
|
case "rounded":
|
|
486
|
-
|
|
780
|
+
N = g;
|
|
487
781
|
break;
|
|
488
|
-
default:
|
|
782
|
+
default: N = v;
|
|
489
783
|
}
|
|
490
|
-
let { x:
|
|
784
|
+
let { x: le, y: ue } = ce(i), P = re().x(le).y(ue).curve(N), F;
|
|
491
785
|
switch (i.thickness) {
|
|
492
786
|
case "normal":
|
|
493
|
-
|
|
787
|
+
F = "edge-thickness-normal";
|
|
494
788
|
break;
|
|
495
789
|
case "thick":
|
|
496
|
-
|
|
790
|
+
F = "edge-thickness-thick";
|
|
497
791
|
break;
|
|
498
792
|
case "invisible":
|
|
499
|
-
|
|
793
|
+
F = "edge-thickness-invisible";
|
|
500
794
|
break;
|
|
501
|
-
default:
|
|
795
|
+
default: F = "edge-thickness-normal";
|
|
502
796
|
}
|
|
503
797
|
switch (i.pattern) {
|
|
504
798
|
case "solid":
|
|
505
|
-
|
|
799
|
+
F += " edge-pattern-solid";
|
|
506
800
|
break;
|
|
507
801
|
case "dotted":
|
|
508
|
-
|
|
802
|
+
F += " edge-pattern-dotted";
|
|
509
803
|
break;
|
|
510
804
|
case "dashed":
|
|
511
|
-
|
|
805
|
+
F += " edge-pattern-dashed";
|
|
512
806
|
break;
|
|
513
|
-
default:
|
|
807
|
+
default: F += " edge-pattern-solid";
|
|
514
808
|
}
|
|
515
|
-
let
|
|
516
|
-
i.animate && (
|
|
517
|
-
let
|
|
809
|
+
let I, L = M === "rounded" ? mt(gt(j, i), 5) : P(j), R = Array.isArray(i.style) ? i.style : [i.style], z = R.find((e) => e?.startsWith("stroke:")), B = "";
|
|
810
|
+
i.animate && (B = "edge-animation-fast"), i.animation && (B = "edge-animation-" + i.animation);
|
|
811
|
+
let V = !1;
|
|
518
812
|
if (i.look === "handDrawn") {
|
|
519
|
-
let t =
|
|
520
|
-
Object.assign([],
|
|
521
|
-
let r = t.path(
|
|
813
|
+
let t = oe.svg(e);
|
|
814
|
+
Object.assign([], j);
|
|
815
|
+
let r = t.path(L, {
|
|
522
816
|
roughness: .3,
|
|
523
|
-
seed:
|
|
817
|
+
seed: se
|
|
524
818
|
});
|
|
525
|
-
|
|
526
|
-
let a =
|
|
527
|
-
|
|
819
|
+
F += " transition", I = n(r).select("path").attr("id", `${y}-${i.id}`).attr("class", " " + F + (i.classes ? " " + i.classes : "") + (B ? " " + B : "")).attr("style", R ? R.reduce((e, t) => e + ";" + t, "") : "");
|
|
820
|
+
let a = I.attr("d");
|
|
821
|
+
I.attr("d", a), e.node().appendChild(I.node());
|
|
528
822
|
} else {
|
|
529
|
-
let t =
|
|
530
|
-
|
|
531
|
-
let a =
|
|
532
|
-
if (i.look === "neo" && !
|
|
533
|
-
let e = `stroke-dasharray: ${i.pattern === "dotted" || i.pattern === "dashed" ?
|
|
534
|
-
|
|
823
|
+
let t = k.join(";"), n = R ? R.reduce((e, t) => e + t + ";", "") : "", r = (t ? t + ";" + n + ";" : n) + ";" + (R ? R.reduce((e, t) => e + ";" + t, "") : "");
|
|
824
|
+
I = e.append("path").attr("d", L).attr("id", `${y}-${i.id}`).attr("class", " " + F + (i.classes ? " " + i.classes : "") + (B ? " " + B : "")).attr("style", r), z = r.match(/stroke:([^;]+)/)?.[1], V = i.animate === !0 || !!i.animation || t.includes("animation");
|
|
825
|
+
let a = I.node(), o = typeof a.getTotalLength == "function" ? a.getTotalLength() : 0, s = T[i.arrowTypeStart] || 0, c = T[i.arrowTypeEnd] || 0;
|
|
826
|
+
if (i.look === "neo" && !V) {
|
|
827
|
+
let e = `stroke-dasharray: ${i.pattern === "dotted" || i.pattern === "dashed" ? ft(o, s, c) : `0 ${s} ${o - s - c} ${c}`}; stroke-dashoffset: 0;`;
|
|
828
|
+
I.attr("style", e + I.attr("style"));
|
|
535
829
|
}
|
|
536
830
|
}
|
|
537
|
-
|
|
831
|
+
if (I.attr("data-edge", !0), I.attr("data-et", "edge"), I.attr("data-id", i.id), I.attr("data-points", A), I.attr("data-look", h(i.look)), i.step !== void 0) {
|
|
832
|
+
let { themeVariables: t } = r(), n = z ?? t?.lineColor;
|
|
833
|
+
Be(e, i, L, y, {
|
|
834
|
+
points: j,
|
|
835
|
+
pathNode: I.node(),
|
|
836
|
+
color: n,
|
|
837
|
+
textColors: [t?.background, t?.primaryTextColor]
|
|
838
|
+
});
|
|
839
|
+
}
|
|
840
|
+
i.showPoints && j.forEach((t) => {
|
|
538
841
|
e.append("circle").style("stroke", "red").style("fill", "red").attr("r", 1).attr("cx", t.x).attr("cy", t.y);
|
|
539
842
|
});
|
|
540
|
-
let
|
|
541
|
-
(r().flowchart.arrowMarkerAbsolute || r().state.arrowMarkerAbsolute) && (
|
|
542
|
-
let
|
|
543
|
-
|
|
544
|
-
let
|
|
545
|
-
|
|
546
|
-
let
|
|
547
|
-
return
|
|
843
|
+
let H = "";
|
|
844
|
+
(r().flowchart.arrowMarkerAbsolute || r().state.arrowMarkerAbsolute) && (H = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, H = H.replace(/\(/g, "\\(").replace(/\)/g, "\\)")), t.info("arrowTypeStart", i.arrowTypeStart), t.info("arrowTypeEnd", i.arrowTypeEnd);
|
|
845
|
+
let de = !V && i?.look === "neo";
|
|
846
|
+
Ve(I, i, H, y, o, de, z);
|
|
847
|
+
let fe = Math.floor(w.length / 2), pe = w[fe];
|
|
848
|
+
m.isLabelCoordinateInPath(pe, I.attr("d")) || (E = !0);
|
|
849
|
+
let U = {};
|
|
850
|
+
return E && (U.updatedPath = w), U.originalPath = i.points, U;
|
|
548
851
|
}, "insertEdge");
|
|
549
|
-
function
|
|
852
|
+
function mt(e, t) {
|
|
550
853
|
if (e.length < 2) return "";
|
|
551
854
|
let n = "", r = e.length, i = 1e-5;
|
|
552
855
|
for (let a = 0; a < r; a++) {
|
|
@@ -559,19 +862,19 @@ function Y(e, t) {
|
|
|
559
862
|
n += `L${o.x},${o.y}`;
|
|
560
863
|
continue;
|
|
561
864
|
}
|
|
562
|
-
let f = e / u, p = r / u, m = a / d, h = l / d,
|
|
563
|
-
if (
|
|
865
|
+
let f = e / u, p = r / u, m = a / d, h = l / d, ee = f * m + p * h, g = Math.acos(Math.max(-1, Math.min(1, ee)));
|
|
866
|
+
if (g < i || Math.abs(Math.PI - g) < i) {
|
|
564
867
|
n += `L${o.x},${o.y}`;
|
|
565
868
|
continue;
|
|
566
869
|
}
|
|
567
|
-
let
|
|
568
|
-
n += `L${
|
|
870
|
+
let _ = Math.min(t / Math.sin(g / 2), u / 2, d / 2), te = o.x - f * _, ne = o.y - p * _, v = o.x + m * _, re = o.y + h * _;
|
|
871
|
+
n += `L${te},${ne}`, n += `Q${o.x},${o.y} ${v},${re}`;
|
|
569
872
|
}
|
|
570
873
|
}
|
|
571
874
|
return n;
|
|
572
875
|
}
|
|
573
|
-
e(
|
|
574
|
-
function
|
|
876
|
+
e(mt, "generateRoundedPath");
|
|
877
|
+
function ht(e, t) {
|
|
575
878
|
if (!e || !t) return {
|
|
576
879
|
angle: 0,
|
|
577
880
|
deltaX: 0,
|
|
@@ -584,26 +887,26 @@ function X(e, t) {
|
|
|
584
887
|
deltaY: r
|
|
585
888
|
};
|
|
586
889
|
}
|
|
587
|
-
e(
|
|
588
|
-
function
|
|
890
|
+
e(ht, "calculateDeltaAndAngle");
|
|
891
|
+
function gt(e, t) {
|
|
589
892
|
let n = e.map((e) => ({ ...e }));
|
|
590
|
-
if (e.length >= 2 &&
|
|
591
|
-
let r =
|
|
893
|
+
if (e.length >= 2 && w[t.arrowTypeStart]) {
|
|
894
|
+
let r = w[t.arrowTypeStart], i = e[0], a = e[1], { angle: o } = ht(i, a), s = r * Math.cos(o), c = r * Math.sin(o);
|
|
592
895
|
n[0].x = i.x + s, n[0].y = i.y + c;
|
|
593
896
|
}
|
|
594
897
|
let r = e.length;
|
|
595
|
-
if (r >= 2 &&
|
|
596
|
-
let i =
|
|
898
|
+
if (r >= 2 && w[t.arrowTypeEnd]) {
|
|
899
|
+
let i = w[t.arrowTypeEnd], a = e[r - 1], o = e[r - 2], { angle: s } = ht(o, a), c = i * Math.cos(s), l = i * Math.sin(s);
|
|
597
900
|
n[r - 1].x = a.x - c, n[r - 1].y = a.y - l;
|
|
598
901
|
}
|
|
599
902
|
return n;
|
|
600
903
|
}
|
|
601
|
-
e(
|
|
602
|
-
var
|
|
904
|
+
e(gt, "applyMarkerOffsetsToPoints");
|
|
905
|
+
var _t = /* @__PURE__ */ e((e, t, n, r) => {
|
|
603
906
|
t.forEach((t) => {
|
|
604
|
-
|
|
907
|
+
vt[t](e, n, r);
|
|
605
908
|
});
|
|
606
|
-
}, "insertMarkers"),
|
|
909
|
+
}, "insertMarkers"), vt = {
|
|
607
910
|
extension: /* @__PURE__ */ e((e, n, r) => {
|
|
608
911
|
t.trace("Making markers for ", r), e.append("defs").append("marker").attr("id", r + "_" + n + "-extensionStart").attr("class", "marker extension " + n).attr("refX", 18).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), e.append("defs").append("marker").attr("id", r + "_" + n + "-extensionEnd").attr("class", "marker extension " + n).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 1,1 V 13 L18,7 Z"), e.append("marker").attr("id", r + "_" + n + "-extensionStart-margin").attr("class", "marker extension " + n).attr("refX", 18).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").attr("viewBox", "0 0 20 14").append("polygon").attr("points", "10,7 18,13 18,1").style("stroke-width", 2).style("stroke-dasharray", "0"), e.append("defs").append("marker").attr("id", r + "_" + n + "-extensionEnd-margin").attr("class", "marker extension " + n).attr("refX", 9).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").attr("viewBox", "0 0 20 14").append("polygon").attr("points", "10,1 10,13 18,7").style("stroke-width", 2).style("stroke-dasharray", "0");
|
|
609
912
|
}, "extension"),
|
|
@@ -632,7 +935,7 @@ var Q = /* @__PURE__ */ e((e, t, n, r) => {
|
|
|
632
935
|
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");
|
|
633
936
|
}, "barb"),
|
|
634
937
|
barbNeo: /* @__PURE__ */ e((e, t, n) => {
|
|
635
|
-
let { themeVariables: r } =
|
|
938
|
+
let { themeVariables: r } = s(), { transitionColor: i } = r;
|
|
636
939
|
e.append("defs").append("marker").attr("id", n + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L11,14 L13,7 L11,0 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-barbEnd-margin").attr("refX", 17).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M 19,7 L11,14 L13,7 L11,0 Z").attr("fill", `${i}`);
|
|
637
940
|
}, "barbNeo"),
|
|
638
941
|
hierarchy: /* @__PURE__ */ e((e, t, n) => {
|
|
@@ -657,24 +960,24 @@ var Q = /* @__PURE__ */ e((e, t, n, r) => {
|
|
|
657
960
|
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");
|
|
658
961
|
}, "zero_or_more"),
|
|
659
962
|
only_one_neo: /* @__PURE__ */ e((e, t, n) => {
|
|
660
|
-
let { themeVariables: r } =
|
|
963
|
+
let { themeVariables: r } = s(), { strokeWidth: i } = r;
|
|
661
964
|
e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneStart").attr("class", "marker onlyOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M9,0 L9,18 M15,0 L15,18").attr("stroke-width", `${i}`), e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneEnd").attr("class", "marker onlyOne " + t).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M3,0 L3,18 M9,0 L9,18").attr("stroke-width", `${i}`);
|
|
662
965
|
}, "only_one_neo"),
|
|
663
966
|
zero_or_one_neo: /* @__PURE__ */ e((e, t, n) => {
|
|
664
|
-
let { themeVariables: r } =
|
|
665
|
-
|
|
967
|
+
let { themeVariables: r } = s(), { strokeWidth: i, mainBkg: a } = r, o = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneStart").attr("class", "marker zeroOrOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse");
|
|
968
|
+
o.append("circle").attr("fill", a ?? "white").attr("cx", 21).attr("cy", 9).attr("stroke-width", `${i}`).attr("r", 6), o.append("path").attr("d", "M9,0 L9,18").attr("stroke-width", `${i}`);
|
|
666
969
|
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");
|
|
667
|
-
c.append("circle").attr("fill",
|
|
970
|
+
c.append("circle").attr("fill", a ?? "white").attr("cx", 9).attr("cy", 9).attr("stroke-width", `${i}`).attr("r", 6), c.append("path").attr("d", "M21,0 L21,18").attr("stroke-width", `${i}`);
|
|
668
971
|
}, "zero_or_one_neo"),
|
|
669
972
|
one_or_more_neo: /* @__PURE__ */ e((e, t, n) => {
|
|
670
|
-
let { themeVariables: r } =
|
|
973
|
+
let { themeVariables: r } = s(), { strokeWidth: i } = r;
|
|
671
974
|
e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreStart").attr("class", "marker oneOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width", `${i}`), e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreEnd").attr("class", "marker oneOrMore " + t).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width", `${i}`);
|
|
672
975
|
}, "one_or_more_neo"),
|
|
673
976
|
zero_or_more_neo: /* @__PURE__ */ e((e, t, n) => {
|
|
674
|
-
let { themeVariables: r } =
|
|
675
|
-
|
|
977
|
+
let { themeVariables: r } = s(), { strokeWidth: i, mainBkg: a } = r, o = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreStart").attr("class", "marker zeroOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto");
|
|
978
|
+
o.append("circle").attr("fill", a ?? "white").attr("cx", 45.5).attr("cy", 18).attr("r", 6).attr("stroke-width", `${i}`), o.append("path").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width", `${i}`);
|
|
676
979
|
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");
|
|
677
|
-
c.append("circle").attr("fill",
|
|
980
|
+
c.append("circle").attr("fill", a ?? "white").attr("cx", 11).attr("cy", 18).attr("r", 6).attr("stroke-width", `${i}`), c.append("path").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width", `${i}`);
|
|
678
981
|
}, "zero_or_more_neo"),
|
|
679
982
|
requirement_arrow: /* @__PURE__ */ e((e, t, n) => {
|
|
680
983
|
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");
|
|
@@ -684,13 +987,19 @@ var Q = /* @__PURE__ */ e((e, t, n, r) => {
|
|
|
684
987
|
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);
|
|
685
988
|
}, "requirement_contains"),
|
|
686
989
|
requirement_arrow_neo: /* @__PURE__ */ e((e, t, n) => {
|
|
687
|
-
let { themeVariables: r } =
|
|
990
|
+
let { themeVariables: r } = s(), { strokeWidth: i } = r;
|
|
688
991
|
e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_arrowEnd").attr("refX", 20).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").attr("stroke-width", `${i}`).attr("viewBox", "0 0 25 20").append("path").attr("d", "M0,0\n L20,10\n M20,10\n L0,20").attr("stroke-linejoin", "miter");
|
|
689
992
|
}, "requirement_arrow_neo"),
|
|
690
993
|
requirement_contains_neo: /* @__PURE__ */ e((e, t, n) => {
|
|
691
|
-
let { themeVariables: r } =
|
|
692
|
-
|
|
693
|
-
}, "requirement_contains_neo")
|
|
694
|
-
|
|
994
|
+
let { themeVariables: r } = s(), { strokeWidth: i } = r, a = e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_containsStart").attr("refX", 0).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("g");
|
|
995
|
+
a.append("circle").attr("cx", 10).attr("cy", 10).attr("r", 9).attr("fill", "none"), a.append("line").attr("x1", 1).attr("x2", 19).attr("y1", 10).attr("y2", 10), a.append("line").attr("y1", 1).attr("y2", 19).attr("x1", 10).attr("x2", 10), a.selectAll("*").attr("stroke-width", `${i}`);
|
|
996
|
+
}, "requirement_contains_neo"),
|
|
997
|
+
openArrow: /* @__PURE__ */ e((e, t, n) => {
|
|
998
|
+
e.append("marker").attr("id", n + "_" + t + "-openArrowEnd").attr("class", "marker openArrow " + t).attr("viewBox", "0 0 12 12").attr("refX", 11).attr("refY", 6).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 1 1 L 11 6 L 1 11").attr("class", "arrowMarkerPath").style("stroke-width", 1.4).style("stroke-linecap", "round").style("stroke-linejoin", "round").style("stroke-dasharray", "1,0").style("fill", "none"), e.append("marker").attr("id", n + "_" + t + "-openArrowStart").attr("class", "marker openArrow " + t).attr("viewBox", "0 0 12 12").attr("refX", 1).attr("refY", 6).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 11 1 L 1 6 L 11 11").attr("class", "arrowMarkerPath").style("stroke-width", 1.4).style("stroke-linecap", "round").style("stroke-linejoin", "round").style("stroke-dasharray", "1,0").style("fill", "none");
|
|
999
|
+
}, "openArrow"),
|
|
1000
|
+
hollowCircle: /* @__PURE__ */ e((e, t, n) => {
|
|
1001
|
+
e.append("marker").attr("id", n + "_" + t + "-hollowCircleStart").attr("class", "marker hollowCircle " + t).attr("viewBox", "0 0 10 10").attr("refX", 0).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 10).attr("markerHeight", 10).attr("orient", "auto").append("circle").attr("cx", 5).attr("cy", 5).attr("r", 3.6).attr("class", "arrowMarkerPath").style("stroke-width", 1.4).style("stroke-dasharray", "1,0").style("fill", "none"), e.append("marker").attr("id", n + "_" + t + "-hollowCircleEnd").attr("class", "marker hollowCircle " + t).attr("viewBox", "0 0 10 10").attr("refX", 10).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 10).attr("markerHeight", 10).attr("orient", "auto").append("circle").attr("cx", 5).attr("cy", 5).attr("r", 3.6).attr("class", "arrowMarkerPath").style("stroke-width", 1.4).style("stroke-dasharray", "1,0").style("fill", "none");
|
|
1002
|
+
}, "hollowCircle")
|
|
1003
|
+
}, yt = _t;
|
|
695
1004
|
//#endregion
|
|
696
|
-
export {
|
|
1005
|
+
export { pt as a, w as c, ze as d, Xe as f, S as h, qe as i, T as l, q as m, K as n, Je as o, Ye as p, k as r, A as s, Ke as t, yt as u };
|