@pi-outpost/embed 0.32.4 → 0.33.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-D2ekPeYe.cjs → conversationExport-BeO-f3PY.cjs} +1 -1
- package/dist/{conversationExport-QWEGKkKB.js → conversationExport-DZ2Xi8Lb.js} +2 -2
- package/dist/{conversationHistory-BylZCAb1.js → conversationHistory-CT_-smUm.js} +9099 -6555
- package/dist/conversationHistory-CZD9jO6h.cjs +287 -0
- 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,21 +1,22 @@
|
|
|
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 {
|
|
4
|
-
import { a as f, p,
|
|
5
|
-
import {
|
|
6
|
-
import { n as
|
|
7
|
-
import { a as
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
import { B as r, M as i, b as a, f as o, g as s, k as c, w as l, y as u, z as d } from "./chunk-VPRB5NB3-DJh7spRO.js";
|
|
4
|
+
import { a as f, d as p, m, r as h } from "./chunk-3YJQHVM4-BNbfg-7y.js";
|
|
5
|
+
import { n as g, t as _ } from "./chunk-HJ2JQQFS-CgYTXthn.js";
|
|
6
|
+
import { n as v, r as y } from "./chunk-E2ZNV5FY-Bu796yUY.js";
|
|
7
|
+
import { a as b, i as x, r as S, t as C } from "./chunk-4EA7E6EY-B5P7n2an.js";
|
|
8
|
+
import { s as w } from "./chunk-J5ZVWO5B-DEP-pB-1.js";
|
|
9
|
+
import { t as T } from "./rough.esm-D2JJJ0Ot.js";
|
|
10
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-XC4XBNZT.mjs
|
|
11
|
+
var E = 1, D = 3;
|
|
12
|
+
async function O(t) {
|
|
12
13
|
let n = t.getElementsByTagName("img");
|
|
13
14
|
if (!n || n.length === 0) return;
|
|
14
|
-
let r = !
|
|
15
|
+
let r = !k(t);
|
|
15
16
|
await Promise.all([...n].map((t) => new Promise((n) => {
|
|
16
17
|
function i() {
|
|
17
18
|
if (t.style.display = "flex", t.style.flexDirection = "column", r) {
|
|
18
|
-
let e =
|
|
19
|
+
let e = a().fontSize ? a().fontSize : window.getComputedStyle(document.body).fontSize, [n = o.fontSize] = m(e), r = n * 5 + "px";
|
|
19
20
|
t.style.minWidth = r, t.style.maxWidth = r;
|
|
20
21
|
} else t.style.width = "100%";
|
|
21
22
|
n(t);
|
|
@@ -25,13 +26,13 @@ async function E(t) {
|
|
|
25
26
|
}), t.addEventListener("error", i), t.addEventListener("load", i);
|
|
26
27
|
})));
|
|
27
28
|
}
|
|
28
|
-
e(
|
|
29
|
-
function
|
|
30
|
-
return e.nodeType ===
|
|
29
|
+
e(O, "configureLabelImages");
|
|
30
|
+
function k(e) {
|
|
31
|
+
return e.nodeType === D ? e.textContent?.trim() !== "" : e.nodeType !== E || e.tagName.toLowerCase() === "img" ? !1 : [...e.childNodes].some(k);
|
|
31
32
|
}
|
|
32
|
-
e(
|
|
33
|
-
var
|
|
34
|
-
let i =
|
|
33
|
+
e(k, "hasTextBesidesImages");
|
|
34
|
+
var A = 3, j = 32, M = /* @__PURE__ */ e(async (e, t, r) => {
|
|
35
|
+
let i = a(), o = e.insert("g").attr("class", r ?? "node default").attr("id", t.domId || t.id), s = o.insert("g").attr("class", "label").attr("style", p(t.labelStyle)), c = [
|
|
35
36
|
{
|
|
36
37
|
text: typeof t.label == "string" ? t.label : t.label?.[0] ?? "",
|
|
37
38
|
cssClass: "c4-name"
|
|
@@ -44,82 +45,101 @@ var O = 3, k = 32, A = /* @__PURE__ */ e(async (e, t, r) => {
|
|
|
44
45
|
text: e,
|
|
45
46
|
cssClass: "c4-descr"
|
|
46
47
|
}))
|
|
47
|
-
].filter((e) => e.text),
|
|
48
|
-
let r =
|
|
48
|
+
].filter((e) => e.text), l = t.width ? Math.max(t.width - 2 * (t.padding ?? 0), j) : a().flowchart?.wrappingWidth ?? 200, u = i.c4?.wrap ?? !0 ? l : Infinity, m = await Promise.all(c.map(async (e) => {
|
|
49
|
+
let r = s.append("g").attr("class", e.cssClass), a = await v(r, d(f(e.text ?? ""), i), {
|
|
49
50
|
useHtmlLabels: !1,
|
|
50
51
|
markdown: !1,
|
|
51
52
|
isNode: !0,
|
|
52
|
-
width:
|
|
53
|
+
width: u,
|
|
53
54
|
style: t.labelStyle
|
|
54
55
|
}, i);
|
|
55
56
|
return n(a).selectAll("tspan.text-outer-tspan").attr("text-anchor", "middle"), n(a).selectAll("tspan.text-inner-tspan").attr("font-weight", null).attr("font-style", null), {
|
|
56
57
|
el: r,
|
|
57
58
|
box: r.node().getBBox()
|
|
58
59
|
};
|
|
59
|
-
})),
|
|
60
|
-
for (let { el: e, box: t } of
|
|
61
|
-
let
|
|
62
|
-
return
|
|
63
|
-
shapeSvg:
|
|
64
|
-
bbox:
|
|
60
|
+
})), h = Math.max(...m.map(({ box: e }) => e.width), 0), g = 0;
|
|
61
|
+
for (let { el: e, box: t } of m) e.attr("transform", `translate(${h / 2 - t.x - t.width / 2}, ${g - t.y})`), g += t.height + A;
|
|
62
|
+
let _ = m.length > 0 ? g - A : 0;
|
|
63
|
+
return s.insert("rect", ":first-child"), s.attr("transform", `translate(${-h / 2}, ${-_ / 2})`), {
|
|
64
|
+
shapeSvg: o,
|
|
65
|
+
bbox: s.node().getBBox(),
|
|
65
66
|
halfPadding: (t.padding ?? 0) / 2,
|
|
66
|
-
label:
|
|
67
|
+
label: s
|
|
68
|
+
};
|
|
69
|
+
}, "c4LabelHelper"), N = /* @__PURE__ */ e((t, n) => {
|
|
70
|
+
let { x: r, y: i, width: a, height: o } = t;
|
|
71
|
+
return a >= n ? t : "left" in t ? {
|
|
72
|
+
x: r,
|
|
73
|
+
y: i,
|
|
74
|
+
width: n,
|
|
75
|
+
height: o,
|
|
76
|
+
top: i,
|
|
77
|
+
left: r,
|
|
78
|
+
bottom: i + o,
|
|
79
|
+
right: r + n,
|
|
80
|
+
toJSON: /* @__PURE__ */ e(() => ({}), "toJSON")
|
|
81
|
+
} : {
|
|
82
|
+
x: r - (n - a) / 2,
|
|
83
|
+
y: i,
|
|
84
|
+
width: n,
|
|
85
|
+
height: o
|
|
67
86
|
};
|
|
68
|
-
}, "
|
|
69
|
-
if (t.stereotype !== void 0) return
|
|
70
|
-
let i,
|
|
87
|
+
}, "withMinWidth"), P = /* @__PURE__ */ e(async (e, t, r) => {
|
|
88
|
+
if (t.stereotype !== void 0) return M(e, t, r);
|
|
89
|
+
let i, o = t.useHtmlLabels || s(a()?.htmlLabels);
|
|
71
90
|
i = r || "node default";
|
|
72
|
-
let
|
|
73
|
-
|
|
74
|
-
let
|
|
75
|
-
useHtmlLabels:
|
|
76
|
-
width: t.width || t.wrappingWidth ||
|
|
77
|
-
|
|
91
|
+
let c = e.insert("g").attr("class", i).attr("id", t.domId || t.id), l = c.insert("g").attr("class", "label").attr("style", p(t.labelStyle)), u;
|
|
92
|
+
u = t.label === void 0 ? "" : typeof t.label == "string" ? t.label : t.label[0];
|
|
93
|
+
let m = !!t.icon || !!t.img, h = t.labelType === "markdown", g = u && !t.width ? t.minWidth ?? 0 : 0, _ = await v(l, d(f(u), a()), {
|
|
94
|
+
useHtmlLabels: o,
|
|
95
|
+
width: t.width || t.wrappingWidth || a().flowchart?.wrappingWidth,
|
|
96
|
+
minWidth: g,
|
|
97
|
+
classes: h ? "markdown-node-label" : "",
|
|
78
98
|
style: t.labelStyle,
|
|
79
|
-
addSvgBackground:
|
|
80
|
-
markdown:
|
|
81
|
-
},
|
|
82
|
-
if (
|
|
83
|
-
let e =
|
|
84
|
-
await
|
|
85
|
-
} else
|
|
86
|
-
return
|
|
87
|
-
shapeSvg:
|
|
88
|
-
bbox:
|
|
89
|
-
halfPadding:
|
|
90
|
-
label:
|
|
99
|
+
addSvgBackground: m,
|
|
100
|
+
markdown: h
|
|
101
|
+
}, a()), b = (t?.padding ?? 0) / 2, x;
|
|
102
|
+
if (o) {
|
|
103
|
+
let e = _.children[0], t = n(_);
|
|
104
|
+
await O(e), x = await y.measure(() => e.getBoundingClientRect()), x = N(x, g), t.attr("width", x.width), t.attr("height", x.height);
|
|
105
|
+
} else x = await y.measure(() => _.getBBox()), x = N(x, g);
|
|
106
|
+
return o ? l.attr("transform", "translate(" + -x.width / 2 + ", " + -x.height / 2 + ")") : l.attr("transform", "translate(0, " + -x.height / 2 + ")"), t.centerLabel && l.attr("transform", "translate(" + -x.width / 2 + ", " + -x.height / 2 + ")"), l.insert("rect", ":first-child"), {
|
|
107
|
+
shapeSvg: c,
|
|
108
|
+
bbox: x,
|
|
109
|
+
halfPadding: b,
|
|
110
|
+
label: l
|
|
91
111
|
};
|
|
92
|
-
}, "labelHelper"),
|
|
93
|
-
let i = r.useHtmlLabels ??
|
|
112
|
+
}, "labelHelper"), F = /* @__PURE__ */ e(async (e, t, r) => {
|
|
113
|
+
let i = r.useHtmlLabels ?? l(a()), o = e.insert("g").attr("class", "label").attr("style", r.labelStyle || ""), s = await v(o, d(f(t), a()), {
|
|
94
114
|
useHtmlLabels: i,
|
|
95
|
-
width: r.width ||
|
|
115
|
+
width: r.width || a()?.flowchart?.wrappingWidth,
|
|
96
116
|
style: r.labelStyle,
|
|
97
117
|
addSvgBackground: !!r.icon || !!r.img
|
|
98
|
-
}), c = r.padding / 2,
|
|
99
|
-
if (
|
|
118
|
+
}), c = r.padding / 2, u;
|
|
119
|
+
if (l(a())) {
|
|
100
120
|
let e = s.children[0], t = n(s);
|
|
101
|
-
|
|
102
|
-
} else
|
|
103
|
-
return i ?
|
|
121
|
+
u = await y.measure(() => e.getBoundingClientRect()), t.attr("width", u.width), t.attr("height", u.height);
|
|
122
|
+
} else u = await y.measure(() => s.getBBox());
|
|
123
|
+
return i ? o.attr("transform", "translate(" + -u.width / 2 + ", " + -u.height / 2 + ")") : o.attr("transform", "translate(0, " + -u.height / 2 + ")"), r.centerLabel && o.attr("transform", "translate(" + -u.width / 2 + ", " + -u.height / 2 + ")"), o.insert("rect", ":first-child"), {
|
|
104
124
|
shapeSvg: e,
|
|
105
|
-
bbox:
|
|
125
|
+
bbox: u,
|
|
106
126
|
halfPadding: c,
|
|
107
|
-
label:
|
|
127
|
+
label: o
|
|
108
128
|
};
|
|
109
|
-
}, "insertLabel"),
|
|
129
|
+
}, "insertLabel"), I = /* @__PURE__ */ e((e, t, n) => {
|
|
110
130
|
if (n) {
|
|
111
131
|
e.width = n.width, e.height = n.height;
|
|
112
132
|
return;
|
|
113
133
|
}
|
|
114
134
|
let r = t.node().getBBox();
|
|
115
135
|
e.width = r.width, e.height = r.height;
|
|
116
|
-
}, "updateNodeBounds"),
|
|
117
|
-
function
|
|
136
|
+
}, "updateNodeBounds"), L = /* @__PURE__ */ e((e, t) => (e.look === "handDrawn" ? "rough-node" : "node") + " " + e.cssClasses + " " + (t || ""), "getNodeClasses");
|
|
137
|
+
function R(e) {
|
|
118
138
|
let t = e.map((e, t) => `${t === 0 ? "M" : "L"}${e.x},${e.y}`);
|
|
119
139
|
return t.push("Z"), t.join(" ");
|
|
120
140
|
}
|
|
121
|
-
e(
|
|
122
|
-
function
|
|
141
|
+
e(R, "createPathFromPoints");
|
|
142
|
+
function z(e, t, n, r, i, a) {
|
|
123
143
|
let o = [], s = n - e, c = r - t, l = s / a, u = 2 * Math.PI / l, d = t + c / 2;
|
|
124
144
|
for (let t = 0; t <= 50; t++) {
|
|
125
145
|
let n = e + t / 50 * s, r = d + i * Math.sin(u * (n - e));
|
|
@@ -130,8 +150,8 @@ function I(e, t, n, r, i, a) {
|
|
|
130
150
|
}
|
|
131
151
|
return o;
|
|
132
152
|
}
|
|
133
|
-
e(
|
|
134
|
-
function
|
|
153
|
+
e(z, "generateFullSineWavePoints");
|
|
154
|
+
function B(e, t, n, r, i, a) {
|
|
135
155
|
let o = [], s = i * Math.PI / 180, c = (a * Math.PI / 180 - s) / (r - 1);
|
|
136
156
|
for (let i = 0; i < r; i++) {
|
|
137
157
|
let r = s + i * c, a = e + n * Math.cos(r), l = t + n * Math.sin(r);
|
|
@@ -142,7 +162,7 @@ function L(e, t, n, r, i, a) {
|
|
|
142
162
|
}
|
|
143
163
|
return o;
|
|
144
164
|
}
|
|
145
|
-
e(
|
|
165
|
+
e(B, "generateCirclePoints");
|
|
146
166
|
function ee(t) {
|
|
147
167
|
let n = Array.from(t.childNodes).filter((e) => e.tagName === "path"), r = document.createElementNS("http://www.w3.org/2000/svg", "path"), i = n.map((e) => e.getAttribute("d")).filter((e) => e !== null).join(" ");
|
|
148
168
|
r.setAttribute("d", i);
|
|
@@ -170,13 +190,82 @@ function ee(t) {
|
|
|
170
190
|
return c.appendChild(r), c;
|
|
171
191
|
}
|
|
172
192
|
e(ee, "mergePaths");
|
|
173
|
-
var
|
|
193
|
+
var V = /* @__PURE__ */ e((e, t) => {
|
|
174
194
|
var n = e.x, r = e.y, i = t.x - n, a = t.y - r, o = e.width / 2, s = e.height / 2, c, l;
|
|
175
195
|
return Math.abs(a) * o > Math.abs(i) * s ? (a < 0 && (s = -s), c = a === 0 ? 0 : s * i / a, l = s) : (i < 0 && (o = -o), c = o, l = i === 0 ? 0 : o * a / i), {
|
|
176
196
|
x: n + c,
|
|
177
197
|
y: r + l
|
|
178
198
|
};
|
|
179
|
-
}, "intersectRect")
|
|
199
|
+
}, "intersectRect");
|
|
200
|
+
function te(e, t) {
|
|
201
|
+
return e.intersect(t);
|
|
202
|
+
}
|
|
203
|
+
e(te, "intersectNode");
|
|
204
|
+
var H = te;
|
|
205
|
+
function U(e, t, n, r) {
|
|
206
|
+
var i = e.x, a = e.y, o = i - r.x, s = a - r.y, c = Math.sqrt(t * t * s * s + n * n * o * o), l = Math.abs(t * n * o / c);
|
|
207
|
+
r.x < i && (l = -l);
|
|
208
|
+
var u = Math.abs(t * n * s / c);
|
|
209
|
+
return r.y < a && (u = -u), {
|
|
210
|
+
x: i + l,
|
|
211
|
+
y: a + u
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
e(U, "intersectEllipse");
|
|
215
|
+
var ne = U;
|
|
216
|
+
function re(e, t, n) {
|
|
217
|
+
return ne(e, t, t, n);
|
|
218
|
+
}
|
|
219
|
+
e(re, "intersectCircle");
|
|
220
|
+
var ie = re;
|
|
221
|
+
function W(e, t, n, r) {
|
|
222
|
+
{
|
|
223
|
+
let i = t.y - e.y, a = e.x - t.x, o = t.x * e.y - e.x * t.y, s = i * n.x + a * n.y + o, c = i * r.x + a * r.y + o, l = 1e-6;
|
|
224
|
+
if (s !== 0 && c !== 0 && G(s, c)) return;
|
|
225
|
+
let u = r.y - n.y, d = n.x - r.x, f = r.x * n.y - n.x * r.y, p = u * e.x + d * e.y + f, m = u * t.x + d * t.y + f;
|
|
226
|
+
if (Math.abs(p) < l && Math.abs(m) < l && G(p, m)) return;
|
|
227
|
+
let h = i * d - u * a;
|
|
228
|
+
return h === 0 ? void 0 : {
|
|
229
|
+
x: (a * f - d * o) / h,
|
|
230
|
+
y: (u * o - i * f) / h
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
e(W, "intersectLine");
|
|
235
|
+
function G(e, t) {
|
|
236
|
+
return e * t > 0;
|
|
237
|
+
}
|
|
238
|
+
e(G, "sameSign");
|
|
239
|
+
var ae = W;
|
|
240
|
+
function oe(e, t, n) {
|
|
241
|
+
let r = e.x, i = e.y, a = [], o = Infinity, s = Infinity;
|
|
242
|
+
typeof t.forEach == "function" ? t.forEach(function(e) {
|
|
243
|
+
o = Math.min(o, e.x), s = Math.min(s, e.y);
|
|
244
|
+
}) : (o = Math.min(o, t.x), s = Math.min(s, t.y));
|
|
245
|
+
let c = r - e.width / 2 - o, l = i - e.height / 2 - s;
|
|
246
|
+
for (let r = 0; r < t.length; r++) {
|
|
247
|
+
let i = t[r], o = t[r < t.length - 1 ? r + 1 : 0], s = ae(e, n, {
|
|
248
|
+
x: c + i.x,
|
|
249
|
+
y: l + i.y
|
|
250
|
+
}, {
|
|
251
|
+
x: c + o.x,
|
|
252
|
+
y: l + o.y
|
|
253
|
+
});
|
|
254
|
+
s && a.push(s);
|
|
255
|
+
}
|
|
256
|
+
return a.length ? (a.length > 1 && a.sort(function(e, t) {
|
|
257
|
+
let r = e.x - n.x, i = e.y - n.y, a = Math.sqrt(r * r + i * i), o = t.x - n.x, s = t.y - n.y, c = Math.sqrt(o * o + s * s);
|
|
258
|
+
return a < c ? -1 : a === c ? 0 : 1;
|
|
259
|
+
}), a[0]) : e;
|
|
260
|
+
}
|
|
261
|
+
e(oe, "intersectPolygon");
|
|
262
|
+
var K = {
|
|
263
|
+
node: H,
|
|
264
|
+
circle: ie,
|
|
265
|
+
ellipse: ne,
|
|
266
|
+
polygon: oe,
|
|
267
|
+
rect: V
|
|
268
|
+
}, q = /* @__PURE__ */ e((e, t, n, r, i) => [
|
|
180
269
|
"M",
|
|
181
270
|
e + i,
|
|
182
271
|
t,
|
|
@@ -221,11 +310,11 @@ var R = /* @__PURE__ */ e((e, t) => {
|
|
|
221
310
|
e + i,
|
|
222
311
|
t,
|
|
223
312
|
"Z"
|
|
224
|
-
].join(" "), "createRoundedRectPathD"),
|
|
225
|
-
let
|
|
226
|
-
typeof
|
|
227
|
-
let s =
|
|
228
|
-
return await
|
|
313
|
+
].join(" "), "createRoundedRectPathD"), se = /* @__PURE__ */ e(async (e, t, n, r = !1, i = !1) => {
|
|
314
|
+
let o = t || "";
|
|
315
|
+
typeof o == "object" && (o = o[0]);
|
|
316
|
+
let s = a(), c = l(s);
|
|
317
|
+
return await v(e, o, {
|
|
229
318
|
style: n,
|
|
230
319
|
isTitle: r,
|
|
231
320
|
useHtmlLabels: c,
|
|
@@ -234,95 +323,24 @@ var R = /* @__PURE__ */ e((e, t) => {
|
|
|
234
323
|
width: Infinity
|
|
235
324
|
}, s);
|
|
236
325
|
}, "createLabel");
|
|
237
|
-
function
|
|
238
|
-
|
|
239
|
-
}
|
|
240
|
-
e(B, "intersectNode");
|
|
241
|
-
var ne = B;
|
|
242
|
-
function V(e, t, n, r) {
|
|
243
|
-
var i = e.x, a = e.y, o = i - r.x, s = a - r.y, c = Math.sqrt(t * t * s * s + n * n * o * o), l = Math.abs(t * n * o / c);
|
|
244
|
-
r.x < i && (l = -l);
|
|
245
|
-
var u = Math.abs(t * n * s / c);
|
|
246
|
-
return r.y < a && (u = -u), {
|
|
247
|
-
x: i + l,
|
|
248
|
-
y: a + u
|
|
249
|
-
};
|
|
250
|
-
}
|
|
251
|
-
e(V, "intersectEllipse");
|
|
252
|
-
var H = V;
|
|
253
|
-
function re(e, t, n) {
|
|
254
|
-
return H(e, t, t, n);
|
|
255
|
-
}
|
|
256
|
-
e(re, "intersectCircle");
|
|
257
|
-
var ie = re;
|
|
258
|
-
function U(e, t, n, r) {
|
|
259
|
-
{
|
|
260
|
-
let i = t.y - e.y, a = e.x - t.x, o = t.x * e.y - e.x * t.y, s = i * n.x + a * n.y + o, c = i * r.x + a * r.y + o, l = 1e-6;
|
|
261
|
-
if (s !== 0 && c !== 0 && W(s, c)) return;
|
|
262
|
-
let u = r.y - n.y, d = n.x - r.x, f = r.x * n.y - n.x * r.y, p = u * e.x + d * e.y + f, m = u * t.x + d * t.y + f;
|
|
263
|
-
if (Math.abs(p) < l && Math.abs(m) < l && W(p, m)) return;
|
|
264
|
-
let h = i * d - u * a;
|
|
265
|
-
if (h === 0) return;
|
|
266
|
-
let g = Math.abs(h / 2), _ = a * f - d * o, v = _ < 0 ? (_ - g) / h : (_ + g) / h;
|
|
267
|
-
return _ = u * o - i * f, {
|
|
268
|
-
x: v,
|
|
269
|
-
y: _ < 0 ? (_ - g) / h : (_ + g) / h
|
|
270
|
-
};
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
e(U, "intersectLine");
|
|
274
|
-
function W(e, t) {
|
|
275
|
-
return e * t > 0;
|
|
276
|
-
}
|
|
277
|
-
e(W, "sameSign");
|
|
278
|
-
var G = U;
|
|
279
|
-
function ae(e, t, n) {
|
|
280
|
-
let r = e.x, i = e.y, a = [], o = Infinity, s = Infinity;
|
|
281
|
-
typeof t.forEach == "function" ? t.forEach(function(e) {
|
|
282
|
-
o = Math.min(o, e.x), s = Math.min(s, e.y);
|
|
283
|
-
}) : (o = Math.min(o, t.x), s = Math.min(s, t.y));
|
|
284
|
-
let c = r - e.width / 2 - o, l = i - e.height / 2 - s;
|
|
285
|
-
for (let r = 0; r < t.length; r++) {
|
|
286
|
-
let i = t[r], o = t[r < t.length - 1 ? r + 1 : 0], s = G(e, n, {
|
|
287
|
-
x: c + i.x,
|
|
288
|
-
y: l + i.y
|
|
289
|
-
}, {
|
|
290
|
-
x: c + o.x,
|
|
291
|
-
y: l + o.y
|
|
292
|
-
});
|
|
293
|
-
s && a.push(s);
|
|
294
|
-
}
|
|
295
|
-
return a.length ? (a.length > 1 && a.sort(function(e, t) {
|
|
296
|
-
let r = e.x - n.x, i = e.y - n.y, a = Math.sqrt(r * r + i * i), o = t.x - n.x, s = t.y - n.y, c = Math.sqrt(o * o + s * s);
|
|
297
|
-
return a < c ? -1 : a === c ? 0 : 1;
|
|
298
|
-
}), a[0]) : e;
|
|
299
|
-
}
|
|
300
|
-
e(ae, "intersectPolygon");
|
|
301
|
-
var K = {
|
|
302
|
-
node: ne,
|
|
303
|
-
circle: ie,
|
|
304
|
-
ellipse: H,
|
|
305
|
-
polygon: ae,
|
|
306
|
-
rect: R
|
|
307
|
-
};
|
|
308
|
-
function oe(e, n) {
|
|
309
|
-
let { labelStyles: r } = b(n);
|
|
326
|
+
function ce(e, n) {
|
|
327
|
+
let { labelStyles: r } = x(n);
|
|
310
328
|
n.labelStyle = r;
|
|
311
|
-
let i =
|
|
329
|
+
let i = L(n), a = i;
|
|
312
330
|
i || (a = "anchor");
|
|
313
|
-
let o = e.insert("g").attr("class", a).attr("id", n.domId || n.id), { cssStyles: s } = n, c =
|
|
331
|
+
let o = e.insert("g").attr("class", a).attr("id", n.domId || n.id), { cssStyles: s } = n, c = T.svg(o), l = b(n, {
|
|
314
332
|
fill: "black",
|
|
315
333
|
stroke: "none",
|
|
316
334
|
fillStyle: "solid"
|
|
317
335
|
});
|
|
318
336
|
n.look !== "handDrawn" && (l.roughness = 0);
|
|
319
337
|
let u = c.circle(0, 0, 2, l), d = o.insert(() => u, ":first-child");
|
|
320
|
-
return d.attr("class", "anchor").attr("style",
|
|
338
|
+
return d.attr("class", "anchor").attr("style", p(s)), I(n, d), n.intersect = function(e) {
|
|
321
339
|
return t.info("Circle intersect", n, 1, e), K.circle(n, 1, e);
|
|
322
340
|
}, o;
|
|
323
341
|
}
|
|
324
|
-
e(
|
|
325
|
-
function
|
|
342
|
+
e(ce, "anchor");
|
|
343
|
+
function le(e, t, n, r, i, a, o) {
|
|
326
344
|
let s = (e + n) / 2, c = (t + r) / 2, l = Math.atan2(r - t, n - e), u = (n - e) / 2, d = (r - t) / 2, f = u / i, p = d / a, m = Math.sqrt(f ** 2 + p ** 2);
|
|
327
345
|
if (m > 1) throw Error("The given radii are too small to create an arc between the points.");
|
|
328
346
|
let h = Math.sqrt(1 - m ** 2), g = s + h * a * Math.sin(l) * (o ? -1 : 1), _ = c - h * i * Math.cos(l) * (o ? -1 : 1), v = Math.atan2((t - _) / a, (e - g) / i), y = Math.atan2((r - _) / a, (n - g) / i) - v;
|
|
@@ -337,19 +355,19 @@ function se(e, t, n, r, i, a, o) {
|
|
|
337
355
|
}
|
|
338
356
|
return b;
|
|
339
357
|
}
|
|
340
|
-
e(
|
|
341
|
-
function
|
|
358
|
+
e(le, "generateArcPoints");
|
|
359
|
+
function ue(e, t, n) {
|
|
342
360
|
let [r, i] = [t, n].sort((e, t) => t - e);
|
|
343
361
|
return i * (1 - Math.sqrt(1 - (e / r / 2) ** 2));
|
|
344
362
|
}
|
|
345
|
-
e(
|
|
346
|
-
async function
|
|
347
|
-
let { labelStyles: r, nodeStyles: i } =
|
|
363
|
+
e(ue, "calculateArcSagitta");
|
|
364
|
+
async function de(t, n) {
|
|
365
|
+
let { labelStyles: r, nodeStyles: i } = x(n);
|
|
348
366
|
n.labelStyle = r;
|
|
349
367
|
let a = n.padding ?? 0, o = n.look === "neo" ? 16 : a, s = n.look === "neo" ? 12 : a, c = /* @__PURE__ */ e((e) => e + s, "calcTotalHeight"), l = /* @__PURE__ */ e((e) => {
|
|
350
368
|
let t = e / 2;
|
|
351
369
|
return [t / (2.5 + e / 50), t];
|
|
352
|
-
}, "calcEllipseRadius"), { shapeSvg: u, bbox: d } = await
|
|
370
|
+
}, "calcEllipseRadius"), { shapeSvg: u, bbox: d } = await P(t, n, L(n)), f = c(n?.height ? n?.height : d.height), [p, m] = l(f), h = ue(f, p, m), g = (n?.width ? n?.width : d.width) + o * 2 + h - h, _ = f, { cssStyles: v } = n, y = [
|
|
353
371
|
{
|
|
354
372
|
x: g / 2,
|
|
355
373
|
y: -_ / 2
|
|
@@ -358,86 +376,108 @@ async function le(t, n) {
|
|
|
358
376
|
x: -g / 2,
|
|
359
377
|
y: -_ / 2
|
|
360
378
|
},
|
|
361
|
-
...
|
|
379
|
+
...le(-g / 2, -_ / 2, -g / 2, _ / 2, p, m, !1),
|
|
362
380
|
{
|
|
363
381
|
x: g / 2,
|
|
364
382
|
y: _ / 2
|
|
365
383
|
},
|
|
366
|
-
...
|
|
367
|
-
], S =
|
|
368
|
-
n.look !== "handDrawn" && (
|
|
369
|
-
let
|
|
370
|
-
return D.attr("class", "basic label-container outer-path"), v && n.look !== "handDrawn" && D.selectAll("path").attr("style", v), i && n.look !== "handDrawn" && D.selectAll("path").attr("style", i), D.attr("transform", `translate(${p / 2}, 0)`),
|
|
371
|
-
return K.polygon(n,
|
|
384
|
+
...le(g / 2, _ / 2, g / 2, -_ / 2, p, m, !0)
|
|
385
|
+
], S = T.svg(u), C = b(n, {});
|
|
386
|
+
n.look !== "handDrawn" && (C.roughness = 0, C.fillStyle = "solid");
|
|
387
|
+
let w = R(y), E = S.path(w, C), D = u.insert(() => E, ":first-child");
|
|
388
|
+
return D.attr("class", "basic label-container outer-path"), v && n.look !== "handDrawn" && D.selectAll("path").attr("style", v), i && n.look !== "handDrawn" && D.selectAll("path").attr("style", i), D.attr("transform", `translate(${p / 2}, 0)`), I(n, D), n.intersect = function(e) {
|
|
389
|
+
return K.polygon(n, y, e);
|
|
372
390
|
}, u;
|
|
373
391
|
}
|
|
374
|
-
e(
|
|
375
|
-
async function
|
|
376
|
-
let { labelStyles: i, nodeStyles: a } =
|
|
392
|
+
e(de, "bowTieRect");
|
|
393
|
+
async function fe(t, n, { config: { themeVariables: r } }) {
|
|
394
|
+
let { labelStyles: i, nodeStyles: a } = x(n);
|
|
377
395
|
n.labelStyle = i;
|
|
378
|
-
let { shapeSvg: o, bbox: s, label: c } = await
|
|
396
|
+
let { shapeSvg: o, bbox: s, label: c } = await P(t, n, L(n)), l = r?.nodeBorder ?? r?.lineColor ?? "currentColor", u = n.padding ?? 12, d = Math.max(s.width + u * 2, n.width ?? 0, 80), f = Math.max(Math.min(d * .08, 12), 5), p = Math.max(s.height + u * 2 + f, n.height ?? 0), m = -p / 2 + f, h = p / 2, g = d * .72, _ = [
|
|
379
397
|
`M${-d / 2},${m}`,
|
|
380
398
|
`L${-g / 2},${h}`,
|
|
381
399
|
`A${g / 2},${f} 0 0 0 ${g / 2},${h}`,
|
|
382
400
|
`L${d / 2},${m}`,
|
|
383
401
|
`A${d / 2},${f} 0 0 0 ${-d / 2},${m}`,
|
|
384
402
|
"Z"
|
|
385
|
-
].join(" "), { cssStyles: v } = n,
|
|
403
|
+
].join(" "), { cssStyles: v } = n, y = o.insert("g", ":first-child").attr("class", "basic label-container");
|
|
386
404
|
if (n.look === "handDrawn") {
|
|
387
|
-
let e =
|
|
388
|
-
|
|
389
|
-
} else
|
|
390
|
-
|
|
405
|
+
let e = T.svg(o).path(_, b(n, {}));
|
|
406
|
+
y.node()?.appendChild(e), v && y.attr("style", v);
|
|
407
|
+
} else y.append("path").attr("d", _).attr("style", a);
|
|
408
|
+
y.append("ellipse").attr("cx", 0).attr("cy", m).attr("rx", d / 2).attr("ry", f).attr("style", `fill:none;stroke:${l};stroke-width:1px`), I(n, y);
|
|
391
409
|
let S = m + (h - m) / 2;
|
|
392
410
|
c.attr("transform", `translate(${-(s.width / 2) - (s.x - (s.left ?? 0))}, ${S - s.height / 2 - (s.y - (s.top ?? 0))})`);
|
|
393
|
-
let
|
|
411
|
+
let C = /* @__PURE__ */ e((e, t, n) => Array.from({ length: 13 }, (r, i) => {
|
|
394
412
|
let a = Math.PI - i * Math.PI / 12;
|
|
395
413
|
return {
|
|
396
414
|
x: e * Math.cos(a),
|
|
397
415
|
y: t + n * f * Math.sin(a)
|
|
398
416
|
};
|
|
399
|
-
}), "arc"),
|
|
417
|
+
}), "arc"), w = [...C(d / 2, m, -1), ...C(g / 2, h, 1).reverse()];
|
|
400
418
|
return n.intersect = function(e) {
|
|
401
|
-
return K.polygon(n,
|
|
419
|
+
return K.polygon(n, w, e);
|
|
402
420
|
}, o;
|
|
403
421
|
}
|
|
404
|
-
e(
|
|
405
|
-
var
|
|
406
|
-
|
|
407
|
-
let { themeVariables:
|
|
408
|
-
|
|
409
|
-
|
|
422
|
+
e(fe, "bucket");
|
|
423
|
+
var pe = 20, me = 8, he = 80, ge = 8;
|
|
424
|
+
function _e(e) {
|
|
425
|
+
let { themeVariables: t } = a(), n = t.clusterBkg, r = t.clusterBorder;
|
|
426
|
+
switch (e) {
|
|
427
|
+
case "flow": return {
|
|
428
|
+
rx: 10,
|
|
429
|
+
fill: "none",
|
|
430
|
+
stroke: t.flowContainerStroke || t.secondaryBorderColor,
|
|
431
|
+
strokeWidth: .75,
|
|
432
|
+
cssClass: "flow-collapsed"
|
|
433
|
+
};
|
|
434
|
+
default: return {
|
|
435
|
+
rx: ge,
|
|
436
|
+
fill: n,
|
|
437
|
+
stroke: r,
|
|
438
|
+
cssClass: "collapsed-group"
|
|
439
|
+
};
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
e(_e, "getCollapsedStyle");
|
|
443
|
+
async function ve(e, t) {
|
|
444
|
+
let n = _e(t.metadata?.containerType), { fill: r, stroke: i } = n, { nodeStyles: o } = x(t), { shapeSvg: s, bbox: c } = await P(e, t, L(t)), { theme: u, themeVariables: d } = a();
|
|
445
|
+
w(s, t.colorIndex, u, d.borderColorArray);
|
|
446
|
+
let f = t.padding ?? 8, m = c.height, h = Math.max(c.width + f * 2, he, t?.width ?? 0), g = Math.max(m + me + pe + f * 2, t?.height ?? 0), _ = -h / 2, v = -g / 2, y = -(me + pe) / 2, S = s.select(".label");
|
|
447
|
+
S && (t.useHtmlLabels ?? l(a()) ? S.attr("transform", `translate(${-c.width / 2}, ${-c.height / 2 + y})`) : S.attr("transform", `translate(0, ${-c.height / 2 + y})`));
|
|
448
|
+
let C;
|
|
410
449
|
if (t.look === "handDrawn") {
|
|
411
|
-
let e =
|
|
450
|
+
let e = T.svg(s), a = b(t, {
|
|
412
451
|
fill: r,
|
|
413
452
|
stroke: i,
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
453
|
+
...n.strokeWidth === void 0 ? {} : { strokeWidth: n.strokeWidth },
|
|
454
|
+
...r === "none" ? { fillWeight: 0 } : { fillStyle: "solid" }
|
|
455
|
+
}), o = e.path(q(_, v, h, g, n.rx), a);
|
|
456
|
+
C = s.insert(() => o, ":first-child"), C.attr("class", "basic label-container " + n.cssClass).attr("style", p(t.cssStyles));
|
|
457
|
+
} else C = s.insert("rect", ":first-child"), C.attr("class", "basic label-container " + n.cssClass).attr("style", o).attr("rx", n.rx).attr("ry", n.rx).attr("x", _).attr("y", v).attr("width", h).attr("height", g).attr("fill", r).attr("stroke", i), n.strokeWidth !== void 0 && C.attr("stroke-width", n.strokeWidth + "px");
|
|
458
|
+
let E = v + f + m + me;
|
|
459
|
+
s.append("line").attr("class", "collapsed-separator").attr("x1", _ + 8).attr("y1", E).attr("x2", _ + h - 8).attr("y2", E).attr("stroke", i).attr("stroke-dasharray", "3, 3");
|
|
460
|
+
let D = E + pe / 2;
|
|
461
|
+
for (let e = -1; e <= 1; e++) s.append("circle").attr("class", "collapsed-indicator").attr("cx", e * 10).attr("cy", D).attr("r", 2.5).attr("fill", i);
|
|
462
|
+
return I(t, C), t.calcIntersect = function(e, t) {
|
|
423
463
|
return K.rect(e, t);
|
|
424
464
|
}, t.intersect = function(e) {
|
|
425
465
|
return K.rect(t, e);
|
|
426
466
|
}, s;
|
|
427
467
|
}
|
|
428
|
-
e(
|
|
429
|
-
function
|
|
468
|
+
e(ve, "collapsedGroup");
|
|
469
|
+
function J(e, t, n, r) {
|
|
430
470
|
return e.insert("polygon", ":first-child").attr("points", r.map(function(e) {
|
|
431
471
|
return e.x + "," + e.y;
|
|
432
472
|
}).join(" ")).attr("class", "label-container").attr("transform", "translate(" + -t / 2 + "," + n / 2 + ")");
|
|
433
473
|
}
|
|
434
|
-
e(
|
|
435
|
-
var
|
|
474
|
+
e(J, "insertPolygonShape");
|
|
475
|
+
var ye = [
|
|
436
476
|
"right",
|
|
437
477
|
"left",
|
|
438
478
|
"up",
|
|
439
479
|
"down"
|
|
440
|
-
],
|
|
480
|
+
], be = "point", xe = /* @__PURE__ */ e((e) => {
|
|
441
481
|
let t = /* @__PURE__ */ new Set();
|
|
442
482
|
for (let n of e) switch (n) {
|
|
443
483
|
case "x":
|
|
@@ -449,7 +489,7 @@ var ge = [
|
|
|
449
489
|
default: t.add(n);
|
|
450
490
|
}
|
|
451
491
|
return t;
|
|
452
|
-
}, "expandAndDeduplicateDirections"),
|
|
492
|
+
}, "expandAndDeduplicateDirections"), Se = /* @__PURE__ */ e((e) => ye.filter((t) => e.has(t)).join("|") || be, "getDirectionKey"), Ce = {
|
|
453
493
|
"right|left|up|down": /* @__PURE__ */ e(({ height: e, midpoint: t, padding: n, width: r }) => [
|
|
454
494
|
{
|
|
455
495
|
x: 0,
|
|
@@ -864,50 +904,50 @@ var ge = [
|
|
|
864
904
|
y: -n
|
|
865
905
|
}
|
|
866
906
|
], "down"),
|
|
867
|
-
[
|
|
907
|
+
[be]: () => [{
|
|
868
908
|
x: 0,
|
|
869
909
|
y: 0
|
|
870
910
|
}]
|
|
871
|
-
},
|
|
872
|
-
let i =
|
|
873
|
-
return (
|
|
911
|
+
}, we = /* @__PURE__ */ e((e, t, n, r) => {
|
|
912
|
+
let i = xe(e), a = (n.padding ?? 0) / 2, o = t.height + 4 * a, s = o / 2, c = r ?? t.width + 2 * s + 2 * a;
|
|
913
|
+
return (Ce[Se(i)] ?? Ce[be])({
|
|
874
914
|
height: o,
|
|
875
915
|
midpoint: s,
|
|
876
916
|
padding: a,
|
|
877
917
|
width: c
|
|
878
918
|
});
|
|
879
919
|
}, "getArrowPoints");
|
|
880
|
-
async function
|
|
881
|
-
let n = t, { shapeSvg: r, bbox: i } = await
|
|
882
|
-
return f.attr("style", n.style ?? null),
|
|
920
|
+
async function Te(e, t) {
|
|
921
|
+
let n = t, { shapeSvg: r, bbox: i } = await P(e, n, L(n)), a = n.padding ?? 0, o = i.height + 2 * a, s = o / 2, c = i.width + 2 * s + a, l = n.width ?? 0, u = n.positioned && (n.widthInColumns ?? 1) > 1 && l > c ? l : c, d = we(n.directions ?? [], i, n, u), f = J(r, u, o, d);
|
|
922
|
+
return f.attr("style", n.style ?? null), I(n, f), n.intersect = function(e) {
|
|
883
923
|
return K.polygon(n, d, e);
|
|
884
924
|
}, r;
|
|
885
925
|
}
|
|
886
|
-
e(
|
|
887
|
-
async function
|
|
888
|
-
let { labelStyles: r, nodeStyles: i } =
|
|
926
|
+
e(Te, "block_arrow");
|
|
927
|
+
async function Ee(e, t, { config: { themeVariables: n } }) {
|
|
928
|
+
let { labelStyles: r, nodeStyles: i } = x(t);
|
|
889
929
|
t.labelStyle = r;
|
|
890
|
-
let { shapeSvg: a, bbox: o, label: s } = await
|
|
930
|
+
let { shapeSvg: a, bbox: o, label: s } = await P(e, t, L(t)), c = n?.nodeBorder ?? n?.lineColor ?? "currentColor", l = t.padding ?? 12, u = Math.max(o.width + l * 2, t.width ?? 0, 90), d = Math.max(o.height + l * 2 + 18, t.height ?? 0), f = -d / 2, { cssStyles: p } = t, m = a.insert("g", ":first-child").attr("class", "basic label-container");
|
|
891
931
|
if (t.look === "handDrawn") {
|
|
892
|
-
let e =
|
|
932
|
+
let e = T.svg(a).path(q(-u / 2, f, u, d, 12), b(t, {}));
|
|
893
933
|
m.node()?.appendChild(e), p && m.attr("style", p);
|
|
894
934
|
} else m.append("rect").attr("x", -u / 2).attr("y", f).attr("width", u).attr("height", d).attr("rx", 12).attr("ry", 12).attr("style", i);
|
|
895
935
|
m.append("line").attr("x1", -u / 2).attr("y1", f + 18).attr("x2", u / 2).attr("y2", f + 18).attr("style", `stroke:${c};stroke-width:1px`);
|
|
896
936
|
for (let e = 0; e < 3; e++) m.append("circle").attr("cx", -u / 2 + 12 + e * 9).attr("cy", f + 9).attr("r", 2.5).attr("style", `fill:${c};stroke:none`);
|
|
897
|
-
m.append("rect").attr("class", "browser-address-bar").attr("x", -u / 2 + 44).attr("y", f + 4).attr("width", Math.max(u - 56, 10)).attr("height", 10).attr("rx", 3).attr("ry", 3).attr("style", `fill:none;stroke:${c};stroke-width:1px;opacity:0.6`),
|
|
937
|
+
m.append("rect").attr("class", "browser-address-bar").attr("x", -u / 2 + 44).attr("y", f + 4).attr("width", Math.max(u - 56, 10)).attr("height", 10).attr("rx", 3).attr("ry", 3).attr("style", `fill:none;stroke:${c};stroke-width:1px;opacity:0.6`), I(t, m);
|
|
898
938
|
let h = f + 18 + (d - 18) / 2;
|
|
899
939
|
return s.attr("transform", `translate(${-(o.width / 2) - (o.x - (o.left ?? 0))}, ${h - o.height / 2 - (o.y - (o.top ?? 0))})`), t.intersect = function(e) {
|
|
900
940
|
return K.rect(t, e);
|
|
901
941
|
}, a;
|
|
902
942
|
}
|
|
903
|
-
e(
|
|
904
|
-
var
|
|
905
|
-
async function
|
|
906
|
-
let { labelStyles: n, nodeStyles: r } =
|
|
943
|
+
e(Ee, "browser");
|
|
944
|
+
var De = 12;
|
|
945
|
+
async function Oe(e, t) {
|
|
946
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
907
947
|
t.labelStyle = n;
|
|
908
|
-
let i = t.padding ?? 0, a = t.look === "neo" ? 28 : i, o = t.look === "neo" ? 24 : i, { shapeSvg: s, bbox: c } = await
|
|
948
|
+
let i = t.padding ?? 0, a = t.look === "neo" ? 28 : i, o = t.look === "neo" ? 24 : i, { shapeSvg: s, bbox: c } = await P(e, t, L(t)), l = (t?.width ?? c.width) + (t.look === "neo" ? a * 2 : a + De), u = (t?.height ?? c.height) + (t.look === "neo" ? o * 2 : o), d = l, f = -u, p = [
|
|
909
949
|
{
|
|
910
|
-
x: 0 +
|
|
950
|
+
x: 0 + De,
|
|
911
951
|
y: f
|
|
912
952
|
},
|
|
913
953
|
{
|
|
@@ -924,26 +964,26 @@ async function Te(e, t) {
|
|
|
924
964
|
},
|
|
925
965
|
{
|
|
926
966
|
x: 0,
|
|
927
|
-
y: f +
|
|
967
|
+
y: f + De
|
|
928
968
|
},
|
|
929
969
|
{
|
|
930
|
-
x: 0 +
|
|
970
|
+
x: 0 + De,
|
|
931
971
|
y: f
|
|
932
972
|
}
|
|
933
973
|
], m, { cssStyles: h } = t;
|
|
934
974
|
if (t.look === "handDrawn") {
|
|
935
|
-
let e =
|
|
975
|
+
let e = T.svg(s), n = b(t, {}), r = R(p), i = e.path(r, n);
|
|
936
976
|
m = s.insert(() => i, ":first-child").attr("transform", `translate(${-l / 2}, ${u / 2})`), h && m.attr("style", h);
|
|
937
|
-
} else m =
|
|
938
|
-
return r && m.attr("style", r),
|
|
977
|
+
} else m = J(s, l, u, p);
|
|
978
|
+
return r && m.attr("style", r), I(t, m), t.intersect = function(e) {
|
|
939
979
|
return K.polygon(t, p, e);
|
|
940
980
|
}, s;
|
|
941
981
|
}
|
|
942
|
-
e(
|
|
943
|
-
function
|
|
944
|
-
let { nodeStyles: n } =
|
|
982
|
+
e(Oe, "card");
|
|
983
|
+
function ke(e, t) {
|
|
984
|
+
let { nodeStyles: n } = x(t);
|
|
945
985
|
t.label = "";
|
|
946
|
-
let r = e.insert("g").attr("class",
|
|
986
|
+
let r = e.insert("g").attr("class", L(t)).attr("id", t.domId ?? t.id), { cssStyles: i } = t, a = Math.max(28, t.width ?? 0), o = [
|
|
947
987
|
{
|
|
948
988
|
x: 0,
|
|
949
989
|
y: a / 2
|
|
@@ -960,57 +1000,57 @@ function Ee(e, t) {
|
|
|
960
1000
|
x: -a / 2,
|
|
961
1001
|
y: 0
|
|
962
1002
|
}
|
|
963
|
-
], s =
|
|
1003
|
+
], s = T.svg(r), c = b(t, {});
|
|
964
1004
|
t.look !== "handDrawn" && (c.roughness = 0, c.fillStyle = "solid");
|
|
965
|
-
let l =
|
|
1005
|
+
let l = R(o), u = s.path(l, c), d = r.insert(() => u, ":first-child");
|
|
966
1006
|
return i && t.look !== "handDrawn" && d.selectAll("path").attr("style", i), n && t.look !== "handDrawn" && d.selectAll("path").attr("style", n), t.width = 28, t.height = 28, t.intersect = function(e) {
|
|
967
1007
|
return K.polygon(t, o, e);
|
|
968
1008
|
}, r;
|
|
969
1009
|
}
|
|
970
|
-
e(
|
|
971
|
-
async function
|
|
972
|
-
let { labelStyles: i, nodeStyles: a } =
|
|
1010
|
+
e(ke, "choice");
|
|
1011
|
+
async function Ae(e, n, r) {
|
|
1012
|
+
let { labelStyles: i, nodeStyles: a } = x(n);
|
|
973
1013
|
n.labelStyle = i;
|
|
974
|
-
let { shapeSvg: o, bbox: s, halfPadding: c } = await
|
|
1014
|
+
let { shapeSvg: o, bbox: s, halfPadding: c } = await P(e, n, L(n)), l = r?.padding ?? c, u = Math.sqrt(s.width ** 2 + s.height ** 2) / 2, d = n.look === "neo" ? u + 32 : u + l, f, { cssStyles: m } = n;
|
|
975
1015
|
if (n.look === "handDrawn") {
|
|
976
|
-
let e =
|
|
977
|
-
|
|
978
|
-
} else
|
|
979
|
-
return
|
|
1016
|
+
let e = T.svg(o), t = b(n, {}), r = e.circle(0, 0, d * 2, t);
|
|
1017
|
+
f = o.insert(() => r, ":first-child"), f.attr("class", "basic label-container").attr("style", p(m));
|
|
1018
|
+
} else f = o.insert("circle", ":first-child").attr("class", "basic label-container").attr("style", a).attr("r", d).attr("cx", 0).attr("cy", 0);
|
|
1019
|
+
return I(n, f), n.calcIntersect = function(e, t) {
|
|
980
1020
|
let n = e.width / 2;
|
|
981
1021
|
return K.circle(e, n, t);
|
|
982
1022
|
}, n.intersect = function(e) {
|
|
983
|
-
return t.info("Circle intersect", n,
|
|
1023
|
+
return t.info("Circle intersect", n, d, e), K.circle(n, d, e);
|
|
984
1024
|
}, o;
|
|
985
1025
|
}
|
|
986
|
-
e(
|
|
987
|
-
async function
|
|
988
|
-
let n = t, { shapeSvg: r, bbox: i, halfPadding: a } = await
|
|
1026
|
+
e(Ae, "circle");
|
|
1027
|
+
async function je(e, t) {
|
|
1028
|
+
let n = t, { shapeSvg: r, bbox: i, halfPadding: a } = await P(e, n, [
|
|
989
1029
|
"node",
|
|
990
1030
|
n.cssClasses,
|
|
991
1031
|
n.class
|
|
992
1032
|
].filter(Boolean).join(" ")), o = r.insert("rect", ":first-child"), s = n.padding ?? 0, c = n.positioned ? n.width ?? 0 : i.width + s, l = n.positioned ? n.height ?? 0 : i.height + s, u = n.positioned ? -c / 2 : -i.width / 2 - a, d = n.positioned ? -l / 2 : -i.height / 2 - a;
|
|
993
|
-
return o.attr("class", "basic cluster composite label-container").attr("style", n.style ?? null).attr("rx", n.rx ?? null).attr("ry", n.ry ?? null).attr("x", u).attr("y", d).attr("width", c).attr("height", l),
|
|
1033
|
+
return o.attr("class", "basic cluster composite label-container").attr("style", n.style ?? null).attr("rx", n.rx ?? null).attr("ry", n.ry ?? null).attr("x", u).attr("y", d).attr("width", c).attr("height", l), I(n, o), n.intersect = function(e) {
|
|
994
1034
|
return K.rect(n, e);
|
|
995
1035
|
}, r;
|
|
996
1036
|
}
|
|
997
|
-
e(
|
|
998
|
-
async function
|
|
999
|
-
let { labelStyles: r, nodeStyles: i } =
|
|
1037
|
+
e(je, "composite");
|
|
1038
|
+
async function Me(e, t, { config: { themeVariables: n } }) {
|
|
1039
|
+
let { labelStyles: r, nodeStyles: i } = x(t);
|
|
1000
1040
|
t.labelStyle = r;
|
|
1001
|
-
let { shapeSvg: a, bbox: o, label: s } = await
|
|
1041
|
+
let { shapeSvg: a, bbox: o, label: s } = await P(e, t, L(t)), c = n?.nodeBorder ?? n?.lineColor ?? "currentColor", l = t.padding ?? 12, u = Math.max(o.width + l * 2, t.width ?? 0, 90), d = Math.max(o.height + l * 2 + 20, t.height ?? 0), f = -d / 2, { cssStyles: p } = t, m = a.insert("g", ":first-child").attr("class", "basic label-container");
|
|
1002
1042
|
if (t.look === "handDrawn") {
|
|
1003
|
-
let e =
|
|
1043
|
+
let e = T.svg(a).path(q(-u / 2, f, u, d, 12), b(t, {}));
|
|
1004
1044
|
m.node()?.appendChild(e), p && m.attr("style", p);
|
|
1005
1045
|
} else m.append("rect").attr("x", -u / 2).attr("y", f).attr("width", u).attr("height", d).attr("rx", 12).attr("ry", 12).attr("style", i);
|
|
1006
|
-
m.append("text").attr("x", -u / 2 + 12).attr("y", f + 16).attr("class", "console-glyph").attr("style", `font-family:monospace;font-weight:bold;font-size:14px;fill:${c}`).text(">_"),
|
|
1046
|
+
m.append("text").attr("x", -u / 2 + 12).attr("y", f + 16).attr("class", "console-glyph").attr("style", `font-family:monospace;font-weight:bold;font-size:14px;fill:${c}`).text(">_"), I(t, m);
|
|
1007
1047
|
let h = f + 20 + (d - 20) / 2;
|
|
1008
1048
|
return s.attr("transform", `translate(${-(o.width / 2) - (o.x - (o.left ?? 0))}, ${h - o.height / 2 - (o.y - (o.top ?? 0))})`), t.intersect = function(e) {
|
|
1009
1049
|
return K.rect(t, e);
|
|
1010
1050
|
}, a;
|
|
1011
1051
|
}
|
|
1012
|
-
e(
|
|
1013
|
-
function
|
|
1052
|
+
e(Me, "consoleWindow");
|
|
1053
|
+
function Ne(e) {
|
|
1014
1054
|
let t = Math.cos(Math.PI / 4), n = Math.sin(Math.PI / 4), r = e * 2, i = {
|
|
1015
1055
|
x: r / 2 * t,
|
|
1016
1056
|
y: r / 2 * n
|
|
@@ -1027,22 +1067,22 @@ function Ae(e) {
|
|
|
1027
1067
|
return `M ${a.x},${a.y} L ${s.x},${s.y}
|
|
1028
1068
|
M ${i.x},${i.y} L ${o.x},${o.y}`;
|
|
1029
1069
|
}
|
|
1030
|
-
e(
|
|
1031
|
-
function
|
|
1032
|
-
let { labelStyles: r, nodeStyles: i } =
|
|
1070
|
+
e(Ne, "createLine");
|
|
1071
|
+
function Pe(e, n) {
|
|
1072
|
+
let { labelStyles: r, nodeStyles: i } = x(n);
|
|
1033
1073
|
n.labelStyle = r, n.label = "";
|
|
1034
|
-
let a = e.insert("g").attr("class",
|
|
1074
|
+
let a = e.insert("g").attr("class", L(n)).attr("id", n.domId ?? n.id), o = Math.max(30, n?.width ?? 0), { cssStyles: s } = n, c = T.svg(a), l = b(n, {});
|
|
1035
1075
|
n.look !== "handDrawn" && (l.roughness = 0, l.fillStyle = "solid");
|
|
1036
|
-
let u = c.circle(0, 0, o * 2, l), d =
|
|
1037
|
-
return p.insert(() => f), p.attr("class", "outer-path"), s && n.look !== "handDrawn" && p.selectAll("path").attr("style", s), i && n.look !== "handDrawn" && p.selectAll("path").attr("style", i),
|
|
1076
|
+
let u = c.circle(0, 0, o * 2, l), d = Ne(o), f = c.path(d, l), p = a.insert(() => u, ":first-child");
|
|
1077
|
+
return p.insert(() => f), p.attr("class", "outer-path"), s && n.look !== "handDrawn" && p.selectAll("path").attr("style", s), i && n.look !== "handDrawn" && p.selectAll("path").attr("style", i), I(n, p), n.intersect = function(e) {
|
|
1038
1078
|
return t.info("crossedCircle intersect", n, {
|
|
1039
1079
|
radius: o,
|
|
1040
1080
|
point: e
|
|
1041
1081
|
}), K.circle(n, o, e);
|
|
1042
1082
|
}, a;
|
|
1043
1083
|
}
|
|
1044
|
-
e(
|
|
1045
|
-
function
|
|
1084
|
+
e(Pe, "crossedCircle");
|
|
1085
|
+
function Y(e, t, n, r = 100, i = 0, a = 180) {
|
|
1046
1086
|
let o = [], s = i * Math.PI / 180, c = (a * Math.PI / 180 - s) / (r - 1);
|
|
1047
1087
|
for (let i = 0; i < r; i++) {
|
|
1048
1088
|
let r = s + i * c, a = e + n * Math.cos(r), l = t + n * Math.sin(r);
|
|
@@ -1053,23 +1093,23 @@ function J(e, t, n, r = 100, i = 0, a = 180) {
|
|
|
1053
1093
|
}
|
|
1054
1094
|
return o;
|
|
1055
1095
|
}
|
|
1056
|
-
e(
|
|
1057
|
-
async function
|
|
1058
|
-
let { labelStyles: n, nodeStyles: r } =
|
|
1096
|
+
e(Y, "generateCirclePoints");
|
|
1097
|
+
async function Fe(e, t) {
|
|
1098
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
1059
1099
|
t.labelStyle = n;
|
|
1060
|
-
let { shapeSvg: i, bbox: a, label: o } = await
|
|
1061
|
-
...
|
|
1100
|
+
let { shapeSvg: i, bbox: a, label: o } = await P(e, t, L(t)), s = t.look === "neo" ? 18 : t.padding ?? 0, c = t.look === "neo" ? 12 : t.padding ?? 0, l = a.width + s, u = a.height + c, d = Math.max(5, u * .1), { cssStyles: f } = t, p = [
|
|
1101
|
+
...Y(l / 2, -u / 2, d, 30, -90, 0),
|
|
1062
1102
|
{
|
|
1063
1103
|
x: -l / 2 - d,
|
|
1064
1104
|
y: d
|
|
1065
1105
|
},
|
|
1066
|
-
...
|
|
1067
|
-
...
|
|
1106
|
+
...Y(l / 2 + d * 2, -d, d, 20, -180, -270),
|
|
1107
|
+
...Y(l / 2 + d * 2, d, d, 20, -90, -180),
|
|
1068
1108
|
{
|
|
1069
1109
|
x: -l / 2 - d,
|
|
1070
1110
|
y: -u / 2
|
|
1071
1111
|
},
|
|
1072
|
-
...
|
|
1112
|
+
...Y(l / 2, u / 2, d, 20, 0, 90)
|
|
1073
1113
|
], m = [
|
|
1074
1114
|
{
|
|
1075
1115
|
x: l / 2,
|
|
@@ -1079,18 +1119,18 @@ async function Me(e, t) {
|
|
|
1079
1119
|
x: -l / 2,
|
|
1080
1120
|
y: -u / 2 - d
|
|
1081
1121
|
},
|
|
1082
|
-
...
|
|
1122
|
+
...Y(l / 2, -u / 2, d, 20, -90, 0),
|
|
1083
1123
|
{
|
|
1084
1124
|
x: -l / 2 - d,
|
|
1085
1125
|
y: -d
|
|
1086
1126
|
},
|
|
1087
|
-
...
|
|
1088
|
-
...
|
|
1127
|
+
...Y(l / 2 + l * .1, -d, d, 20, -180, -270),
|
|
1128
|
+
...Y(l / 2 + l * .1, d, d, 20, -90, -180),
|
|
1089
1129
|
{
|
|
1090
1130
|
x: -l / 2 - d,
|
|
1091
1131
|
y: u / 2
|
|
1092
1132
|
},
|
|
1093
|
-
...
|
|
1133
|
+
...Y(l / 2, u / 2, d, 20, 0, 90),
|
|
1094
1134
|
{
|
|
1095
1135
|
x: -l / 2,
|
|
1096
1136
|
y: u / 2 + d
|
|
@@ -1099,15 +1139,15 @@ async function Me(e, t) {
|
|
|
1099
1139
|
x: l / 2,
|
|
1100
1140
|
y: u / 2 + d
|
|
1101
1141
|
}
|
|
1102
|
-
], h =
|
|
1142
|
+
], h = T.svg(i), g = b(t, { fill: "none" });
|
|
1103
1143
|
t.look !== "handDrawn" && (g.roughness = 0, g.fillStyle = "solid");
|
|
1104
|
-
let _ =
|
|
1105
|
-
return
|
|
1144
|
+
let _ = R(p).replace("Z", ""), v = h.path(_, g), y = R(m), S = h.path(y, { ...g }), C = i.insert("g", ":first-child");
|
|
1145
|
+
return C.insert(() => S, ":first-child").attr("stroke-opacity", 0), C.insert(() => v, ":first-child"), C.attr("class", "text"), f && t.look !== "handDrawn" && C.selectAll("path").attr("style", f), r && t.look !== "handDrawn" && C.selectAll("path").attr("style", r), C.attr("transform", `translate(${d}, 0)`), o.attr("transform", `translate(${-l / 2 + d - (a.x - (a.left ?? 0))},${-u / 2 + (t.padding ?? 0) / 2 - (a.y - (a.top ?? 0))})`), I(t, C), t.intersect = function(e) {
|
|
1106
1146
|
return K.polygon(t, m, e);
|
|
1107
1147
|
}, i;
|
|
1108
1148
|
}
|
|
1109
|
-
e(
|
|
1110
|
-
function
|
|
1149
|
+
e(Fe, "curlyBraceLeft");
|
|
1150
|
+
function X(e, t, n, r = 100, i = 0, a = 180) {
|
|
1111
1151
|
let o = [], s = i * Math.PI / 180, c = (a * Math.PI / 180 - s) / (r - 1);
|
|
1112
1152
|
for (let i = 0; i < r; i++) {
|
|
1113
1153
|
let r = s + i * c, a = e + n * Math.cos(r), l = t + n * Math.sin(r);
|
|
@@ -1118,23 +1158,23 @@ function Y(e, t, n, r = 100, i = 0, a = 180) {
|
|
|
1118
1158
|
}
|
|
1119
1159
|
return o;
|
|
1120
1160
|
}
|
|
1121
|
-
e(
|
|
1122
|
-
async function
|
|
1123
|
-
let { labelStyles: n, nodeStyles: r } =
|
|
1161
|
+
e(X, "generateCirclePoints");
|
|
1162
|
+
async function Ie(e, t) {
|
|
1163
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
1124
1164
|
t.labelStyle = n;
|
|
1125
|
-
let { shapeSvg: i, bbox: a, label: o } = await
|
|
1126
|
-
...
|
|
1165
|
+
let { shapeSvg: i, bbox: a, label: o } = await P(e, t, L(t)), s = t.look === "neo" ? 18 : t.padding ?? 0, c = t.look === "neo" ? 12 : t.padding ?? 0, l = a.width + (t.look === "neo" ? s * 2 : s), u = a.height + (t.look === "neo" ? c * 2 : c), d = Math.max(5, u * .1), { cssStyles: f } = t, p = [
|
|
1166
|
+
...X(l / 2, -u / 2, d, 20, -90, 0),
|
|
1127
1167
|
{
|
|
1128
1168
|
x: l / 2 + d,
|
|
1129
1169
|
y: -d
|
|
1130
1170
|
},
|
|
1131
|
-
...
|
|
1132
|
-
...
|
|
1171
|
+
...X(l / 2 + d * 2, -d, d, 20, -180, -270),
|
|
1172
|
+
...X(l / 2 + d * 2, d, d, 20, -90, -180),
|
|
1133
1173
|
{
|
|
1134
1174
|
x: l / 2 + d,
|
|
1135
1175
|
y: u / 2
|
|
1136
1176
|
},
|
|
1137
|
-
...
|
|
1177
|
+
...X(l / 2, u / 2, d, 20, 0, 90)
|
|
1138
1178
|
], m = [
|
|
1139
1179
|
{
|
|
1140
1180
|
x: -l / 2,
|
|
@@ -1144,18 +1184,18 @@ async function Ne(e, t) {
|
|
|
1144
1184
|
x: l / 2,
|
|
1145
1185
|
y: -u / 2 - d
|
|
1146
1186
|
},
|
|
1147
|
-
...
|
|
1187
|
+
...X(l / 2, -u / 2, d, 20, -90, 0),
|
|
1148
1188
|
{
|
|
1149
1189
|
x: l / 2 + d,
|
|
1150
1190
|
y: -d
|
|
1151
1191
|
},
|
|
1152
|
-
...
|
|
1153
|
-
...
|
|
1192
|
+
...X(l / 2 + d * 2, -d, d, 20, -180, -270),
|
|
1193
|
+
...X(l / 2 + d * 2, d, d, 20, -90, -180),
|
|
1154
1194
|
{
|
|
1155
1195
|
x: l / 2 + d,
|
|
1156
1196
|
y: u / 2
|
|
1157
1197
|
},
|
|
1158
|
-
...
|
|
1198
|
+
...X(l / 2, u / 2, d, 20, 0, 90),
|
|
1159
1199
|
{
|
|
1160
1200
|
x: l / 2,
|
|
1161
1201
|
y: u / 2 + d
|
|
@@ -1164,15 +1204,15 @@ async function Ne(e, t) {
|
|
|
1164
1204
|
x: -l / 2,
|
|
1165
1205
|
y: u / 2 + d
|
|
1166
1206
|
}
|
|
1167
|
-
], h =
|
|
1207
|
+
], h = T.svg(i), g = b(t, { fill: "none" });
|
|
1168
1208
|
t.look !== "handDrawn" && (g.roughness = 0, g.fillStyle = "solid");
|
|
1169
|
-
let _ =
|
|
1170
|
-
return
|
|
1209
|
+
let _ = R(p).replace("Z", ""), v = h.path(_, g), y = R(m), S = h.path(y, { ...g }), C = i.insert("g", ":first-child");
|
|
1210
|
+
return C.insert(() => S, ":first-child").attr("stroke-opacity", 0), C.insert(() => v, ":first-child"), C.attr("class", "text"), f && t.look !== "handDrawn" && C.selectAll("path").attr("style", f), r && t.look !== "handDrawn" && C.selectAll("path").attr("style", r), C.attr("transform", `translate(${-d}, 0)`), o.attr("transform", `translate(${-l / 2 + (t.padding ?? 0) / 2 - (a.x - (a.left ?? 0))},${-u / 2 + (t.padding ?? 0) / 2 - (a.y - (a.top ?? 0))})`), I(t, C), t.intersect = function(e) {
|
|
1171
1211
|
return K.polygon(t, m, e);
|
|
1172
1212
|
}, i;
|
|
1173
1213
|
}
|
|
1174
|
-
e(
|
|
1175
|
-
function
|
|
1214
|
+
e(Ie, "curlyBraceRight");
|
|
1215
|
+
function Z(e, t, n, r = 100, i = 0, a = 180) {
|
|
1176
1216
|
let o = [], s = i * Math.PI / 180, c = (a * Math.PI / 180 - s) / (r - 1);
|
|
1177
1217
|
for (let i = 0; i < r; i++) {
|
|
1178
1218
|
let r = s + i * c, a = e + n * Math.cos(r), l = t + n * Math.sin(r);
|
|
@@ -1183,36 +1223,36 @@ function X(e, t, n, r = 100, i = 0, a = 180) {
|
|
|
1183
1223
|
}
|
|
1184
1224
|
return o;
|
|
1185
1225
|
}
|
|
1186
|
-
e(
|
|
1187
|
-
async function
|
|
1188
|
-
let { labelStyles: n, nodeStyles: r } =
|
|
1226
|
+
e(Z, "generateCirclePoints");
|
|
1227
|
+
async function Le(e, t) {
|
|
1228
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
1189
1229
|
t.labelStyle = n;
|
|
1190
|
-
let { shapeSvg: i, bbox: a, label: o } = await
|
|
1191
|
-
...
|
|
1230
|
+
let { shapeSvg: i, bbox: a, label: o } = await P(e, t, L(t)), s = t.look === "neo" ? 18 : t.padding ?? 0, c = t.look === "neo" ? 12 : t.padding ?? 0, l = a.width + (t.look === "neo" ? s * 2 : s), u = a.height + (t.look === "neo" ? c * 2 : c), d = Math.max(5, u * .1), { cssStyles: f } = t, p = [
|
|
1231
|
+
...Z(l / 2, -u / 2, d, 30, -90, 0),
|
|
1192
1232
|
{
|
|
1193
1233
|
x: -l / 2 - d,
|
|
1194
1234
|
y: d
|
|
1195
1235
|
},
|
|
1196
|
-
...
|
|
1197
|
-
...
|
|
1236
|
+
...Z(l / 2 + d * 2, -d, d, 20, -180, -270),
|
|
1237
|
+
...Z(l / 2 + d * 2, d, d, 20, -90, -180),
|
|
1198
1238
|
{
|
|
1199
1239
|
x: -l / 2 - d,
|
|
1200
1240
|
y: -u / 2
|
|
1201
1241
|
},
|
|
1202
|
-
...
|
|
1242
|
+
...Z(l / 2, u / 2, d, 20, 0, 90)
|
|
1203
1243
|
], m = [
|
|
1204
|
-
...
|
|
1244
|
+
...Z(-l / 2 + d + d / 2, -u / 2, d, 20, -90, -180),
|
|
1205
1245
|
{
|
|
1206
1246
|
x: l / 2 - d / 2,
|
|
1207
1247
|
y: d
|
|
1208
1248
|
},
|
|
1209
|
-
...
|
|
1210
|
-
...
|
|
1249
|
+
...Z(-l / 2 - d / 2, -d, d, 20, 0, 90),
|
|
1250
|
+
...Z(-l / 2 - d / 2, d, d, 20, -90, 0),
|
|
1211
1251
|
{
|
|
1212
1252
|
x: l / 2 - d / 2,
|
|
1213
1253
|
y: -d
|
|
1214
1254
|
},
|
|
1215
|
-
...
|
|
1255
|
+
...Z(-l / 2 + d + d / 2, u / 2, d, 30, -180, -270)
|
|
1216
1256
|
], h = [
|
|
1217
1257
|
{
|
|
1218
1258
|
x: l / 2,
|
|
@@ -1222,18 +1262,18 @@ async function Pe(e, t) {
|
|
|
1222
1262
|
x: -l / 2,
|
|
1223
1263
|
y: -u / 2 - d
|
|
1224
1264
|
},
|
|
1225
|
-
...
|
|
1265
|
+
...Z(l / 2, -u / 2, d, 20, -90, 0),
|
|
1226
1266
|
{
|
|
1227
1267
|
x: -l / 2 - d,
|
|
1228
1268
|
y: -d
|
|
1229
1269
|
},
|
|
1230
|
-
...
|
|
1231
|
-
...
|
|
1270
|
+
...Z(l / 2 + d * 2, -d, d, 20, -180, -270),
|
|
1271
|
+
...Z(l / 2 + d * 2, d, d, 20, -90, -180),
|
|
1232
1272
|
{
|
|
1233
1273
|
x: -l / 2 - d,
|
|
1234
1274
|
y: u / 2
|
|
1235
1275
|
},
|
|
1236
|
-
...
|
|
1276
|
+
...Z(l / 2, u / 2, d, 20, 0, 90),
|
|
1237
1277
|
{
|
|
1238
1278
|
x: -l / 2,
|
|
1239
1279
|
y: u / 2 + d
|
|
@@ -1242,132 +1282,132 @@ async function Pe(e, t) {
|
|
|
1242
1282
|
x: l / 2 - d - d / 2,
|
|
1243
1283
|
y: u / 2 + d
|
|
1244
1284
|
},
|
|
1245
|
-
...
|
|
1285
|
+
...Z(-l / 2 + d + d / 2, -u / 2, d, 20, -90, -180),
|
|
1246
1286
|
{
|
|
1247
1287
|
x: l / 2 - d / 2,
|
|
1248
1288
|
y: d
|
|
1249
1289
|
},
|
|
1250
|
-
...
|
|
1251
|
-
...
|
|
1290
|
+
...Z(-l / 2 - d / 2, -d, d, 20, 0, 90),
|
|
1291
|
+
...Z(-l / 2 - d / 2, d, d, 20, -90, 0),
|
|
1252
1292
|
{
|
|
1253
1293
|
x: l / 2 - d / 2,
|
|
1254
1294
|
y: -d
|
|
1255
1295
|
},
|
|
1256
|
-
...
|
|
1257
|
-
], g =
|
|
1296
|
+
...Z(-l / 2 + d + d / 2, u / 2, d, 30, -180, -270)
|
|
1297
|
+
], g = T.svg(i), _ = b(t, { fill: "none" });
|
|
1258
1298
|
t.look !== "handDrawn" && (_.roughness = 0, _.fillStyle = "solid");
|
|
1259
|
-
let v =
|
|
1260
|
-
return D.insert(() => E, ":first-child").attr("stroke-opacity", 0), D.insert(() =>
|
|
1299
|
+
let v = R(p).replace("Z", ""), y = g.path(v, _), S = R(m).replace("Z", ""), C = g.path(S, _), w = R(h), E = g.path(w, { ..._ }), D = i.insert("g", ":first-child");
|
|
1300
|
+
return D.insert(() => E, ":first-child").attr("stroke-opacity", 0), D.insert(() => y, ":first-child"), D.insert(() => C, ":first-child"), D.attr("class", "text"), f && t.look !== "handDrawn" && D.selectAll("path").attr("style", f), r && t.look !== "handDrawn" && D.selectAll("path").attr("style", r), D.attr("transform", `translate(${d - d / 4}, 0)`), o.attr("transform", `translate(${-l / 2 + (t.padding ?? 0) / 2 - (a.x - (a.left ?? 0))},${-u / 2 + (t.padding ?? 0) / 2 - (a.y - (a.top ?? 0))})`), I(t, D), t.intersect = function(e) {
|
|
1261
1301
|
return K.polygon(t, h, e);
|
|
1262
1302
|
}, i;
|
|
1263
1303
|
}
|
|
1264
|
-
e(
|
|
1265
|
-
async function
|
|
1266
|
-
let { labelStyles: n, nodeStyles: r } =
|
|
1304
|
+
e(Le, "curlyBraces");
|
|
1305
|
+
async function Re(e, t) {
|
|
1306
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
1267
1307
|
t.labelStyle = n;
|
|
1268
|
-
let i = t.padding ?? 0, a = t.look === "neo" ? 16 : i, o = t.look === "neo" ? 12 : i, { shapeSvg: s, bbox: c } = await
|
|
1269
|
-
t.look !== "handDrawn" && (
|
|
1270
|
-
let
|
|
1308
|
+
let i = t.padding ?? 0, a = t.look === "neo" ? 16 : i, o = t.look === "neo" ? 12 : i, { shapeSvg: s, bbox: c } = await P(e, t, L(t)), l = Math.max(5, c.height + o * 2, t?.height ?? 0), u = l / 2, d = u - Math.sqrt(Math.max(0, u ** 2 - (c.height / 2) ** 2)), f = Math.max(l / 4, d), p = Math.max(20, c.width + a * 2 + f * 2, (c.width + a * 2) * 1.25, t?.width ?? 0), { cssStyles: m } = t, h = T.svg(s), g = b(t, {});
|
|
1309
|
+
t.look !== "handDrawn" && (g.roughness = 0, g.fillStyle = "solid");
|
|
1310
|
+
let _ = p, v = l, y = _ - u, S = v / 4, C = [
|
|
1271
1311
|
{
|
|
1272
|
-
x:
|
|
1312
|
+
x: y,
|
|
1273
1313
|
y: 0
|
|
1274
1314
|
},
|
|
1275
1315
|
{
|
|
1276
|
-
x:
|
|
1316
|
+
x: S,
|
|
1277
1317
|
y: 0
|
|
1278
1318
|
},
|
|
1279
1319
|
{
|
|
1280
1320
|
x: 0,
|
|
1281
|
-
y:
|
|
1321
|
+
y: v / 2
|
|
1282
1322
|
},
|
|
1283
1323
|
{
|
|
1284
|
-
x:
|
|
1285
|
-
y:
|
|
1324
|
+
x: S,
|
|
1325
|
+
y: v
|
|
1286
1326
|
},
|
|
1287
1327
|
{
|
|
1288
|
-
x:
|
|
1289
|
-
y:
|
|
1328
|
+
x: y,
|
|
1329
|
+
y: v
|
|
1290
1330
|
},
|
|
1291
|
-
...
|
|
1292
|
-
],
|
|
1293
|
-
return
|
|
1294
|
-
return K.polygon(t,
|
|
1331
|
+
...B(-y, -v / 2, u, 50, 270, 90)
|
|
1332
|
+
], w = R(C), E = h.path(w, g), D = s.insert(() => E, ":first-child");
|
|
1333
|
+
return D.attr("class", "basic label-container outer-path"), m && t.look !== "handDrawn" && D.selectChildren("path").attr("style", m), r && t.look !== "handDrawn" && D.selectChildren("path").attr("style", r), D.attr("transform", `translate(${-p / 2}, ${-l / 2})`), I(t, D), t.intersect = function(e) {
|
|
1334
|
+
return K.polygon(t, C, e);
|
|
1295
1335
|
}, s;
|
|
1296
1336
|
}
|
|
1297
|
-
e(
|
|
1298
|
-
async function
|
|
1299
|
-
let { labelStyles: n, nodeStyles: r } =
|
|
1337
|
+
e(Re, "curvedTrapezoid");
|
|
1338
|
+
async function ze(e, t) {
|
|
1339
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
1300
1340
|
t.labelStyle = n;
|
|
1301
|
-
let { shapeSvg: i, bbox: a, label: o } = await
|
|
1341
|
+
let { shapeSvg: i, bbox: a, label: o } = await P(e, t, L(t)), s = t.padding ?? 20, c = Math.max(a.width + s * 2, t.width ?? 0, 100), l = Math.min(Math.max(c * .23, 16), 56), u = l * .27, d = Math.max(a.height + s * 2, t.height ? t.height - (2 * l - u) : 0), f = Math.min(c * .177, d * .45), p = d + 2 * l - u, m = -p / 2, h = m + 2 * l - u, g = i.insert("g", ":first-child").attr("class", "basic label-container"), { cssStyles: _ } = t;
|
|
1302
1342
|
if (t.look === "handDrawn") {
|
|
1303
|
-
let e =
|
|
1343
|
+
let e = T.svg(i), n = b(t, {}), r = e.path(q(-c / 2, h, c, d, f), n), a = e.circle(0, m + l, l * 2, n);
|
|
1304
1344
|
g.insert(() => a, ":first-child"), g.insert(() => r, ":first-child"), _ && g.attr("style", _);
|
|
1305
1345
|
} else g.append("rect").attr("x", -c / 2).attr("y", h).attr("width", c).attr("height", d).attr("rx", f).attr("ry", f).attr("style", r), g.append("circle").attr("cx", 0).attr("cy", m + l).attr("r", l).attr("style", r);
|
|
1306
|
-
|
|
1346
|
+
I(t, g);
|
|
1307
1347
|
let v = h + d / 2;
|
|
1308
1348
|
o.attr("transform", `translate(${-(a.width / 2) - (a.x - (a.left ?? 0))}, ${v - a.height / 2 - (a.y - (a.top ?? 0))})`);
|
|
1309
|
-
let
|
|
1310
|
-
...
|
|
1311
|
-
...
|
|
1312
|
-
...
|
|
1313
|
-
...
|
|
1314
|
-
...
|
|
1349
|
+
let y = m + l, S = Math.asin(Math.min(1, (h - y) / l)) * 180 / Math.PI, C = [
|
|
1350
|
+
...B(0, -y, l, 24, 180 + S, -S),
|
|
1351
|
+
...B(-(-c / 2 + f), -(h + f), f, 12, 90, 0),
|
|
1352
|
+
...B(-(-c / 2 + f), -(p / 2 - f), f, 12, 360, 270),
|
|
1353
|
+
...B(-(c / 2 - f), -(p / 2 - f), f, 12, 270, 180),
|
|
1354
|
+
...B(-(c / 2 - f), -(h + f), f, 12, 180, 90)
|
|
1315
1355
|
];
|
|
1316
1356
|
return t.intersect = function(e) {
|
|
1317
|
-
return K.polygon(t,
|
|
1357
|
+
return K.polygon(t, C, e);
|
|
1318
1358
|
}, i;
|
|
1319
1359
|
}
|
|
1320
|
-
e(
|
|
1321
|
-
var
|
|
1360
|
+
e(ze, "person");
|
|
1361
|
+
var Be = /* @__PURE__ */ e((e, t, n, r, i, a) => [
|
|
1322
1362
|
`M${e},${t + a}`,
|
|
1323
1363
|
`a${i},${a} 0,0,0 ${n},0`,
|
|
1324
1364
|
`a${i},${a} 0,0,0 ${-n},0`,
|
|
1325
1365
|
`l0,${r}`,
|
|
1326
1366
|
`a${i},${a} 0,0,0 ${n},0`,
|
|
1327
1367
|
`l0,${-r}`
|
|
1328
|
-
].join(" "), "createCylinderPathD"),
|
|
1368
|
+
].join(" "), "createCylinderPathD"), Ve = /* @__PURE__ */ e((e, t, n, r, i, a) => [
|
|
1329
1369
|
`M${e},${t + a}`,
|
|
1330
1370
|
`M${e + n},${t + a}`,
|
|
1331
1371
|
`a${i},${a} 0,0,0 ${-n},0`,
|
|
1332
1372
|
`l0,${r}`,
|
|
1333
1373
|
`a${i},${a} 0,0,0 ${n},0`,
|
|
1334
1374
|
`l0,${-r}`
|
|
1335
|
-
].join(" "), "createOuterCylinderPathD"),
|
|
1336
|
-
async function
|
|
1337
|
-
let { labelStyles: n, nodeStyles: r } =
|
|
1375
|
+
].join(" "), "createOuterCylinderPathD"), He = /* @__PURE__ */ e((e, t, n, r, i, a) => [`M${e - n / 2},${-r / 2}`, `a${i},${a} 0,0,0 ${n},0`].join(" "), "createInnerCylinderPathD"), Ue = 8, We = 8;
|
|
1376
|
+
async function Ge(e, t) {
|
|
1377
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
1338
1378
|
t.labelStyle = n;
|
|
1339
1379
|
let i = t.padding ?? 0, a = t.look === "neo" ? 24 : i, o = t.look === "neo" ? 24 : i, s = t.width ?? 0;
|
|
1340
|
-
if (t.width && (t.width -= o, t.width <
|
|
1380
|
+
if (t.width && (t.width -= o, t.width < We && (t.width = We)), t.height) {
|
|
1341
1381
|
let e = s / 2 / (2.5 + s / 50);
|
|
1342
|
-
t.height = t.height - a - e * 3, t.height <
|
|
1382
|
+
t.height = t.height - a - e * 3, t.height < Ue && (t.height = Ue);
|
|
1343
1383
|
}
|
|
1344
|
-
let { shapeSvg: c, bbox: l, label: u } = await
|
|
1384
|
+
let { shapeSvg: c, bbox: l, label: u } = await P(e, t, L(t)), d = Math.max(t.width ?? 0, l.width) + o, f = d / 2, m = f / (2.5 + d / 50), h = Math.max(t.height ?? 0, l.height) + a + m, g, { cssStyles: _ } = t;
|
|
1345
1385
|
if (t.look === "handDrawn") {
|
|
1346
|
-
let e =
|
|
1386
|
+
let e = T.svg(c), n = Ve(0, 0, d, h, f, m), r = He(0, m, d, h, f, m), i = b(t, {}), a = e.path(n, i), o = e.path(r, b(t, { fill: "none" }));
|
|
1347
1387
|
g = c.insert(() => o, ":first-child"), g = c.insert(() => a, ":first-child"), g.attr("class", "basic label-container"), _ && g.attr("style", _);
|
|
1348
1388
|
} else {
|
|
1349
|
-
let e =
|
|
1350
|
-
g = c.insert("path", ":first-child").attr("d", e).attr("class", "basic label-container outer-path").attr("style",
|
|
1389
|
+
let e = Be(0, 0, d, h, f, m);
|
|
1390
|
+
g = c.insert("path", ":first-child").attr("d", e).attr("class", "basic label-container outer-path").attr("style", p(_)).attr("style", r);
|
|
1351
1391
|
}
|
|
1352
|
-
return g.attr("label-offset-y",
|
|
1392
|
+
return g.attr("label-offset-y", m), g.attr("transform", `translate(${-d / 2}, ${-(h / 2 + m)})`), I(t, g), u.attr("transform", `translate(${-(l.width / 2) - (l.x - (l.left ?? 0))}, ${-(l.height / 2) + (t.padding ?? 0) / 1.5 - (l.y - (l.top ?? 0))})`), t.intersect = function(e) {
|
|
1353
1393
|
let n = K.rect(t, e), r = n.x - (t.x ?? 0);
|
|
1354
|
-
if (f != 0 && (Math.abs(r) < (t.width ?? 0) / 2 || Math.abs(r) == (t.width ?? 0) / 2 && Math.abs(n.y - (t.y ?? 0)) > (t.height ?? 0) / 2 -
|
|
1355
|
-
let i =
|
|
1356
|
-
i > 0 && (i = Math.sqrt(i)), i =
|
|
1394
|
+
if (f != 0 && (Math.abs(r) < (t.width ?? 0) / 2 || Math.abs(r) == (t.width ?? 0) / 2 && Math.abs(n.y - (t.y ?? 0)) > (t.height ?? 0) / 2 - m)) {
|
|
1395
|
+
let i = m * m * (1 - r * r / (f * f));
|
|
1396
|
+
i > 0 && (i = Math.sqrt(i)), i = m - i, e.y - (t.y ?? 0) > 0 && (i = -i), n.y += i;
|
|
1357
1397
|
}
|
|
1358
1398
|
return n;
|
|
1359
1399
|
}, c;
|
|
1360
1400
|
}
|
|
1361
|
-
e(
|
|
1362
|
-
async function
|
|
1363
|
-
let { labelStyles: r, nodeStyles: i } =
|
|
1401
|
+
e(Ge, "cylinder");
|
|
1402
|
+
async function Ke(e, t, n) {
|
|
1403
|
+
let { labelStyles: r, nodeStyles: i } = x(t);
|
|
1364
1404
|
t.labelStyle = r;
|
|
1365
|
-
let { shapeSvg: a, bbox: o } = await
|
|
1366
|
-
if (n?.rx && n.ry && (f = n.rx,
|
|
1367
|
-
let e =
|
|
1368
|
-
d = a.insert(() => r, ":first-child"), d.attr("class", "basic label-container").attr("style", h
|
|
1369
|
-
} else d = a.insert("rect", ":first-child"), d.attr("class", "basic label-container").attr("style", i).attr("rx",
|
|
1370
|
-
return
|
|
1405
|
+
let { shapeSvg: a, bbox: o } = await P(e, t, L(t)), s = Math.max(o.width + n.labelPaddingX * 2, t?.width || 0), c = Math.max(o.height + n.labelPaddingY * 2, t?.height || 0), l = -s / 2, u = -c / 2, d, { rx: f, ry: m } = t, { cssStyles: h } = t;
|
|
1406
|
+
if (n?.rx && n.ry && (f = n.rx, m = n.ry), t.look === "handDrawn") {
|
|
1407
|
+
let e = T.svg(a), n = b(t, {}), r = f || m ? e.path(q(l, u, s, c, f || 0), n) : e.rectangle(l, u, s, c, n);
|
|
1408
|
+
d = a.insert(() => r, ":first-child"), d.attr("class", "basic label-container").attr("style", p(h));
|
|
1409
|
+
} else d = a.insert("rect", ":first-child"), d.attr("class", "basic label-container").attr("style", i).attr("rx", p(f)).attr("ry", p(m)).attr("x", l).attr("y", u).attr("width", s).attr("height", c);
|
|
1410
|
+
return I(t, d, t.look === "handDrawn" ? void 0 : {
|
|
1371
1411
|
width: s,
|
|
1372
1412
|
height: c
|
|
1373
1413
|
}), t.calcIntersect = function(e, t) {
|
|
@@ -1376,9 +1416,9 @@ async function Ue(e, t, n) {
|
|
|
1376
1416
|
return K.rect(t, e);
|
|
1377
1417
|
}, a;
|
|
1378
1418
|
}
|
|
1379
|
-
e(
|
|
1380
|
-
async function
|
|
1381
|
-
let { cssClasses: n, labelPaddingX: r, labelPaddingY: i, padding: a, width: o, height: s } = t, c = await
|
|
1419
|
+
e(Ke, "drawRect");
|
|
1420
|
+
async function qe(e, t) {
|
|
1421
|
+
let { cssClasses: n, labelPaddingX: r, labelPaddingY: i, padding: a, width: o, height: s } = t, c = await Ke(e, t, {
|
|
1382
1422
|
rx: 0,
|
|
1383
1423
|
ry: 0,
|
|
1384
1424
|
classes: n ?? "",
|
|
@@ -1386,7 +1426,7 @@ async function We(e, t) {
|
|
|
1386
1426
|
labelPaddingY: i ?? a ?? 0
|
|
1387
1427
|
});
|
|
1388
1428
|
if (t.look === "handDrawn") {
|
|
1389
|
-
let e =
|
|
1429
|
+
let e = T.svg(c), n = b(t, {}), r = c.select(".basic.label-container > path:nth-child(2)"), i = r.node();
|
|
1390
1430
|
if (!i) return c;
|
|
1391
1431
|
let a = null;
|
|
1392
1432
|
if (i instanceof SVGGraphicsElement) a = i.getBBox();
|
|
@@ -1396,11 +1436,11 @@ async function We(e, t) {
|
|
|
1396
1436
|
let l = c.select(".basic.label-container"), u = (Number(l.attr("width")) || o) ?? 0, d = (Number(l.attr("height")) || s) ?? 0;
|
|
1397
1437
|
return u > 0 && d > 0 && l.attr("stroke-dasharray", `${u} ${d}`), c;
|
|
1398
1438
|
}
|
|
1399
|
-
e(
|
|
1400
|
-
async function
|
|
1401
|
-
let { labelStyles: n, nodeStyles: r } =
|
|
1439
|
+
e(qe, "datastore");
|
|
1440
|
+
async function Je(e, t) {
|
|
1441
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
1402
1442
|
t.labelStyle = n;
|
|
1403
|
-
let i = t.look === "neo" ? 16 : t.padding ?? 0, a = t.look === "neo" ? 16 : t.padding ?? 0, { shapeSvg: o, bbox: s, label: c } = await
|
|
1443
|
+
let i = t.look === "neo" ? 16 : t.padding ?? 0, a = t.look === "neo" ? 16 : t.padding ?? 0, { shapeSvg: o, bbox: s, label: c } = await P(e, t, L(t)), l = s.width + i, u = s.height + a, d = u * .2, f = -l / 2, p = -u / 2 - d / 2, { cssStyles: m } = t, h = T.svg(o), g = b(t, {});
|
|
1404
1444
|
t.look !== "handDrawn" && (g.roughness = 0, g.fillStyle = "solid");
|
|
1405
1445
|
let _ = [
|
|
1406
1446
|
{
|
|
@@ -1431,56 +1471,74 @@ async function Ge(e, t) {
|
|
|
1431
1471
|
x: -f,
|
|
1432
1472
|
y: p + d
|
|
1433
1473
|
}
|
|
1434
|
-
], v = h.polygon(_.map((e) => [e.x, e.y]), g),
|
|
1435
|
-
return
|
|
1474
|
+
], v = h.polygon(_.map((e) => [e.x, e.y]), g), y = o.insert(() => v, ":first-child");
|
|
1475
|
+
return y.attr("class", "basic label-container outer-path"), m && t.look !== "handDrawn" && y.selectAll("path").attr("style", m), r && t.look !== "handDrawn" && y.selectAll("path").attr("style", r), c.attr("transform", `translate(${f + (t.padding ?? 0) / 2 - (s.x - (s.left ?? 0))}, ${p + d + (t.padding ?? 0) / 2 - (s.y - (s.top ?? 0))})`), I(t, y), t.intersect = function(e) {
|
|
1436
1476
|
return K.rect(t, e);
|
|
1437
1477
|
}, o;
|
|
1438
1478
|
}
|
|
1439
|
-
e(
|
|
1440
|
-
async function
|
|
1441
|
-
let { labelStyles: r, nodeStyles: i } =
|
|
1479
|
+
e(Je, "dividedRectangle");
|
|
1480
|
+
async function Ye(e, n) {
|
|
1481
|
+
let { labelStyles: r, nodeStyles: i } = x(n), a = n.look === "neo" ? 12 : 5;
|
|
1442
1482
|
n.labelStyle = r;
|
|
1443
|
-
let o = n.padding ?? 0, s = n.look === "neo" ? 16 : o, { shapeSvg: c, bbox: l } = await
|
|
1483
|
+
let o = n.padding ?? 0, s = n.look === "neo" ? 16 : o, { shapeSvg: c, bbox: l } = await P(e, n, L(n)), u = Math.sqrt(l.width ** 2 + l.height ** 2) / 2, d = (n?.width ? n?.width / 2 : u) + (s ?? 0), f = d + a, m, { cssStyles: h } = n;
|
|
1444
1484
|
if (n.look === "handDrawn") {
|
|
1445
|
-
let e =
|
|
1485
|
+
let e = T.svg(c), t = b(n, {
|
|
1446
1486
|
roughness: .2,
|
|
1447
1487
|
strokeWidth: 2.5
|
|
1448
|
-
}), r =
|
|
1488
|
+
}), r = b(n, {
|
|
1449
1489
|
roughness: .2,
|
|
1450
1490
|
strokeWidth: 1.5
|
|
1451
|
-
}), i = e.circle(0, 0,
|
|
1452
|
-
|
|
1491
|
+
}), i = e.circle(0, 0, f * 2, t), a = e.circle(0, 0, d * 2, r);
|
|
1492
|
+
m = c.insert("g", ":first-child"), m.attr("class", p(n.cssClasses)).attr("style", p(h)), m.node()?.appendChild(i), m.node()?.appendChild(a);
|
|
1453
1493
|
} else {
|
|
1454
|
-
|
|
1455
|
-
let e =
|
|
1456
|
-
|
|
1494
|
+
m = c.insert("g", ":first-child");
|
|
1495
|
+
let e = m.insert("circle", ":first-child"), t = m.insert("circle");
|
|
1496
|
+
m.attr("class", "basic label-container").attr("style", i), e.attr("class", "outer-circle").attr("style", i).attr("r", f).attr("cx", 0).attr("cy", 0), t.attr("class", "inner-circle").attr("style", i).attr("r", d).attr("cx", 0).attr("cy", 0);
|
|
1457
1497
|
}
|
|
1458
|
-
return
|
|
1459
|
-
return t.info("DoubleCircle intersect", n,
|
|
1498
|
+
return I(n, m), n.intersect = function(e) {
|
|
1499
|
+
return t.info("DoubleCircle intersect", n, f, e), K.circle(n, f, e);
|
|
1460
1500
|
}, c;
|
|
1461
1501
|
}
|
|
1462
|
-
e(
|
|
1463
|
-
function
|
|
1464
|
-
let { labelStyles:
|
|
1502
|
+
e(Ye, "doublecircle");
|
|
1503
|
+
async function Xe(e, t) {
|
|
1504
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
1505
|
+
t.labelStyle = n;
|
|
1506
|
+
let { shapeSvg: i, bbox: o, halfPadding: s } = await P(e, t, L(t)), { theme: c, themeVariables: l } = a();
|
|
1507
|
+
w(i, t.colorIndex, c, l.borderColorArray);
|
|
1508
|
+
let u = s ?? 10, d = o.width / 2 + u * 2, f = o.height / 2 + u * 2, p, { cssStyles: m } = t;
|
|
1509
|
+
if (t.look === "handDrawn") {
|
|
1510
|
+
let e = T.svg(i), n = b(t, {}), r = e.ellipse(0, 0, d * 2, f * 2, n);
|
|
1511
|
+
p = i.insert(() => r, ":first-child"), p.attr("class", "basic label-container"), m && p.attr("style", m);
|
|
1512
|
+
} else p = i.insert("ellipse", ":first-child").attr("class", "basic label-container").attr("style", r).attr("rx", d).attr("ry", f).attr("cx", 0).attr("cy", 0);
|
|
1513
|
+
return t.width = d * 2, t.height = f * 2, I(t, p), t.calcIntersect = function(e, t) {
|
|
1514
|
+
let n = e.width / 2, r = e.height / 2;
|
|
1515
|
+
return K.ellipse(e, n, r, t);
|
|
1516
|
+
}, t.intersect = function(e) {
|
|
1517
|
+
return K.ellipse(t, d, f, e);
|
|
1518
|
+
}, i;
|
|
1519
|
+
}
|
|
1520
|
+
e(Xe, "usecaseEllipse");
|
|
1521
|
+
function Ze(e, n, { config: { themeVariables: r } }) {
|
|
1522
|
+
let { labelStyles: i, nodeStyles: a } = x(n);
|
|
1465
1523
|
n.label = "", n.labelStyle = i;
|
|
1466
|
-
let o = e.insert("g").attr("class",
|
|
1524
|
+
let o = e.insert("g").attr("class", L(n)).attr("id", n.domId ?? n.id), { cssStyles: s } = n, c = T.svg(o), { nodeBorder: l } = r, u = b(n, { fillStyle: "solid" });
|
|
1467
1525
|
n.look !== "handDrawn" && (u.roughness = 0);
|
|
1468
1526
|
let d = c.circle(0, 0, 14, u), f = o.insert(() => d, ":first-child");
|
|
1469
|
-
return f.selectAll("path").attr("style", `fill: ${l} !important;`), s && s.length > 0 && n.look !== "handDrawn" && f.selectAll("path").attr("style", s), a && n.look !== "handDrawn" && f.selectAll("path").attr("style", a),
|
|
1527
|
+
return f.selectAll("path").attr("style", `fill: ${l} !important;`), s && s.length > 0 && n.look !== "handDrawn" && f.selectAll("path").attr("style", s), a && n.look !== "handDrawn" && f.selectAll("path").attr("style", a), I(n, f), n.intersect = function(e) {
|
|
1470
1528
|
return t.info("filledCircle intersect", n, {
|
|
1471
1529
|
radius: 7,
|
|
1472
1530
|
point: e
|
|
1473
1531
|
}), K.circle(n, 7, e);
|
|
1474
1532
|
}, o;
|
|
1475
1533
|
}
|
|
1476
|
-
e(
|
|
1477
|
-
var
|
|
1478
|
-
async function
|
|
1479
|
-
let { labelStyles: r, nodeStyles: i } =
|
|
1534
|
+
e(Ze, "filledCircle");
|
|
1535
|
+
var Qe = 10, $e = 10;
|
|
1536
|
+
async function et(e, n) {
|
|
1537
|
+
let { labelStyles: r, nodeStyles: i } = x(n);
|
|
1480
1538
|
n.labelStyle = r;
|
|
1481
1539
|
let a = n.padding ?? 0, o = n.look === "neo" ? a * 2 : a;
|
|
1482
|
-
(n.width || n.height) && (n.height = n?.height ?? 0, n.height <
|
|
1483
|
-
let { shapeSvg: s, bbox: c, label: l } = await
|
|
1540
|
+
(n.width || n.height) && (n.height = n?.height ?? 0, n.height < Qe && (n.height = Qe), n.width = (n?.width ?? 0) - o - o / 2, n.width < $e && (n.width = $e));
|
|
1541
|
+
let { shapeSvg: s, bbox: c, label: l } = await P(e, n, L(n)), u = (n?.width ? n?.width : c.width) + (o ?? 0), d = n?.height ? n?.height : u + c.height, f = d, p = [
|
|
1484
1542
|
{
|
|
1485
1543
|
x: 0,
|
|
1486
1544
|
y: -d
|
|
@@ -1493,18 +1551,18 @@ async function Xe(e, n) {
|
|
|
1493
1551
|
x: f / 2,
|
|
1494
1552
|
y: 0
|
|
1495
1553
|
}
|
|
1496
|
-
], { cssStyles: m } = n, h =
|
|
1554
|
+
], { cssStyles: m } = n, h = T.svg(s), g = b(n, {});
|
|
1497
1555
|
n.look !== "handDrawn" && (g.roughness = 0, g.fillStyle = "solid");
|
|
1498
|
-
let _ =
|
|
1499
|
-
return m && n.look !== "handDrawn" &&
|
|
1556
|
+
let _ = R(p), v = h.path(_, g), y = s.insert(() => v, ":first-child").attr("transform", `translate(${-d / 2}, ${d / 2})`).attr("class", "outer-path");
|
|
1557
|
+
return m && n.look !== "handDrawn" && y.selectChildren("path").attr("style", m), i && n.look !== "handDrawn" && y.selectChildren("path").attr("style", i), n.width = u, n.height = d, I(n, y), l.attr("transform", `translate(${-c.width / 2 - (c.x - (c.left ?? 0))}, ${-d / 2 + (n.padding ?? 0) / 2 + (c.y - (c.top ?? 0))})`), n.intersect = function(e) {
|
|
1500
1558
|
return t.info("Triangle intersect", n, p, e), K.polygon(n, p, e);
|
|
1501
1559
|
}, s;
|
|
1502
1560
|
}
|
|
1503
|
-
e(
|
|
1504
|
-
async function
|
|
1505
|
-
let { labelStyles: n, nodeStyles: r } =
|
|
1561
|
+
e(et, "flippedTriangle");
|
|
1562
|
+
async function tt(e, t) {
|
|
1563
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
1506
1564
|
t.labelStyle = n;
|
|
1507
|
-
let { shapeSvg: i, bbox: a, label: o } = await
|
|
1565
|
+
let { shapeSvg: i, bbox: a, label: o } = await P(e, t, L(t)), s = t.padding ?? 12, c = Math.max(a.width + s * 2, t.width ?? 0, 90), l = a.height + s * 2, u = Math.max(Math.min(l * .16, 14), 8), d = Math.max(l + u, t.height ?? 0), f = d - u, p = Math.max(c * .38, 28), m = -d / 2, h = [
|
|
1508
1566
|
{
|
|
1509
1567
|
x: -c / 2,
|
|
1510
1568
|
y: m
|
|
@@ -1535,72 +1593,72 @@ async function Ze(e, t) {
|
|
|
1535
1593
|
"Z"
|
|
1536
1594
|
].join(" "), { cssStyles: _ } = t, v;
|
|
1537
1595
|
if (t.look === "handDrawn") {
|
|
1538
|
-
let e =
|
|
1596
|
+
let e = T.svg(i).path(g, b(t, {}));
|
|
1539
1597
|
v = i.insert(() => e, ":first-child").attr("class", "basic label-container"), _ && v.attr("style", _);
|
|
1540
1598
|
} else v = i.insert("path", ":first-child").attr("d", g).attr("class", "basic label-container").attr("style", r);
|
|
1541
|
-
t.look === "handDrawn" ?
|
|
1599
|
+
t.look === "handDrawn" ? I(t, v) : I(t, v, {
|
|
1542
1600
|
width: c,
|
|
1543
1601
|
height: d
|
|
1544
1602
|
});
|
|
1545
|
-
let
|
|
1546
|
-
return o.attr("transform", `translate(${-(a.width / 2) - (a.x - (a.left ?? 0))}, ${
|
|
1603
|
+
let y = m + u + f / 2;
|
|
1604
|
+
return o.attr("transform", `translate(${-(a.width / 2) - (a.x - (a.left ?? 0))}, ${y - a.height / 2 - (a.y - (a.top ?? 0))})`), t.intersect = function(e) {
|
|
1547
1605
|
return K.polygon(t, h, e);
|
|
1548
1606
|
}, i;
|
|
1549
1607
|
}
|
|
1550
|
-
e(
|
|
1551
|
-
function
|
|
1552
|
-
let { nodeStyles: a } =
|
|
1608
|
+
e(tt, "folder");
|
|
1609
|
+
function nt(e, t, { dir: n, config: { state: r, themeVariables: i } }) {
|
|
1610
|
+
let { nodeStyles: a } = x(t);
|
|
1553
1611
|
t.label = "";
|
|
1554
|
-
let o = e.insert("g").attr("class",
|
|
1555
|
-
n === "LR" && (c = Math.max(10, t?.width ?? 0), l = Math.max(70, t?.height ?? 0));
|
|
1556
|
-
let u = -1 * c / 2, d = -1 * l / 2, f =
|
|
1612
|
+
let o = e.insert("g").attr("class", L(t)).attr("id", t.domId ?? t.id), { cssStyles: s } = t, c = Math.max(70, t?.width ?? 0), l = Math.max(10, t?.height ?? 0);
|
|
1613
|
+
(n === "LR" || n === "RL") && (c = Math.max(10, t?.width ?? 0), l = Math.max(70, t?.height ?? 0));
|
|
1614
|
+
let u = -1 * c / 2, d = -1 * l / 2, f = T.svg(o), p = b(t, {
|
|
1557
1615
|
stroke: i.lineColor,
|
|
1558
1616
|
fill: i.lineColor
|
|
1559
1617
|
});
|
|
1560
1618
|
t.look !== "handDrawn" && (p.roughness = 0, p.fillStyle = "solid");
|
|
1561
1619
|
let m = f.rectangle(u, d, c, l, p), h = o.insert(() => m, ":first-child");
|
|
1562
|
-
s && t.look !== "handDrawn" && h.selectAll("path").attr("style", s), a && t.look !== "handDrawn" && h.selectAll("path").attr("style", a),
|
|
1620
|
+
s && t.look !== "handDrawn" && h.selectAll("path").attr("style", s), a && t.look !== "handDrawn" && h.selectAll("path").attr("style", a), I(t, h);
|
|
1563
1621
|
let g = r?.padding ?? 0;
|
|
1564
1622
|
return t.width && t.height && (t.width += g / 2 || 0, t.height += g / 2 || 0), t.intersect = function(e) {
|
|
1565
1623
|
return K.rect(t, e);
|
|
1566
1624
|
}, o;
|
|
1567
1625
|
}
|
|
1568
|
-
e(
|
|
1569
|
-
async function
|
|
1570
|
-
let { labelStyles: r, nodeStyles: i } =
|
|
1626
|
+
e(nt, "forkJoin");
|
|
1627
|
+
async function rt(e, n) {
|
|
1628
|
+
let { labelStyles: r, nodeStyles: i } = x(n);
|
|
1571
1629
|
n.labelStyle = r;
|
|
1572
1630
|
let a = n.look === "neo" ? 16 : n.padding ?? 0, o = n.look === "neo" ? 12 : n.padding ?? 0;
|
|
1573
1631
|
(n.width || n.height) && (n.height = (n?.height ?? 0) - o * 2, n.height < 10 && (n.height = 10), n.width = (n?.width ?? 0) - a * 2, n.width < 15 && (n.width = 15));
|
|
1574
|
-
let { shapeSvg: s, bbox: c } = await
|
|
1575
|
-
n.look !== "handDrawn" && (
|
|
1576
|
-
let
|
|
1632
|
+
let { shapeSvg: s, bbox: c } = await P(e, n, L(n)), l = (n?.height ? n?.height : Math.max(10, c.height)) + o * 2, u = l / 2, d = u - Math.sqrt(Math.max(0, u ** 2 - (c.height / 2) ** 2)), f = (n?.width ? n?.width : Math.max(15, c.width) + d * 2) + a * 2, { cssStyles: p } = n, m = T.svg(s), h = b(n, {});
|
|
1633
|
+
n.look !== "handDrawn" && (h.roughness = 0, h.fillStyle = "solid");
|
|
1634
|
+
let g = [
|
|
1577
1635
|
{
|
|
1578
|
-
x: -
|
|
1579
|
-
y: -
|
|
1636
|
+
x: -f / 2,
|
|
1637
|
+
y: -l / 2
|
|
1580
1638
|
},
|
|
1581
1639
|
{
|
|
1582
|
-
x:
|
|
1583
|
-
y: -
|
|
1640
|
+
x: f / 2 - u,
|
|
1641
|
+
y: -l / 2
|
|
1584
1642
|
},
|
|
1585
|
-
...
|
|
1643
|
+
...B(-f / 2 + u, 0, u, 50, 90, 270),
|
|
1586
1644
|
{
|
|
1587
|
-
x:
|
|
1588
|
-
y:
|
|
1645
|
+
x: f / 2 - u,
|
|
1646
|
+
y: l / 2
|
|
1589
1647
|
},
|
|
1590
1648
|
{
|
|
1591
|
-
x: -
|
|
1592
|
-
y:
|
|
1649
|
+
x: -f / 2,
|
|
1650
|
+
y: l / 2
|
|
1593
1651
|
}
|
|
1594
|
-
],
|
|
1595
|
-
return
|
|
1652
|
+
], _ = R(g), v = m.path(_, h), y = s.insert(() => v, ":first-child");
|
|
1653
|
+
return y.attr("class", "basic label-container outer-path"), p && n.look !== "handDrawn" && y.selectChildren("path").attr("style", p), i && n.look !== "handDrawn" && y.selectChildren("path").attr("style", i), I(n, y), n.intersect = function(e) {
|
|
1596
1654
|
return t.info("Pill intersect", n, {
|
|
1597
|
-
radius:
|
|
1655
|
+
radius: u,
|
|
1598
1656
|
point: e
|
|
1599
|
-
}), K.polygon(n,
|
|
1657
|
+
}), K.polygon(n, g, e);
|
|
1600
1658
|
}, s;
|
|
1601
1659
|
}
|
|
1602
|
-
e(
|
|
1603
|
-
var
|
|
1660
|
+
e(rt, "halfRoundedRectangle");
|
|
1661
|
+
var it = /* @__PURE__ */ e((e, t, n, r, i) => [
|
|
1604
1662
|
`M${e + i},${t}`,
|
|
1605
1663
|
`L${e + n - i},${t}`,
|
|
1606
1664
|
`L${e + n},${t - r / 2}`,
|
|
@@ -1609,15 +1667,15 @@ var et = /* @__PURE__ */ e((e, t, n, r, i) => [
|
|
|
1609
1667
|
`L${e},${t - r / 2}`,
|
|
1610
1668
|
"Z"
|
|
1611
1669
|
].join(" "), "createHexagonPathD");
|
|
1612
|
-
async function
|
|
1613
|
-
let { labelStyles: n, nodeStyles: r } =
|
|
1670
|
+
async function at(e, t) {
|
|
1671
|
+
let { labelStyles: n, nodeStyles: r } = x(t), i = t.look === "neo" ? 3.5 : 4;
|
|
1614
1672
|
t.labelStyle = n;
|
|
1615
1673
|
let a = t.padding ?? 0, o = t.look === "neo" ? 70 : a, s = t.look === "neo" ? 32 : a;
|
|
1616
1674
|
if (t.width || t.height) {
|
|
1617
1675
|
let e = (t.height ?? 0) / i;
|
|
1618
1676
|
t.width = (t?.width ?? 0) - 2 * e - s, t.height = (t.height ?? 0) - o;
|
|
1619
1677
|
}
|
|
1620
|
-
let { shapeSvg: c, bbox: l } = await
|
|
1678
|
+
let { shapeSvg: c, bbox: l } = await P(e, t, L(t)), u = (t?.height ? t?.height : l.height) + o, d = u / i, f = (t?.width ? t?.width : l.width) + 2 * d + s, p = [
|
|
1621
1679
|
{
|
|
1622
1680
|
x: d,
|
|
1623
1681
|
y: 0
|
|
@@ -1644,18 +1702,18 @@ async function tt(e, t) {
|
|
|
1644
1702
|
}
|
|
1645
1703
|
], m, { cssStyles: h } = t;
|
|
1646
1704
|
if (t.look === "handDrawn") {
|
|
1647
|
-
let e =
|
|
1705
|
+
let e = T.svg(c), n = b(t, {}), r = it(0, 0, f, u, d), i = e.path(r, n);
|
|
1648
1706
|
m = c.insert(() => i, ":first-child").attr("transform", `translate(${-f / 2}, ${u / 2})`), h && m.attr("style", h);
|
|
1649
|
-
} else m =
|
|
1650
|
-
return r && m.attr("style", r), t.width = f, t.height = u,
|
|
1707
|
+
} else m = J(c, f, u, p);
|
|
1708
|
+
return r && m.attr("style", r), t.width = f, t.height = u, I(t, m), t.intersect = function(e) {
|
|
1651
1709
|
return K.polygon(t, p, e);
|
|
1652
1710
|
}, c;
|
|
1653
1711
|
}
|
|
1654
|
-
e(
|
|
1655
|
-
async function
|
|
1656
|
-
let { labelStyles: r, nodeStyles: i } =
|
|
1712
|
+
e(at, "hexagon");
|
|
1713
|
+
async function ot(e, n) {
|
|
1714
|
+
let { labelStyles: r, nodeStyles: i } = x(n);
|
|
1657
1715
|
n.label = "", n.labelStyle = r;
|
|
1658
|
-
let { shapeSvg: a } = await
|
|
1716
|
+
let { shapeSvg: a } = await P(e, n, L(n)), o = Math.max(30, n?.width ?? 0), s = Math.max(30, n?.height ?? 0), { cssStyles: c } = n, l = T.svg(a), u = b(n, {});
|
|
1659
1717
|
n.look !== "handDrawn" && (u.roughness = 0, u.fillStyle = "solid");
|
|
1660
1718
|
let d = [
|
|
1661
1719
|
{
|
|
@@ -1674,38 +1732,38 @@ async function nt(e, n) {
|
|
|
1674
1732
|
x: o,
|
|
1675
1733
|
y: s
|
|
1676
1734
|
}
|
|
1677
|
-
], f =
|
|
1678
|
-
return m.attr("class", "basic label-container outer-path"), c && n.look !== "handDrawn" && m.selectChildren("path").attr("style", c), i && n.look !== "handDrawn" && m.selectChildren("path").attr("style", i), m.attr("transform", `translate(${-o / 2}, ${-s / 2})`),
|
|
1735
|
+
], f = R(d), p = l.path(f, u), m = a.insert(() => p, ":first-child");
|
|
1736
|
+
return m.attr("class", "basic label-container outer-path"), c && n.look !== "handDrawn" && m.selectChildren("path").attr("style", c), i && n.look !== "handDrawn" && m.selectChildren("path").attr("style", i), m.attr("transform", `translate(${-o / 2}, ${-s / 2})`), I(n, m), n.intersect = function(e) {
|
|
1679
1737
|
return t.info("Pill intersect", n, { points: d }), K.polygon(n, d, e);
|
|
1680
1738
|
}, a;
|
|
1681
1739
|
}
|
|
1682
|
-
e(
|
|
1683
|
-
async function
|
|
1684
|
-
let { labelStyles: a } =
|
|
1740
|
+
e(ot, "hourglass");
|
|
1741
|
+
async function st(e, n, { config: { themeVariables: r, flowchart: i } }) {
|
|
1742
|
+
let { labelStyles: a } = x(n);
|
|
1685
1743
|
n.labelStyle = a;
|
|
1686
1744
|
let o = n.assetHeight ?? 48, s = n.assetWidth ?? 48, c = Math.max(o, s), l = i?.wrappingWidth;
|
|
1687
1745
|
n.width = Math.max(c, l ?? 0);
|
|
1688
|
-
let { shapeSvg: u, bbox: d, label: f } = await
|
|
1746
|
+
let { shapeSvg: u, bbox: d, label: f } = await P(e, n, "icon-shape default"), p = n.pos === "t", m = c, h = c, { nodeBorder: g } = r, { stylesMap: v } = C(n), y = -h / 2, S = -m / 2, w = n.label ? 8 : 0, E = T.svg(u), D = b(n, {
|
|
1689
1747
|
stroke: "none",
|
|
1690
1748
|
fill: "none"
|
|
1691
1749
|
});
|
|
1692
1750
|
n.look !== "handDrawn" && (D.roughness = 0, D.fillStyle = "solid");
|
|
1693
|
-
let O = E.rectangle(
|
|
1751
|
+
let O = E.rectangle(y, S, h, m, D), k = Math.max(h, d.width), A = m + d.height + w, j = E.rectangle(-k / 2, -A / 2, k, A, {
|
|
1694
1752
|
...D,
|
|
1695
1753
|
fill: "transparent",
|
|
1696
1754
|
stroke: "none"
|
|
1697
|
-
}),
|
|
1755
|
+
}), M = u.insert(() => O, ":first-child"), N = u.insert(() => j);
|
|
1698
1756
|
if (n.icon) {
|
|
1699
1757
|
let e = u.append("g");
|
|
1700
|
-
e.html(`<g>${await
|
|
1758
|
+
e.html(`<g>${await _(n.icon, {
|
|
1701
1759
|
height: c,
|
|
1702
1760
|
width: c,
|
|
1703
1761
|
fallbackPrefix: ""
|
|
1704
1762
|
})}</g>`);
|
|
1705
1763
|
let t = e.node().getBBox(), r = t.width, i = t.height, a = t.x, o = t.y;
|
|
1706
|
-
e.attr("transform", `translate(${-r / 2 - a},${p ? d.height / 2 +
|
|
1764
|
+
e.attr("transform", `translate(${-r / 2 - a},${p ? d.height / 2 + w / 2 - i / 2 - o : -d.height / 2 - w / 2 - i / 2 - o})`), e.attr("style", `color: ${v.get("stroke") ?? g};`);
|
|
1707
1765
|
}
|
|
1708
|
-
return f.attr("transform", `translate(${-d.width / 2 - (d.x - (d.left ?? 0))},${p ? -A / 2 : A / 2 - d.height})`),
|
|
1766
|
+
return f.attr("transform", `translate(${-d.width / 2 - (d.x - (d.left ?? 0))},${p ? -A / 2 : A / 2 - d.height})`), M.attr("transform", `translate(0,${p ? d.height / 2 + w / 2 : -d.height / 2 - w / 2})`), I(n, N), n.intersect = function(e) {
|
|
1709
1767
|
if (t.info("iconSquare intersect", n, e), !n.label) return K.rect(n, e);
|
|
1710
1768
|
let r = n.x ?? 0, i = n.y ?? 0, a = n.height ?? 0, o = [];
|
|
1711
1769
|
return o = p ? [
|
|
@@ -1719,11 +1777,11 @@ async function rt(e, n, { config: { themeVariables: r, flowchart: i } }) {
|
|
|
1719
1777
|
},
|
|
1720
1778
|
{
|
|
1721
1779
|
x: r + d.width / 2,
|
|
1722
|
-
y: i - a / 2 + d.height +
|
|
1780
|
+
y: i - a / 2 + d.height + w
|
|
1723
1781
|
},
|
|
1724
1782
|
{
|
|
1725
1783
|
x: r + h / 2,
|
|
1726
|
-
y: i - a / 2 + d.height +
|
|
1784
|
+
y: i - a / 2 + d.height + w
|
|
1727
1785
|
},
|
|
1728
1786
|
{
|
|
1729
1787
|
x: r + h / 2,
|
|
@@ -1735,11 +1793,11 @@ async function rt(e, n, { config: { themeVariables: r, flowchart: i } }) {
|
|
|
1735
1793
|
},
|
|
1736
1794
|
{
|
|
1737
1795
|
x: r - h / 2,
|
|
1738
|
-
y: i - a / 2 + d.height +
|
|
1796
|
+
y: i - a / 2 + d.height + w
|
|
1739
1797
|
},
|
|
1740
1798
|
{
|
|
1741
1799
|
x: r - d.width / 2,
|
|
1742
|
-
y: i - a / 2 + d.height +
|
|
1800
|
+
y: i - a / 2 + d.height + w
|
|
1743
1801
|
}
|
|
1744
1802
|
] : [
|
|
1745
1803
|
{
|
|
@@ -1777,53 +1835,53 @@ async function rt(e, n, { config: { themeVariables: r, flowchart: i } }) {
|
|
|
1777
1835
|
], K.polygon(n, o, e);
|
|
1778
1836
|
}, u;
|
|
1779
1837
|
}
|
|
1780
|
-
e(
|
|
1781
|
-
async function
|
|
1782
|
-
let { labelStyles: a } =
|
|
1838
|
+
e(st, "icon");
|
|
1839
|
+
async function ct(e, n, { config: { themeVariables: r, flowchart: i } }) {
|
|
1840
|
+
let { labelStyles: a } = x(n);
|
|
1783
1841
|
n.labelStyle = a;
|
|
1784
1842
|
let o = n.assetHeight ?? 48, s = n.assetWidth ?? 48, c = Math.max(o, s), l = i?.wrappingWidth;
|
|
1785
1843
|
n.width = Math.max(c, l ?? 0);
|
|
1786
|
-
let { shapeSvg: u, bbox: d, label: f } = await
|
|
1787
|
-
n.look !== "handDrawn" && (
|
|
1788
|
-
let
|
|
1789
|
-
n.icon &&
|
|
1844
|
+
let { shapeSvg: u, bbox: d, label: f } = await P(e, n, "icon-shape default"), p = n.label ? 8 : 0, m = n.pos === "t", { nodeBorder: h, mainBkg: g } = r, { stylesMap: v } = C(n), y = T.svg(u), S = b(n, {});
|
|
1845
|
+
n.look !== "handDrawn" && (S.roughness = 0, S.fillStyle = "solid"), S.stroke = v.get("fill") ?? g;
|
|
1846
|
+
let w = u.append("g");
|
|
1847
|
+
n.icon && w.html(`<g>${await _(n.icon, {
|
|
1790
1848
|
height: c,
|
|
1791
1849
|
width: c,
|
|
1792
1850
|
fallbackPrefix: ""
|
|
1793
1851
|
})}</g>`);
|
|
1794
|
-
let E =
|
|
1795
|
-
...
|
|
1852
|
+
let E = w.node().getBBox(), D = E.width, O = E.height, k = E.x, A = E.y, j = Math.max(D, O) * Math.SQRT2 + 40, M = y.circle(0, 0, j, S), N = Math.max(j, d.width), F = j + d.height + p, L = y.rectangle(-N / 2, -F / 2, N, F, {
|
|
1853
|
+
...S,
|
|
1796
1854
|
fill: "transparent",
|
|
1797
1855
|
stroke: "none"
|
|
1798
|
-
}),
|
|
1799
|
-
return
|
|
1856
|
+
}), R = u.insert(() => M, ":first-child"), z = u.insert(() => L);
|
|
1857
|
+
return w.attr("transform", `translate(${-D / 2 - k},${m ? d.height / 2 + p / 2 - O / 2 - A : -d.height / 2 - p / 2 - O / 2 - A})`), w.attr("style", `color: ${v.get("stroke") ?? h};`), f.attr("transform", `translate(${-d.width / 2 - (d.x - (d.left ?? 0))},${m ? -F / 2 : F / 2 - d.height})`), R.attr("transform", `translate(0,${m ? d.height / 2 + p / 2 : -d.height / 2 - p / 2})`), I(n, z), n.intersect = function(e) {
|
|
1800
1858
|
return t.info("iconSquare intersect", n, e), K.rect(n, e);
|
|
1801
1859
|
}, u;
|
|
1802
1860
|
}
|
|
1803
|
-
e(
|
|
1804
|
-
async function
|
|
1805
|
-
let { labelStyles: a } =
|
|
1861
|
+
e(ct, "iconCircle");
|
|
1862
|
+
async function lt(e, n, { config: { themeVariables: r, flowchart: i } }) {
|
|
1863
|
+
let { labelStyles: a } = x(n);
|
|
1806
1864
|
n.labelStyle = a;
|
|
1807
1865
|
let o = n.assetHeight ?? 48, s = n.assetWidth ?? 48, c = Math.max(o, s), l = i?.wrappingWidth;
|
|
1808
1866
|
n.width = Math.max(c, l ?? 0);
|
|
1809
|
-
let { shapeSvg: u, bbox: d, halfPadding: f, label: p } = await
|
|
1810
|
-
n.look !== "handDrawn" && (k.roughness = 0, k.fillStyle = "solid"), k.stroke =
|
|
1811
|
-
let A = O.path(
|
|
1867
|
+
let { shapeSvg: u, bbox: d, halfPadding: f, label: p } = await P(e, n, "icon-shape default"), m = n.pos === "t", h = c + f * 2, g = c + f * 2, { nodeBorder: v, mainBkg: y } = r, { stylesMap: S } = C(n), w = -g / 2, E = -h / 2, D = n.label ? 8 : 0, O = T.svg(u), k = b(n, {});
|
|
1868
|
+
n.look !== "handDrawn" && (k.roughness = 0, k.fillStyle = "solid"), k.stroke = S.get("fill") ?? y;
|
|
1869
|
+
let A = O.path(q(w, E, g, h, 5), k), j = Math.max(g, d.width), M = h + d.height + D, N = O.rectangle(-j / 2, -M / 2, j, M, {
|
|
1812
1870
|
...k,
|
|
1813
1871
|
fill: "transparent",
|
|
1814
1872
|
stroke: "none"
|
|
1815
|
-
}),
|
|
1873
|
+
}), F = u.insert(() => A, ":first-child").attr("class", "icon-shape2"), L = u.insert(() => N);
|
|
1816
1874
|
if (n.icon) {
|
|
1817
1875
|
let e = u.append("g");
|
|
1818
|
-
e.html(`<g>${await
|
|
1876
|
+
e.html(`<g>${await _(n.icon, {
|
|
1819
1877
|
height: c,
|
|
1820
1878
|
width: c,
|
|
1821
1879
|
fallbackPrefix: ""
|
|
1822
1880
|
})}</g>`);
|
|
1823
1881
|
let t = e.node().getBBox(), r = t.width, i = t.height, a = t.x, o = t.y;
|
|
1824
|
-
e.attr("transform", `translate(${-r / 2 - a},${m ? d.height / 2 + D / 2 - i / 2 - o : -d.height / 2 - D / 2 - i / 2 - o})`), e.attr("style", `color: ${
|
|
1882
|
+
e.attr("transform", `translate(${-r / 2 - a},${m ? d.height / 2 + D / 2 - i / 2 - o : -d.height / 2 - D / 2 - i / 2 - o})`), e.attr("style", `color: ${S.get("stroke") ?? v};`);
|
|
1825
1883
|
}
|
|
1826
|
-
return p.attr("transform", `translate(${-d.width / 2 - (d.x - (d.left ?? 0))},${m ? -
|
|
1884
|
+
return p.attr("transform", `translate(${-d.width / 2 - (d.x - (d.left ?? 0))},${m ? -M / 2 : M / 2 - d.height})`), F.attr("transform", `translate(0,${m ? d.height / 2 + D / 2 : -d.height / 2 - D / 2})`), I(n, L), n.intersect = function(e) {
|
|
1827
1885
|
if (t.info("iconSquare intersect", n, e), !n.label) return K.rect(n, e);
|
|
1828
1886
|
let r = n.x ?? 0, i = n.y ?? 0, a = n.height ?? 0, o = [];
|
|
1829
1887
|
return o = m ? [
|
|
@@ -1840,19 +1898,19 @@ async function at(e, n, { config: { themeVariables: r, flowchart: i } }) {
|
|
|
1840
1898
|
y: i - a / 2 + d.height + D
|
|
1841
1899
|
},
|
|
1842
1900
|
{
|
|
1843
|
-
x: r +
|
|
1901
|
+
x: r + g / 2,
|
|
1844
1902
|
y: i - a / 2 + d.height + D
|
|
1845
1903
|
},
|
|
1846
1904
|
{
|
|
1847
|
-
x: r +
|
|
1905
|
+
x: r + g / 2,
|
|
1848
1906
|
y: i + a / 2
|
|
1849
1907
|
},
|
|
1850
1908
|
{
|
|
1851
|
-
x: r -
|
|
1909
|
+
x: r - g / 2,
|
|
1852
1910
|
y: i + a / 2
|
|
1853
1911
|
},
|
|
1854
1912
|
{
|
|
1855
|
-
x: r -
|
|
1913
|
+
x: r - g / 2,
|
|
1856
1914
|
y: i - a / 2 + d.height + D
|
|
1857
1915
|
},
|
|
1858
1916
|
{
|
|
@@ -1861,15 +1919,15 @@ async function at(e, n, { config: { themeVariables: r, flowchart: i } }) {
|
|
|
1861
1919
|
}
|
|
1862
1920
|
] : [
|
|
1863
1921
|
{
|
|
1864
|
-
x: r -
|
|
1922
|
+
x: r - g / 2,
|
|
1865
1923
|
y: i - a / 2
|
|
1866
1924
|
},
|
|
1867
1925
|
{
|
|
1868
|
-
x: r +
|
|
1926
|
+
x: r + g / 2,
|
|
1869
1927
|
y: i - a / 2
|
|
1870
1928
|
},
|
|
1871
1929
|
{
|
|
1872
|
-
x: r +
|
|
1930
|
+
x: r + g / 2,
|
|
1873
1931
|
y: i - a / 2 + h
|
|
1874
1932
|
},
|
|
1875
1933
|
{
|
|
@@ -1889,36 +1947,36 @@ async function at(e, n, { config: { themeVariables: r, flowchart: i } }) {
|
|
|
1889
1947
|
y: i - a / 2 + h
|
|
1890
1948
|
},
|
|
1891
1949
|
{
|
|
1892
|
-
x: r -
|
|
1950
|
+
x: r - g / 2,
|
|
1893
1951
|
y: i - a / 2 + h
|
|
1894
1952
|
}
|
|
1895
1953
|
], K.polygon(n, o, e);
|
|
1896
1954
|
}, u;
|
|
1897
1955
|
}
|
|
1898
|
-
e(
|
|
1899
|
-
async function
|
|
1900
|
-
let { labelStyles: a } =
|
|
1956
|
+
e(lt, "iconRounded");
|
|
1957
|
+
async function ut(e, n, { config: { themeVariables: r, flowchart: i } }) {
|
|
1958
|
+
let { labelStyles: a } = x(n);
|
|
1901
1959
|
n.labelStyle = a;
|
|
1902
1960
|
let o = n.assetHeight ?? 48, s = n.assetWidth ?? 48, c = Math.max(o, s), l = i?.wrappingWidth;
|
|
1903
1961
|
n.width = Math.max(c, l ?? 0);
|
|
1904
|
-
let { shapeSvg: u, bbox: d, halfPadding: f, label: p } = await
|
|
1905
|
-
n.look !== "handDrawn" && (k.roughness = 0, k.fillStyle = "solid"), k.stroke =
|
|
1906
|
-
let A = O.path(
|
|
1962
|
+
let { shapeSvg: u, bbox: d, halfPadding: f, label: p } = await P(e, n, "icon-shape default"), m = n.pos === "t", h = c + f * 2, g = c + f * 2, { nodeBorder: v, mainBkg: y } = r, { stylesMap: S } = C(n), w = -g / 2, E = -h / 2, D = n.label ? 8 : 0, O = T.svg(u), k = b(n, {});
|
|
1963
|
+
n.look !== "handDrawn" && (k.roughness = 0, k.fillStyle = "solid"), k.stroke = S.get("fill") ?? y;
|
|
1964
|
+
let A = O.path(q(w, E, g, h, .1), k), j = Math.max(g, d.width), M = h + d.height + D, N = O.rectangle(-j / 2, -M / 2, j, M, {
|
|
1907
1965
|
...k,
|
|
1908
1966
|
fill: "transparent",
|
|
1909
1967
|
stroke: "none"
|
|
1910
|
-
}),
|
|
1968
|
+
}), F = u.insert(() => A, ":first-child"), L = u.insert(() => N);
|
|
1911
1969
|
if (n.icon) {
|
|
1912
1970
|
let e = u.append("g");
|
|
1913
|
-
e.html(`<g>${await
|
|
1971
|
+
e.html(`<g>${await _(n.icon, {
|
|
1914
1972
|
height: c,
|
|
1915
1973
|
width: c,
|
|
1916
1974
|
fallbackPrefix: ""
|
|
1917
1975
|
})}</g>`);
|
|
1918
1976
|
let t = e.node().getBBox(), r = t.width, i = t.height, a = t.x, o = t.y;
|
|
1919
|
-
e.attr("transform", `translate(${-r / 2 - a},${m ? d.height / 2 + D / 2 - i / 2 - o : -d.height / 2 - D / 2 - i / 2 - o})`), e.attr("style", `color: ${
|
|
1977
|
+
e.attr("transform", `translate(${-r / 2 - a},${m ? d.height / 2 + D / 2 - i / 2 - o : -d.height / 2 - D / 2 - i / 2 - o})`), e.attr("style", `color: ${S.get("stroke") ?? v};`);
|
|
1920
1978
|
}
|
|
1921
|
-
return p.attr("transform", `translate(${-d.width / 2 - (d.x - (d.left ?? 0))},${m ? -
|
|
1979
|
+
return p.attr("transform", `translate(${-d.width / 2 - (d.x - (d.left ?? 0))},${m ? -M / 2 : M / 2 - d.height})`), F.attr("transform", `translate(0,${m ? d.height / 2 + D / 2 : -d.height / 2 - D / 2})`), I(n, L), n.intersect = function(e) {
|
|
1922
1980
|
if (t.info("iconSquare intersect", n, e), !n.label) return K.rect(n, e);
|
|
1923
1981
|
let r = n.x ?? 0, i = n.y ?? 0, a = n.height ?? 0, o = [];
|
|
1924
1982
|
return o = m ? [
|
|
@@ -1935,19 +1993,19 @@ async function ot(e, n, { config: { themeVariables: r, flowchart: i } }) {
|
|
|
1935
1993
|
y: i - a / 2 + d.height + D
|
|
1936
1994
|
},
|
|
1937
1995
|
{
|
|
1938
|
-
x: r +
|
|
1996
|
+
x: r + g / 2,
|
|
1939
1997
|
y: i - a / 2 + d.height + D
|
|
1940
1998
|
},
|
|
1941
1999
|
{
|
|
1942
|
-
x: r +
|
|
2000
|
+
x: r + g / 2,
|
|
1943
2001
|
y: i + a / 2
|
|
1944
2002
|
},
|
|
1945
2003
|
{
|
|
1946
|
-
x: r -
|
|
2004
|
+
x: r - g / 2,
|
|
1947
2005
|
y: i + a / 2
|
|
1948
2006
|
},
|
|
1949
2007
|
{
|
|
1950
|
-
x: r -
|
|
2008
|
+
x: r - g / 2,
|
|
1951
2009
|
y: i - a / 2 + d.height + D
|
|
1952
2010
|
},
|
|
1953
2011
|
{
|
|
@@ -1956,15 +2014,15 @@ async function ot(e, n, { config: { themeVariables: r, flowchart: i } }) {
|
|
|
1956
2014
|
}
|
|
1957
2015
|
] : [
|
|
1958
2016
|
{
|
|
1959
|
-
x: r -
|
|
2017
|
+
x: r - g / 2,
|
|
1960
2018
|
y: i - a / 2
|
|
1961
2019
|
},
|
|
1962
2020
|
{
|
|
1963
|
-
x: r +
|
|
2021
|
+
x: r + g / 2,
|
|
1964
2022
|
y: i - a / 2
|
|
1965
2023
|
},
|
|
1966
2024
|
{
|
|
1967
|
-
x: r +
|
|
2025
|
+
x: r + g / 2,
|
|
1968
2026
|
y: i - a / 2 + h
|
|
1969
2027
|
},
|
|
1970
2028
|
{
|
|
@@ -1984,36 +2042,36 @@ async function ot(e, n, { config: { themeVariables: r, flowchart: i } }) {
|
|
|
1984
2042
|
y: i - a / 2 + h
|
|
1985
2043
|
},
|
|
1986
2044
|
{
|
|
1987
|
-
x: r -
|
|
2045
|
+
x: r - g / 2,
|
|
1988
2046
|
y: i - a / 2 + h
|
|
1989
2047
|
}
|
|
1990
2048
|
], K.polygon(n, o, e);
|
|
1991
2049
|
}, u;
|
|
1992
2050
|
}
|
|
1993
|
-
e(
|
|
1994
|
-
async function
|
|
2051
|
+
e(ut, "iconSquare");
|
|
2052
|
+
async function dt(e, n, { config: { flowchart: r } }) {
|
|
1995
2053
|
let i = new Image();
|
|
1996
2054
|
i.src = n?.img ?? "", await i.decode();
|
|
1997
2055
|
let a = Number(i.naturalWidth.toString().replace("px", "")), o = Number(i.naturalHeight.toString().replace("px", ""));
|
|
1998
2056
|
n.imageAspectRatio = a / o;
|
|
1999
|
-
let { labelStyles: s } =
|
|
2057
|
+
let { labelStyles: s } = x(n);
|
|
2000
2058
|
n.labelStyle = s;
|
|
2001
2059
|
let c = r?.wrappingWidth;
|
|
2002
2060
|
n.defaultWidth = r?.wrappingWidth;
|
|
2003
2061
|
let l = Math.max(n.label ? c ?? 0 : 0, n?.assetWidth ?? a), u = n.constraint === "on" && n?.assetHeight ? n.assetHeight * n.imageAspectRatio : l, d = n.constraint === "on" ? u / n.imageAspectRatio : n?.assetHeight ?? o;
|
|
2004
2062
|
n.width = Math.max(u, c ?? 0);
|
|
2005
|
-
let { shapeSvg: f, bbox: p, label: m } = await
|
|
2063
|
+
let { shapeSvg: f, bbox: p, label: m } = await P(e, n, "image-shape default"), h = n.pos === "t", g = -u / 2, _ = -d / 2, v = n.label ? 8 : 0, y = T.svg(f), S = b(n, {});
|
|
2006
2064
|
n.look !== "handDrawn" && (S.roughness = 0, S.fillStyle = "solid");
|
|
2007
|
-
let
|
|
2065
|
+
let C = y.rectangle(g, _, u, d, S), w = Math.max(u, p.width), E = d + p.height + v, D = y.rectangle(-w / 2, -E / 2, w, E, {
|
|
2008
2066
|
...S,
|
|
2009
2067
|
fill: "none",
|
|
2010
2068
|
stroke: "none"
|
|
2011
|
-
}), O = f.insert(() =>
|
|
2069
|
+
}), O = f.insert(() => C, ":first-child"), k = f.insert(() => D);
|
|
2012
2070
|
if (n.img) {
|
|
2013
2071
|
let e = f.append("image");
|
|
2014
2072
|
e.attr("href", n.img), e.attr("width", u), e.attr("height", d), e.attr("preserveAspectRatio", "none"), e.attr("transform", `translate(${-u / 2},${h ? E / 2 - d : -E / 2})`);
|
|
2015
2073
|
}
|
|
2016
|
-
return m.attr("transform", `translate(${-p.width / 2 - (p.x - (p.left ?? 0))},${h ? -d / 2 - p.height / 2 - v / 2 : d / 2 - p.height / 2 + v / 2})`), O.attr("transform", `translate(0,${h ? p.height / 2 + v / 2 : -p.height / 2 - v / 2})`),
|
|
2074
|
+
return m.attr("transform", `translate(${-p.width / 2 - (p.x - (p.left ?? 0))},${h ? -d / 2 - p.height / 2 - v / 2 : d / 2 - p.height / 2 + v / 2})`), O.attr("transform", `translate(0,${h ? p.height / 2 + v / 2 : -p.height / 2 - v / 2})`), I(n, k), n.intersect = function(e) {
|
|
2017
2075
|
if (t.info("iconSquare intersect", n, e), !n.label) return K.rect(n, e);
|
|
2018
2076
|
let r = n.x ?? 0, i = n.y ?? 0, a = n.height ?? 0, o = [];
|
|
2019
2077
|
return o = h ? [
|
|
@@ -2085,11 +2143,11 @@ async function st(e, n, { config: { flowchart: r } }) {
|
|
|
2085
2143
|
], K.polygon(n, o, e);
|
|
2086
2144
|
}, f;
|
|
2087
2145
|
}
|
|
2088
|
-
e(
|
|
2089
|
-
async function
|
|
2090
|
-
let { labelStyles: n, nodeStyles: r } =
|
|
2146
|
+
e(dt, "imageSquare");
|
|
2147
|
+
async function ft(e, t) {
|
|
2148
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
2091
2149
|
t.labelStyle = n;
|
|
2092
|
-
let i = t.padding ?? 0, a = i, o = t.look === "neo" ? i * 2 : i, { shapeSvg: s, bbox: c } = await
|
|
2150
|
+
let i = t.padding ?? 0, a = i, o = t.look === "neo" ? i * 2 : i, { shapeSvg: s, bbox: c } = await P(e, t, L(t)), l = Math.max(c.height + a * 2, t.height ?? 0), u = Math.max(c.width + o * 2, (t.width ?? 0) - l), d = [
|
|
2093
2151
|
{
|
|
2094
2152
|
x: 0,
|
|
2095
2153
|
y: 0
|
|
@@ -2108,25 +2166,25 @@ async function ct(e, t) {
|
|
|
2108
2166
|
}
|
|
2109
2167
|
], f, { cssStyles: p } = t;
|
|
2110
2168
|
if (t.look === "handDrawn") {
|
|
2111
|
-
let e =
|
|
2169
|
+
let e = T.svg(s), n = b(t, {}), r = R(d), i = e.path(r, n);
|
|
2112
2170
|
f = s.insert(() => i, ":first-child").attr("transform", `translate(${-u / 2}, ${l / 2})`), p && f.attr("style", p);
|
|
2113
|
-
} else f =
|
|
2114
|
-
return r && f.attr("style", r), t.width = u, t.height = l,
|
|
2171
|
+
} else f = J(s, u, l, d);
|
|
2172
|
+
return r && f.attr("style", r), t.width = u, t.height = l, I(t, f), t.intersect = function(e) {
|
|
2115
2173
|
return K.polygon(t, d, e);
|
|
2116
2174
|
}, s;
|
|
2117
2175
|
}
|
|
2118
|
-
e(
|
|
2119
|
-
async function
|
|
2120
|
-
let { shapeSvg: n, bbox: r, label: i } = await
|
|
2121
|
-
return a.attr("width", .1).attr("height", .1), n.attr("class", "label edgeLabel"), i.attr("transform", `translate(${-(r.width / 2) - (r.x - (r.left ?? 0))}, ${-(r.height / 2) - (r.y - (r.top ?? 0))})`),
|
|
2176
|
+
e(ft, "inv_trapezoid");
|
|
2177
|
+
async function pt(e, t) {
|
|
2178
|
+
let { shapeSvg: n, bbox: r, label: i } = await P(e, t, "label"), a = n.insert("rect", ":first-child");
|
|
2179
|
+
return a.attr("width", .1).attr("height", .1), n.attr("class", "label edgeLabel"), i.attr("transform", `translate(${-(r.width / 2) - (r.x - (r.left ?? 0))}, ${-(r.height / 2) - (r.y - (r.top ?? 0))})`), I(t, a), t.intersect = function(e) {
|
|
2122
2180
|
return K.rect(t, e);
|
|
2123
2181
|
}, n;
|
|
2124
2182
|
}
|
|
2125
|
-
e(
|
|
2126
|
-
async function
|
|
2127
|
-
let { labelStyles: n, nodeStyles: r } =
|
|
2183
|
+
e(pt, "labelRect");
|
|
2184
|
+
async function mt(e, t) {
|
|
2185
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
2128
2186
|
t.labelStyle = n;
|
|
2129
|
-
let i = t.padding ?? 0, a = i, o = t.look === "neo" ? i * 2 : i, { shapeSvg: s, bbox: c } = await
|
|
2187
|
+
let i = t.padding ?? 0, a = i, o = t.look === "neo" ? i * 2 : i, { shapeSvg: s, bbox: c } = await P(e, t, L(t)), l = Math.max(c.height + a, t.height ?? 0), u = Math.max(c.width + o, (t.width ?? 0) - l), d = [
|
|
2130
2188
|
{
|
|
2131
2189
|
x: 0,
|
|
2132
2190
|
y: 0
|
|
@@ -2145,18 +2203,18 @@ async function ut(e, t) {
|
|
|
2145
2203
|
}
|
|
2146
2204
|
], f, { cssStyles: p } = t;
|
|
2147
2205
|
if (t.look === "handDrawn") {
|
|
2148
|
-
let e =
|
|
2206
|
+
let e = T.svg(s), n = b(t, {}), r = R(d), i = e.path(r, n);
|
|
2149
2207
|
f = s.insert(() => i, ":first-child").attr("transform", `translate(${-u / 2}, ${l / 2})`), p && f.attr("style", p);
|
|
2150
|
-
} else f =
|
|
2151
|
-
return r && f.attr("style", r), t.width = u, t.height = l,
|
|
2208
|
+
} else f = J(s, u, l, d);
|
|
2209
|
+
return r && f.attr("style", r), t.width = u, t.height = l, I(t, f), t.intersect = function(e) {
|
|
2152
2210
|
return K.polygon(t, d, e);
|
|
2153
2211
|
}, s;
|
|
2154
2212
|
}
|
|
2155
|
-
e(
|
|
2156
|
-
async function
|
|
2157
|
-
let { labelStyles: n, nodeStyles: r } =
|
|
2213
|
+
e(mt, "lean_left");
|
|
2214
|
+
async function ht(e, t) {
|
|
2215
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
2158
2216
|
t.labelStyle = n;
|
|
2159
|
-
let i = t.padding ?? 0, a = i, o = t.look === "neo" ? i * 2 : i, { shapeSvg: s, bbox: c } = await
|
|
2217
|
+
let i = t.padding ?? 0, a = i, o = t.look === "neo" ? i * 2 : i, { shapeSvg: s, bbox: c } = await P(e, t, L(t)), l = Math.max(c.height + a, t.height ?? 0), u = Math.max(c.width + o, (t.width ?? 0) - l), d = [
|
|
2160
2218
|
{
|
|
2161
2219
|
x: -3 * l / 6,
|
|
2162
2220
|
y: 0
|
|
@@ -2175,18 +2233,18 @@ async function dt(e, t) {
|
|
|
2175
2233
|
}
|
|
2176
2234
|
], f, { cssStyles: p } = t;
|
|
2177
2235
|
if (t.look === "handDrawn") {
|
|
2178
|
-
let e =
|
|
2236
|
+
let e = T.svg(s), n = b(t, {}), r = R(d), i = e.path(r, n);
|
|
2179
2237
|
f = s.insert(() => i, ":first-child").attr("transform", `translate(${-u / 2}, ${l / 2})`), p && f.attr("style", p);
|
|
2180
|
-
} else f =
|
|
2181
|
-
return r && f.attr("style", r), t.width = u, t.height = l,
|
|
2238
|
+
} else f = J(s, u, l, d);
|
|
2239
|
+
return r && f.attr("style", r), t.width = u, t.height = l, I(t, f), t.intersect = function(e) {
|
|
2182
2240
|
return K.polygon(t, d, e);
|
|
2183
2241
|
}, s;
|
|
2184
2242
|
}
|
|
2185
|
-
e(
|
|
2186
|
-
function
|
|
2187
|
-
let { labelStyles: r, nodeStyles: i } =
|
|
2243
|
+
e(ht, "lean_right");
|
|
2244
|
+
function gt(e, n) {
|
|
2245
|
+
let { labelStyles: r, nodeStyles: i } = x(n);
|
|
2188
2246
|
n.label = "", n.labelStyle = r;
|
|
2189
|
-
let a = e.insert("g").attr("class",
|
|
2247
|
+
let a = e.insert("g").attr("class", L(n)).attr("id", n.domId ?? n.id), { cssStyles: o } = n, s = Math.max(35, n?.width ?? 0), c = Math.max(35, n?.height ?? 0), l = [
|
|
2190
2248
|
{
|
|
2191
2249
|
x: s,
|
|
2192
2250
|
y: 0
|
|
@@ -2211,15 +2269,15 @@ function ft(e, n) {
|
|
|
2211
2269
|
x: 14,
|
|
2212
2270
|
y: c - 7 / 2
|
|
2213
2271
|
}
|
|
2214
|
-
], u =
|
|
2272
|
+
], u = T.svg(a), d = b(n, {});
|
|
2215
2273
|
n.look !== "handDrawn" && (d.roughness = 0, d.fillStyle = "solid");
|
|
2216
|
-
let f =
|
|
2217
|
-
return m.attr("class", "outer-path"), o && n.look !== "handDrawn" && m.selectAll("path").attr("style", o), i && n.look !== "handDrawn" && m.selectAll("path").attr("style", i), m.attr("transform", `translate(-${s / 2},${-c})`),
|
|
2274
|
+
let f = R(l), p = u.path(f, d), m = a.insert(() => p, ":first-child");
|
|
2275
|
+
return m.attr("class", "outer-path"), o && n.look !== "handDrawn" && m.selectAll("path").attr("style", o), i && n.look !== "handDrawn" && m.selectAll("path").attr("style", i), m.attr("transform", `translate(-${s / 2},${-c})`), I(n, m), n.intersect = function(e) {
|
|
2218
2276
|
return t.info("lightningBolt intersect", n, e), K.polygon(n, l, e);
|
|
2219
2277
|
}, a;
|
|
2220
2278
|
}
|
|
2221
|
-
e(
|
|
2222
|
-
var
|
|
2279
|
+
e(gt, "lightningBolt");
|
|
2280
|
+
var _t = /* @__PURE__ */ e((e, t, n, r, i, a, o) => [
|
|
2223
2281
|
`M${e},${t + a}`,
|
|
2224
2282
|
`a${i},${a} 0,0,0 ${n},0`,
|
|
2225
2283
|
`a${i},${a} 0,0,0 ${-n},0`,
|
|
@@ -2228,7 +2286,7 @@ var pt = /* @__PURE__ */ e((e, t, n, r, i, a, o) => [
|
|
|
2228
2286
|
`l0,${-r}`,
|
|
2229
2287
|
`M${e},${t + a + o}`,
|
|
2230
2288
|
`a${i},${a} 0,0,0 ${n},0`
|
|
2231
|
-
].join(" "), "createCylinderPathD"),
|
|
2289
|
+
].join(" "), "createCylinderPathD"), vt = /* @__PURE__ */ e((e, t, n, r, i, a, o) => [
|
|
2232
2290
|
`M${e},${t + a}`,
|
|
2233
2291
|
`M${e + n},${t + a}`,
|
|
2234
2292
|
`a${i},${a} 0,0,0 ${-n},0`,
|
|
@@ -2237,26 +2295,26 @@ var pt = /* @__PURE__ */ e((e, t, n, r, i, a, o) => [
|
|
|
2237
2295
|
`l0,${-r}`,
|
|
2238
2296
|
`M${e},${t + a + o}`,
|
|
2239
2297
|
`a${i},${a} 0,0,0 ${n},0`
|
|
2240
|
-
].join(" "), "createOuterCylinderPathD"),
|
|
2241
|
-
async function
|
|
2242
|
-
let { labelStyles: n, nodeStyles: r } =
|
|
2298
|
+
].join(" "), "createOuterCylinderPathD"), yt = /* @__PURE__ */ e((e, t, n, r, i, a) => [`M${e - n / 2},${-r / 2}`, `a${i},${a} 0,0,0 ${n},0`].join(" "), "createInnerCylinderPathD"), bt = 10, xt = 10;
|
|
2299
|
+
async function St(e, t) {
|
|
2300
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
2243
2301
|
t.labelStyle = n;
|
|
2244
2302
|
let i = t.padding ?? 0, a = t.look === "neo" ? 16 : i, o = t.look === "neo" ? 24 : i;
|
|
2245
2303
|
if (t.width || t.height) {
|
|
2246
2304
|
let e = t.width ?? 0;
|
|
2247
|
-
t.width = (t.width ?? 0) - a, t.width <
|
|
2305
|
+
t.width = (t.width ?? 0) - a, t.width < xt && (t.width = xt);
|
|
2248
2306
|
let n = e / 2 / (2.5 + e / 50);
|
|
2249
|
-
t.height = (t.height ?? 0) - o - n * 3, t.height <
|
|
2307
|
+
t.height = (t.height ?? 0) - o - n * 3, t.height < bt && (t.height = bt);
|
|
2250
2308
|
}
|
|
2251
|
-
let { shapeSvg: s, bbox: c, label: l } = await
|
|
2309
|
+
let { shapeSvg: s, bbox: c, label: l } = await P(e, t, L(t)), u = (t?.width ? t?.width : c.width) + a * 2, d = u / 2, f = d / (2.5 + u / 50), m = (t?.height ? t?.height : c.height) + f + o * 2, h = m * .1, g, { cssStyles: _ } = t;
|
|
2252
2310
|
if (t.look === "handDrawn") {
|
|
2253
|
-
let e =
|
|
2311
|
+
let e = T.svg(s), n = vt(0, 0, u, m, d, f, h), r = yt(0, f, u, m, d, f), i = b(t, {}), a = e.path(n, i), o = e.path(r, i);
|
|
2254
2312
|
s.insert(() => o, ":first-child").attr("class", "line"), g = s.insert(() => a, ":first-child"), g.attr("class", "basic label-container"), _ && g.attr("style", _);
|
|
2255
2313
|
} else {
|
|
2256
|
-
let e =
|
|
2257
|
-
g = s.insert("path", ":first-child").attr("d", e).attr("class", "basic label-container outer-path").attr("style",
|
|
2314
|
+
let e = _t(0, 0, u, m, d, f, h);
|
|
2315
|
+
g = s.insert("path", ":first-child").attr("d", e).attr("class", "basic label-container outer-path").attr("style", p(_)).attr("style", r);
|
|
2258
2316
|
}
|
|
2259
|
-
return g.attr("label-offset-y", f), g.attr("transform", `translate(${-u / 2}, ${-(
|
|
2317
|
+
return g.attr("label-offset-y", f), g.attr("transform", `translate(${-u / 2}, ${-(m / 2 + f)})`), I(t, g), l.attr("transform", `translate(${-(c.width / 2) - (c.x - (c.left ?? 0))}, ${-(c.height / 2) + f - (c.y - (c.top ?? 0))})`), t.intersect = function(e) {
|
|
2260
2318
|
let n = K.rect(t, e), r = n.x - (t.x ?? 0);
|
|
2261
2319
|
if (d != 0 && (Math.abs(r) < (t.width ?? 0) / 2 || Math.abs(r) == (t.width ?? 0) / 2 && Math.abs(n.y - (t.y ?? 0)) > (t.height ?? 0) / 2 - f)) {
|
|
2262
2320
|
let i = f * f * (1 - r * r / (d * d));
|
|
@@ -2265,13 +2323,13 @@ async function vt(e, t) {
|
|
|
2265
2323
|
return n;
|
|
2266
2324
|
}, s;
|
|
2267
2325
|
}
|
|
2268
|
-
e(
|
|
2269
|
-
async function
|
|
2270
|
-
let { labelStyles: n, nodeStyles: r } =
|
|
2326
|
+
e(St, "linedCylinder");
|
|
2327
|
+
async function Ct(e, t) {
|
|
2328
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
2271
2329
|
t.labelStyle = n;
|
|
2272
2330
|
let i = t.padding ?? 0, a = t.look === "neo" ? 16 : i, o = t.look === "neo" ? 12 : i;
|
|
2273
2331
|
(t.width || t.height) && (t.width = (t.width ?? 0) * 10 / 11 - a * 2, t.width < 10 && (t.width = 10), t.height = (t?.height ?? 0) - o * 2, t.height < 10 && (t.height = 10));
|
|
2274
|
-
let { shapeSvg: s, bbox: c, label: l } = await
|
|
2332
|
+
let { shapeSvg: s, bbox: c, label: l } = await P(e, t, L(t)), u = (t?.width ? t?.width : c.width) + (a ?? 0) * 2, d = (t?.height ? t?.height : c.height) + (o ?? 0) * 2, f = t.look === "neo" ? d / 4 : d / 8, p = d + f, { cssStyles: m } = t, h = T.svg(s), g = b(t, {});
|
|
2275
2333
|
t.look !== "handDrawn" && (g.roughness = 0, g.fillStyle = "solid");
|
|
2276
2334
|
let _ = [
|
|
2277
2335
|
{
|
|
@@ -2282,7 +2340,7 @@ async function yt(e, t) {
|
|
|
2282
2340
|
x: -u / 2 - u / 2 * .1,
|
|
2283
2341
|
y: p / 2
|
|
2284
2342
|
},
|
|
2285
|
-
...
|
|
2343
|
+
...z(-u / 2 - u / 2 * .1, p / 2, u / 2 + u / 2 * .1, p / 2, f, .8),
|
|
2286
2344
|
{
|
|
2287
2345
|
x: u / 2 + u / 2 * .1,
|
|
2288
2346
|
y: -p / 2
|
|
@@ -2303,18 +2361,242 @@ async function yt(e, t) {
|
|
|
2303
2361
|
x: -u / 2,
|
|
2304
2362
|
y: -p / 2
|
|
2305
2363
|
}
|
|
2306
|
-
], v = h.polygon(_.map((e) => [e.x, e.y]), g),
|
|
2307
|
-
return
|
|
2364
|
+
], v = h.polygon(_.map((e) => [e.x, e.y]), g), y = s.insert(() => v, ":first-child");
|
|
2365
|
+
return y.attr("class", "basic label-container outer-path"), m && t.look !== "handDrawn" && y.selectAll("path").attr("style", m), r && t.look !== "handDrawn" && y.selectAll("path").attr("style", r), y.attr("transform", `translate(0,${-f / 2})`), l.attr("transform", `translate(${-u / 2 + (t.padding ?? 0) + u / 2 * .1 / 2 - (c.x - (c.left ?? 0))},${-d / 2 + (t.padding ?? 0) - f - (c.y - (c.top ?? 0))})`), I(t, y), t.intersect = function(e) {
|
|
2308
2366
|
return K.polygon(t, _, e);
|
|
2309
2367
|
}, s;
|
|
2310
2368
|
}
|
|
2311
|
-
e(
|
|
2312
|
-
|
|
2313
|
-
|
|
2369
|
+
e(Ct, "linedWaveEdgedRect");
|
|
2370
|
+
var wt = 56, Tt = 72, Et = 8, Dt = 2, Ot = 8, kt = {
|
|
2371
|
+
normal: "usecase-actor-shape usecase-actor-normal",
|
|
2372
|
+
hollow: "usecase-actor-hollow",
|
|
2373
|
+
awesome: "usecase-actor-awesome",
|
|
2374
|
+
icon: "usecase-actor-icon"
|
|
2375
|
+
}, At = Math.PI / 3, jt = .6, Mt = /* @__PURE__ */ e((e, t) => {
|
|
2376
|
+
let n = t * jt, r = t * Math.sqrt(1 - jt ** 2), i = Math.cos(At), a = -Math.sin(At), o = n * -a, s = e + n * i, c = r * i, l = r * a;
|
|
2377
|
+
return `M ${o - c} ${s - l} L ${o + c} ${s + l}`;
|
|
2378
|
+
}, "businessMarkerPathForCircle"), Nt = {
|
|
2379
|
+
normal: Mt(-24, 12),
|
|
2380
|
+
hollow: Mt(-23, 9),
|
|
2381
|
+
awesome: Mt(-21, 13),
|
|
2382
|
+
icon: "M 12 -8 L 26 -26"
|
|
2383
|
+
}, Pt = /* @__PURE__ */ e((e, t, n) => {
|
|
2384
|
+
let r = (t.x ?? 0) - (t.left ?? 0), i = (t.y ?? 0) - (t.top ?? 0);
|
|
2385
|
+
e.attr("transform", `translate(${-t.width / 2 - r},${n - t.height / 2 - i})`);
|
|
2386
|
+
}, "positionLabel"), Ft = /* @__PURE__ */ e((e, t, n, r, i = !1) => {
|
|
2387
|
+
if (t.look === "handDrawn") {
|
|
2388
|
+
let a = T.svg(e).path(n, b(t, i ? { fill: "none" } : {}));
|
|
2389
|
+
return e.insert(() => a, ":first-child").attr("class", r);
|
|
2390
|
+
}
|
|
2391
|
+
let a = e.append("path").attr("class", r).attr("d", n);
|
|
2392
|
+
return i && a.attr("fill", "none"), a;
|
|
2393
|
+
}, "appendActorPath"), It = /* @__PURE__ */ e((e, t, n, r, i, a, o = !1) => {
|
|
2394
|
+
if (t.look === "handDrawn") {
|
|
2395
|
+
let s = T.svg(e).circle(n, r, i * 2, b(t, o ? { fill: "none" } : {}));
|
|
2396
|
+
return e.insert(() => s, ":first-child").attr("class", a);
|
|
2397
|
+
}
|
|
2398
|
+
let s = e.append("circle").attr("class", a).attr("cx", n).attr("cy", r).attr("r", i);
|
|
2399
|
+
return o && s.attr("fill", "none"), s;
|
|
2400
|
+
}, "appendActorCircle"), Lt = /* @__PURE__ */ e((e, t, n) => {
|
|
2401
|
+
t.business && e.append("path").attr("class", "usecase-business-marker usecase-actor-business-marker").attr("d", Nt[n]).attr("fill", "none").attr("style", "stroke: inherit !important; stroke-width: inherit !important");
|
|
2402
|
+
}, "appendBusinessActorMarker");
|
|
2403
|
+
async function Rt(e, t, n, r) {
|
|
2404
|
+
let { labelStyles: i, nodeStyles: o } = x(t);
|
|
2405
|
+
t.labelStyle = i;
|
|
2406
|
+
let { shapeSvg: s, bbox: c, label: l } = await P(e, n === "icon" || t.stereotype !== void 0 ? {
|
|
2407
|
+
...t,
|
|
2408
|
+
icon: n === "icon" ? void 0 : t.icon,
|
|
2409
|
+
stereotype: void 0
|
|
2410
|
+
} : t, L(t, `usecase-actor-variant usecase-actor-${n}`)), u = t.accessibleName ?? t.label;
|
|
2411
|
+
u && s.attr("role", "img").attr("aria-label", u), l.attr("class", "label actor-label usecase-actor-label");
|
|
2412
|
+
let { theme: d, themeVariables: f } = a();
|
|
2413
|
+
w(s, t.colorIndex, d, f.borderColorArray);
|
|
2414
|
+
let p, m;
|
|
2415
|
+
if (t.stereotype) {
|
|
2416
|
+
let e = await F(s, `\xAB${t.stereotype}\xBB`, {
|
|
2417
|
+
labelStyle: i,
|
|
2418
|
+
useHtmlLabels: t.useHtmlLabels,
|
|
2419
|
+
padding: 0,
|
|
2420
|
+
centerLabel: !0,
|
|
2421
|
+
width: t.wrappingWidth
|
|
2422
|
+
});
|
|
2423
|
+
p = e.label.attr("class", "label usecase-stereotype"), m = e.bbox;
|
|
2424
|
+
}
|
|
2425
|
+
let h = s.append("g").attr("class", `usecase-actor-glyph ${kt[n]}`).attr("style", o || null);
|
|
2426
|
+
await r(h, t), Lt(h, t, n);
|
|
2427
|
+
let g = t.padding ?? Ot, _ = m?.height ?? 0, v = Tt + Et + c.height + (m ? _ + Dt : 0), y = Math.max(wt, c.width, m?.width ?? 0) + g * 2, b = v + g * 2, S = -v / 2;
|
|
2428
|
+
h.attr("transform", `translate(0,${S + Tt / 2})`);
|
|
2429
|
+
let C = S + Tt + Et;
|
|
2430
|
+
return p && m && (C += _ / 2, Pt(p, m, C), C += _ / 2 + Dt), Pt(l, c, C + c.height / 2), I(t, s.insert("rect", ":first-child").attr("class", "usecase-actor-outline").attr("x", -y / 2).attr("y", -b / 2).attr("width", y).attr("height", b).attr("opacity", 0).attr("aria-hidden", "true")), t.intersect = (e) => K.rect(t, e), s;
|
|
2431
|
+
}
|
|
2432
|
+
e(Rt, "renderUsecaseActor");
|
|
2433
|
+
var zt = [
|
|
2434
|
+
"M 0 -12",
|
|
2435
|
+
"C 6.627 -12 12 -17.373 12 -24",
|
|
2436
|
+
"C 12 -30.627 6.627 -36 0 -36",
|
|
2437
|
+
"C -6.627 -36 -12 -30.627 -12 -24",
|
|
2438
|
+
"C -12 -17.373 -6.627 -12 0 -12 Z",
|
|
2439
|
+
"M 0 -12 V 8",
|
|
2440
|
+
"M -17 -5 H 17",
|
|
2441
|
+
"M 0 8 L -15 28",
|
|
2442
|
+
"M 0 8 L 15 28"
|
|
2443
|
+
].join(" ");
|
|
2444
|
+
async function Bt(e, t) {
|
|
2445
|
+
return Rt(e, t, "normal", (e, t) => {
|
|
2446
|
+
Ft(e, t, zt, "usecase-actor-stick");
|
|
2447
|
+
});
|
|
2448
|
+
}
|
|
2449
|
+
e(Bt, "usecaseActor");
|
|
2450
|
+
var Vt = [
|
|
2451
|
+
"M 0 -34",
|
|
2452
|
+
"C 7.18 -34 13 -28.18 13 -21",
|
|
2453
|
+
"C 13 -13.82 7.18 -8 0 -8",
|
|
2454
|
+
"C -7.18 -8 -13 -13.82 -13 -21",
|
|
2455
|
+
"C -13 -28.18 -7.18 -34 0 -34 Z",
|
|
2456
|
+
"M -24 25",
|
|
2457
|
+
"C -24 7 -14 -3 0 -3",
|
|
2458
|
+
"C 14 -3 24 7 24 25",
|
|
2459
|
+
"C 24 28 21 30 18 30",
|
|
2460
|
+
"H -18",
|
|
2461
|
+
"C -21 30 -24 28 -24 25 Z"
|
|
2462
|
+
].join(" ");
|
|
2463
|
+
async function Ht(e, t) {
|
|
2464
|
+
return Rt(e, t, "awesome", (e, t) => {
|
|
2465
|
+
Ft(e, t, Vt, "usecase-actor-awesome-silhouette");
|
|
2466
|
+
});
|
|
2467
|
+
}
|
|
2468
|
+
e(Ht, "usecaseActorAwesome");
|
|
2469
|
+
var Ut = [
|
|
2470
|
+
"M -22 -10",
|
|
2471
|
+
"H 22",
|
|
2472
|
+
"V 0",
|
|
2473
|
+
"H 6",
|
|
2474
|
+
"L 22 17",
|
|
2475
|
+
"L 13 28",
|
|
2476
|
+
"L 0 13",
|
|
2477
|
+
"L -13 28",
|
|
2478
|
+
"L -22 17",
|
|
2479
|
+
"L -6 0",
|
|
2480
|
+
"H -22",
|
|
2481
|
+
"Z"
|
|
2482
|
+
].join(" ");
|
|
2483
|
+
async function Wt(e, t) {
|
|
2484
|
+
return Rt(e, t, "hollow", (e, t) => {
|
|
2485
|
+
It(e, t, 0, -23, 9, "usecase-actor-hollow-head", !0), Ft(e, t, Ut, "usecase-actor-hollow-body", !0);
|
|
2486
|
+
});
|
|
2487
|
+
}
|
|
2488
|
+
e(Wt, "usecaseActorHollow");
|
|
2489
|
+
var Gt = 52, Kt = 42, qt = -2, Jt = /* @__PURE__ */ e(async (e, t) => {
|
|
2490
|
+
let n = -Gt / 2, r = qt - Gt / 2;
|
|
2491
|
+
if (t.look === "handDrawn") {
|
|
2492
|
+
let i = T.svg(e).rectangle(n, r, Gt, Gt, b(t, {}));
|
|
2493
|
+
e.insert(() => i, ":first-child").attr("class", "usecase-actor-icon-frame");
|
|
2494
|
+
} else e.append("rect").attr("class", "usecase-actor-icon-frame").attr("x", n).attr("y", r).attr("width", Gt).attr("height", Gt).attr("rx", 4).attr("ry", 4);
|
|
2495
|
+
let i = t.icon ?? "", a = await g(i.includes(":") ? i : `fa:${i}`), o = await _(i, {
|
|
2496
|
+
height: Kt,
|
|
2497
|
+
width: Kt,
|
|
2498
|
+
fallbackPrefix: "fa"
|
|
2499
|
+
}), s = e.append("g").attr("class", `usecase-actor-icon-symbol${a ? "" : " usecase-actor-icon-fallback"}`).attr("aria-hidden", "true").html(`<g>${o}</g>`), c = s.node()?.getBBox();
|
|
2500
|
+
c && s.attr("transform", `translate(${-c.width / 2 - c.x},${qt - c.height / 2 - c.y})`);
|
|
2501
|
+
}, "drawIconActor");
|
|
2502
|
+
async function Yt(e, t) {
|
|
2503
|
+
return Rt(e, t, "icon", Jt);
|
|
2504
|
+
}
|
|
2505
|
+
e(Yt, "usecaseActorIcon");
|
|
2506
|
+
var Xt = /* @__PURE__ */ e((e, t, n) => {
|
|
2507
|
+
let r = (t.x ?? 0) - (t.left ?? 0), i = (t.y ?? 0) - (t.top ?? 0);
|
|
2508
|
+
e.attr("transform", `translate(${-t.width / 2 - r},${n - t.height / 2 - i})`);
|
|
2509
|
+
}, "positionLabel");
|
|
2510
|
+
async function Zt(e, t) {
|
|
2511
|
+
let n = t, { labelStyles: r, nodeStyles: i } = x(t);
|
|
2512
|
+
t.labelStyle = r;
|
|
2513
|
+
let { shapeSvg: o, bbox: s, halfPadding: c, label: l } = await P(e, n.stereotype ? {
|
|
2514
|
+
...t,
|
|
2515
|
+
stereotype: void 0
|
|
2516
|
+
} : t, L(t, "usecase-business-shape"));
|
|
2517
|
+
l.attr("class", "label usecase-label");
|
|
2518
|
+
let { theme: u, themeVariables: d } = a();
|
|
2519
|
+
w(o, t.colorIndex, u, d.borderColorArray);
|
|
2520
|
+
let f, p;
|
|
2521
|
+
if (n.stereotype) {
|
|
2522
|
+
let e = await F(o, `\xAB${n.stereotype}\xBB`, {
|
|
2523
|
+
labelStyle: r,
|
|
2524
|
+
useHtmlLabels: t.useHtmlLabels,
|
|
2525
|
+
padding: 0,
|
|
2526
|
+
centerLabel: !0,
|
|
2527
|
+
width: t.wrappingWidth
|
|
2528
|
+
});
|
|
2529
|
+
f = e.label.attr("class", "label usecase-stereotype"), p = e.bbox;
|
|
2530
|
+
}
|
|
2531
|
+
let m = p ? 2 : 0, h = s.height + (p?.height ?? 0) + m, g = Math.max(s.width, p?.width ?? 0), _ = c ?? 10, v = g / 2 + _ * 2, y = h / 2 + _ * 2, S = Math.min(Math.max(_ / 5, 1), _ / 2), C = g / 2 + S, E = v - S, D = C / v, O = E / v, k = y * Math.sqrt(Math.max(0, 1 - D * D)), A = -y * Math.sqrt(Math.max(0, 1 - O * O));
|
|
2532
|
+
f && p && Xt(f, p, -h / 2 + p.height / 2), Xt(l, s, h / 2 - s.height / 2);
|
|
2533
|
+
let j;
|
|
2534
|
+
if (t.look === "handDrawn") {
|
|
2535
|
+
let e = T.svg(o).ellipse(0, 0, v * 2, y * 2, b(t, {}));
|
|
2536
|
+
j = o.insert(() => e, ":first-child").attr("class", "basic label-container usecase-business-ellipse");
|
|
2537
|
+
} else j = o.insert("ellipse", ":first-child").attr("class", "basic label-container usecase-business-ellipse").attr("style", i).attr("rx", v).attr("ry", y).attr("cx", 0).attr("cy", 0);
|
|
2538
|
+
o.append("path").attr("class", "usecase-business-marker").attr("d", `M ${C} ${k} L ${E} ${A}`).attr("fill", "none").attr("style", i || null);
|
|
2539
|
+
let M = n.accessibleName ?? n.label;
|
|
2540
|
+
return M && o.attr("role", "img").attr("aria-label", M), I(t, j), t.calcIntersect = (e, t) => K.ellipse(e, e.width / 2, e.height / 2, t), t.intersect = (e) => K.ellipse(t, v, y, e), o;
|
|
2541
|
+
}
|
|
2542
|
+
e(Zt, "usecaseBusiness");
|
|
2543
|
+
var Qt = 8, $t = 4, en = 1, tn = /* @__PURE__ */ e((e, t, n, r) => {
|
|
2544
|
+
let i = (t.x ?? 0) - (t.left ?? 0), a = (t.y ?? 0) - (t.top ?? 0);
|
|
2545
|
+
e.attr("transform", `translate(${n - t.width / 2 - i},${r - t.height / 2 - a})`);
|
|
2546
|
+
}, "positionLabel"), nn = /* @__PURE__ */ e((e) => {
|
|
2547
|
+
let t = Number.parseFloat(e ?? "");
|
|
2548
|
+
return Number.isFinite(t) && t >= 0 ? t : en;
|
|
2549
|
+
}, "numericStrokeWidth");
|
|
2550
|
+
async function rn(t, n) {
|
|
2551
|
+
let r = n, { labelStyles: i, nodeStyles: a } = x(n), { stylesMap: o } = C(n);
|
|
2552
|
+
n.labelStyle = i;
|
|
2553
|
+
let { shapeSvg: s, bbox: c, label: l } = await P(t, n, L(n, "usecase-json-table"));
|
|
2554
|
+
s.attr("role", "img"), r.accessibleName && s.attr("aria-label", r.accessibleName), l.attr("class", "label usecase-json-title");
|
|
2555
|
+
let u = s.append("g").attr("class", "usecase-json-table-grid"), d = [];
|
|
2556
|
+
for (let e of r.jsonRows ?? []) {
|
|
2557
|
+
let t = await F(u, e.key, {
|
|
2558
|
+
labelStyle: i,
|
|
2559
|
+
useHtmlLabels: n.useHtmlLabels,
|
|
2560
|
+
padding: 0,
|
|
2561
|
+
centerLabel: !0
|
|
2562
|
+
}), r = await F(u, e.value, {
|
|
2563
|
+
labelStyle: i,
|
|
2564
|
+
useHtmlLabels: n.useHtmlLabels,
|
|
2565
|
+
padding: 0,
|
|
2566
|
+
centerLabel: !0
|
|
2567
|
+
});
|
|
2568
|
+
d.push({
|
|
2569
|
+
key: {
|
|
2570
|
+
label: t.label.attr("class", "label usecase-json-key"),
|
|
2571
|
+
bbox: t.bbox
|
|
2572
|
+
},
|
|
2573
|
+
value: {
|
|
2574
|
+
label: r.label.attr("class", "label usecase-json-value"),
|
|
2575
|
+
bbox: r.bbox
|
|
2576
|
+
}
|
|
2577
|
+
});
|
|
2578
|
+
}
|
|
2579
|
+
let f = Math.max(0, ...d.map(({ key: e }) => e.bbox.width)) + Qt * 2, p = Math.max(0, ...d.map(({ value: e }) => e.bbox.width)) + Qt * 2, m = c.width + Qt * 2, h = Math.max(m, f + p), g = p + Math.max(0, h - f - p), _ = c.height + $t * 2, v = d.map(({ key: e, value: t }) => Math.max(e.bbox.height, t.bbox.height) + $t * 2), y = _ + v.reduce((e, t) => e + t, 0), S = nn(o.get("stroke-width")), w = h + S * 2, E = y + S * 2, D = -h / 2, O = -y / 2, k = n.look === "handDrawn" ? T.svg(s) : void 0, A = k ? b(n, {}) : void 0, j = /* @__PURE__ */ e((e, t, n, r, i, o) => {
|
|
2580
|
+
if (k && A) {
|
|
2581
|
+
let a = k.rectangle(n, r, i, o, A);
|
|
2582
|
+
return e.insert(() => a, ":first-child").attr("class", t);
|
|
2583
|
+
}
|
|
2584
|
+
return e.insert("rect", ":first-child").attr("class", t).attr("x", n).attr("y", r).attr("width", i).attr("height", o).attr("style", a);
|
|
2585
|
+
}, "insertCell"), M = j(s, "label-container usecase-json-border", -w / 2, -E / 2, w, E);
|
|
2586
|
+
j(u, "usecase-json-cell usecase-json-title-cell", D, O, h, _), u.node()?.append(l.node()), tn(l, c, 0, O + _ / 2);
|
|
2587
|
+
let N = O + _;
|
|
2588
|
+
return d.forEach(({ key: e, value: t }, n) => {
|
|
2589
|
+
let r = v[n], i = u.append("g").attr("class", "usecase-json-row").attr("data-row-index", n).attr("transform", `translate(0,${N})`);
|
|
2590
|
+
j(i, "usecase-json-cell usecase-json-key-cell", D, 0, f, r), j(i, "usecase-json-cell usecase-json-value-cell", D + f, 0, g, r), i.node()?.append(e.label.node(), t.label.node()), tn(e.label, e.bbox, D + f / 2, r / 2), tn(t.label, t.bbox, D + f + g / 2, r / 2), N += r;
|
|
2591
|
+
}), I(n, M), n.intersect = (e) => K.rect(n, e), s;
|
|
2592
|
+
}
|
|
2593
|
+
e(rn, "usecaseJsonTable");
|
|
2594
|
+
async function an(e, t) {
|
|
2595
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
2314
2596
|
t.labelStyle = n;
|
|
2315
2597
|
let i = t.padding ?? 0, a = t.look === "neo" ? 16 : i, o = t.look === "neo" ? 12 : i, s = t.look === "neo" ? 10 : 5;
|
|
2316
2598
|
(t.width || t.height) && (t.width = Math.max((t?.width ?? 0) - a * 2 - 2 * s, 10), t.height = Math.max((t?.height ?? 0) - o * 2 - 2 * s, 10));
|
|
2317
|
-
let { shapeSvg: c, bbox: l, label: u } = await
|
|
2599
|
+
let { shapeSvg: c, bbox: l, label: u } = await P(e, t, L(t)), d = (t?.width ? t?.width : l.width) + a * 2 + 2 * s, f = (t?.height ? t?.height : l.height) + o * 2 + 2 * s, p = d - 2 * s, m = f - 2 * s, h = -p / 2, g = -m / 2, { cssStyles: _ } = t, v = T.svg(c), y = b(t, {}), S = [
|
|
2318
2600
|
{
|
|
2319
2601
|
x: h - s,
|
|
2320
2602
|
y: g + s
|
|
@@ -2363,7 +2645,7 @@ async function bt(e, t) {
|
|
|
2363
2645
|
x: h,
|
|
2364
2646
|
y: g + s
|
|
2365
2647
|
}
|
|
2366
|
-
],
|
|
2648
|
+
], C = [
|
|
2367
2649
|
{
|
|
2368
2650
|
x: h,
|
|
2369
2651
|
y: g + s
|
|
@@ -2389,21 +2671,21 @@ async function bt(e, t) {
|
|
|
2389
2671
|
y: g
|
|
2390
2672
|
}
|
|
2391
2673
|
];
|
|
2392
|
-
t.look !== "handDrawn" && (
|
|
2393
|
-
let
|
|
2674
|
+
t.look !== "handDrawn" && (y.roughness = 0, y.fillStyle = "solid");
|
|
2675
|
+
let w = R(S), E = v.path(w, y), D = R(C), O = v.path(D, y);
|
|
2394
2676
|
t.look !== "handDrawn" && (E = ee(E), O = ee(O));
|
|
2395
2677
|
let k = c.insert("g", ":first-child");
|
|
2396
|
-
return k.insert(() => E), k.insert(() => O), k.attr("class", "basic label-container outer-path"), _ && t.look !== "handDrawn" && k.selectAll("path").attr("style", _), r && t.look !== "handDrawn" && k.selectAll("path").attr("style", r), u.attr("transform", `translate(${-(l.width / 2) - s - (l.x - (l.left ?? 0))}, ${-(l.height / 2) + s - (l.y - (l.top ?? 0))})`),
|
|
2678
|
+
return k.insert(() => E), k.insert(() => O), k.attr("class", "basic label-container outer-path"), _ && t.look !== "handDrawn" && k.selectAll("path").attr("style", _), r && t.look !== "handDrawn" && k.selectAll("path").attr("style", r), u.attr("transform", `translate(${-(l.width / 2) - s - (l.x - (l.left ?? 0))}, ${-(l.height / 2) + s - (l.y - (l.top ?? 0))})`), I(t, k), t.intersect = function(e) {
|
|
2397
2679
|
return K.polygon(t, S, e);
|
|
2398
2680
|
}, c;
|
|
2399
2681
|
}
|
|
2400
|
-
e(
|
|
2401
|
-
async function
|
|
2402
|
-
let { labelStyles: n, nodeStyles: r } =
|
|
2682
|
+
e(an, "multiRect");
|
|
2683
|
+
async function on(e, t) {
|
|
2684
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
2403
2685
|
t.labelStyle = n;
|
|
2404
|
-
let { shapeSvg: i, bbox: a, label: o } = await
|
|
2686
|
+
let { shapeSvg: i, bbox: a, label: o } = await P(e, t, L(t)), s = t.padding ?? 0, c = t.look === "neo" ? 16 : s, l = t.look === "neo" ? 12 : s, u = !0;
|
|
2405
2687
|
(t.width || t.height) && (u = !1, t.width = (t?.width ?? 0) - c * 2, t.height = (t?.height ?? 0) - l * 3);
|
|
2406
|
-
let d = Math.max(a.width, t?.width ?? 0) + c * 2, f = Math.max(a.height, t?.height ?? 0) + l * 3, p = t.look === "neo" ? f / 4 : f / 8, m = f + (u ? p / 2 : -p / 2), h = -d / 2, g = -m / 2, { cssStyles: _ } = t, v =
|
|
2688
|
+
let d = Math.max(a.width, t?.width ?? 0) + c * 2, f = Math.max(a.height, t?.height ?? 0) + l * 3, p = t.look === "neo" ? f / 4 : f / 8, m = f + (u ? p / 2 : -p / 2), h = -d / 2, g = -m / 2, { cssStyles: _ } = t, v = z(h - 10, g + m + 10, h + d - 10, g + m + 10, p, .8), y = v?.[v.length - 1], S = [
|
|
2407
2689
|
{
|
|
2408
2690
|
x: h - 10,
|
|
2409
2691
|
y: g + 10
|
|
@@ -2415,19 +2697,19 @@ async function xt(e, t) {
|
|
|
2415
2697
|
...v,
|
|
2416
2698
|
{
|
|
2417
2699
|
x: h + d - 10,
|
|
2418
|
-
y:
|
|
2700
|
+
y: y.y - 10
|
|
2419
2701
|
},
|
|
2420
2702
|
{
|
|
2421
2703
|
x: h + d,
|
|
2422
|
-
y:
|
|
2704
|
+
y: y.y - 10
|
|
2423
2705
|
},
|
|
2424
2706
|
{
|
|
2425
2707
|
x: h + d,
|
|
2426
|
-
y:
|
|
2708
|
+
y: y.y - 20
|
|
2427
2709
|
},
|
|
2428
2710
|
{
|
|
2429
2711
|
x: h + d + 10,
|
|
2430
|
-
y:
|
|
2712
|
+
y: y.y - 20
|
|
2431
2713
|
},
|
|
2432
2714
|
{
|
|
2433
2715
|
x: h + d + 10,
|
|
@@ -2449,7 +2731,7 @@ async function xt(e, t) {
|
|
|
2449
2731
|
x: h,
|
|
2450
2732
|
y: g + 10
|
|
2451
2733
|
}
|
|
2452
|
-
],
|
|
2734
|
+
], C = [
|
|
2453
2735
|
{
|
|
2454
2736
|
x: h,
|
|
2455
2737
|
y: g + 10
|
|
@@ -2460,11 +2742,11 @@ async function xt(e, t) {
|
|
|
2460
2742
|
},
|
|
2461
2743
|
{
|
|
2462
2744
|
x: h + d - 10,
|
|
2463
|
-
y:
|
|
2745
|
+
y: y.y - 10
|
|
2464
2746
|
},
|
|
2465
2747
|
{
|
|
2466
2748
|
x: h + d,
|
|
2467
|
-
y:
|
|
2749
|
+
y: y.y - 10
|
|
2468
2750
|
},
|
|
2469
2751
|
{
|
|
2470
2752
|
x: h + d,
|
|
@@ -2474,39 +2756,39 @@ async function xt(e, t) {
|
|
|
2474
2756
|
x: h,
|
|
2475
2757
|
y: g
|
|
2476
2758
|
}
|
|
2477
|
-
],
|
|
2759
|
+
], w = T.svg(i), E = b(t, {});
|
|
2478
2760
|
t.look !== "handDrawn" && (E.roughness = 0, E.fillStyle = "solid");
|
|
2479
|
-
let D =
|
|
2480
|
-
return
|
|
2761
|
+
let D = R(S), O = w.path(D, E), k = R(C), A = w.path(k, E), j = i.insert(() => O, ":first-child");
|
|
2762
|
+
return j.insert(() => A), j.attr("class", "basic label-container outer-path"), _ && t.look !== "handDrawn" && j.selectAll("path").attr("style", _), r && t.look !== "handDrawn" && j.selectAll("path").attr("style", r), j.attr("transform", `translate(0,${-p / 2})`), o.attr("transform", `translate(${-(a.width / 2) - 10 - (a.x - (a.left ?? 0))}, ${-(a.height / 2) + 10 - p - (a.y - (a.top ?? 0))})`), I(t, j), t.intersect = function(e) {
|
|
2481
2763
|
return K.polygon(t, S, e);
|
|
2482
2764
|
}, i;
|
|
2483
2765
|
}
|
|
2484
|
-
e(
|
|
2485
|
-
async function
|
|
2486
|
-
let { labelStyles: r, nodeStyles: i } =
|
|
2487
|
-
t.labelStyle = r, t.useHtmlLabels ||
|
|
2488
|
-
let { shapeSvg: a, bbox:
|
|
2766
|
+
e(on, "multiWaveEdgedRectangle");
|
|
2767
|
+
async function sn(e, t, { config: { themeVariables: n } }) {
|
|
2768
|
+
let { labelStyles: r, nodeStyles: i } = x(t);
|
|
2769
|
+
t.labelStyle = r, t.useHtmlLabels || l(u()) || (t.centerLabel = !0);
|
|
2770
|
+
let { shapeSvg: a, bbox: o, label: s } = await P(e, t, L(t)), c = Math.max(o.width + (t.padding ?? 0) * 2, t?.width ?? 0), d = Math.max(o.height + (t.padding ?? 0) * 2, t?.height ?? 0), f = -c / 2, p = -d / 2, { cssStyles: m } = t, h = T.svg(a), g = b(t, {
|
|
2489
2771
|
fill: n.noteBkgColor,
|
|
2490
2772
|
stroke: n.noteBorderColor
|
|
2491
2773
|
});
|
|
2492
2774
|
t.look !== "handDrawn" && (g.roughness = 0, g.fillStyle = "solid");
|
|
2493
|
-
let _ = h.rectangle(f, p,
|
|
2494
|
-
return v.attr("class", "basic label-container outer-path"),
|
|
2775
|
+
let _ = h.rectangle(f, p, c, d, g), v = a.insert(() => _, ":first-child");
|
|
2776
|
+
return v.attr("class", "basic label-container outer-path"), s.attr("class", "label noteLabel"), m && t.look !== "handDrawn" && v.selectAll("path").attr("style", m), i && t.look !== "handDrawn" && v.selectAll("path").attr("style", i), s.attr("transform", `translate(${-o.width / 2 - (o.x - (o.left ?? 0))}, ${-(o.height / 2) - (o.y - (o.top ?? 0))})`), I(t, v), t.intersect = function(e) {
|
|
2495
2777
|
return K.rect(t, e);
|
|
2496
2778
|
}, a;
|
|
2497
2779
|
}
|
|
2498
|
-
e(
|
|
2499
|
-
var
|
|
2780
|
+
e(sn, "note");
|
|
2781
|
+
var cn = /* @__PURE__ */ e((e, t, n) => [
|
|
2500
2782
|
`M${e + n / 2},${t}`,
|
|
2501
2783
|
`L${e + n},${t - n / 2}`,
|
|
2502
2784
|
`L${e + n / 2},${t - n}`,
|
|
2503
2785
|
`L${e},${t - n / 2}`,
|
|
2504
2786
|
"Z"
|
|
2505
2787
|
].join(" "), "createDecisionBoxPathD");
|
|
2506
|
-
async function
|
|
2507
|
-
let { labelStyles: n, nodeStyles: r } =
|
|
2788
|
+
async function ln(e, t) {
|
|
2789
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
2508
2790
|
t.labelStyle = n;
|
|
2509
|
-
let { shapeSvg: i, bbox: a } = await
|
|
2791
|
+
let { shapeSvg: i, bbox: a } = await P(e, t, L(t)), o = a.width + (t.padding ?? 0) + (a.height + (t.padding ?? 0)), s = .5, c = [
|
|
2510
2792
|
{
|
|
2511
2793
|
x: o / 2,
|
|
2512
2794
|
y: 0
|
|
@@ -2525,10 +2807,10 @@ async function wt(e, t) {
|
|
|
2525
2807
|
}
|
|
2526
2808
|
], l, { cssStyles: u } = t;
|
|
2527
2809
|
if (t.look === "handDrawn") {
|
|
2528
|
-
let e =
|
|
2810
|
+
let e = T.svg(i), n = b(t, {}), r = cn(0, 0, o), a = e.path(r, n);
|
|
2529
2811
|
l = i.insert(() => a, ":first-child").attr("transform", `translate(${-o / 2 + s}, ${o / 2})`), u && l.attr("style", u);
|
|
2530
|
-
} else l =
|
|
2531
|
-
return r && l.attr("style", r),
|
|
2812
|
+
} else l = J(i, o, o, c), l.attr("transform", `translate(${-o / 2 + s}, ${o / 2})`);
|
|
2813
|
+
return r && l.attr("style", r), I(t, l), t.calcIntersect = function(e, t) {
|
|
2532
2814
|
let n = e.width, r = [
|
|
2533
2815
|
{
|
|
2534
2816
|
x: n / 2,
|
|
@@ -2546,20 +2828,17 @@ async function wt(e, t) {
|
|
|
2546
2828
|
x: 0,
|
|
2547
2829
|
y: -n / 2
|
|
2548
2830
|
}
|
|
2549
|
-
]
|
|
2550
|
-
return
|
|
2551
|
-
x: i.x - .5,
|
|
2552
|
-
y: i.y - .5
|
|
2553
|
-
};
|
|
2831
|
+
];
|
|
2832
|
+
return K.polygon(e, r, t);
|
|
2554
2833
|
}, t.intersect = function(e) {
|
|
2555
2834
|
return this.calcIntersect(t, e);
|
|
2556
2835
|
}, i;
|
|
2557
2836
|
}
|
|
2558
|
-
e(
|
|
2559
|
-
async function
|
|
2560
|
-
let { labelStyles: n, nodeStyles: r } =
|
|
2837
|
+
e(ln, "question");
|
|
2838
|
+
async function un(e, t) {
|
|
2839
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
2561
2840
|
t.labelStyle = n;
|
|
2562
|
-
let i = t.padding ?? 0, a = t.look === "neo" ? 21 : i ?? 0, o = t.look === "neo" ? 12 : i ?? 0, { shapeSvg: s, bbox: c, label: l } = await
|
|
2841
|
+
let i = t.padding ?? 0, a = t.look === "neo" ? 21 : i ?? 0, o = t.look === "neo" ? 12 : i ?? 0, { shapeSvg: s, bbox: c, label: l } = await P(e, t, L(t)), u = c.width + (t.look === "neo" ? a * 2 : a), d = Math.max(c.height + (t.look === "neo" ? o * 2 : o), t.height ?? 0), f = d / 4, p = -Math.max(u, (t.width ?? 0) - f) / 2, m = -d / 2, h = m / 2, g = [
|
|
2563
2842
|
{
|
|
2564
2843
|
x: p + h,
|
|
2565
2844
|
y: m
|
|
@@ -2580,45 +2859,45 @@ async function Tt(e, t) {
|
|
|
2580
2859
|
x: -p,
|
|
2581
2860
|
y: m
|
|
2582
2861
|
}
|
|
2583
|
-
], { cssStyles: _ } = t, v =
|
|
2584
|
-
t.look !== "handDrawn" && (
|
|
2585
|
-
let S =
|
|
2586
|
-
return
|
|
2862
|
+
], { cssStyles: _ } = t, v = T.svg(s), y = b(t, {});
|
|
2863
|
+
t.look !== "handDrawn" && (y.roughness = 0, y.fillStyle = "solid");
|
|
2864
|
+
let S = R(g), C = v.path(S, y), w = s.insert(() => C, ":first-child");
|
|
2865
|
+
return w.attr("class", "basic label-container outer-path"), _ && t.look !== "handDrawn" && w.selectAll("path").attr("style", _), r && t.look !== "handDrawn" && w.selectAll("path").attr("style", r), w.attr("transform", `translate(${-h / 2},0)`), l.attr("transform", `translate(${-h / 2 - c.width / 2 - (c.x - (c.left ?? 0))}, ${-(c.height / 2) - (c.y - (c.top ?? 0))})`), I(t, w), t.intersect = function(e) {
|
|
2587
2866
|
return K.polygon(t, g, e);
|
|
2588
2867
|
}, s;
|
|
2589
2868
|
}
|
|
2590
|
-
e(
|
|
2591
|
-
async function
|
|
2592
|
-
let { labelStyles: i, nodeStyles:
|
|
2869
|
+
e(un, "rect_left_inv_arrow");
|
|
2870
|
+
async function dn(e, r) {
|
|
2871
|
+
let { labelStyles: i, nodeStyles: o } = x(r);
|
|
2593
2872
|
r.labelStyle = i;
|
|
2594
2873
|
let s;
|
|
2595
2874
|
s = r.cssClasses ? "node " + r.cssClasses : "node default";
|
|
2596
|
-
let c = e.insert("g").attr("class", s).attr("id", r.domId || r.id),
|
|
2875
|
+
let c = e.insert("g").attr("class", s).attr("id", r.domId || r.id), u = c.insert("g"), d = c.insert("g").attr("class", "label").attr("style", o), f = r.description, p = r.label, m = await se(d, p, r.labelStyle, !0, !0), h = {
|
|
2597
2876
|
width: 0,
|
|
2598
2877
|
height: 0
|
|
2599
2878
|
};
|
|
2600
|
-
if (
|
|
2879
|
+
if (l(a())) {
|
|
2601
2880
|
let e = m.children[0], t = n(m);
|
|
2602
2881
|
h = e.getBoundingClientRect(), t.attr("width", h.width), t.attr("height", h.height);
|
|
2603
2882
|
}
|
|
2604
2883
|
t.info("Text 2", f);
|
|
2605
|
-
let g = f || [], _ = m.getBBox(), v = await
|
|
2606
|
-
h =
|
|
2607
|
-
let
|
|
2608
|
-
n(v).attr("transform", "translate( " + (h.width > _.width ? 0 : (_.width - h.width) / 2) + ", " + (_.height +
|
|
2609
|
-
let
|
|
2884
|
+
let g = f || [], _ = m.getBBox(), v = await se(d, Array.isArray(g) ? g.join("<br/>") : g, r.labelStyle, !0, !0), y = v.children[0], S = n(v);
|
|
2885
|
+
h = y.getBoundingClientRect(), S.attr("width", h.width), S.attr("height", h.height);
|
|
2886
|
+
let C = (r.padding || 0) / 2;
|
|
2887
|
+
n(v).attr("transform", "translate( " + (h.width > _.width ? 0 : (_.width - h.width) / 2) + ", " + (_.height + C + 5) + ")"), n(m).attr("transform", "translate( " + (h.width < _.width ? 0 : -(_.width - h.width) / 2) + ", 0)"), h = d.node().getBBox(), d.attr("transform", "translate(" + -h.width / 2 + ", " + (-h.height / 2 - C + 3) + ")");
|
|
2888
|
+
let w = h.width + (r.padding || 0), E = h.height + (r.padding || 0), D = -h.width / 2 - C, O = -h.height / 2 - C, k, A;
|
|
2610
2889
|
if (r.look === "handDrawn") {
|
|
2611
|
-
let e =
|
|
2890
|
+
let e = T.svg(c), n = b(r, {}), i = e.path(q(D, O, w, E, r.rx || 0), n), a = e.line(-h.width / 2 - C, -h.height / 2 - C + _.height + C, h.width / 2 + C, -h.height / 2 - C + _.height + C, n);
|
|
2612
2891
|
A = c.insert(() => (t.debug("Rough node insert CXC", i), a), ":first-child"), k = c.insert(() => (t.debug("Rough node insert CXC", i), i), ":first-child");
|
|
2613
|
-
} else k =
|
|
2614
|
-
return
|
|
2892
|
+
} else k = u.insert("rect", ":first-child"), A = u.insert("line"), k.attr("class", "outer title-state").attr("style", o).attr("x", -h.width / 2 - C).attr("y", -h.height / 2 - C).attr("width", h.width + (r.padding || 0)).attr("height", h.height + (r.padding || 0)), A.attr("class", "divider").attr("x1", -h.width / 2 - C).attr("x2", h.width / 2 + C).attr("y1", -h.height / 2 - C + _.height + C).attr("y2", -h.height / 2 - C + _.height + C);
|
|
2893
|
+
return I(r, k), r.intersect = function(e) {
|
|
2615
2894
|
return K.rect(r, e);
|
|
2616
2895
|
}, c;
|
|
2617
2896
|
}
|
|
2618
|
-
e(
|
|
2619
|
-
async function
|
|
2897
|
+
e(dn, "rectWithTitle");
|
|
2898
|
+
async function fn(e, t, { config: { themeVariables: n } }) {
|
|
2620
2899
|
let r = n?.radius ?? 5;
|
|
2621
|
-
return
|
|
2900
|
+
return Ke(e, t, {
|
|
2622
2901
|
rx: r,
|
|
2623
2902
|
ry: r,
|
|
2624
2903
|
classes: "",
|
|
@@ -2626,56 +2905,56 @@ async function Dt(e, t, { config: { themeVariables: n } }) {
|
|
|
2626
2905
|
labelPaddingY: (t?.padding ?? 0) * 1
|
|
2627
2906
|
});
|
|
2628
2907
|
}
|
|
2629
|
-
e(
|
|
2630
|
-
var
|
|
2631
|
-
async function
|
|
2632
|
-
let { labelStyles: n, nodeStyles: r } =
|
|
2908
|
+
e(fn, "roundedRect");
|
|
2909
|
+
var pn = 8;
|
|
2910
|
+
async function mn(e, t) {
|
|
2911
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
2633
2912
|
t.labelStyle = n;
|
|
2634
|
-
let i = t.look === "neo" ? 16 : t.padding ?? 0, a = t.look === "neo" ? 12 : t.padding ?? 0, { shapeSvg: o, bbox: s, label: c } = await
|
|
2913
|
+
let i = t.look === "neo" ? 16 : t.padding ?? 0, a = t.look === "neo" ? 12 : t.padding ?? 0, { shapeSvg: o, bbox: s, label: c } = await P(e, t, L(t)), l = (t?.width ?? s.width) + i * 2 + (t.look === "neo" ? pn : pn * 2), u = (t?.height ?? s.height) + a * 2, d = l - pn, f = u, m = pn - l / 2, h = -u / 2, { cssStyles: g } = t, _ = T.svg(o), v = b(t, {});
|
|
2635
2914
|
t.look !== "handDrawn" && (v.roughness = 0, v.fillStyle = "solid");
|
|
2636
|
-
let
|
|
2915
|
+
let y = [
|
|
2637
2916
|
{
|
|
2638
|
-
x:
|
|
2639
|
-
y:
|
|
2917
|
+
x: m,
|
|
2918
|
+
y: h
|
|
2640
2919
|
},
|
|
2641
2920
|
{
|
|
2642
|
-
x:
|
|
2643
|
-
y:
|
|
2921
|
+
x: m + d,
|
|
2922
|
+
y: h
|
|
2644
2923
|
},
|
|
2645
2924
|
{
|
|
2646
|
-
x:
|
|
2647
|
-
y:
|
|
2925
|
+
x: m + d,
|
|
2926
|
+
y: h + f
|
|
2648
2927
|
},
|
|
2649
2928
|
{
|
|
2650
|
-
x:
|
|
2651
|
-
y:
|
|
2929
|
+
x: m - pn,
|
|
2930
|
+
y: h + f
|
|
2652
2931
|
},
|
|
2653
2932
|
{
|
|
2654
|
-
x:
|
|
2655
|
-
y:
|
|
2933
|
+
x: m - pn,
|
|
2934
|
+
y: h
|
|
2656
2935
|
},
|
|
2657
2936
|
{
|
|
2658
|
-
x:
|
|
2659
|
-
y:
|
|
2937
|
+
x: m,
|
|
2938
|
+
y: h
|
|
2660
2939
|
},
|
|
2661
2940
|
{
|
|
2662
|
-
x:
|
|
2663
|
-
y:
|
|
2941
|
+
x: m,
|
|
2942
|
+
y: h + f
|
|
2664
2943
|
}
|
|
2665
|
-
], S = _.polygon(
|
|
2666
|
-
return
|
|
2944
|
+
], S = _.polygon(y.map((e) => [e.x, e.y]), v), C = o.insert(() => S, ":first-child");
|
|
2945
|
+
return C.attr("class", "basic label-container outer-path").attr("style", p(g)), r && t.look !== "handDrawn" && C.selectAll("path").attr("style", r), g && t.look !== "handDrawn" && C.selectAll("path").attr("style", r), c.attr("transform", `translate(${pn / 2 - s.width / 2 - (s.x - (s.left ?? 0))}, ${-(s.height / 2) - (s.y - (s.top ?? 0))})`), I(t, C), t.intersect = function(e) {
|
|
2667
2946
|
return K.rect(t, e);
|
|
2668
2947
|
}, o;
|
|
2669
2948
|
}
|
|
2670
|
-
e(
|
|
2671
|
-
async function
|
|
2672
|
-
let { labelStyles: n, nodeStyles: r } =
|
|
2949
|
+
e(mn, "shadedProcess");
|
|
2950
|
+
async function hn(e, t) {
|
|
2951
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
2673
2952
|
t.labelStyle = n;
|
|
2674
2953
|
let i = t.padding ?? 0, a = t.look === "neo" ? 16 : i, o = t.look === "neo" ? 12 : i;
|
|
2675
2954
|
(t.width || t.height) && (t.width = Math.max((t?.width ?? 0) - a * 2, 10), t.height = Math.max((t?.height ?? 0) / 1.5 - o * 2, 10));
|
|
2676
|
-
let { shapeSvg: s, bbox: c, label: l } = await
|
|
2955
|
+
let { shapeSvg: s, bbox: c, label: l } = await P(e, t, L(t)), u = (t?.width ? t?.width : c.width) + a * 2, d = ((t?.height ? t?.height : c.height) + o * 2) * 1.5, f = u, p = d / 1.5, m = -f / 2, h = -p / 2, { cssStyles: g } = t, _ = T.svg(s), v = b(t, {});
|
|
2677
2956
|
t.look !== "handDrawn" && (v.roughness = 0, v.fillStyle = "solid");
|
|
2678
|
-
let
|
|
2957
|
+
let y = [
|
|
2679
2958
|
{
|
|
2680
2959
|
x: m,
|
|
2681
2960
|
y: h
|
|
@@ -2692,63 +2971,74 @@ async function kt(e, t) {
|
|
|
2692
2971
|
x: m + f,
|
|
2693
2972
|
y: h - p / 2
|
|
2694
2973
|
}
|
|
2695
|
-
], S =
|
|
2696
|
-
return
|
|
2697
|
-
return K.polygon(t,
|
|
2974
|
+
], S = R(y), C = _.path(S, v), w = s.insert(() => C, ":first-child");
|
|
2975
|
+
return w.attr("class", "basic label-container outer-path"), g && t.look !== "handDrawn" && w.selectChildren("path").attr("style", g), r && t.look !== "handDrawn" && w.selectChildren("path").attr("style", r), w.attr("transform", `translate(0, ${p / 4})`), l.attr("transform", `translate(${-f / 2 + (t.padding ?? 0) - (c.x - (c.left ?? 0))}, ${-p / 4 + (t.padding ?? 0) - (c.y - (c.top ?? 0))})`), I(t, w), t.intersect = function(e) {
|
|
2976
|
+
return K.polygon(t, y, e);
|
|
2698
2977
|
}, s;
|
|
2699
2978
|
}
|
|
2700
|
-
e(
|
|
2701
|
-
async function
|
|
2702
|
-
let n = t.padding ?? 0, r = t.look === "neo" ? 16 : n * 2, i = t.look === "neo" ? 12 : n
|
|
2703
|
-
return Ue(e, t, {
|
|
2979
|
+
e(hn, "slopedRect");
|
|
2980
|
+
async function gn(e, t) {
|
|
2981
|
+
let n = t.padding ?? 0, r = t.look === "neo" ? 16 : n * 2, i = t.look === "neo" ? 12 : n, o = await Ke(e, t, {
|
|
2704
2982
|
rx: 0,
|
|
2705
2983
|
ry: 0,
|
|
2706
2984
|
classes: "",
|
|
2707
2985
|
labelPaddingX: t.labelPaddingX ?? r,
|
|
2708
2986
|
labelPaddingY: i
|
|
2709
2987
|
});
|
|
2988
|
+
if (t.colorIndex !== void 0) {
|
|
2989
|
+
let { theme: e, themeVariables: n } = a();
|
|
2990
|
+
w(o, t.colorIndex, e, n.borderColorArray);
|
|
2991
|
+
}
|
|
2992
|
+
return o;
|
|
2710
2993
|
}
|
|
2711
|
-
e(
|
|
2712
|
-
|
|
2713
|
-
let
|
|
2994
|
+
e(gn, "squareRect");
|
|
2995
|
+
var _n = 50, vn = /* @__PURE__ */ e((e, t, n) => {
|
|
2996
|
+
let r = e.height + n, i = r * Math.cos(Math.PI / (2 * (_n - 1))), a = Math.sqrt(Math.max(0, i ** 2 - e.height ** 2));
|
|
2997
|
+
return {
|
|
2998
|
+
w: Math.max(e.width + r / 4 + t, 1.5 * r + (r - i), e.width + t + r - a),
|
|
2999
|
+
h: r
|
|
3000
|
+
};
|
|
3001
|
+
}, "stadiumDimensions");
|
|
3002
|
+
async function yn(e, t) {
|
|
3003
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
2714
3004
|
t.labelStyle = n;
|
|
2715
|
-
let i = t.padding ?? 0, a = t.look === "neo" ?
|
|
3005
|
+
let i = t.padding ?? 0, a = t.look === "neo" ? 40 : i, o = t.look === "neo" ? 24 : i, { shapeSvg: s, bbox: c } = await P(e, t, L(t)), { w: l, h: u } = vn(c, a, o), d = u / 2, { cssStyles: f } = t, p = T.svg(s), m = b(t, {});
|
|
2716
3006
|
t.look !== "handDrawn" && (m.roughness = 0, m.fillStyle = "solid");
|
|
2717
3007
|
let h = [
|
|
2718
3008
|
{
|
|
2719
|
-
x: -
|
|
2720
|
-
y: -
|
|
3009
|
+
x: -l / 2 + d,
|
|
3010
|
+
y: -u / 2
|
|
2721
3011
|
},
|
|
2722
3012
|
{
|
|
2723
|
-
x:
|
|
2724
|
-
y: -
|
|
3013
|
+
x: l / 2 - d,
|
|
3014
|
+
y: -u / 2
|
|
2725
3015
|
},
|
|
2726
|
-
...
|
|
3016
|
+
...B(-l / 2 + d, 0, d, _n, 90, 270),
|
|
2727
3017
|
{
|
|
2728
|
-
x:
|
|
2729
|
-
y:
|
|
3018
|
+
x: l / 2 - d,
|
|
3019
|
+
y: u / 2
|
|
2730
3020
|
},
|
|
2731
|
-
...
|
|
2732
|
-
], g =
|
|
2733
|
-
return v.attr("class", "basic label-container outer-path"), f && t.look !== "handDrawn" && v.selectChildren("path").attr("style", f), r && t.look !== "handDrawn" && v.selectChildren("path").attr("style", r),
|
|
3021
|
+
...B(l / 2 - d, 0, d, _n, 270, 450)
|
|
3022
|
+
], g = R(h), _ = p.path(g, m), v = s.insert(() => _, ":first-child");
|
|
3023
|
+
return v.attr("class", "basic label-container outer-path"), f && t.look !== "handDrawn" && v.selectChildren("path").attr("style", f), r && t.look !== "handDrawn" && v.selectChildren("path").attr("style", r), I(t, v), t.intersect = function(e) {
|
|
2734
3024
|
return K.polygon(t, h, e);
|
|
2735
3025
|
}, s;
|
|
2736
3026
|
}
|
|
2737
|
-
e(
|
|
2738
|
-
async function
|
|
2739
|
-
return
|
|
3027
|
+
e(yn, "stadium");
|
|
3028
|
+
async function bn(e, t) {
|
|
3029
|
+
return Ke(e, t, {
|
|
2740
3030
|
rx: t.look === "neo" ? 3 : 5,
|
|
2741
3031
|
ry: t.look === "neo" ? 3 : 5,
|
|
2742
3032
|
classes: "flowchart-node"
|
|
2743
3033
|
});
|
|
2744
3034
|
}
|
|
2745
|
-
e(
|
|
2746
|
-
function
|
|
2747
|
-
let { labelStyles: r, nodeStyles: i } =
|
|
3035
|
+
e(bn, "state");
|
|
3036
|
+
function xn(e, t, { config: { themeVariables: n } }) {
|
|
3037
|
+
let { labelStyles: r, nodeStyles: i } = x(t);
|
|
2748
3038
|
t.labelStyle = r;
|
|
2749
3039
|
let { cssStyles: a } = t, { lineColor: o, stateBorder: s, nodeBorder: c, nodeShadow: l } = n;
|
|
2750
3040
|
(t.width || t.height) && ((t.width ?? 0) < 14 && (t.width = 14), (t.height ?? 0) < 14 && (t.height = 14)), t.width ||= 14, t.height ||= 14;
|
|
2751
|
-
let u = e.insert("g").attr("class", "node default").attr("id", t.domId ?? t.id), d =
|
|
3041
|
+
let u = e.insert("g").attr("class", "node default").attr("id", t.domId ?? t.id), d = T.svg(u), f = b(t, {});
|
|
2752
3042
|
t.look !== "handDrawn" && (f.roughness = 0, f.fillStyle = "solid");
|
|
2753
3043
|
let p = d.circle(0, 0, t.width, {
|
|
2754
3044
|
...f,
|
|
@@ -2765,33 +3055,33 @@ function Nt(e, t, { config: { themeVariables: n } }) {
|
|
|
2765
3055
|
let t = e.node()?.ownerSVGElement?.id ?? "", n = t ? `${t}-drop-shadow-small` : "drop-shadow-small";
|
|
2766
3056
|
_.attr("style", `filter:url(#${n})`);
|
|
2767
3057
|
}
|
|
2768
|
-
return
|
|
3058
|
+
return I(t, _), t.intersect = function(e) {
|
|
2769
3059
|
return K.circle(t, (t.width ?? 0) / 2, e);
|
|
2770
3060
|
}, u;
|
|
2771
3061
|
}
|
|
2772
|
-
e(
|
|
2773
|
-
function
|
|
3062
|
+
e(xn, "stateEnd");
|
|
3063
|
+
function Sn(e, t, { config: { themeVariables: n } }) {
|
|
2774
3064
|
let { lineColor: r, nodeShadow: i } = n;
|
|
2775
3065
|
(t.width || t.height) && ((t.width ?? 0) < 14 && (t.width = 14), (t.height ?? 0) < 14 && (t.height = 14)), t.width ||= 14, t.height ||= 14;
|
|
2776
3066
|
let a = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), o;
|
|
2777
3067
|
if (t.look === "handDrawn") {
|
|
2778
|
-
let e =
|
|
3068
|
+
let e = T.svg(a).circle(0, 0, t.width, S(r));
|
|
2779
3069
|
o = a.insert(() => e), o.attr("class", "state-start").attr("r", (t.width ?? 7) / 2).attr("width", t.width ?? 14).attr("height", t.height ?? 14);
|
|
2780
3070
|
} else o = a.insert("circle", ":first-child"), o.attr("class", "state-start").attr("r", (t.width ?? 7) / 2).attr("width", t.width ?? 14).attr("height", t.height ?? 14);
|
|
2781
3071
|
if (t.width < 25 && i && t.look !== "handDrawn") {
|
|
2782
3072
|
let t = e.node()?.ownerSVGElement?.id ?? "", n = t ? `${t}-drop-shadow-small` : "drop-shadow-small";
|
|
2783
3073
|
o.attr("style", `filter:url(#${n})`);
|
|
2784
3074
|
}
|
|
2785
|
-
return
|
|
3075
|
+
return I(t, o), t.intersect = function(e) {
|
|
2786
3076
|
return K.circle(t, (t.width ?? 7) / 2, e);
|
|
2787
3077
|
}, a;
|
|
2788
3078
|
}
|
|
2789
|
-
e(
|
|
2790
|
-
var
|
|
2791
|
-
async function
|
|
2792
|
-
let { labelStyles: n, nodeStyles: r } =
|
|
3079
|
+
e(Sn, "stateStart");
|
|
3080
|
+
var Cn = 8;
|
|
3081
|
+
async function wn(e, t) {
|
|
3082
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
2793
3083
|
t.labelStyle = n;
|
|
2794
|
-
let i = t?.padding ?? 8, a = t.look === "neo" ? 28 : i, o = t.look === "neo" ? 12 : i, { shapeSvg: s, bbox: c } = await
|
|
3084
|
+
let i = t?.padding ?? 8, a = t.look === "neo" ? 28 : i, o = t.look === "neo" ? 12 : i, { shapeSvg: s, bbox: c } = await P(e, t, L(t)), l = Math.max(c.width + 2 * Cn + a, t.width ?? 0), u = Math.max(c.height + o, t.height ?? 0), d = l - 2 * Cn, f = u, m = -l / 2, h = -u / 2, g = [
|
|
2795
3085
|
{
|
|
2796
3086
|
x: 0,
|
|
2797
3087
|
y: 0
|
|
@@ -2834,26 +3124,26 @@ async function It(e, t) {
|
|
|
2834
3124
|
}
|
|
2835
3125
|
];
|
|
2836
3126
|
if (t.look === "handDrawn") {
|
|
2837
|
-
let e =
|
|
3127
|
+
let e = T.svg(s), n = b(t, {}), r = e.rectangle(m, h, d + 16, f, n), i = e.line(m + Cn, h, m + Cn, h + f, n), a = e.line(m + Cn + d, h, m + Cn + d, h + f, n);
|
|
2838
3128
|
s.insert(() => i, ":first-child"), s.insert(() => a, ":first-child");
|
|
2839
3129
|
let o = s.insert(() => r, ":first-child"), { cssStyles: c } = t;
|
|
2840
|
-
o.attr("class", "basic label-container").attr("style",
|
|
3130
|
+
o.attr("class", "basic label-container").attr("style", p(c)), I(t, o);
|
|
2841
3131
|
} else {
|
|
2842
|
-
let e =
|
|
2843
|
-
r && e.attr("style", r),
|
|
3132
|
+
let e = J(s, d, f, g);
|
|
3133
|
+
r && e.attr("style", r), I(t, e);
|
|
2844
3134
|
}
|
|
2845
3135
|
return t.intersect = function(e) {
|
|
2846
3136
|
return K.polygon(t, g, e);
|
|
2847
3137
|
}, s;
|
|
2848
3138
|
}
|
|
2849
|
-
e(
|
|
2850
|
-
var
|
|
2851
|
-
async function
|
|
2852
|
-
let { labelStyles: n, nodeStyles: r } =
|
|
3139
|
+
e(wn, "subroutine");
|
|
3140
|
+
var Tn = .2;
|
|
3141
|
+
async function En(e, t) {
|
|
3142
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
2853
3143
|
t.labelStyle = n;
|
|
2854
3144
|
let i = t.padding ?? 0, a = t.look === "neo" ? 16 : i, o = t.look === "neo" ? 12 : i;
|
|
2855
|
-
(t.width || t.height) && (t.height = Math.max((t?.height ?? 0) - o * 2, 10), t.width = Math.max((t?.width ?? 0) - a * 2 -
|
|
2856
|
-
let { shapeSvg: s, bbox: c } = await
|
|
3145
|
+
(t.width || t.height) && (t.height = Math.max((t?.height ?? 0) - o * 2, 10), t.width = Math.max((t?.width ?? 0) - a * 2 - Tn * (t.height + o * 2), 10));
|
|
3146
|
+
let { shapeSvg: s, bbox: c } = await P(e, t, L(t)), l = (t?.height ? t?.height : c.height) + o * 2, u = Tn * l, d = Tn * l, f = (t?.width ? t?.width : c.width) + a * 2 + u - u, p = l, m = -f / 2, h = -p / 2, { cssStyles: g } = t, _ = T.svg(s), v = b(t, {}), y = [
|
|
2857
3147
|
{
|
|
2858
3148
|
x: m - u / 2,
|
|
2859
3149
|
y: h
|
|
@@ -2885,26 +3175,26 @@ async function Rt(e, t) {
|
|
|
2885
3175
|
}
|
|
2886
3176
|
];
|
|
2887
3177
|
t.look !== "handDrawn" && (v.roughness = 0, v.fillStyle = "solid");
|
|
2888
|
-
let
|
|
3178
|
+
let C = R(y), w = _.path(C, v), E = R(S), D = _.path(E, {
|
|
2889
3179
|
...v,
|
|
2890
3180
|
fillStyle: "solid"
|
|
2891
3181
|
}), O = s.insert(() => D, ":first-child");
|
|
2892
|
-
return O.insert(() =>
|
|
2893
|
-
return K.polygon(t,
|
|
3182
|
+
return O.insert(() => w, ":first-child"), O.attr("class", "basic label-container outer-path"), g && t.look !== "handDrawn" && O.selectAll("path").attr("style", g), r && t.look !== "handDrawn" && O.selectAll("path").attr("style", r), I(t, O), t.intersect = function(e) {
|
|
3183
|
+
return K.polygon(t, y, e);
|
|
2894
3184
|
}, s;
|
|
2895
3185
|
}
|
|
2896
|
-
e(
|
|
2897
|
-
async function
|
|
2898
|
-
let { labelStyles: n, nodeStyles: r } =
|
|
3186
|
+
e(En, "taggedRect");
|
|
3187
|
+
async function Dn(e, t) {
|
|
3188
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
2899
3189
|
t.labelStyle = n;
|
|
2900
|
-
let { shapeSvg: i, bbox: a, label: o } = await
|
|
3190
|
+
let { shapeSvg: i, bbox: a, label: o } = await P(e, t, L(t)), s = Math.max(a.width + (t.padding ?? 0) * 2, t?.width ?? 0), c = Math.max(a.height + (t.padding ?? 0) * 2, t?.height ?? 0), l = c / 8, u = .2 * s, d = .2 * c, f = c + l, { cssStyles: p } = t, m = T.svg(i), h = b(t, {});
|
|
2901
3191
|
t.look !== "handDrawn" && (h.roughness = 0, h.fillStyle = "solid");
|
|
2902
3192
|
let g = [
|
|
2903
3193
|
{
|
|
2904
3194
|
x: -s / 2 - s / 2 * .1,
|
|
2905
3195
|
y: f / 2
|
|
2906
3196
|
},
|
|
2907
|
-
...
|
|
3197
|
+
...z(-s / 2 - s / 2 * .1, f / 2, s / 2 + s / 2 * .1, f / 2, l, .8),
|
|
2908
3198
|
{
|
|
2909
3199
|
x: s / 2 + s / 2 * .1,
|
|
2910
3200
|
y: -f / 2
|
|
@@ -2913,7 +3203,7 @@ async function zt(e, t) {
|
|
|
2913
3203
|
x: -s / 2 - s / 2 * .1,
|
|
2914
3204
|
y: -f / 2
|
|
2915
3205
|
}
|
|
2916
|
-
], _ = -s / 2 + s / 2 * .1, v = -f / 2 - d * .4,
|
|
3206
|
+
], _ = -s / 2 + s / 2 * .1, v = -f / 2 - d * .4, y = [
|
|
2917
3207
|
{
|
|
2918
3208
|
x: _ + s - u,
|
|
2919
3209
|
y: (v + c) * 1.3
|
|
@@ -2926,56 +3216,56 @@ async function zt(e, t) {
|
|
|
2926
3216
|
x: _ + s,
|
|
2927
3217
|
y: (v + c) * .9
|
|
2928
3218
|
},
|
|
2929
|
-
...
|
|
2930
|
-
], S =
|
|
3219
|
+
...z(_ + s, (v + c) * 1.25, _ + s - u, (v + c) * 1.3, -c * .02, .5)
|
|
3220
|
+
], S = R(g), C = m.path(S, h), w = R(y), E = m.path(w, {
|
|
2931
3221
|
...h,
|
|
2932
3222
|
fillStyle: "solid"
|
|
2933
3223
|
}), D = i.insert(() => E, ":first-child");
|
|
2934
|
-
return D.insert(() =>
|
|
3224
|
+
return D.insert(() => C, ":first-child"), D.attr("class", "basic label-container outer-path"), p && t.look !== "handDrawn" && D.selectAll("path").attr("style", p), r && t.look !== "handDrawn" && D.selectAll("path").attr("style", r), D.attr("transform", `translate(0,${-l / 2})`), o.attr("transform", `translate(${-s / 2 + (t.padding ?? 0) - (a.x - (a.left ?? 0))},${-c / 2 + (t.padding ?? 0) - l / 2 - (a.y - (a.top ?? 0))})`), I(t, D), t.intersect = function(e) {
|
|
2935
3225
|
return K.polygon(t, g, e);
|
|
2936
3226
|
}, i;
|
|
2937
3227
|
}
|
|
2938
|
-
e(
|
|
2939
|
-
async function
|
|
2940
|
-
let { labelStyles: n, nodeStyles: r } =
|
|
3228
|
+
e(Dn, "taggedWaveEdgedRectangle");
|
|
3229
|
+
async function On(e, t) {
|
|
3230
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
2941
3231
|
t.labelStyle = n;
|
|
2942
|
-
let { shapeSvg: i, bbox: a } = await
|
|
2943
|
-
return u.attr("class", "text").attr("style", r).attr("rx", 0).attr("ry", 0).attr("x", c).attr("y", l).attr("width", o).attr("height", s),
|
|
3232
|
+
let { shapeSvg: i, bbox: a } = await P(e, t, L(t)), o = Math.max(a.width + (t.padding ?? 0), t?.width || 0), s = Math.max(a.height + (t.padding ?? 0), t?.height || 0), c = -o / 2, l = -s / 2, u = i.insert("rect", ":first-child");
|
|
3233
|
+
return u.attr("class", "text").attr("style", r).attr("rx", 0).attr("ry", 0).attr("x", c).attr("y", l).attr("width", o).attr("height", s), I(t, u), t.intersect = function(e) {
|
|
2944
3234
|
return K.rect(t, e);
|
|
2945
3235
|
}, i;
|
|
2946
3236
|
}
|
|
2947
|
-
e(
|
|
2948
|
-
var
|
|
3237
|
+
e(On, "text");
|
|
3238
|
+
var kn = /* @__PURE__ */ e((e, t, n, r, i, a) => `M${e},${t}
|
|
2949
3239
|
a${i},${a} 0,0,1 0,${-r}
|
|
2950
3240
|
l${n},0
|
|
2951
3241
|
a${i},${a} 0,0,1 0,${r}
|
|
2952
3242
|
M${n},${-r}
|
|
2953
3243
|
a${i},${a} 0,0,0 0,${r}
|
|
2954
|
-
l${-n},0`, "createCylinderPathD"),
|
|
3244
|
+
l${-n},0`, "createCylinderPathD"), An = /* @__PURE__ */ e((e, t, n, r, i, a) => [
|
|
2955
3245
|
`M${e},${t}`,
|
|
2956
3246
|
`M${e + n},${t}`,
|
|
2957
3247
|
`a${i},${a} 0,0,0 0,${-r}`,
|
|
2958
3248
|
`l${-n},0`,
|
|
2959
3249
|
`a${i},${a} 0,0,0 0,${r}`,
|
|
2960
3250
|
`l${n},0`
|
|
2961
|
-
].join(" "), "createOuterCylinderPathD"),
|
|
2962
|
-
async function
|
|
2963
|
-
let { labelStyles: n, nodeStyles: r } =
|
|
3251
|
+
].join(" "), "createOuterCylinderPathD"), jn = /* @__PURE__ */ e((e, t, n, r, i, a) => [`M${e + n / 2},${-r / 2}`, `a${i},${a} 0,0,0 0,${r}`].join(" "), "createInnerCylinderPathD"), Mn = 5, Nn = 10;
|
|
3252
|
+
async function Pn(e, t) {
|
|
3253
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
2964
3254
|
t.labelStyle = n;
|
|
2965
3255
|
let i = t.padding ?? 0, a = t.look === "neo" ? 12 : i / 2, o = t.height ?? 0;
|
|
2966
|
-
if (t.height && (t.height -= a, t.height <
|
|
3256
|
+
if (t.height && (t.height -= a, t.height < Mn && (t.height = Mn)), t.width) {
|
|
2967
3257
|
let e = o / 2 / (2.5 + o / 50);
|
|
2968
|
-
t.width = t.width - a - e * 3, t.width <
|
|
3258
|
+
t.width = t.width - a - e * 3, t.width < Nn && (t.width = Nn);
|
|
2969
3259
|
}
|
|
2970
|
-
let { shapeSvg: s, bbox: c, label: l } = await
|
|
3260
|
+
let { shapeSvg: s, bbox: c, label: l } = await P(e, t, L(t)), u = Math.max(t.height ?? 0, c.height) + a, d = u / 2, f = d / (2.5 + u / 50), m = Math.max(t.width ?? 0, c.width) + f + a, { cssStyles: h } = t, g;
|
|
2971
3261
|
if (t.look === "handDrawn") {
|
|
2972
|
-
let e =
|
|
2973
|
-
g = s.insert(() => a, ":first-child"), g = s.insert(() => i, ":first-child"), g.attr("class", "basic label-container"),
|
|
3262
|
+
let e = T.svg(s), n = An(0, 0, m, u, f, d), r = jn(0, 0, m, u, f, d), i = e.path(n, b(t, {})), a = e.path(r, b(t, { fill: "none" }));
|
|
3263
|
+
g = s.insert(() => a, ":first-child"), g = s.insert(() => i, ":first-child"), g.attr("class", "basic label-container"), h && g.attr("style", h);
|
|
2974
3264
|
} else {
|
|
2975
|
-
let e =
|
|
2976
|
-
g = s.insert("path", ":first-child").attr("d", e).attr("class", "basic label-container").attr("style", h
|
|
3265
|
+
let e = kn(0, 0, m, u, f, d);
|
|
3266
|
+
g = s.insert("path", ":first-child").attr("d", e).attr("class", "basic label-container").attr("style", p(h)).attr("style", r), g.attr("class", "basic label-container outer-path"), h && g.selectAll("path").attr("style", h), r && g.selectAll("path").attr("style", r);
|
|
2977
3267
|
}
|
|
2978
|
-
return g.attr("label-offset-x", f), g.attr("transform", `translate(${-
|
|
3268
|
+
return g.attr("label-offset-x", f), g.attr("transform", `translate(${-m / 2}, ${u / 2} )`), l.attr("transform", `translate(${-(c.width / 2) - f - (c.x - (c.left ?? 0))}, ${-(c.height / 2) - (c.y - (c.top ?? 0))})`), I(t, g), t.intersect = function(e) {
|
|
2979
3269
|
let n = K.rect(t, e), r = n.y - (t.y ?? 0);
|
|
2980
3270
|
if (d != 0 && (Math.abs(r) < (t.height ?? 0) / 2 || Math.abs(r) == (t.height ?? 0) / 2 && Math.abs(n.x - (t.x ?? 0)) > (t.width ?? 0) / 2 - f)) {
|
|
2981
3271
|
let i = f * f * (1 - r * r / (d * d));
|
|
@@ -2984,11 +3274,11 @@ async function Kt(e, t) {
|
|
|
2984
3274
|
return n;
|
|
2985
3275
|
}, s;
|
|
2986
3276
|
}
|
|
2987
|
-
e(
|
|
2988
|
-
async function
|
|
2989
|
-
let { labelStyles: n, nodeStyles: r } =
|
|
3277
|
+
e(Pn, "tiltedCylinder");
|
|
3278
|
+
async function Fn(e, t) {
|
|
3279
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
2990
3280
|
t.labelStyle = n;
|
|
2991
|
-
let i = t.padding ?? 0, a = (t.look, i), o = t.look === "neo" ? i * 2 : i, { shapeSvg: s, bbox: c } = await
|
|
3281
|
+
let i = t.padding ?? 0, a = (t.look, i), o = t.look === "neo" ? i * 2 : i, { shapeSvg: s, bbox: c } = await P(e, t, L(t)), l = Math.max(c.height + a, t.height ?? 0), u = Math.max(c.width + o, (t.width ?? 0) - l), d = [
|
|
2992
3282
|
{
|
|
2993
3283
|
x: -3 * l / 6,
|
|
2994
3284
|
y: 0
|
|
@@ -3007,20 +3297,20 @@ async function qt(e, t) {
|
|
|
3007
3297
|
}
|
|
3008
3298
|
], f, { cssStyles: p } = t;
|
|
3009
3299
|
if (t.look === "handDrawn") {
|
|
3010
|
-
let e =
|
|
3300
|
+
let e = T.svg(s), n = b(t, {}), r = R(d), i = e.path(r, n);
|
|
3011
3301
|
f = s.insert(() => i, ":first-child").attr("transform", `translate(${-u / 2}, ${l / 2})`), p && f.attr("style", p);
|
|
3012
|
-
} else f =
|
|
3013
|
-
return r && f.attr("style", r), t.width = u, t.height = l,
|
|
3302
|
+
} else f = J(s, u, l, d);
|
|
3303
|
+
return r && f.attr("style", r), t.width = u, t.height = l, I(t, f), t.intersect = function(e) {
|
|
3014
3304
|
return K.polygon(t, d, e);
|
|
3015
3305
|
}, s;
|
|
3016
3306
|
}
|
|
3017
|
-
e(
|
|
3018
|
-
async function
|
|
3019
|
-
let { labelStyles: n, nodeStyles: r } =
|
|
3307
|
+
e(Fn, "trapezoid");
|
|
3308
|
+
async function In(e, t) {
|
|
3309
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
3020
3310
|
t.labelStyle = n;
|
|
3021
3311
|
let i = t.padding ?? 0, a = t.look === "neo" ? 16 : i, o = t.look === "neo" ? 12 : i;
|
|
3022
3312
|
(t.width || t.height) && (t.height = (t.height ?? 0) - o * 2, t.height < 5 && (t.height = 5), t.width = (t.width ?? 0) - a * 2, t.width < 15 && (t.width = 15));
|
|
3023
|
-
let { shapeSvg: s, bbox: c } = await
|
|
3313
|
+
let { shapeSvg: s, bbox: c } = await P(e, t, L(t)), l = (t?.width ? t?.width : c.width) + a * 2, u = (t?.height ? t?.height : c.height) + o * 2, { cssStyles: d } = t, f = T.svg(s), p = b(t, {});
|
|
3024
3314
|
t.look !== "handDrawn" && (p.roughness = 0, p.fillStyle = "solid");
|
|
3025
3315
|
let m = [
|
|
3026
3316
|
{
|
|
@@ -3047,19 +3337,19 @@ async function Jt(e, t) {
|
|
|
3047
3337
|
x: -l / 2,
|
|
3048
3338
|
y: -u / 2 * .6
|
|
3049
3339
|
}
|
|
3050
|
-
], h =
|
|
3051
|
-
return _.attr("class", "basic label-container outer-path"), d && t.look !== "handDrawn" && _.selectChildren("path").attr("style", d), r && t.look !== "handDrawn" && _.selectChildren("path").attr("style", r),
|
|
3340
|
+
], h = R(m), g = f.path(h, p), _ = s.insert(() => g, ":first-child");
|
|
3341
|
+
return _.attr("class", "basic label-container outer-path"), d && t.look !== "handDrawn" && _.selectChildren("path").attr("style", d), r && t.look !== "handDrawn" && _.selectChildren("path").attr("style", r), I(t, _), t.intersect = function(e) {
|
|
3052
3342
|
return K.polygon(t, m, e);
|
|
3053
3343
|
}, s;
|
|
3054
3344
|
}
|
|
3055
|
-
e(
|
|
3056
|
-
var
|
|
3057
|
-
async function
|
|
3058
|
-
let { labelStyles: r, nodeStyles: i } =
|
|
3345
|
+
e(In, "trapezoidalPentagon");
|
|
3346
|
+
var Ln = 10, Rn = 10;
|
|
3347
|
+
async function zn(e, n) {
|
|
3348
|
+
let { labelStyles: r, nodeStyles: i } = x(n);
|
|
3059
3349
|
n.labelStyle = r;
|
|
3060
|
-
let
|
|
3061
|
-
(n.width || n.height) && (n.width = ((n?.width ?? 0) -
|
|
3062
|
-
let { shapeSvg:
|
|
3350
|
+
let o = n.padding ?? 0, c = n.look === "neo" ? o * 2 : o;
|
|
3351
|
+
(n.width || n.height) && (n.width = ((n?.width ?? 0) - c) / 2, n.width < Rn && (n.width = Rn), n.height = n?.height ?? 0, n.height < Ln && (n.height = Ln));
|
|
3352
|
+
let { shapeSvg: l, bbox: u, label: d } = await P(e, n, L(n)), f = s(a().flowchart?.htmlLabels), p = (n?.width ? n?.width : u.width) + c, m = n?.height ? n?.height : p + u.height, h = m, g = [
|
|
3063
3353
|
{
|
|
3064
3354
|
x: 0,
|
|
3065
3355
|
y: 0
|
|
@@ -3072,27 +3362,27 @@ async function Zt(e, n) {
|
|
|
3072
3362
|
x: h / 2,
|
|
3073
3363
|
y: -m
|
|
3074
3364
|
}
|
|
3075
|
-
], { cssStyles: _ } = n, v =
|
|
3076
|
-
n.look !== "handDrawn" && (
|
|
3077
|
-
let S =
|
|
3078
|
-
return _ && n.look !== "handDrawn" &&
|
|
3365
|
+
], { cssStyles: _ } = n, v = T.svg(l), y = b(n, {});
|
|
3366
|
+
n.look !== "handDrawn" && (y.roughness = 0, y.fillStyle = "solid");
|
|
3367
|
+
let S = R(g), C = v.path(S, y), w = l.insert(() => C, ":first-child").attr("transform", `translate(${-m / 2}, ${m / 2})`).attr("class", "outer-path");
|
|
3368
|
+
return _ && n.look !== "handDrawn" && w.selectChildren("path").attr("style", _), i && n.look !== "handDrawn" && w.selectChildren("path").attr("style", i), n.width = p, n.height = m, I(n, w), d.attr("transform", `translate(${-u.width / 2 - (u.x - (u.left ?? 0))}, ${m / 2 - (u.height + (n.padding ?? 0) / (f ? 2 : 1) - (u.y - (u.top ?? 0)))})`), n.intersect = function(e) {
|
|
3079
3369
|
return t.info("Triangle intersect", n, g, e), K.polygon(n, g, e);
|
|
3080
|
-
},
|
|
3370
|
+
}, l;
|
|
3081
3371
|
}
|
|
3082
|
-
e(
|
|
3083
|
-
async function
|
|
3084
|
-
let { labelStyles: n, nodeStyles: r } =
|
|
3372
|
+
e(zn, "triangle");
|
|
3373
|
+
async function Bn(e, t) {
|
|
3374
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
3085
3375
|
t.labelStyle = n;
|
|
3086
3376
|
let i = t.padding ?? 0, a = t.look === "neo" ? 16 : i, o = t.look === "neo" ? 12 : i, s = !0;
|
|
3087
3377
|
(t.width || t.height) && (s = !1, t.width = (t?.width ?? 0) - a * 2, t.width < 10 && (t.width = 10), t.height = (t?.height ?? 0) - o * 2, t.height < 10 && (t.height = 10));
|
|
3088
|
-
let { shapeSvg: c, bbox: l, label: u } = await
|
|
3089
|
-
t.look !== "handDrawn" && (
|
|
3378
|
+
let { shapeSvg: c, bbox: l, label: u } = await P(e, t, L(t)), d = (t?.width ? t?.width : l.width) + (a ?? 0) * 2, f = (t?.height ? t?.height : l.height) + (o ?? 0) * 2, p = t.look === "neo" ? f / 4 : f / 8, m = f + (s ? p : -p), { cssStyles: h } = t, g = 14 - d, _ = g > 0 ? g / 2 : 0, v = T.svg(c), y = b(t, {});
|
|
3379
|
+
t.look !== "handDrawn" && (y.roughness = 0, y.fillStyle = "solid");
|
|
3090
3380
|
let S = [
|
|
3091
3381
|
{
|
|
3092
3382
|
x: -d / 2 - _,
|
|
3093
3383
|
y: m / 2
|
|
3094
3384
|
},
|
|
3095
|
-
...
|
|
3385
|
+
...z(-d / 2 - _, m / 2, d / 2 + _, m / 2, p, .8),
|
|
3096
3386
|
{
|
|
3097
3387
|
x: d / 2 + _,
|
|
3098
3388
|
y: -m / 2
|
|
@@ -3101,14 +3391,14 @@ async function Qt(e, t) {
|
|
|
3101
3391
|
x: -d / 2 - _,
|
|
3102
3392
|
y: -m / 2
|
|
3103
3393
|
}
|
|
3104
|
-
],
|
|
3105
|
-
return E.attr("class", "basic label-container outer-path"), h && t.look !== "handDrawn" && E.selectAll("path").attr("style", h), r && t.look !== "handDrawn" && E.selectAll("path").attr("style", r), E.attr("transform", `translate(0,${-p / 2})`), u.attr("transform", `translate(${-d / 2 + (t.padding ?? 0) - (l.x - (l.left ?? 0))},${-f / 2 + (t.padding ?? 0) - p - (l.y - (l.top ?? 0))})`),
|
|
3394
|
+
], C = R(S), w = v.path(C, y), E = c.insert(() => w, ":first-child");
|
|
3395
|
+
return E.attr("class", "basic label-container outer-path"), h && t.look !== "handDrawn" && E.selectAll("path").attr("style", h), r && t.look !== "handDrawn" && E.selectAll("path").attr("style", r), E.attr("transform", `translate(0,${-p / 2})`), u.attr("transform", `translate(${-d / 2 + (t.padding ?? 0) - (l.x - (l.left ?? 0))},${-f / 2 + (t.padding ?? 0) - p - (l.y - (l.top ?? 0))})`), I(t, E), t.intersect = function(e) {
|
|
3106
3396
|
return K.polygon(t, S, e);
|
|
3107
3397
|
}, c;
|
|
3108
3398
|
}
|
|
3109
|
-
e(
|
|
3110
|
-
async function
|
|
3111
|
-
let { labelStyles: n, nodeStyles: r } =
|
|
3399
|
+
e(Bn, "waveEdgedRectangle");
|
|
3400
|
+
async function Vn(e, t) {
|
|
3401
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
3112
3402
|
t.labelStyle = n;
|
|
3113
3403
|
let i = t.padding ?? 0, a = t.look === "neo" ? 16 : i, o = t.look === "neo" ? 20 : i;
|
|
3114
3404
|
if (t.width || t.height) {
|
|
@@ -3116,32 +3406,32 @@ async function $t(e, t) {
|
|
|
3116
3406
|
let e = Math.min(t.height * .2, t.height / 4);
|
|
3117
3407
|
t.height = Math.ceil(t.height - o - 20 / 9 * e), t.width -= a * 2;
|
|
3118
3408
|
}
|
|
3119
|
-
let { shapeSvg: s, bbox: c } = await
|
|
3409
|
+
let { shapeSvg: s, bbox: c } = await P(e, t, L(t)), l = (t?.width ? t?.width : c.width) + a * 2, u = (t?.height ? t?.height : c.height) + o, d = u / 8, f = u + d * 2, { cssStyles: p } = t, m = T.svg(s), h = b(t, {});
|
|
3120
3410
|
t.look !== "handDrawn" && (h.roughness = 0, h.fillStyle = "solid");
|
|
3121
3411
|
let g = [
|
|
3122
3412
|
{
|
|
3123
3413
|
x: -l / 2,
|
|
3124
3414
|
y: f / 2
|
|
3125
3415
|
},
|
|
3126
|
-
...
|
|
3416
|
+
...z(-l / 2, f / 2, l / 2, f / 2, d, 1),
|
|
3127
3417
|
{
|
|
3128
3418
|
x: l / 2,
|
|
3129
3419
|
y: -f / 2
|
|
3130
3420
|
},
|
|
3131
|
-
...
|
|
3132
|
-
], _ =
|
|
3133
|
-
return
|
|
3421
|
+
...z(l / 2, -f / 2, -l / 2, -f / 2, d, -1)
|
|
3422
|
+
], _ = R(g), v = m.path(_, h), y = s.insert(() => v, ":first-child");
|
|
3423
|
+
return y.attr("class", "basic label-container"), p && t.look !== "handDrawn" && y.selectAll("path").attr("style", p), r && t.look !== "handDrawn" && y.selectAll("path").attr("style", r), I(t, y), t.intersect = function(e) {
|
|
3134
3424
|
return K.polygon(t, g, e);
|
|
3135
3425
|
}, s;
|
|
3136
3426
|
}
|
|
3137
|
-
e(
|
|
3427
|
+
e(Vn, "waveRectangle");
|
|
3138
3428
|
var Q = 10;
|
|
3139
|
-
async function
|
|
3140
|
-
let { labelStyles: n, nodeStyles: r } =
|
|
3429
|
+
async function Hn(e, t) {
|
|
3430
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
3141
3431
|
t.labelStyle = n;
|
|
3142
3432
|
let i = t.look === "neo" ? 16 : t.padding ?? 0, a = t.look === "neo" ? 12 : t.padding ?? 0;
|
|
3143
3433
|
(t.width || t.height) && (t.width = Math.max((t?.width ?? 0) - i * 2 - Q, 10), t.height = Math.max((t?.height ?? 0) - a * 2 - Q, 10));
|
|
3144
|
-
let { shapeSvg: o, bbox: s, label: c } = await
|
|
3434
|
+
let { shapeSvg: o, bbox: s, label: c } = await P(e, t, L(t)), l = (t?.width ? t?.width : s.width) + i * 2 + Q, u = (t?.height ? t?.height : s.height) + a * 2 + Q, d = l - Q, f = u - Q, p = -d / 2, m = -f / 2, { cssStyles: h } = t, g = T.svg(o), _ = b(t, {}), v = [
|
|
3145
3435
|
{
|
|
3146
3436
|
x: p - Q,
|
|
3147
3437
|
y: m - Q
|
|
@@ -3158,29 +3448,29 @@ async function en(e, t) {
|
|
|
3158
3448
|
x: p + d,
|
|
3159
3449
|
y: m - Q
|
|
3160
3450
|
}
|
|
3161
|
-
],
|
|
3451
|
+
], y = `M${p - Q},${m - Q} L${p + d},${m - Q} L${p + d},${m + f} L${p - Q},${m + f} L${p - Q},${m - Q}
|
|
3162
3452
|
M${p - Q},${m} L${p + d},${m}
|
|
3163
3453
|
M${p},${m - Q} L${p},${m + f}`;
|
|
3164
3454
|
t.look !== "handDrawn" && (_.roughness = 0, _.fillStyle = "solid");
|
|
3165
|
-
let S = g.path(
|
|
3166
|
-
return
|
|
3455
|
+
let S = g.path(y, _), C = o.insert(() => S, ":first-child");
|
|
3456
|
+
return C.attr("transform", `translate(${Q / 2}, ${Q / 2})`), C.attr("class", "basic label-container outer-path"), h && t.look !== "handDrawn" && C.selectAll("path").attr("style", h), r && t.look !== "handDrawn" && C.selectAll("path").attr("style", r), c.attr("transform", `translate(${-(s.width / 2) + Q / 2 - (s.x - (s.left ?? 0))}, ${-(s.height / 2) + Q / 2 - (s.y - (s.top ?? 0))})`), I(t, C), t.intersect = function(e) {
|
|
3167
3457
|
return K.polygon(t, v, e);
|
|
3168
3458
|
}, o;
|
|
3169
3459
|
}
|
|
3170
|
-
e(
|
|
3171
|
-
var
|
|
3460
|
+
e(Hn, "windowPane");
|
|
3461
|
+
var Un = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), Wn = /* @__PURE__ */ new Set([
|
|
3172
3462
|
"redux",
|
|
3173
3463
|
"redux-dark",
|
|
3174
3464
|
"redux-color",
|
|
3175
3465
|
"redux-dark-color"
|
|
3176
3466
|
]);
|
|
3177
|
-
async function
|
|
3467
|
+
async function Gn(e, t) {
|
|
3178
3468
|
let r = t;
|
|
3179
3469
|
r.alias && (t.label = r.alias);
|
|
3180
|
-
let { theme: i, themeVariables: a } =
|
|
3470
|
+
let { theme: i, themeVariables: a } = u(), { rowEven: o, rowOdd: c, nodeBorder: l, borderColorArray: d } = a;
|
|
3181
3471
|
if (t.look === "handDrawn") {
|
|
3182
|
-
let { themeVariables: n } =
|
|
3183
|
-
await
|
|
3472
|
+
let { themeVariables: n } = u(), { background: r } = n;
|
|
3473
|
+
await Gn(e, {
|
|
3184
3474
|
...t,
|
|
3185
3475
|
id: t.id + "-background",
|
|
3186
3476
|
domId: (t.domId || t.id) + "-background",
|
|
@@ -3188,9 +3478,9 @@ async function rn(e, t) {
|
|
|
3188
3478
|
cssStyles: ["stroke: none", `fill: ${r}`]
|
|
3189
3479
|
});
|
|
3190
3480
|
}
|
|
3191
|
-
let f =
|
|
3481
|
+
let f = u();
|
|
3192
3482
|
t.useHtmlLabels = f.htmlLabels;
|
|
3193
|
-
let p = f.er?.diagramPadding ?? 10,
|
|
3483
|
+
let p = f.er?.diagramPadding ?? 10, m = f.er?.entityPadding ?? 6, { cssStyles: g } = t, { labelStyles: _, nodeStyles: v } = x(t);
|
|
3194
3484
|
if (r.attributes.length === 0 && t.label) {
|
|
3195
3485
|
let n = {
|
|
3196
3486
|
rx: 0,
|
|
@@ -3199,87 +3489,87 @@ async function rn(e, t) {
|
|
|
3199
3489
|
labelPaddingY: p * 1.5,
|
|
3200
3490
|
classes: ""
|
|
3201
3491
|
};
|
|
3202
|
-
|
|
3203
|
-
let a = await
|
|
3204
|
-
if (i != null &&
|
|
3492
|
+
h(t.label, f) + n.labelPaddingX * 2 < f.er.minEntityWidth && (t.width = f.er.minEntityWidth);
|
|
3493
|
+
let a = await Ke(e, t, n);
|
|
3494
|
+
if (i != null && Un.has(i)) {
|
|
3205
3495
|
let e = r.colorIndex ?? 0;
|
|
3206
3496
|
a.attr("data-color-id", `color-${e % d.length}`);
|
|
3207
3497
|
}
|
|
3208
|
-
if (!
|
|
3498
|
+
if (!s(f.htmlLabels)) {
|
|
3209
3499
|
let e = a.select("text"), t = e.node()?.getBBox();
|
|
3210
3500
|
e.attr("transform", `translate(${-t.width / 2}, 0)`);
|
|
3211
3501
|
}
|
|
3212
3502
|
return a;
|
|
3213
3503
|
}
|
|
3214
|
-
f.htmlLabels || (p *= 1.25,
|
|
3215
|
-
let
|
|
3216
|
-
|
|
3217
|
-
let S = e.insert("g").attr("class",
|
|
3218
|
-
|
|
3219
|
-
let
|
|
3504
|
+
f.htmlLabels || (p *= 1.25, m *= 1.25);
|
|
3505
|
+
let y = L(t);
|
|
3506
|
+
y ||= "node default";
|
|
3507
|
+
let S = e.insert("g").attr("class", y).attr("id", t.domId || t.id), C = await Kn(S, t.label ?? "", f, 0, 0, ["name"], _);
|
|
3508
|
+
C.height += m;
|
|
3509
|
+
let w = 0, E = [], D = [], O = 0, k = 0, A = 0, j = 0, M = !0, N = !0;
|
|
3220
3510
|
for (let e of r.attributes) {
|
|
3221
|
-
let t = await
|
|
3511
|
+
let t = await Kn(S, e.type, f, 0, w, ["attribute-type"], _);
|
|
3222
3512
|
O = Math.max(O, t.width + p);
|
|
3223
|
-
let n = await
|
|
3513
|
+
let n = await Kn(S, e.name, f, 0, w, ["attribute-name"], _);
|
|
3224
3514
|
k = Math.max(k, n.width + p);
|
|
3225
|
-
let r = await
|
|
3515
|
+
let r = await Kn(S, e.keys.join(), f, 0, w, ["attribute-keys"], _);
|
|
3226
3516
|
A = Math.max(A, r.width + p);
|
|
3227
|
-
let i = await
|
|
3517
|
+
let i = await Kn(S, e.comment, f, 0, w, ["attribute-comment"], _);
|
|
3228
3518
|
j = Math.max(j, i.width + p);
|
|
3229
|
-
let a = Math.max(t.height, n.height, r.height, i.height) +
|
|
3519
|
+
let a = Math.max(t.height, n.height, r.height, i.height) + m;
|
|
3230
3520
|
D.push({
|
|
3231
|
-
yOffset:
|
|
3521
|
+
yOffset: w,
|
|
3232
3522
|
rowHeight: a
|
|
3233
|
-
}),
|
|
3523
|
+
}), w += a;
|
|
3234
3524
|
}
|
|
3235
|
-
let
|
|
3236
|
-
A <= p && (M = !1, A = 0,
|
|
3237
|
-
let
|
|
3238
|
-
if (
|
|
3239
|
-
let e =
|
|
3240
|
-
O += e /
|
|
3525
|
+
let P = 4;
|
|
3526
|
+
A <= p && (M = !1, A = 0, P--), j <= p && (N = !1, j = 0, P--);
|
|
3527
|
+
let F = S.node().getBBox();
|
|
3528
|
+
if (C.width + p * 2 - (O + k + A + j) > 0) {
|
|
3529
|
+
let e = C.width + p * 2 - (O + k + A + j);
|
|
3530
|
+
O += e / P, k += e / P, A > 0 && (A += e / P), j > 0 && (j += e / P);
|
|
3241
3531
|
}
|
|
3242
|
-
let
|
|
3243
|
-
t.look !== "handDrawn" && (
|
|
3244
|
-
let
|
|
3245
|
-
D.length > 0 && (
|
|
3246
|
-
let
|
|
3532
|
+
let R = O + k + A + j, z = T.svg(S), B = b(t, {});
|
|
3533
|
+
t.look !== "handDrawn" && (B.roughness = 0, B.fillStyle = "solid");
|
|
3534
|
+
let ee = 0;
|
|
3535
|
+
D.length > 0 && (ee = D.reduce((e, t) => e + (t?.rowHeight ?? 0), 0));
|
|
3536
|
+
let V = Math.max(F.width + p * 2, t?.width || 0, R), te = Math.max((ee ?? 0) + C.height, t?.height || 0), H = -V / 2, U = -te / 2;
|
|
3247
3537
|
if (S.selectAll("g:not(:first-child)").each((e, t, r) => {
|
|
3248
3538
|
let i = n(r[t]), a = i.attr("transform"), o = 0, s = 0;
|
|
3249
3539
|
if (a) {
|
|
3250
3540
|
let e = RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);
|
|
3251
3541
|
e && (o = parseFloat(e[1]), s = parseFloat(e[2]), i.attr("class").includes("attribute-name") ? o += O : i.attr("class").includes("attribute-keys") ? o += O + k : i.attr("class").includes("attribute-comment") && (o += O + k + A));
|
|
3252
3542
|
}
|
|
3253
|
-
i.attr("transform", `translate(${
|
|
3254
|
-
}), S.select(".name").attr("transform", "translate(" + -
|
|
3543
|
+
i.attr("transform", `translate(${H + p / 2 + o}, ${s + U + C.height + m / 2})`);
|
|
3544
|
+
}), S.select(".name").attr("transform", "translate(" + -C.width / 2 + ", " + (U + m / 2) + ")"), i != null && Un.has(i)) {
|
|
3255
3545
|
let e = r.colorIndex ?? 0;
|
|
3256
3546
|
S.attr("data-color-id", `color-${e % d.length}`);
|
|
3257
3547
|
}
|
|
3258
|
-
let
|
|
3548
|
+
let ne = z.rectangle(H, U, V, te, B), re = S.insert(() => ne, ":first-child").attr("class", "outer-path").attr("style", g.join(""));
|
|
3259
3549
|
E.push(0);
|
|
3260
3550
|
for (let [e, t] of D.entries()) {
|
|
3261
|
-
let n = (e + 1) % 2 == 0 && t.yOffset !== 0, r =
|
|
3262
|
-
...
|
|
3551
|
+
let n = (e + 1) % 2 == 0 && t.yOffset !== 0, r = z.rectangle(H, C.height + U + t?.yOffset, V, t?.rowHeight, {
|
|
3552
|
+
...B,
|
|
3263
3553
|
fill: n ? o : c,
|
|
3264
|
-
stroke:
|
|
3554
|
+
stroke: l
|
|
3265
3555
|
});
|
|
3266
3556
|
S.insert(() => r, "g.label").attr("style", g.join("")).attr("class", `row-rect-${n ? "even" : "odd"}`);
|
|
3267
3557
|
}
|
|
3268
|
-
let
|
|
3269
|
-
if (S.insert(() => G).attr("class", "divider"), W =
|
|
3270
|
-
let e = O + k +
|
|
3271
|
-
W =
|
|
3558
|
+
let ie = 1e-4, W = qn(H, C.height + U, V + H, C.height + U, ie), G = z.polygon(W.map((e) => [e.x, e.y]), B);
|
|
3559
|
+
if (S.insert(() => G).attr("class", "divider"), W = qn(O + H, C.height + U, O + H, te + U, ie), G = z.polygon(W.map((e) => [e.x, e.y]), B), S.insert(() => G).attr("class", "divider"), M) {
|
|
3560
|
+
let e = O + k + H;
|
|
3561
|
+
W = qn(e, C.height + U, e, te + U, ie), G = z.polygon(W.map((e) => [e.x, e.y]), B), S.insert(() => G).attr("class", "divider");
|
|
3272
3562
|
}
|
|
3273
|
-
if (
|
|
3274
|
-
let e = O + k + A +
|
|
3275
|
-
W =
|
|
3563
|
+
if (N) {
|
|
3564
|
+
let e = O + k + A + H;
|
|
3565
|
+
W = qn(e, C.height + U, e, te + U, ie), G = z.polygon(W.map((e) => [e.x, e.y]), B), S.insert(() => G).attr("class", "divider");
|
|
3276
3566
|
}
|
|
3277
3567
|
for (let e of E) {
|
|
3278
|
-
let t =
|
|
3279
|
-
W =
|
|
3568
|
+
let t = C.height + U + e;
|
|
3569
|
+
W = qn(H, t, V + H, t, ie), G = z.polygon(W.map((e) => [e.x, e.y]), B), S.insert(() => G).attr("class", "divider");
|
|
3280
3570
|
}
|
|
3281
|
-
if (
|
|
3282
|
-
if (i != null &&
|
|
3571
|
+
if (I(t, re), v && t.look !== "handDrawn") {
|
|
3572
|
+
if (i != null && Wn.has(i)) S.selectAll("path").attr("style", v);
|
|
3283
3573
|
else {
|
|
3284
3574
|
let e = v.split(";")?.filter((e) => e.includes("stroke"))?.map((e) => `${e}`).join("; ");
|
|
3285
3575
|
S.selectAll("path").attr("style", e ?? ""), S.selectAll(".row-rect-even path").attr("style", v);
|
|
@@ -3289,13 +3579,13 @@ async function rn(e, t) {
|
|
|
3289
3579
|
return K.rect(t, e);
|
|
3290
3580
|
}, S;
|
|
3291
3581
|
}
|
|
3292
|
-
e(
|
|
3293
|
-
async function
|
|
3294
|
-
let u = e.insert("g").attr("class", `label ${
|
|
3295
|
-
t !==
|
|
3296
|
-
let d = u.node().appendChild(await
|
|
3297
|
-
width:
|
|
3298
|
-
style:
|
|
3582
|
+
e(Gn, "erBox");
|
|
3583
|
+
async function Kn(e, t, r, a = 0, o = 0, c = [], l = "") {
|
|
3584
|
+
let u = e.insert("g").attr("class", `label ${c.join(" ")}`).attr("transform", `translate(${a}, ${o})`).attr("style", l);
|
|
3585
|
+
t !== i(t) && (t = i(t), t = t.replaceAll("<", "<").replaceAll(">", ">"));
|
|
3586
|
+
let d = u.node().appendChild(await v(u, t, {
|
|
3587
|
+
width: h(t, r) + 100,
|
|
3588
|
+
style: l,
|
|
3299
3589
|
useHtmlLabels: r.htmlLabels
|
|
3300
3590
|
}, r));
|
|
3301
3591
|
if (t.includes("<") || t.includes(">")) {
|
|
@@ -3303,7 +3593,7 @@ async function an(e, t, r, i = 0, o = 0, s = [], c = "") {
|
|
|
3303
3593
|
for (e.textContent = e.textContent.replaceAll("<", "<").replaceAll(">", ">"); e.childNodes[0];) e = e.childNodes[0], e.textContent = e.textContent.replaceAll("<", "<").replaceAll(">", ">");
|
|
3304
3594
|
}
|
|
3305
3595
|
let f = d.getBBox();
|
|
3306
|
-
if (
|
|
3596
|
+
if (s(r.htmlLabels)) {
|
|
3307
3597
|
let e = d.children[0];
|
|
3308
3598
|
e.style.textAlign = "start";
|
|
3309
3599
|
let t = n(d);
|
|
@@ -3311,8 +3601,8 @@ async function an(e, t, r, i = 0, o = 0, s = [], c = "") {
|
|
|
3311
3601
|
}
|
|
3312
3602
|
return f;
|
|
3313
3603
|
}
|
|
3314
|
-
e(
|
|
3315
|
-
function
|
|
3604
|
+
e(Kn, "addText");
|
|
3605
|
+
function qn(e, t, n, r, i) {
|
|
3316
3606
|
return e === n ? [
|
|
3317
3607
|
{
|
|
3318
3608
|
x: e - i / 2,
|
|
@@ -3349,25 +3639,25 @@ function on(e, t, n, r, i) {
|
|
|
3349
3639
|
}
|
|
3350
3640
|
];
|
|
3351
3641
|
}
|
|
3352
|
-
e(
|
|
3353
|
-
async function
|
|
3354
|
-
let a = r ? 0 : 3, o = e.insert("g").attr("class",
|
|
3642
|
+
e(qn, "lineToPolygon");
|
|
3643
|
+
async function Jn(e, t, n, r, i = n.class.padding ?? 12) {
|
|
3644
|
+
let a = r ? 0 : 3, o = e.insert("g").attr("class", L(t)).attr("id", t.domId || t.id), s = null, c = null, l = null, u = null, d = 0, f = 0, p = 0;
|
|
3355
3645
|
if (s = o.insert("g").attr("class", "annotation-group text"), t.annotations.length > 0) {
|
|
3356
3646
|
let e = t.annotations[0];
|
|
3357
|
-
await
|
|
3647
|
+
await Yn(s, { text: `\xAB${e}\xBB` }, 0), d = s.node().getBBox().height;
|
|
3358
3648
|
}
|
|
3359
|
-
c = o.insert("g").attr("class", "label-group text"), await
|
|
3649
|
+
c = o.insert("g").attr("class", "label-group text"), await Yn(c, t, 0, ["font-weight: bolder"]);
|
|
3360
3650
|
let m = c.node().getBBox();
|
|
3361
3651
|
f = m.height, l = o.insert("g").attr("class", "members-group text");
|
|
3362
3652
|
let h = 0;
|
|
3363
3653
|
for (let e of t.members) {
|
|
3364
|
-
let t = await
|
|
3654
|
+
let t = await Yn(l, e, h, [e.parseClassifier()]);
|
|
3365
3655
|
h += t + a;
|
|
3366
3656
|
}
|
|
3367
3657
|
p = l.node().getBBox().height, p <= 0 && (p = i / 2), u = o.insert("g").attr("class", "methods-group text");
|
|
3368
3658
|
let g = 0;
|
|
3369
3659
|
for (let e of t.methods) {
|
|
3370
|
-
let t = await
|
|
3660
|
+
let t = await Yn(u, e, g, [e.parseClassifier()]);
|
|
3371
3661
|
g += t + a;
|
|
3372
3662
|
}
|
|
3373
3663
|
let _ = o.node().getBBox();
|
|
@@ -3380,104 +3670,106 @@ async function sn(e, t, n, r, i = n.class.padding ?? 12) {
|
|
|
3380
3670
|
bbox: _
|
|
3381
3671
|
};
|
|
3382
3672
|
}
|
|
3383
|
-
e(
|
|
3384
|
-
async function
|
|
3385
|
-
let
|
|
3386
|
-
p = "text" in t ? t.text : t.label, !d && p.startsWith("\\") && (p = p.substring(1)),
|
|
3387
|
-
let
|
|
3388
|
-
width:
|
|
3673
|
+
e(Jn, "textHelper");
|
|
3674
|
+
async function Yn(e, t, i, a = []) {
|
|
3675
|
+
let o = e.insert("g").attr("class", "label").attr("style", a.join("; ")), l = u(), d = "useHtmlLabels" in t ? t.useHtmlLabels : s(l.htmlLabels) ?? !0, p = "";
|
|
3676
|
+
p = "text" in t ? t.text : t.label, !d && p.startsWith("\\") && (p = p.substring(1)), c(p) && (d = !0);
|
|
3677
|
+
let m = await v(o, r(f(p)), {
|
|
3678
|
+
width: h(p, l) + 50,
|
|
3389
3679
|
classes: "markdown-node-label",
|
|
3390
3680
|
useHtmlLabels: d
|
|
3391
|
-
},
|
|
3681
|
+
}, l), g, _ = 1;
|
|
3392
3682
|
if (d) {
|
|
3393
|
-
let e =
|
|
3394
|
-
|
|
3683
|
+
let e = m.children[0], t = n(m);
|
|
3684
|
+
_ = e.innerHTML.split("<br>").length, e.innerHTML.includes("</math>") && (_ += e.innerHTML.split("<mrow>").length - 1), await O(e), g = e.getBoundingClientRect(), t.attr("width", g.width), t.attr("height", g.height);
|
|
3395
3685
|
} else {
|
|
3396
|
-
|
|
3397
|
-
let e =
|
|
3398
|
-
(
|
|
3686
|
+
a.includes("font-weight: bolder") && n(m).selectAll("tspan").attr("font-weight", ""), _ = m.children.length;
|
|
3687
|
+
let e = m.children[0];
|
|
3688
|
+
(m.textContent === "" || m.textContent.includes(">")) && (e.textContent = p[0] + p.substring(1).replaceAll(">", ">").replaceAll("<", "<").trim(), p[1] === " " && (e.textContent = e.textContent[0] + " " + e.textContent.substring(1))), e.textContent === "undefined" && (e.textContent = ""), g = m.getBBox();
|
|
3399
3689
|
}
|
|
3400
|
-
return
|
|
3690
|
+
return o.attr("transform", "translate(0," + (-g.height / (2 * _) + i) + ")"), g.height;
|
|
3401
3691
|
}
|
|
3402
|
-
e(
|
|
3403
|
-
async function
|
|
3404
|
-
let r =
|
|
3405
|
-
|
|
3406
|
-
let { shapeSvg:
|
|
3407
|
-
|
|
3408
|
-
let g =
|
|
3409
|
-
t.
|
|
3410
|
-
let
|
|
3411
|
-
t.
|
|
3412
|
-
let
|
|
3413
|
-
|
|
3414
|
-
let E =
|
|
3415
|
-
|
|
3416
|
-
let k =
|
|
3417
|
-
|
|
3418
|
-
let
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3692
|
+
e(Yn, "addText");
|
|
3693
|
+
async function Xn(e, t) {
|
|
3694
|
+
let r = a(), { theme: i, themeVariables: o } = r, { useGradient: c, borderColorArray: l } = o, u = r.class.padding ?? 12, d = u, f = t.useHtmlLabels ?? s(r.htmlLabels) ?? !0, p = t;
|
|
3695
|
+
p.annotations = p.annotations ?? [], p.members = p.members ?? [], p.methods = p.methods ?? [];
|
|
3696
|
+
let { shapeSvg: m, bbox: h } = await Jn(e, t, r, f, d);
|
|
3697
|
+
w(m, t.colorIndex, i, l);
|
|
3698
|
+
let { labelStyles: g, nodeStyles: _ } = x(t);
|
|
3699
|
+
t.labelStyle = g, t.cssStyles = p.styles || "";
|
|
3700
|
+
let v = p.styles?.join(";") || _ || "";
|
|
3701
|
+
t.cssStyles ||= v.replaceAll("!important", "").split(";");
|
|
3702
|
+
let y = p.members.length === 0 && p.methods.length === 0 && !r.class?.hideEmptyMembersBox, S = T.svg(m), C = b(t, {});
|
|
3703
|
+
t.look !== "handDrawn" && (C.roughness = 0, C.fillStyle = "solid");
|
|
3704
|
+
let E = Math.max(t.width ?? 0, h.width), D = Math.max(t.height ?? 0, h.height), O = (t.height ?? 0) > h.height;
|
|
3705
|
+
p.members.length === 0 && p.methods.length === 0 ? D += d : p.members.length > 0 && p.methods.length === 0 && (D += d * 2);
|
|
3706
|
+
let k = -E / 2, A = -D / 2, j = y ? u * 2 : p.members.length === 0 && p.methods.length === 0 ? -u : 0;
|
|
3707
|
+
O && (j = u * 2);
|
|
3708
|
+
let M = S.rectangle(k - u, A - u - (y ? u : p.members.length === 0 && p.methods.length === 0 ? -u / 2 : 0), E + 2 * u, D + 2 * u + j, C), N = m.insert(() => M, ":first-child");
|
|
3709
|
+
N.attr("class", "basic label-container outer-path");
|
|
3710
|
+
let P = N.node().getBBox(), F = m.select(".annotation-group").node().getBBox().height - (y ? u / 2 : 0) || 0, L = m.select(".label-group").node().getBBox().height - (y ? u / 2 : 0) || 0, R = m.select(".members-group").node().getBBox().height - (y ? u / 2 : 0) || 0, z = (F + L + A + u - (A - u - (y ? u : p.members.length === 0 && p.methods.length === 0 ? -u / 2 : 0))) / 2;
|
|
3711
|
+
if (m.selectAll(".text").each((e, t, i) => {
|
|
3712
|
+
let a = n(i[t]), o = a.attr("transform"), s = 0;
|
|
3713
|
+
if (o) {
|
|
3714
|
+
let e = RegExp(/translate\(([^,]+),([^)]+)\)/).exec(o);
|
|
3715
|
+
e && (s = parseFloat(e[2]));
|
|
3424
3716
|
}
|
|
3425
|
-
let
|
|
3717
|
+
let c = s + A + u - (y ? u : p.members.length === 0 && p.methods.length === 0 ? -u / 2 : 0);
|
|
3426
3718
|
if (a.attr("class").includes("methods-group")) {
|
|
3427
|
-
let e = Math.max(
|
|
3428
|
-
|
|
3719
|
+
let e = Math.max(R, d / 2);
|
|
3720
|
+
c = O ? Math.max(z, F + L + e + A + d * 2 + u) + d * 2 : F + L + e + A + d * 4 + u;
|
|
3429
3721
|
}
|
|
3430
|
-
|
|
3431
|
-
let
|
|
3432
|
-
(a.attr("class").includes("label-group") || a.attr("class").includes("annotation-group")) && (
|
|
3433
|
-
window.getComputedStyle(n[t]).textAnchor === "middle" && (
|
|
3434
|
-
})), a.attr("transform", `translate(${
|
|
3435
|
-
}),
|
|
3436
|
-
let e =
|
|
3437
|
-
|
|
3722
|
+
p.members.length === 0 && p.methods.length === 0 && r.class?.hideEmptyMembersBox && (c = p.annotations.length > 0 ? s - d : s), f || (c -= 4);
|
|
3723
|
+
let l = k;
|
|
3724
|
+
(a.attr("class").includes("label-group") || a.attr("class").includes("annotation-group")) && (l = -a.node()?.getBBox().width / 2 || 0, m.selectAll("text").each(function(e, t, n) {
|
|
3725
|
+
window.getComputedStyle(n[t]).textAnchor === "middle" && (l = 0);
|
|
3726
|
+
})), a.attr("transform", `translate(${l}, ${c})`);
|
|
3727
|
+
}), p.members.length > 0 || p.methods.length > 0 || y) {
|
|
3728
|
+
let e = F + L + A + u, n = S.line(P.x, e, P.x + P.width, e + .001, C);
|
|
3729
|
+
m.insert(() => n).attr("class", `divider${t.look === "neo" && !c ? " neo-line" : ""}`).attr("style", v);
|
|
3438
3730
|
}
|
|
3439
|
-
if (
|
|
3440
|
-
let e =
|
|
3441
|
-
|
|
3731
|
+
if (y || p.members.length > 0 || p.methods.length > 0) {
|
|
3732
|
+
let e = F + L + R + A + d * 2 + u, n = S.line(P.x, O ? Math.max(z, e) : e, P.x + P.width, (O ? Math.max(z, e) : e) + .001, C);
|
|
3733
|
+
m.insert(() => n).attr("class", `divider${t.look === "neo" && !c ? " neo-line" : ""}`).attr("style", v);
|
|
3442
3734
|
}
|
|
3443
|
-
if (
|
|
3444
|
-
let e = RegExp(/color\s*:\s*([^;]*)/), t = e.exec(
|
|
3735
|
+
if (p.look !== "handDrawn" && m.selectAll("path").attr("style", v), N.select(":nth-child(2)").attr("style", v), m.selectAll(".divider").select("path").attr("style", v), t.labelStyle ? m.selectAll("span").attr("style", t.labelStyle) : m.selectAll("span").attr("style", v), !f) {
|
|
3736
|
+
let e = RegExp(/color\s*:\s*([^;]*)/), t = e.exec(v);
|
|
3445
3737
|
if (t) {
|
|
3446
3738
|
let e = t[0].replace("color", "fill");
|
|
3447
|
-
|
|
3448
|
-
} else if (
|
|
3449
|
-
let t = e.exec(
|
|
3739
|
+
m.selectAll("tspan").attr("style", e);
|
|
3740
|
+
} else if (g) {
|
|
3741
|
+
let t = e.exec(g);
|
|
3450
3742
|
if (t) {
|
|
3451
3743
|
let e = t[0].replace("color", "fill");
|
|
3452
|
-
|
|
3744
|
+
m.selectAll("tspan").attr("style", e);
|
|
3453
3745
|
}
|
|
3454
3746
|
}
|
|
3455
3747
|
}
|
|
3456
|
-
return
|
|
3748
|
+
return I(t, N), t.intersect = function(e) {
|
|
3457
3749
|
return K.rect(t, e);
|
|
3458
|
-
},
|
|
3750
|
+
}, m;
|
|
3459
3751
|
}
|
|
3460
|
-
e(
|
|
3461
|
-
async function
|
|
3462
|
-
let { labelStyles: r, nodeStyles: i } =
|
|
3752
|
+
e(Xn, "classBox");
|
|
3753
|
+
async function Zn(e, t) {
|
|
3754
|
+
let { labelStyles: r, nodeStyles: i } = x(t);
|
|
3463
3755
|
t.labelStyle = r;
|
|
3464
|
-
let
|
|
3465
|
-
g =
|
|
3466
|
-
let _ = g, v = await $(h,
|
|
3467
|
-
if (_ += v + 20,
|
|
3468
|
-
let e = await $(h, `${
|
|
3756
|
+
let o = t, s = t, c = "verifyMethod" in t, l = L(t), u = a(), { themeVariables: d } = u, { borderColorArray: f, requirementEdgeLabelBackground: p } = d, m = u.layout === "elk" ? "start" : "center", h = e.insert("g").attr("class", l).attr("id", t.domId ?? t.id), g;
|
|
3757
|
+
g = c ? await $(h, `<<${o.type}>>`, 0, t.labelStyle) : await $(h, "<<Element>>", 0, t.labelStyle);
|
|
3758
|
+
let _ = g, v = await $(h, o.name, _, t.labelStyle + "; font-weight: bold;");
|
|
3759
|
+
if (_ += v + 20, c) {
|
|
3760
|
+
let e = await $(h, `${o.requirementId ? `ID: ${o.requirementId}` : ""}`, _, t.labelStyle, m);
|
|
3469
3761
|
_ += e;
|
|
3470
|
-
let n = await $(h, `${
|
|
3762
|
+
let n = await $(h, `${o.text ? `Text: ${o.text}` : ""}`, _, t.labelStyle, m);
|
|
3471
3763
|
_ += n;
|
|
3472
|
-
let r = await $(h, `${
|
|
3473
|
-
_ += r, await $(h, `${
|
|
3764
|
+
let r = await $(h, `${o.risk ? `Risk: ${o.risk}` : ""}`, _, t.labelStyle, m);
|
|
3765
|
+
_ += r, await $(h, `${o.verifyMethod ? `Verification: ${o.verifyMethod}` : ""}`, _, t.labelStyle, m);
|
|
3474
3766
|
} else {
|
|
3475
|
-
let e = await $(h, `${
|
|
3476
|
-
_ += e, await $(h, `${
|
|
3767
|
+
let e = await $(h, `${s.type ? `Type: ${s.type}` : ""}`, _, t.labelStyle, m);
|
|
3768
|
+
_ += e, await $(h, `${s.docRef ? `Doc Ref: ${s.docRef}` : ""}`, _, t.labelStyle, m);
|
|
3477
3769
|
}
|
|
3478
|
-
let
|
|
3770
|
+
let y = (h.node()?.getBBox().width ?? 200) + 20, S = (h.node()?.getBBox().height ?? 200) + 20, C = -y / 2, w = -S / 2, E = T.svg(h), D = b(t, {});
|
|
3479
3771
|
t.look !== "handDrawn" && (D.roughness = 0, D.fillStyle = "solid");
|
|
3480
|
-
let O = E.rectangle(
|
|
3772
|
+
let O = E.rectangle(C, w, y, S, D), k = h.insert(() => O, ":first-child");
|
|
3481
3773
|
if (k.attr("class", "basic label-container outer-path").attr("style", i), f?.length) {
|
|
3482
3774
|
let e = t.colorIndex ?? 0;
|
|
3483
3775
|
h.attr("data-color-id", `color-${e % f.length}`);
|
|
@@ -3488,50 +3780,50 @@ async function un(e, t) {
|
|
|
3488
3780
|
let e = RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);
|
|
3489
3781
|
e && (o = parseFloat(e[1]), s = parseFloat(e[2]));
|
|
3490
3782
|
}
|
|
3491
|
-
let c = s - S / 2, l =
|
|
3783
|
+
let c = s - S / 2, l = C + 10;
|
|
3492
3784
|
(t === 0 || t === 1) && (l = o), i.attr("transform", `translate(${l}, ${c + 20})`);
|
|
3493
3785
|
}), _ > g + v + 20) {
|
|
3494
|
-
let e =
|
|
3786
|
+
let e = w + g + v + 20, n;
|
|
3495
3787
|
if (t.look === "neo") {
|
|
3496
3788
|
let t = .001, r = [
|
|
3497
|
-
[
|
|
3498
|
-
[
|
|
3499
|
-
[
|
|
3500
|
-
[
|
|
3789
|
+
[C, e],
|
|
3790
|
+
[C + y, e],
|
|
3791
|
+
[C + y, e + t],
|
|
3792
|
+
[C, e + t]
|
|
3501
3793
|
];
|
|
3502
3794
|
n = E.polygon(r, D);
|
|
3503
|
-
} else n = E.line(
|
|
3795
|
+
} else n = E.line(C, e, C + y, e, D);
|
|
3504
3796
|
h.insert(() => n).attr("class", "divider");
|
|
3505
3797
|
}
|
|
3506
|
-
return
|
|
3798
|
+
return I(t, k), t.intersect = function(e) {
|
|
3507
3799
|
return K.rect(t, e);
|
|
3508
3800
|
}, i && t.look !== "handDrawn" && (p || f?.length) && h.selectAll("path").attr("style", i), h;
|
|
3509
3801
|
}
|
|
3510
|
-
e(
|
|
3511
|
-
async function $(e, t,
|
|
3802
|
+
e(Zn, "requirementBox");
|
|
3803
|
+
async function $(e, t, i, o = "", s = "center") {
|
|
3512
3804
|
if (t === "") return 0;
|
|
3513
|
-
let
|
|
3514
|
-
width:
|
|
3805
|
+
let c = e.insert("g").attr("class", "label").attr("style", o), l = a(), u = l.htmlLabels ?? !0, d = await v(c, r(f(t)), {
|
|
3806
|
+
width: h(t, l) + 50,
|
|
3515
3807
|
classes: "markdown-node-label",
|
|
3516
|
-
useHtmlLabels:
|
|
3517
|
-
style:
|
|
3518
|
-
},
|
|
3519
|
-
if (
|
|
3808
|
+
useHtmlLabels: u,
|
|
3809
|
+
style: o
|
|
3810
|
+
}, l), p;
|
|
3811
|
+
if (u) {
|
|
3520
3812
|
let e = d.children[0], t = n(d);
|
|
3521
|
-
|
|
3813
|
+
s === "start" && n(e).style("text-align", "left"), p = e.getBoundingClientRect(), t.attr("width", p.width), t.attr("height", p.height);
|
|
3522
3814
|
} else {
|
|
3523
3815
|
let e = d.children[0];
|
|
3524
|
-
for (let t of e.children)
|
|
3525
|
-
if (
|
|
3816
|
+
for (let t of e.children) o && t.setAttribute("style", o);
|
|
3817
|
+
if (s === "start") {
|
|
3526
3818
|
e.setAttribute("text-anchor", "start");
|
|
3527
3819
|
for (let t of e.children) t.setAttribute("text-anchor", "start");
|
|
3528
3820
|
}
|
|
3529
3821
|
p = d.getBBox(), p.height += 6;
|
|
3530
3822
|
}
|
|
3531
|
-
return
|
|
3823
|
+
return c.attr("transform", `translate(${-p.width / 2},${-p.height / 2 + i})`), p.height;
|
|
3532
3824
|
}
|
|
3533
3825
|
e($, "addText");
|
|
3534
|
-
var
|
|
3826
|
+
var Qn = /* @__PURE__ */ e((e) => {
|
|
3535
3827
|
switch (e) {
|
|
3536
3828
|
case "Very High": return "red";
|
|
3537
3829
|
case "High": return "orange";
|
|
@@ -3540,12 +3832,12 @@ var dn = /* @__PURE__ */ e((e) => {
|
|
|
3540
3832
|
case "Very Low": return "lightblue";
|
|
3541
3833
|
}
|
|
3542
3834
|
}, "colorFromPriority");
|
|
3543
|
-
async function
|
|
3544
|
-
let { labelStyles: r, nodeStyles: i } =
|
|
3835
|
+
async function $n(e, t, { config: n }) {
|
|
3836
|
+
let { labelStyles: r, nodeStyles: i } = x(t);
|
|
3545
3837
|
t.labelStyle = r || "";
|
|
3546
3838
|
let a = t.width;
|
|
3547
3839
|
t.width = (t.width ?? 200) - 10;
|
|
3548
|
-
let { shapeSvg: o, bbox: s, label: c } = await
|
|
3840
|
+
let { shapeSvg: o, bbox: s, label: c } = await P(e, t, L(t)), l = t.padding || 10, u = "", d;
|
|
3549
3841
|
"ticket" in t && t.ticket && n?.kanban?.ticketBaseUrl && (u = n?.kanban?.ticketBaseUrl.replace("#TICKET#", t.ticket), d = o.insert("svg:a", ":first-child").attr("class", "kanban-ticket-link").attr("xlink:href", u).attr("target", "_blank"));
|
|
3550
3842
|
let f = {
|
|
3551
3843
|
useHtmlLabels: t.useHtmlLabels,
|
|
@@ -3555,34 +3847,34 @@ async function fn(e, t, { config: n }) {
|
|
|
3555
3847
|
padding: t.padding || 8,
|
|
3556
3848
|
centerLabel: !1
|
|
3557
3849
|
}, p, m;
|
|
3558
|
-
d ? {label: p, bbox: m} = await
|
|
3559
|
-
let { label: h, bbox: g } = await
|
|
3850
|
+
d ? {label: p, bbox: m} = await F(d, "ticket" in t && t.ticket || "", f) : {label: p, bbox: m} = await F(o, "ticket" in t && t.ticket || "", f);
|
|
3851
|
+
let { label: h, bbox: g } = await F(o, "assigned" in t && t.assigned || "", f);
|
|
3560
3852
|
t.width = a;
|
|
3561
|
-
let _ = t?.width || 0, v = Math.max(m.height, g.height) / 2,
|
|
3853
|
+
let _ = t?.width || 0, v = Math.max(m.height, g.height) / 2, y = Math.max(s.height + 20, t?.height || 0) + v, S = -_ / 2, C = -y / 2;
|
|
3562
3854
|
c.attr("transform", "translate(" + (l - _ / 2) + ", " + (-v - s.height / 2) + ")"), p.attr("transform", "translate(" + (l - _ / 2) + ", " + (-v + s.height / 2) + ")"), h.attr("transform", "translate(" + (l + _ / 2 - g.width - 20) + ", " + (-v + s.height / 2) + ")");
|
|
3563
|
-
let
|
|
3855
|
+
let w, { rx: E, ry: D } = t, { cssStyles: O } = t;
|
|
3564
3856
|
if (t.look === "handDrawn") {
|
|
3565
|
-
let e =
|
|
3566
|
-
|
|
3857
|
+
let e = T.svg(o), n = b(t, {}), r = E || D ? e.path(q(S, C, _, y, E || 0), n) : e.rectangle(S, C, _, y, n);
|
|
3858
|
+
w = o.insert(() => r, ":first-child"), w.attr("class", "basic label-container").attr("style", O || null);
|
|
3567
3859
|
} else {
|
|
3568
|
-
|
|
3860
|
+
w = o.insert("rect", ":first-child"), w.attr("class", "basic label-container __APA__").attr("style", i).attr("rx", E ?? 5).attr("ry", D ?? 5).attr("x", S).attr("y", C).attr("width", _).attr("height", y);
|
|
3569
3861
|
let e = "priority" in t && t.priority;
|
|
3570
3862
|
if (e) {
|
|
3571
|
-
let t = o.append("line"), n = S + 2, r =
|
|
3572
|
-
t.attr("x1", n).attr("y1", r).attr("x2", n).attr("y2", i).attr("stroke-width", "4").attr("stroke",
|
|
3863
|
+
let t = o.append("line"), n = S + 2, r = C + Math.floor((E ?? 0) / 2), i = C + y - Math.floor((E ?? 0) / 2);
|
|
3864
|
+
t.attr("x1", n).attr("y1", r).attr("x2", n).attr("y2", i).attr("stroke-width", "4").attr("stroke", Qn(e));
|
|
3573
3865
|
}
|
|
3574
3866
|
}
|
|
3575
|
-
return
|
|
3867
|
+
return I(t, w), t.height = y, t.intersect = function(e) {
|
|
3576
3868
|
return K.rect(t, e);
|
|
3577
3869
|
}, o;
|
|
3578
3870
|
}
|
|
3579
|
-
e(
|
|
3580
|
-
async function
|
|
3581
|
-
let { labelStyles: r, nodeStyles: i } =
|
|
3871
|
+
e($n, "kanbanItem");
|
|
3872
|
+
async function er(e, n) {
|
|
3873
|
+
let { labelStyles: r, nodeStyles: i } = x(n);
|
|
3582
3874
|
n.labelStyle = r;
|
|
3583
|
-
let { shapeSvg: a, bbox: o, halfPadding: s, label: c } = await
|
|
3875
|
+
let { shapeSvg: a, bbox: o, halfPadding: s, label: c } = await P(e, n, L(n)), l = o.width + 10 * s, u = o.height + 8 * s, d = .15 * l, { cssStyles: f } = n, m = o.width + 20, h = o.height + 20, g = Math.max(l, m), _ = Math.max(u, h);
|
|
3584
3876
|
c.attr("transform", `translate(${-o.width / 2}, ${-o.height / 2})`);
|
|
3585
|
-
let v,
|
|
3877
|
+
let v, y = `M0 0
|
|
3586
3878
|
a${d},${d} 1 0,0 ${g * .25},${-1 * _ * .1}
|
|
3587
3879
|
a${d},${d} 1 0,0 ${g * .25},0
|
|
3588
3880
|
a${d},${d} 1 0,0 ${g * .25},0
|
|
@@ -3602,49 +3894,49 @@ async function pn(e, n) {
|
|
|
3602
3894
|
a${d},${d} 1 0,0 ${g * .1},${-1 * _ * .33}
|
|
3603
3895
|
H0 V0 Z`;
|
|
3604
3896
|
if (n.look === "handDrawn") {
|
|
3605
|
-
let e =
|
|
3606
|
-
v = a.insert(() => r, ":first-child"), v.attr("class", "basic label-container").attr("style",
|
|
3607
|
-
} else v = a.insert("path", ":first-child").attr("class", "basic label-container").attr("style", i).attr("d",
|
|
3608
|
-
return v.attr("transform", `translate(${-g / 2}, ${-_ / 2})`),
|
|
3897
|
+
let e = T.svg(a), t = b(n, {}), r = e.path(y, t);
|
|
3898
|
+
v = a.insert(() => r, ":first-child"), v.attr("class", "basic label-container").attr("style", p(f));
|
|
3899
|
+
} else v = a.insert("path", ":first-child").attr("class", "basic label-container").attr("style", i).attr("d", y);
|
|
3900
|
+
return v.attr("transform", `translate(${-g / 2}, ${-_ / 2})`), I(n, v), n.calcIntersect = function(e, t) {
|
|
3609
3901
|
return K.rect(e, t);
|
|
3610
3902
|
}, n.intersect = function(e) {
|
|
3611
3903
|
return t.info("Bang intersect", n, e), K.rect(n, e);
|
|
3612
3904
|
}, a;
|
|
3613
3905
|
}
|
|
3614
|
-
e(
|
|
3615
|
-
async function
|
|
3616
|
-
let { labelStyles: r, nodeStyles: i } =
|
|
3906
|
+
e(er, "bang");
|
|
3907
|
+
async function tr(e, n) {
|
|
3908
|
+
let { labelStyles: r, nodeStyles: i } = x(n);
|
|
3617
3909
|
n.labelStyle = r;
|
|
3618
|
-
let { shapeSvg: a, bbox: o, halfPadding: s, label: c } = await
|
|
3910
|
+
let { shapeSvg: a, bbox: o, halfPadding: s, label: c } = await P(e, n, L(n)), l = o.width + 2 * s, u = o.height + 2 * s, d = .15 * l, f = .25 * l, m = .35 * l, h = .2 * l, { cssStyles: g } = n, _, v = `M0 0
|
|
3619
3911
|
a${d},${d} 0 0,1 ${l * .25},${-1 * l * .1}
|
|
3620
|
-
a${
|
|
3912
|
+
a${m},${m} 1 0,1 ${l * .4},${-1 * l * .1}
|
|
3621
3913
|
a${f},${f} 1 0,1 ${l * .35},${l * .2}
|
|
3622
3914
|
|
|
3623
3915
|
a${d},${d} 1 0,1 ${l * .15},${u * .35}
|
|
3624
|
-
a${
|
|
3916
|
+
a${h},${h} 1 0,1 ${-1 * l * .15},${u * .65}
|
|
3625
3917
|
|
|
3626
3918
|
a${f},${d} 1 0,1 ${-1 * l * .25},${l * .15}
|
|
3627
|
-
a${
|
|
3919
|
+
a${m},${m} 1 0,1 ${-1 * l * .5},0
|
|
3628
3920
|
a${d},${d} 1 0,1 ${-1 * l * .25},${-1 * l * .15}
|
|
3629
3921
|
|
|
3630
3922
|
a${d},${d} 1 0,1 ${-1 * l * .1},${-1 * u * .35}
|
|
3631
|
-
a${
|
|
3923
|
+
a${h},${h} 1 0,1 ${l * .1},${-1 * u * .65}
|
|
3632
3924
|
H0 V0 Z`;
|
|
3633
3925
|
if (n.look === "handDrawn") {
|
|
3634
|
-
let e =
|
|
3635
|
-
_ = a.insert(() => r, ":first-child"), _.attr("class", "basic label-container").attr("style",
|
|
3926
|
+
let e = T.svg(a), t = b(n, {}), r = e.path(v, t);
|
|
3927
|
+
_ = a.insert(() => r, ":first-child"), _.attr("class", "basic label-container").attr("style", p(g));
|
|
3636
3928
|
} else _ = a.insert("path", ":first-child").attr("class", "basic label-container").attr("style", i).attr("d", v);
|
|
3637
|
-
return c.attr("transform", `translate(${-o.width / 2}, ${-o.height / 2})`), _.attr("transform", `translate(${-l / 2}, ${-u / 2})`),
|
|
3929
|
+
return c.attr("transform", `translate(${-o.width / 2}, ${-o.height / 2})`), _.attr("transform", `translate(${-l / 2}, ${-u / 2})`), I(n, _), n.calcIntersect = function(e, t) {
|
|
3638
3930
|
return K.rect(e, t);
|
|
3639
3931
|
}, n.intersect = function(e) {
|
|
3640
3932
|
return t.info("Cloud intersect", n, e), K.rect(n, e);
|
|
3641
3933
|
}, a;
|
|
3642
3934
|
}
|
|
3643
|
-
e(
|
|
3644
|
-
async function
|
|
3645
|
-
let { labelStyles: n, nodeStyles: r } =
|
|
3935
|
+
e(tr, "cloud");
|
|
3936
|
+
async function nr(e, t) {
|
|
3937
|
+
let { labelStyles: n, nodeStyles: r } = x(t);
|
|
3646
3938
|
t.labelStyle = n;
|
|
3647
|
-
let { shapeSvg: i, bbox: a, halfPadding: o, label: s } = await
|
|
3939
|
+
let { shapeSvg: i, bbox: a, halfPadding: o, label: s } = await P(e, t, L(t)), c = a.width + 8 * o, l = a.height + 2 * o, u = t.look === "neo" ? `
|
|
3648
3940
|
M${-c / 2} ${l / 2 - 5}
|
|
3649
3941
|
v${-l + 10}
|
|
3650
3942
|
q0,-5 5,-5
|
|
@@ -3667,18 +3959,18 @@ async function hn(e, t) {
|
|
|
3667
3959
|
`;
|
|
3668
3960
|
if (!t.domId) throw Error(`defaultMindmapNode: node "${t.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);
|
|
3669
3961
|
let d = i.append("path").attr("id", t.domId).attr("class", "node-bkg node-" + t.type).attr("style", r).attr("d", u);
|
|
3670
|
-
return i.append("line").attr("class", "node-line-").attr("x1", -c / 2).attr("y1", l / 2).attr("x2", c / 2).attr("y2", l / 2), s.attr("transform", `translate(${-a.width / 2}, ${-a.height / 2})`), i.append(() => s.node()),
|
|
3962
|
+
return i.append("line").attr("class", "node-line-").attr("x1", -c / 2).attr("y1", l / 2).attr("x2", c / 2).attr("y2", l / 2), s.attr("transform", `translate(${-a.width / 2}, ${-a.height / 2})`), i.append(() => s.node()), I(t, d), t.calcIntersect = function(e, t) {
|
|
3671
3963
|
return K.rect(e, t);
|
|
3672
3964
|
}, t.intersect = function(e) {
|
|
3673
3965
|
return K.rect(t, e);
|
|
3674
3966
|
}, i;
|
|
3675
3967
|
}
|
|
3676
|
-
e(
|
|
3677
|
-
async function
|
|
3678
|
-
return
|
|
3968
|
+
e(nr, "defaultMindmapNode");
|
|
3969
|
+
async function rr(e, t) {
|
|
3970
|
+
return Ae(e, t, { padding: t.padding ?? 0 });
|
|
3679
3971
|
}
|
|
3680
|
-
e(
|
|
3681
|
-
var
|
|
3972
|
+
e(rr, "mindmapCircle");
|
|
3973
|
+
var ir = [
|
|
3682
3974
|
{
|
|
3683
3975
|
semanticName: "Process",
|
|
3684
3976
|
name: "Rectangle",
|
|
@@ -3690,7 +3982,7 @@ var _n = [
|
|
|
3690
3982
|
"rectangle"
|
|
3691
3983
|
],
|
|
3692
3984
|
internalAliases: ["squareRect"],
|
|
3693
|
-
handler:
|
|
3985
|
+
handler: gn
|
|
3694
3986
|
},
|
|
3695
3987
|
{
|
|
3696
3988
|
semanticName: "Event",
|
|
@@ -3699,7 +3991,7 @@ var _n = [
|
|
|
3699
3991
|
description: "Represents an event",
|
|
3700
3992
|
aliases: ["event"],
|
|
3701
3993
|
internalAliases: ["roundedRect"],
|
|
3702
|
-
handler:
|
|
3994
|
+
handler: fn
|
|
3703
3995
|
},
|
|
3704
3996
|
{
|
|
3705
3997
|
semanticName: "Terminal Point",
|
|
@@ -3707,7 +3999,7 @@ var _n = [
|
|
|
3707
3999
|
shortName: "stadium",
|
|
3708
4000
|
description: "Terminal point",
|
|
3709
4001
|
aliases: ["terminal", "pill"],
|
|
3710
|
-
handler:
|
|
4002
|
+
handler: yn
|
|
3711
4003
|
},
|
|
3712
4004
|
{
|
|
3713
4005
|
semanticName: "Subprocess",
|
|
@@ -3720,7 +4012,7 @@ var _n = [
|
|
|
3720
4012
|
"framed-rectangle",
|
|
3721
4013
|
"subroutine"
|
|
3722
4014
|
],
|
|
3723
|
-
handler:
|
|
4015
|
+
handler: wn
|
|
3724
4016
|
},
|
|
3725
4017
|
{
|
|
3726
4018
|
semanticName: "Database",
|
|
@@ -3732,7 +4024,7 @@ var _n = [
|
|
|
3732
4024
|
"database",
|
|
3733
4025
|
"cylinder"
|
|
3734
4026
|
],
|
|
3735
|
-
handler:
|
|
4027
|
+
handler: Ge
|
|
3736
4028
|
},
|
|
3737
4029
|
{
|
|
3738
4030
|
semanticName: "Data Store",
|
|
@@ -3740,7 +4032,7 @@ var _n = [
|
|
|
3740
4032
|
shortName: "datastore",
|
|
3741
4033
|
description: "Data flow diagram data store",
|
|
3742
4034
|
aliases: ["data-store"],
|
|
3743
|
-
handler:
|
|
4035
|
+
handler: qe
|
|
3744
4036
|
},
|
|
3745
4037
|
{
|
|
3746
4038
|
semanticName: "Folder",
|
|
@@ -3748,35 +4040,35 @@ var _n = [
|
|
|
3748
4040
|
shortName: "folder",
|
|
3749
4041
|
description: "Folder or directory",
|
|
3750
4042
|
aliases: ["directory"],
|
|
3751
|
-
handler:
|
|
4043
|
+
handler: tt
|
|
3752
4044
|
},
|
|
3753
4045
|
{
|
|
3754
4046
|
semanticName: "Bucket",
|
|
3755
4047
|
name: "Bucket",
|
|
3756
4048
|
shortName: "bucket",
|
|
3757
4049
|
description: "Object storage bucket",
|
|
3758
|
-
handler:
|
|
4050
|
+
handler: fe
|
|
3759
4051
|
},
|
|
3760
4052
|
{
|
|
3761
4053
|
semanticName: "Console",
|
|
3762
4054
|
name: "Console (terminal window)",
|
|
3763
4055
|
shortName: "console",
|
|
3764
4056
|
description: "Terminal or console window",
|
|
3765
|
-
handler:
|
|
4057
|
+
handler: Me
|
|
3766
4058
|
},
|
|
3767
4059
|
{
|
|
3768
4060
|
semanticName: "Browser",
|
|
3769
4061
|
name: "Browser",
|
|
3770
4062
|
shortName: "browser",
|
|
3771
4063
|
description: "Browser window",
|
|
3772
|
-
handler:
|
|
4064
|
+
handler: Ee
|
|
3773
4065
|
},
|
|
3774
4066
|
{
|
|
3775
4067
|
semanticName: "Person",
|
|
3776
4068
|
name: "Person",
|
|
3777
4069
|
shortName: "person",
|
|
3778
4070
|
description: "Person (circular head above a rounded body)",
|
|
3779
|
-
handler:
|
|
4071
|
+
handler: ze
|
|
3780
4072
|
},
|
|
3781
4073
|
{
|
|
3782
4074
|
semanticName: "Start",
|
|
@@ -3784,7 +4076,7 @@ var _n = [
|
|
|
3784
4076
|
shortName: "circle",
|
|
3785
4077
|
description: "Starting point",
|
|
3786
4078
|
aliases: ["circ"],
|
|
3787
|
-
handler:
|
|
4079
|
+
handler: Ae
|
|
3788
4080
|
},
|
|
3789
4081
|
{
|
|
3790
4082
|
semanticName: "Bang",
|
|
@@ -3792,7 +4084,7 @@ var _n = [
|
|
|
3792
4084
|
shortName: "bang",
|
|
3793
4085
|
description: "Bang",
|
|
3794
4086
|
aliases: ["bang"],
|
|
3795
|
-
handler:
|
|
4087
|
+
handler: er
|
|
3796
4088
|
},
|
|
3797
4089
|
{
|
|
3798
4090
|
semanticName: "Cloud",
|
|
@@ -3800,7 +4092,7 @@ var _n = [
|
|
|
3800
4092
|
shortName: "cloud",
|
|
3801
4093
|
description: "cloud",
|
|
3802
4094
|
aliases: ["cloud"],
|
|
3803
|
-
handler:
|
|
4095
|
+
handler: tr
|
|
3804
4096
|
},
|
|
3805
4097
|
{
|
|
3806
4098
|
semanticName: "Decision",
|
|
@@ -3812,7 +4104,7 @@ var _n = [
|
|
|
3812
4104
|
"diamond",
|
|
3813
4105
|
"question"
|
|
3814
4106
|
],
|
|
3815
|
-
handler:
|
|
4107
|
+
handler: ln
|
|
3816
4108
|
},
|
|
3817
4109
|
{
|
|
3818
4110
|
semanticName: "Prepare Conditional",
|
|
@@ -3820,7 +4112,7 @@ var _n = [
|
|
|
3820
4112
|
shortName: "hex",
|
|
3821
4113
|
description: "Preparation or condition step",
|
|
3822
4114
|
aliases: ["hexagon", "prepare"],
|
|
3823
|
-
handler:
|
|
4115
|
+
handler: at
|
|
3824
4116
|
},
|
|
3825
4117
|
{
|
|
3826
4118
|
semanticName: "Data Input/Output",
|
|
@@ -3829,7 +4121,7 @@ var _n = [
|
|
|
3829
4121
|
description: "Represents input or output",
|
|
3830
4122
|
aliases: ["lean-right", "in-out"],
|
|
3831
4123
|
internalAliases: ["lean_right"],
|
|
3832
|
-
handler:
|
|
4124
|
+
handler: ht
|
|
3833
4125
|
},
|
|
3834
4126
|
{
|
|
3835
4127
|
semanticName: "Data Input/Output",
|
|
@@ -3838,7 +4130,7 @@ var _n = [
|
|
|
3838
4130
|
description: "Represents output or input",
|
|
3839
4131
|
aliases: ["lean-left", "out-in"],
|
|
3840
4132
|
internalAliases: ["lean_left"],
|
|
3841
|
-
handler:
|
|
4133
|
+
handler: mt
|
|
3842
4134
|
},
|
|
3843
4135
|
{
|
|
3844
4136
|
semanticName: "Priority Action",
|
|
@@ -3850,7 +4142,7 @@ var _n = [
|
|
|
3850
4142
|
"trapezoid-bottom",
|
|
3851
4143
|
"trapezoid"
|
|
3852
4144
|
],
|
|
3853
|
-
handler:
|
|
4145
|
+
handler: Fn
|
|
3854
4146
|
},
|
|
3855
4147
|
{
|
|
3856
4148
|
semanticName: "Manual Operation",
|
|
@@ -3863,7 +4155,7 @@ var _n = [
|
|
|
3863
4155
|
"inv-trapezoid"
|
|
3864
4156
|
],
|
|
3865
4157
|
internalAliases: ["inv_trapezoid"],
|
|
3866
|
-
handler:
|
|
4158
|
+
handler: ft
|
|
3867
4159
|
},
|
|
3868
4160
|
{
|
|
3869
4161
|
semanticName: "Stop",
|
|
@@ -3872,14 +4164,14 @@ var _n = [
|
|
|
3872
4164
|
description: "Represents a stop point",
|
|
3873
4165
|
aliases: ["double-circle"],
|
|
3874
4166
|
internalAliases: ["doublecircle"],
|
|
3875
|
-
handler:
|
|
4167
|
+
handler: Ye
|
|
3876
4168
|
},
|
|
3877
4169
|
{
|
|
3878
4170
|
semanticName: "Text Block",
|
|
3879
4171
|
name: "Text Block",
|
|
3880
4172
|
shortName: "text",
|
|
3881
4173
|
description: "Text block",
|
|
3882
|
-
handler:
|
|
4174
|
+
handler: On
|
|
3883
4175
|
},
|
|
3884
4176
|
{
|
|
3885
4177
|
semanticName: "Card",
|
|
@@ -3887,7 +4179,7 @@ var _n = [
|
|
|
3887
4179
|
shortName: "notch-rect",
|
|
3888
4180
|
description: "Represents a card",
|
|
3889
4181
|
aliases: ["card", "notched-rectangle"],
|
|
3890
|
-
handler:
|
|
4182
|
+
handler: Oe
|
|
3891
4183
|
},
|
|
3892
4184
|
{
|
|
3893
4185
|
semanticName: "Lined/Shaded Process",
|
|
@@ -3900,7 +4192,7 @@ var _n = [
|
|
|
3900
4192
|
"lin-proc",
|
|
3901
4193
|
"shaded-process"
|
|
3902
4194
|
],
|
|
3903
|
-
handler:
|
|
4195
|
+
handler: mn
|
|
3904
4196
|
},
|
|
3905
4197
|
{
|
|
3906
4198
|
semanticName: "Start",
|
|
@@ -3909,7 +4201,7 @@ var _n = [
|
|
|
3909
4201
|
description: "Small starting point",
|
|
3910
4202
|
aliases: ["start", "small-circle"],
|
|
3911
4203
|
internalAliases: ["stateStart"],
|
|
3912
|
-
handler:
|
|
4204
|
+
handler: Sn
|
|
3913
4205
|
},
|
|
3914
4206
|
{
|
|
3915
4207
|
semanticName: "Stop",
|
|
@@ -3918,7 +4210,7 @@ var _n = [
|
|
|
3918
4210
|
description: "Stop point",
|
|
3919
4211
|
aliases: ["stop", "framed-circle"],
|
|
3920
4212
|
internalAliases: ["stateEnd"],
|
|
3921
|
-
handler:
|
|
4213
|
+
handler: xn
|
|
3922
4214
|
},
|
|
3923
4215
|
{
|
|
3924
4216
|
semanticName: "Fork/Join",
|
|
@@ -3927,7 +4219,7 @@ var _n = [
|
|
|
3927
4219
|
description: "Fork or join in process flow",
|
|
3928
4220
|
aliases: ["join"],
|
|
3929
4221
|
internalAliases: ["forkJoin"],
|
|
3930
|
-
handler:
|
|
4222
|
+
handler: nt
|
|
3931
4223
|
},
|
|
3932
4224
|
{
|
|
3933
4225
|
semanticName: "Collate",
|
|
@@ -3935,7 +4227,7 @@ var _n = [
|
|
|
3935
4227
|
shortName: "hourglass",
|
|
3936
4228
|
description: "Represents a collate operation",
|
|
3937
4229
|
aliases: ["hourglass", "collate"],
|
|
3938
|
-
handler:
|
|
4230
|
+
handler: ot
|
|
3939
4231
|
},
|
|
3940
4232
|
{
|
|
3941
4233
|
semanticName: "Comment",
|
|
@@ -3943,21 +4235,21 @@ var _n = [
|
|
|
3943
4235
|
shortName: "brace",
|
|
3944
4236
|
description: "Adds a comment",
|
|
3945
4237
|
aliases: ["comment", "brace-l"],
|
|
3946
|
-
handler:
|
|
4238
|
+
handler: Fe
|
|
3947
4239
|
},
|
|
3948
4240
|
{
|
|
3949
4241
|
semanticName: "Comment Right",
|
|
3950
4242
|
name: "Curly Brace",
|
|
3951
4243
|
shortName: "brace-r",
|
|
3952
4244
|
description: "Adds a comment",
|
|
3953
|
-
handler:
|
|
4245
|
+
handler: Ie
|
|
3954
4246
|
},
|
|
3955
4247
|
{
|
|
3956
4248
|
semanticName: "Comment with braces on both sides",
|
|
3957
4249
|
name: "Curly Braces",
|
|
3958
4250
|
shortName: "braces",
|
|
3959
4251
|
description: "Adds a comment",
|
|
3960
|
-
handler:
|
|
4252
|
+
handler: Le
|
|
3961
4253
|
},
|
|
3962
4254
|
{
|
|
3963
4255
|
semanticName: "Com Link",
|
|
@@ -3965,7 +4257,7 @@ var _n = [
|
|
|
3965
4257
|
shortName: "bolt",
|
|
3966
4258
|
description: "Communication link",
|
|
3967
4259
|
aliases: ["com-link", "lightning-bolt"],
|
|
3968
|
-
handler:
|
|
4260
|
+
handler: gt
|
|
3969
4261
|
},
|
|
3970
4262
|
{
|
|
3971
4263
|
semanticName: "Document",
|
|
@@ -3973,7 +4265,7 @@ var _n = [
|
|
|
3973
4265
|
shortName: "doc",
|
|
3974
4266
|
description: "Represents a document",
|
|
3975
4267
|
aliases: ["doc", "document"],
|
|
3976
|
-
handler:
|
|
4268
|
+
handler: Bn
|
|
3977
4269
|
},
|
|
3978
4270
|
{
|
|
3979
4271
|
semanticName: "Delay",
|
|
@@ -3981,7 +4273,7 @@ var _n = [
|
|
|
3981
4273
|
shortName: "delay",
|
|
3982
4274
|
description: "Represents a delay",
|
|
3983
4275
|
aliases: ["half-rounded-rectangle"],
|
|
3984
|
-
handler:
|
|
4276
|
+
handler: rt
|
|
3985
4277
|
},
|
|
3986
4278
|
{
|
|
3987
4279
|
semanticName: "Direct Access Storage",
|
|
@@ -3989,7 +4281,7 @@ var _n = [
|
|
|
3989
4281
|
shortName: "h-cyl",
|
|
3990
4282
|
description: "Direct access storage",
|
|
3991
4283
|
aliases: ["das", "horizontal-cylinder"],
|
|
3992
|
-
handler:
|
|
4284
|
+
handler: Pn
|
|
3993
4285
|
},
|
|
3994
4286
|
{
|
|
3995
4287
|
semanticName: "Disk Storage",
|
|
@@ -3997,7 +4289,7 @@ var _n = [
|
|
|
3997
4289
|
shortName: "lin-cyl",
|
|
3998
4290
|
description: "Disk storage",
|
|
3999
4291
|
aliases: ["disk", "lined-cylinder"],
|
|
4000
|
-
handler:
|
|
4292
|
+
handler: St
|
|
4001
4293
|
},
|
|
4002
4294
|
{
|
|
4003
4295
|
semanticName: "Display",
|
|
@@ -4005,7 +4297,7 @@ var _n = [
|
|
|
4005
4297
|
shortName: "curv-trap",
|
|
4006
4298
|
description: "Represents a display",
|
|
4007
4299
|
aliases: ["curved-trapezoid", "display"],
|
|
4008
|
-
handler:
|
|
4300
|
+
handler: Re
|
|
4009
4301
|
},
|
|
4010
4302
|
{
|
|
4011
4303
|
semanticName: "Divided Process",
|
|
@@ -4017,7 +4309,7 @@ var _n = [
|
|
|
4017
4309
|
"divided-rectangle",
|
|
4018
4310
|
"divided-process"
|
|
4019
4311
|
],
|
|
4020
|
-
handler:
|
|
4312
|
+
handler: Je
|
|
4021
4313
|
},
|
|
4022
4314
|
{
|
|
4023
4315
|
semanticName: "Extract",
|
|
@@ -4025,7 +4317,7 @@ var _n = [
|
|
|
4025
4317
|
shortName: "tri",
|
|
4026
4318
|
description: "Extraction process",
|
|
4027
4319
|
aliases: ["extract", "triangle"],
|
|
4028
|
-
handler:
|
|
4320
|
+
handler: zn
|
|
4029
4321
|
},
|
|
4030
4322
|
{
|
|
4031
4323
|
semanticName: "Internal Storage",
|
|
@@ -4033,7 +4325,7 @@ var _n = [
|
|
|
4033
4325
|
shortName: "win-pane",
|
|
4034
4326
|
description: "Internal storage",
|
|
4035
4327
|
aliases: ["internal-storage", "window-pane"],
|
|
4036
|
-
handler:
|
|
4328
|
+
handler: Hn
|
|
4037
4329
|
},
|
|
4038
4330
|
{
|
|
4039
4331
|
semanticName: "Junction",
|
|
@@ -4041,7 +4333,7 @@ var _n = [
|
|
|
4041
4333
|
shortName: "f-circ",
|
|
4042
4334
|
description: "Junction point",
|
|
4043
4335
|
aliases: ["junction", "filled-circle"],
|
|
4044
|
-
handler:
|
|
4336
|
+
handler: Ze
|
|
4045
4337
|
},
|
|
4046
4338
|
{
|
|
4047
4339
|
semanticName: "Loop Limit",
|
|
@@ -4049,7 +4341,7 @@ var _n = [
|
|
|
4049
4341
|
shortName: "notch-pent",
|
|
4050
4342
|
description: "Loop limit step",
|
|
4051
4343
|
aliases: ["loop-limit", "notched-pentagon"],
|
|
4052
|
-
handler:
|
|
4344
|
+
handler: In
|
|
4053
4345
|
},
|
|
4054
4346
|
{
|
|
4055
4347
|
semanticName: "Manual File",
|
|
@@ -4057,7 +4349,7 @@ var _n = [
|
|
|
4057
4349
|
shortName: "flip-tri",
|
|
4058
4350
|
description: "Manual file operation",
|
|
4059
4351
|
aliases: ["manual-file", "flipped-triangle"],
|
|
4060
|
-
handler:
|
|
4352
|
+
handler: et
|
|
4061
4353
|
},
|
|
4062
4354
|
{
|
|
4063
4355
|
semanticName: "Manual Input",
|
|
@@ -4065,7 +4357,7 @@ var _n = [
|
|
|
4065
4357
|
shortName: "sl-rect",
|
|
4066
4358
|
description: "Manual input step",
|
|
4067
4359
|
aliases: ["manual-input", "sloped-rectangle"],
|
|
4068
|
-
handler:
|
|
4360
|
+
handler: hn
|
|
4069
4361
|
},
|
|
4070
4362
|
{
|
|
4071
4363
|
semanticName: "Multi-Document",
|
|
@@ -4077,7 +4369,7 @@ var _n = [
|
|
|
4077
4369
|
"st-doc",
|
|
4078
4370
|
"stacked-document"
|
|
4079
4371
|
],
|
|
4080
|
-
handler:
|
|
4372
|
+
handler: on
|
|
4081
4373
|
},
|
|
4082
4374
|
{
|
|
4083
4375
|
semanticName: "Multi-Process",
|
|
@@ -4089,7 +4381,7 @@ var _n = [
|
|
|
4089
4381
|
"processes",
|
|
4090
4382
|
"stacked-rectangle"
|
|
4091
4383
|
],
|
|
4092
|
-
handler:
|
|
4384
|
+
handler: an
|
|
4093
4385
|
},
|
|
4094
4386
|
{
|
|
4095
4387
|
semanticName: "Stored Data",
|
|
@@ -4097,7 +4389,7 @@ var _n = [
|
|
|
4097
4389
|
shortName: "bow-rect",
|
|
4098
4390
|
description: "Stored data",
|
|
4099
4391
|
aliases: ["stored-data", "bow-tie-rectangle"],
|
|
4100
|
-
handler:
|
|
4392
|
+
handler: de
|
|
4101
4393
|
},
|
|
4102
4394
|
{
|
|
4103
4395
|
semanticName: "Summary",
|
|
@@ -4105,7 +4397,7 @@ var _n = [
|
|
|
4105
4397
|
shortName: "cross-circ",
|
|
4106
4398
|
description: "Summary",
|
|
4107
4399
|
aliases: ["summary", "crossed-circle"],
|
|
4108
|
-
handler:
|
|
4400
|
+
handler: Pe
|
|
4109
4401
|
},
|
|
4110
4402
|
{
|
|
4111
4403
|
semanticName: "Tagged Document",
|
|
@@ -4113,7 +4405,7 @@ var _n = [
|
|
|
4113
4405
|
shortName: "tag-doc",
|
|
4114
4406
|
description: "Tagged document",
|
|
4115
4407
|
aliases: ["tag-doc", "tagged-document"],
|
|
4116
|
-
handler:
|
|
4408
|
+
handler: Dn
|
|
4117
4409
|
},
|
|
4118
4410
|
{
|
|
4119
4411
|
semanticName: "Tagged Process",
|
|
@@ -4125,7 +4417,7 @@ var _n = [
|
|
|
4125
4417
|
"tag-proc",
|
|
4126
4418
|
"tagged-process"
|
|
4127
4419
|
],
|
|
4128
|
-
handler:
|
|
4420
|
+
handler: En
|
|
4129
4421
|
},
|
|
4130
4422
|
{
|
|
4131
4423
|
semanticName: "Paper Tape",
|
|
@@ -4133,7 +4425,7 @@ var _n = [
|
|
|
4133
4425
|
shortName: "flag",
|
|
4134
4426
|
description: "Paper tape",
|
|
4135
4427
|
aliases: ["paper-tape"],
|
|
4136
|
-
handler:
|
|
4428
|
+
handler: Vn
|
|
4137
4429
|
},
|
|
4138
4430
|
{
|
|
4139
4431
|
semanticName: "Odd",
|
|
@@ -4141,7 +4433,7 @@ var _n = [
|
|
|
4141
4433
|
shortName: "odd",
|
|
4142
4434
|
description: "Odd shape",
|
|
4143
4435
|
internalAliases: ["rect_left_inv_arrow"],
|
|
4144
|
-
handler:
|
|
4436
|
+
handler: un
|
|
4145
4437
|
},
|
|
4146
4438
|
{
|
|
4147
4439
|
semanticName: "Lined Document",
|
|
@@ -4149,40 +4441,47 @@ var _n = [
|
|
|
4149
4441
|
shortName: "lin-doc",
|
|
4150
4442
|
description: "Lined document",
|
|
4151
4443
|
aliases: ["lined-document"],
|
|
4152
|
-
handler:
|
|
4444
|
+
handler: Ct
|
|
4153
4445
|
}
|
|
4154
|
-
],
|
|
4446
|
+
], ar = (/* @__PURE__ */ e(() => {
|
|
4155
4447
|
let e = [...Object.entries({
|
|
4156
|
-
state:
|
|
4157
|
-
choice:
|
|
4158
|
-
note:
|
|
4159
|
-
composite:
|
|
4160
|
-
rectWithTitle:
|
|
4161
|
-
labelRect:
|
|
4162
|
-
block_arrow:
|
|
4163
|
-
collapsedGroup:
|
|
4164
|
-
iconSquare:
|
|
4165
|
-
iconCircle:
|
|
4166
|
-
icon:
|
|
4167
|
-
iconRounded:
|
|
4168
|
-
imageSquare:
|
|
4169
|
-
anchor:
|
|
4170
|
-
kanbanItem:
|
|
4171
|
-
mindmapCircle:
|
|
4172
|
-
defaultMindmapNode:
|
|
4173
|
-
classBox:
|
|
4174
|
-
erBox:
|
|
4175
|
-
requirementBox:
|
|
4176
|
-
|
|
4448
|
+
state: bn,
|
|
4449
|
+
choice: ke,
|
|
4450
|
+
note: sn,
|
|
4451
|
+
composite: je,
|
|
4452
|
+
rectWithTitle: dn,
|
|
4453
|
+
labelRect: pt,
|
|
4454
|
+
block_arrow: Te,
|
|
4455
|
+
collapsedGroup: ve,
|
|
4456
|
+
iconSquare: ut,
|
|
4457
|
+
iconCircle: ct,
|
|
4458
|
+
icon: st,
|
|
4459
|
+
iconRounded: lt,
|
|
4460
|
+
imageSquare: dt,
|
|
4461
|
+
anchor: ce,
|
|
4462
|
+
kanbanItem: $n,
|
|
4463
|
+
mindmapCircle: rr,
|
|
4464
|
+
defaultMindmapNode: nr,
|
|
4465
|
+
classBox: Xn,
|
|
4466
|
+
erBox: Gn,
|
|
4467
|
+
requirementBox: Zn,
|
|
4468
|
+
usecaseActor: Bt,
|
|
4469
|
+
usecaseActorHollow: Wt,
|
|
4470
|
+
usecaseActorAwesome: Ht,
|
|
4471
|
+
usecaseActorIcon: Yt,
|
|
4472
|
+
usecaseBusiness: Zt,
|
|
4473
|
+
usecaseEllipse: Xe,
|
|
4474
|
+
usecaseJsonTable: rn
|
|
4475
|
+
}), ...ir.flatMap((e) => [
|
|
4177
4476
|
e.shortName,
|
|
4178
4477
|
..."aliases" in e ? e.aliases : [],
|
|
4179
4478
|
..."internalAliases" in e ? e.internalAliases : []
|
|
4180
4479
|
].map((t) => [t, e.handler]))];
|
|
4181
4480
|
return Object.fromEntries(e);
|
|
4182
4481
|
}, "generateShapeMap"))();
|
|
4183
|
-
function
|
|
4184
|
-
return e in
|
|
4482
|
+
function or(e) {
|
|
4483
|
+
return e in ar;
|
|
4185
4484
|
}
|
|
4186
|
-
e(
|
|
4485
|
+
e(or, "isValidShape");
|
|
4187
4486
|
//#endregion
|
|
4188
|
-
export {
|
|
4487
|
+
export { or as a, I as c, V as i, q as n, P as o, K as r, ar as s, se as t };
|