@pi-outpost/embed 0.32.4 → 0.34.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-VCTEODGH-SjZtzoAs.cjs → abnfDiagram-YUKMZFIV-CgM8_qF6.cjs} +1 -1
- package/dist/{abnfDiagram-VCTEODGH-BX4P82Y6.js → abnfDiagram-YUKMZFIV-dNHR2FX4.js} +5 -5
- package/dist/architecture-WOLXFQ4H-DupyKILn.cjs +1 -0
- package/dist/architecture-WOLXFQ4H-X4ZWxzi-.js +3 -0
- package/dist/{architectureDiagram-5GKGNRK7-BRdxCCja.js → architectureDiagram-47P4ROYG-C_rUoWaO.js} +31 -31
- package/dist/{architectureDiagram-5GKGNRK7-wrDPdf3y.cjs → architectureDiagram-47P4ROYG-bflaQP1L.cjs} +3 -3
- package/dist/{blockDiagram-OSKFZWR5-Boo8WJyt.cjs → blockDiagram-E7TT5TSB-BKw9FE2U.cjs} +19 -8
- package/dist/{blockDiagram-OSKFZWR5-B1pU8Z2f.js → blockDiagram-E7TT5TSB-CEa2A5E9.js} +217 -193
- package/dist/c4Diagram-CRA5TL53-C-PuMGA5.cjs +38 -0
- package/dist/{c4Diagram-7LVT6UL2-WfERxhw2.js → c4Diagram-CRA5TL53-CtJh9DsO.js} +283 -273
- package/dist/channel-BjC1TKrU.cjs +1 -0
- package/dist/{channel-Cf_XiG-0.js → channel-DCXZw5aW.js} +1 -1
- package/dist/{chunk-OSK3NFVY-BUXOUgUl.js → chunk-2BW5OAIV-DWtmlmt_.js} +178 -154
- package/dist/chunk-2BW5OAIV-FkhgcL6B.cjs +10 -0
- package/dist/{chunk-75Z2AOVW-DoA8rENV.js → chunk-3YJQHVM4-BNbfg-7y.js} +235 -231
- package/dist/chunk-3YJQHVM4-ChvNe1M8.cjs +2 -0
- package/dist/chunk-4EA7E6EY-3OELTJ93.cjs +1 -0
- package/dist/{chunk-P2QGCYS3-BoMkrMIF.js → chunk-4EA7E6EY-B5P7n2an.js} +6 -6
- package/dist/{chunk-F27PBJKO-s9M3oGHp.js → chunk-7TKQ45FW-CD1KuemG.js} +2 -2
- package/dist/{chunk-F27PBJKO-3UPgzIlN.cjs → chunk-7TKQ45FW-Djscho_M.cjs} +1 -1
- package/dist/{chunk-SVP7TREG-CTKSOFlx.cjs → chunk-AW2ZBBNX-C4uNh90t.cjs} +3 -3
- package/dist/{chunk-SVP7TREG-weNUySou.js → chunk-AW2ZBBNX-CVsDDdv5.js} +33 -33
- package/dist/{chunk-GVQU2GXP-iZT_vNLp.cjs → chunk-DBDB3WZW-DSRcln4l.cjs} +1 -1
- package/dist/{chunk-GVQU2GXP-BhLneNgJ.js → chunk-DBDB3WZW-DpEOsLsQ.js} +3 -3
- package/dist/chunk-DUW6YSOI-2RXTEh_8.cjs +1 -0
- package/dist/chunk-DUW6YSOI-CVhxvrBO.js +10 -0
- package/dist/{chunk-GMAD6QVW-DZ2r0pLj.js → chunk-E2ZNV5FY-Bu796yUY.js} +354 -361
- package/dist/chunk-E2ZNV5FY-DIRTchKA.cjs +72 -0
- package/dist/chunk-EU5HNXII-DNBbmfcI.cjs +213 -0
- package/dist/{chunk-3NF5O7KM-DQV4G__C.js → chunk-EU5HNXII-DW-QTb0f.js} +426 -357
- package/dist/chunk-FVRAUYC3-Crqd-lTD.cjs +1 -0
- package/dist/chunk-FVRAUYC3-tiT7dtx-.js +356 -0
- package/dist/{chunk-PWAF6VOD-9dCi1q-p.js → chunk-HJ2JQQFS-CgYTXthn.js} +2 -2
- package/dist/{chunk-PWAF6VOD-CZZKCekP.cjs → chunk-HJ2JQQFS-DnrogIdt.cjs} +1 -1
- package/dist/chunk-HTAEGDNF-D4u24-lD.js +236 -0
- package/dist/chunk-HTAEGDNF-I4JlqwMr.cjs +1 -0
- package/dist/chunk-J5ZVWO5B-CK5HGA-t.cjs +1 -0
- package/dist/chunk-J5ZVWO5B-DEP-pB-1.js +12 -0
- package/dist/{chunk-POPQ4Y6H-BRQPB1-9.cjs → chunk-KQW6MTUR-C_XQxsme.cjs} +1 -1
- package/dist/{chunk-POPQ4Y6H-vLTNjxsT.js → chunk-KQW6MTUR-c0XOjr_c.js} +2 -2
- package/dist/chunk-NGNAAXSQ-DM0DL2MX.js +19836 -0
- package/dist/chunk-NGNAAXSQ-kHtfTQLE.cjs +136 -0
- package/dist/chunk-NTY3LDVX-CvRtOCpm.js +363 -0
- package/dist/chunk-NTY3LDVX-DBVRlnMJ.cjs +1 -0
- package/dist/chunk-VPRB5NB3-CT204jN6.cjs +129 -0
- package/dist/{chunk-DU6HZSFF-BW30DVuW.js → chunk-VPRB5NB3-DJh7spRO.js} +791 -611
- package/dist/chunk-XC4XBNZT-BTUjiQhE.cjs +62 -0
- package/dist/{chunk-4HAMMTFA-C2YXJpQw.js → chunk-XC4XBNZT-CSiWBPH9.js} +1378 -1079
- package/dist/classDiagram-v2-K4WV4PDN-BndXIwai.cjs +217 -0
- package/dist/{chunk-HLEWEB6X-BrzeadBj.js → classDiagram-v2-K4WV4PDN-C39xKke0.js} +254 -214
- package/dist/{conversationExport-QWEGKkKB.js → conversationExport-0aa7tXBv.js} +2 -2
- package/dist/{conversationExport-D2ekPeYe.cjs → conversationExport-BVHvnvh5.cjs} +1 -1
- package/dist/conversationHistory-CNfOwM8H.cjs +287 -0
- package/dist/{conversationHistory-BylZCAb1.js → conversationHistory-D-hT7EvD.js} +9066 -6513
- package/dist/cynefin-EF2NZ3EQ-BB_WO8YQ.js +3 -0
- package/dist/cynefin-EF2NZ3EQ-Du3-s5Z7.cjs +1 -0
- package/dist/{cynefinDiagram-5FMLGOSQ-GvGZco52.cjs → cynefinDiagram-3GCD6N5R-Bmvj-sQO.cjs} +1 -1
- package/dist/{cynefinDiagram-5FMLGOSQ-BEFzUfsd.js → cynefinDiagram-3GCD6N5R-C2CRSeJl.js} +14 -14
- package/dist/dagre-W4DXFKR2-ECmxkO0T.js +2356 -0
- package/dist/dagre-W4DXFKR2-aPKdYPEj.cjs +4 -0
- package/dist/diagram-2UJZ2QOL-B1JKtFHG.cjs +200 -0
- package/dist/diagram-2UJZ2QOL-CJRsGDwn.js +5081 -0
- package/dist/{diagram-VX7I27RA-Bx9fEhR0.cjs → diagram-OVF4WLC6-CwZeVpHT.cjs} +1 -1
- package/dist/{diagram-VX7I27RA-BK8jsKkD.js → diagram-OVF4WLC6-D6r6aTeO.js} +61 -61
- package/dist/{diagram-S7CK7UJ4-BH8mrGrv.js → diagram-PFPMY2P6-BpOJbdZ5.js} +15 -15
- package/dist/{diagram-S7CK7UJ4-BA67ZpiO.cjs → diagram-PFPMY2P6-DlLbGc_k.cjs} +3 -3
- package/dist/{diagram-Z3DM3KII-jy895UiZ.cjs → diagram-UMYRVEAY-BE-t_ZdV.cjs} +1 -1
- package/dist/{diagram-Z3DM3KII-CqouFf3D.js → diagram-UMYRVEAY-blW7NpUU.js} +14 -14
- package/dist/{diagram-UQ7AKVKN-Bvz7faiB.js → diagram-YEKJPTXX-BOgf87BN.js} +15 -15
- package/dist/{diagram-UQ7AKVKN-OteiyKD9.cjs → diagram-YEKJPTXX-CeQjir5H.cjs} +2 -2
- package/dist/diagram-ZIFT7M5P-BHePHmHl.cjs +3 -0
- package/dist/{diagram-VSXAHHWV-l9f6spkp.js → diagram-ZIFT7M5P-CZOnEYez.js} +40 -25
- package/dist/{docxExport-DK8uhXvT.js → docxExport-Cyk5ToUi.js} +1 -1
- package/dist/{docxExport-Dt55TJ2h.cjs → docxExport-DF-PXilo.cjs} +1 -1
- package/dist/{ebnfDiagram-PWID7BFC-Bwmmg23f.js → ebnfDiagram-VR2GEFS7-Cr0a3Ho_.js} +5 -5
- package/dist/{ebnfDiagram-PWID7BFC-BQZKHpUr.cjs → ebnfDiagram-VR2GEFS7-cgyTJ-Xs.cjs} +1 -1
- package/dist/elk-IJKZMXRS-NO3xNT-V.cjs +27 -0
- package/dist/elk-IJKZMXRS-V31is6hS.js +47984 -0
- package/dist/{erDiagram-2YWLMYGG-RTHTTqyH.js → erDiagram-O2IAPWRE-CP06GjjM.js} +60 -56
- package/dist/{erDiagram-2YWLMYGG-CuEEIv1I.cjs → erDiagram-O2IAPWRE-CnkFrABC.cjs} +13 -13
- package/dist/eventmodeling-K75KTNOO-CMoz0K5S.js +3 -0
- package/dist/eventmodeling-K75KTNOO-DZdZrgwl.cjs +1 -0
- package/dist/flowDiagram-OXPTDLAJ-BdYr7Idm.cjs +1 -0
- package/dist/flowDiagram-OXPTDLAJ-R_xf7pNW.js +16 -0
- package/dist/{ganttDiagram-EL5Y4UJY-PTWIufq8.cjs → ganttDiagram-R7TSEDQI-Jhax10tw.cjs} +3 -3
- package/dist/{ganttDiagram-EL5Y4UJY-BTvevd1z.js → ganttDiagram-R7TSEDQI-y1bDU8Ba.js} +103 -92
- package/dist/gitGraph-VSP46ZUC-DoTshgkY.js +3 -0
- package/dist/gitGraph-VSP46ZUC-lawIO6K6.cjs +1 -0
- package/dist/{gitGraphDiagram-WWUBYQGX-D5yozoaq.cjs → gitGraphDiagram-XJZIOB7I-CLZLQcPk.cjs} +5 -5
- package/dist/{gitGraphDiagram-WWUBYQGX-Bh9F7wif.js → gitGraphDiagram-XJZIOB7I-CYZa0-Ct.js} +45 -45
- package/dist/info-OHQRW6UA-DPTZOb30.js +3 -0
- package/dist/info-OHQRW6UA-deop1PPz.cjs +1 -0
- package/dist/infoDiagram-5W2HQ5XZ-D8fJK3ph.cjs +2 -0
- package/dist/{infoDiagram-FKFFQAWI-D6en39j4.js → infoDiagram-5W2HQ5XZ-Dw_D4zI1.js} +5 -5
- package/dist/{ishikawaDiagram-5VMMS53U-CvVqTWku.js → ishikawaDiagram-K3B6WC7H-BeLiZFVY.js} +25 -25
- package/dist/{ishikawaDiagram-5VMMS53U-DN23jmFw.cjs → ishikawaDiagram-K3B6WC7H-DtjgiZAB.cjs} +2 -2
- package/dist/{journeyDiagram-EYS64GPL-CqhBN0KZ.js → journeyDiagram-COXZFDF6-B-qvdudB.js} +31 -31
- package/dist/{journeyDiagram-EYS64GPL-Co9rp-Q1.cjs → journeyDiagram-COXZFDF6-Dge2AV0B.cjs} +4 -4
- package/dist/{kanban-definition-UXKFOSKX-DzKPVjAq.cjs → kanban-definition-P3RFRI5V-C02YfFZv.cjs} +4 -4
- package/dist/{kanban-definition-UXKFOSKX-CWx_Y40t.js → kanban-definition-P3RFRI5V-D0XAXDl8.js} +42 -42
- package/dist/{line-D6gR53Af.cjs → line-5eGinYgh.cjs} +1 -1
- package/dist/{line-CwYnx9Ke.js → line-BTenwQwq.js} +1 -1
- package/dist/loadReferencedImage-C60bzMNm.cjs +1 -0
- package/dist/{loadReferencedImage-BKEDAhWQ.js → loadReferencedImage-XQS67fhR.js} +3 -1
- package/dist/mermaid-parser.core-BHBS1DqP.cjs +6 -0
- package/dist/{mermaid-parser.core-DLNlSmfj.js → mermaid-parser.core-CI12FMcX.js} +163 -163
- package/dist/mermaid.core-4MZ-Iwu7.cjs +43 -0
- package/dist/{mermaid.core-DI1iFk6G.js → mermaid.core-BJkDCzqA.js} +875 -1150
- package/dist/{mindmap-definition-THT77NOG-Bo3D8RRT.cjs → mindmap-definition-LZFPQGKD-CXV1hV3a.cjs} +3 -3
- package/dist/{mindmap-definition-THT77NOG-B9hdpQgy.js → mindmap-definition-LZFPQGKD-gYumvdwo.js} +78 -78
- package/dist/packet-JDAUHWVQ-Bcik24Kz.js +3 -0
- package/dist/packet-JDAUHWVQ-CrY7ylWJ.cjs +1 -0
- package/dist/{pegDiagram-XKGWAZYB-Cx-wZf4B.cjs → pegDiagram-BGZESJAR-BICf3jMN.cjs} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-CIBfY2Ob.js → pegDiagram-BGZESJAR-Dw9pRv5d.js} +5 -5
- package/dist/pi-outpost-embed.cjs +9 -10
- package/dist/pi-outpost-embed.js +2833 -2786
- package/dist/pie-XZMESJXO-BYQC-ufi.js +3 -0
- package/dist/pie-XZMESJXO-WjCBboSE.cjs +1 -0
- package/dist/{pieDiagram-E7YTZNPT-BC-pW4cK.cjs → pieDiagram-CAPJLFHJ-CF8cTQpC.cjs} +2 -2
- package/dist/{pieDiagram-E7YTZNPT-SG9oy_nV.js → pieDiagram-CAPJLFHJ-uz37FR9I.js} +18 -18
- package/dist/{quadrantDiagram-AXDQQJYC-C65HQ6gT.js → quadrantDiagram-GDMTTRAM-C4rt8LIh.js} +40 -40
- package/dist/{quadrantDiagram-AXDQQJYC-zPfqM9Q4.cjs → quadrantDiagram-GDMTTRAM-D9SYFJ_P.cjs} +2 -2
- package/dist/radar-ABXABTNO-BoQ7hH7Z.cjs +1 -0
- package/dist/radar-ABXABTNO-MxbyaZja.js +3 -0
- package/dist/railroad-I3PHUGI6-DckUArT-.js +3 -0
- package/dist/railroad-I3PHUGI6-DuGTlHry.cjs +1 -0
- package/dist/railroad-abnf-LNEFI6M7-DmAJaMEu.js +3 -0
- package/dist/railroad-abnf-LNEFI6M7-DoWf9u55.cjs +1 -0
- package/dist/railroad-ebnf-DWYD2UWJ-Bf05ZyW1.cjs +1 -0
- package/dist/railroad-ebnf-DWYD2UWJ-CS2AUYSv.js +3 -0
- package/dist/railroad-peg-JR7BVNR7-B-nctVbV.js +3 -0
- package/dist/railroad-peg-JR7BVNR7-CcV5KH4m.cjs +1 -0
- package/dist/{railroadDiagram-O6MQD6OU-3JsgWyLe.cjs → railroadDiagram-SM67HX2B-GgesxX7v.cjs} +1 -1
- package/dist/{railroadDiagram-O6MQD6OU-DLBEWyaH.js → railroadDiagram-SM67HX2B-T5SG0kEf.js} +5 -5
- package/dist/{requirementDiagram-IS5BZ75X-DwrHgMzq.js → requirementDiagram-X7JNWC4A-BEeCszC1.js} +49 -45
- package/dist/{requirementDiagram-IS5BZ75X-D1BMLxZg.cjs → requirementDiagram-X7JNWC4A-BVzf-VRr.cjs} +11 -11
- package/dist/{sankeyDiagram-P5KCCOFB-D5BHxcxB.cjs → sankeyDiagram-UM26HJRW-CdBXqklJ.cjs} +3 -3
- package/dist/{sankeyDiagram-P5KCCOFB-CcT0ZbW6.js → sankeyDiagram-UM26HJRW-DLDVzhPm.js} +16 -16
- package/dist/{sequenceDiagram-WJ2MYXX4-DM6BpXMT.js → sequenceDiagram-ZO4K6R2Y-B8wM6a-A.js} +704 -619
- package/dist/sequenceDiagram-ZO4K6R2Y-ytX57BES.cjs +169 -0
- package/dist/stateDiagram-v2-TBUQTH76-BTuAbG28.cjs +291 -0
- package/dist/{chunk-ZLD2IHE6-CqnVd2rq.js → stateDiagram-v2-TBUQTH76-PRnBJSrY.js} +271 -174
- package/dist/swimlanes-N4OXWK64-41SBE_L2.cjs +1 -0
- package/dist/{swimlanes-V6O3JKXN-BR7rwPmC.js → swimlanes-N4OXWK64-DipLcZla.js} +1006 -1219
- package/dist/swimlanesDiagram-K3J5GTZL-D6tIMgkj.cjs +8 -0
- package/dist/swimlanesDiagram-K3J5GTZL-_MehEHMi.js +27 -0
- package/dist/timeline-definition-YOQAKGHF-D_LWHCSA.cjs +120 -0
- package/dist/{timeline-definition-24CTP7MA-BQmq-H07.js → timeline-definition-YOQAKGHF-h8_spxIb.js} +210 -206
- package/dist/treeView-D4JQ5SDB-C3ticT1s.cjs +1 -0
- package/dist/treeView-D4JQ5SDB-CEuRf8gK.js +3 -0
- package/dist/treemap-SAJKECNS-BwIfwvl-.cjs +1 -0
- package/dist/treemap-SAJKECNS-DiC0668-.js +3 -0
- package/dist/usecaseDiagram-VIAY4XPW-DCfwvERR.js +7187 -0
- package/dist/usecaseDiagram-VIAY4XPW-PJHZiyJN.cjs +328 -0
- package/dist/{vennDiagram-4TSXK5OY-BdzbrV6i.js → vennDiagram-BLWOH2XV-_zHkfDVB.js} +43 -43
- package/dist/{vennDiagram-4TSXK5OY-D5MMYyff.cjs → vennDiagram-BLWOH2XV-niExkaFk.cjs} +3 -3
- package/dist/wardley-7MLQ67FV-BoIyQQ0E.cjs +1 -0
- package/dist/wardley-7MLQ67FV-CFF6IT1d.js +3 -0
- package/dist/{wardleyDiagram-VM6X3IG4-Ccz1enMd.js → wardleyDiagram-YMQ3BMBF-BKvQkiZP.js} +17 -17
- package/dist/{wardleyDiagram-VM6X3IG4-DzZNzmB8.cjs → wardleyDiagram-YMQ3BMBF-btlDrKA6.cjs} +3 -3
- package/dist/xychartDiagram-TAQBALBS-CkNZcyIi.cjs +7 -0
- package/dist/{xychartDiagram-S5SC5T6Z-B-sQkN_B.js → xychartDiagram-TAQBALBS-DlfKpBG9.js} +34 -30
- package/package.json +2 -2
- package/dist/architecture-7GRP2DOG-BtgYGXkq.cjs +0 -1
- package/dist/architecture-7GRP2DOG-DBQ9eYgM.js +0 -3
- package/dist/c4Diagram-7LVT6UL2-BCrC0RQo.cjs +0 -38
- package/dist/channel-DcrLLvcO.cjs +0 -1
- package/dist/chunk-3NF5O7KM-B-DpUW2r.cjs +0 -168
- package/dist/chunk-4HAMMTFA-CtkrBT7X.cjs +0 -62
- package/dist/chunk-75Z2AOVW-DOXS9ORa.cjs +0 -2
- package/dist/chunk-DU6HZSFF-3Hhp3Fo5.cjs +0 -127
- package/dist/chunk-FOHPRMQF-BNNbqxGX.js +0 -21456
- package/dist/chunk-FOHPRMQF-tmTlwTeH.cjs +0 -161
- package/dist/chunk-GMAD6QVW-B6uvB_wz.cjs +0 -72
- package/dist/chunk-HLEWEB6X-aqFoPl02.cjs +0 -206
- package/dist/chunk-L3NEJ4N5-BaR_9rF3.js +0 -245
- package/dist/chunk-L3NEJ4N5-vW3qRjIb.cjs +0 -1
- package/dist/chunk-OSK3NFVY-DU2FGOlI.cjs +0 -10
- package/dist/chunk-P2QGCYS3-DWeL9spl.cjs +0 -1
- package/dist/chunk-ZLD2IHE6-BZxKwfuv.cjs +0 -231
- package/dist/classDiagram-CYGNFDIV-CQLOfBmz.cjs +0 -1
- package/dist/classDiagram-CYGNFDIV-DsnY_WNO.js +0 -30
- package/dist/classDiagram-v2-TLXNO2FR-CQLOfBmz.cjs +0 -1
- package/dist/classDiagram-v2-TLXNO2FR-DeNpu9ZP.js +0 -30
- package/dist/conversationHistory-BmpdU77I.cjs +0 -286
- package/dist/cynefin-OW5HDTMX-BmLJra-4.cjs +0 -1
- package/dist/cynefin-OW5HDTMX-CfYr_cVN.js +0 -3
- package/dist/dagre-BMKbPnPh.js +0 -1934
- package/dist/dagre-EEW2OxRU.cjs +0 -1
- package/dist/dagre-OS7QT2EB-BtJ6v_Nc.js +0 -425
- package/dist/dagre-OS7QT2EB-DFi6nnZc.cjs +0 -4
- package/dist/diagram-VSXAHHWV-BjsZz1JJ.cjs +0 -3
- package/dist/eventmodeling-NTZA5JFV-D57pc07U.cjs +0 -1
- package/dist/eventmodeling-NTZA5JFV-DUbGOrrF.js +0 -3
- package/dist/flowDiagram-T62WH6J4-YyzE7N5Z.cjs +0 -1
- package/dist/flowDiagram-T62WH6J4-ptBWC6KI.js +0 -16
- package/dist/gitGraph-4MIJSDKK-CY4IuhXZ.js +0 -3
- package/dist/gitGraph-4MIJSDKK-D97vaDci.cjs +0 -1
- package/dist/info-A6RAGUB7-Cx39sHYM.js +0 -3
- package/dist/info-A6RAGUB7-DT06-FB3.cjs +0 -1
- package/dist/infoDiagram-FKFFQAWI-NPtQF4vB.cjs +0 -2
- package/dist/loadReferencedImage-DlRgJ4vm.cjs +0 -1
- package/dist/mermaid-parser.core-CBiDgMLi.cjs +0 -6
- package/dist/mermaid.core-B3QcBB1O.cjs +0 -43
- package/dist/packet-AYTQ26CC-BGX2McoE.cjs +0 -1
- package/dist/packet-AYTQ26CC-IgkU2VYK.js +0 -3
- package/dist/pie-WAS4IAKB-CEyPj3UJ.cjs +0 -1
- package/dist/pie-WAS4IAKB-odE0A7fM.js +0 -3
- package/dist/radar-RG4KPBEZ-ClYJNseM.cjs +0 -1
- package/dist/radar-RG4KPBEZ-DqbNqlJH.js +0 -3
- package/dist/railroad-74A4TZTK-Dzt4afqg.js +0 -3
- package/dist/railroad-74A4TZTK-hSKcr2y6.cjs +0 -1
- package/dist/railroad-abnf-HS5TGJTU-gq2RybTO.js +0 -3
- package/dist/railroad-abnf-HS5TGJTU-irEXz0eI.cjs +0 -1
- package/dist/railroad-ebnf-LZEXJU2U-CG19A1Xj.cjs +0 -1
- package/dist/railroad-ebnf-LZEXJU2U-D-pNpFrj.js +0 -3
- package/dist/railroad-peg-WCYAUIDC-BLdK3QCV.cjs +0 -1
- package/dist/railroad-peg-WCYAUIDC-Bo7wfe--.js +0 -3
- package/dist/sequenceDiagram-WJ2MYXX4-DlVJIIIl.cjs +0 -162
- package/dist/stateDiagram-XQSTLZYL-BhzcW44q.js +0 -220
- package/dist/stateDiagram-XQSTLZYL-mSOJx_Wv.cjs +0 -1
- package/dist/stateDiagram-v2-IH3M54BS-BE5CXOTu.js +0 -30
- package/dist/stateDiagram-v2-IH3M54BS-DAa6SuH4.cjs +0 -1
- package/dist/swimlanes-V6O3JKXN-BooYLGtP.cjs +0 -1
- package/dist/swimlanesDiagram-JKAHXJPX-BaMCBEUQ.cjs +0 -8
- package/dist/swimlanesDiagram-JKAHXJPX-lIPwQ8Mc.js +0 -30
- package/dist/timeline-definition-24CTP7MA-D6sSmprF.cjs +0 -120
- package/dist/treeView-Q6P3EWNA-BmkQxkVU.cjs +0 -1
- package/dist/treeView-Q6P3EWNA-CPEEGmNv.js +0 -3
- package/dist/treemap-WGGIJYW6-CGULpntJ.js +0 -3
- package/dist/treemap-WGGIJYW6-Dmi9HAR8.cjs +0 -1
- package/dist/wardley-WFR3VGLG-9zHZLKh9.js +0 -3
- package/dist/wardley-WFR3VGLG-B6YvLPJA.cjs +0 -1
- package/dist/xychartDiagram-S5SC5T6Z-BOsjfYJh.cjs +0 -7
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
2
|
import { m as t, p as n } from "./src-Dkp7vqs8.js";
|
|
3
|
-
import { H as r, U as i,
|
|
4
|
-
import {
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
import { a as
|
|
10
|
-
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-
|
|
11
|
-
var
|
|
3
|
+
import { H as r, U as i, _ as a, b as o, c as s, r as l, s as u, v as d, z as f } from "./chunk-VPRB5NB3-DJh7spRO.js";
|
|
4
|
+
import { n as p, r as m, v as h } from "./chunk-3YJQHVM4-BNbfg-7y.js";
|
|
5
|
+
import "./chunk-HJ2JQQFS-CgYTXthn.js";
|
|
6
|
+
import "./chunk-E2ZNV5FY-Bu796yUY.js";
|
|
7
|
+
import "./chunk-4EA7E6EY-B5P7n2an.js";
|
|
8
|
+
import { r as g, s as _ } from "./chunk-XC4XBNZT-CSiWBPH9.js";
|
|
9
|
+
import { a as v } from "./chunk-7TKQ45FW-CD1KuemG.js";
|
|
10
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-CRA5TL53.mjs
|
|
11
|
+
var y = (function() {
|
|
12
12
|
var t = /* @__PURE__ */ e(function(e, t, n, r) {
|
|
13
13
|
for (n ||= {}, r = e.length; r--; n[e[r]] = t);
|
|
14
14
|
return n;
|
|
@@ -113,7 +113,7 @@ var v = (function() {
|
|
|
113
113
|
77,
|
|
114
114
|
79,
|
|
115
115
|
80
|
|
116
|
-
],
|
|
116
|
+
], Z = [12, 33], ae = [
|
|
117
117
|
34,
|
|
118
118
|
36,
|
|
119
119
|
37,
|
|
@@ -152,7 +152,7 @@ var v = (function() {
|
|
|
152
152
|
72,
|
|
153
153
|
73,
|
|
154
154
|
74
|
|
155
|
-
],
|
|
155
|
+
], oe = {
|
|
156
156
|
trace: /* @__PURE__ */ e(function() {}, "trace"),
|
|
157
157
|
yy: {},
|
|
158
158
|
symbols_: {
|
|
@@ -1373,13 +1373,13 @@ var v = (function() {
|
|
|
1373
1373
|
},
|
|
1374
1374
|
{ 12: [1, 136] },
|
|
1375
1375
|
{ 33: [1, 137] },
|
|
1376
|
-
t(
|
|
1377
|
-
t(
|
|
1378
|
-
t(
|
|
1379
|
-
t(
|
|
1380
|
-
t(
|
|
1381
|
-
t(
|
|
1382
|
-
t(
|
|
1376
|
+
t(Z, [2, 28]),
|
|
1377
|
+
t(Z, [2, 29]),
|
|
1378
|
+
t(Z, [2, 30]),
|
|
1379
|
+
t(Z, [2, 31]),
|
|
1380
|
+
t(Z, [2, 32]),
|
|
1381
|
+
t(Z, [2, 33]),
|
|
1382
|
+
t(Z, [2, 34]),
|
|
1383
1383
|
{ 1: [2, 9] },
|
|
1384
1384
|
{ 1: [2, 10] },
|
|
1385
1385
|
{ 1: [2, 11] },
|
|
@@ -1390,9 +1390,9 @@ var v = (function() {
|
|
|
1390
1390
|
t(ie, [2, 74]),
|
|
1391
1391
|
t(X, [2, 24]),
|
|
1392
1392
|
t(X, [2, 35]),
|
|
1393
|
-
t(
|
|
1394
|
-
t(
|
|
1395
|
-
t(
|
|
1393
|
+
t(ae, [2, 25]),
|
|
1394
|
+
t(ae, [2, 26], { 12: [1, 138] }),
|
|
1395
|
+
t(ae, [2, 27])
|
|
1396
1396
|
],
|
|
1397
1397
|
defaultActions: {
|
|
1398
1398
|
2: [2, 1],
|
|
@@ -1472,7 +1472,7 @@ var v = (function() {
|
|
|
1472
1472
|
return !0;
|
|
1473
1473
|
}, "parse")
|
|
1474
1474
|
};
|
|
1475
|
-
|
|
1475
|
+
oe.lexer = /* @__PURE__ */ (function() {
|
|
1476
1476
|
return {
|
|
1477
1477
|
EOF: 1,
|
|
1478
1478
|
parseError: /* @__PURE__ */ e(function(e, t) {
|
|
@@ -2271,143 +2271,148 @@ var v = (function() {
|
|
|
2271
2271
|
}
|
|
2272
2272
|
};
|
|
2273
2273
|
})();
|
|
2274
|
-
function
|
|
2274
|
+
function se() {
|
|
2275
2275
|
this.yy = {};
|
|
2276
2276
|
}
|
|
2277
|
-
return e(
|
|
2277
|
+
return e(se, "Parser"), se.prototype = oe, oe.Parser = se, new se();
|
|
2278
2278
|
})();
|
|
2279
|
-
|
|
2280
|
-
var
|
|
2279
|
+
y.parser = y;
|
|
2280
|
+
var b = y, x = /* @__PURE__ */ e((e) => o()[e], "getRequiredConfig"), S = /* @__PURE__ */ new Set([
|
|
2281
|
+
"label",
|
|
2282
|
+
"descr",
|
|
2283
|
+
"techn",
|
|
2284
|
+
"type"
|
|
2285
|
+
]), C = /* @__PURE__ */ e((e, t) => {
|
|
2281
2286
|
for (let [n, r] of Object.entries(t)) if (r !== void 0) {
|
|
2282
2287
|
if (typeof r == "object") {
|
|
2283
2288
|
let [t, n] = Object.entries(r)[0];
|
|
2284
|
-
e[t] = n;
|
|
2289
|
+
e[t] = S.has(t) ? { text: n } : n;
|
|
2285
2290
|
} else e[n] = r;
|
|
2286
2291
|
}
|
|
2287
|
-
}, "assignAttributes"),
|
|
2292
|
+
}, "assignAttributes"), w = /* @__PURE__ */ e(() => ({
|
|
2288
2293
|
alias: "global",
|
|
2289
2294
|
label: { text: "global" },
|
|
2290
2295
|
type: { text: "global" },
|
|
2291
2296
|
tags: null,
|
|
2292
2297
|
link: null,
|
|
2293
2298
|
parentBoundary: ""
|
|
2294
|
-
}), "createGlobalBoundary"),
|
|
2295
|
-
return
|
|
2296
|
-
}, "getC4Type"),
|
|
2297
|
-
|
|
2298
|
-
}, "setC4Type"),
|
|
2299
|
+
}), "createGlobalBoundary"), T = [], E = [""], D = "global", O = "", k = [w()], A = [], j = "", M = !1, N = 4, P = 2, F, I = /* @__PURE__ */ e(function() {
|
|
2300
|
+
return F;
|
|
2301
|
+
}, "getC4Type"), L = /* @__PURE__ */ e(function(e) {
|
|
2302
|
+
F = f(e, o());
|
|
2303
|
+
}, "setC4Type"), R = /* @__PURE__ */ e(function(e, t, n, r, i, a, o, s, l) {
|
|
2299
2304
|
if (e == null || t == null || n == null || r == null) return;
|
|
2300
|
-
let u = {}, d =
|
|
2301
|
-
if (d ? u = d :
|
|
2305
|
+
let u = {}, d = A.find((e) => e.from === t && e.to === n);
|
|
2306
|
+
if (d ? u = d : A.push(u), u.type = e, u.from = t, u.to = n, u.label = { text: r }, i == null) u.techn ??= { text: "" };
|
|
2302
2307
|
else if (typeof i == "object") {
|
|
2303
2308
|
let [e, t] = Object.entries(i)[0];
|
|
2304
|
-
u[e] = { text: t };
|
|
2309
|
+
u[e] = S.has(e) ? { text: t } : t;
|
|
2305
2310
|
} else u.techn = { text: i };
|
|
2306
|
-
if (a == null) u.descr
|
|
2311
|
+
if (a == null) u.descr ??= { text: "" };
|
|
2307
2312
|
else if (typeof a == "object") {
|
|
2308
2313
|
let [e, t] = Object.entries(a)[0];
|
|
2309
|
-
u[e] = { text: t };
|
|
2314
|
+
u[e] = S.has(e) ? { text: t } : t;
|
|
2310
2315
|
} else u.descr = { text: a };
|
|
2311
|
-
|
|
2316
|
+
C(u, {
|
|
2312
2317
|
sprite: o,
|
|
2313
2318
|
tags: s,
|
|
2314
2319
|
link: l
|
|
2315
|
-
}), u.wrap =
|
|
2316
|
-
}, "addRel"),
|
|
2320
|
+
}), u.wrap = le();
|
|
2321
|
+
}, "addRel"), z = /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
|
|
2317
2322
|
if (t === null || n === null) return;
|
|
2318
|
-
let s = {}, l =
|
|
2319
|
-
if (l && t === l.alias ? s = l : (s.alias = t,
|
|
2323
|
+
let s = {}, l = T.find((e) => e.alias === t);
|
|
2324
|
+
if (l && t === l.alias ? s = l : (s.alias = t, T.push(s)), n == null ? s.label = { text: "" } : s.label = { text: n }, r == null) s.descr ??= { text: "" };
|
|
2320
2325
|
else if (typeof r == "object") {
|
|
2321
2326
|
let [e, t] = Object.entries(r)[0];
|
|
2322
|
-
s[e] = { text: t };
|
|
2327
|
+
s[e] = S.has(e) ? { text: t } : t;
|
|
2323
2328
|
} else s.descr = { text: r };
|
|
2324
|
-
|
|
2329
|
+
C(s, {
|
|
2325
2330
|
sprite: i,
|
|
2326
2331
|
tags: a,
|
|
2327
2332
|
link: o
|
|
2328
|
-
}), s.typeC4Shape = { text: e }, s.parentBoundary =
|
|
2329
|
-
}, "addPersonOrSystem"),
|
|
2333
|
+
}), s.typeC4Shape = { text: e }, s.parentBoundary = D, s.wrap = le();
|
|
2334
|
+
}, "addPersonOrSystem"), B = /* @__PURE__ */ e(function(e, t, n, r, i, a, o, s) {
|
|
2330
2335
|
if (t === null || n === null) return;
|
|
2331
|
-
let l = {}, u =
|
|
2332
|
-
if (u && t === u.alias ? l = u : (l.alias = t,
|
|
2336
|
+
let l = {}, u = T.find((e) => e.alias === t);
|
|
2337
|
+
if (u && t === u.alias ? l = u : (l.alias = t, T.push(l)), n == null ? l.label = { text: "" } : l.label = { text: n }, r == null) l.techn ??= { text: "" };
|
|
2333
2338
|
else if (typeof r == "object") {
|
|
2334
2339
|
let [e, t] = Object.entries(r)[0];
|
|
2335
|
-
l[e] = { text: t };
|
|
2340
|
+
l[e] = S.has(e) ? { text: t } : t;
|
|
2336
2341
|
} else l.techn = { text: r };
|
|
2337
|
-
if (i == null) l.descr
|
|
2342
|
+
if (i == null) l.descr ??= { text: "" };
|
|
2338
2343
|
else if (typeof i == "object") {
|
|
2339
2344
|
let [e, t] = Object.entries(i)[0];
|
|
2340
|
-
l[e] = { text: t };
|
|
2345
|
+
l[e] = S.has(e) ? { text: t } : t;
|
|
2341
2346
|
} else l.descr = { text: i };
|
|
2342
|
-
|
|
2347
|
+
C(l, {
|
|
2343
2348
|
sprite: a,
|
|
2344
2349
|
tags: o,
|
|
2345
2350
|
link: s
|
|
2346
|
-
}), l.wrap =
|
|
2347
|
-
}, "addContainer"),
|
|
2351
|
+
}), l.wrap = le(), l.typeC4Shape = { text: e }, l.parentBoundary = D;
|
|
2352
|
+
}, "addContainer"), V = /* @__PURE__ */ e(function(e, t, n, r, i, a, o, s) {
|
|
2348
2353
|
if (t === null || n === null) return;
|
|
2349
|
-
let l = {}, u =
|
|
2350
|
-
if (u && t === u.alias ? l = u : (l.alias = t,
|
|
2354
|
+
let l = {}, u = T.find((e) => e.alias === t);
|
|
2355
|
+
if (u && t === u.alias ? l = u : (l.alias = t, T.push(l)), n == null ? l.label = { text: "" } : l.label = { text: n }, r == null) l.techn ??= { text: "" };
|
|
2351
2356
|
else if (typeof r == "object") {
|
|
2352
2357
|
let [e, t] = Object.entries(r)[0];
|
|
2353
|
-
l[e] = { text: t };
|
|
2358
|
+
l[e] = S.has(e) ? { text: t } : t;
|
|
2354
2359
|
} else l.techn = { text: r };
|
|
2355
|
-
if (i == null) l.descr
|
|
2360
|
+
if (i == null) l.descr ??= { text: "" };
|
|
2356
2361
|
else if (typeof i == "object") {
|
|
2357
2362
|
let [e, t] = Object.entries(i)[0];
|
|
2358
|
-
l[e] = { text: t };
|
|
2363
|
+
l[e] = S.has(e) ? { text: t } : t;
|
|
2359
2364
|
} else l.descr = { text: i };
|
|
2360
|
-
|
|
2365
|
+
C(l, {
|
|
2361
2366
|
sprite: a,
|
|
2362
2367
|
tags: o,
|
|
2363
2368
|
link: s
|
|
2364
|
-
}), l.wrap =
|
|
2365
|
-
}, "addComponent"),
|
|
2369
|
+
}), l.wrap = le(), l.typeC4Shape = { text: e }, l.parentBoundary = D;
|
|
2370
|
+
}, "addComponent"), H = /* @__PURE__ */ e(function(e, t, n, r, i) {
|
|
2366
2371
|
if (e === null || t === null) return;
|
|
2367
|
-
let a = {}, o =
|
|
2368
|
-
if (o && e === o.alias ? a = o : (a.alias = e,
|
|
2372
|
+
let a = {}, o = k.find((t) => t.alias === e);
|
|
2373
|
+
if (o && e === o.alias ? a = o : (a.alias = e, k.push(a)), t == null ? a.label = { text: "" } : a.label = { text: t }, n == null) a.type = { text: "system" };
|
|
2369
2374
|
else if (typeof n == "object") {
|
|
2370
2375
|
let [e, t] = Object.entries(n)[0];
|
|
2371
|
-
a[e] = { text: t };
|
|
2376
|
+
a[e] = S.has(e) ? { text: t } : t;
|
|
2372
2377
|
} else a.type = { text: n };
|
|
2373
|
-
|
|
2378
|
+
C(a, {
|
|
2374
2379
|
tags: r,
|
|
2375
2380
|
link: i
|
|
2376
|
-
}), a.parentBoundary =
|
|
2377
|
-
}, "addPersonOrSystemBoundary"),
|
|
2381
|
+
}), a.parentBoundary = D, a.wrap = le(), O = D, D = e, E.push(O);
|
|
2382
|
+
}, "addPersonOrSystemBoundary"), U = /* @__PURE__ */ e(function(e, t, n, r, i) {
|
|
2378
2383
|
if (e === null || t === null) return;
|
|
2379
|
-
let a = {}, o =
|
|
2380
|
-
if (o && e === o.alias ? a = o : (a.alias = e,
|
|
2384
|
+
let a = {}, o = k.find((t) => t.alias === e);
|
|
2385
|
+
if (o && e === o.alias ? a = o : (a.alias = e, k.push(a)), t == null ? a.label = { text: "" } : a.label = { text: t }, n == null) a.type = { text: "container" };
|
|
2381
2386
|
else if (typeof n == "object") {
|
|
2382
2387
|
let [e, t] = Object.entries(n)[0];
|
|
2383
|
-
a[e] = { text: t };
|
|
2388
|
+
a[e] = S.has(e) ? { text: t } : t;
|
|
2384
2389
|
} else a.type = { text: n };
|
|
2385
|
-
|
|
2390
|
+
C(a, {
|
|
2386
2391
|
tags: r,
|
|
2387
2392
|
link: i
|
|
2388
|
-
}), a.parentBoundary =
|
|
2389
|
-
}, "addContainerBoundary"),
|
|
2393
|
+
}), a.parentBoundary = D, a.wrap = le(), O = D, D = e, E.push(O);
|
|
2394
|
+
}, "addContainerBoundary"), W = /* @__PURE__ */ e(function(e, t, n, r, i, a, o, s) {
|
|
2390
2395
|
if (t === null || n === null) return;
|
|
2391
|
-
let l = {}, u =
|
|
2392
|
-
if (u && t === u.alias ? l = u : (l.alias = t,
|
|
2396
|
+
let l = {}, u = k.find((e) => e.alias === t);
|
|
2397
|
+
if (u && t === u.alias ? l = u : (l.alias = t, k.push(l)), n == null ? l.label = { text: "" } : l.label = { text: n }, r == null) l.type = { text: "node" };
|
|
2393
2398
|
else if (typeof r == "object") {
|
|
2394
2399
|
let [e, t] = Object.entries(r)[0];
|
|
2395
|
-
l[e] = { text: t };
|
|
2400
|
+
l[e] = S.has(e) ? { text: t } : t;
|
|
2396
2401
|
} else l.type = { text: r };
|
|
2397
|
-
if (i == null) l.descr
|
|
2402
|
+
if (i == null) l.descr ??= { text: "" };
|
|
2398
2403
|
else if (typeof i == "object") {
|
|
2399
2404
|
let [e, t] = Object.entries(i)[0];
|
|
2400
|
-
l[e] = { text: t };
|
|
2405
|
+
l[e] = S.has(e) ? { text: t } : t;
|
|
2401
2406
|
} else l.descr = { text: i };
|
|
2402
|
-
|
|
2407
|
+
C(l, {
|
|
2403
2408
|
tags: o,
|
|
2404
2409
|
link: s
|
|
2405
|
-
}), l.nodeType = e, l.parentBoundary =
|
|
2406
|
-
}, "addDeploymentNode"),
|
|
2407
|
-
|
|
2408
|
-
}, "popBoundaryParseStack"),
|
|
2409
|
-
let f =
|
|
2410
|
-
if (!(f === void 0 && (f =
|
|
2410
|
+
}), l.nodeType = e, l.parentBoundary = D, l.wrap = le(), O = D, D = t, E.push(O);
|
|
2411
|
+
}, "addDeploymentNode"), G = /* @__PURE__ */ e(function() {
|
|
2412
|
+
D = O, E.pop(), O = E.pop(), E.push(O);
|
|
2413
|
+
}, "popBoundaryParseStack"), ee = /* @__PURE__ */ e(function(e, t, n, r, i, a, o, s, l, u, d) {
|
|
2414
|
+
let f = T.find((e) => e.alias === t);
|
|
2415
|
+
if (!(f === void 0 && (f = k.find((e) => e.alias === t), f === void 0))) {
|
|
2411
2416
|
if (n != null) {
|
|
2412
2417
|
if (typeof n == "object") {
|
|
2413
2418
|
let [e, t] = Object.entries(n)[0];
|
|
@@ -2463,8 +2468,8 @@ var y = v, b = /* @__PURE__ */ e((e) => u()[e], "getRequiredConfig"), x = /* @__
|
|
|
2463
2468
|
} else f.legendSprite = d;
|
|
2464
2469
|
}
|
|
2465
2470
|
}
|
|
2466
|
-
}, "updateElStyle"),
|
|
2467
|
-
let s =
|
|
2471
|
+
}, "updateElStyle"), te = /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
|
|
2472
|
+
let s = A.find((e) => e.from === t && e.to === n);
|
|
2468
2473
|
if (s !== void 0) {
|
|
2469
2474
|
if (r != null) {
|
|
2470
2475
|
if (typeof r == "object") {
|
|
@@ -2491,8 +2496,8 @@ var y = v, b = /* @__PURE__ */ e((e) => u()[e], "getRequiredConfig"), x = /* @__
|
|
|
2491
2496
|
} else s.offsetY = parseInt(o);
|
|
2492
2497
|
}
|
|
2493
2498
|
}
|
|
2494
|
-
}, "updateRelStyle"),
|
|
2495
|
-
let r =
|
|
2499
|
+
}, "updateRelStyle"), ne = /* @__PURE__ */ e(function(e, t, n) {
|
|
2500
|
+
let r = N, i = P;
|
|
2496
2501
|
if (typeof t == "object") {
|
|
2497
2502
|
let e = Object.values(t)[0];
|
|
2498
2503
|
r = parseInt(e);
|
|
@@ -2501,64 +2506,64 @@ var y = v, b = /* @__PURE__ */ e((e) => u()[e], "getRequiredConfig"), x = /* @__
|
|
|
2501
2506
|
let e = Object.values(n)[0];
|
|
2502
2507
|
i = parseInt(e);
|
|
2503
2508
|
} else i = parseInt(n);
|
|
2504
|
-
r >= 1 && (
|
|
2505
|
-
}, "updateLayoutConfig"),
|
|
2506
|
-
return
|
|
2507
|
-
}, "getC4ShapeInRow"),
|
|
2508
|
-
return
|
|
2509
|
-
}, "getC4BoundaryInRow"),
|
|
2510
|
-
return
|
|
2511
|
-
}, "getCurrentBoundaryParse"),
|
|
2512
|
-
return E;
|
|
2513
|
-
}, "getParentBoundaryParse"), J = /* @__PURE__ */ e(function(e) {
|
|
2514
|
-
return e == null ? C : C.filter((t) => t.parentBoundary === e);
|
|
2515
|
-
}, "getC4ShapeArray"), Y = /* @__PURE__ */ e(function(e) {
|
|
2516
|
-
return C.find((t) => t.alias === e);
|
|
2517
|
-
}, "getC4Shape"), X = /* @__PURE__ */ e(function(e) {
|
|
2518
|
-
return Object.keys(J(e));
|
|
2519
|
-
}, "getC4ShapeKeys"), re = /* @__PURE__ */ e(function(e) {
|
|
2520
|
-
return e == null ? D : D.filter((t) => t.parentBoundary === e);
|
|
2521
|
-
}, "getBoundaries"), ie = re, ae = /* @__PURE__ */ e(function() {
|
|
2509
|
+
r >= 1 && (N = r), i >= 1 && (P = i);
|
|
2510
|
+
}, "updateLayoutConfig"), K = /* @__PURE__ */ e(function() {
|
|
2511
|
+
return N;
|
|
2512
|
+
}, "getC4ShapeInRow"), q = /* @__PURE__ */ e(function() {
|
|
2513
|
+
return P;
|
|
2514
|
+
}, "getC4BoundaryInRow"), J = /* @__PURE__ */ e(function() {
|
|
2515
|
+
return D;
|
|
2516
|
+
}, "getCurrentBoundaryParse"), Y = /* @__PURE__ */ e(function() {
|
|
2522
2517
|
return O;
|
|
2523
|
-
}, "
|
|
2524
|
-
return
|
|
2525
|
-
}, "
|
|
2526
|
-
|
|
2527
|
-
}, "
|
|
2518
|
+
}, "getParentBoundaryParse"), X = /* @__PURE__ */ e(function(e) {
|
|
2519
|
+
return e == null ? T : T.filter((t) => t.parentBoundary === e);
|
|
2520
|
+
}, "getC4ShapeArray"), re = /* @__PURE__ */ e(function(e) {
|
|
2521
|
+
return T.find((t) => t.alias === e) ?? k.find((t) => t.alias === e);
|
|
2522
|
+
}, "getC4Shape"), ie = /* @__PURE__ */ e(function(e) {
|
|
2523
|
+
return Object.keys(X(e));
|
|
2524
|
+
}, "getC4ShapeKeys"), Z = /* @__PURE__ */ e(function(e) {
|
|
2525
|
+
return e == null ? k : k.filter((t) => t.parentBoundary === e);
|
|
2526
|
+
}, "getBoundaries"), ae = Z, oe = /* @__PURE__ */ e(function() {
|
|
2528
2527
|
return A;
|
|
2529
|
-
}, "
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2528
|
+
}, "getRels"), se = /* @__PURE__ */ e(function() {
|
|
2529
|
+
return j;
|
|
2530
|
+
}, "getTitle"), ce = /* @__PURE__ */ e(function(e) {
|
|
2531
|
+
M = e;
|
|
2532
|
+
}, "setWrap"), le = /* @__PURE__ */ e(function() {
|
|
2533
|
+
return M;
|
|
2534
|
+
}, "autoWrap"), ue = {
|
|
2535
|
+
addPersonOrSystem: z,
|
|
2536
|
+
addPersonOrSystemBoundary: H,
|
|
2537
|
+
addContainer: B,
|
|
2538
|
+
addContainerBoundary: U,
|
|
2539
|
+
addComponent: V,
|
|
2540
|
+
addDeploymentNode: W,
|
|
2541
|
+
popBoundaryParseStack: G,
|
|
2542
|
+
addRel: R,
|
|
2543
|
+
updateElStyle: ee,
|
|
2544
|
+
updateRelStyle: te,
|
|
2545
|
+
updateLayoutConfig: ne,
|
|
2546
|
+
autoWrap: le,
|
|
2547
|
+
setWrap: ce,
|
|
2548
|
+
getC4ShapeArray: X,
|
|
2549
|
+
getC4Shape: re,
|
|
2550
|
+
getC4ShapeKeys: ie,
|
|
2551
|
+
getBoundaries: Z,
|
|
2552
|
+
getBoundarys: ae,
|
|
2553
|
+
getCurrentBoundaryParse: J,
|
|
2554
|
+
getParentBoundaryParse: Y,
|
|
2555
|
+
getRels: oe,
|
|
2556
|
+
getTitle: se,
|
|
2557
|
+
getC4Type: I,
|
|
2558
|
+
getC4ShapeInRow: K,
|
|
2559
|
+
getC4BoundaryInRow: q,
|
|
2555
2560
|
setAccTitle: i,
|
|
2556
2561
|
getAccTitle: d,
|
|
2557
|
-
getAccDescription:
|
|
2562
|
+
getAccDescription: a,
|
|
2558
2563
|
setAccDescription: r,
|
|
2559
|
-
getConfig: /* @__PURE__ */ e(() =>
|
|
2564
|
+
getConfig: /* @__PURE__ */ e(() => x("c4"), "getConfig"),
|
|
2560
2565
|
clear: /* @__PURE__ */ e(function() {
|
|
2561
|
-
|
|
2566
|
+
T = [], k = [w()], O = "", D = "global", E = [""], A = [], E = [""], j = "", M = !1, N = 4, P = 2;
|
|
2562
2567
|
}, "clear"),
|
|
2563
2568
|
LINETYPE: {
|
|
2564
2569
|
SOLID: 0,
|
|
@@ -2595,12 +2600,12 @@ var y = v, b = /* @__PURE__ */ e((e) => u()[e], "getRequiredConfig"), x = /* @__
|
|
|
2595
2600
|
OVER: 2
|
|
2596
2601
|
},
|
|
2597
2602
|
setTitle: /* @__PURE__ */ e(function(e) {
|
|
2598
|
-
|
|
2603
|
+
j = f(e, o());
|
|
2599
2604
|
}, "setTitle"),
|
|
2600
|
-
setC4Type:
|
|
2601
|
-
},
|
|
2602
|
-
return
|
|
2603
|
-
}, "drawRect"),
|
|
2605
|
+
setC4Type: L
|
|
2606
|
+
}, de = /* @__PURE__ */ e(function(e, t) {
|
|
2607
|
+
return v(e, t);
|
|
2608
|
+
}, "drawRect"), fe = /* @__PURE__ */ e((e, t, n, r) => {
|
|
2604
2609
|
let i = e.append("g"), a = 0;
|
|
2605
2610
|
for (let e of t) {
|
|
2606
2611
|
let t = e.textColor ? e.textColor : "#444444", o = e.lineColor ? e.lineColor : "#444444", s = e.offsetX ? parseInt(String(e.offsetX)) : 0, l = e.offsetY ? parseInt(String(e.offsetY)) : 0;
|
|
@@ -2612,17 +2617,17 @@ var y = v, b = /* @__PURE__ */ e((e) => u()[e], "getRequiredConfig"), x = /* @__
|
|
|
2612
2617
|
t.attr("fill", "none").attr("stroke-width", "1").attr("stroke", o).attr("d", "Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx", e.startPoint.x).replaceAll("starty", e.startPoint.y).replaceAll("controlx", e.startPoint.x + (e.endPoint.x - e.startPoint.x) / 2 - (e.endPoint.x - e.startPoint.x) / 4).replaceAll("controly", e.startPoint.y + (e.endPoint.y - e.startPoint.y) / 2).replaceAll("stopx", e.endPoint.x).replaceAll("stopy", e.endPoint.y)), e.type !== "rel_b" && t.attr("marker-end", "url(#" + r + "-arrowhead)"), (e.type === "birel" || e.type === "rel_b") && t.attr("marker-start", "url(#" + r + "-arrowend)");
|
|
2613
2618
|
}
|
|
2614
2619
|
let u = e.label.width, d = n.messageFont();
|
|
2615
|
-
|
|
2620
|
+
xe(n)(e.label.text, i, Math.min(e.startPoint.x, e.endPoint.x) + Math.abs(e.endPoint.x - e.startPoint.x) / 2 + s, Math.min(e.startPoint.y, e.endPoint.y) + Math.abs(e.endPoint.y - e.startPoint.y) / 2 + l, u, e.label.height, { fill: t }, d), e.techn && e.techn.text !== "" && (d = n.messageFont(), xe(n)("[" + e.techn.text + "]", i, Math.min(e.startPoint.x, e.endPoint.x) + Math.abs(e.endPoint.x - e.startPoint.x) / 2 + s, Math.min(e.startPoint.y, e.endPoint.y) + Math.abs(e.endPoint.y - e.startPoint.y) / 2 + n.messageFontSize + 5 + l, Math.max(u, e.techn.width), e.techn.height, {
|
|
2616
2621
|
fill: t,
|
|
2617
2622
|
"font-style": "italic"
|
|
2618
2623
|
}, d));
|
|
2619
2624
|
}
|
|
2620
|
-
}, "drawRels"),
|
|
2625
|
+
}, "drawRels"), pe = /* @__PURE__ */ e(function(e, t, n) {
|
|
2621
2626
|
let r = e.append("g"), i = t.bgColor ? t.bgColor : "none", a = t.borderColor ? t.borderColor : "#444444", o = t.fontColor ? t.fontColor : "black", s = {
|
|
2622
2627
|
"stroke-width": 1,
|
|
2623
2628
|
"stroke-dasharray": "7.0,7.0"
|
|
2624
2629
|
};
|
|
2625
|
-
t.nodeType && (s = { "stroke-width": 1 }),
|
|
2630
|
+
t.nodeType && (s = { "stroke-width": 1 }), de(r, {
|
|
2626
2631
|
x: t.x,
|
|
2627
2632
|
y: t.y,
|
|
2628
2633
|
fill: i,
|
|
@@ -2634,32 +2639,32 @@ var y = v, b = /* @__PURE__ */ e((e) => u()[e], "getRequiredConfig"), x = /* @__
|
|
|
2634
2639
|
attrs: s
|
|
2635
2640
|
});
|
|
2636
2641
|
let l = n.boundaryFont();
|
|
2637
|
-
l.fontWeight = "bold", l.fontSize += 2, l.fontColor = o,
|
|
2638
|
-
}, "drawBoundary"),
|
|
2642
|
+
l.fontWeight = "bold", l.fontSize += 2, l.fontColor = o, xe(n)(t.label.text, r, t.x, t.y + t.label.Y, t.width, t.height, { fill: "#444444" }, l), t.type && t.type.text !== "" && (l = n.boundaryFont(), l.fontColor = o, xe(n)(t.type.text, r, t.x, t.y + t.type.Y, t.width, t.height, { fill: "#444444" }, l)), t.descr && t.descr.text !== "" && (l = n.boundaryFont(), l.fontSize -= 2, l.fontColor = o, xe(n)(t.descr.text, r, t.x, t.y + t.descr.Y, t.width, t.height, { fill: "#444444" }, l));
|
|
2643
|
+
}, "drawBoundary"), me = /* @__PURE__ */ e(function(e, t) {
|
|
2639
2644
|
e.append("defs").append("symbol").attr("id", t + "-database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr("d", "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z");
|
|
2640
|
-
}, "insertDatabaseIcon"),
|
|
2645
|
+
}, "insertDatabaseIcon"), he = /* @__PURE__ */ e(function(e, t) {
|
|
2641
2646
|
e.append("defs").append("symbol").attr("id", t + "-computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z");
|
|
2642
|
-
}, "insertComputerIcon"),
|
|
2647
|
+
}, "insertComputerIcon"), ge = /* @__PURE__ */ e(function(e, t) {
|
|
2643
2648
|
e.append("defs").append("symbol").attr("id", t + "-clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z");
|
|
2644
|
-
}, "insertClockIcon"),
|
|
2649
|
+
}, "insertClockIcon"), _e = /* @__PURE__ */ e(function(e, t) {
|
|
2645
2650
|
e.append("defs").append("marker").attr("id", t + "-arrowhead").attr("refX", 9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z");
|
|
2646
|
-
}, "insertArrowHead"),
|
|
2651
|
+
}, "insertArrowHead"), ve = /* @__PURE__ */ e(function(e, t) {
|
|
2647
2652
|
e.append("defs").append("marker").attr("id", t + "-arrowend").attr("refX", 1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 z");
|
|
2648
|
-
}, "insertArrowEnd"),
|
|
2653
|
+
}, "insertArrowEnd"), ye = /* @__PURE__ */ e(function(e, t) {
|
|
2649
2654
|
e.append("defs").append("marker").attr("id", t + "-filled-head").attr("refX", 18).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");
|
|
2650
|
-
}, "insertArrowFilledHead"),
|
|
2655
|
+
}, "insertArrowFilledHead"), be = /* @__PURE__ */ e(function(e, t) {
|
|
2651
2656
|
let n = e.append("defs").append("marker").attr("id", t + "-crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 16).attr("refY", 4);
|
|
2652
2657
|
n.append("path").attr("fill", "black").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 9,2 V 6 L16,4 Z"), n.append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 0,1 L 6,7 M 6,1 L 0,7");
|
|
2653
|
-
}, "insertArrowCrossHead"),
|
|
2658
|
+
}, "insertArrowCrossHead"), xe = /* @__PURE__ */ (function() {
|
|
2654
2659
|
function t(e, t, n, r, a, o, s) {
|
|
2655
2660
|
i(t.append("text").attr("x", n + a / 2).attr("y", r + o / 2 + 5).style("text-anchor", "middle").text(e), s);
|
|
2656
2661
|
}
|
|
2657
2662
|
e(t, "byText");
|
|
2658
|
-
function n(e, t, n, r, a, o,
|
|
2659
|
-
let { fontSize: d, fontFamily: f, fontWeight: p } =
|
|
2663
|
+
function n(e, t, n, r, a, o, s, l) {
|
|
2664
|
+
let { fontSize: d, fontFamily: f, fontWeight: p } = l, m = e.split(u.lineBreakRegex);
|
|
2660
2665
|
for (let e = 0; e < m.length; e++) {
|
|
2661
|
-
let o = e * d - d * (m.length - 1) / 2,
|
|
2662
|
-
|
|
2666
|
+
let o = e * d - d * (m.length - 1) / 2, l = t.append("text").attr("x", n + a / 2).attr("y", r).style("text-anchor", "middle").attr("dominant-baseline", "middle").style("font-size", d).style("font-weight", p).style("font-family", f);
|
|
2667
|
+
l.append("tspan").attr("dy", o).text(m[e]).attr("alignment-baseline", "mathematical"), i(l, s);
|
|
2663
2668
|
}
|
|
2664
2669
|
}
|
|
2665
2670
|
e(n, "byTspan");
|
|
@@ -2675,17 +2680,17 @@ var y = v, b = /* @__PURE__ */ e((e) => u()[e], "getRequiredConfig"), x = /* @__
|
|
|
2675
2680
|
return e.textPlacement === "fo" ? r : e.textPlacement === "old" ? t : n;
|
|
2676
2681
|
};
|
|
2677
2682
|
})(), Q = {
|
|
2678
|
-
drawRect:
|
|
2679
|
-
drawBoundary:
|
|
2680
|
-
drawRels:
|
|
2681
|
-
insertArrowHead:
|
|
2682
|
-
insertArrowEnd:
|
|
2683
|
-
insertArrowFilledHead:
|
|
2684
|
-
insertArrowCrossHead:
|
|
2685
|
-
insertDatabaseIcon:
|
|
2686
|
-
insertComputerIcon:
|
|
2687
|
-
insertClockIcon:
|
|
2688
|
-
},
|
|
2683
|
+
drawRect: de,
|
|
2684
|
+
drawBoundary: pe,
|
|
2685
|
+
drawRels: fe,
|
|
2686
|
+
insertArrowHead: _e,
|
|
2687
|
+
insertArrowEnd: ve,
|
|
2688
|
+
insertArrowFilledHead: ye,
|
|
2689
|
+
insertArrowCrossHead: be,
|
|
2690
|
+
insertDatabaseIcon: me,
|
|
2691
|
+
insertComputerIcon: he,
|
|
2692
|
+
insertClockIcon: ge
|
|
2693
|
+
}, Se = /* @__PURE__ */ e((e, t) => {
|
|
2689
2694
|
if (t === "sandbox") {
|
|
2690
2695
|
let t = n("#i" + e).node()?.contentDocument;
|
|
2691
2696
|
if (!t) throw Error(`Sandbox iframe #i${e} is missing its content document`);
|
|
@@ -2698,21 +2703,21 @@ var y = v, b = /* @__PURE__ */ e((e) => u()[e], "getRequiredConfig"), x = /* @__
|
|
|
2698
2703
|
root: n("body"),
|
|
2699
2704
|
doc: document
|
|
2700
2705
|
};
|
|
2701
|
-
}, "getDiagramRoot"),
|
|
2706
|
+
}, "getDiagramRoot"), Ce = /* @__PURE__ */ new Set([
|
|
2702
2707
|
"system_queue",
|
|
2703
2708
|
"external_system_queue",
|
|
2704
2709
|
"container_queue",
|
|
2705
2710
|
"external_container_queue",
|
|
2706
2711
|
"component_queue",
|
|
2707
2712
|
"external_component_queue"
|
|
2708
|
-
]),
|
|
2713
|
+
]), we = /* @__PURE__ */ new Set([
|
|
2709
2714
|
"system_db",
|
|
2710
2715
|
"external_system_db",
|
|
2711
2716
|
"container_db",
|
|
2712
2717
|
"external_container_db",
|
|
2713
2718
|
"component_db",
|
|
2714
2719
|
"external_component_db"
|
|
2715
|
-
]),
|
|
2720
|
+
]), Te = {
|
|
2716
2721
|
person: "person",
|
|
2717
2722
|
box: "rounded",
|
|
2718
2723
|
rounded: "rounded",
|
|
@@ -2722,27 +2727,27 @@ var y = v, b = /* @__PURE__ */ e((e) => u()[e], "getRequiredConfig"), x = /* @__
|
|
|
2722
2727
|
queue: "h-cyl",
|
|
2723
2728
|
pipe: "h-cyl",
|
|
2724
2729
|
component: "fr-rect"
|
|
2725
|
-
},
|
|
2726
|
-
let t =
|
|
2730
|
+
}, Ee = /* @__PURE__ */ e((e) => e ? Te[e.toLowerCase()] : void 0, "keywordShape"), De = /* @__PURE__ */ e((e) => {
|
|
2731
|
+
let t = Ee(e.shape) ?? Ee(e.sprite);
|
|
2727
2732
|
if (t) return t;
|
|
2728
2733
|
if (e.tags) for (let t of e.tags.split(",")) {
|
|
2729
|
-
let e =
|
|
2734
|
+
let e = Ee(t.trim());
|
|
2730
2735
|
if (e) return e;
|
|
2731
2736
|
}
|
|
2732
2737
|
let n = e.typeC4Shape.text;
|
|
2733
|
-
return n === "person" || n === "external_person" ? "person" :
|
|
2734
|
-
}, "resolveNodeShape"),
|
|
2738
|
+
return n === "person" || n === "external_person" ? "person" : we.has(n) ? "cylinder" : Ce.has(n) ? "h-cyl" : "rounded";
|
|
2739
|
+
}, "resolveNodeShape"), Oe = {
|
|
2735
2740
|
person: "Person",
|
|
2736
2741
|
system: "Software System",
|
|
2737
2742
|
container: "Container",
|
|
2738
2743
|
component: "Component"
|
|
2739
|
-
},
|
|
2744
|
+
}, ke = /* @__PURE__ */ e((e) => {
|
|
2740
2745
|
let t = e.replace(/^external_/, "").replace(/_(db|queue)$/, "");
|
|
2741
|
-
return
|
|
2742
|
-
}, "stereotypeLabel"),
|
|
2743
|
-
let t =
|
|
2746
|
+
return Oe[t] ?? t.replace(/_/g, " ");
|
|
2747
|
+
}, "stereotypeLabel"), Ae = /* @__PURE__ */ e((e) => e.startsWith("external_"), "isExternal"), je = /* @__PURE__ */ e((e) => {
|
|
2748
|
+
let t = ke(e.typeC4Shape.text);
|
|
2744
2749
|
return e.techn?.text ? `[${t}: ${e.techn.text}]` : `[${t}]`;
|
|
2745
|
-
}, "stereotypeText"),
|
|
2750
|
+
}, "stereotypeText"), Me = [
|
|
2746
2751
|
"person",
|
|
2747
2752
|
"system",
|
|
2748
2753
|
"system_db",
|
|
@@ -2753,17 +2758,17 @@ var y = v, b = /* @__PURE__ */ e((e) => u()[e], "getRequiredConfig"), x = /* @__
|
|
|
2753
2758
|
"component",
|
|
2754
2759
|
"component_db",
|
|
2755
2760
|
"component_queue"
|
|
2756
|
-
].flatMap((e) => [e, `external_${e}`]),
|
|
2757
|
-
let n = e.typeC4Shape.text, r = e.bgColor ?? (
|
|
2761
|
+
].flatMap((e) => [e, `external_${e}`]), Ne = new Set(Me), Pe = /* @__PURE__ */ e((e) => Ne.has(e), "isC4ElementType"), Fe = /* @__PURE__ */ e((e, t) => {
|
|
2762
|
+
let n = e.typeC4Shape.text, r = e.bgColor ?? (Pe(n) && t[`${n}_bg_color`]), i = e.borderColor ?? (Pe(n) && t[`${n}_border_color`]), a = [];
|
|
2758
2763
|
return r && a.push(`fill:${r}`), i && a.push(`stroke:${i}`), a.push(`color:${e.fontColor ?? "#FFFFFF"}`), a;
|
|
2759
|
-
}, "elementCssStyles"),
|
|
2764
|
+
}, "elementCssStyles"), Ie = /* @__PURE__ */ e((e, t, n, r, i) => {
|
|
2760
2765
|
let a = e.typeC4Shape.text, o = ["c4-shape", `c4-${a}`];
|
|
2761
|
-
|
|
2762
|
-
let s =
|
|
2766
|
+
Ae(a) && o.push("c4-external");
|
|
2767
|
+
let s = De(e), l = Fe(e, t);
|
|
2763
2768
|
return (s === "rounded" || s === "fr-rect") && l.push("rx:12px", "ry:12px"), {
|
|
2764
2769
|
id: e.alias,
|
|
2765
2770
|
label: e.label.text,
|
|
2766
|
-
stereotype:
|
|
2771
|
+
stereotype: je(e),
|
|
2767
2772
|
description: e.descr?.text ? [e.descr.text] : void 0,
|
|
2768
2773
|
labelType: "string",
|
|
2769
2774
|
isGroup: !1,
|
|
@@ -2775,14 +2780,14 @@ var y = v, b = /* @__PURE__ */ e((e) => u()[e], "getRequiredConfig"), x = /* @__
|
|
|
2775
2780
|
useHtmlLabels: !1,
|
|
2776
2781
|
width: i
|
|
2777
2782
|
};
|
|
2778
|
-
}, "buildC4Node"),
|
|
2779
|
-
|
|
2780
|
-
var $ = {},
|
|
2783
|
+
}, "buildC4Node"), Le = 0, Re = 0, ze = 4, Be = 2;
|
|
2784
|
+
y.yy = ue;
|
|
2785
|
+
var $ = {}, Ve = class {
|
|
2781
2786
|
static {
|
|
2782
2787
|
e(this, "Bounds");
|
|
2783
2788
|
}
|
|
2784
2789
|
constructor(e) {
|
|
2785
|
-
this.name = "", this.data = {}, this.data.startx = void 0, this.data.stopx = void 0, this.data.starty = void 0, this.data.stopy = void 0, this.data.widthLimit = void 0, this.nextData = {}, this.nextData.startx = void 0, this.nextData.stopx = void 0, this.nextData.starty = void 0, this.nextData.stopy = void 0, this.nextData.cnt = 0,
|
|
2790
|
+
this.name = "", this.data = {}, this.data.startx = void 0, this.data.stopx = void 0, this.data.starty = void 0, this.data.stopy = void 0, this.data.widthLimit = void 0, this.nextData = {}, this.nextData.startx = void 0, this.nextData.stopx = void 0, this.nextData.starty = void 0, this.nextData.stopy = void 0, this.nextData.cnt = 0, He(e.db.getConfig());
|
|
2786
2791
|
}
|
|
2787
2792
|
setData(e, t, n, r) {
|
|
2788
2793
|
this.nextData.startx = this.data.startx = e, this.nextData.stopx = this.data.stopx = t, this.nextData.starty = this.data.starty = n, this.nextData.stopy = this.data.stopy = r;
|
|
@@ -2793,7 +2798,7 @@ var $ = {}, ze = class {
|
|
|
2793
2798
|
insert(e) {
|
|
2794
2799
|
this.nextData.cnt = this.nextData.cnt + 1;
|
|
2795
2800
|
let t = this.nextData.stopx, n = this.data.widthLimit, r = this.nextData.startx === this.nextData.stopx ? t + e.margin : t + e.margin * 2, i = r + e.width, a = this.nextData.starty + e.margin * 2, o = a + e.height;
|
|
2796
|
-
(r >= n || i >= n || this.nextData.cnt >
|
|
2801
|
+
(r >= n || i >= n || this.nextData.cnt > ze) && (r = this.nextData.startx + e.margin + $.nextLinePaddingX, a = this.nextData.stopy + e.margin * 2, this.nextData.stopx = i = r + e.width, this.nextData.starty = this.nextData.stopy, this.nextData.stopy = o = a + e.height, this.nextData.cnt = 1), e.x = r, e.y = a, this.updateVal(this.data, "startx", r, Math.min), this.updateVal(this.data, "starty", a, Math.min), this.updateVal(this.data, "stopx", i, Math.max), this.updateVal(this.data, "stopy", o, Math.max), this.updateVal(this.nextData, "startx", r, Math.min), this.updateVal(this.nextData, "starty", a, Math.min), this.updateVal(this.nextData, "stopx", i, Math.max), this.updateVal(this.nextData, "stopy", o, Math.max);
|
|
2797
2802
|
}
|
|
2798
2803
|
init(e) {
|
|
2799
2804
|
this.name = "", this.data = {
|
|
@@ -2808,102 +2813,107 @@ var $ = {}, ze = class {
|
|
|
2808
2813
|
starty: void 0,
|
|
2809
2814
|
stopy: void 0,
|
|
2810
2815
|
cnt: 0
|
|
2811
|
-
},
|
|
2816
|
+
}, He(e.db.getConfig());
|
|
2812
2817
|
}
|
|
2813
2818
|
bumpLastMargin(e) {
|
|
2814
2819
|
this.data.stopx += e, this.data.stopy += e;
|
|
2815
2820
|
}
|
|
2816
|
-
},
|
|
2817
|
-
|
|
2818
|
-
}, "setConf"),
|
|
2821
|
+
}, He = /* @__PURE__ */ e(function(e) {
|
|
2822
|
+
l($, e), e?.fontFamily && ($.personFontFamily = $.systemFontFamily = $.messageFontFamily = e.fontFamily), e?.fontSize && ($.personFontSize = $.systemFontSize = $.messageFontSize = e.fontSize), e?.fontWeight && ($.personFontWeight = $.systemFontWeight = $.messageFontWeight = e.fontWeight);
|
|
2823
|
+
}, "setConf"), Ue = /* @__PURE__ */ e((e) => ({
|
|
2819
2824
|
fontFamily: e.boundaryFontFamily,
|
|
2820
2825
|
fontSize: e.boundaryFontSize,
|
|
2821
2826
|
fontWeight: e.boundaryFontWeight
|
|
2822
|
-
}), "boundaryFont"),
|
|
2827
|
+
}), "boundaryFont"), We = /* @__PURE__ */ e((e) => ({
|
|
2823
2828
|
fontFamily: e.messageFontFamily,
|
|
2824
2829
|
fontSize: e.messageFontSize,
|
|
2825
2830
|
fontWeight: e.messageFontWeight
|
|
2826
2831
|
}), "messageFont");
|
|
2827
|
-
function
|
|
2832
|
+
function Ge(e, t, n, r, i) {
|
|
2828
2833
|
let a = t[e];
|
|
2829
2834
|
if (!a.width) {
|
|
2830
|
-
if (n) a.text =
|
|
2835
|
+
if (n) a.text = h(a.text, i, r), a.textLines = a.text.split(u.lineBreakRegex).length, a.width = i, a.height = p(a.text, r);
|
|
2831
2836
|
else {
|
|
2832
|
-
let e = a.text.split(
|
|
2837
|
+
let e = a.text.split(u.lineBreakRegex);
|
|
2833
2838
|
a.textLines = e.length;
|
|
2834
2839
|
let t = 0;
|
|
2835
2840
|
a.height = 0, a.width = 0;
|
|
2836
|
-
for (let n of e) a.width = Math.max(
|
|
2841
|
+
for (let n of e) a.width = Math.max(m(n, r), a.width), t = p(n, r), a.height += t;
|
|
2837
2842
|
}
|
|
2838
2843
|
}
|
|
2839
2844
|
return a;
|
|
2840
2845
|
}
|
|
2841
|
-
e(
|
|
2842
|
-
var
|
|
2846
|
+
e(Ge, "calcC4ShapeTextWH");
|
|
2847
|
+
var Ke = /* @__PURE__ */ e(function(e, t, n) {
|
|
2843
2848
|
let r = n.data.startx, i = n.data.starty;
|
|
2844
|
-
t.x = r, t.y = i, t.width = n.data.stopx - r, t.height = n.data.stopy - i, t.
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2849
|
+
t.x = r, t.y = i, t.width = n.data.stopx - r, t.height = n.data.stopy - i, t.intersect = (e) => g.rect({
|
|
2850
|
+
x: t.x + t.width / 2,
|
|
2851
|
+
y: t.y + t.height / 2,
|
|
2852
|
+
width: t.width,
|
|
2853
|
+
height: t.height
|
|
2854
|
+
}, e), t.label.y = $.c4ShapeMargin - 35;
|
|
2855
|
+
let a = t.wrap && $.wrap, o = Ue($);
|
|
2856
|
+
o.fontSize += 2, o.fontWeight = "bold", Ge("label", t, a, o, m(t.label.text, o)), Q.drawBoundary(e, t, $);
|
|
2857
|
+
}, "drawBoundary"), qe = /* @__PURE__ */ e(async function(t, n, r, i) {
|
|
2858
|
+
let a = o(), s = a.look ?? "classic", l = { config: a }, u = n.attr("id") ?? "", d = i.map((e) => r[Number(e)]), f = /* @__PURE__ */ e((e) => {
|
|
2859
|
+
let t = e.shape ? _[e.shape] : void 0;
|
|
2850
2860
|
if (!t) throw Error(`C4: no shape handler for "${e.shape}"`);
|
|
2851
2861
|
return t;
|
|
2852
2862
|
}, "shapeHandlerFor");
|
|
2853
2863
|
await Promise.all(d.map(async (e) => {
|
|
2854
|
-
let t =
|
|
2855
|
-
t.domId = `${
|
|
2856
|
-
let r = await f(t)(n, t,
|
|
2864
|
+
let t = Ie(e, $, $.c4ShapePadding, s, $.width);
|
|
2865
|
+
t.domId = `${u}-${t.id}`;
|
|
2866
|
+
let r = await f(t)(n, t, l);
|
|
2857
2867
|
e.width = t.width ?? $.width, e.height = t.height ?? $.height, e.margin = $.c4ShapeMargin, r.remove();
|
|
2858
2868
|
}));
|
|
2859
2869
|
for (let e of d) t.insert(e);
|
|
2860
2870
|
await Promise.all(d.map(async (e) => {
|
|
2861
|
-
let t =
|
|
2862
|
-
t.domId = `${
|
|
2871
|
+
let t = Ie(e, $, $.c4ShapePadding, s, $.width);
|
|
2872
|
+
t.domId = `${u}-${t.id}`, t.x = e.x + e.width / 2, t.y = e.y + e.height / 2;
|
|
2863
2873
|
let r = n.append("g").attr("transform", `translate(${e.x + e.width / 2}, ${e.y + e.height / 2})`);
|
|
2864
|
-
await f(t)(r, t,
|
|
2874
|
+
await f(t)(r, t, l), e.intersect = t.intersect;
|
|
2865
2875
|
})), t.bumpLastMargin($.c4ShapeMargin);
|
|
2866
|
-
}, "drawC4ShapeArray"),
|
|
2876
|
+
}, "drawC4ShapeArray"), Je = class {
|
|
2867
2877
|
static {
|
|
2868
2878
|
e(this, "Point");
|
|
2869
2879
|
}
|
|
2870
2880
|
constructor(e, t) {
|
|
2871
2881
|
this.x = e, this.y = t;
|
|
2872
2882
|
}
|
|
2873
|
-
},
|
|
2874
|
-
if (!e.intersect) throw Error(`C4
|
|
2883
|
+
}, Ye = /* @__PURE__ */ e(function(e, t) {
|
|
2884
|
+
if (!e.intersect) throw Error(`C4 element "${e.alias}" has no intersect function. Please report this to https://github.com/mermaid-js/mermaid/issues`);
|
|
2875
2885
|
let { x: n, y: r } = e.intersect(t);
|
|
2876
|
-
return new
|
|
2877
|
-
}, "getIntersectPoint"),
|
|
2886
|
+
return new Je(n, r);
|
|
2887
|
+
}, "getIntersectPoint"), Xe = /* @__PURE__ */ e(function(e, t) {
|
|
2878
2888
|
let n = {
|
|
2879
2889
|
x: 0,
|
|
2880
2890
|
y: 0
|
|
2881
2891
|
};
|
|
2882
2892
|
n.x = t.x + t.width / 2, n.y = t.y + t.height / 2;
|
|
2883
|
-
let r =
|
|
2893
|
+
let r = Ye(e, n);
|
|
2884
2894
|
return n.x = e.x + e.width / 2, n.y = e.y + e.height / 2, {
|
|
2885
2895
|
startPoint: r,
|
|
2886
|
-
endPoint:
|
|
2896
|
+
endPoint: Ye(t, n)
|
|
2887
2897
|
};
|
|
2888
|
-
}, "getIntersectPoints"),
|
|
2898
|
+
}, "getIntersectPoints"), Ze = /* @__PURE__ */ e(function(e, t, n, r, i) {
|
|
2889
2899
|
let a = r.db.getC4Type(), o = 0;
|
|
2890
2900
|
for (let e of t) {
|
|
2891
2901
|
o += 1;
|
|
2892
|
-
let t = e.wrap && $.wrap, r =
|
|
2902
|
+
let t = e.wrap && $.wrap, r = We($);
|
|
2893
2903
|
a === "C4Dynamic" && (e.label.text = o + ": " + e.label.text);
|
|
2894
|
-
let i =
|
|
2895
|
-
|
|
2904
|
+
let i = m(e.label.text, r);
|
|
2905
|
+
Ge("label", e, t, r, i), e.techn && e.techn.text !== "" && (i = m(e.techn.text, r), Ge("techn", e, t, r, i)), e.descr && e.descr.text !== "" && (i = m(e.descr.text, r), Ge("descr", e, t, r, i));
|
|
2896
2906
|
let s = n(e.from), l = n(e.to);
|
|
2897
|
-
if (!s || !l) throw Error(`C4 rel "${e.from}" -> "${e.to}" references an unknown shape`);
|
|
2898
|
-
let u =
|
|
2907
|
+
if (!s || !l) throw Error(`C4 rel "${e.from}" -> "${e.to}" references an unknown shape or boundary`);
|
|
2908
|
+
let u = Xe(s, l);
|
|
2899
2909
|
if (!u.startPoint || !u.endPoint) throw Error(`Could not calculate intersection points for rel "${e.from}" -> "${e.to}"`);
|
|
2900
2910
|
e.startPoint = u.startPoint, e.endPoint = u.endPoint;
|
|
2901
2911
|
}
|
|
2902
2912
|
Q.drawRels(e, t, $, i);
|
|
2903
2913
|
}, "drawRels");
|
|
2904
|
-
async function
|
|
2905
|
-
let a = i.db, o = new
|
|
2906
|
-
o.data.widthLimit = n.data.widthLimit / Math.min(
|
|
2914
|
+
async function Qe(e, t, n, r, i) {
|
|
2915
|
+
let a = i.db, o = new Ve(i);
|
|
2916
|
+
o.data.widthLimit = n.data.widthLimit / Math.min(Be, r.length);
|
|
2907
2917
|
for (let [s, l] of r.entries()) {
|
|
2908
2918
|
let r = 0;
|
|
2909
2919
|
l.image = {
|
|
@@ -2911,21 +2921,21 @@ async function Xe(e, t, n, r, i) {
|
|
|
2911
2921
|
height: 0,
|
|
2912
2922
|
Y: 0
|
|
2913
2923
|
}, l.sprite && (l.image.width = 48, l.image.height = 48, l.image.Y = r, r = l.image.Y + l.image.height);
|
|
2914
|
-
let u = l.wrap && $.wrap, d =
|
|
2924
|
+
let u = l.wrap && $.wrap, d = Ue($);
|
|
2915
2925
|
d.fontSize += 2, d.fontWeight = "bold";
|
|
2916
|
-
let f =
|
|
2926
|
+
let f = Ge("label", l, u, d, o.data.widthLimit);
|
|
2917
2927
|
if (f.Y = r + 8, r = f.Y + f.height, l.type && l.type.text !== "") {
|
|
2918
2928
|
l.type.text = "[" + l.type.text + "]";
|
|
2919
|
-
let e =
|
|
2929
|
+
let e = Ge("type", l, u, Ue($), o.data.widthLimit);
|
|
2920
2930
|
e.Y = r + 5, r = e.Y + e.height;
|
|
2921
2931
|
}
|
|
2922
2932
|
if (l.descr && l.descr.text !== "") {
|
|
2923
|
-
let e =
|
|
2933
|
+
let e = Ue($);
|
|
2924
2934
|
e.fontSize -= 2;
|
|
2925
|
-
let t =
|
|
2935
|
+
let t = Ge("descr", l, u, e, o.data.widthLimit);
|
|
2926
2936
|
t.Y = r + 20, r = t.Y + t.height;
|
|
2927
2937
|
}
|
|
2928
|
-
if (s == 0 || s %
|
|
2938
|
+
if (s == 0 || s % Be === 0) {
|
|
2929
2939
|
let e = n.data.startx + $.diagramMarginX, t = n.data.stopy + $.diagramMarginY + r;
|
|
2930
2940
|
o.setData(e, e, t, t);
|
|
2931
2941
|
} else {
|
|
@@ -2934,47 +2944,47 @@ async function Xe(e, t, n, r, i) {
|
|
|
2934
2944
|
}
|
|
2935
2945
|
o.name = l.alias;
|
|
2936
2946
|
let p = a.getC4ShapeArray(l.alias), m = a.getC4ShapeKeys(l.alias);
|
|
2937
|
-
m.length > 0 && await
|
|
2947
|
+
m.length > 0 && await qe(o, e, p, m), t = l.alias;
|
|
2938
2948
|
let h = a.getBoundaries(t);
|
|
2939
|
-
h.length > 0 && await
|
|
2949
|
+
h.length > 0 && await Qe(e, t, o, h, i), l.alias !== "global" && Ke(e, l, o), n.data.stopy = Math.max(o.data.stopy + $.c4ShapeMargin, n.data.stopy), n.data.stopx = Math.max(o.data.stopx + $.c4ShapeMargin, n.data.stopx), Le = Math.max(Le, n.data.stopx), Re = Math.max(Re, n.data.stopy);
|
|
2940
2950
|
}
|
|
2941
2951
|
}
|
|
2942
|
-
e(
|
|
2943
|
-
var
|
|
2944
|
-
drawPersonOrSystemArray:
|
|
2945
|
-
drawBoundary:
|
|
2946
|
-
setConf:
|
|
2952
|
+
e(Qe, "drawInsideBoundary");
|
|
2953
|
+
var $e = {
|
|
2954
|
+
drawPersonOrSystemArray: qe,
|
|
2955
|
+
drawBoundary: Ke,
|
|
2956
|
+
setConf: He,
|
|
2947
2957
|
draw: /* @__PURE__ */ e(async function(e, n, r, i) {
|
|
2948
|
-
$ =
|
|
2949
|
-
let
|
|
2950
|
-
|
|
2951
|
-
let d =
|
|
2958
|
+
$ = x("c4");
|
|
2959
|
+
let a = o().securityLevel, { root: l } = Se(n, a), u = i.db;
|
|
2960
|
+
u.setWrap($.wrap), ze = u.getC4ShapeInRow(), Be = u.getC4BoundaryInRow(), t.debug(`C:${JSON.stringify($, null, 2)}`);
|
|
2961
|
+
let d = l.select(`[id="${n}"]`);
|
|
2952
2962
|
Q.insertComputerIcon(d, n), Q.insertDatabaseIcon(d, n), Q.insertClockIcon(d, n);
|
|
2953
|
-
let f = new
|
|
2954
|
-
f.setData($.diagramMarginX, $.diagramMarginX, $.diagramMarginY, $.diagramMarginY), f.data.widthLimit = screen.availWidth,
|
|
2955
|
-
let p =
|
|
2956
|
-
await
|
|
2957
|
-
let m = f.data, h = m.startx, g = m.starty, _ =
|
|
2958
|
-
p && d.append("text").text(p).attr("x", v / 2 - 4 * $.diagramMarginX).attr("y", g + $.diagramMarginY),
|
|
2959
|
-
let
|
|
2960
|
-
d.attr("viewBox", h - $.diagramMarginX + " -" + ($.diagramMarginY +
|
|
2963
|
+
let f = new Ve(i);
|
|
2964
|
+
f.setData($.diagramMarginX, $.diagramMarginX, $.diagramMarginY, $.diagramMarginY), f.data.widthLimit = screen.availWidth, Le = $.diagramMarginX, Re = $.diagramMarginY;
|
|
2965
|
+
let p = u.getTitle();
|
|
2966
|
+
await Qe(d, "", f, u.getBoundaries(""), i), Q.insertArrowHead(d, n), Q.insertArrowEnd(d, n), Q.insertArrowCrossHead(d, n), Q.insertArrowFilledHead(d, n), Ze(d, u.getRels(), u.getC4Shape, i, n), f.data.stopx = Le, f.data.stopy = Re;
|
|
2967
|
+
let m = f.data, h = m.startx, g = m.starty, _ = Re - g + 2 * $.diagramMarginY, v = Le - h, y = v + 2 * $.diagramMarginX;
|
|
2968
|
+
p && d.append("text").text(p).attr("x", v / 2 - 4 * $.diagramMarginX).attr("y", g + $.diagramMarginY), s(d, _, y, $.useMaxWidth);
|
|
2969
|
+
let b = p ? 60 : 0;
|
|
2970
|
+
d.attr("viewBox", h - $.diagramMarginX + " -" + ($.diagramMarginY + b) + " " + y + " " + (_ + b)), t.debug("models:", m);
|
|
2961
2971
|
}, "draw")
|
|
2962
|
-
},
|
|
2963
|
-
let e =
|
|
2964
|
-
for (let n of
|
|
2972
|
+
}, et = /* @__PURE__ */ e(() => {
|
|
2973
|
+
let e = o().c4 ?? {}, t = new CSSStyleSheet();
|
|
2974
|
+
for (let n of Me) {
|
|
2965
2975
|
let r = t.cssRules[t.insertRule(`.c4-shape.c4-${n} .label {}`, t.cssRules.length)], i = e[`${n}FontFamily`], a = e[`${n}FontSize`], o = e[`${n}FontWeight`];
|
|
2966
2976
|
i && r.style.setProperty("font-family", i), a && r.style.setProperty("font-size", typeof a == "number" ? `${a}px` : a), o && r.style.setProperty("font-weight", String(o));
|
|
2967
2977
|
}
|
|
2968
2978
|
return [...t.cssRules].filter((e) => e.style.length > 0).map((e) => ` ${e.cssText}`).join("\n");
|
|
2969
|
-
}, "elementFontStyles"),
|
|
2970
|
-
parser:
|
|
2971
|
-
db:
|
|
2972
|
-
renderer:
|
|
2979
|
+
}, "elementFontStyles"), tt = {
|
|
2980
|
+
parser: b,
|
|
2981
|
+
db: ue,
|
|
2982
|
+
renderer: $e,
|
|
2973
2983
|
styles: /* @__PURE__ */ e((e) => `.person {
|
|
2974
2984
|
stroke: ${e.personBorder};
|
|
2975
2985
|
fill: ${e.personBkg};
|
|
2976
2986
|
}
|
|
2977
|
-
${
|
|
2987
|
+
${et()}
|
|
2978
2988
|
|
|
2979
2989
|
/* The element font colour is set inline per element (default white); the
|
|
2980
2990
|
label text takes it via currentColor. */
|
|
@@ -3003,8 +3013,8 @@ ${Qe()}
|
|
|
3003
3013
|
}
|
|
3004
3014
|
`, "getStyles"),
|
|
3005
3015
|
init: /* @__PURE__ */ e(({ c4: e, wrap: t }) => {
|
|
3006
|
-
|
|
3016
|
+
$e.setConf(e), ue.setWrap(t);
|
|
3007
3017
|
}, "init")
|
|
3008
3018
|
};
|
|
3009
3019
|
//#endregion
|
|
3010
|
-
export {
|
|
3020
|
+
export { tt as diagram };
|