@pi-outpost/embed 0.15.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PdfViewer-BEdoeHbS.cjs +1 -0
- package/dist/{PdfViewer-BHP5lV-o.js → PdfViewer-DvoTT6jM.js} +5 -5
- package/dist/{abnfDiagram-N423BO3Z-WMOVzCba.js → abnfDiagram-VCTEODGH-CYuCmqs8.js} +6 -6
- package/dist/abnfDiagram-VCTEODGH-SjZtzoAs.cjs +1 -0
- package/dist/{arc-BBnpgwVQ.js → arc-CtDF59mU.js} +8 -6
- package/dist/arc-Dh2Zrypi.cjs +1 -0
- package/dist/architecture-7GRP2DOG-BtgYGXkq.cjs +1 -0
- package/dist/architecture-7GRP2DOG-DBQ9eYgM.js +3 -0
- package/dist/{architectureDiagram-T3A2C74G-BH-F8FzB.js → architectureDiagram-5GKGNRK7-D2-hmLgN.js} +327 -318
- package/dist/architectureDiagram-5GKGNRK7-wrDPdf3y.cjs +36 -0
- package/dist/blockDiagram-OSKFZWR5-Boo8WJyt.cjs +129 -0
- package/dist/blockDiagram-OSKFZWR5-Bvi4xQOy.js +1922 -0
- package/dist/{browser-CynjNfkw.js → browser-BmmG9yeb.js} +40 -34
- package/dist/{browser-CAyUayTx.cjs → browser-CUQnQIhV.cjs} +5 -5
- package/dist/c-AHDGPWiJ.cjs +1 -0
- package/dist/{c-Cw4FsAeJ.js → c-BCMbpktW.js} +42 -31
- package/dist/c4Diagram-7LVT6UL2-BCrC0RQo.cjs +38 -0
- package/dist/{c4Diagram-5PPSVZJV-Cfnl6tZM.js → c4Diagram-7LVT6UL2-CU4tNaf1.js} +751 -703
- package/dist/{channel-Bq-0ENlK.js → channel-Cuipqk56.js} +1 -1
- package/dist/channel-DcrLLvcO.cjs +1 -0
- package/dist/{chunk-JQJVKLGR-CZorbEP3.js → chunk-3NF5O7KM-B-2znsHr.js} +155 -115
- package/dist/chunk-3NF5O7KM-B-DpUW2r.cjs +168 -0
- package/dist/chunk-4HAMMTFA-CtkrBT7X.cjs +62 -0
- package/dist/chunk-4HAMMTFA-dRm_HqMI.js +4188 -0
- package/dist/chunk-75Z2AOVW-DOXS9ORa.cjs +2 -0
- package/dist/{chunk-NSK5VX7P-DPxIxDdV.js → chunk-75Z2AOVW-Eg_bFxBJ.js} +60 -96
- package/dist/chunk-DU6HZSFF-3Hhp3Fo5.cjs +127 -0
- package/dist/{chunk-I66GZJ75-DexfhZwA.js → chunk-DU6HZSFF-CaHy-FdL.js} +527 -478
- package/dist/{chunk-2GRJ4B5K-DzaxUd3W.cjs → chunk-F27PBJKO-3UPgzIlN.cjs} +1 -1
- package/dist/{chunk-2GRJ4B5K-DXwE-yr5.js → chunk-F27PBJKO-BriqLvNp.js} +4 -4
- package/dist/{chunk-KEIR6QF5-BVnxrdHo.js → chunk-FOHPRMQF-BNNbqxGX.js} +424 -356
- package/dist/chunk-FOHPRMQF-tmTlwTeH.cjs +161 -0
- package/dist/chunk-GMAD6QVW-B6uvB_wz.cjs +72 -0
- package/dist/{chunk-WRU74C26-D4huAZcy.js → chunk-GMAD6QVW-DCCx2Rg1.js} +503 -267
- package/dist/chunk-GVQU2GXP-BRMv2gX3.js +37 -0
- package/dist/chunk-GVQU2GXP-iZT_vNLp.cjs +1 -0
- package/dist/{chunk-GF5L2VYU-BPBMCCz5.js → chunk-HLEWEB6X-DlG0X171.js} +16 -16
- package/dist/{chunk-GF5L2VYU-DgG-wovM.cjs → chunk-HLEWEB6X-aqFoPl02.cjs} +4 -4
- package/dist/chunk-L3NEJ4N5-DkoFQHrz.js +245 -0
- package/dist/chunk-L3NEJ4N5-vW3qRjIb.cjs +1 -0
- package/dist/{chunk-7Z6QIM7H-CIoK8R3m.js → chunk-OSK3NFVY-CxjvZYNR.js} +232 -150
- package/dist/chunk-OSK3NFVY-DU2FGOlI.cjs +10 -0
- package/dist/chunk-P2QGCYS3-DWeL9spl.cjs +1 -0
- package/dist/{chunk-W5SLKNZC-Djmw_p6f.js → chunk-P2QGCYS3-uCJfSNHC.js} +19 -19
- package/dist/{chunk-KBJHAD2P-CthZVYG5.cjs → chunk-POPQ4Y6H-BRQPB1-9.cjs} +1 -1
- package/dist/{chunk-KBJHAD2P-BlQyFndF.js → chunk-POPQ4Y6H-D2Z11lA3.js} +3 -3
- package/dist/{chunk-4I5QYGJK-LCSWSJfh.cjs → chunk-PWAF6VOD-CZZKCekP.cjs} +1 -1
- package/dist/{chunk-4I5QYGJK-JZmvuONC.js → chunk-PWAF6VOD-j4sFqhOF.js} +7 -9
- package/dist/{chunk-6Q2QTUOP-C5n08EA-.cjs → chunk-SVP7TREG-CTKSOFlx.cjs} +2 -2
- package/dist/{chunk-6Q2QTUOP-DvJxCxMM.js → chunk-SVP7TREG-CtJsmAIb.js} +4 -4
- package/dist/{chunk-XXDRQBXY-DsVp5qjg.js → chunk-XXDRQBXY-fOrVUHLI.js} +1 -1
- package/dist/{chunk-XXDRQBXY-gWcN0uCZ.cjs → chunk-XXDRQBXY-yMT3rT5Y.cjs} +1 -1
- package/dist/chunk-ZLD2IHE6-BZxKwfuv.cjs +231 -0
- package/dist/{chunk-5RXB4S5H-JthGygoA.js → chunk-ZLD2IHE6-tqumZV0E.js} +44 -48
- package/dist/classDiagram-CYGNFDIV-CQLOfBmz.cjs +1 -0
- package/dist/classDiagram-CYGNFDIV-DIu4rTyR.js +30 -0
- package/dist/classDiagram-v2-TLXNO2FR-BsYK4QnI.js +30 -0
- package/dist/classDiagram-v2-TLXNO2FR-CQLOfBmz.cjs +1 -0
- package/dist/{core-BO2hTFeF.js → core-B9pe29T7.js} +8 -7
- package/dist/core-BrupIPpc.cjs +3 -0
- package/dist/{cose-bilkent-JH36ORCC-BFo5zomD.js → cose-bilkent-JH36ORCC-1Ad4jvll.js} +65 -62
- package/dist/cose-bilkent-JH36ORCC-Cc2qvpLA.cjs +1 -0
- package/dist/{cpp-CeyO6lBG.js → cpp-CL2nTisp.js} +25 -14
- package/dist/cpp-DpAsh4uT.cjs +1 -0
- package/dist/{csharp-Ck6Fet_o.js → csharp-CK75iOSn.js} +37 -37
- package/dist/csharp-TOr_W-v9.cjs +1 -0
- package/dist/css-4wogsuks.cjs +1 -0
- package/dist/{css-ClSGJRju.js → css-DJr8nnnu.js} +6 -1
- package/dist/cynefin-OW5HDTMX-BmLJra-4.cjs +1 -0
- package/dist/cynefin-OW5HDTMX-CfYr_cVN.js +3 -0
- package/dist/{cynefinDiagram-MW4NZA55-CB4ZzMEN.js → cynefinDiagram-5FMLGOSQ-BSRTnQvp.js} +29 -23
- package/dist/cynefinDiagram-5FMLGOSQ-GvGZco52.cjs +62 -0
- package/dist/{cytoscape.esm-asYnbYTy.js → cytoscape.esm-Cq7KPj0t.js} +2480 -2480
- package/dist/cytoscape.esm-uHsEX1XI.cjs +321 -0
- package/dist/{dagre-BpqwxFKp.js → dagre-BMKbPnPh.js} +689 -456
- package/dist/dagre-EEW2OxRU.cjs +1 -0
- package/dist/dagre-OS7QT2EB-DFi6nnZc.cjs +4 -0
- package/dist/dagre-OS7QT2EB-DcpSzxsR.js +425 -0
- package/dist/{defaultLocale-up9-vqhM.js → defaultLocale-B4ncmkvI.js} +1 -4
- package/dist/defaultLocale-ybN1Vtvg.cjs +1 -0
- package/dist/diagram-S7CK7UJ4-BA67ZpiO.cjs +30 -0
- package/dist/{diagram-7IWD3JNH-Cschro8T.js → diagram-S7CK7UJ4-Cx2fQdp6.js} +39 -38
- package/dist/{diagram-UB23O5K3-D-yL2fvd.js → diagram-UQ7AKVKN-CvQH-Box.js} +12 -12
- package/dist/diagram-UQ7AKVKN-OteiyKD9.cjs +41 -0
- package/dist/{diagram-B4RE2ZJO-DKbKOwkP.cjs → diagram-VSXAHHWV-BjsZz1JJ.cjs} +1 -1
- package/dist/{diagram-B4RE2ZJO-B94mhDmV.js → diagram-VSXAHHWV-CCpCVOIq.js} +6 -6
- package/dist/diagram-VX7I27RA-Bx9fEhR0.cjs +24 -0
- package/dist/{diagram-Q27KOJAE-Cqn3IliP.js → diagram-VX7I27RA-HE5nQAXN.js} +64 -62
- package/dist/{diagram-LBJQPF4R-D0MEwBt6.js → diagram-Z3DM3KII-BEu4c4pP.js} +11 -11
- package/dist/diagram-Z3DM3KII-jy895UiZ.cjs +24 -0
- package/dist/{dist-D6LMt8nW.js → dist-Dtt9eY41.js} +1 -1
- package/dist/{dist-DNGlMOWd.cjs → dist-Dwv2VYAL.cjs} +1 -1
- package/dist/{ebnfDiagram-BXEA7PRR-B2HDWFYF.js → ebnfDiagram-PWID7BFC-B06rGL3A.js} +6 -6
- package/dist/ebnfDiagram-PWID7BFC-BQZKHpUr.cjs +1 -0
- package/dist/erDiagram-2YWLMYGG-CuEEIv1I.cjs +99 -0
- package/dist/{erDiagram-JOGREHBK-Badv_hu8.js → erDiagram-2YWLMYGG-IL4IhNXb.js} +1046 -807
- package/dist/eventmodeling-NTZA5JFV-D57pc07U.cjs +1 -0
- package/dist/eventmodeling-NTZA5JFV-DUbGOrrF.js +3 -0
- package/dist/flowDiagram-T62WH6J4-DdJo3Te1.js +16 -0
- package/dist/flowDiagram-T62WH6J4-YyzE7N5Z.cjs +1 -0
- package/dist/{ganttDiagram-PKOTCBZU-By0w7TmO.js → ganttDiagram-EL5Y4UJY-CIBhrOW6.js} +26 -36
- package/dist/ganttDiagram-EL5Y4UJY-PTWIufq8.cjs +292 -0
- package/dist/gitGraph-4MIJSDKK-CY4IuhXZ.js +3 -0
- package/dist/gitGraph-4MIJSDKK-D97vaDci.cjs +1 -0
- package/dist/{gitGraphDiagram-DS77QQ5N-B1uJYchG.js → gitGraphDiagram-WWUBYQGX-CjeedV4i.js} +16 -12
- package/dist/{gitGraphDiagram-DS77QQ5N-Fw8a66di.cjs → gitGraphDiagram-WWUBYQGX-D5yozoaq.cjs} +3 -3
- package/dist/{go-rg7jg1mu.js → go-B2E3I9E3.js} +4 -0
- package/dist/{go-D-pz-dmd.cjs → go-BDkypVKn.cjs} +1 -1
- package/dist/{graphlib-CkkG5MuS.cjs → graphlib-BaETKKSa.cjs} +1 -1
- package/dist/{graphlib-B0GbLif1.js → graphlib-CQa_B3rm.js} +5 -5
- package/dist/info-A6RAGUB7-Cx39sHYM.js +3 -0
- package/dist/info-A6RAGUB7-DT06-FB3.cjs +1 -0
- package/dist/{infoDiagram-6WML65LV-CkWm_KTB.js → infoDiagram-FKFFQAWI-BalzsRT4.js} +6 -6
- package/dist/infoDiagram-FKFFQAWI-NPtQF4vB.cjs +2 -0
- package/dist/init-BJdqMO10.cjs +1 -0
- package/dist/{init-CirqLVcp.js → init-CuXVI8k2.js} +1 -3
- package/dist/{ishikawaDiagram-WSZJBQD7-DTeFqC8L.js → ishikawaDiagram-5VMMS53U-BC2vrJSo.js} +14 -14
- package/dist/{ishikawaDiagram-WSZJBQD7-CQWHhozU.cjs → ishikawaDiagram-5VMMS53U-DN23jmFw.cjs} +3 -3
- package/dist/java-DFBMvIUR.cjs +1 -0
- package/dist/{java-HguKEfA2.js → java-T8Nr25pJ.js} +27 -22
- package/dist/{javascript-C8NCH8DE.js → javascript-CIP6I0eT.js} +6 -4
- package/dist/javascript-Gn0piXHk.cjs +1 -0
- package/dist/{journeyDiagram-NVQOT4AX-Cg6C3dFy.js → journeyDiagram-EYS64GPL-CLMBONXO.js} +14 -14
- package/dist/{journeyDiagram-NVQOT4AX-DLomv_vN.cjs → journeyDiagram-EYS64GPL-Co9rp-Q1.cjs} +3 -3
- package/dist/json-DOqjN5nI.js +42 -0
- package/dist/json-LMrXTXZM.cjs +1 -0
- package/dist/{kanban-definition-27J2QSJJ-B9Fog3W7.cjs → kanban-definition-UXKFOSKX-DzKPVjAq.cjs} +5 -5
- package/dist/{kanban-definition-27J2QSJJ-Bb7nb0gX.js → kanban-definition-UXKFOSKX-SNTHZo65.js} +31 -31
- package/dist/katex-CEF6MvLx.cjs +257 -0
- package/dist/katex-ohtLbxXc.js +21977 -0
- package/dist/{line-yqcJYv29.js → line-4_dF7rOW.js} +2 -2
- package/dist/{line-pOZ7Sdj7.cjs → line-D6gR53Af.cjs} +1 -1
- package/dist/{linear-CVhyaVzf.js → linear-C1gZJMVz.js} +8 -9
- package/dist/linear-Nt9BuHfn.cjs +1 -0
- package/dist/{markdown-CzgRofaE.js → markdown-BW-hB0s4.js} +2 -5
- package/dist/markdown-CTkHoGys.cjs +1 -0
- package/dist/{mermaid-parser.core-Cgsz0CdK.cjs → mermaid-parser.core-CBiDgMLi.cjs} +2 -2
- package/dist/{mermaid-parser.core-B8DQcCaz.js → mermaid-parser.core-DLNlSmfj.js} +31 -31
- package/dist/mermaid.core-B3QcBB1O.cjs +43 -0
- package/dist/mermaid.core-BIqYA7q2.js +3012 -0
- package/dist/{mindmap-definition-FAOFIHXS-9wa1P9NT.cjs → mindmap-definition-THT77NOG-Bo3D8RRT.cjs} +4 -4
- package/dist/{mindmap-definition-FAOFIHXS-DFG0Zs_1.js → mindmap-definition-THT77NOG-BtDuvAQ_.js} +27 -29
- package/dist/{ordinal-D0iNZ43g.cjs → ordinal-Bm_chml2.cjs} +1 -1
- package/dist/{ordinal-C1oQzsBn.js → ordinal-D3SPD7Kk.js} +2 -2
- package/dist/packet-AYTQ26CC-BGX2McoE.cjs +1 -0
- package/dist/packet-AYTQ26CC-IgkU2VYK.js +3 -0
- package/dist/path-DIS6ck99.cjs +1 -0
- package/dist/{path-mKa7UESy.js → path-PGqhG0Rz.js} +10 -11
- package/dist/{pdf-DyDm1M1B.js → pdf-B6zVkETi.js} +182 -220
- package/dist/pdf-cYqATYeW.cjs +54 -0
- package/dist/pegDiagram-XKGWAZYB-Cx-wZf4B.cjs +1 -0
- package/dist/{pegDiagram-VL7TDLO6-XOjprD-j.js → pegDiagram-XKGWAZYB-Ucd8o52_.js} +6 -6
- package/dist/{php-C9FOMGEA.js → php-Cn7gPoxt.js} +6 -0
- package/dist/{php-j6EhDZDE.cjs → php-DQmdBizx.cjs} +1 -1
- package/dist/pi-outpost-embed.cjs +47 -47
- package/dist/pi-outpost-embed.js +3750 -3717
- package/dist/pie-WAS4IAKB-CEyPj3UJ.cjs +1 -0
- package/dist/pie-WAS4IAKB-odE0A7fM.js +3 -0
- package/dist/pieDiagram-E7YTZNPT-BC-pW4cK.cjs +39 -0
- package/dist/{pieDiagram-7S7Q4E2Y-Cwe7fXgJ.js → pieDiagram-E7YTZNPT-DSx5wFMY.js} +20 -22
- package/dist/{python-DKAazMIE.js → python-BUfdXZqP.js} +6 -6
- package/dist/python-CrsffQw-.cjs +1 -0
- package/dist/{quadrantDiagram-CIZ2JOQS-CbaMHmYB.js → quadrantDiagram-AXDQQJYC-D8Y50xmh.js} +11 -11
- package/dist/{quadrantDiagram-CIZ2JOQS-CDfrU0dm.cjs → quadrantDiagram-AXDQQJYC-zPfqM9Q4.cjs} +2 -2
- package/dist/radar-RG4KPBEZ-ClYJNseM.cjs +1 -0
- package/dist/radar-RG4KPBEZ-DqbNqlJH.js +3 -0
- package/dist/railroad-74A4TZTK-Dzt4afqg.js +3 -0
- package/dist/railroad-74A4TZTK-hSKcr2y6.cjs +1 -0
- package/dist/railroad-abnf-HS5TGJTU-gq2RybTO.js +3 -0
- package/dist/railroad-abnf-HS5TGJTU-irEXz0eI.cjs +1 -0
- package/dist/railroad-ebnf-LZEXJU2U-CG19A1Xj.cjs +1 -0
- package/dist/railroad-ebnf-LZEXJU2U-D-pNpFrj.js +3 -0
- package/dist/railroad-peg-WCYAUIDC-BLdK3QCV.cjs +1 -0
- package/dist/railroad-peg-WCYAUIDC-Bo7wfe--.js +3 -0
- package/dist/railroadDiagram-O6MQD6OU-3JsgWyLe.cjs +1 -0
- package/dist/{railroadDiagram-AXF67PYL-CVXAv-Uu.js → railroadDiagram-O6MQD6OU-BTg2KtZO.js} +6 -6
- package/dist/{requirementDiagram-LRYGKXZP-Bzik4kgS.js → requirementDiagram-IS5BZ75X-C1OrS7DV.js} +25 -24
- package/dist/{requirementDiagram-LRYGKXZP-BGlGCftH.cjs → requirementDiagram-IS5BZ75X-D1BMLxZg.cjs} +4 -4
- package/dist/{rolldown-runtime-Dqa2HsxW.js → rolldown-runtime-B0aSnxlc.js} +2 -2
- package/dist/{rolldown-runtime-mLOUI7ql.cjs → rolldown-runtime-DF3sbh8G.cjs} +1 -1
- package/dist/{rough.esm-r0QOSzHM.cjs → rough.esm-ChRLLRha.cjs} +1 -1
- package/dist/{rough.esm-C5XyeDCN.js → rough.esm-D2JJJ0Ot.js} +60 -51
- package/dist/{ruby-ClR4zp-1.cjs → ruby-B1inj-Q8.cjs} +1 -1
- package/dist/{ruby-BAUeZQKZ.js → ruby-DYVKXPXk.js} +1 -1
- package/dist/{rust-DiTjMjP5.js → rust-BihXqTNi.js} +38 -25
- package/dist/rust-D39kF6re.cjs +1 -0
- package/dist/{sankeyDiagram-W5VNT64P-OeLUMuT6.cjs → sankeyDiagram-P5KCCOFB-D5BHxcxB.cjs} +2 -2
- package/dist/{sankeyDiagram-W5VNT64P-_8xZpo45.js → sankeyDiagram-P5KCCOFB-DTnkE4oO.js} +17 -15
- package/dist/{scss-CckAvQOx.js → scss-CzfrZ5cc.js} +6 -1
- package/dist/scss-t-vKjRr4.cjs +1 -0
- package/dist/{sequenceDiagram-SI44F4Z6-X4mzY21C.js → sequenceDiagram-WJ2MYXX4-Ba-z2rSx.js} +36 -48
- package/dist/sequenceDiagram-WJ2MYXX4-DlVJIIIl.cjs +162 -0
- package/dist/{sizeCapture-X5ZJPWSS-DKbHZNyz.js → sizeCapture-INFHLROL-B5Lg3qGn.js} +1 -1
- package/dist/{src-DJ4x3y2O.js → src-BMMAFeC3.js} +288 -291
- package/dist/src-D9o9TOtH.cjs +1 -0
- package/dist/{stateDiagram-OKZ733FA-CMM1orC_.js → stateDiagram-XQSTLZYL-BtcUS_dg.js} +21 -21
- package/dist/stateDiagram-XQSTLZYL-mSOJx_Wv.cjs +1 -0
- package/dist/stateDiagram-v2-IH3M54BS-DAa6SuH4.cjs +1 -0
- package/dist/stateDiagram-v2-IH3M54BS-E_Rhduzm.js +30 -0
- package/dist/swimlanes-V6O3JKXN-BooYLGtP.cjs +1 -0
- package/dist/{swimlanes-SLNWSIFB-C7LLK1V2.js → swimlanes-V6O3JKXN-xxlpXv1f.js} +1022 -1109
- package/dist/swimlanesDiagram-JKAHXJPX-BaMCBEUQ.cjs +8 -0
- package/dist/swimlanesDiagram-JKAHXJPX-DyQwD-QO.js +30 -0
- package/dist/timeline-definition-24CTP7MA-D6sSmprF.cjs +120 -0
- package/dist/{timeline-definition-Z64GVDOM-Cgc-2OmU.js → timeline-definition-24CTP7MA-Dr8ouzBO.js} +19 -19
- package/dist/treeView-Q6P3EWNA-BmkQxkVU.cjs +1 -0
- package/dist/treeView-Q6P3EWNA-CPEEGmNv.js +3 -0
- package/dist/treemap-WGGIJYW6-CGULpntJ.js +3 -0
- package/dist/treemap-WGGIJYW6-Dmi9HAR8.cjs +1 -0
- package/dist/typescript-BarIi8q9.cjs +1 -0
- package/dist/{typescript-mdYq8uqf.js → typescript-C93MG6Zk.js} +26 -24
- package/dist/vennDiagram-4TSXK5OY-D5MMYyff.cjs +34 -0
- package/dist/{vennDiagram-T6HMQDX7-BWj1BhMh.js → vennDiagram-4TSXK5OY-i6B1rhUA.js} +15 -15
- package/dist/wardley-WFR3VGLG-9zHZLKh9.js +3 -0
- package/dist/wardley-WFR3VGLG-B6YvLPJA.cjs +1 -0
- package/dist/{wardleyDiagram-T6FBY63Y-d_t4oVLE.js → wardleyDiagram-VM6X3IG4-1SFyFcXg.js} +46 -46
- package/dist/{wardleyDiagram-T6FBY63Y-OomvVIFj.cjs → wardleyDiagram-VM6X3IG4-DzZNzmB8.cjs} +36 -36
- package/dist/{workspacePath-BScUv3M_.js → workspacePath-CfDl0V4n.js} +1 -1
- package/dist/{workspacePath-kqTwbSP1.cjs → workspacePath-EgAFT36l.cjs} +1 -1
- package/dist/{xml-BamqaQOf.cjs → xml-B0vjUBag.cjs} +1 -1
- package/dist/{xml-DVYfB8uY.js → xml-GxASmsT7.js} +2 -6
- package/dist/{xychartDiagram-ELKLHX3M-BOSOdubI.cjs → xychartDiagram-S5SC5T6Z-BOsjfYJh.cjs} +4 -4
- package/dist/{xychartDiagram-ELKLHX3M-Ce-ai3a8.js → xychartDiagram-S5SC5T6Z-D6QDBBGJ.js} +263 -158
- package/dist/{yaml-_1BORZTQ.js → yaml-CHhF1kKQ.js} +25 -25
- package/dist/yaml-DZS9gzaB.cjs +1 -0
- package/package.json +2 -2
- package/dist/PdfViewer-BBmVq73v.cjs +0 -1
- package/dist/abnfDiagram-N423BO3Z-DOZfbvMH.cjs +0 -1
- package/dist/arc-DcUn9_NX.cjs +0 -1
- package/dist/architecture-TIHT7OUA-D-35jO9Y.cjs +0 -1
- package/dist/architecture-TIHT7OUA-DDyMqjR1.js +0 -3
- package/dist/architectureDiagram-T3A2C74G-RJUsi-Sx.cjs +0 -36
- package/dist/blockDiagram-VBNYF7ZC-Bz8oqXJQ.cjs +0 -132
- package/dist/blockDiagram-VBNYF7ZC-DYMmF9bV.js +0 -3160
- package/dist/c-4QgYfi8K.cjs +0 -1
- package/dist/c4Diagram-5PPSVZJV-DM6x-BYG.cjs +0 -10
- package/dist/channel-DoxF0tZj.cjs +0 -1
- package/dist/chunk-3NCLNEKW-CO28EZBG.cjs +0 -1
- package/dist/chunk-3NCLNEKW-dTH67Ne_.js +0 -10
- package/dist/chunk-5RXB4S5H-B5b3tdRl.cjs +0 -231
- package/dist/chunk-7BUUIJ7U-BFUeQBoS.js +0 -82
- package/dist/chunk-7BUUIJ7U-MzS1pW_S.cjs +0 -1
- package/dist/chunk-7Z6QIM7H-Ctljl7Vq.cjs +0 -10
- package/dist/chunk-I66GZJ75-CrpH-Rmq.cjs +0 -127
- package/dist/chunk-J7OUQ5F2-DhMpZbAr.js +0 -57
- package/dist/chunk-J7OUQ5F2-b-MfW4O9.cjs +0 -1
- package/dist/chunk-JQJVKLGR-2AQwaWbm.cjs +0 -156
- package/dist/chunk-KEIR6QF5-Cy_QBNG6.cjs +0 -161
- package/dist/chunk-NSK5VX7P-D5CepZHI.cjs +0 -2
- package/dist/chunk-QR6OTTB3-CQ_jjYb-.js +0 -3736
- package/dist/chunk-QR6OTTB3-DSg3ZWNW.cjs +0 -62
- package/dist/chunk-RYQCIY6F-27FDzaaE.cjs +0 -1
- package/dist/chunk-RYQCIY6F-C-YC3QS_.js +0 -239
- package/dist/chunk-UBXNYLIW-BBncokef.js +0 -32
- package/dist/chunk-UBXNYLIW-DlNyCWjj.cjs +0 -1
- package/dist/chunk-W5SLKNZC-bHBkM2CL.cjs +0 -1
- package/dist/chunk-WRU74C26-9KZxhHnn.cjs +0 -70
- package/dist/chunk-ZIRB5QZD-BU6XQUGC.cjs +0 -32
- package/dist/chunk-ZIRB5QZD-Cj-y77rH.js +0 -1146
- package/dist/classDiagram-JCYQIIEL-DeHc-x8i.cjs +0 -1
- package/dist/classDiagram-JCYQIIEL-DlHKjVPc.js +0 -30
- package/dist/classDiagram-v2-OCEON4UE-DeHc-x8i.cjs +0 -1
- package/dist/classDiagram-v2-OCEON4UE-DlhHN57j.js +0 -30
- package/dist/core-2nR1zkKb.cjs +0 -3
- package/dist/cose-bilkent-JH36ORCC-AyWV1dUo.cjs +0 -1
- package/dist/cpp-BUtp-HE2.cjs +0 -1
- package/dist/csharp-BJu4kEpt.cjs +0 -1
- package/dist/css-DeFr0lev.cjs +0 -1
- package/dist/cynefin-VYW2F7L2-DHhUPDgc.cjs +0 -1
- package/dist/cynefin-VYW2F7L2-DwiVqvhg.js +0 -3
- package/dist/cynefinDiagram-MW4NZA55-By102s5I.cjs +0 -62
- package/dist/cytoscape.esm-ByjvpCPI.cjs +0 -321
- package/dist/dagre-BBlCxSvR.cjs +0 -1
- package/dist/dagre-VZM6K2ZE-5zrH2LqV.js +0 -328
- package/dist/dagre-VZM6K2ZE-CNe7-jhy.cjs +0 -4
- package/dist/defaultLocale-u9yUoUmE.cjs +0 -1
- package/dist/diagram-7IWD3JNH-CSzLXhRw.cjs +0 -30
- package/dist/diagram-LBJQPF4R-DgD0a56I.cjs +0 -24
- package/dist/diagram-Q27KOJAE-DNWfiaD5.cjs +0 -24
- package/dist/diagram-UB23O5K3-DguyM6v_.cjs +0 -41
- package/dist/ebnfDiagram-BXEA7PRR-DuJrkFn-.cjs +0 -1
- package/dist/erDiagram-JOGREHBK-DtyaQROs.cjs +0 -85
- package/dist/eventmodeling-45OFAUF4-COTtdYDJ.js +0 -3
- package/dist/eventmodeling-45OFAUF4-CPEyr9kU.cjs +0 -1
- package/dist/flowDiagram-UKHOOZJN-C7t5VpYH.js +0 -17
- package/dist/flowDiagram-UKHOOZJN-CdkElxh8.cjs +0 -1
- package/dist/ganttDiagram-PKOTCBZU-CFgz4r57.cjs +0 -292
- package/dist/gitGraph-TEB2WS4Q-C3qBT0GM.js +0 -3
- package/dist/gitGraph-TEB2WS4Q-a8KsoPmR.cjs +0 -1
- package/dist/info-DKCQHKI2-BEYhR6ip.cjs +0 -1
- package/dist/info-DKCQHKI2-BPF6-pOb.js +0 -3
- package/dist/infoDiagram-6WML65LV-CB6z_iKE.cjs +0 -2
- package/dist/init-07zIhv_j.cjs +0 -1
- package/dist/java-CUN_usaq.cjs +0 -1
- package/dist/javascript-UZXSyUuu.cjs +0 -1
- package/dist/json-Cp01TR_B.js +0 -36
- package/dist/json-usH_MUzR.cjs +0 -1
- package/dist/linear-Cl2-QuPP.cjs +0 -1
- package/dist/map-CwPlMWPw.cjs +0 -1
- package/dist/map-DU12fF3s.js +0 -241
- package/dist/markdown-qeo95R0i.cjs +0 -1
- package/dist/mermaid.core-BIq27e0A.js +0 -1068
- package/dist/mermaid.core-DpsSj3iy.cjs +0 -10
- package/dist/packet-7NZHBO7P-DqvBYJTR.js +0 -3
- package/dist/packet-7NZHBO7P-Dz0O2bgq.cjs +0 -1
- package/dist/path-Kklx0M1v.cjs +0 -1
- package/dist/pdf-aU0TN69t.cjs +0 -54
- package/dist/pegDiagram-VL7TDLO6-B4FslsmM.cjs +0 -1
- package/dist/pie-RZYD4A2V-Hi9UdoE3.cjs +0 -1
- package/dist/pie-RZYD4A2V-qnruo9sH.js +0 -3
- package/dist/pieDiagram-7S7Q4E2Y-CNzUVS2d.cjs +0 -39
- package/dist/python-BYJzTRkK.cjs +0 -1
- package/dist/radar-I7S5WNFK-Dqdssa34.cjs +0 -1
- package/dist/radar-I7S5WNFK-np_pJCO-.js +0 -3
- package/dist/railroad-3IZDKUUU-NILjDQft.cjs +0 -1
- package/dist/railroad-3IZDKUUU-sjKBeXxB.js +0 -3
- package/dist/railroad-abnf-AHOZXSZD-BojH9sxV.cjs +0 -1
- package/dist/railroad-abnf-AHOZXSZD-x5cC_e_R.js +0 -3
- package/dist/railroad-ebnf-EBAXGLYW-2mlWpz38.js +0 -3
- package/dist/railroad-ebnf-EBAXGLYW-BKCSut1M.cjs +0 -1
- package/dist/railroad-peg-LSFZ7HO6-CsH-gnsp.cjs +0 -1
- package/dist/railroad-peg-LSFZ7HO6-D5vguo03.js +0 -3
- package/dist/railroadDiagram-AXF67PYL-EO1cBHEj.cjs +0 -1
- package/dist/rust-ghVvEWhm.cjs +0 -1
- package/dist/scss-CKxh5HRg.cjs +0 -1
- package/dist/sequenceDiagram-SI44F4Z6-CuaCFBtR.cjs +0 -162
- package/dist/src-CR--T_NF.cjs +0 -1
- package/dist/stateDiagram-OKZ733FA-Dq6hI_pq.cjs +0 -1
- package/dist/stateDiagram-v2-UEYNNEHI-BmWUstzl.js +0 -30
- package/dist/stateDiagram-v2-UEYNNEHI-DZULVhS9.cjs +0 -1
- package/dist/swimlanes-SLNWSIFB-BMS6R0BK.cjs +0 -1
- package/dist/swimlanesDiagram-ULZ7WXOC-DxHKX_pj.cjs +0 -8
- package/dist/swimlanesDiagram-ULZ7WXOC-uXMuqsao.js +0 -31
- package/dist/timeline-definition-Z64GVDOM-PPJqDdOy.cjs +0 -120
- package/dist/treeView-QDETBFTQ-Cpg_YeQ4.cjs +0 -1
- package/dist/treeView-QDETBFTQ-DdpEhzZX.js +0 -3
- package/dist/treemap-6X3UGDF4-BeCuRpkA.js +0 -3
- package/dist/treemap-6X3UGDF4-CFAmnKaf.cjs +0 -1
- package/dist/typescript-clWeqIBY.cjs +0 -1
- package/dist/vennDiagram-T6HMQDX7-DqY7YgNx.cjs +0 -34
- package/dist/wardley-OPB4EBWU-B0jnKd8x.cjs +0 -1
- package/dist/wardley-OPB4EBWU-DlIk2K0J.js +0 -3
- package/dist/yaml-bAgWofBg.cjs +0 -1
- /package/dist/{sizeCapture-X5ZJPWSS-bJ2ZX4Du.cjs → sizeCapture-INFHLROL-bJ2ZX4Du.cjs} +0 -0
|
@@ -1,18 +1,94 @@
|
|
|
1
1
|
import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
|
-
import { m as t, p as n } from "./src-
|
|
3
|
-
import { T as r, b as i, x as a } from "./chunk-
|
|
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-
|
|
5
|
-
import { t as b } from "./line-
|
|
6
|
-
import { n as x } from "./chunk-
|
|
7
|
-
import { i as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
2
|
+
import { m as t, p as n } from "./src-BMMAFeC3.js";
|
|
3
|
+
import { T as r, b as i, x as a } from "./chunk-DU6HZSFF-CaHy-FdL.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-75Z2AOVW-Eg_bFxBJ.js";
|
|
5
|
+
import { t as b } from "./line-4_dF7rOW.js";
|
|
6
|
+
import { n as x, r as S } from "./chunk-GMAD6QVW-DCCx2Rg1.js";
|
|
7
|
+
import { i as C, n as ee } from "./chunk-P2QGCYS3-uCJfSNHC.js";
|
|
8
|
+
import { t as te } from "./rough.esm-D2JJJ0Ot.js";
|
|
9
|
+
import { t as w } from "./chunk-4HAMMTFA-dRm_HqMI.js";
|
|
10
|
+
import { n as T } from "./chunk-GVQU2GXP-BRMv2gX3.js";
|
|
11
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-OSK3NFVY.mjs
|
|
12
|
+
var E = /* @__PURE__ */ e((e, t) => {
|
|
13
|
+
if (t) return "translate(" + -e.width / 2 + ", " + -e.height / 2 + ")";
|
|
14
|
+
let n = e.x ?? 0, r = e.y ?? 0;
|
|
15
|
+
return "translate(" + -(n + e.width / 2) + ", " + -(r + e.height / 2) + ")";
|
|
16
|
+
}, "computeLabelTransform"), D = {
|
|
17
|
+
aggregation: 17.25,
|
|
18
|
+
extension: 17.25,
|
|
19
|
+
composition: 17.25,
|
|
20
|
+
dependency: 6,
|
|
21
|
+
lollipop: 13.5,
|
|
22
|
+
arrow_point: 4,
|
|
23
|
+
arrow_barb: 0,
|
|
24
|
+
arrow_barb_neo: 5.5
|
|
25
|
+
}, O = {
|
|
26
|
+
arrow_point: 4,
|
|
27
|
+
arrow_cross: 12.5,
|
|
28
|
+
arrow_circle: 12.5
|
|
29
|
+
};
|
|
30
|
+
function k(e, t) {
|
|
31
|
+
if (e === void 0 || t === void 0) return {
|
|
32
|
+
angle: 0,
|
|
33
|
+
deltaX: 0,
|
|
34
|
+
deltaY: 0
|
|
35
|
+
};
|
|
36
|
+
e = A(e), t = A(t);
|
|
37
|
+
let [n, r] = [e.x, e.y], [i, a] = [t.x, t.y], o = i - n, s = a - r;
|
|
38
|
+
return {
|
|
39
|
+
angle: Math.atan(s / o),
|
|
40
|
+
deltaX: o,
|
|
41
|
+
deltaY: s
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
e(k, "calculateDeltaAndAngle");
|
|
45
|
+
var A = /* @__PURE__ */ e((e) => Array.isArray(e) ? {
|
|
46
|
+
x: e[0],
|
|
47
|
+
y: e[1]
|
|
48
|
+
} : e, "pointTransformer"), ne = /* @__PURE__ */ e((t) => ({
|
|
49
|
+
x: /* @__PURE__ */ e(function(e, n, r) {
|
|
50
|
+
let i = 0, a = A(r[0]).x < A(r[r.length - 1]).x ? "left" : "right";
|
|
51
|
+
if (n === 0 && Object.hasOwn(D, t.arrowTypeStart)) {
|
|
52
|
+
let { angle: e, deltaX: n } = k(r[0], r[1]);
|
|
53
|
+
i = D[t.arrowTypeStart] * Math.cos(e) * (n >= 0 ? 1 : -1);
|
|
54
|
+
} else if (n === r.length - 1 && Object.hasOwn(D, t.arrowTypeEnd)) {
|
|
55
|
+
let { angle: e, deltaX: n } = k(r[r.length - 1], r[r.length - 2]);
|
|
56
|
+
i = D[t.arrowTypeEnd] * Math.cos(e) * (n >= 0 ? 1 : -1);
|
|
57
|
+
}
|
|
58
|
+
let o = Math.abs(A(e).x - A(r[r.length - 1]).x), s = Math.abs(A(e).y - A(r[r.length - 1]).y), c = Math.abs(A(e).x - A(r[0]).x), l = Math.abs(A(e).y - A(r[0]).y), u = D[t.arrowTypeStart], d = D[t.arrowTypeEnd];
|
|
59
|
+
if (o < d && o > 0 && s < d) {
|
|
60
|
+
let e = d + 1 - o;
|
|
61
|
+
e *= a === "right" ? -1 : 1, i -= e;
|
|
62
|
+
}
|
|
63
|
+
if (c < u && c > 0 && l < u) {
|
|
64
|
+
let e = u + 1 - c;
|
|
65
|
+
e *= a === "right" ? -1 : 1, i += e;
|
|
66
|
+
}
|
|
67
|
+
return A(e).x + i;
|
|
68
|
+
}, "x"),
|
|
69
|
+
y: /* @__PURE__ */ e(function(e, n, r) {
|
|
70
|
+
let i = 0, a = A(r[0]).y < A(r[r.length - 1]).y ? "down" : "up";
|
|
71
|
+
if (n === 0 && Object.hasOwn(D, t.arrowTypeStart)) {
|
|
72
|
+
let { angle: e, deltaY: n } = k(r[0], r[1]);
|
|
73
|
+
i = D[t.arrowTypeStart] * Math.abs(Math.sin(e)) * (n >= 0 ? 1 : -1);
|
|
74
|
+
} else if (n === r.length - 1 && Object.hasOwn(D, t.arrowTypeEnd)) {
|
|
75
|
+
let { angle: e, deltaY: n } = k(r[r.length - 1], r[r.length - 2]);
|
|
76
|
+
i = D[t.arrowTypeEnd] * Math.abs(Math.sin(e)) * (n >= 0 ? 1 : -1);
|
|
77
|
+
}
|
|
78
|
+
let o = Math.abs(A(e).y - A(r[r.length - 1]).y), s = Math.abs(A(e).x - A(r[r.length - 1]).x), c = Math.abs(A(e).y - A(r[0]).y), l = Math.abs(A(e).x - A(r[0]).x), u = D[t.arrowTypeStart], d = D[t.arrowTypeEnd];
|
|
79
|
+
if (o < d && o > 0 && s < d) {
|
|
80
|
+
let e = d + 1 - o;
|
|
81
|
+
e *= a === "up" ? -1 : 1, i -= e;
|
|
82
|
+
}
|
|
83
|
+
if (c < u && c > 0 && l < u) {
|
|
84
|
+
let e = u + 1 - c;
|
|
85
|
+
e *= a === "up" ? -1 : 1, i += e;
|
|
86
|
+
}
|
|
87
|
+
return A(e).y + i;
|
|
88
|
+
}, "y")
|
|
89
|
+
}), "getLineFunctionsWithOffset"), re = /* @__PURE__ */ e((e, t, n, r, i, a = !1, o) => {
|
|
90
|
+
t.arrowTypeStart && N(e, "start", t.arrowTypeStart, n, r, i, a, o), t.arrowTypeEnd && N(e, "end", t.arrowTypeEnd, n, r, i, a, o);
|
|
91
|
+
}, "addEdgeMarkers"), j = {
|
|
16
92
|
arrow_cross: {
|
|
17
93
|
type: "cross",
|
|
18
94
|
fill: !1
|
|
@@ -77,7 +153,7 @@ var ne = /* @__PURE__ */ e((e, t, n, r, i, a = !1, o) => {
|
|
|
77
153
|
type: "requirement_contains",
|
|
78
154
|
fill: !1
|
|
79
155
|
}
|
|
80
|
-
},
|
|
156
|
+
}, M = [
|
|
81
157
|
"cross",
|
|
82
158
|
"point",
|
|
83
159
|
"circle",
|
|
@@ -87,8 +163,9 @@ var ne = /* @__PURE__ */ e((e, t, n, r, i, a = !1, o) => {
|
|
|
87
163
|
"composition",
|
|
88
164
|
"dependency",
|
|
89
165
|
"barb"
|
|
90
|
-
],
|
|
91
|
-
|
|
166
|
+
], N = /* @__PURE__ */ e((e, n, r, i, a, o, s = !1, c) => {
|
|
167
|
+
if (!r || r === "none") return;
|
|
168
|
+
let l = j[r], u = l && M.includes(l.type);
|
|
92
169
|
if (!l) {
|
|
93
170
|
t.warn(`Unknown arrow type: ${r}`);
|
|
94
171
|
return;
|
|
@@ -107,13 +184,13 @@ var ne = /* @__PURE__ */ e((e, t, n, r, i, a = !1, o) => {
|
|
|
107
184
|
}
|
|
108
185
|
e.attr(`marker-${n}`, `url(${i}#${t})`);
|
|
109
186
|
} else e.attr(`marker-${n}`, `url(${i}#${d})`);
|
|
110
|
-
}, "addEdgeMarker"),
|
|
111
|
-
|
|
112
|
-
}, "clear"),
|
|
113
|
-
let o = a(), s = r(o), { labelStyles: c } =
|
|
187
|
+
}, "addEdgeMarker"), ie = /* @__PURE__ */ e((e) => typeof e == "string" ? e : a()?.flowchart?.curve, "resolveEdgeCurveType"), P = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new Map(), I = /* @__PURE__ */ e(() => {
|
|
188
|
+
P.clear(), F.clear();
|
|
189
|
+
}, "clear"), L = /* @__PURE__ */ e((e) => !!(e.label || e.startLabelLeft || e.startLabelRight || e.endLabelLeft || e.endLabelRight), "hasEdgeLabel"), R = /* @__PURE__ */ e((e) => e ? typeof e == "string" ? e : e.reduce((e, t) => e + ";" + t, "") : "", "getLabelStyles"), z = /* @__PURE__ */ e(async (e, i) => {
|
|
190
|
+
let o = a(), s = r(o), { labelStyles: c } = C(i);
|
|
114
191
|
i.labelStyle = c;
|
|
115
192
|
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:
|
|
193
|
+
style: R(i.labelStyle),
|
|
117
194
|
useHtmlLabels: s,
|
|
118
195
|
addSvgBackground: !0,
|
|
119
196
|
isNode: !1,
|
|
@@ -121,75 +198,77 @@ var ne = /* @__PURE__ */ e((e, t, n, r, i, a = !1, o) => {
|
|
|
121
198
|
width: void 0
|
|
122
199
|
}, o);
|
|
123
200
|
u.node().appendChild(f), t.info("abc82", i, i.labelType);
|
|
124
|
-
let p
|
|
201
|
+
let p, m;
|
|
125
202
|
if (s) {
|
|
126
203
|
let e = f.children[0], t = n(f);
|
|
127
|
-
p = e.getBoundingClientRect(), m = p, t.attr("width", p.width), t.attr("height", p.height);
|
|
204
|
+
p = await S.measure(() => e.getBoundingClientRect()), m = p, t.attr("width", p.width), t.attr("height", p.height);
|
|
128
205
|
} else {
|
|
129
206
|
let e = n(f).select("text").node();
|
|
130
|
-
|
|
207
|
+
await S.measure(() => {
|
|
208
|
+
p = f.getBBox(), m = e && typeof e.getBBox == "function" ? e.getBBox() : p;
|
|
209
|
+
});
|
|
131
210
|
}
|
|
132
|
-
u.attr("transform",
|
|
211
|
+
u.attr("transform", E(m, s)), P.set(i.id, l), i.width = p.width, i.height = p.height;
|
|
133
212
|
let h;
|
|
134
213
|
if (i.startLabelLeft) {
|
|
135
|
-
let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"), a = await
|
|
214
|
+
let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"), a = await w(r, i.startLabelLeft, R(i.labelStyle) || "", !1, !1);
|
|
136
215
|
h = a;
|
|
137
216
|
let o = a.getBBox();
|
|
138
217
|
if (s) {
|
|
139
218
|
let e = a.children[0], t = n(a);
|
|
140
219
|
o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
|
|
141
220
|
}
|
|
142
|
-
r.attr("transform",
|
|
221
|
+
r.attr("transform", E(o, s)), F.get(i.id) || F.set(i.id, {}), F.get(i.id).startLeft = t, B(h, i.startLabelLeft);
|
|
143
222
|
}
|
|
144
223
|
if (i.startLabelRight) {
|
|
145
|
-
let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"), a = await
|
|
224
|
+
let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"), a = await w(r, i.startLabelRight, R(i.labelStyle) || "", !1, !1);
|
|
146
225
|
h = a;
|
|
147
226
|
let o = a.getBBox();
|
|
148
227
|
if (s) {
|
|
149
228
|
let e = a.children[0], t = n(a);
|
|
150
229
|
o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
|
|
151
230
|
}
|
|
152
|
-
r.attr("transform",
|
|
231
|
+
r.attr("transform", E(o, s)), F.get(i.id) || F.set(i.id, {}), F.get(i.id).startRight = t, B(h, i.startLabelRight);
|
|
153
232
|
}
|
|
154
233
|
if (i.endLabelLeft) {
|
|
155
|
-
let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"), a = await
|
|
234
|
+
let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"), a = await w(t, i.endLabelLeft, R(i.labelStyle) || "", !1, !1);
|
|
156
235
|
h = a;
|
|
157
236
|
let o = a.getBBox();
|
|
158
237
|
if (s) {
|
|
159
238
|
let e = a.children[0], t = n(a);
|
|
160
239
|
o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
|
|
161
240
|
}
|
|
162
|
-
r.attr("transform",
|
|
241
|
+
r.attr("transform", E(o, s)), F.get(i.id) || F.set(i.id, {}), F.get(i.id).endLeft = t, B(h, i.endLabelLeft);
|
|
163
242
|
}
|
|
164
243
|
if (i.endLabelRight) {
|
|
165
|
-
let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"), a = await
|
|
244
|
+
let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"), a = await w(t, i.endLabelRight, R(i.labelStyle) || "", !1, !1);
|
|
166
245
|
h = a;
|
|
167
246
|
let o = a.getBBox();
|
|
168
247
|
if (s) {
|
|
169
248
|
let e = a.children[0], t = n(a);
|
|
170
249
|
o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
|
|
171
250
|
}
|
|
172
|
-
r.attr("transform",
|
|
251
|
+
r.attr("transform", E(o, s)), F.get(i.id) || F.set(i.id, {}), F.get(i.id).endRight = t, B(h, i.endLabelRight);
|
|
173
252
|
}
|
|
174
253
|
return f;
|
|
175
254
|
}, "insertEdgeLabel");
|
|
176
|
-
function
|
|
255
|
+
function B(e, t) {
|
|
177
256
|
r(a()) && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px");
|
|
178
257
|
}
|
|
179
|
-
e(
|
|
180
|
-
var
|
|
181
|
-
t.debug("Moving label abc88 ", e.id, e.label,
|
|
182
|
-
let r = n.updatedPath ? n.updatedPath : n.originalPath, { subGraphTitleTotalMargin:
|
|
258
|
+
e(B, "setTerminalWidth");
|
|
259
|
+
var V = /* @__PURE__ */ e((e, n) => {
|
|
260
|
+
t.debug("Moving label abc88 ", e.id, e.label, P.get(e.id), n);
|
|
261
|
+
let r = n.updatedPath ? n.updatedPath : n.originalPath, i = a(), { subGraphTitleTotalMargin: o } = T(i);
|
|
183
262
|
if (e.label) {
|
|
184
|
-
let
|
|
263
|
+
let i = P.get(e.id), a = e.x, s = e.y;
|
|
185
264
|
if (r) {
|
|
186
265
|
let i = m.calcLabelPosition(r);
|
|
187
|
-
t.debug("Moving label " + e.label + " from (",
|
|
266
|
+
t.debug("Moving label " + e.label + " from (", a, ",", s, ") to (", i.x, ",", i.y, ") abc88"), n.updatedPath && (a = i.x, s = i.y);
|
|
188
267
|
}
|
|
189
|
-
|
|
268
|
+
i.attr("transform", `translate(${a}, ${s + o / 2})`);
|
|
190
269
|
}
|
|
191
270
|
if (e.startLabelLeft) {
|
|
192
|
-
let t =
|
|
271
|
+
let t = F.get(e.id).startLeft, n = e.x, i = e.y;
|
|
193
272
|
if (r) {
|
|
194
273
|
let t = m.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", r);
|
|
195
274
|
n = t.x, i = t.y;
|
|
@@ -197,7 +276,7 @@ var R = /* @__PURE__ */ e((e, n) => {
|
|
|
197
276
|
t.attr("transform", `translate(${n}, ${i})`);
|
|
198
277
|
}
|
|
199
278
|
if (e.startLabelRight) {
|
|
200
|
-
let t =
|
|
279
|
+
let t = F.get(e.id).startRight, n = e.x, i = e.y;
|
|
201
280
|
if (r) {
|
|
202
281
|
let t = m.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", r);
|
|
203
282
|
n = t.x, i = t.y;
|
|
@@ -205,7 +284,7 @@ var R = /* @__PURE__ */ e((e, n) => {
|
|
|
205
284
|
t.attr("transform", `translate(${n}, ${i})`);
|
|
206
285
|
}
|
|
207
286
|
if (e.endLabelLeft) {
|
|
208
|
-
let t =
|
|
287
|
+
let t = F.get(e.id).endLeft, n = e.x, i = e.y;
|
|
209
288
|
if (r) {
|
|
210
289
|
let t = m.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", r);
|
|
211
290
|
n = t.x, i = t.y;
|
|
@@ -213,14 +292,14 @@ var R = /* @__PURE__ */ e((e, n) => {
|
|
|
213
292
|
t.attr("transform", `translate(${n}, ${i})`);
|
|
214
293
|
}
|
|
215
294
|
if (e.endLabelRight) {
|
|
216
|
-
let t =
|
|
295
|
+
let t = F.get(e.id).endRight, n = e.x, i = e.y;
|
|
217
296
|
if (r) {
|
|
218
297
|
let t = m.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", r);
|
|
219
298
|
n = t.x, i = t.y;
|
|
220
299
|
}
|
|
221
300
|
t.attr("transform", `translate(${n}, ${i})`);
|
|
222
301
|
}
|
|
223
|
-
}, "positionEdgeLabel"),
|
|
302
|
+
}, "positionEdgeLabel"), ae = /* @__PURE__ */ e((e, t) => {
|
|
224
303
|
if (!e?.isLabelEdge || !e?.id?.endsWith("-to-label") || !Array.isArray(t) || t.length !== 2) return t;
|
|
225
304
|
let [n, r] = t, i = Math.abs(r.x - n.x), a = Math.abs(r.y - n.y);
|
|
226
305
|
return i < .001 || a < .001 ? t : a >= i ? [
|
|
@@ -238,10 +317,10 @@ var R = /* @__PURE__ */ e((e, n) => {
|
|
|
238
317
|
},
|
|
239
318
|
r
|
|
240
319
|
];
|
|
241
|
-
}, "orthogonalizeToLabelClippedPoints"),
|
|
320
|
+
}, "orthogonalizeToLabelClippedPoints"), H = /* @__PURE__ */ e((e, t) => {
|
|
242
321
|
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
322
|
return i >= o || a >= s;
|
|
244
|
-
}, "outsideNode"),
|
|
323
|
+
}, "outsideNode"), U = /* @__PURE__ */ e((e, n, r) => {
|
|
245
324
|
t.debug(`intersection calc abc89:
|
|
246
325
|
outsidePoint: ${JSON.stringify(n)}
|
|
247
326
|
insidePoint : ${JSON.stringify(r)}
|
|
@@ -255,7 +334,8 @@ var R = /* @__PURE__ */ e((e, n) => {
|
|
|
255
334
|
y: r.y < n.y ? r.y + u - e : r.y - u + e
|
|
256
335
|
};
|
|
257
336
|
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
|
-
}
|
|
337
|
+
}
|
|
338
|
+
{
|
|
259
339
|
c = r.x < n.x ? n.x - s - i : i - s - n.x;
|
|
260
340
|
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
341
|
return t.debug(`sides calc abc89, Q ${u}, q ${e}, R ${d}, r ${c}`, {
|
|
@@ -266,12 +346,12 @@ var R = /* @__PURE__ */ e((e, n) => {
|
|
|
266
346
|
y: o
|
|
267
347
|
};
|
|
268
348
|
}
|
|
269
|
-
}, "intersection"),
|
|
349
|
+
}, "intersection"), W = /* @__PURE__ */ e((e, n) => {
|
|
270
350
|
t.warn("abc88 cutPathAtIntersect", e, n);
|
|
271
351
|
let r = [], i = e[0], a = !1;
|
|
272
352
|
return e.forEach((e) => {
|
|
273
|
-
if (t.info("abc88 checking point", e, n), !
|
|
274
|
-
let o =
|
|
353
|
+
if (t.info("abc88 checking point", e, n), !H(n, e) && !a) {
|
|
354
|
+
let o = U(n, i, e);
|
|
275
355
|
t.debug("abc88 inside", e, i, o), t.debug("abc88 intersection", o, n);
|
|
276
356
|
let s = !1;
|
|
277
357
|
r.forEach((e) => {
|
|
@@ -280,7 +360,7 @@ var R = /* @__PURE__ */ e((e, n) => {
|
|
|
280
360
|
} else t.warn("abc88 outside", e, i), i = e, a || r.push(e);
|
|
281
361
|
}), t.debug("returning points", r), r;
|
|
282
362
|
}, "cutPathAtIntersect");
|
|
283
|
-
function
|
|
363
|
+
function G(e) {
|
|
284
364
|
let t = [], n = [];
|
|
285
365
|
for (let r = 1; r < e.length - 1; r++) {
|
|
286
366
|
let i = e[r - 1], a = e[r], o = e[r + 1];
|
|
@@ -291,17 +371,17 @@ function H(e) {
|
|
|
291
371
|
cornerPointPositions: n
|
|
292
372
|
};
|
|
293
373
|
}
|
|
294
|
-
e(
|
|
295
|
-
var
|
|
374
|
+
e(G, "extractCornerPoints");
|
|
375
|
+
var K = /* @__PURE__ */ e(function(e, t, n) {
|
|
296
376
|
let r = t.x - e.x, i = t.y - e.y, a = n / Math.sqrt(r * r + i * i);
|
|
297
377
|
return {
|
|
298
378
|
x: t.x - a * r,
|
|
299
379
|
y: t.y - a * i
|
|
300
380
|
};
|
|
301
|
-
}, "findAdjacentPoint"),
|
|
302
|
-
let { cornerPointPositions: n } =
|
|
381
|
+
}, "findAdjacentPoint"), oe = /* @__PURE__ */ e(function(e) {
|
|
382
|
+
let { cornerPointPositions: n } = G(e), r = [];
|
|
303
383
|
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 =
|
|
384
|
+
let n = e[i - 1], a = e[i + 1], o = e[i], s = K(n, o, 5), c = K(a, o, 5), l = c.x - s.x, u = c.y - s.y;
|
|
305
385
|
r.push(s);
|
|
306
386
|
let d = Math.sqrt(2) * 2, f = {
|
|
307
387
|
x: o.x,
|
|
@@ -316,134 +396,136 @@ var U = /* @__PURE__ */ e(function(e, t, n) {
|
|
|
316
396
|
}) : t.debug("Corner point skipping fixing", Math.abs(a.x - n.x), Math.abs(a.y - n.y)), r.push(f, c);
|
|
317
397
|
} else r.push(e[i]);
|
|
318
398
|
return r;
|
|
319
|
-
}, "fixCorners"),
|
|
399
|
+
}, "fixCorners"), se = /* @__PURE__ */ e((e, t, n) => {
|
|
320
400
|
let r = e - t - n, i = Math.floor(r / 4);
|
|
321
|
-
return `0 ${t} ${Array(i).fill("2 2").join(" ")} ${n}`;
|
|
322
|
-
}, "generateDashArray"),
|
|
323
|
-
if (!
|
|
324
|
-
let { handDrawnSeed:
|
|
325
|
-
var
|
|
326
|
-
let
|
|
327
|
-
for (let e in r.cssCompiledStyles)
|
|
328
|
-
if (
|
|
329
|
-
if (
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
401
|
+
return `0 ${t} ${Array(Number.isFinite(i) ? Math.max(0, i) : 0).fill("2 2").join(" ")} ${n}`;
|
|
402
|
+
}, "generateDashArray"), q = /* @__PURE__ */ e(function(e, r, i, x, S, C, w, T = !1) {
|
|
403
|
+
if (!w) throw Error(`insertEdge: missing diagramId for edge "${r.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);
|
|
404
|
+
let { handDrawnSeed: E, layout: D } = a(), k = r.points, A = !1, j = S;
|
|
405
|
+
var M = C;
|
|
406
|
+
let N = [];
|
|
407
|
+
for (let e in r.cssCompiledStyles) ee(e) || N.push(r.cssCompiledStyles[e]);
|
|
408
|
+
if (D === "swimlane") {
|
|
409
|
+
if (M.intersect && j.intersect && Array.isArray(k) && k.length >= 2) {
|
|
410
|
+
if (k.length === 2) k = [j.intersect(k[0]), M.intersect(k[1])];
|
|
411
|
+
else {
|
|
412
|
+
let e = k.slice(1, -1), t = e[0], n = e[e.length - 1], r = .5, i = Math.abs(k[k.length - 1].x - n.x) < r && Math.abs(k[k.length - 1].y - n.y) < r, a = j.intersect(t), o = i ? n : M.intersect(n), s = Math.abs(o.x - n.x) < r && Math.abs(o.y - n.y) < r, c = Math.abs(a.x - t.x) < r && Math.abs(a.y - t.y) < r ? [] : [a], l = s ? [] : [o];
|
|
413
|
+
k = [
|
|
414
|
+
...c,
|
|
415
|
+
...e,
|
|
416
|
+
...l
|
|
417
|
+
];
|
|
418
|
+
}
|
|
337
419
|
}
|
|
338
|
-
|
|
339
|
-
} else
|
|
340
|
-
let
|
|
341
|
-
r.toCluster && (t.info("to cluster abc88", i.get(r.toCluster)),
|
|
342
|
-
let
|
|
343
|
-
|
|
344
|
-
let
|
|
345
|
-
switch (
|
|
420
|
+
k = ae(r, k);
|
|
421
|
+
} else M.intersect && j.intersect && !T && (k = k.slice(1, r.points.length - 1), k.unshift(j.intersect(k[0])), k.push(M.intersect(k[k.length - 1])));
|
|
422
|
+
let P = btoa(JSON.stringify(k));
|
|
423
|
+
r.toCluster && (t.info("to cluster abc88", i.get(r.toCluster)), k = W(r.points, i.get(r.toCluster).node), A = !0), r.fromCluster && (t.debug("from cluster abc88", i.get(r.fromCluster), JSON.stringify(k, null, 2)), k = W(k.reverse(), i.get(r.fromCluster).node).reverse(), A = !0);
|
|
424
|
+
let F = k.filter((e) => !Number.isNaN(e.y)), I = ie(r.curve);
|
|
425
|
+
I !== "rounded" && (F = oe(F));
|
|
426
|
+
let L = _;
|
|
427
|
+
switch (I) {
|
|
346
428
|
case "linear":
|
|
347
|
-
|
|
429
|
+
L = _;
|
|
348
430
|
break;
|
|
349
431
|
case "basis":
|
|
350
|
-
|
|
432
|
+
L = p;
|
|
351
433
|
break;
|
|
352
434
|
case "cardinal":
|
|
353
|
-
|
|
435
|
+
L = o;
|
|
354
436
|
break;
|
|
355
437
|
case "bumpX":
|
|
356
|
-
|
|
438
|
+
L = v;
|
|
357
439
|
break;
|
|
358
440
|
case "bumpY":
|
|
359
|
-
|
|
441
|
+
L = h;
|
|
360
442
|
break;
|
|
361
443
|
case "catmullRom":
|
|
362
|
-
|
|
444
|
+
L = l;
|
|
363
445
|
break;
|
|
364
446
|
case "monotoneX":
|
|
365
|
-
|
|
447
|
+
L = u;
|
|
366
448
|
break;
|
|
367
449
|
case "monotoneY":
|
|
368
|
-
|
|
450
|
+
L = f;
|
|
369
451
|
break;
|
|
370
452
|
case "natural":
|
|
371
|
-
|
|
453
|
+
L = d;
|
|
372
454
|
break;
|
|
373
455
|
case "step":
|
|
374
|
-
|
|
456
|
+
L = s;
|
|
375
457
|
break;
|
|
376
458
|
case "stepAfter":
|
|
377
|
-
|
|
459
|
+
L = c;
|
|
378
460
|
break;
|
|
379
461
|
case "stepBefore":
|
|
380
|
-
|
|
462
|
+
L = g;
|
|
381
463
|
break;
|
|
382
464
|
case "rounded":
|
|
383
|
-
|
|
465
|
+
L = _;
|
|
384
466
|
break;
|
|
385
|
-
default:
|
|
467
|
+
default: L = p;
|
|
386
468
|
}
|
|
387
|
-
let { x:
|
|
469
|
+
let { x: R, y: z } = ne(r), B = b().x(R).y(z).curve(L), V;
|
|
388
470
|
switch (r.thickness) {
|
|
389
471
|
case "normal":
|
|
390
|
-
|
|
472
|
+
V = "edge-thickness-normal";
|
|
391
473
|
break;
|
|
392
474
|
case "thick":
|
|
393
|
-
|
|
475
|
+
V = "edge-thickness-thick";
|
|
394
476
|
break;
|
|
395
477
|
case "invisible":
|
|
396
|
-
|
|
478
|
+
V = "edge-thickness-invisible";
|
|
397
479
|
break;
|
|
398
|
-
default:
|
|
480
|
+
default: V = "edge-thickness-normal";
|
|
399
481
|
}
|
|
400
482
|
switch (r.pattern) {
|
|
401
483
|
case "solid":
|
|
402
|
-
|
|
484
|
+
V += " edge-pattern-solid";
|
|
403
485
|
break;
|
|
404
486
|
case "dotted":
|
|
405
|
-
|
|
487
|
+
V += " edge-pattern-dotted";
|
|
406
488
|
break;
|
|
407
489
|
case "dashed":
|
|
408
|
-
|
|
490
|
+
V += " edge-pattern-dashed";
|
|
409
491
|
break;
|
|
410
|
-
default:
|
|
492
|
+
default: V += " edge-pattern-solid";
|
|
411
493
|
}
|
|
412
|
-
let
|
|
413
|
-
r.animate && (
|
|
414
|
-
let
|
|
494
|
+
let H, U = I === "rounded" ? J(X(F, r), 5) : B(F), G = Array.isArray(r.style) ? r.style : [r.style], K = G.find((e) => e?.startsWith("stroke:")), q = "";
|
|
495
|
+
r.animate && (q = "edge-animation-fast"), r.animation && (q = "edge-animation-" + r.animation);
|
|
496
|
+
let Y = !1;
|
|
415
497
|
if (r.look === "handDrawn") {
|
|
416
498
|
let t = te.svg(e);
|
|
417
|
-
Object.assign([],
|
|
418
|
-
let i = t.path(
|
|
499
|
+
Object.assign([], F);
|
|
500
|
+
let i = t.path(U, {
|
|
419
501
|
roughness: .3,
|
|
420
|
-
seed:
|
|
502
|
+
seed: E
|
|
421
503
|
});
|
|
422
|
-
|
|
423
|
-
let a =
|
|
424
|
-
|
|
504
|
+
V += " transition", H = n(i).select("path").attr("id", `${w}-${r.id}`).attr("class", " " + V + (r.classes ? " " + r.classes : "") + (q ? " " + q : "")).attr("style", G ? G.reduce((e, t) => e + ";" + t, "") : "");
|
|
505
|
+
let a = H.attr("d");
|
|
506
|
+
H.attr("d", a), e.node().appendChild(H.node());
|
|
425
507
|
} else {
|
|
426
|
-
let t =
|
|
427
|
-
|
|
428
|
-
let a =
|
|
429
|
-
if (r.look === "neo" && !
|
|
430
|
-
let e = `stroke-dasharray: ${r.pattern === "dotted" || r.pattern === "dashed" ?
|
|
431
|
-
|
|
508
|
+
let t = N.join(";"), n = G ? G.reduce((e, t) => e + t + ";", "") : "", i = (t ? t + ";" + n + ";" : n) + ";" + (G ? G.reduce((e, t) => e + ";" + t, "") : "");
|
|
509
|
+
H = e.append("path").attr("d", U).attr("id", `${w}-${r.id}`).attr("class", " " + V + (r.classes ? " " + r.classes : "") + (q ? " " + q : "")).attr("style", i), K = i.match(/stroke:([^;]+)/)?.[1], Y = r.animate === !0 || !!r.animation || t.includes("animation");
|
|
510
|
+
let a = H.node(), o = typeof a.getTotalLength == "function" ? a.getTotalLength() : 0, s = O[r.arrowTypeStart] || 0, c = O[r.arrowTypeEnd] || 0;
|
|
511
|
+
if (r.look === "neo" && !Y) {
|
|
512
|
+
let e = `stroke-dasharray: ${r.pattern === "dotted" || r.pattern === "dashed" ? se(o, s, c) : `0 ${s} ${o - s - c} ${c}`}; stroke-dashoffset: 0;`;
|
|
513
|
+
H.attr("style", e + H.attr("style"));
|
|
432
514
|
}
|
|
433
515
|
}
|
|
434
|
-
|
|
516
|
+
H.attr("data-edge", !0), H.attr("data-et", "edge"), H.attr("data-id", r.id), H.attr("data-points", P), H.attr("data-look", y(r.look)), r.showPoints && F.forEach((t) => {
|
|
435
517
|
e.append("circle").style("stroke", "red").style("fill", "red").attr("r", 1).attr("cx", t.x).attr("cy", t.y);
|
|
436
518
|
});
|
|
437
|
-
let
|
|
438
|
-
(a().flowchart.arrowMarkerAbsolute || a().state.arrowMarkerAbsolute) && (
|
|
439
|
-
let
|
|
440
|
-
|
|
441
|
-
let ce = Math.floor(
|
|
442
|
-
m.isLabelCoordinateInPath(le,
|
|
519
|
+
let Z = "";
|
|
520
|
+
(a().flowchart.arrowMarkerAbsolute || a().state.arrowMarkerAbsolute) && (Z = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, Z = Z.replace(/\(/g, "\\(").replace(/\)/g, "\\)")), t.info("arrowTypeStart", r.arrowTypeStart), t.info("arrowTypeEnd", r.arrowTypeEnd);
|
|
521
|
+
let Q = !Y && r?.look === "neo";
|
|
522
|
+
re(H, r, Z, w, x, Q, K);
|
|
523
|
+
let ce = Math.floor(k.length / 2), le = k[ce];
|
|
524
|
+
m.isLabelCoordinateInPath(le, H.attr("d")) || (A = !0);
|
|
443
525
|
let $ = {};
|
|
444
|
-
return
|
|
526
|
+
return A && ($.updatedPath = k), $.originalPath = r.points, $;
|
|
445
527
|
}, "insertEdge");
|
|
446
|
-
function
|
|
528
|
+
function J(e, t) {
|
|
447
529
|
if (e.length < 2) return "";
|
|
448
530
|
let n = "", r = e.length, i = 1e-5;
|
|
449
531
|
for (let a = 0; a < r; a++) {
|
|
@@ -467,8 +549,8 @@ function G(e, t) {
|
|
|
467
549
|
}
|
|
468
550
|
return n;
|
|
469
551
|
}
|
|
470
|
-
e(
|
|
471
|
-
function
|
|
552
|
+
e(J, "generateRoundedPath");
|
|
553
|
+
function Y(e, t) {
|
|
472
554
|
if (!e || !t) return {
|
|
473
555
|
angle: 0,
|
|
474
556
|
deltaX: 0,
|
|
@@ -481,40 +563,40 @@ function K(e, t) {
|
|
|
481
563
|
deltaY: r
|
|
482
564
|
};
|
|
483
565
|
}
|
|
484
|
-
e(
|
|
485
|
-
function
|
|
566
|
+
e(Y, "calculateDeltaAndAngle");
|
|
567
|
+
function X(e, t) {
|
|
486
568
|
let n = e.map((e) => ({ ...e }));
|
|
487
|
-
if (e.length >= 2 &&
|
|
488
|
-
let r =
|
|
569
|
+
if (e.length >= 2 && D[t.arrowTypeStart]) {
|
|
570
|
+
let r = D[t.arrowTypeStart], i = e[0], a = e[1], { angle: o } = Y(i, a), s = r * Math.cos(o), c = r * Math.sin(o);
|
|
489
571
|
n[0].x = i.x + s, n[0].y = i.y + c;
|
|
490
572
|
}
|
|
491
573
|
let r = e.length;
|
|
492
|
-
if (r >= 2 &&
|
|
493
|
-
let i =
|
|
574
|
+
if (r >= 2 && D[t.arrowTypeEnd]) {
|
|
575
|
+
let i = D[t.arrowTypeEnd], a = e[r - 1], o = e[r - 2], { angle: s } = Y(o, a), c = i * Math.cos(s), l = i * Math.sin(s);
|
|
494
576
|
n[r - 1].x = a.x - c, n[r - 1].y = a.y - l;
|
|
495
577
|
}
|
|
496
578
|
return n;
|
|
497
579
|
}
|
|
498
|
-
e(
|
|
499
|
-
var
|
|
580
|
+
e(X, "applyMarkerOffsetsToPoints");
|
|
581
|
+
var Z = /* @__PURE__ */ e((e, t, n, r) => {
|
|
500
582
|
t.forEach((t) => {
|
|
501
|
-
|
|
583
|
+
Q[t](e, n, r);
|
|
502
584
|
});
|
|
503
|
-
}, "insertMarkers"),
|
|
585
|
+
}, "insertMarkers"), Q = {
|
|
504
586
|
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");
|
|
587
|
+
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");
|
|
506
588
|
}, "extension"),
|
|
507
589
|
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");
|
|
590
|
+
e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionStart").attr("class", "marker composition " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionEnd").attr("class", "marker composition " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionStart-margin").attr("class", "marker composition " + t).attr("refX", 15).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("viewBox", "0 0 15 15").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionEnd-margin").attr("class", "marker composition " + t).attr("refX", 3.5).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
|
|
509
591
|
}, "composition"),
|
|
510
592
|
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");
|
|
593
|
+
e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationStart").attr("class", "marker aggregation " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationEnd").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationStart-margin").attr("class", "marker aggregation " + t).attr("refX", 15).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 2).attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationEnd-margin").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 2).attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
|
|
512
594
|
}, "aggregation"),
|
|
513
595
|
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");
|
|
596
|
+
e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyStart").attr("class", "marker dependency " + t).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyEnd").attr("class", "marker dependency " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyStart-margin").attr("class", "marker dependency " + t).attr("refX", 4).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyEnd-margin").attr("class", "marker dependency " + t).attr("refX", 16).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
|
|
515
597
|
}, "dependency"),
|
|
516
598
|
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);
|
|
599
|
+
e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopStart").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopEnd").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopStart-margin").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6).attr("stroke-width", 2), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopEnd-margin").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6).attr("stroke-width", 2);
|
|
518
600
|
}, "lollipop"),
|
|
519
601
|
point: /* @__PURE__ */ e((e, t, n) => {
|
|
520
602
|
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");
|
|
@@ -585,6 +667,6 @@ var J = /* @__PURE__ */ e((e, t, n, r) => {
|
|
|
585
667
|
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
668
|
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
669
|
}, "requirement_contains_neo")
|
|
588
|
-
},
|
|
670
|
+
}, ce = Z;
|
|
589
671
|
//#endregion
|
|
590
|
-
export {
|
|
672
|
+
export { z as a, V as c, q as i, F as l, P as n, D as o, L as r, ce as s, I as t };
|