@jackuait/blok 0.10.4 → 0.10.6
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/blok.mjs +2 -2
- package/dist/chunks/_basePickBy--UeZi0iS.mjs +166 -0
- package/dist/chunks/_baseUniq-C977U_l-.mjs +682 -0
- package/dist/chunks/{arc-D-pL2Ftf.mjs → arc-Woh6y3jm.mjs} +2 -2
- package/dist/chunks/architecture-YZFGNWBL-aVO23UKm.mjs +3 -0
- package/dist/chunks/{architectureDiagram-Q4EWVU46-DS7mqjL2.mjs → architectureDiagram-Q4EWVU46-GTqLmLqg.mjs} +115 -115
- package/dist/chunks/{blockDiagram-DXYQGD6D-BTtcn4NG.mjs → blockDiagram-DXYQGD6D-CML01I1L.mjs} +681 -866
- package/dist/chunks/{blok-NcdNQ0I6.mjs → blok-B0k4z2h1.mjs} +673 -604
- package/dist/chunks/{c4Diagram-AHTNJAMY-Y4Dcwcoo.mjs → c4Diagram-AHTNJAMY-C29OuYjO.mjs} +239 -239
- package/dist/chunks/{channel-Cln-eWE0.mjs → channel-Zp_OyvEW.mjs} +1 -1
- package/dist/chunks/{chunk-2KRD3SAO-DkM7qh-k.mjs → chunk-2KRD3SAO-mVfUZfox.mjs} +1 -1
- package/dist/chunks/{chunk-336JU56O-B17AtzlK.mjs → chunk-336JU56O-mJNxs0cr.mjs} +18 -18
- package/dist/chunks/{chunk-426QAEUC-D6UAVUog.mjs → chunk-426QAEUC-TajZlyP-.mjs} +2 -2
- package/dist/chunks/{chunk-4BX2VUAB-CgIkjF7Z.mjs → chunk-4BX2VUAB-CsopMMb6.mjs} +1 -1
- package/dist/chunks/{chunk-4TB4RGXK-BUP4eON3.mjs → chunk-4TB4RGXK-DC963IrJ.mjs} +129 -129
- package/dist/chunks/{chunk-55IACEB6-zZ-IgaSt.mjs → chunk-55IACEB6-yyL3mncJ.mjs} +1 -1
- package/dist/chunks/{chunk-5FUZZQ4R-DsZnJYxM.mjs → chunk-5FUZZQ4R-Dr4NE8rh.mjs} +663 -663
- package/dist/chunks/chunk-5PVQY5BW-BP7ENjg7.mjs +1122 -0
- package/dist/chunks/{chunk-67CJDMHE-m0UKdcSH.mjs → chunk-67CJDMHE-Dbl-PjEf.mjs} +1 -1
- package/dist/chunks/{chunk-7N4EOEYR-DKNajFZd.mjs → chunk-7N4EOEYR-p-g3cKuX.mjs} +1 -1
- package/dist/chunks/{chunk-AA7GKIK3-BeLhNzKa.mjs → chunk-AA7GKIK3-Dt0Kr5Va.mjs} +1 -1
- package/dist/chunks/{chunk-BSJP7CBP-CJExmx8a.mjs → chunk-BSJP7CBP-DGU2WHwh.mjs} +1 -1
- package/dist/chunks/{chunk-CIAEETIT-CTikoJ19.mjs → chunk-CIAEETIT-BQ4crY5r.mjs} +1 -1
- package/dist/chunks/{chunk-EDXVE4YY-DjInnnwb.mjs → chunk-EDXVE4YY-B9_aGwkV.mjs} +2 -2
- package/dist/chunks/{chunk-ENJZ2VHE-CIl5FRDA.mjs → chunk-ENJZ2VHE-23pY8ft5.mjs} +243 -243
- package/dist/chunks/{chunk-FMBD7UC4-DjV0W7UE.mjs → chunk-FMBD7UC4-D_RQlBGX.mjs} +1 -1
- package/dist/chunks/{chunk-FOC6F5B3-LmHCCWYY.mjs → chunk-FOC6F5B3-CJfr-iwx.mjs} +1 -1
- package/dist/chunks/{chunk-ICPOFSXX-BHZIN46A.mjs → chunk-ICPOFSXX-BOvOTlG6.mjs} +2 -2
- package/dist/chunks/{chunk-K5T4RW27-BPZ6fFnW.mjs → chunk-K5T4RW27-CHSI0vpp.mjs} +572 -570
- package/dist/chunks/{chunk-KGLVRYIC-S1OQdW76.mjs → chunk-KGLVRYIC-ngXT4XVA.mjs} +1 -1
- package/dist/chunks/{chunk-LIHQZDEY-CjtyJlI6.mjs → chunk-LIHQZDEY-CnP7bym1.mjs} +1 -1
- package/dist/chunks/{chunk-ORNJ4GCN-CdO0hAge.mjs → chunk-ORNJ4GCN-BPaghT45.mjs} +1 -1
- package/dist/chunks/{chunk-OYMX7WX6-ApX8eV4o.mjs → chunk-OYMX7WX6-CKjTvqTg.mjs} +172 -172
- package/dist/chunks/{chunk-QZHKN3VN-BGFuA6-k.mjs → chunk-QZHKN3VN-uW1N2UWF.mjs} +1 -1
- package/dist/chunks/{chunk-U2HBQHQK-B88ZUOTL.mjs → chunk-U2HBQHQK-DiQOEtQH.mjs} +65 -65
- package/dist/chunks/{chunk-X2U36JSP-1VS5TyCr.mjs → chunk-X2U36JSP-Cznp5Jm-.mjs} +2 -2
- package/dist/chunks/{chunk-XPW4576I-BMupdrvo.mjs → chunk-XPW4576I-W5t_agZI.mjs} +1 -1
- package/dist/chunks/{chunk-YZCP3GAM-BQ7eEsm2.mjs → chunk-YZCP3GAM-BV02tG_z.mjs} +3 -3
- package/dist/chunks/{chunk-ZZ45TVLE-D1xks9zd.mjs → chunk-ZZ45TVLE-D28EyJ6R.mjs} +7 -7
- package/dist/chunks/classDiagram-6PBFFD2Q-DXsClapu.mjs +30 -0
- package/dist/chunks/classDiagram-v2-HSJHXN6E-B6TlQ_PM.mjs +30 -0
- package/dist/chunks/{clone-Ckjt1LtE.mjs → clone-CUNvBGto.mjs} +1 -1
- package/dist/chunks/{constants-DtfShkXT.mjs → constants-lOEJu8bC.mjs} +4 -2
- package/dist/chunks/{cose-bilkent-S5V4N54A-Bpcs2jA_.mjs → cose-bilkent-S5V4N54A-D-Xgf_Xn.mjs} +2 -2
- package/dist/chunks/{cpp-BdjvAny0.mjs → cpp-DaTV1RSp.mjs} +2 -2
- package/dist/chunks/{dagre-KV5264BT-DUD9ikgN.mjs → dagre-KV5264BT-BB3SAlfA.mjs} +15 -15
- package/dist/chunks/{dagre-CGNbYTKq.mjs → dagre-dysBn-m8.mjs} +499 -552
- package/dist/chunks/diagram-5BDNPKRD-B1410bPG.mjs +112 -0
- package/dist/chunks/{diagram-G4DWMVQ6-CuS0-h95.mjs → diagram-G4DWMVQ6-CdhBBETB.mjs} +82 -82
- package/dist/chunks/{diagram-MMDJMWI5-C-AEApYz.mjs → diagram-MMDJMWI5-B3HWfHe1.mjs} +48 -48
- package/dist/chunks/{diagram-TYMM5635-CiwAJVMq.mjs → diagram-TYMM5635-D0JzRYCN.mjs} +51 -51
- package/dist/chunks/{erDiagram-SMLLAGMA-DeH5yck2.mjs → erDiagram-SMLLAGMA-DfIG0QBk.mjs} +142 -142
- package/dist/chunks/{flowDiagram-DWJPFMVM-Cr6dwmQ5.mjs → flowDiagram-DWJPFMVM-BOL8JsQX.mjs} +176 -176
- package/dist/chunks/{ganttDiagram-T4ZO3ILL-K-divBg_.mjs → ganttDiagram-T4ZO3ILL-CiUr_YRw.mjs} +230 -230
- package/dist/chunks/gitGraph-7Q5UKJZL-B3aq166w.mjs +3 -0
- package/dist/chunks/{gitGraphDiagram-UUTBAWPF-UytPZv72.mjs → gitGraphDiagram-UUTBAWPF-CtNkTTWO.mjs} +218 -218
- package/dist/chunks/{graphlib-Cye9EPNq.mjs → graphlib-BXNPwKuI.mjs} +48 -46
- package/dist/chunks/{graphql-BSnqmqgO.mjs → graphql-DNumR9m-.mjs} +2 -2
- package/dist/chunks/{html-BLNeZvnp.mjs → html-CanPsi1Y.mjs} +2 -2
- package/dist/chunks/{i18next-loader-D32EUWLr.mjs → i18next-loader-CIXsptng.mjs} +2 -2
- package/dist/chunks/info-OMHHGYJF-SX91-Wub.mjs +3 -0
- package/dist/chunks/{infoDiagram-42DDH7IO-DuYnDbF3.mjs → infoDiagram-42DDH7IO-CD7nVBvi.mjs} +14 -14
- package/dist/chunks/isArrayLikeObject-DzUNFfIK.mjs +578 -0
- package/dist/chunks/isEmpty-D8B0aRsG.mjs +35 -0
- package/dist/chunks/{ishikawaDiagram-UXIWVN3A-CHc59dLn.mjs → ishikawaDiagram-UXIWVN3A-BOaC9qJs.mjs} +81 -81
- package/dist/chunks/{journeyDiagram-VCZTEJTY-CD25C4_n.mjs → journeyDiagram-VCZTEJTY-DKf55ZdJ.mjs} +6 -6
- package/dist/chunks/{kanban-definition-6JOO6SKY-CTCT6N_p.mjs → kanban-definition-6JOO6SKY-D2CrAXqB.mjs} +11 -11
- package/dist/chunks/{latex-24n3TcOR.mjs → latex-DY1HNB4U.mjs} +1 -1
- package/dist/chunks/{lightweight-i18n-DpkvRXEd.mjs → lightweight-i18n-DTYoSr_o.mjs} +2 -0
- package/dist/chunks/line-CuvDsrkE.mjs +34 -0
- package/dist/chunks/{linear-BRCpMvtr.mjs → linear-JRIqMpGQ.mjs} +3 -3
- package/dist/chunks/{lua-DV0fuZWx.mjs → lua-COOfzihE.mjs} +1 -1
- package/dist/chunks/{mermaid-parser.core-CA3DKkuk.mjs → mermaid-parser.core-BhpZC2lA.mjs} +10 -10
- package/dist/chunks/mermaid.core-C40gcVfv.mjs +977 -0
- package/dist/chunks/{messages-DtZ9U9g72.mjs → messages--G2XLc8E.mjs} +8 -5
- package/dist/{messages-CFUBJfnf.mjs → chunks/messages-3kHDtQLN.mjs} +8 -5
- package/dist/{messages-0lOPMv8u.mjs → chunks/messages-4Y8dL_1j2.mjs} +8 -5
- package/dist/{messages-DQ1icG7L.mjs → chunks/messages-9Nx7kteY2.mjs} +8 -5
- package/dist/{messages-aoO_TtoE2.mjs → chunks/messages-B29Wm2zT.mjs} +9 -6
- package/dist/chunks/{messages-oPV2oMxM.mjs → messages-B9mzGzZ_.mjs} +11 -8
- package/dist/{messages-Di3-WVzq.mjs → chunks/messages-BCfsOOlp.mjs} +8 -5
- package/dist/{messages-CA6J_QoC.mjs → chunks/messages-BJTwY1tq.mjs} +7 -4
- package/dist/chunks/{messages-Cxy_E2IS.mjs → messages-BK6AwU6C.mjs} +8 -5
- package/dist/chunks/{messages-DoPdy75l.mjs → messages-BPxMr5HC.mjs} +10 -7
- package/dist/chunks/{messages-Ci7UXRVI2.mjs → messages-BS9zk4mI2.mjs} +9 -6
- package/dist/chunks/{messages-BouFtpfO.mjs → messages-BSXBVdsp.mjs} +7 -4
- package/dist/{messages-DqDlcEPn.mjs → chunks/messages-BSyO1EWC.mjs} +9 -6
- package/dist/{messages-DzknMM7W.mjs → chunks/messages-BUQTXTew2.mjs} +8 -5
- package/dist/chunks/{messages-BJNFCDv42.mjs → messages-Bhn5V9FQ2.mjs} +8 -5
- package/dist/chunks/{messages-zWqsggJh.mjs → messages-Bi629xgG.mjs} +8 -5
- package/dist/{messages-CR4gHjd82.mjs → chunks/messages-BimpUMRx.mjs} +6 -3
- package/dist/{messages-BCMFYqKc2.mjs → chunks/messages-BkaUIuz-2.mjs} +8 -5
- package/dist/{messages-5wuR90qS.mjs → chunks/messages-BmC2yhsC2.mjs} +8 -5
- package/dist/chunks/{messages-HzH9_QH8.mjs → messages-Bo7Cbk_O.mjs} +8 -5
- package/dist/chunks/{messages-BcHZf9o-.mjs → messages-Bq7fo8X0.mjs} +16 -13
- package/dist/{messages-bh8BiOee2.mjs → chunks/messages-BsqBho4T.mjs} +9 -6
- package/dist/{messages-C-8qb9sf2.mjs → chunks/messages-C7E8C3-S.mjs} +8 -5
- package/dist/chunks/{messages-DRJxSTqs.mjs → messages-C9QhLDA2.mjs} +9 -6
- package/dist/chunks/{messages-DSbI0vJf.mjs → messages-C9UIaF6N.mjs} +8 -5
- package/dist/chunks/{messages-dpXwA3Sz.mjs → messages-CAX3qQi0.mjs} +8 -5
- package/dist/chunks/{messages-DpydMd36.mjs → messages-CEJtxBxU.mjs} +8 -5
- package/dist/chunks/{messages-DkP3Jf4F.mjs → messages-CF0SW1zy.mjs} +7 -4
- package/dist/{messages-B_UKuqrH.mjs → chunks/messages-CIre8L_r.mjs} +8 -5
- package/dist/{messages-DT7dwzEe.mjs → chunks/messages-CJ8IkF1P.mjs} +8 -5
- package/dist/{messages-BORkMoil2.mjs → chunks/messages-CKP6aUXN2.mjs} +7 -4
- package/dist/chunks/{messages-DY8zPIZW.mjs → messages-CMMq-u7e.mjs} +9 -6
- package/dist/chunks/{messages-CTdSIOAc.mjs → messages-CR5irc8q.mjs} +7 -4
- package/dist/chunks/{messages-ZhHLC6dk.mjs → messages-CRH0RWBs.mjs} +8 -5
- package/dist/chunks/{messages-C7sBaZOO2.mjs → messages-CWm_2RvD2.mjs} +8 -5
- package/dist/{messages-CLUBh7O_.mjs → chunks/messages-CY76MvbX2.mjs} +8 -5
- package/dist/{messages-PyOr_YgV.mjs → chunks/messages-CpLq4ZZg.mjs} +6 -3
- package/dist/chunks/{messages-CGLTjtRv2.mjs → messages-CrpOkt8c2.mjs} +8 -5
- package/dist/{messages-DwiykEgr2.mjs → chunks/messages-D3fu2FHB2.mjs} +8 -5
- package/dist/{messages-hya8YLMj.mjs → chunks/messages-D6_I0L06.mjs} +8 -5
- package/dist/chunks/{messages-oXBbHW9A.mjs → messages-DHzT8CZv.mjs} +8 -5
- package/dist/chunks/{messages-ChayV9WY2.mjs → messages-DIVQmVS92.mjs} +8 -5
- package/dist/{messages-BrYeJsSE2.mjs → chunks/messages-DJYT0upW.mjs} +9 -6
- package/dist/chunks/{messages-THR8q8bJ.mjs → messages-DPcc6xp-.mjs} +16 -13
- package/dist/chunks/{messages-CDSyoUft.mjs → messages-Dass0QsQ.mjs} +6 -3
- package/dist/chunks/{messages-DVvrZRyZ.mjs → messages-DcUYfD6m.mjs} +8 -5
- package/dist/chunks/{messages-BNy4e7Xl.mjs → messages-DfLcy0CY.mjs} +8 -5
- package/dist/chunks/{messages-H6vLy8wJ.mjs → messages-DhoZXmg_.mjs} +8 -5
- package/dist/{messages-ZHgPRUj02.mjs → chunks/messages-DiQkvwE32.mjs} +8 -5
- package/dist/{messages-BKXjO3NH.mjs → chunks/messages-DmvWmURo.mjs} +8 -5
- package/dist/chunks/{messages-DjSuq0-y2.mjs → messages-Dobxrshu2.mjs} +8 -5
- package/dist/{messages-DPFuzIdF2.mjs → chunks/messages-DsMIxm6I2.mjs} +8 -5
- package/dist/{messages-D6RYu9JW2.mjs → chunks/messages-DtssWM8x2.mjs} +8 -5
- package/dist/{messages-gZEhkRrR2.mjs → chunks/messages-E1tsNNG5.mjs} +8 -5
- package/dist/chunks/{messages-D9uWAWjW.mjs → messages-PFfYbqlm.mjs} +9 -6
- package/dist/{messages-DCdP2ujL.mjs → chunks/messages-bIzBNzdr2.mjs} +6 -3
- package/dist/{messages-WsUHzXMu2.mjs → chunks/messages-dGYum7sj2.mjs} +8 -5
- package/dist/chunks/{messages-C-EBhOHE.mjs → messages-kKXlI5xZ.mjs} +8 -5
- package/dist/chunks/{messages-Cfbmwdep2.mjs → messages-mo5OrbVj2.mjs} +8 -5
- package/dist/{messages-9L4qqCKh2.mjs → chunks/messages-nAdoEqRi.mjs} +8 -5
- package/dist/chunks/{messages-Bop7vrhU.mjs → messages-rNLuCrAb.mjs} +8 -5
- package/dist/chunks/{messages-yGedmr61.mjs → messages-v26RM5PC.mjs} +8 -5
- package/dist/{messages-Cd5CW5Tt.mjs → chunks/messages-x0kzc2oy.mjs} +9 -6
- package/dist/{messages-DB4UKN8D.mjs → chunks/messages-x6y6csd52.mjs} +6 -3
- package/dist/chunks/{messages-Br6bE1FD2.mjs → messages-x_eMclsl2.mjs} +9 -6
- package/dist/{messages-CVMngZNA.mjs → chunks/messages-z5pham9o.mjs} +10 -7
- package/dist/chunks/{messages-D9syZVGi2.mjs → messages-zcqQ8x232.mjs} +6 -3
- package/dist/chunks/{micromark-extension-math-BbkUb36G.mjs → micromark-extension-math-D-s54WWf.mjs} +1 -1
- package/dist/chunks/{mindmap-definition-QFDTVHPH-hNnyBkEP.mjs → mindmap-definition-QFDTVHPH-C-0fwUUS.mjs} +13 -13
- package/dist/chunks/{ordinal-B-kolV-i.mjs → ordinal-fyJMP-lj.mjs} +1 -1
- package/dist/chunks/packet-4T2RLAQJ-suhU85JN.mjs +3 -0
- package/dist/chunks/{php-DmXKyPwJ.mjs → php-DA-SOiqC.mjs} +6 -6
- package/dist/chunks/pie-ZZUOXDRM-DF5e16CP.mjs +3 -0
- package/dist/chunks/pieDiagram-DEJITSTG-BPyqheXv.mjs +179 -0
- package/dist/chunks/{quadrantDiagram-34T5L4WZ-CQ5fGYI5.mjs → quadrantDiagram-34T5L4WZ-kOZ1zIXB.mjs} +4 -4
- package/dist/chunks/radar-PYXPWWZC-DgzodpRv.mjs +3 -0
- package/dist/chunks/{requirementDiagram-MS252O5E-DjWKB42c.mjs → requirementDiagram-MS252O5E-C8Zkq6Lq.mjs} +64 -64
- package/dist/chunks/{ruby-DdOo03Kg.mjs → ruby-HDUjp8gK.mjs} +11 -11
- package/dist/chunks/{sankeyDiagram-XADWPNL6-BIN2evSB.mjs → sankeyDiagram-XADWPNL6-B0FhkAL9.mjs} +3 -3
- package/dist/chunks/{sequenceDiagram-FGHM5R23-CQz2lMoS.mjs → sequenceDiagram-FGHM5R23-Dv2H5Lbc.mjs} +447 -447
- package/dist/chunks/stateDiagram-FHFEXIEX-D1vcO7H_.mjs +218 -0
- package/dist/chunks/stateDiagram-v2-QKLJ7IA2-AoHzFiaI.mjs +28 -0
- package/dist/chunks/{timeline-definition-GMOUNBTQ-CzvQ7Lav.mjs → timeline-definition-GMOUNBTQ-DJmJ0TPa.mjs} +195 -195
- package/dist/chunks/{tools-DMSi-3RW.mjs → tools-FmtWXVgt.mjs} +109 -142
- package/dist/chunks/treeView-SZITEDCU-C1mc9PWf.mjs +3 -0
- package/dist/chunks/treemap-W4RFUUIX-ClV9Slyp.mjs +3 -0
- package/dist/chunks/{vennDiagram-DHZGUBPP-B0DmLQqe.mjs → vennDiagram-DHZGUBPP-Dx1rMP24.mjs} +76 -76
- package/dist/chunks/wardley-RL74JXVD-Dj7t7jHR.mjs +3 -0
- package/dist/chunks/{wardleyDiagram-NUSXRM2D-CzoKesUw.mjs → wardleyDiagram-NUSXRM2D-Dnm6lvMn.mjs} +15 -15
- package/dist/chunks/{xml-g8kXXALs.mjs → xml-Dq1lpp8G.mjs} +1 -1
- package/dist/chunks/{xychartDiagram-5P7HB3ND-CixwR8r2.mjs → xychartDiagram-5P7HB3ND-C9wFc2e9.mjs} +120 -120
- package/dist/full.mjs +3 -3
- package/dist/locales.mjs +69 -67
- package/dist/markdown.mjs +1 -1
- package/dist/{chunks/messages-CPFB2_m-2.mjs → messages--zgIPYtb.mjs} +6 -3
- package/dist/{messages-D8dO6OMN.mjs → messages-4jULpVvw.mjs} +16 -13
- package/dist/{chunks/messages-CNaaqQVz.mjs → messages-AbwSlRf_.mjs} +10 -7
- package/dist/{chunks/messages-AD17iDBx.mjs → messages-B-dl7Pwb2.mjs} +9 -6
- package/dist/{chunks/messages-CGFlOwst.mjs → messages-B3rCRhb1.mjs} +8 -5
- package/dist/{chunks/messages-CCEgR9GN2.mjs → messages-B73L8nKc2.mjs} +8 -5
- package/dist/{chunks/messages-wYQksm10.mjs → messages-BAjsD2Vm2.mjs} +8 -5
- package/dist/{messages-C34dTwF72.mjs → messages-BBodSb5B2.mjs} +8 -5
- package/dist/{chunks/messages-O6FOfUgF.mjs → messages-BTpn6H9x2.mjs} +6 -3
- package/dist/{chunks/messages-Cql2ozf_2.mjs → messages-BWb0GjTj2.mjs} +8 -5
- package/dist/{messages-ELvF3qMl2.mjs → messages-BbCgnri12.mjs} +8 -5
- package/dist/{chunks/messages-OSP4Hj5o.mjs → messages-Bfon_Y3q.mjs} +9 -6
- package/dist/{chunks/messages-fbL5y58u2.mjs → messages-BhOtow9J2.mjs} +8 -5
- package/dist/{messages-6eX0fWGR2.mjs → messages-BoB7m0uu2.mjs} +9 -6
- package/dist/{chunks/messages-C3X7dv3f.mjs → messages-BsOZPjeg.mjs} +8 -5
- package/dist/{chunks/messages-vDgsEqQW2.mjs → messages-BuzKUYPV.mjs} +8 -5
- package/dist/{chunks/messages-BjyYZeBm2.mjs → messages-BzOKMdMQ.mjs} +6 -3
- package/dist/{messages-CxZarWTm2.mjs → messages-C2H3PeQW2.mjs} +8 -5
- package/dist/{messages-D0eT_eWA.mjs → messages-C5KNzSTk.mjs} +8 -5
- package/dist/{messages-CNGwdIEz.mjs → messages-CIDYjE6l.mjs} +8 -5
- package/dist/{messages-BPw_x-6H.mjs → messages-CJmyF5ye.mjs} +7 -4
- package/dist/{messages-VrQw3tQ62.mjs → messages-CTwiYb2a2.mjs} +6 -3
- package/dist/{messages-BM2kx9Td.mjs → messages-CUHoJaDO.mjs} +8 -5
- package/dist/{chunks/messages-RiqdVwuN2.mjs → messages-CVeuqUjQ2.mjs} +8 -5
- package/dist/{messages-KVerxvZC.mjs → messages-CW75b4sz.mjs} +8 -5
- package/dist/{messages-DA4T9WBe.mjs → messages-CXd7YeWV.mjs} +8 -5
- package/dist/{chunks/messages-CXVWb9js.mjs → messages-CjlYkunD.mjs} +8 -5
- package/dist/{chunks/messages-B8hICx3L.mjs → messages-CrGx64yd.mjs} +9 -6
- package/dist/{chunks/messages-C7Pjof0d2.mjs → messages-Ct0jbgHd.mjs} +8 -5
- package/dist/{messages-C67YUZ9-.mjs → messages-CtKrCYD1.mjs} +8 -5
- package/dist/{chunks/messages-B03yUEra2.mjs → messages-Cu2eLjfJ.mjs} +8 -5
- package/dist/{messages-BwttyHDI2.mjs → messages-CvwQ-fK_2.mjs} +8 -5
- package/dist/{chunks/messages-zQOpKjl3.mjs → messages-Cy6UYN9b.mjs} +6 -3
- package/dist/{messages-CrjQ2Op0.mjs → messages-D01vnfA9.mjs} +8 -5
- package/dist/{messages-C6yKu_PJ.mjs → messages-D0BAV45W.mjs} +8 -5
- package/dist/{messages-DxEiqa-B.mjs → messages-D5LGpdga.mjs} +9 -6
- package/dist/{messages-Dl0bfeA-.mjs → messages-DATK4ftv.mjs} +9 -6
- package/dist/{chunks/messages-D_kZN9rB.mjs → messages-DEl77Urv2.mjs} +9 -6
- package/dist/{messages-BRY51SEw2.mjs → messages-DHNjM2nv2.mjs} +6 -3
- package/dist/{messages-OOiDDmVw.mjs → messages-DMW8b_sO.mjs} +8 -5
- package/dist/{messages-tb1FD_ge.mjs → messages-DNmgANKr.mjs} +7 -4
- package/dist/{messages-Do3mHd9U.mjs → messages-DQaa3cEM.mjs} +9 -6
- package/dist/{chunks/messages-VtfKWZ2S.mjs → messages-DSlD4bV9.mjs} +8 -5
- package/dist/{messages-Dxr1BBvo.mjs → messages-DTzbkXFt.mjs} +8 -5
- package/dist/{chunks/messages-SP659Sal2.mjs → messages-DbZihxtV.mjs} +8 -5
- package/dist/{messages-Cv1PSaNk.mjs → messages-DeE8fyKQ.mjs} +8 -5
- package/dist/{messages-B4zPxKl62.mjs → messages-Dg-TpO2S2.mjs} +8 -5
- package/dist/{messages-CLZoy5fQ.mjs → messages-DgP82LzF.mjs} +7 -4
- package/dist/{chunks/messages-C85zv_7x.mjs → messages-Dh3Vt7WC.mjs} +7 -4
- package/dist/{chunks/messages-bFEdH3lv.mjs → messages-DiVVyZD22.mjs} +9 -6
- package/dist/{messages-BSNsrZVN.mjs → messages-DpRnGjoe.mjs} +10 -7
- package/dist/{messages-Dx5n6MLQ2.mjs → messages-DqZmrFaa2.mjs} +8 -5
- package/dist/{messages-D8U5D391.mjs → messages-Dra9Fz5Q.mjs} +11 -8
- package/dist/{chunks/messages-CpXvyGWv2.mjs → messages-DuPBRgEF2.mjs} +7 -4
- package/dist/{messages-JVJdC0Er2.mjs → messages-DuxEyAY-2.mjs} +9 -6
- package/dist/{chunks/messages-BGmvvtg_.mjs → messages-FmJD6lHR2.mjs} +8 -5
- package/dist/{messages-BLW2GX7J2.mjs → messages-ONielGl92.mjs} +8 -5
- package/dist/{chunks/messages-B2dU00Z3.mjs → messages-RzgUqCGb2.mjs} +8 -5
- package/dist/{chunks/messages-YbckahVx2.mjs → messages-U22AKGKs.mjs} +8 -5
- package/dist/{chunks/messages-CGPxUESo.mjs → messages-XufeeRfO.mjs} +8 -5
- package/dist/{messages-DUYxMxrQ2.mjs → messages-fprUm7SO2.mjs} +8 -5
- package/dist/{chunks/messages-BCifzMVO2.mjs → messages-gFNdz3Tn2.mjs} +8 -5
- package/dist/{messages-DfqM_XvD.mjs → messages-h_n5GBm6.mjs} +16 -13
- package/dist/{chunks/messages-VlEyFUxF2.mjs → messages-oOogIpsL2.mjs} +8 -5
- package/dist/{messages-D_V0kHD7.mjs → messages-otwg3KcK.mjs} +8 -5
- package/dist/{messages-BLfK27kX.mjs → messages-rDDoBMWb.mjs} +8 -5
- package/dist/{chunks/messages-BBe45sPH.mjs → messages-trQPxZIu.mjs} +8 -5
- package/dist/react.mjs +2 -2
- package/dist/tools.mjs +2 -2
- package/dist/vendor.LICENSE.txt +64 -64
- package/package.json +3 -2
- package/src/blok.ts +55 -0
- package/src/components/block/index.ts +2 -2
- package/src/components/block-tunes/block-tune-delete.ts +1 -0
- package/src/components/i18n/locales/am/messages.json +8 -5
- package/src/components/i18n/locales/ar/messages.json +8 -5
- package/src/components/i18n/locales/az/messages.json +8 -5
- package/src/components/i18n/locales/bg/messages.json +7 -4
- package/src/components/i18n/locales/bn/messages.json +8 -5
- package/src/components/i18n/locales/bs/messages.json +10 -7
- package/src/components/i18n/locales/cs/messages.json +9 -6
- package/src/components/i18n/locales/da/messages.json +9 -6
- package/src/components/i18n/locales/de/messages.json +9 -6
- package/src/components/i18n/locales/dv/messages.json +8 -5
- package/src/components/i18n/locales/el/messages.json +8 -5
- package/src/components/i18n/locales/en/messages.json +2 -0
- package/src/components/i18n/locales/es/messages.json +9 -6
- package/src/components/i18n/locales/et/messages.json +7 -4
- package/src/components/i18n/locales/fa/messages.json +8 -5
- package/src/components/i18n/locales/fi/messages.json +8 -5
- package/src/components/i18n/locales/fil/messages.json +16 -13
- package/src/components/i18n/locales/fr/messages.json +8 -5
- package/src/components/i18n/locales/gu/messages.json +8 -5
- package/src/components/i18n/locales/he/messages.json +8 -5
- package/src/components/i18n/locales/hi/messages.json +8 -5
- package/src/components/i18n/locales/hr/messages.json +10 -7
- package/src/components/i18n/locales/hu/messages.json +9 -6
- package/src/components/i18n/locales/hy/messages.json +16 -13
- package/src/components/i18n/locales/id/messages.json +7 -4
- package/src/components/i18n/locales/it/messages.json +11 -8
- package/src/components/i18n/locales/ja/messages.json +8 -5
- package/src/components/i18n/locales/ka/messages.json +8 -5
- package/src/components/i18n/locales/km/messages.json +6 -3
- package/src/components/i18n/locales/kn/messages.json +8 -5
- package/src/components/i18n/locales/ko/messages.json +8 -5
- package/src/components/i18n/locales/ku/messages.json +8 -5
- package/src/components/i18n/locales/lo/messages.json +6 -3
- package/src/components/i18n/locales/lt/messages.json +8 -5
- package/src/components/i18n/locales/lv/messages.json +8 -5
- package/src/components/i18n/locales/mk/messages.json +8 -5
- package/src/components/i18n/locales/ml/messages.json +8 -5
- package/src/components/i18n/locales/mn/messages.json +8 -5
- package/src/components/i18n/locales/mr/messages.json +8 -5
- package/src/components/i18n/locales/ms/messages.json +6 -3
- package/src/components/i18n/locales/my/messages.json +8 -5
- package/src/components/i18n/locales/ne/messages.json +8 -5
- package/src/components/i18n/locales/nl/messages.json +8 -5
- package/src/components/i18n/locales/no/messages.json +9 -6
- package/src/components/i18n/locales/pa/messages.json +8 -5
- package/src/components/i18n/locales/pl/messages.json +9 -6
- package/src/components/i18n/locales/ps/messages.json +8 -5
- package/src/components/i18n/locales/pt/messages.json +8 -5
- package/src/components/i18n/locales/ro/messages.json +8 -5
- package/src/components/i18n/locales/ru/messages.json +7 -4
- package/src/components/i18n/locales/sd/messages.json +8 -5
- package/src/components/i18n/locales/si/messages.json +8 -5
- package/src/components/i18n/locales/sk/messages.json +9 -6
- package/src/components/i18n/locales/sl/messages.json +9 -6
- package/src/components/i18n/locales/sq/messages.json +9 -6
- package/src/components/i18n/locales/sr/messages.json +8 -5
- package/src/components/i18n/locales/sv/messages.json +8 -5
- package/src/components/i18n/locales/sw/messages.json +6 -3
- package/src/components/i18n/locales/ta/messages.json +8 -5
- package/src/components/i18n/locales/te/messages.json +8 -5
- package/src/components/i18n/locales/th/messages.json +6 -3
- package/src/components/i18n/locales/tr/messages.json +8 -5
- package/src/components/i18n/locales/ug/messages.json +8 -5
- package/src/components/i18n/locales/uk/messages.json +7 -4
- package/src/components/i18n/locales/ur/messages.json +8 -5
- package/src/components/i18n/locales/vi/messages.json +6 -3
- package/src/components/i18n/locales/yi/messages.json +8 -5
- package/src/components/i18n/locales/zh/messages.json +8 -5
- package/src/components/inline-tools/inline-tool-code.ts +0 -19
- package/src/components/inline-tools/inline-tool-italic.ts +3 -20
- package/src/components/inline-tools/inline-tool-strikethrough.ts +0 -19
- package/src/components/inline-tools/inline-tool-underline.ts +0 -19
- package/src/components/inline-tools/services/bold-normalization-pass.ts +1 -29
- package/src/components/modules/blockEvents/composers/keyboardNavigation.ts +11 -5
- package/src/components/modules/blockEvents/composers/markdownShortcuts.ts +105 -2
- package/src/components/modules/blockEvents/constants.ts +24 -0
- package/src/components/modules/blockManager/blockManager.ts +1 -1
- package/src/components/modules/blockManager/types.ts +1 -1
- package/src/components/modules/toolbar/blockSettings.ts +89 -11
- package/src/components/modules/ui.ts +1 -0
- package/src/components/modules/uiControllers/controllers/keyboard.ts +55 -5
- package/src/components/modules/yjs/document-store.ts +1 -1
- package/src/components/modules/yjs/index.ts +1 -1
- package/src/components/utils/popover/popover-abstract.ts +9 -0
- package/src/styles/main.css +3 -0
- package/src/tools/code/index.ts +1 -0
- package/src/tools/database/database-view.ts +269 -0
- package/src/tools/database/types.ts +16 -0
- package/src/tools/quote/index.ts +1 -0
- package/types/configs/blok-config.d.ts +13 -3
- package/types/configs/index.d.ts +1 -0
- package/types/configs/user-info.d.ts +14 -0
- package/types/data-formats/output-data.d.ts +2 -2
- package/types/index.d.ts +1 -0
- package/dist/chunks/_basePickBy-DISiGhsr.mjs +0 -410
- package/dist/chunks/_baseUniq-gAuHRtRF.mjs +0 -1045
- package/dist/chunks/_getTag-Aj56Wgor.mjs +0 -26
- package/dist/chunks/architecture-YZFGNWBL-CuqTb_ae.mjs +0 -3
- package/dist/chunks/chunk-5PVQY5BW-CORl9dnu.mjs +0 -1692
- package/dist/chunks/classDiagram-6PBFFD2Q-C59BZJxp.mjs +0 -30
- package/dist/chunks/classDiagram-v2-HSJHXN6E-7a0qeMsE.mjs +0 -30
- package/dist/chunks/diagram-5BDNPKRD-CZGfTYEe.mjs +0 -112
- package/dist/chunks/gitGraph-7Q5UKJZL-Dl-vQzrq.mjs +0 -3
- package/dist/chunks/info-OMHHGYJF-BOejJvJR.mjs +0 -3
- package/dist/chunks/line-Dct5pMmw.mjs +0 -34
- package/dist/chunks/mermaid.core-CA8nc1sZ.mjs +0 -989
- package/dist/chunks/packet-4T2RLAQJ-B5ZMgwzZ.mjs +0 -3
- package/dist/chunks/pie-ZZUOXDRM-B9l6y0XJ.mjs +0 -3
- package/dist/chunks/pieDiagram-DEJITSTG-Gw-fsc6U.mjs +0 -179
- package/dist/chunks/radar-PYXPWWZC-D5kYmUaB.mjs +0 -3
- package/dist/chunks/stateDiagram-FHFEXIEX-BIBFsF65.mjs +0 -218
- package/dist/chunks/stateDiagram-v2-QKLJ7IA2-BZUmAVw7.mjs +0 -28
- package/dist/chunks/treeView-SZITEDCU-BNtnNxpI.mjs +0 -3
- package/dist/chunks/treemap-W4RFUUIX-DYENULz2.mjs +0 -3
- package/dist/chunks/wardley-RL74JXVD-ByNHVBTb.mjs +0 -3
- /package/dist/chunks/{am-BxlkYGsI.mjs → am-Bbd7cTHS.mjs} +0 -0
- /package/dist/chunks/{ar-9vlpr9V8.mjs → ar-Bo71sCQE.mjs} +0 -0
- /package/dist/chunks/{array-BsrkCVSZ.mjs → array-DbiMs_0t.mjs} +0 -0
- /package/dist/chunks/{az-ON63W_FP.mjs → az-BnNrO_xK.mjs} +0 -0
- /package/dist/chunks/{bg-CtXWTP5w.mjs → bg-CMd2n-OG.mjs} +0 -0
- /package/dist/chunks/{bn-BERvhXM4.mjs → bn-B3lorfXA.mjs} +0 -0
- /package/dist/chunks/{bs-CBg8NVPG.mjs → bs-_zM8QBsA.mjs} +0 -0
- /package/dist/chunks/{c-C6JXJf5K.mjs → c-DmKJe6GM.mjs} +0 -0
- /package/dist/chunks/{core-Bm6DWt7D.mjs → core-C942GvJO.mjs} +0 -0
- /package/dist/chunks/{cs-DeQddxS7.mjs → cs-nodpmLBf.mjs} +0 -0
- /package/dist/chunks/{csharp-YHxeHpeH.mjs → csharp-Drv96dbi.mjs} +0 -0
- /package/dist/chunks/{css-DdLevFaX.mjs → css-82tNAoU6.mjs} +0 -0
- /package/dist/chunks/{cytoscape.esm-BvD8wo00.mjs → cytoscape.esm-DSb9a7HE.mjs} +0 -0
- /package/dist/chunks/{da-DyTo-ec_.mjs → da-DwzgQcXQ.mjs} +0 -0
- /package/dist/chunks/{dart-DrPWqfcC.mjs → dart-DE9j8McI.mjs} +0 -0
- /package/dist/chunks/{de-Cu7545m1.mjs → de-BvWPiNt6.mjs} +0 -0
- /package/dist/chunks/{defaultLocale-ChuSeAxU.mjs → defaultLocale-yTyMJ3IT.mjs} +0 -0
- /package/dist/chunks/{dist-Ctq-pyfb.mjs → dist-X14EnMrO.mjs} +0 -0
- /package/dist/chunks/{dockerfile-C68ALcaN.mjs → dockerfile-D9DFksUy.mjs} +0 -0
- /package/dist/chunks/{el-oiubLRBq.mjs → el-B_D7wUrZ.mjs} +0 -0
- /package/dist/chunks/{engine-javascript-CJpnSvzf.mjs → engine-javascript-Dd6ViPCH.mjs} +0 -0
- /package/dist/chunks/{es-DZUC6Klv.mjs → es-Bn_ZFyW9.mjs} +0 -0
- /package/dist/chunks/{et-CDeklAog.mjs → et-CUcULjoh.mjs} +0 -0
- /package/dist/chunks/{fa-Cafp7_Li.mjs → fa-BRhCTsOy.mjs} +0 -0
- /package/dist/chunks/{fi-BD_V_aVW.mjs → fi-BEvyU9n6.mjs} +0 -0
- /package/dist/chunks/{fil-Crsfbtx4.mjs → fil-Dlp1_W2B.mjs} +0 -0
- /package/dist/chunks/{fr-BGGc04Zv.mjs → fr-DJBeOAx1.mjs} +0 -0
- /package/dist/chunks/{go-Fm5N96DN.mjs → go-jyWjtO8q.mjs} +0 -0
- /package/dist/chunks/{gu-Vg_BgCTp.mjs → gu-0hWvx16l.mjs} +0 -0
- /package/dist/chunks/{he-DTY9chlZ.mjs → he-CYe88qXp.mjs} +0 -0
- /package/dist/chunks/{hi-DChMXk0x.mjs → hi-DuLkkPWn.mjs} +0 -0
- /package/dist/chunks/{hr-BWVgNU8k.mjs → hr-BwCB1IMW.mjs} +0 -0
- /package/dist/chunks/{hu-B37awHXA.mjs → hu-C2dLyTeX.mjs} +0 -0
- /package/dist/chunks/{hy-DGC_GDHh.mjs → hy-DXKoDpv9.mjs} +0 -0
- /package/dist/chunks/{i18next-CXx5niYF.mjs → i18next-CLUkHqmV.mjs} +0 -0
- /package/dist/chunks/{id-V7cw6La2.mjs → id-D4chLuW_.mjs} +0 -0
- /package/dist/chunks/{init-C6T-mugb.mjs → init-BlLeEogJ.mjs} +0 -0
- /package/dist/chunks/{it-DrTGP8Rn.mjs → it-Hto3G26t.mjs} +0 -0
- /package/dist/chunks/{ja-DS4pbJEG.mjs → ja-UxHm_PPZ.mjs} +0 -0
- /package/dist/chunks/{java-83DWBpzu.mjs → java-Dhv78FEb.mjs} +0 -0
- /package/dist/chunks/{javascript-CBgeF1Xx.mjs → javascript-DilE9EuZ.mjs} +0 -0
- /package/dist/chunks/{json-BI17y-1H.mjs → json-LUtHrtDA.mjs} +0 -0
- /package/dist/chunks/{ka-BueyosRh.mjs → ka-BnjXwPUq.mjs} +0 -0
- /package/dist/chunks/{katex-CmTPfM0f.mjs → katex-B8jUB5Cv.mjs} +0 -0
- /package/dist/chunks/{km-B0K891yW.mjs → km-exgzZBIE.mjs} +0 -0
- /package/dist/chunks/{kn-BQ__skg8.mjs → kn-DjjUg8aO.mjs} +0 -0
- /package/dist/chunks/{ko-BuPxi_7e.mjs → ko-Cu0YUSV6.mjs} +0 -0
- /package/dist/chunks/{kotlin-DjnvsrfO.mjs → kotlin-DFLPXbOQ.mjs} +0 -0
- /package/dist/chunks/{ku-nQjwPRw2.mjs → ku-D-IxJ0fx.mjs} +0 -0
- /package/dist/chunks/{lo-K5NVFoq1.mjs → lo-BcwjJBcv.mjs} +0 -0
- /package/dist/chunks/{lt-D3xD6Eb2.mjs → lt-Bt05MFPC.mjs} +0 -0
- /package/dist/chunks/{lv-DH13mzZj.mjs → lv-B01TmEFW.mjs} +0 -0
- /package/dist/chunks/{markdown-BqQYT45f.mjs → markdown-C6pnqcPd.mjs} +0 -0
- /package/dist/chunks/{mdast-util-math-BlK2Zu-1.mjs → mdast-util-math-D56mMxhB.mjs} +0 -0
- /package/dist/chunks/{mermaid-vF0cEnZ0.mjs → mermaid-BKA834jS.mjs} +0 -0
- /package/dist/chunks/{mk-Bb48BcDA.mjs → mk-DlZNyDhn.mjs} +0 -0
- /package/dist/chunks/{ml-BHPEj1kD.mjs → ml-CizMIOxl.mjs} +0 -0
- /package/dist/chunks/{mn-BNGzpdI6.mjs → mn-B_pDvxok.mjs} +0 -0
- /package/dist/chunks/{mr-D5PgU-cH.mjs → mr-D8D_7YmW.mjs} +0 -0
- /package/dist/chunks/{ms-DPkxqKz5.mjs → ms-CM93I8ec.mjs} +0 -0
- /package/dist/chunks/{my-DZGcyfxy.mjs → my-BGnGdDAV.mjs} +0 -0
- /package/dist/chunks/{ne-BU_Wh4Wv.mjs → ne-C6ZmmqhH.mjs} +0 -0
- /package/dist/chunks/{nl-DtAPk1mK.mjs → nl-UGFOU80W.mjs} +0 -0
- /package/dist/chunks/{no-CdW3n3BY.mjs → no-as-DKhC4.mjs} +0 -0
- /package/dist/chunks/{notifier-CuvTt9pe.mjs → notifier-PpnFhM0m.mjs} +0 -0
- /package/dist/chunks/{one-light-DmNO_Y4X.mjs → one-light-Di_o5Kb7.mjs} +0 -0
- /package/dist/chunks/{pa-BacCHz87.mjs → pa-DiOAveAI.mjs} +0 -0
- /package/dist/chunks/{path-rIMjg_tH.mjs → path-7pA19U_d.mjs} +0 -0
- /package/dist/chunks/{pl-8zBJbmhZ.mjs → pl-DXk8ye3B.mjs} +0 -0
- /package/dist/chunks/{ps-c6nGXD-W.mjs → ps-CuxilZ3F.mjs} +0 -0
- /package/dist/chunks/{pt-B5yR8Qhr.mjs → pt-DsT6E77q.mjs} +0 -0
- /package/dist/chunks/{python-DfwfY9t5.mjs → python-DYiHKGPV.mjs} +0 -0
- /package/dist/chunks/{r-BD2D7qEW.mjs → r-BZ4pC-Uz.mjs} +0 -0
- /package/dist/chunks/{ro-Nscylsqb.mjs → ro-CcAQOL-B.mjs} +0 -0
- /package/dist/chunks/{rough.esm-cmMIcj7N.mjs → rough.esm-BPA_YwbP.mjs} +0 -0
- /package/dist/chunks/{ru-DxERQkVJ.mjs → ru-hD41D0Fd.mjs} +0 -0
- /package/dist/chunks/{rust-DEDueB5R.mjs → rust-Db_HEGL5.mjs} +0 -0
- /package/dist/chunks/{scala-CsjqvxE4.mjs → scala-B1kK21mu.mjs} +0 -0
- /package/dist/chunks/{sd-5z-QY3q9.mjs → sd-Biu7f00A.mjs} +0 -0
- /package/dist/chunks/{shellscript-Bh5zEpnQ.mjs → shellscript-BBh7AxMC.mjs} +0 -0
- /package/dist/chunks/{si-DTL0mzrx.mjs → si-Bhto6prC.mjs} +0 -0
- /package/dist/chunks/{sk-DrGczTvY.mjs → sk-Ce7J4sHX.mjs} +0 -0
- /package/dist/chunks/{sl-D8nJjig4.mjs → sl-Fz7idR9w.mjs} +0 -0
- /package/dist/chunks/{sq-C74Hm3YL.mjs → sq-CnLb3bAQ.mjs} +0 -0
- /package/dist/chunks/{sql-D9CrOi1i.mjs → sql-DHkazX4B.mjs} +0 -0
- /package/dist/chunks/{sr-DAwB05Gj.mjs → sr-Bc5JbF-b.mjs} +0 -0
- /package/dist/chunks/{src-DVJl6f6s.mjs → src-B3rrEIze.mjs} +0 -0
- /package/dist/chunks/{sv-BkHBsN4y.mjs → sv-B86P2LyK.mjs} +0 -0
- /package/dist/chunks/{sw-BBQLTq_z.mjs → sw-CnQXriTg.mjs} +0 -0
- /package/dist/chunks/{swift-Dpyt0s2c.mjs → swift-DZdprfb-.mjs} +0 -0
- /package/dist/chunks/{ta-DRRzdKky.mjs → ta-CG4BbxjE.mjs} +0 -0
- /package/dist/chunks/{te-CedXLsKM.mjs → te-CkE35V1X.mjs} +0 -0
- /package/dist/chunks/{th-DDOlGA0W.mjs → th-BCtkHu3E.mjs} +0 -0
- /package/dist/chunks/{tr-ClgvwOlL.mjs → tr-D5Cexvko.mjs} +0 -0
- /package/dist/chunks/{typescript-DO5cd4m8.mjs → typescript-DhtGMhWX.mjs} +0 -0
- /package/dist/chunks/{ug-bXxwiinM.mjs → ug-Bt9xMT4p.mjs} +0 -0
- /package/dist/chunks/{uk-Dp46o_VT.mjs → uk-D1g7UV0v.mjs} +0 -0
- /package/dist/chunks/{ur-MfEEhdFq.mjs → ur-B69faQh_.mjs} +0 -0
- /package/dist/chunks/{vi-bt-3LPGO.mjs → vi--gW42cZG.mjs} +0 -0
- /package/dist/chunks/{vitesse-dark-CcorSKT2.mjs → vitesse-dark-B5oAIYZ5.mjs} +0 -0
- /package/dist/chunks/{yaml-CrNNZyLb.mjs → yaml-T4MCc8o4.mjs} +0 -0
- /package/dist/chunks/{zh-Dgyb5Ly8.mjs → zh-DgQ6P8Lu.mjs} +0 -0
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
import { t as e } from "./objectSpread2-CWwMYL_U.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { n as h, r as g } from "./chunk-U2HBQHQK-
|
|
6
|
-
import { n as _, t as v } from "./chunk-ZZ45TVLE-
|
|
7
|
-
import { a as y, i as b, r as x, t as S } from "./chunk-X2U36JSP-
|
|
8
|
-
import { t as C } from "./rough.esm-
|
|
2
|
+
import { i as t, l as n, n as r } from "./chunk-5PVQY5BW-BP7ENjg7.mjs";
|
|
3
|
+
import { g as i, h as a, p as o } from "./src-B3rrEIze.mjs";
|
|
4
|
+
import { L as s, R as c, b as l, h as u, j as d, k as f, w as p, y as m } from "./chunk-ICPOFSXX-BOvOTlG6.mjs";
|
|
5
|
+
import { n as h, r as g } from "./chunk-U2HBQHQK-DiQOEtQH.mjs";
|
|
6
|
+
import { n as _, t as v } from "./chunk-ZZ45TVLE-D28EyJ6R.mjs";
|
|
7
|
+
import { a as y, i as b, r as x, t as S } from "./chunk-X2U36JSP-Cznp5Jm-.mjs";
|
|
8
|
+
import { t as C } from "./rough.esm-BPA_YwbP.mjs";
|
|
9
9
|
//#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-5FUZZQ4R.mjs
|
|
10
|
-
var w = /* @__PURE__ */
|
|
11
|
-
var a, c,
|
|
12
|
-
let
|
|
13
|
-
|
|
14
|
-
let m = e.insert("g").attr("class",
|
|
15
|
-
_ =
|
|
16
|
-
let y = !!
|
|
17
|
-
useHtmlLabels:
|
|
18
|
-
width:
|
|
10
|
+
var w = /* @__PURE__ */ a(async (e, r, i) => {
|
|
11
|
+
var a, c, d;
|
|
12
|
+
let f, p = r.useHtmlLabels || u((a = l()) == null ? void 0 : a.htmlLabels);
|
|
13
|
+
f = i || "node default";
|
|
14
|
+
let m = e.insert("g").attr("class", f).attr("id", r.domId || r.id), g = m.insert("g").attr("class", "label").attr("style", n(r.labelStyle)), _;
|
|
15
|
+
_ = r.label === void 0 ? "" : typeof r.label == "string" ? r.label : r.label[0];
|
|
16
|
+
let y = !!r.icon || !!r.img, b = r.labelType === "markdown", x = await h(g, s(t(_), l()), {
|
|
17
|
+
useHtmlLabels: p,
|
|
18
|
+
width: r.width || ((c = l().flowchart) == null ? void 0 : c.wrappingWidth),
|
|
19
19
|
classes: b ? "markdown-node-label" : "",
|
|
20
|
-
style:
|
|
20
|
+
style: r.labelStyle,
|
|
21
21
|
addSvgBackground: y,
|
|
22
22
|
markdown: b
|
|
23
|
-
},
|
|
24
|
-
if (
|
|
25
|
-
let e = x.children[0], t =
|
|
23
|
+
}, l()), S = x.getBBox(), C = ((d = r == null ? void 0 : r.padding) == null ? 0 : d) / 2;
|
|
24
|
+
if (p) {
|
|
25
|
+
let e = x.children[0], t = o(x);
|
|
26
26
|
await v(e, _), S = e.getBoundingClientRect(), t.attr("width", S.width), t.attr("height", S.height);
|
|
27
27
|
}
|
|
28
|
-
return
|
|
28
|
+
return p ? g.attr("transform", "translate(" + -S.width / 2 + ", " + -S.height / 2 + ")") : g.attr("transform", "translate(0, " + -S.height / 2 + ")"), r.centerLabel && g.attr("transform", "translate(" + -S.width / 2 + ", " + -S.height / 2 + ")"), g.insert("rect", ":first-child"), {
|
|
29
29
|
shapeSvg: m,
|
|
30
30
|
bbox: S,
|
|
31
31
|
halfPadding: C,
|
|
32
32
|
label: g
|
|
33
33
|
};
|
|
34
|
-
}, "labelHelper"), T = /* @__PURE__ */
|
|
35
|
-
var
|
|
36
|
-
let c = (
|
|
34
|
+
}, "labelHelper"), T = /* @__PURE__ */ a(async (e, n, r) => {
|
|
35
|
+
var i, a;
|
|
36
|
+
let c = (i = r.useHtmlLabels) == null ? p(l()) : i, u = e.insert("g").attr("class", "label").attr("style", r.labelStyle || ""), d = await h(u, s(t(n), l()), {
|
|
37
37
|
useHtmlLabels: c,
|
|
38
|
-
width:
|
|
39
|
-
style:
|
|
40
|
-
addSvgBackground: !!
|
|
41
|
-
}),
|
|
42
|
-
if (
|
|
43
|
-
let e = d.children[0], t =
|
|
44
|
-
|
|
38
|
+
width: r.width || ((a = l()) == null || (a = a.flowchart) == null ? void 0 : a.wrappingWidth),
|
|
39
|
+
style: r.labelStyle,
|
|
40
|
+
addSvgBackground: !!r.icon || !!r.img
|
|
41
|
+
}), f = d.getBBox(), m = r.padding / 2;
|
|
42
|
+
if (p(l())) {
|
|
43
|
+
let e = d.children[0], t = o(d);
|
|
44
|
+
f = e.getBoundingClientRect(), t.attr("width", f.width), t.attr("height", f.height);
|
|
45
45
|
}
|
|
46
|
-
return c ?
|
|
46
|
+
return c ? u.attr("transform", "translate(" + -f.width / 2 + ", " + -f.height / 2 + ")") : u.attr("transform", "translate(0, " + -f.height / 2 + ")"), r.centerLabel && u.attr("transform", "translate(" + -f.width / 2 + ", " + -f.height / 2 + ")"), u.insert("rect", ":first-child"), {
|
|
47
47
|
shapeSvg: e,
|
|
48
|
-
bbox:
|
|
48
|
+
bbox: f,
|
|
49
49
|
halfPadding: m,
|
|
50
|
-
label:
|
|
50
|
+
label: u
|
|
51
51
|
};
|
|
52
|
-
}, "insertLabel"), E = /* @__PURE__ */
|
|
52
|
+
}, "insertLabel"), E = /* @__PURE__ */ a((e, t) => {
|
|
53
53
|
let n = t.node().getBBox();
|
|
54
54
|
e.width = n.width, e.height = n.height;
|
|
55
|
-
}, "updateNodeBounds"), D = /* @__PURE__ */
|
|
55
|
+
}, "updateNodeBounds"), D = /* @__PURE__ */ a((e, t) => (e.look === "handDrawn" ? "rough-node" : "node") + " " + e.cssClasses + " " + (t || ""), "getNodeClasses");
|
|
56
56
|
function O(e) {
|
|
57
57
|
let t = e.map((e, t) => `${t === 0 ? "M" : "L"}${e.x},${e.y}`);
|
|
58
58
|
return t.push("Z"), t.join(" ");
|
|
59
59
|
}
|
|
60
|
-
|
|
60
|
+
a(O, "createPathFromPoints");
|
|
61
61
|
function k(e, t, n, r, i, a) {
|
|
62
62
|
let o = [], s = n - e, c = r - t, l = s / a, u = 2 * Math.PI / l, d = t + c / 2;
|
|
63
63
|
for (let t = 0; t <= 50; t++) {
|
|
@@ -69,7 +69,7 @@ function k(e, t, n, r, i, a) {
|
|
|
69
69
|
}
|
|
70
70
|
return o;
|
|
71
71
|
}
|
|
72
|
-
|
|
72
|
+
a(k, "generateFullSineWavePoints");
|
|
73
73
|
function A(e, t, n, r, i, a) {
|
|
74
74
|
let o = [], s = i * Math.PI / 180, c = (a * Math.PI / 180 - s) / (r - 1);
|
|
75
75
|
for (let i = 0; i < r; i++) {
|
|
@@ -81,22 +81,22 @@ function A(e, t, n, r, i, a) {
|
|
|
81
81
|
}
|
|
82
82
|
return o;
|
|
83
83
|
}
|
|
84
|
-
|
|
84
|
+
a(A, "generateCirclePoints");
|
|
85
85
|
function j(e) {
|
|
86
|
-
let t = Array.from(e.childNodes).filter((e) => e.tagName === "path"),
|
|
87
|
-
|
|
88
|
-
let
|
|
86
|
+
let t = Array.from(e.childNodes).filter((e) => e.tagName === "path"), n = document.createElementNS("http://www.w3.org/2000/svg", "path"), r = t.map((e) => e.getAttribute("d")).filter((e) => e !== null).join(" ");
|
|
87
|
+
n.setAttribute("d", r);
|
|
88
|
+
let i = t.find((e) => e.getAttribute("fill") !== "none"), o = t.find((e) => e.getAttribute("stroke") !== "none"), s = /* @__PURE__ */ a((e, t) => {
|
|
89
89
|
var n;
|
|
90
90
|
return (n = e == null ? void 0 : e.getAttribute(t)) == null ? void 0 : n;
|
|
91
91
|
}, "getAttr");
|
|
92
|
-
if (
|
|
92
|
+
if (i) {
|
|
93
93
|
var c;
|
|
94
94
|
let e = {
|
|
95
|
-
fill: s(
|
|
96
|
-
"fill-opacity": (c = s(
|
|
95
|
+
fill: s(i, "fill"),
|
|
96
|
+
"fill-opacity": (c = s(i, "fill-opacity")) == null ? "1" : c
|
|
97
97
|
};
|
|
98
98
|
Object.entries(e).forEach(([e, t]) => {
|
|
99
|
-
t &&
|
|
99
|
+
t && n.setAttribute(e, t);
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
102
|
if (o) {
|
|
@@ -107,32 +107,32 @@ function j(e) {
|
|
|
107
107
|
"stroke-opacity": (u = s(o, "stroke-opacity")) == null ? "1" : u
|
|
108
108
|
};
|
|
109
109
|
Object.entries(e).forEach(([e, t]) => {
|
|
110
|
-
t &&
|
|
110
|
+
t && n.setAttribute(e, t);
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
113
|
let d = document.createElementNS("http://www.w3.org/2000/svg", "g");
|
|
114
|
-
return d.appendChild(
|
|
114
|
+
return d.appendChild(n), d;
|
|
115
115
|
}
|
|
116
|
-
|
|
117
|
-
var M = /* @__PURE__ */
|
|
116
|
+
a(j, "mergePaths");
|
|
117
|
+
var M = /* @__PURE__ */ a((e, t) => {
|
|
118
118
|
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;
|
|
119
119
|
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), {
|
|
120
120
|
x: n + c,
|
|
121
121
|
y: r + l
|
|
122
122
|
};
|
|
123
|
-
}, "intersectRect"), N = /* @__PURE__ */
|
|
123
|
+
}, "intersectRect"), N = /* @__PURE__ */ a(async (e, t, n, r = !1, i = !1) => {
|
|
124
124
|
let a = t || "";
|
|
125
125
|
typeof a == "object" && (a = a[0]);
|
|
126
|
-
let
|
|
126
|
+
let o = l(), s = p(o);
|
|
127
127
|
return await h(e, a, {
|
|
128
128
|
style: n,
|
|
129
129
|
isTitle: r,
|
|
130
|
-
useHtmlLabels:
|
|
130
|
+
useHtmlLabels: s,
|
|
131
131
|
markdown: !1,
|
|
132
132
|
isNode: i,
|
|
133
133
|
width: Infinity
|
|
134
|
-
},
|
|
135
|
-
}, "createLabel"), P = /* @__PURE__ */
|
|
134
|
+
}, o);
|
|
135
|
+
}, "createLabel"), P = /* @__PURE__ */ a((e, t, n, r, i) => [
|
|
136
136
|
"M",
|
|
137
137
|
e + i,
|
|
138
138
|
t,
|
|
@@ -177,43 +177,43 @@ var M = /* @__PURE__ */ n((e, t) => {
|
|
|
177
177
|
e + i,
|
|
178
178
|
t,
|
|
179
179
|
"Z"
|
|
180
|
-
].join(" "), "createRoundedRectPathD"), F = /* @__PURE__ */
|
|
181
|
-
|
|
182
|
-
let
|
|
183
|
-
S =
|
|
184
|
-
style:
|
|
180
|
+
].join(" "), "createRoundedRectPathD"), F = /* @__PURE__ */ a(async (e, t) => {
|
|
181
|
+
i.info("Creating subgraph rect for ", t.id, t);
|
|
182
|
+
let n = l(), { themeVariables: r, handDrawnSeed: a } = n, { clusterBkg: s, clusterBorder: c } = r, { labelStyles: u, nodeStyles: d, borderStyles: f, backgroundStyles: m } = b(t), g = e.insert("g").attr("class", "cluster " + t.cssClasses).attr("id", t.domId).attr("data-look", t.look), v = p(n), x = g.insert("g").attr("class", "cluster-label "), S;
|
|
183
|
+
S = t.labelType === "markdown" ? await h(x, t.label, {
|
|
184
|
+
style: t.labelStyle,
|
|
185
185
|
useHtmlLabels: v,
|
|
186
186
|
isNode: !0,
|
|
187
|
-
width:
|
|
188
|
-
}) : await N(x,
|
|
187
|
+
width: t.width
|
|
188
|
+
}) : await N(x, t.label, t.labelStyle || "", !1, !0);
|
|
189
189
|
let w = S.getBBox();
|
|
190
|
-
if (
|
|
191
|
-
let e = S.children[0], t =
|
|
190
|
+
if (p(n)) {
|
|
191
|
+
let e = S.children[0], t = o(S);
|
|
192
192
|
w = e.getBoundingClientRect(), t.attr("width", w.width), t.attr("height", w.height);
|
|
193
193
|
}
|
|
194
|
-
let T =
|
|
195
|
-
|
|
196
|
-
let E =
|
|
197
|
-
|
|
194
|
+
let T = t.width <= w.width + t.padding ? w.width + t.padding : t.width;
|
|
195
|
+
t.width <= w.width + t.padding ? t.diff = (T - t.width) / 2 - t.padding : t.diff = -t.padding;
|
|
196
|
+
let E = t.height, D = t.x - T / 2, O = t.y - E / 2;
|
|
197
|
+
i.trace("Data ", t, JSON.stringify(t));
|
|
198
198
|
let k;
|
|
199
|
-
if (
|
|
200
|
-
let e = C.svg(g),
|
|
199
|
+
if (t.look === "handDrawn") {
|
|
200
|
+
let e = C.svg(g), n = y(t, {
|
|
201
201
|
roughness: .7,
|
|
202
|
-
fill:
|
|
203
|
-
stroke:
|
|
202
|
+
fill: s,
|
|
203
|
+
stroke: c,
|
|
204
204
|
fillWeight: 3,
|
|
205
|
-
seed:
|
|
206
|
-
}),
|
|
207
|
-
k = g.insert(() => (
|
|
208
|
-
} else k = g.insert("rect", ":first-child"), k.attr("style",
|
|
209
|
-
let { subGraphTitleTopMargin: A } = _(
|
|
210
|
-
if (x.attr("transform", `translate(${
|
|
205
|
+
seed: a
|
|
206
|
+
}), r = e.path(P(D, O, T, E, 0), n);
|
|
207
|
+
k = g.insert(() => (i.debug("Rough node insert CXC", r), r), ":first-child"), k.select("path:nth-child(2)").attr("style", f.join(";")), k.select("path").attr("style", m.join(";").replace("fill", "stroke"));
|
|
208
|
+
} else k = g.insert("rect", ":first-child"), k.attr("style", d).attr("rx", t.rx).attr("ry", t.ry).attr("x", D).attr("y", O).attr("width", T).attr("height", E);
|
|
209
|
+
let { subGraphTitleTopMargin: A } = _(n);
|
|
210
|
+
if (x.attr("transform", `translate(${t.x - w.width / 2}, ${t.y - t.height / 2 + A})`), u) {
|
|
211
211
|
let e = x.select("span");
|
|
212
|
-
e && e.attr("style",
|
|
212
|
+
e && e.attr("style", u);
|
|
213
213
|
}
|
|
214
214
|
let j = k.node().getBBox();
|
|
215
|
-
return
|
|
216
|
-
return M(
|
|
215
|
+
return t.offsetX = 0, t.width = j.width, t.height = j.height, t.offsetY = w.height - t.padding / 2, t.intersect = function(e) {
|
|
216
|
+
return M(t, e);
|
|
217
217
|
}, {
|
|
218
218
|
cluster: g,
|
|
219
219
|
labelBBox: w
|
|
@@ -221,10 +221,10 @@ var M = /* @__PURE__ */ n((e, t) => {
|
|
|
221
221
|
}, "rect"), I = {
|
|
222
222
|
rect: F,
|
|
223
223
|
squareRect: F,
|
|
224
|
-
roundedWithTitle: /* @__PURE__ */
|
|
225
|
-
let n =
|
|
226
|
-
if (
|
|
227
|
-
let e = g.children[0], t =
|
|
224
|
+
roundedWithTitle: /* @__PURE__ */ a(async (e, t) => {
|
|
225
|
+
let n = l(), { themeVariables: r, handDrawnSeed: i } = n, { altBackground: a, compositeBackground: s, compositeTitleBackground: c, nodeBorder: u } = r, d = e.insert("g").attr("class", t.cssClasses).attr("id", t.domId).attr("data-id", t.id).attr("data-look", t.look), f = d.insert("g", ":first-child"), m = d.insert("g").attr("class", "cluster-label"), h = d.append("rect"), g = await N(m, t.label, t.labelStyle, void 0, !0), _ = g.getBBox();
|
|
226
|
+
if (p(n)) {
|
|
227
|
+
let e = g.children[0], t = o(g);
|
|
228
228
|
_ = e.getBoundingClientRect(), t.attr("width", _.width), t.attr("height", _.height);
|
|
229
229
|
}
|
|
230
230
|
let v = 0 * t.padding, y = v / 2, b = (t.width <= _.width + t.padding ? _.width + t.padding : t.width) + v;
|
|
@@ -233,30 +233,30 @@ var M = /* @__PURE__ */ n((e, t) => {
|
|
|
233
233
|
t.width = b;
|
|
234
234
|
let E = t.y - t.height / 2 - y + _.height + 2, D;
|
|
235
235
|
if (t.look === "handDrawn") {
|
|
236
|
-
let e = t.cssClasses.includes("statediagram-cluster-alt"), n = C.svg(
|
|
236
|
+
let e = t.cssClasses.includes("statediagram-cluster-alt"), n = C.svg(d), r = t.rx || t.ry ? n.path(P(w, T, b, x, 10), {
|
|
237
237
|
roughness: .7,
|
|
238
|
-
fill:
|
|
238
|
+
fill: c,
|
|
239
239
|
fillStyle: "solid",
|
|
240
|
-
stroke:
|
|
241
|
-
seed:
|
|
242
|
-
}) : n.rectangle(w, T, b, x, { seed:
|
|
243
|
-
D =
|
|
244
|
-
let
|
|
245
|
-
fill: e ?
|
|
240
|
+
stroke: u,
|
|
241
|
+
seed: i
|
|
242
|
+
}) : n.rectangle(w, T, b, x, { seed: i });
|
|
243
|
+
D = d.insert(() => r, ":first-child");
|
|
244
|
+
let o = n.rectangle(w, E, b, S, {
|
|
245
|
+
fill: e ? a : s,
|
|
246
246
|
fillStyle: e ? "hachure" : "solid",
|
|
247
|
-
stroke:
|
|
248
|
-
seed:
|
|
247
|
+
stroke: u,
|
|
248
|
+
seed: i
|
|
249
249
|
});
|
|
250
|
-
D =
|
|
251
|
-
} else D =
|
|
252
|
-
return m.attr("transform", `translate(${t.x - _.width / 2}, ${T + 1 - (
|
|
250
|
+
D = d.insert(() => r, ":first-child"), h = d.insert(() => o);
|
|
251
|
+
} else D = f.insert("rect", ":first-child"), D.attr("class", "outer").attr("x", w).attr("y", T).attr("width", b).attr("height", x).attr("data-look", t.look), h.attr("class", "inner").attr("x", w).attr("y", E).attr("width", b).attr("height", S);
|
|
252
|
+
return m.attr("transform", `translate(${t.x - _.width / 2}, ${T + 1 - (p(n) ? 0 : 3)})`), t.height = D.node().getBBox().height, t.offsetX = 0, t.offsetY = _.height - t.padding / 2, t.labelBBox = _, t.intersect = function(e) {
|
|
253
253
|
return M(t, e);
|
|
254
254
|
}, {
|
|
255
|
-
cluster:
|
|
255
|
+
cluster: d,
|
|
256
256
|
labelBBox: _
|
|
257
257
|
};
|
|
258
258
|
}, "roundedWithTitle"),
|
|
259
|
-
noteGroup: /* @__PURE__ */
|
|
259
|
+
noteGroup: /* @__PURE__ */ a((e, t) => {
|
|
260
260
|
let n = e.insert("g").attr("class", "note-cluster").attr("id", t.domId), r = n.insert("rect", ":first-child"), i = 0 * t.padding, a = i / 2;
|
|
261
261
|
r.attr("rx", t.rx).attr("ry", t.ry).attr("x", t.x - t.width / 2 - a).attr("y", t.y - t.height / 2 - a).attr("width", t.width + i).attr("height", t.height + i).attr("fill", "none");
|
|
262
262
|
let o = r.node().getBBox();
|
|
@@ -270,14 +270,14 @@ var M = /* @__PURE__ */ n((e, t) => {
|
|
|
270
270
|
}
|
|
271
271
|
};
|
|
272
272
|
}, "noteGroup"),
|
|
273
|
-
divider: /* @__PURE__ */
|
|
274
|
-
let { themeVariables: n, handDrawnSeed: r } =
|
|
273
|
+
divider: /* @__PURE__ */ a((e, t) => {
|
|
274
|
+
let { themeVariables: n, handDrawnSeed: r } = l(), { nodeBorder: i } = n, a = e.insert("g").attr("class", t.cssClasses).attr("id", t.domId).attr("data-look", t.look), o = a.insert("g", ":first-child"), s = 0 * t.padding, c = t.width + s;
|
|
275
275
|
t.diff = -t.padding;
|
|
276
|
-
let u = t.height +
|
|
277
|
-
t.width =
|
|
276
|
+
let u = t.height + s, d = t.x - c / 2, f = t.y - u / 2;
|
|
277
|
+
t.width = c;
|
|
278
278
|
let p;
|
|
279
279
|
if (t.look === "handDrawn") {
|
|
280
|
-
let e = C.svg(a).rectangle(d, f,
|
|
280
|
+
let e = C.svg(a).rectangle(d, f, c, u, {
|
|
281
281
|
fill: "lightgrey",
|
|
282
282
|
roughness: .5,
|
|
283
283
|
strokeLineDash: [5],
|
|
@@ -286,9 +286,9 @@ var M = /* @__PURE__ */ n((e, t) => {
|
|
|
286
286
|
});
|
|
287
287
|
p = a.insert(() => e, ":first-child");
|
|
288
288
|
} else {
|
|
289
|
-
p =
|
|
289
|
+
p = o.insert("rect", ":first-child");
|
|
290
290
|
let e = "outer";
|
|
291
|
-
e = (t.look, "divider"), p.attr("class", e).attr("x", d).attr("y", f).attr("width",
|
|
291
|
+
e = (t.look, "divider"), p.attr("class", e).attr("x", d).attr("y", f).attr("width", c).attr("height", u).attr("data-look", t.look);
|
|
292
292
|
}
|
|
293
293
|
return t.height = p.node().getBBox().height, t.offsetX = 0, t.offsetY = 0, t.intersect = function(e) {
|
|
294
294
|
return M(t, e);
|
|
@@ -297,56 +297,56 @@ var M = /* @__PURE__ */ n((e, t) => {
|
|
|
297
297
|
labelBBox: {}
|
|
298
298
|
};
|
|
299
299
|
}, "divider"),
|
|
300
|
-
kanbanSection: /* @__PURE__ */
|
|
301
|
-
|
|
302
|
-
let
|
|
303
|
-
style:
|
|
300
|
+
kanbanSection: /* @__PURE__ */ a(async (e, t) => {
|
|
301
|
+
i.info("Creating subgraph rect for ", t.id, t);
|
|
302
|
+
let n = l(), { themeVariables: r, handDrawnSeed: a } = n, { clusterBkg: s, clusterBorder: c } = r, { labelStyles: u, nodeStyles: d, borderStyles: f, backgroundStyles: m } = b(t), g = e.insert("g").attr("class", "cluster " + t.cssClasses).attr("id", t.domId).attr("data-look", t.look), v = p(n), x = g.insert("g").attr("class", "cluster-label "), S = await h(x, t.label, {
|
|
303
|
+
style: t.labelStyle,
|
|
304
304
|
useHtmlLabels: v,
|
|
305
305
|
isNode: !0,
|
|
306
|
-
width:
|
|
306
|
+
width: t.width
|
|
307
307
|
}), w = S.getBBox();
|
|
308
|
-
if (
|
|
309
|
-
let e = S.children[0], t =
|
|
308
|
+
if (p(n)) {
|
|
309
|
+
let e = S.children[0], t = o(S);
|
|
310
310
|
w = e.getBoundingClientRect(), t.attr("width", w.width), t.attr("height", w.height);
|
|
311
311
|
}
|
|
312
|
-
let T =
|
|
313
|
-
|
|
314
|
-
let E =
|
|
315
|
-
|
|
312
|
+
let T = t.width <= w.width + t.padding ? w.width + t.padding : t.width;
|
|
313
|
+
t.width <= w.width + t.padding ? t.diff = (T - t.width) / 2 - t.padding : t.diff = -t.padding;
|
|
314
|
+
let E = t.height, D = t.x - T / 2, O = t.y - E / 2;
|
|
315
|
+
i.trace("Data ", t, JSON.stringify(t));
|
|
316
316
|
let k;
|
|
317
|
-
if (
|
|
318
|
-
let e = C.svg(g),
|
|
317
|
+
if (t.look === "handDrawn") {
|
|
318
|
+
let e = C.svg(g), n = y(t, {
|
|
319
319
|
roughness: .7,
|
|
320
|
-
fill:
|
|
321
|
-
stroke:
|
|
320
|
+
fill: s,
|
|
321
|
+
stroke: c,
|
|
322
322
|
fillWeight: 4,
|
|
323
|
-
seed:
|
|
324
|
-
}),
|
|
325
|
-
k = g.insert(() => (
|
|
326
|
-
} else k = g.insert("rect", ":first-child"), k.attr("style",
|
|
327
|
-
let { subGraphTitleTopMargin: A } = _(
|
|
328
|
-
if (x.attr("transform", `translate(${
|
|
323
|
+
seed: a
|
|
324
|
+
}), r = e.path(P(D, O, T, E, t.rx), n);
|
|
325
|
+
k = g.insert(() => (i.debug("Rough node insert CXC", r), r), ":first-child"), k.select("path:nth-child(2)").attr("style", f.join(";")), k.select("path").attr("style", m.join(";").replace("fill", "stroke"));
|
|
326
|
+
} else k = g.insert("rect", ":first-child"), k.attr("style", d).attr("rx", t.rx).attr("ry", t.ry).attr("x", D).attr("y", O).attr("width", T).attr("height", E);
|
|
327
|
+
let { subGraphTitleTopMargin: A } = _(n);
|
|
328
|
+
if (x.attr("transform", `translate(${t.x - w.width / 2}, ${t.y - t.height / 2 + A})`), u) {
|
|
329
329
|
let e = x.select("span");
|
|
330
|
-
e && e.attr("style",
|
|
330
|
+
e && e.attr("style", u);
|
|
331
331
|
}
|
|
332
332
|
let j = k.node().getBBox();
|
|
333
|
-
return
|
|
334
|
-
return M(
|
|
333
|
+
return t.offsetX = 0, t.width = j.width, t.height = j.height, t.offsetY = w.height - t.padding / 2, t.intersect = function(e) {
|
|
334
|
+
return M(t, e);
|
|
335
335
|
}, {
|
|
336
336
|
cluster: g,
|
|
337
337
|
labelBBox: w
|
|
338
338
|
};
|
|
339
339
|
}, "kanbanSection")
|
|
340
|
-
}, L = /* @__PURE__ */ new Map(), R = /* @__PURE__ */
|
|
340
|
+
}, L = /* @__PURE__ */ new Map(), R = /* @__PURE__ */ a(async (e, t) => {
|
|
341
341
|
let n = await I[t.shape || "rect"](e, t);
|
|
342
342
|
return L.set(t.id, n), n;
|
|
343
|
-
}, "insertCluster"), z = /* @__PURE__ */
|
|
343
|
+
}, "insertCluster"), z = /* @__PURE__ */ a(() => {
|
|
344
344
|
L = /* @__PURE__ */ new Map();
|
|
345
345
|
}, "clear");
|
|
346
346
|
function B(e, t) {
|
|
347
347
|
return e.intersect(t);
|
|
348
348
|
}
|
|
349
|
-
|
|
349
|
+
a(B, "intersectNode");
|
|
350
350
|
var V = B;
|
|
351
351
|
function H(e, t, n, r) {
|
|
352
352
|
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);
|
|
@@ -357,12 +357,12 @@ function H(e, t, n, r) {
|
|
|
357
357
|
y: a + u
|
|
358
358
|
};
|
|
359
359
|
}
|
|
360
|
-
|
|
360
|
+
a(H, "intersectEllipse");
|
|
361
361
|
var U = H;
|
|
362
362
|
function W(e, t, n) {
|
|
363
363
|
return U(e, t, t, n);
|
|
364
364
|
}
|
|
365
|
-
|
|
365
|
+
a(W, "intersectCircle");
|
|
366
366
|
var G = W;
|
|
367
367
|
function ee(e, t, n, r) {
|
|
368
368
|
{
|
|
@@ -379,11 +379,11 @@ function ee(e, t, n, r) {
|
|
|
379
379
|
};
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
|
-
|
|
382
|
+
a(ee, "intersectLine");
|
|
383
383
|
function te(e, t) {
|
|
384
384
|
return e * t > 0;
|
|
385
385
|
}
|
|
386
|
-
|
|
386
|
+
a(te, "sameSign");
|
|
387
387
|
var ne = ee;
|
|
388
388
|
function K(e, t, n) {
|
|
389
389
|
let r = e.x, i = e.y, a = [], o = Infinity, s = Infinity;
|
|
@@ -406,7 +406,7 @@ function K(e, t, n) {
|
|
|
406
406
|
return a < c ? -1 : a === c ? 0 : 1;
|
|
407
407
|
}), a[0]) : e;
|
|
408
408
|
}
|
|
409
|
-
|
|
409
|
+
a(K, "intersectPolygon");
|
|
410
410
|
var q = {
|
|
411
411
|
node: V,
|
|
412
412
|
circle: G,
|
|
@@ -414,23 +414,23 @@ var q = {
|
|
|
414
414
|
polygon: K,
|
|
415
415
|
rect: M
|
|
416
416
|
};
|
|
417
|
-
function re(e,
|
|
418
|
-
let { labelStyles: r } = b(
|
|
419
|
-
|
|
420
|
-
let
|
|
421
|
-
|
|
422
|
-
let
|
|
417
|
+
function re(e, t) {
|
|
418
|
+
let { labelStyles: r } = b(t);
|
|
419
|
+
t.labelStyle = r;
|
|
420
|
+
let a = D(t), o = a;
|
|
421
|
+
a || (o = "anchor");
|
|
422
|
+
let s = e.insert("g").attr("class", o).attr("id", t.domId || t.id), { cssStyles: c } = t, l = C.svg(s), u = y(t, {
|
|
423
423
|
fill: "black",
|
|
424
424
|
stroke: "none",
|
|
425
425
|
fillStyle: "solid"
|
|
426
426
|
});
|
|
427
|
-
|
|
428
|
-
let
|
|
429
|
-
return
|
|
430
|
-
return
|
|
431
|
-
},
|
|
427
|
+
t.look !== "handDrawn" && (u.roughness = 0);
|
|
428
|
+
let d = l.circle(0, 0, 2, u), f = s.insert(() => d, ":first-child");
|
|
429
|
+
return f.attr("class", "anchor").attr("style", n(c)), E(t, f), t.intersect = function(e) {
|
|
430
|
+
return i.info("Circle intersect", t, 1, e), q.circle(t, 1, e);
|
|
431
|
+
}, s;
|
|
432
432
|
}
|
|
433
|
-
|
|
433
|
+
a(re, "anchor");
|
|
434
434
|
function ie(e, t, n, r, i, a, o) {
|
|
435
435
|
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);
|
|
436
436
|
if (m > 1) throw Error("The given radii are too small to create an arc between the points.");
|
|
@@ -446,17 +446,17 @@ function ie(e, t, n, r, i, a, o) {
|
|
|
446
446
|
}
|
|
447
447
|
return b;
|
|
448
448
|
}
|
|
449
|
-
|
|
449
|
+
a(ie, "generateArcPoints");
|
|
450
450
|
function ae(e, t, n) {
|
|
451
451
|
let [r, i] = [t, n].sort((e, t) => t - e);
|
|
452
452
|
return i * (1 - Math.sqrt(1 - (e / r / 2) ** 2));
|
|
453
453
|
}
|
|
454
|
-
|
|
454
|
+
a(ae, "calculateArcSagitta");
|
|
455
455
|
async function J(e, t) {
|
|
456
|
-
var
|
|
457
|
-
let { labelStyles:
|
|
458
|
-
t.labelStyle =
|
|
459
|
-
let o = (
|
|
456
|
+
var n;
|
|
457
|
+
let { labelStyles: r, nodeStyles: i } = b(t);
|
|
458
|
+
t.labelStyle = r;
|
|
459
|
+
let o = (n = t.padding) == null ? 0 : n, s = t.look === "neo" ? 16 : o, c = t.look === "neo" ? 12 : o, l = /* @__PURE__ */ a((e) => e + c, "calcTotalHeight"), u = /* @__PURE__ */ a((e) => {
|
|
460
460
|
let t = e / 2;
|
|
461
461
|
return [t / (2.5 + e / 50), t];
|
|
462
462
|
}, "calcEllipseRadius"), { shapeSvg: d, bbox: f } = await w(e, t, D(t)), p = l(t != null && t.height ? t == null ? void 0 : t.height : f.height), [m, h] = u(p), g = ae(p, m, h), _ = (t != null && t.width ? t == null ? void 0 : t.width : f.width) + s * 2 + g - g, v = p, { cssStyles: x } = t, S = [
|
|
@@ -477,17 +477,17 @@ async function J(e, t) {
|
|
|
477
477
|
], T = C.svg(d), k = y(t, {});
|
|
478
478
|
t.look !== "handDrawn" && (k.roughness = 0, k.fillStyle = "solid");
|
|
479
479
|
let A = O(S), j = T.path(A, k), M = d.insert(() => j, ":first-child");
|
|
480
|
-
return M.attr("class", "basic label-container outer-path"), x && t.look !== "handDrawn" && M.selectAll("path").attr("style", x),
|
|
480
|
+
return M.attr("class", "basic label-container outer-path"), x && t.look !== "handDrawn" && M.selectAll("path").attr("style", x), i && t.look !== "handDrawn" && M.selectAll("path").attr("style", i), M.attr("transform", `translate(${m / 2}, 0)`), E(t, M), t.intersect = function(e) {
|
|
481
481
|
return q.polygon(t, S, e);
|
|
482
482
|
}, d;
|
|
483
483
|
}
|
|
484
|
-
|
|
484
|
+
a(J, "bowTieRect");
|
|
485
485
|
function Y(e, t, n, r) {
|
|
486
486
|
return e.insert("polygon", ":first-child").attr("points", r.map(function(e) {
|
|
487
487
|
return e.x + "," + e.y;
|
|
488
488
|
}).join(" ")).attr("class", "label-container").attr("transform", "translate(" + -t / 2 + "," + n / 2 + ")");
|
|
489
489
|
}
|
|
490
|
-
|
|
490
|
+
a(Y, "insertPolygonShape");
|
|
491
491
|
var oe = 12;
|
|
492
492
|
async function se(e, t) {
|
|
493
493
|
var n, r, i;
|
|
@@ -527,7 +527,7 @@ async function se(e, t) {
|
|
|
527
527
|
return q.polygon(t, g, e);
|
|
528
528
|
}, u;
|
|
529
529
|
}
|
|
530
|
-
|
|
530
|
+
a(se, "card");
|
|
531
531
|
function ce(e, t) {
|
|
532
532
|
var n, r;
|
|
533
533
|
let { nodeStyles: i } = b(t);
|
|
@@ -556,24 +556,24 @@ function ce(e, t) {
|
|
|
556
556
|
return q.polygon(t, c, e);
|
|
557
557
|
}, a;
|
|
558
558
|
}
|
|
559
|
-
|
|
560
|
-
async function le(e,
|
|
561
|
-
var
|
|
562
|
-
let { labelStyles:
|
|
563
|
-
|
|
564
|
-
let { shapeSvg:
|
|
565
|
-
if (
|
|
566
|
-
let e = C.svg(
|
|
567
|
-
|
|
568
|
-
} else
|
|
569
|
-
return E(
|
|
559
|
+
a(ce, "choice");
|
|
560
|
+
async function le(e, t, r) {
|
|
561
|
+
var a;
|
|
562
|
+
let { labelStyles: o, nodeStyles: s } = b(t);
|
|
563
|
+
t.labelStyle = o;
|
|
564
|
+
let { shapeSvg: c, bbox: l, halfPadding: u } = await w(e, t, D(t)), d = (a = r == null ? void 0 : r.padding) == null ? u : a, f = t.look === "neo" ? l.width / 2 + 32 : l.width / 2 + d, p, { cssStyles: m } = t;
|
|
565
|
+
if (t.look === "handDrawn") {
|
|
566
|
+
let e = C.svg(c), r = y(t, {}), i = e.circle(0, 0, f * 2, r);
|
|
567
|
+
p = c.insert(() => i, ":first-child"), p.attr("class", "basic label-container").attr("style", n(m));
|
|
568
|
+
} else p = c.insert("circle", ":first-child").attr("class", "basic label-container").attr("style", s).attr("r", f).attr("cx", 0).attr("cy", 0);
|
|
569
|
+
return E(t, p), t.calcIntersect = function(e, t) {
|
|
570
570
|
let n = e.width / 2;
|
|
571
571
|
return q.circle(e, n, t);
|
|
572
|
-
},
|
|
573
|
-
return
|
|
574
|
-
},
|
|
572
|
+
}, t.intersect = function(e) {
|
|
573
|
+
return i.info("Circle intersect", t, f, e), q.circle(t, f, e);
|
|
574
|
+
}, c;
|
|
575
575
|
}
|
|
576
|
-
|
|
576
|
+
a(le, "circle");
|
|
577
577
|
function X(e) {
|
|
578
578
|
let t = Math.cos(Math.PI / 4), n = Math.sin(Math.PI / 4), r = e * 2, i = {
|
|
579
579
|
x: r / 2 * t,
|
|
@@ -591,22 +591,22 @@ function X(e) {
|
|
|
591
591
|
return `M ${a.x},${a.y} L ${s.x},${s.y}
|
|
592
592
|
M ${i.x},${i.y} L ${o.x},${o.y}`;
|
|
593
593
|
}
|
|
594
|
-
|
|
595
|
-
function Z(e,
|
|
596
|
-
var
|
|
597
|
-
let { labelStyles: a, nodeStyles: o } = b(
|
|
598
|
-
|
|
599
|
-
let s = e.insert("g").attr("class", D(
|
|
600
|
-
|
|
594
|
+
a(X, "createLine");
|
|
595
|
+
function Z(e, t) {
|
|
596
|
+
var n, r;
|
|
597
|
+
let { labelStyles: a, nodeStyles: o } = b(t);
|
|
598
|
+
t.labelStyle = a, t.label = "";
|
|
599
|
+
let s = e.insert("g").attr("class", D(t)).attr("id", (n = t.domId) == null ? t.id : n), c = Math.max(30, (r = t == null ? void 0 : t.width) == null ? 0 : r), { cssStyles: l } = t, u = C.svg(s), d = y(t, {});
|
|
600
|
+
t.look !== "handDrawn" && (d.roughness = 0, d.fillStyle = "solid");
|
|
601
601
|
let f = u.circle(0, 0, c * 2, d), p = X(c), m = u.path(p, d), h = s.insert(() => f, ":first-child");
|
|
602
|
-
return h.insert(() => m), h.attr("class", "outer-path"), l &&
|
|
603
|
-
return
|
|
602
|
+
return h.insert(() => m), h.attr("class", "outer-path"), l && t.look !== "handDrawn" && h.selectAll("path").attr("style", l), o && t.look !== "handDrawn" && h.selectAll("path").attr("style", o), E(t, h), t.intersect = function(e) {
|
|
603
|
+
return i.info("crossedCircle intersect", t, {
|
|
604
604
|
radius: c,
|
|
605
605
|
point: e
|
|
606
|
-
}), q.circle(
|
|
606
|
+
}), q.circle(t, c, e);
|
|
607
607
|
}, s;
|
|
608
608
|
}
|
|
609
|
-
|
|
609
|
+
a(Z, "crossedCircle");
|
|
610
610
|
function ue(e, t, n, r = 100, i = 0, a = 180) {
|
|
611
611
|
let o = [], s = i * Math.PI / 180, c = (a * Math.PI / 180 - s) / (r - 1);
|
|
612
612
|
for (let i = 0; i < r; i++) {
|
|
@@ -618,7 +618,7 @@ function ue(e, t, n, r = 100, i = 0, a = 180) {
|
|
|
618
618
|
}
|
|
619
619
|
return o;
|
|
620
620
|
}
|
|
621
|
-
|
|
621
|
+
a(ue, "generateCirclePoints");
|
|
622
622
|
async function de(t, n) {
|
|
623
623
|
var r, i, a, o, s;
|
|
624
624
|
let { labelStyles: c, nodeStyles: l } = b(n);
|
|
@@ -672,7 +672,7 @@ async function de(t, n) {
|
|
|
672
672
|
return q.polygon(n, S, e);
|
|
673
673
|
}, u;
|
|
674
674
|
}
|
|
675
|
-
|
|
675
|
+
a(de, "curlyBraceLeft");
|
|
676
676
|
function fe(e, t, n, r = 100, i = 0, a = 180) {
|
|
677
677
|
let o = [], s = i * Math.PI / 180, c = (a * Math.PI / 180 - s) / (r - 1);
|
|
678
678
|
for (let i = 0; i < r; i++) {
|
|
@@ -684,7 +684,7 @@ function fe(e, t, n, r = 100, i = 0, a = 180) {
|
|
|
684
684
|
}
|
|
685
685
|
return o;
|
|
686
686
|
}
|
|
687
|
-
|
|
687
|
+
a(fe, "generateCirclePoints");
|
|
688
688
|
async function pe(t, n) {
|
|
689
689
|
var r, i, a, o, s, c;
|
|
690
690
|
let { labelStyles: l, nodeStyles: u } = b(n);
|
|
@@ -738,7 +738,7 @@ async function pe(t, n) {
|
|
|
738
738
|
return q.polygon(n, T, e);
|
|
739
739
|
}, d;
|
|
740
740
|
}
|
|
741
|
-
|
|
741
|
+
a(pe, "curlyBraceRight");
|
|
742
742
|
function Q(e, t, n, r = 100, i = 0, a = 180) {
|
|
743
743
|
let o = [], s = i * Math.PI / 180, c = (a * Math.PI / 180 - s) / (r - 1);
|
|
744
744
|
for (let i = 0; i < r; i++) {
|
|
@@ -750,7 +750,7 @@ function Q(e, t, n, r = 100, i = 0, a = 180) {
|
|
|
750
750
|
}
|
|
751
751
|
return o;
|
|
752
752
|
}
|
|
753
|
-
|
|
753
|
+
a(Q, "generateCirclePoints");
|
|
754
754
|
async function me(t, n) {
|
|
755
755
|
var r, i, a, o, s, c;
|
|
756
756
|
let { labelStyles: l, nodeStyles: u } = b(n);
|
|
@@ -829,7 +829,7 @@ async function me(t, n) {
|
|
|
829
829
|
return q.polygon(n, k, e);
|
|
830
830
|
}, d;
|
|
831
831
|
}
|
|
832
|
-
|
|
832
|
+
a(me, "curlyBraces");
|
|
833
833
|
async function he(e, t) {
|
|
834
834
|
var n, r, i;
|
|
835
835
|
let { labelStyles: a, nodeStyles: o } = b(t);
|
|
@@ -863,43 +863,43 @@ async function he(e, t) {
|
|
|
863
863
|
return q.polygon(t, k, e);
|
|
864
864
|
}, u;
|
|
865
865
|
}
|
|
866
|
-
|
|
867
|
-
var ge = /* @__PURE__ */
|
|
866
|
+
a(he, "curvedTrapezoid");
|
|
867
|
+
var ge = /* @__PURE__ */ a((e, t, n, r, i, a) => [
|
|
868
868
|
`M${e},${t + a}`,
|
|
869
869
|
`a${i},${a} 0,0,0 ${n},0`,
|
|
870
870
|
`a${i},${a} 0,0,0 ${-n},0`,
|
|
871
871
|
`l0,${r}`,
|
|
872
872
|
`a${i},${a} 0,0,0 ${n},0`,
|
|
873
873
|
`l0,${-r}`
|
|
874
|
-
].join(" "), "createCylinderPathD"), _e = /* @__PURE__ */
|
|
874
|
+
].join(" "), "createCylinderPathD"), _e = /* @__PURE__ */ a((e, t, n, r, i, a) => [
|
|
875
875
|
`M${e},${t + a}`,
|
|
876
876
|
`M${e + n},${t + a}`,
|
|
877
877
|
`a${i},${a} 0,0,0 ${-n},0`,
|
|
878
878
|
`l0,${r}`,
|
|
879
879
|
`a${i},${a} 0,0,0 ${n},0`,
|
|
880
880
|
`l0,${-r}`
|
|
881
|
-
].join(" "), "createOuterCylinderPathD"), ve = /* @__PURE__ */
|
|
881
|
+
].join(" "), "createOuterCylinderPathD"), ve = /* @__PURE__ */ a((e, t, n, r, i, a) => [`M${e - n / 2},${-r / 2}`, `a${i},${a} 0,0,0 ${n},0`].join(" "), "createInnerCylinderPathD"), ye = 8, be = 8;
|
|
882
882
|
async function xe(e, t) {
|
|
883
|
-
var
|
|
884
|
-
let { labelStyles:
|
|
885
|
-
t.labelStyle =
|
|
886
|
-
let
|
|
883
|
+
var r, i, a, o;
|
|
884
|
+
let { labelStyles: s, nodeStyles: c } = b(t);
|
|
885
|
+
t.labelStyle = s;
|
|
886
|
+
let l = (r = t.padding) == null ? 0 : r, u = t.look === "neo" ? 24 : l, d = t.look === "neo" ? 24 : l;
|
|
887
887
|
if (t.width || t.height) {
|
|
888
|
-
var
|
|
889
|
-
let e = (
|
|
890
|
-
t.width = ((
|
|
888
|
+
var f, p, m;
|
|
889
|
+
let e = (f = t.width) == null ? 0 : f;
|
|
890
|
+
t.width = ((p = t.width) == null ? 0 : p) - d, t.width < be && (t.width = be);
|
|
891
891
|
let n = e / 2 / (2.5 + e / 50);
|
|
892
|
-
t.height = ((m = t.height) == null ? 0 : m) -
|
|
892
|
+
t.height = ((m = t.height) == null ? 0 : m) - u - n * 3, t.height < ye && (t.height = ye);
|
|
893
893
|
}
|
|
894
|
-
let { shapeSvg: h, bbox: g, label: _ } = await w(e, t, D(t)), v = (t.width ? t.width : g.width) +
|
|
894
|
+
let { shapeSvg: h, bbox: g, label: _ } = await w(e, t, D(t)), v = (t.width ? t.width : g.width) + d, x = v / 2, S = x / (2.5 + v / 50), T = (t.height ? t.height : g.height) + u + S, O, { cssStyles: k } = t;
|
|
895
895
|
if (t.look === "handDrawn") {
|
|
896
896
|
let e = C.svg(h), n = _e(0, 0, v, T, x, S), r = ve(0, S, v, T, x, S), i = y(t, {}), a = e.path(n, i), o = e.path(r, y(t, { fill: "none" }));
|
|
897
897
|
O = h.insert(() => o, ":first-child"), O = h.insert(() => a, ":first-child"), O.attr("class", "basic label-container"), k && O.attr("style", k);
|
|
898
898
|
} else {
|
|
899
899
|
let e = ge(0, 0, v, T, x, S);
|
|
900
|
-
O = h.insert("path", ":first-child").attr("d", e).attr("class", "basic label-container outer-path").attr("style",
|
|
900
|
+
O = h.insert("path", ":first-child").attr("d", e).attr("class", "basic label-container outer-path").attr("style", n(k)).attr("style", c);
|
|
901
901
|
}
|
|
902
|
-
return O.attr("label-offset-y", S), O.attr("transform", `translate(${-v / 2}, ${-(T / 2 + S)})`), E(t, O), _.attr("transform", `translate(${-(g.width / 2) - (g.x - ((
|
|
902
|
+
return O.attr("label-offset-y", S), O.attr("transform", `translate(${-v / 2}, ${-(T / 2 + S)})`), E(t, O), _.attr("transform", `translate(${-(g.width / 2) - (g.x - ((i = g.left) == null ? 0 : i))}, ${-(g.height / 2) + ((a = t.padding) == null ? 0 : a) / 1.5 - (g.y - ((o = g.top) == null ? 0 : o))})`), t.intersect = function(e) {
|
|
903
903
|
var n, r, i, a, o;
|
|
904
904
|
let s = q.rect(t, e), c = s.x - ((n = t.x) == null ? 0 : n);
|
|
905
905
|
if (x != 0 && (Math.abs(c) < ((r = t.width) == null ? 0 : r) / 2 || Math.abs(c) == ((i = t.width) == null ? 0 : i) / 2 && Math.abs(s.y - ((a = t.y) == null ? 0 : a)) > ((o = t.height) == null ? 0 : o) / 2 - S)) {
|
|
@@ -910,7 +910,7 @@ async function xe(e, t) {
|
|
|
910
910
|
return s;
|
|
911
911
|
}, h;
|
|
912
912
|
}
|
|
913
|
-
|
|
913
|
+
a(xe, "cylinder");
|
|
914
914
|
async function Se(e, t) {
|
|
915
915
|
var n, r, i, a, o, s;
|
|
916
916
|
let { labelStyles: c, nodeStyles: l } = b(t);
|
|
@@ -951,58 +951,58 @@ async function Se(e, t) {
|
|
|
951
951
|
return q.rect(t, e);
|
|
952
952
|
}, f;
|
|
953
953
|
}
|
|
954
|
-
|
|
955
|
-
async function Ce(e,
|
|
954
|
+
a(Se, "dividedRectangle");
|
|
955
|
+
async function Ce(e, t) {
|
|
956
956
|
var r;
|
|
957
|
-
let { labelStyles:
|
|
958
|
-
|
|
959
|
-
let
|
|
960
|
-
if (
|
|
957
|
+
let { labelStyles: a, nodeStyles: o } = b(t), s = t.look === "neo" ? 12 : 5;
|
|
958
|
+
t.labelStyle = a;
|
|
959
|
+
let c = (r = t.padding) == null ? 0 : r, l = t.look === "neo" ? 16 : c, { shapeSvg: u, bbox: d } = await w(e, t, D(t)), f = (t != null && t.width ? (t == null ? void 0 : t.width) / 2 : d.width / 2) + (l == null ? 0 : l), p = f - s, m, { cssStyles: h } = t;
|
|
960
|
+
if (t.look === "handDrawn") {
|
|
961
961
|
var g, _;
|
|
962
|
-
let e = C.svg(
|
|
962
|
+
let e = C.svg(u), r = y(t, {
|
|
963
963
|
roughness: .2,
|
|
964
964
|
strokeWidth: 2.5
|
|
965
|
-
}),
|
|
965
|
+
}), i = y(t, {
|
|
966
966
|
roughness: .2,
|
|
967
967
|
strokeWidth: 1.5
|
|
968
|
-
}),
|
|
969
|
-
m =
|
|
968
|
+
}), a = e.circle(0, 0, f * 2, r), o = e.circle(0, 0, p * 2, i);
|
|
969
|
+
m = u.insert("g", ":first-child"), m.attr("class", n(t.cssClasses)).attr("style", n(h)), (g = m.node()) == null || g.appendChild(a), (_ = m.node()) == null || _.appendChild(o);
|
|
970
970
|
} else {
|
|
971
|
-
m =
|
|
971
|
+
m = u.insert("g", ":first-child");
|
|
972
972
|
let e = m.insert("circle", ":first-child"), t = m.insert("circle");
|
|
973
|
-
m.attr("class", "basic label-container").attr("style",
|
|
973
|
+
m.attr("class", "basic label-container").attr("style", o), e.attr("class", "outer-circle").attr("style", o).attr("r", f).attr("cx", 0).attr("cy", 0), t.attr("class", "inner-circle").attr("style", o).attr("r", p).attr("cx", 0).attr("cy", 0);
|
|
974
974
|
}
|
|
975
|
-
return E(
|
|
976
|
-
return
|
|
977
|
-
},
|
|
975
|
+
return E(t, m), t.intersect = function(e) {
|
|
976
|
+
return i.info("DoubleCircle intersect", t, f, e), q.circle(t, f, e);
|
|
977
|
+
}, u;
|
|
978
978
|
}
|
|
979
|
-
|
|
980
|
-
function we(e,
|
|
981
|
-
var
|
|
982
|
-
let { labelStyles: a, nodeStyles: o } = b(
|
|
983
|
-
|
|
984
|
-
let s = e.insert("g").attr("class", D(
|
|
985
|
-
|
|
979
|
+
a(Ce, "doublecircle");
|
|
980
|
+
function we(e, t, { config: { themeVariables: n } }) {
|
|
981
|
+
var r;
|
|
982
|
+
let { labelStyles: a, nodeStyles: o } = b(t);
|
|
983
|
+
t.label = "", t.labelStyle = a;
|
|
984
|
+
let s = e.insert("g").attr("class", D(t)).attr("id", (r = t.domId) == null ? t.id : r), { cssStyles: c } = t, l = C.svg(s), { nodeBorder: u } = n, d = y(t, { fillStyle: "solid" });
|
|
985
|
+
t.look !== "handDrawn" && (d.roughness = 0);
|
|
986
986
|
let f = l.circle(0, 0, 14, d), p = s.insert(() => f, ":first-child");
|
|
987
|
-
return p.selectAll("path").attr("style", `fill: ${u} !important;`), c && c.length > 0 &&
|
|
988
|
-
return
|
|
987
|
+
return p.selectAll("path").attr("style", `fill: ${u} !important;`), c && c.length > 0 && t.look !== "handDrawn" && p.selectAll("path").attr("style", c), o && t.look !== "handDrawn" && p.selectAll("path").attr("style", o), E(t, p), t.intersect = function(e) {
|
|
988
|
+
return i.info("filledCircle intersect", t, {
|
|
989
989
|
radius: 7,
|
|
990
990
|
point: e
|
|
991
|
-
}), q.circle(
|
|
991
|
+
}), q.circle(t, 7, e);
|
|
992
992
|
}, s;
|
|
993
993
|
}
|
|
994
|
-
|
|
994
|
+
a(we, "filledCircle");
|
|
995
995
|
var Te = 10, Ee = 10;
|
|
996
|
-
async function De(e,
|
|
997
|
-
var
|
|
998
|
-
let { labelStyles: s, nodeStyles: c } = b(
|
|
999
|
-
|
|
1000
|
-
let l = (
|
|
1001
|
-
if (
|
|
996
|
+
async function De(e, t) {
|
|
997
|
+
var n, r, a, o;
|
|
998
|
+
let { labelStyles: s, nodeStyles: c } = b(t);
|
|
999
|
+
t.labelStyle = s;
|
|
1000
|
+
let l = (n = t.padding) == null ? 0 : n, u = t.look === "neo" ? l * 2 : l;
|
|
1001
|
+
if (t.width || t.height) {
|
|
1002
1002
|
var d, f;
|
|
1003
|
-
|
|
1003
|
+
t.height = (d = t == null ? void 0 : t.height) == null ? 0 : d, t.height < Te && (t.height = Te), t.width = ((f = t == null ? void 0 : t.width) == null ? 0 : f) - u - u / 2, t.width < Ee && (t.width = Ee);
|
|
1004
1004
|
}
|
|
1005
|
-
let { shapeSvg: p, bbox: m, label: h } = await w(e,
|
|
1005
|
+
let { shapeSvg: p, bbox: m, label: h } = await w(e, t, D(t)), g = (t != null && t.width ? t == null ? void 0 : t.width : m.width) + (u == null ? 0 : u), _ = t != null && t.height ? t == null ? void 0 : t.height : g + m.height, v = _, x = [
|
|
1006
1006
|
{
|
|
1007
1007
|
x: 0,
|
|
1008
1008
|
y: -_
|
|
@@ -1015,14 +1015,14 @@ async function De(e, n) {
|
|
|
1015
1015
|
x: v / 2,
|
|
1016
1016
|
y: 0
|
|
1017
1017
|
}
|
|
1018
|
-
], { cssStyles: S } =
|
|
1019
|
-
|
|
1018
|
+
], { cssStyles: S } = t, T = C.svg(p), k = y(t, {});
|
|
1019
|
+
t.look !== "handDrawn" && (k.roughness = 0, k.fillStyle = "solid");
|
|
1020
1020
|
let A = O(x), j = T.path(A, k), M = p.insert(() => j, ":first-child").attr("transform", `translate(${-_ / 2}, ${_ / 2})`).attr("class", "outer-path");
|
|
1021
|
-
return S &&
|
|
1022
|
-
return
|
|
1021
|
+
return S && t.look !== "handDrawn" && M.selectChildren("path").attr("style", S), c && t.look !== "handDrawn" && M.selectChildren("path").attr("style", c), t.width = g, t.height = _, E(t, M), h.attr("transform", `translate(${-m.width / 2 - (m.x - ((r = m.left) == null ? 0 : r))}, ${-_ / 2 + ((a = t.padding) == null ? 0 : a) / 2 + (m.y - ((o = m.top) == null ? 0 : o))})`), t.intersect = function(e) {
|
|
1022
|
+
return i.info("Triangle intersect", t, x, e), q.polygon(t, x, e);
|
|
1023
1023
|
}, p;
|
|
1024
1024
|
}
|
|
1025
|
-
|
|
1025
|
+
a(De, "flippedTriangle");
|
|
1026
1026
|
function Oe(e, t, { dir: n, config: { state: r, themeVariables: i } }) {
|
|
1027
1027
|
var a, o, s, c;
|
|
1028
1028
|
let { nodeStyles: l } = b(t);
|
|
@@ -1044,18 +1044,18 @@ function Oe(e, t, { dir: n, config: { state: r, themeVariables: i } }) {
|
|
|
1044
1044
|
return q.rect(t, e);
|
|
1045
1045
|
}, u;
|
|
1046
1046
|
}
|
|
1047
|
-
|
|
1048
|
-
async function ke(e,
|
|
1049
|
-
var
|
|
1050
|
-
let { labelStyles: a, nodeStyles: o } = b(
|
|
1051
|
-
|
|
1052
|
-
let s =
|
|
1053
|
-
if (
|
|
1047
|
+
a(Oe, "forkJoin");
|
|
1048
|
+
async function ke(e, t) {
|
|
1049
|
+
var n, r;
|
|
1050
|
+
let { labelStyles: a, nodeStyles: o } = b(t);
|
|
1051
|
+
t.labelStyle = a;
|
|
1052
|
+
let s = t.look === "neo" ? 16 : (n = t.padding) == null ? 0 : n, c = t.look === "neo" ? 12 : (r = t.padding) == null ? 0 : r;
|
|
1053
|
+
if (t.width || t.height) {
|
|
1054
1054
|
var l, u;
|
|
1055
|
-
|
|
1055
|
+
t.height = ((l = t == null ? void 0 : t.height) == null ? 0 : l) - c * 2, t.height < 10 && (t.height = 10), t.width = ((u = t == null ? void 0 : t.width) == null ? 0 : u) - s * 2, t.width < 15 && (t.width = 15);
|
|
1056
1056
|
}
|
|
1057
|
-
let { shapeSvg: d, bbox: f } = await w(e,
|
|
1058
|
-
|
|
1057
|
+
let { shapeSvg: d, bbox: f } = await w(e, t, D(t)), p = (t != null && t.width ? t == null ? void 0 : t.width : Math.max(15, f.width)) + s * 2, m = (t != null && t.height ? t == null ? void 0 : t.height : Math.max(10, f.height)) + c * 2, h = m / 2, { cssStyles: g } = t, _ = C.svg(d), v = y(t, {});
|
|
1058
|
+
t.look !== "handDrawn" && (v.roughness = 0, v.fillStyle = "solid");
|
|
1059
1059
|
let x = [
|
|
1060
1060
|
{
|
|
1061
1061
|
x: -p / 2,
|
|
@@ -1075,15 +1075,15 @@ async function ke(e, n) {
|
|
|
1075
1075
|
y: m / 2
|
|
1076
1076
|
}
|
|
1077
1077
|
], S = O(x), T = _.path(S, v), k = d.insert(() => T, ":first-child");
|
|
1078
|
-
return k.attr("class", "basic label-container outer-path"), g &&
|
|
1079
|
-
return
|
|
1078
|
+
return k.attr("class", "basic label-container outer-path"), g && t.look !== "handDrawn" && k.selectChildren("path").attr("style", g), o && t.look !== "handDrawn" && k.selectChildren("path").attr("style", o), E(t, k), t.intersect = function(e) {
|
|
1079
|
+
return i.info("Pill intersect", t, {
|
|
1080
1080
|
radius: h,
|
|
1081
1081
|
point: e
|
|
1082
|
-
}), q.polygon(
|
|
1082
|
+
}), q.polygon(t, x, e);
|
|
1083
1083
|
}, d;
|
|
1084
1084
|
}
|
|
1085
|
-
|
|
1086
|
-
var Ae = /* @__PURE__ */
|
|
1085
|
+
a(ke, "halfRoundedRectangle");
|
|
1086
|
+
var Ae = /* @__PURE__ */ a((e, t, n, r, i) => [
|
|
1087
1087
|
`M${e + i},${t}`,
|
|
1088
1088
|
`L${e + n - i},${t}`,
|
|
1089
1089
|
`L${e + n},${t - r / 2}`,
|
|
@@ -1136,13 +1136,13 @@ async function je(e, t) {
|
|
|
1136
1136
|
return q.polygon(t, _, e);
|
|
1137
1137
|
}, f;
|
|
1138
1138
|
}
|
|
1139
|
-
|
|
1140
|
-
async function Me(e,
|
|
1141
|
-
var
|
|
1142
|
-
let { labelStyles: a, nodeStyles: o } = b(
|
|
1143
|
-
|
|
1144
|
-
let { shapeSvg: s } = await w(e,
|
|
1145
|
-
|
|
1139
|
+
a(je, "hexagon");
|
|
1140
|
+
async function Me(e, t) {
|
|
1141
|
+
var n, r;
|
|
1142
|
+
let { labelStyles: a, nodeStyles: o } = b(t);
|
|
1143
|
+
t.label = "", t.labelStyle = a;
|
|
1144
|
+
let { shapeSvg: s } = await w(e, t, D(t)), c = Math.max(30, (n = t == null ? void 0 : t.width) == null ? 0 : n), l = Math.max(30, (r = t == null ? void 0 : t.height) == null ? 0 : r), { cssStyles: u } = t, d = C.svg(s), f = y(t, {});
|
|
1145
|
+
t.look !== "handDrawn" && (f.roughness = 0, f.fillStyle = "solid");
|
|
1146
1146
|
let p = [
|
|
1147
1147
|
{
|
|
1148
1148
|
x: 0,
|
|
@@ -1161,41 +1161,41 @@ async function Me(e, n) {
|
|
|
1161
1161
|
y: l
|
|
1162
1162
|
}
|
|
1163
1163
|
], m = O(p), h = d.path(m, f), g = s.insert(() => h, ":first-child");
|
|
1164
|
-
return g.attr("class", "basic label-container outer-path"), u &&
|
|
1165
|
-
return
|
|
1164
|
+
return g.attr("class", "basic label-container outer-path"), u && t.look !== "handDrawn" && g.selectChildren("path").attr("style", u), o && t.look !== "handDrawn" && g.selectChildren("path").attr("style", o), g.attr("transform", `translate(${-c / 2}, ${-l / 2})`), E(t, g), t.intersect = function(e) {
|
|
1165
|
+
return i.info("Pill intersect", t, { points: p }), q.polygon(t, p, e);
|
|
1166
1166
|
}, s;
|
|
1167
1167
|
}
|
|
1168
|
-
|
|
1169
|
-
async function Ne(
|
|
1168
|
+
a(Me, "hourglass");
|
|
1169
|
+
async function Ne(t, n, { config: { themeVariables: r, flowchart: a } }) {
|
|
1170
1170
|
var o, s, c;
|
|
1171
|
-
let { labelStyles: l } = b(
|
|
1172
|
-
|
|
1173
|
-
let u = (o =
|
|
1174
|
-
|
|
1175
|
-
let { shapeSvg: m, bbox: h, label: _ } = await w(
|
|
1171
|
+
let { labelStyles: l } = b(n);
|
|
1172
|
+
n.labelStyle = l;
|
|
1173
|
+
let u = (o = n.assetHeight) == null ? 48 : o, d = (s = n.assetWidth) == null ? 48 : s, f = Math.max(u, d), p = a == null ? void 0 : a.wrappingWidth;
|
|
1174
|
+
n.width = Math.max(f, p == null ? 0 : p);
|
|
1175
|
+
let { shapeSvg: m, bbox: h, label: _ } = await w(t, n, "icon-shape default"), v = n.pos === "t", x = f, T = f, { nodeBorder: D } = r, { stylesMap: O } = S(n), k = -T / 2, A = -x / 2, j = n.label ? 8 : 0, M = C.svg(m), N = y(n, {
|
|
1176
1176
|
stroke: "none",
|
|
1177
1177
|
fill: "none"
|
|
1178
1178
|
});
|
|
1179
|
-
|
|
1179
|
+
n.look !== "handDrawn" && (N.roughness = 0, N.fillStyle = "solid");
|
|
1180
1180
|
let P = M.rectangle(k, A, T, x, N), F = Math.max(T, h.width), I = x + h.height + j, L = M.rectangle(-F / 2, -I / 2, F, I, e(e({}, N), {}, {
|
|
1181
1181
|
fill: "transparent",
|
|
1182
1182
|
stroke: "none"
|
|
1183
1183
|
})), R = m.insert(() => P, ":first-child"), z = m.insert(() => L);
|
|
1184
|
-
if (
|
|
1184
|
+
if (n.icon) {
|
|
1185
1185
|
var B;
|
|
1186
1186
|
let e = m.append("g");
|
|
1187
|
-
e.html(`<g>${await g(
|
|
1187
|
+
e.html(`<g>${await g(n.icon, {
|
|
1188
1188
|
height: f,
|
|
1189
1189
|
width: f,
|
|
1190
1190
|
fallbackPrefix: ""
|
|
1191
1191
|
})}</g>`);
|
|
1192
|
-
let t = e.node().getBBox(),
|
|
1193
|
-
e.attr("transform", `translate(${-
|
|
1192
|
+
let t = e.node().getBBox(), r = t.width, i = t.height, a = t.x, o = t.y;
|
|
1193
|
+
e.attr("transform", `translate(${-r / 2 - a},${v ? h.height / 2 + j / 2 - i / 2 - o : -h.height / 2 - j / 2 - i / 2 - o})`), e.attr("style", `color: ${(B = O.get("stroke")) == null ? D : B};`);
|
|
1194
1194
|
}
|
|
1195
|
-
return _.attr("transform", `translate(${-h.width / 2 - (h.x - ((c = h.left) == null ? 0 : c))},${v ? -I / 2 : I / 2 - h.height})`), R.attr("transform", `translate(0,${v ? h.height / 2 + j / 2 : -h.height / 2 - j / 2})`), E(
|
|
1196
|
-
var
|
|
1197
|
-
if (
|
|
1198
|
-
let o = (
|
|
1195
|
+
return _.attr("transform", `translate(${-h.width / 2 - (h.x - ((c = h.left) == null ? 0 : c))},${v ? -I / 2 : I / 2 - h.height})`), R.attr("transform", `translate(0,${v ? h.height / 2 + j / 2 : -h.height / 2 - j / 2})`), E(n, z), n.intersect = function(e) {
|
|
1196
|
+
var t, r, a;
|
|
1197
|
+
if (i.info("iconSquare intersect", n, e), !n.label) return q.rect(n, e);
|
|
1198
|
+
let o = (t = n.x) == null ? 0 : t, s = (r = n.y) == null ? 0 : r, c = (a = n.height) == null ? 0 : a, l = [];
|
|
1199
1199
|
return l = v ? [
|
|
1200
1200
|
{
|
|
1201
1201
|
x: o - h.width / 2,
|
|
@@ -1262,22 +1262,22 @@ async function Ne(n, r, { config: { themeVariables: i, flowchart: a } }) {
|
|
|
1262
1262
|
x: o - T / 2,
|
|
1263
1263
|
y: s - c / 2 + x
|
|
1264
1264
|
}
|
|
1265
|
-
], q.polygon(
|
|
1265
|
+
], q.polygon(n, l, e);
|
|
1266
1266
|
}, m;
|
|
1267
1267
|
}
|
|
1268
|
-
|
|
1269
|
-
async function Pe(
|
|
1268
|
+
a(Ne, "icon");
|
|
1269
|
+
async function Pe(t, n, { config: { themeVariables: r, flowchart: a } }) {
|
|
1270
1270
|
var o, s, c, l;
|
|
1271
|
-
let { labelStyles: u } = b(
|
|
1272
|
-
|
|
1273
|
-
let d = (o =
|
|
1274
|
-
|
|
1275
|
-
let { shapeSvg: h, bbox: _, label: v } = await w(
|
|
1276
|
-
|
|
1271
|
+
let { labelStyles: u } = b(n);
|
|
1272
|
+
n.labelStyle = u;
|
|
1273
|
+
let d = (o = n.assetHeight) == null ? 48 : o, f = (s = n.assetWidth) == null ? 48 : s, p = Math.max(d, f), m = a == null ? void 0 : a.wrappingWidth;
|
|
1274
|
+
n.width = Math.max(p, m == null ? 0 : m);
|
|
1275
|
+
let { shapeSvg: h, bbox: _, label: v } = await w(t, n, "icon-shape default"), x = n.label ? 8 : 0, T = n.pos === "t", { nodeBorder: D, mainBkg: O } = r, { stylesMap: k } = S(n), A = C.svg(h), j = y(n, {});
|
|
1276
|
+
n.look !== "handDrawn" && (j.roughness = 0, j.fillStyle = "solid");
|
|
1277
1277
|
let M = k.get("fill");
|
|
1278
1278
|
j.stroke = M == null ? O : M;
|
|
1279
1279
|
let N = h.append("g");
|
|
1280
|
-
|
|
1280
|
+
n.icon && N.html(`<g>${await g(n.icon, {
|
|
1281
1281
|
height: p,
|
|
1282
1282
|
width: p,
|
|
1283
1283
|
fallbackPrefix: ""
|
|
@@ -1286,40 +1286,40 @@ async function Pe(n, r, { config: { themeVariables: i, flowchart: a } }) {
|
|
|
1286
1286
|
fill: "transparent",
|
|
1287
1287
|
stroke: "none"
|
|
1288
1288
|
})), W = h.insert(() => B, ":first-child"), G = h.insert(() => U);
|
|
1289
|
-
return N.attr("transform", `translate(${-F / 2 - L},${T ? _.height / 2 + x / 2 - I / 2 - R : -_.height / 2 - x / 2 - I / 2 - R})`), N.attr("style", `color: ${(c = k.get("stroke")) == null ? D : c};`), v.attr("transform", `translate(${-_.width / 2 - (_.x - ((l = _.left) == null ? 0 : l))},${T ? -H / 2 : H / 2 - _.height})`), W.attr("transform", `translate(0,${T ? _.height / 2 + x / 2 : -_.height / 2 - x / 2})`), E(
|
|
1290
|
-
return
|
|
1289
|
+
return N.attr("transform", `translate(${-F / 2 - L},${T ? _.height / 2 + x / 2 - I / 2 - R : -_.height / 2 - x / 2 - I / 2 - R})`), N.attr("style", `color: ${(c = k.get("stroke")) == null ? D : c};`), v.attr("transform", `translate(${-_.width / 2 - (_.x - ((l = _.left) == null ? 0 : l))},${T ? -H / 2 : H / 2 - _.height})`), W.attr("transform", `translate(0,${T ? _.height / 2 + x / 2 : -_.height / 2 - x / 2})`), E(n, G), n.intersect = function(e) {
|
|
1290
|
+
return i.info("iconSquare intersect", n, e), q.rect(n, e);
|
|
1291
1291
|
}, h;
|
|
1292
1292
|
}
|
|
1293
|
-
|
|
1294
|
-
async function Fe(
|
|
1293
|
+
a(Pe, "iconCircle");
|
|
1294
|
+
async function Fe(t, n, { config: { themeVariables: r, flowchart: a } }) {
|
|
1295
1295
|
var o, s, c;
|
|
1296
|
-
let { labelStyles: l } = b(
|
|
1297
|
-
|
|
1298
|
-
let u = (o =
|
|
1299
|
-
|
|
1300
|
-
let { shapeSvg: m, bbox: h, halfPadding: _, label: v } = await w(
|
|
1301
|
-
|
|
1296
|
+
let { labelStyles: l } = b(n);
|
|
1297
|
+
n.labelStyle = l;
|
|
1298
|
+
let u = (o = n.assetHeight) == null ? 48 : o, d = (s = n.assetWidth) == null ? 48 : s, f = Math.max(u, d), p = a == null ? void 0 : a.wrappingWidth;
|
|
1299
|
+
n.width = Math.max(f, p == null ? 0 : p);
|
|
1300
|
+
let { shapeSvg: m, bbox: h, halfPadding: _, label: v } = await w(t, n, "icon-shape default"), x = n.pos === "t", T = f + _ * 2, D = f + _ * 2, { nodeBorder: O, mainBkg: k } = r, { stylesMap: A } = S(n), j = -D / 2, M = -T / 2, N = n.label ? 8 : 0, F = C.svg(m), I = y(n, {});
|
|
1301
|
+
n.look !== "handDrawn" && (I.roughness = 0, I.fillStyle = "solid");
|
|
1302
1302
|
let L = A.get("fill");
|
|
1303
1303
|
I.stroke = L == null ? k : L;
|
|
1304
1304
|
let R = F.path(P(j, M, D, T, 5), I), z = Math.max(D, h.width), B = T + h.height + N, V = F.rectangle(-z / 2, -B / 2, z, B, e(e({}, I), {}, {
|
|
1305
1305
|
fill: "transparent",
|
|
1306
1306
|
stroke: "none"
|
|
1307
1307
|
})), H = m.insert(() => R, ":first-child").attr("class", "icon-shape2"), U = m.insert(() => V);
|
|
1308
|
-
if (
|
|
1308
|
+
if (n.icon) {
|
|
1309
1309
|
var W;
|
|
1310
1310
|
let e = m.append("g");
|
|
1311
|
-
e.html(`<g>${await g(
|
|
1311
|
+
e.html(`<g>${await g(n.icon, {
|
|
1312
1312
|
height: f,
|
|
1313
1313
|
width: f,
|
|
1314
1314
|
fallbackPrefix: ""
|
|
1315
1315
|
})}</g>`);
|
|
1316
|
-
let t = e.node().getBBox(),
|
|
1317
|
-
e.attr("transform", `translate(${-
|
|
1316
|
+
let t = e.node().getBBox(), r = t.width, i = t.height, a = t.x, o = t.y;
|
|
1317
|
+
e.attr("transform", `translate(${-r / 2 - a},${x ? h.height / 2 + N / 2 - i / 2 - o : -h.height / 2 - N / 2 - i / 2 - o})`), e.attr("style", `color: ${(W = A.get("stroke")) == null ? O : W};`);
|
|
1318
1318
|
}
|
|
1319
|
-
return v.attr("transform", `translate(${-h.width / 2 - (h.x - ((c = h.left) == null ? 0 : c))},${x ? -B / 2 : B / 2 - h.height})`), H.attr("transform", `translate(0,${x ? h.height / 2 + N / 2 : -h.height / 2 - N / 2})`), E(
|
|
1320
|
-
var
|
|
1321
|
-
if (
|
|
1322
|
-
let o = (
|
|
1319
|
+
return v.attr("transform", `translate(${-h.width / 2 - (h.x - ((c = h.left) == null ? 0 : c))},${x ? -B / 2 : B / 2 - h.height})`), H.attr("transform", `translate(0,${x ? h.height / 2 + N / 2 : -h.height / 2 - N / 2})`), E(n, U), n.intersect = function(e) {
|
|
1320
|
+
var t, r, a;
|
|
1321
|
+
if (i.info("iconSquare intersect", n, e), !n.label) return q.rect(n, e);
|
|
1322
|
+
let o = (t = n.x) == null ? 0 : t, s = (r = n.y) == null ? 0 : r, c = (a = n.height) == null ? 0 : a, l = [];
|
|
1323
1323
|
return l = x ? [
|
|
1324
1324
|
{
|
|
1325
1325
|
x: o - h.width / 2,
|
|
@@ -1386,39 +1386,39 @@ async function Fe(n, r, { config: { themeVariables: i, flowchart: a } }) {
|
|
|
1386
1386
|
x: o - D / 2,
|
|
1387
1387
|
y: s - c / 2 + T
|
|
1388
1388
|
}
|
|
1389
|
-
], q.polygon(
|
|
1389
|
+
], q.polygon(n, l, e);
|
|
1390
1390
|
}, m;
|
|
1391
1391
|
}
|
|
1392
|
-
|
|
1393
|
-
async function Ie(
|
|
1392
|
+
a(Fe, "iconRounded");
|
|
1393
|
+
async function Ie(t, n, { config: { themeVariables: r, flowchart: a } }) {
|
|
1394
1394
|
var o, s, c;
|
|
1395
|
-
let { labelStyles: l } = b(
|
|
1396
|
-
|
|
1397
|
-
let u = (o =
|
|
1398
|
-
|
|
1399
|
-
let { shapeSvg: m, bbox: h, halfPadding: _, label: v } = await w(
|
|
1400
|
-
|
|
1395
|
+
let { labelStyles: l } = b(n);
|
|
1396
|
+
n.labelStyle = l;
|
|
1397
|
+
let u = (o = n.assetHeight) == null ? 48 : o, d = (s = n.assetWidth) == null ? 48 : s, f = Math.max(u, d), p = a == null ? void 0 : a.wrappingWidth;
|
|
1398
|
+
n.width = Math.max(f, p == null ? 0 : p);
|
|
1399
|
+
let { shapeSvg: m, bbox: h, halfPadding: _, label: v } = await w(t, n, "icon-shape default"), x = n.pos === "t", T = f + _ * 2, D = f + _ * 2, { nodeBorder: O, mainBkg: k } = r, { stylesMap: A } = S(n), j = -D / 2, M = -T / 2, N = n.label ? 8 : 0, F = C.svg(m), I = y(n, {});
|
|
1400
|
+
n.look !== "handDrawn" && (I.roughness = 0, I.fillStyle = "solid");
|
|
1401
1401
|
let L = A.get("fill");
|
|
1402
1402
|
I.stroke = L == null ? k : L;
|
|
1403
1403
|
let R = F.path(P(j, M, D, T, .1), I), z = Math.max(D, h.width), B = T + h.height + N, V = F.rectangle(-z / 2, -B / 2, z, B, e(e({}, I), {}, {
|
|
1404
1404
|
fill: "transparent",
|
|
1405
1405
|
stroke: "none"
|
|
1406
1406
|
})), H = m.insert(() => R, ":first-child"), U = m.insert(() => V);
|
|
1407
|
-
if (
|
|
1407
|
+
if (n.icon) {
|
|
1408
1408
|
var W;
|
|
1409
1409
|
let e = m.append("g");
|
|
1410
|
-
e.html(`<g>${await g(
|
|
1410
|
+
e.html(`<g>${await g(n.icon, {
|
|
1411
1411
|
height: f,
|
|
1412
1412
|
width: f,
|
|
1413
1413
|
fallbackPrefix: ""
|
|
1414
1414
|
})}</g>`);
|
|
1415
|
-
let t = e.node().getBBox(),
|
|
1416
|
-
e.attr("transform", `translate(${-
|
|
1415
|
+
let t = e.node().getBBox(), r = t.width, i = t.height, a = t.x, o = t.y;
|
|
1416
|
+
e.attr("transform", `translate(${-r / 2 - a},${x ? h.height / 2 + N / 2 - i / 2 - o : -h.height / 2 - N / 2 - i / 2 - o})`), e.attr("style", `color: ${(W = A.get("stroke")) == null ? O : W};`);
|
|
1417
1417
|
}
|
|
1418
|
-
return v.attr("transform", `translate(${-h.width / 2 - (h.x - ((c = h.left) == null ? 0 : c))},${x ? -B / 2 : B / 2 - h.height})`), H.attr("transform", `translate(0,${x ? h.height / 2 + N / 2 : -h.height / 2 - N / 2})`), E(
|
|
1419
|
-
var
|
|
1420
|
-
if (
|
|
1421
|
-
let o = (
|
|
1418
|
+
return v.attr("transform", `translate(${-h.width / 2 - (h.x - ((c = h.left) == null ? 0 : c))},${x ? -B / 2 : B / 2 - h.height})`), H.attr("transform", `translate(0,${x ? h.height / 2 + N / 2 : -h.height / 2 - N / 2})`), E(n, U), n.intersect = function(e) {
|
|
1419
|
+
var t, r, a;
|
|
1420
|
+
if (i.info("iconSquare intersect", n, e), !n.label) return q.rect(n, e);
|
|
1421
|
+
let o = (t = n.x) == null ? 0 : t, s = (r = n.y) == null ? 0 : r, c = (a = n.height) == null ? 0 : a, l = [];
|
|
1422
1422
|
return l = x ? [
|
|
1423
1423
|
{
|
|
1424
1424
|
x: o - h.width / 2,
|
|
@@ -1485,36 +1485,36 @@ async function Ie(n, r, { config: { themeVariables: i, flowchart: a } }) {
|
|
|
1485
1485
|
x: o - D / 2,
|
|
1486
1486
|
y: s - c / 2 + T
|
|
1487
1487
|
}
|
|
1488
|
-
], q.polygon(
|
|
1488
|
+
], q.polygon(n, l, e);
|
|
1489
1489
|
}, m;
|
|
1490
1490
|
}
|
|
1491
|
-
|
|
1492
|
-
async function Le(
|
|
1491
|
+
a(Ie, "iconSquare");
|
|
1492
|
+
async function Le(t, n, { config: { flowchart: r } }) {
|
|
1493
1493
|
var a, o, s, c;
|
|
1494
1494
|
let l = new Image();
|
|
1495
|
-
l.src = (a =
|
|
1495
|
+
l.src = (a = n == null ? void 0 : n.img) == null ? "" : a, await l.decode();
|
|
1496
1496
|
let u = Number(l.naturalWidth.toString().replace("px", "")), d = Number(l.naturalHeight.toString().replace("px", ""));
|
|
1497
|
-
|
|
1498
|
-
let { labelStyles: f } = b(
|
|
1499
|
-
|
|
1500
|
-
let p =
|
|
1501
|
-
|
|
1502
|
-
let m = Math.max(
|
|
1503
|
-
|
|
1504
|
-
let { shapeSvg: _, bbox: v, label: x } = await w(
|
|
1505
|
-
|
|
1497
|
+
n.imageAspectRatio = u / d;
|
|
1498
|
+
let { labelStyles: f } = b(n);
|
|
1499
|
+
n.labelStyle = f;
|
|
1500
|
+
let p = r == null ? void 0 : r.wrappingWidth;
|
|
1501
|
+
n.defaultWidth = r == null ? void 0 : r.wrappingWidth;
|
|
1502
|
+
let m = Math.max(n.label ? p == null ? 0 : p : 0, (o = n == null ? void 0 : n.assetWidth) == null ? u : o), h = n.constraint === "on" && n != null && n.assetHeight ? n.assetHeight * n.imageAspectRatio : m, g = n.constraint === "on" ? h / n.imageAspectRatio : (s = n == null ? void 0 : n.assetHeight) == null ? d : s;
|
|
1503
|
+
n.width = Math.max(h, p == null ? 0 : p);
|
|
1504
|
+
let { shapeSvg: _, bbox: v, label: x } = await w(t, n, "image-shape default"), S = n.pos === "t", T = -h / 2, D = -g / 2, O = n.label ? 8 : 0, k = C.svg(_), A = y(n, {});
|
|
1505
|
+
n.look !== "handDrawn" && (A.roughness = 0, A.fillStyle = "solid");
|
|
1506
1506
|
let j = k.rectangle(T, D, h, g, A), M = Math.max(h, v.width), N = g + v.height + O, P = k.rectangle(-M / 2, -N / 2, M, N, e(e({}, A), {}, {
|
|
1507
1507
|
fill: "none",
|
|
1508
1508
|
stroke: "none"
|
|
1509
1509
|
})), F = _.insert(() => j, ":first-child"), I = _.insert(() => P);
|
|
1510
|
-
if (
|
|
1510
|
+
if (n.img) {
|
|
1511
1511
|
let e = _.append("image");
|
|
1512
|
-
e.attr("href",
|
|
1512
|
+
e.attr("href", n.img), e.attr("width", h), e.attr("height", g), e.attr("preserveAspectRatio", "none"), e.attr("transform", `translate(${-h / 2},${S ? N / 2 - g : -N / 2})`);
|
|
1513
1513
|
}
|
|
1514
|
-
return x.attr("transform", `translate(${-v.width / 2 - (v.x - ((c = v.left) == null ? 0 : c))},${S ? -g / 2 - v.height / 2 - O / 2 : g / 2 - v.height / 2 + O / 2})`), F.attr("transform", `translate(0,${S ? v.height / 2 + O / 2 : -v.height / 2 - O / 2})`), E(
|
|
1515
|
-
var
|
|
1516
|
-
if (
|
|
1517
|
-
let o = (
|
|
1514
|
+
return x.attr("transform", `translate(${-v.width / 2 - (v.x - ((c = v.left) == null ? 0 : c))},${S ? -g / 2 - v.height / 2 - O / 2 : g / 2 - v.height / 2 + O / 2})`), F.attr("transform", `translate(0,${S ? v.height / 2 + O / 2 : -v.height / 2 - O / 2})`), E(n, I), n.intersect = function(e) {
|
|
1515
|
+
var t, r, a;
|
|
1516
|
+
if (i.info("iconSquare intersect", n, e), !n.label) return q.rect(n, e);
|
|
1517
|
+
let o = (t = n.x) == null ? 0 : t, s = (r = n.y) == null ? 0 : r, c = (a = n.height) == null ? 0 : a, l = [];
|
|
1518
1518
|
return l = S ? [
|
|
1519
1519
|
{
|
|
1520
1520
|
x: o - v.width / 2,
|
|
@@ -1581,10 +1581,10 @@ async function Le(n, r, { config: { flowchart: i } }) {
|
|
|
1581
1581
|
x: o - h / 2,
|
|
1582
1582
|
y: s - c / 2 + g
|
|
1583
1583
|
}
|
|
1584
|
-
], q.polygon(
|
|
1584
|
+
], q.polygon(n, l, e);
|
|
1585
1585
|
}, _;
|
|
1586
1586
|
}
|
|
1587
|
-
|
|
1587
|
+
a(Le, "imageSquare");
|
|
1588
1588
|
async function Re(e, t) {
|
|
1589
1589
|
var n, r, i;
|
|
1590
1590
|
let { labelStyles: a, nodeStyles: o } = b(t);
|
|
@@ -1615,22 +1615,22 @@ async function Re(e, t) {
|
|
|
1615
1615
|
return q.polygon(t, m, e);
|
|
1616
1616
|
}, u;
|
|
1617
1617
|
}
|
|
1618
|
-
|
|
1619
|
-
async function ze(e, t,
|
|
1620
|
-
let { labelStyles:
|
|
1621
|
-
t.labelStyle =
|
|
1622
|
-
let { shapeSvg:
|
|
1623
|
-
if (
|
|
1624
|
-
let e = C.svg(
|
|
1625
|
-
|
|
1626
|
-
} else
|
|
1627
|
-
return E(t,
|
|
1618
|
+
a(Re, "inv_trapezoid");
|
|
1619
|
+
async function ze(e, t, r) {
|
|
1620
|
+
let { labelStyles: i, nodeStyles: a } = b(t);
|
|
1621
|
+
t.labelStyle = i;
|
|
1622
|
+
let { shapeSvg: o, bbox: s } = await w(e, t, D(t)), c = Math.max(s.width + r.labelPaddingX * 2, (t == null ? void 0 : t.width) || 0), l = Math.max(s.height + r.labelPaddingY * 2, (t == null ? void 0 : t.height) || 0), u = -c / 2, d = -l / 2, f, { rx: p, ry: m } = t, { cssStyles: h } = t;
|
|
1623
|
+
if (r != null && r.rx && r.ry && (p = r.rx, m = r.ry), t.look === "handDrawn") {
|
|
1624
|
+
let e = C.svg(o), r = y(t, {}), i = p || m ? e.path(P(u, d, c, l, p || 0), r) : e.rectangle(u, d, c, l, r);
|
|
1625
|
+
f = o.insert(() => i, ":first-child"), f.attr("class", "basic label-container").attr("style", n(h));
|
|
1626
|
+
} else f = o.insert("rect", ":first-child"), f.attr("class", "basic label-container").attr("style", a).attr("rx", n(p)).attr("ry", n(m)).attr("x", u).attr("y", d).attr("width", c).attr("height", l);
|
|
1627
|
+
return E(t, f), t.calcIntersect = function(e, t) {
|
|
1628
1628
|
return q.rect(e, t);
|
|
1629
1629
|
}, t.intersect = function(e) {
|
|
1630
1630
|
return q.rect(t, e);
|
|
1631
|
-
},
|
|
1631
|
+
}, o;
|
|
1632
1632
|
}
|
|
1633
|
-
|
|
1633
|
+
a(ze, "drawRect");
|
|
1634
1634
|
async function Be(e, t) {
|
|
1635
1635
|
var n, r;
|
|
1636
1636
|
let { shapeSvg: i, bbox: a, label: o } = await w(e, t, "label"), s = i.insert("rect", ":first-child");
|
|
@@ -1638,7 +1638,7 @@ async function Be(e, t) {
|
|
|
1638
1638
|
return q.rect(t, e);
|
|
1639
1639
|
}, i;
|
|
1640
1640
|
}
|
|
1641
|
-
|
|
1641
|
+
a(Be, "labelRect");
|
|
1642
1642
|
async function Ve(e, t) {
|
|
1643
1643
|
var n, r, i;
|
|
1644
1644
|
let { labelStyles: a, nodeStyles: o } = b(t);
|
|
@@ -1669,7 +1669,7 @@ async function Ve(e, t) {
|
|
|
1669
1669
|
return q.polygon(t, m, e);
|
|
1670
1670
|
}, u;
|
|
1671
1671
|
}
|
|
1672
|
-
|
|
1672
|
+
a(Ve, "lean_left");
|
|
1673
1673
|
async function He(e, t) {
|
|
1674
1674
|
var n, r, i;
|
|
1675
1675
|
let { labelStyles: a, nodeStyles: o } = b(t);
|
|
@@ -1700,12 +1700,12 @@ async function He(e, t) {
|
|
|
1700
1700
|
return q.polygon(t, m, e);
|
|
1701
1701
|
}, u;
|
|
1702
1702
|
}
|
|
1703
|
-
|
|
1704
|
-
function Ue(e,
|
|
1705
|
-
var
|
|
1706
|
-
let { labelStyles: o, nodeStyles: s } = b(
|
|
1707
|
-
|
|
1708
|
-
let c = e.insert("g").attr("class", D(
|
|
1703
|
+
a(He, "lean_right");
|
|
1704
|
+
function Ue(e, t) {
|
|
1705
|
+
var n, r, a;
|
|
1706
|
+
let { labelStyles: o, nodeStyles: s } = b(t);
|
|
1707
|
+
t.label = "", t.labelStyle = o;
|
|
1708
|
+
let c = e.insert("g").attr("class", D(t)).attr("id", (n = t.domId) == null ? t.id : n), { cssStyles: l } = t, u = Math.max(35, (r = t == null ? void 0 : t.width) == null ? 0 : r), d = Math.max(35, (a = t == null ? void 0 : t.height) == null ? 0 : a), f = [
|
|
1709
1709
|
{
|
|
1710
1710
|
x: u,
|
|
1711
1711
|
y: 0
|
|
@@ -1730,15 +1730,15 @@ function Ue(e, n) {
|
|
|
1730
1730
|
x: 14,
|
|
1731
1731
|
y: d - 7 / 2
|
|
1732
1732
|
}
|
|
1733
|
-
], p = C.svg(c), m = y(
|
|
1734
|
-
|
|
1733
|
+
], p = C.svg(c), m = y(t, {});
|
|
1734
|
+
t.look !== "handDrawn" && (m.roughness = 0, m.fillStyle = "solid");
|
|
1735
1735
|
let h = O(f), g = p.path(h, m), _ = c.insert(() => g, ":first-child");
|
|
1736
|
-
return _.attr("class", "outer-path"), l &&
|
|
1737
|
-
return
|
|
1736
|
+
return _.attr("class", "outer-path"), l && t.look !== "handDrawn" && _.selectAll("path").attr("style", l), s && t.look !== "handDrawn" && _.selectAll("path").attr("style", s), _.attr("transform", `translate(-${u / 2},${-d})`), E(t, _), t.intersect = function(e) {
|
|
1737
|
+
return i.info("lightningBolt intersect", t, e), q.polygon(t, f, e);
|
|
1738
1738
|
}, c;
|
|
1739
1739
|
}
|
|
1740
|
-
|
|
1741
|
-
var We = /* @__PURE__ */
|
|
1740
|
+
a(Ue, "lightningBolt");
|
|
1741
|
+
var We = /* @__PURE__ */ a((e, t, n, r, i, a, o) => [
|
|
1742
1742
|
`M${e},${t + a}`,
|
|
1743
1743
|
`a${i},${a} 0,0,0 ${n},0`,
|
|
1744
1744
|
`a${i},${a} 0,0,0 ${-n},0`,
|
|
@@ -1747,7 +1747,7 @@ var We = /* @__PURE__ */ n((e, t, n, r, i, a, o) => [
|
|
|
1747
1747
|
`l0,${-r}`,
|
|
1748
1748
|
`M${e},${t + a + o}`,
|
|
1749
1749
|
`a${i},${a} 0,0,0 ${n},0`
|
|
1750
|
-
].join(" "), "createCylinderPathD"), Ge = /* @__PURE__ */
|
|
1750
|
+
].join(" "), "createCylinderPathD"), Ge = /* @__PURE__ */ a((e, t, n, r, i, a, o) => [
|
|
1751
1751
|
`M${e},${t + a}`,
|
|
1752
1752
|
`M${e + n},${t + a}`,
|
|
1753
1753
|
`a${i},${a} 0,0,0 ${-n},0`,
|
|
@@ -1756,28 +1756,28 @@ var We = /* @__PURE__ */ n((e, t, n, r, i, a, o) => [
|
|
|
1756
1756
|
`l0,${-r}`,
|
|
1757
1757
|
`M${e},${t + a + o}`,
|
|
1758
1758
|
`a${i},${a} 0,0,0 ${n},0`
|
|
1759
|
-
].join(" "), "createOuterCylinderPathD"), Ke = /* @__PURE__ */
|
|
1759
|
+
].join(" "), "createOuterCylinderPathD"), Ke = /* @__PURE__ */ a((e, t, n, r, i, a) => [`M${e - n / 2},${-r / 2}`, `a${i},${a} 0,0,0 ${n},0`].join(" "), "createInnerCylinderPathD"), qe = 10, Je = 10;
|
|
1760
1760
|
async function Ye(e, t) {
|
|
1761
|
-
var
|
|
1762
|
-
let { labelStyles:
|
|
1763
|
-
t.labelStyle =
|
|
1764
|
-
let
|
|
1761
|
+
var r, i, a;
|
|
1762
|
+
let { labelStyles: o, nodeStyles: s } = b(t);
|
|
1763
|
+
t.labelStyle = o;
|
|
1764
|
+
let c = (r = t.padding) == null ? 0 : r, l = t.look === "neo" ? 16 : c, u = t.look === "neo" ? 24 : c;
|
|
1765
1765
|
if (t.width || t.height) {
|
|
1766
|
-
var
|
|
1767
|
-
let e = (
|
|
1768
|
-
t.width = ((
|
|
1766
|
+
var d, f, p;
|
|
1767
|
+
let e = (d = t.width) == null ? 0 : d;
|
|
1768
|
+
t.width = ((f = t.width) == null ? 0 : f) - l, t.width < Je && (t.width = Je);
|
|
1769
1769
|
let n = e / 2 / (2.5 + e / 50);
|
|
1770
|
-
t.height = ((
|
|
1770
|
+
t.height = ((p = t.height) == null ? 0 : p) - u - n * 3, t.height < qe && (t.height = qe);
|
|
1771
1771
|
}
|
|
1772
|
-
let { shapeSvg: m, bbox: h, label: g } = await w(e, t, D(t)), _ = (t != null && t.width ? t == null ? void 0 : t.width : h.width) +
|
|
1772
|
+
let { shapeSvg: m, bbox: h, label: g } = await w(e, t, D(t)), _ = (t != null && t.width ? t == null ? void 0 : t.width : h.width) + l * 2, v = _ / 2, x = v / (2.5 + _ / 50), S = (t != null && t.height ? t == null ? void 0 : t.height : h.height) + x + u * 2, T = S * .1, O, { cssStyles: k } = t;
|
|
1773
1773
|
if (t.look === "handDrawn") {
|
|
1774
1774
|
let e = C.svg(m), n = Ge(0, 0, _, S, v, x, T), r = Ke(0, x, _, S, v, x), i = y(t, {}), a = e.path(n, i), o = e.path(r, i);
|
|
1775
1775
|
m.insert(() => o, ":first-child").attr("class", "line"), O = m.insert(() => a, ":first-child"), O.attr("class", "basic label-container"), k && O.attr("style", k);
|
|
1776
1776
|
} else {
|
|
1777
1777
|
let e = We(0, 0, _, S, v, x, T);
|
|
1778
|
-
O = m.insert("path", ":first-child").attr("d", e).attr("class", "basic label-container outer-path").attr("style",
|
|
1778
|
+
O = m.insert("path", ":first-child").attr("d", e).attr("class", "basic label-container outer-path").attr("style", n(k)).attr("style", s);
|
|
1779
1779
|
}
|
|
1780
|
-
return O.attr("label-offset-y", x), O.attr("transform", `translate(${-_ / 2}, ${-(S / 2 + x)})`), E(t, O), g.attr("transform", `translate(${-(h.width / 2) - (h.x - ((
|
|
1780
|
+
return O.attr("label-offset-y", x), O.attr("transform", `translate(${-_ / 2}, ${-(S / 2 + x)})`), E(t, O), g.attr("transform", `translate(${-(h.width / 2) - (h.x - ((i = h.left) == null ? 0 : i))}, ${-(h.height / 2) + x - (h.y - ((a = h.top) == null ? 0 : a))})`), t.intersect = function(e) {
|
|
1781
1781
|
var n, r, i, a, o;
|
|
1782
1782
|
let s = q.rect(t, e), c = s.x - ((n = t.x) == null ? 0 : n);
|
|
1783
1783
|
if (v != 0 && (Math.abs(c) < ((r = t.width) == null ? 0 : r) / 2 || Math.abs(c) == ((i = t.width) == null ? 0 : i) / 2 && Math.abs(s.y - ((a = t.y) == null ? 0 : a)) > ((o = t.height) == null ? 0 : o) / 2 - x)) {
|
|
@@ -1788,7 +1788,7 @@ async function Ye(e, t) {
|
|
|
1788
1788
|
return s;
|
|
1789
1789
|
}, m;
|
|
1790
1790
|
}
|
|
1791
|
-
|
|
1791
|
+
a(Ye, "linedCylinder");
|
|
1792
1792
|
async function Xe(e, t) {
|
|
1793
1793
|
var n, r, i, a, o;
|
|
1794
1794
|
let { labelStyles: s, nodeStyles: c } = b(t);
|
|
@@ -1836,7 +1836,7 @@ async function Xe(e, t) {
|
|
|
1836
1836
|
return q.polygon(t, A, e);
|
|
1837
1837
|
}, p;
|
|
1838
1838
|
}
|
|
1839
|
-
|
|
1839
|
+
a(Xe, "linedWaveEdgedRect");
|
|
1840
1840
|
async function Ze(e, t) {
|
|
1841
1841
|
var n, r, i;
|
|
1842
1842
|
let { labelStyles: a, nodeStyles: o } = b(t);
|
|
@@ -1929,7 +1929,7 @@ async function Ze(e, t) {
|
|
|
1929
1929
|
return q.polygon(t, N, e);
|
|
1930
1930
|
}, p;
|
|
1931
1931
|
}
|
|
1932
|
-
|
|
1932
|
+
a(Ze, "multiRect");
|
|
1933
1933
|
async function Qe(e, t) {
|
|
1934
1934
|
var n, r, i, a, o;
|
|
1935
1935
|
let { labelStyles: s, nodeStyles: c } = b(t);
|
|
@@ -2017,23 +2017,23 @@ async function Qe(e, t) {
|
|
|
2017
2017
|
return q.polygon(t, F, e);
|
|
2018
2018
|
}, l;
|
|
2019
2019
|
}
|
|
2020
|
-
|
|
2020
|
+
a(Qe, "multiWaveEdgedRectangle");
|
|
2021
2021
|
async function $e(e, t, { config: { themeVariables: n } }) {
|
|
2022
2022
|
var r, i, a, o, s, c;
|
|
2023
|
-
let { labelStyles: l, nodeStyles:
|
|
2024
|
-
t.labelStyle = l, t.useHtmlLabels ||
|
|
2025
|
-
let { shapeSvg:
|
|
2023
|
+
let { labelStyles: l, nodeStyles: u } = b(t);
|
|
2024
|
+
t.labelStyle = l, t.useHtmlLabels || p(m()) || (t.centerLabel = !0);
|
|
2025
|
+
let { shapeSvg: d, bbox: f, label: h } = await w(e, t, D(t)), g = Math.max(f.width + ((r = t.padding) == null ? 0 : r) * 2, (i = t == null ? void 0 : t.width) == null ? 0 : i), _ = Math.max(f.height + ((a = t.padding) == null ? 0 : a) * 2, (o = t == null ? void 0 : t.height) == null ? 0 : o), v = -g / 2, x = -_ / 2, { cssStyles: S } = t, T = C.svg(d), O = y(t, {
|
|
2026
2026
|
fill: n.noteBkgColor,
|
|
2027
2027
|
stroke: n.noteBorderColor
|
|
2028
2028
|
});
|
|
2029
2029
|
t.look !== "handDrawn" && (O.roughness = 0, O.fillStyle = "solid");
|
|
2030
|
-
let k = T.rectangle(v, x, g, _, O), A =
|
|
2031
|
-
return A.attr("class", "basic label-container outer-path"), h.attr("class", "label noteLabel"), S && t.look !== "handDrawn" && A.selectAll("path").attr("style", S),
|
|
2030
|
+
let k = T.rectangle(v, x, g, _, O), A = d.insert(() => k, ":first-child");
|
|
2031
|
+
return A.attr("class", "basic label-container outer-path"), h.attr("class", "label noteLabel"), S && t.look !== "handDrawn" && A.selectAll("path").attr("style", S), u && t.look !== "handDrawn" && A.selectAll("path").attr("style", u), h.attr("transform", `translate(${-f.width / 2 - (f.x - ((s = f.left) == null ? 0 : s))}, ${-(f.height / 2) - (f.y - ((c = f.top) == null ? 0 : c))})`), E(t, A), t.intersect = function(e) {
|
|
2032
2032
|
return q.rect(t, e);
|
|
2033
|
-
},
|
|
2033
|
+
}, d;
|
|
2034
2034
|
}
|
|
2035
|
-
|
|
2036
|
-
var et = /* @__PURE__ */
|
|
2035
|
+
a($e, "note");
|
|
2036
|
+
var et = /* @__PURE__ */ a((e, t, n) => [
|
|
2037
2037
|
`M${e + n / 2},${t}`,
|
|
2038
2038
|
`L${e + n},${t - n / 2}`,
|
|
2039
2039
|
`L${e + n / 2},${t - n}`,
|
|
@@ -2093,7 +2093,7 @@ async function tt(e, t) {
|
|
|
2093
2093
|
return this.calcIntersect(t, e);
|
|
2094
2094
|
}, o;
|
|
2095
2095
|
}
|
|
2096
|
-
|
|
2096
|
+
a(tt, "question");
|
|
2097
2097
|
async function nt(e, t) {
|
|
2098
2098
|
var n, r, i, a, o;
|
|
2099
2099
|
let { labelStyles: s, nodeStyles: c } = b(t);
|
|
@@ -2126,35 +2126,35 @@ async function nt(e, t) {
|
|
|
2126
2126
|
return q.polygon(t, S, e);
|
|
2127
2127
|
}, f;
|
|
2128
2128
|
}
|
|
2129
|
-
|
|
2130
|
-
async function rt(e,
|
|
2131
|
-
let { labelStyles:
|
|
2132
|
-
|
|
2133
|
-
let
|
|
2134
|
-
|
|
2135
|
-
let
|
|
2129
|
+
a(nt, "rect_left_inv_arrow");
|
|
2130
|
+
async function rt(e, t) {
|
|
2131
|
+
let { labelStyles: n, nodeStyles: r } = b(t);
|
|
2132
|
+
t.labelStyle = n;
|
|
2133
|
+
let a;
|
|
2134
|
+
a = t.cssClasses ? "node " + t.cssClasses : "node default";
|
|
2135
|
+
let s = e.insert("g").attr("class", a).attr("id", t.domId || t.id), c = s.insert("g"), u = s.insert("g").attr("class", "label").attr("style", r), d = t.description, f = t.label, m = await N(u, f, t.labelStyle, !0, !0), h = {
|
|
2136
2136
|
width: 0,
|
|
2137
2137
|
height: 0
|
|
2138
2138
|
};
|
|
2139
|
-
if (
|
|
2140
|
-
let e = m.children[0], t =
|
|
2139
|
+
if (p(l())) {
|
|
2140
|
+
let e = m.children[0], t = o(m);
|
|
2141
2141
|
h = e.getBoundingClientRect(), t.attr("width", h.width), t.attr("height", h.height);
|
|
2142
2142
|
}
|
|
2143
|
-
|
|
2144
|
-
let g =
|
|
2143
|
+
i.info("Text 2", d);
|
|
2144
|
+
let g = d || [], _ = m.getBBox(), v = await N(u, Array.isArray(g) ? g.join("<br/>") : g, t.labelStyle, !0, !0), x = v.children[0], S = o(v);
|
|
2145
2145
|
h = x.getBoundingClientRect(), S.attr("width", h.width), S.attr("height", h.height);
|
|
2146
|
-
let w = (
|
|
2147
|
-
|
|
2148
|
-
let T = h.width + (
|
|
2149
|
-
if (
|
|
2150
|
-
let e = C.svg(
|
|
2151
|
-
j =
|
|
2152
|
-
} else A =
|
|
2153
|
-
return E(
|
|
2154
|
-
return q.rect(
|
|
2155
|
-
},
|
|
2146
|
+
let w = (t.padding || 0) / 2;
|
|
2147
|
+
o(v).attr("transform", "translate( " + (h.width > _.width ? 0 : (_.width - h.width) / 2) + ", " + (_.height + w + 5) + ")"), o(m).attr("transform", "translate( " + (h.width < _.width ? 0 : -(_.width - h.width) / 2) + ", 0)"), h = u.node().getBBox(), u.attr("transform", "translate(" + -h.width / 2 + ", " + (-h.height / 2 - w + 3) + ")");
|
|
2148
|
+
let T = h.width + (t.padding || 0), D = h.height + (t.padding || 0), O = -h.width / 2 - w, k = -h.height / 2 - w, A, j;
|
|
2149
|
+
if (t.look === "handDrawn") {
|
|
2150
|
+
let e = C.svg(s), n = y(t, {}), r = e.path(P(O, k, T, D, t.rx || 0), n), a = e.line(-h.width / 2 - w, -h.height / 2 - w + _.height + w, h.width / 2 + w, -h.height / 2 - w + _.height + w, n);
|
|
2151
|
+
j = s.insert(() => (i.debug("Rough node insert CXC", r), a), ":first-child"), A = s.insert(() => (i.debug("Rough node insert CXC", r), r), ":first-child");
|
|
2152
|
+
} else A = c.insert("rect", ":first-child"), j = c.insert("line"), A.attr("class", "outer title-state").attr("style", r).attr("x", -h.width / 2 - w).attr("y", -h.height / 2 - w).attr("width", h.width + (t.padding || 0)).attr("height", h.height + (t.padding || 0)), j.attr("class", "divider").attr("x1", -h.width / 2 - w).attr("x2", h.width / 2 + w).attr("y1", -h.height / 2 - w + _.height + w).attr("y2", -h.height / 2 - w + _.height + w);
|
|
2153
|
+
return E(t, A), t.intersect = function(e) {
|
|
2154
|
+
return q.rect(t, e);
|
|
2155
|
+
}, s;
|
|
2156
2156
|
}
|
|
2157
|
-
|
|
2157
|
+
a(rt, "rectWithTitle");
|
|
2158
2158
|
async function it(e, t, { config: { themeVariables: n } }) {
|
|
2159
2159
|
var r, i, a;
|
|
2160
2160
|
let o = (r = n == null ? void 0 : n.radius) == null ? 5 : r;
|
|
@@ -2166,13 +2166,13 @@ async function it(e, t, { config: { themeVariables: n } }) {
|
|
|
2166
2166
|
labelPaddingY: ((a = t == null ? void 0 : t.padding) == null ? 0 : a) * 1
|
|
2167
2167
|
});
|
|
2168
2168
|
}
|
|
2169
|
-
|
|
2169
|
+
a(it, "roundedRect");
|
|
2170
2170
|
var at = 8;
|
|
2171
2171
|
async function ot(e, t) {
|
|
2172
|
-
var
|
|
2173
|
-
let { labelStyles:
|
|
2174
|
-
t.labelStyle =
|
|
2175
|
-
let
|
|
2172
|
+
var r, i, a, o, s, c;
|
|
2173
|
+
let { labelStyles: l, nodeStyles: u } = b(t);
|
|
2174
|
+
t.labelStyle = l;
|
|
2175
|
+
let d = t.look === "neo" ? 16 : (r = t.padding) == null ? 0 : r, f = t.look === "neo" ? 12 : (i = t.padding) == null ? 0 : i, { shapeSvg: p, bbox: m, label: h } = await w(e, t, D(t)), g = ((a = t == null ? void 0 : t.width) == null ? m.width : a) + d * 2 + (t.look === "neo" ? at : at * 2), _ = ((o = t == null ? void 0 : t.height) == null ? m.height : o) + f * 2, v = g - at, x = _, S = at - g / 2, T = -_ / 2, { cssStyles: O } = t, k = C.svg(p), A = y(t, {});
|
|
2176
2176
|
t.look !== "handDrawn" && (A.roughness = 0, A.fillStyle = "solid");
|
|
2177
2177
|
let j = [
|
|
2178
2178
|
{
|
|
@@ -2203,12 +2203,12 @@ async function ot(e, t) {
|
|
|
2203
2203
|
x: S,
|
|
2204
2204
|
y: T + x
|
|
2205
2205
|
}
|
|
2206
|
-
], M = k.polygon(j.map((e) => [e.x, e.y]), A), N =
|
|
2207
|
-
return N.attr("class", "basic label-container outer-path").attr("style",
|
|
2206
|
+
], M = k.polygon(j.map((e) => [e.x, e.y]), A), N = p.insert(() => M, ":first-child");
|
|
2207
|
+
return N.attr("class", "basic label-container outer-path").attr("style", n(O)), u && t.look !== "handDrawn" && N.selectAll("path").attr("style", u), O && t.look !== "handDrawn" && N.selectAll("path").attr("style", u), h.attr("transform", `translate(${at / 2 - m.width / 2 - (m.x - ((s = m.left) == null ? 0 : s))}, ${-(m.height / 2) - (m.y - ((c = m.top) == null ? 0 : c))})`), E(t, N), t.intersect = function(e) {
|
|
2208
2208
|
return q.rect(t, e);
|
|
2209
|
-
},
|
|
2209
|
+
}, p;
|
|
2210
2210
|
}
|
|
2211
|
-
|
|
2211
|
+
a(ot, "shadedProcess");
|
|
2212
2212
|
async function st(e, t) {
|
|
2213
2213
|
var n, r, i, a, o;
|
|
2214
2214
|
let { labelStyles: s, nodeStyles: c } = b(t);
|
|
@@ -2242,7 +2242,7 @@ async function st(e, t) {
|
|
|
2242
2242
|
return q.polygon(t, N, e);
|
|
2243
2243
|
}, m;
|
|
2244
2244
|
}
|
|
2245
|
-
|
|
2245
|
+
a(st, "slopedRect");
|
|
2246
2246
|
async function ct(e, t) {
|
|
2247
2247
|
var n, r;
|
|
2248
2248
|
let i = (n = t.padding) == null ? 0 : n, a = t.look === "neo" ? 16 : i * 2, o = t.look === "neo" ? 12 : i;
|
|
@@ -2254,7 +2254,7 @@ async function ct(e, t) {
|
|
|
2254
2254
|
labelPaddingY: o
|
|
2255
2255
|
});
|
|
2256
2256
|
}
|
|
2257
|
-
|
|
2257
|
+
a(ct, "squareRect");
|
|
2258
2258
|
async function lt(e, t) {
|
|
2259
2259
|
var n;
|
|
2260
2260
|
let { labelStyles: r, nodeStyles: i } = b(t);
|
|
@@ -2281,7 +2281,7 @@ async function lt(e, t) {
|
|
|
2281
2281
|
return q.polygon(t, g, e);
|
|
2282
2282
|
}, c;
|
|
2283
2283
|
}
|
|
2284
|
-
|
|
2284
|
+
a(lt, "stadium");
|
|
2285
2285
|
async function ut(e, t) {
|
|
2286
2286
|
return ze(e, t, {
|
|
2287
2287
|
rx: t.look === "neo" ? 3 : 5,
|
|
@@ -2289,7 +2289,7 @@ async function ut(e, t) {
|
|
|
2289
2289
|
classes: "flowchart-node"
|
|
2290
2290
|
});
|
|
2291
2291
|
}
|
|
2292
|
-
|
|
2292
|
+
a(ut, "state");
|
|
2293
2293
|
function dt(t, n, { config: { themeVariables: r } }) {
|
|
2294
2294
|
var i, a;
|
|
2295
2295
|
let { labelStyles: o, nodeStyles: s } = b(n);
|
|
@@ -2321,7 +2321,7 @@ function dt(t, n, { config: { themeVariables: r } }) {
|
|
|
2321
2321
|
return q.circle(n, ((t = n.width) == null ? 0 : t) / 2, e);
|
|
2322
2322
|
}, h;
|
|
2323
2323
|
}
|
|
2324
|
-
|
|
2324
|
+
a(dt, "stateEnd");
|
|
2325
2325
|
function ft(e, t, { config: { themeVariables: n } }) {
|
|
2326
2326
|
let { lineColor: r, nodeShadow: i } = n;
|
|
2327
2327
|
if (t.width || t.height) {
|
|
@@ -2348,13 +2348,13 @@ function ft(e, t, { config: { themeVariables: n } }) {
|
|
|
2348
2348
|
return q.circle(t, ((n = t.width) == null ? 7 : n) / 2, e);
|
|
2349
2349
|
}, s;
|
|
2350
2350
|
}
|
|
2351
|
-
|
|
2351
|
+
a(ft, "stateStart");
|
|
2352
2352
|
var pt = 8;
|
|
2353
2353
|
async function mt(e, t) {
|
|
2354
|
-
var
|
|
2355
|
-
let { labelStyles:
|
|
2356
|
-
t.labelStyle =
|
|
2357
|
-
let
|
|
2354
|
+
var r, i, a;
|
|
2355
|
+
let { labelStyles: o, nodeStyles: s } = b(t);
|
|
2356
|
+
t.labelStyle = o;
|
|
2357
|
+
let c = (r = t == null ? void 0 : t.padding) == null ? 8 : r, l = t.look === "neo" ? 28 : c, u = t.look === "neo" ? 12 : c, { shapeSvg: d, bbox: f } = await w(e, t, D(t)), p = ((i = t == null ? void 0 : t.width) == null ? f.width : i) + 2 * pt + l, m = ((a = t == null ? void 0 : t.height) == null ? f.height : a) + u, h = p - 2 * pt, g = m, _ = -p / 2, v = -m / 2, x = [
|
|
2358
2358
|
{
|
|
2359
2359
|
x: 0,
|
|
2360
2360
|
y: 0
|
|
@@ -2397,19 +2397,19 @@ async function mt(e, t) {
|
|
|
2397
2397
|
}
|
|
2398
2398
|
];
|
|
2399
2399
|
if (t.look === "handDrawn") {
|
|
2400
|
-
let e = C.svg(
|
|
2401
|
-
|
|
2402
|
-
let
|
|
2403
|
-
|
|
2400
|
+
let e = C.svg(d), r = y(t, {}), i = e.rectangle(_, v, h + 16, g, r), a = e.line(_ + pt, v, _ + pt, v + g, r), o = e.line(_ + pt + h, v, _ + pt + h, v + g, r);
|
|
2401
|
+
d.insert(() => a, ":first-child"), d.insert(() => o, ":first-child");
|
|
2402
|
+
let s = d.insert(() => i, ":first-child"), { cssStyles: c } = t;
|
|
2403
|
+
s.attr("class", "basic label-container").attr("style", n(c)), E(t, s);
|
|
2404
2404
|
} else {
|
|
2405
|
-
let e = Y(
|
|
2406
|
-
|
|
2405
|
+
let e = Y(d, h, g, x);
|
|
2406
|
+
s && e.attr("style", s), E(t, e);
|
|
2407
2407
|
}
|
|
2408
2408
|
return t.intersect = function(e) {
|
|
2409
2409
|
return q.polygon(t, x, e);
|
|
2410
|
-
},
|
|
2410
|
+
}, d;
|
|
2411
2411
|
}
|
|
2412
|
-
|
|
2412
|
+
a(mt, "subroutine");
|
|
2413
2413
|
var ht = .2;
|
|
2414
2414
|
async function gt(t, n) {
|
|
2415
2415
|
var r;
|
|
@@ -2457,7 +2457,7 @@ async function gt(t, n) {
|
|
|
2457
2457
|
return q.polygon(n, A, e);
|
|
2458
2458
|
}, d;
|
|
2459
2459
|
}
|
|
2460
|
-
|
|
2460
|
+
a(gt, "taggedRect");
|
|
2461
2461
|
async function _t(t, n) {
|
|
2462
2462
|
var r, i, a, o, s, c, l, u;
|
|
2463
2463
|
let { labelStyles: d, nodeStyles: f } = b(n);
|
|
@@ -2497,7 +2497,7 @@ async function _t(t, n) {
|
|
|
2497
2497
|
return q.polygon(n, N, e);
|
|
2498
2498
|
}, p;
|
|
2499
2499
|
}
|
|
2500
|
-
|
|
2500
|
+
a(_t, "taggedWaveEdgedRectangle");
|
|
2501
2501
|
async function vt(e, t) {
|
|
2502
2502
|
var n, r;
|
|
2503
2503
|
let { labelStyles: i, nodeStyles: a } = b(t);
|
|
@@ -2507,42 +2507,42 @@ async function vt(e, t) {
|
|
|
2507
2507
|
return q.rect(t, e);
|
|
2508
2508
|
}, o;
|
|
2509
2509
|
}
|
|
2510
|
-
|
|
2511
|
-
var yt = /* @__PURE__ */
|
|
2510
|
+
a(vt, "text");
|
|
2511
|
+
var yt = /* @__PURE__ */ a((e, t, n, r, i, a) => `M${e},${t}
|
|
2512
2512
|
a${i},${a} 0,0,1 0,${-r}
|
|
2513
2513
|
l${n},0
|
|
2514
2514
|
a${i},${a} 0,0,1 0,${r}
|
|
2515
2515
|
M${n},${-r}
|
|
2516
2516
|
a${i},${a} 0,0,0 0,${r}
|
|
2517
|
-
l${-n},0`, "createCylinderPathD"), bt = /* @__PURE__ */
|
|
2517
|
+
l${-n},0`, "createCylinderPathD"), bt = /* @__PURE__ */ a((e, t, n, r, i, a) => [
|
|
2518
2518
|
`M${e},${t}`,
|
|
2519
2519
|
`M${e + n},${t}`,
|
|
2520
2520
|
`a${i},${a} 0,0,0 0,${-r}`,
|
|
2521
2521
|
`l${-n},0`,
|
|
2522
2522
|
`a${i},${a} 0,0,0 0,${r}`,
|
|
2523
2523
|
`l${n},0`
|
|
2524
|
-
].join(" "), "createOuterCylinderPathD"), xt = /* @__PURE__ */
|
|
2524
|
+
].join(" "), "createOuterCylinderPathD"), xt = /* @__PURE__ */ a((e, t, n, r, i, a) => [`M${e + n / 2},${-r / 2}`, `a${i},${a} 0,0,0 0,${r}`].join(" "), "createInnerCylinderPathD"), St = 5, Ct = 10;
|
|
2525
2525
|
async function wt(e, t) {
|
|
2526
|
-
var
|
|
2527
|
-
let { labelStyles:
|
|
2528
|
-
t.labelStyle =
|
|
2529
|
-
let
|
|
2526
|
+
var r, i, a;
|
|
2527
|
+
let { labelStyles: o, nodeStyles: s } = b(t);
|
|
2528
|
+
t.labelStyle = o;
|
|
2529
|
+
let c = (r = t.padding) == null ? 0 : r, l = t.look === "neo" ? 12 : c / 2;
|
|
2530
2530
|
if (t.width || t.height) {
|
|
2531
|
-
var
|
|
2532
|
-
let e = (
|
|
2533
|
-
t.height = ((
|
|
2531
|
+
var u, d, f;
|
|
2532
|
+
let e = (u = t.height) == null ? 0 : u;
|
|
2533
|
+
t.height = ((d = t.height) == null ? 0 : d) - l, t.height < St && (t.height = St);
|
|
2534
2534
|
let n = e / 2 / (2.5 + e / 50);
|
|
2535
|
-
t.width = ((
|
|
2535
|
+
t.width = ((f = t.width) == null ? 0 : f) - l - n * 3, t.width < Ct && (t.width = Ct);
|
|
2536
2536
|
}
|
|
2537
|
-
let { shapeSvg:
|
|
2537
|
+
let { shapeSvg: p, bbox: m, label: h } = await w(e, t, D(t)), g = (t.height ? t.height : m.height) + l, _ = g / 2, v = _ / (2.5 + g / 50), x = (t.width ? t.width : m.width) + v + l, { cssStyles: S } = t, T;
|
|
2538
2538
|
if (t.look === "handDrawn") {
|
|
2539
|
-
let e = C.svg(
|
|
2540
|
-
T =
|
|
2539
|
+
let e = C.svg(p), n = bt(0, 0, x, g, v, _), r = xt(0, 0, x, g, v, _), i = e.path(n, y(t, {})), a = e.path(r, y(t, { fill: "none" }));
|
|
2540
|
+
T = p.insert(() => a, ":first-child"), T = p.insert(() => i, ":first-child"), T.attr("class", "basic label-container"), S && T.attr("style", S);
|
|
2541
2541
|
} else {
|
|
2542
2542
|
let e = yt(0, 0, x, g, v, _);
|
|
2543
|
-
T =
|
|
2543
|
+
T = p.insert("path", ":first-child").attr("d", e).attr("class", "basic label-container").attr("style", n(S)).attr("style", s), T.attr("class", "basic label-container outer-path"), S && T.selectAll("path").attr("style", S), s && T.selectAll("path").attr("style", s);
|
|
2544
2544
|
}
|
|
2545
|
-
return T.attr("label-offset-x", v), T.attr("transform", `translate(${-x / 2}, ${g / 2} )`), h.attr("transform", `translate(${-(m.width / 2) - v - (m.x - ((
|
|
2545
|
+
return T.attr("label-offset-x", v), T.attr("transform", `translate(${-x / 2}, ${g / 2} )`), h.attr("transform", `translate(${-(m.width / 2) - v - (m.x - ((i = m.left) == null ? 0 : i))}, ${-(m.height / 2) - (m.y - ((a = m.top) == null ? 0 : a))})`), E(t, T), t.intersect = function(e) {
|
|
2546
2546
|
var n, r, i, a, o;
|
|
2547
2547
|
let s = q.rect(t, e), c = s.y - ((n = t.y) == null ? 0 : n);
|
|
2548
2548
|
if (_ != 0 && (Math.abs(c) < ((r = t.height) == null ? 0 : r) / 2 || Math.abs(c) == ((i = t.height) == null ? 0 : i) / 2 && Math.abs(s.x - ((a = t.x) == null ? 0 : a)) > ((o = t.width) == null ? 0 : o) / 2 - v)) {
|
|
@@ -2551,9 +2551,9 @@ async function wt(e, t) {
|
|
|
2551
2551
|
n != 0 && (n = Math.sqrt(Math.abs(n))), n = v - n, e.x - ((l = t.x) == null ? 0 : l) > 0 && (n = -n), s.x += n;
|
|
2552
2552
|
}
|
|
2553
2553
|
return s;
|
|
2554
|
-
},
|
|
2554
|
+
}, p;
|
|
2555
2555
|
}
|
|
2556
|
-
|
|
2556
|
+
a(wt, "tiltedCylinder");
|
|
2557
2557
|
async function Tt(e, t) {
|
|
2558
2558
|
var n, r, i;
|
|
2559
2559
|
let { labelStyles: a, nodeStyles: o } = b(t);
|
|
@@ -2584,7 +2584,7 @@ async function Tt(e, t) {
|
|
|
2584
2584
|
return q.polygon(t, m, e);
|
|
2585
2585
|
}, u;
|
|
2586
2586
|
}
|
|
2587
|
-
|
|
2587
|
+
a(Tt, "trapezoid");
|
|
2588
2588
|
async function Et(e, t) {
|
|
2589
2589
|
var n;
|
|
2590
2590
|
let { labelStyles: r, nodeStyles: i } = b(t);
|
|
@@ -2626,18 +2626,18 @@ async function Et(e, t) {
|
|
|
2626
2626
|
return q.polygon(t, _, e);
|
|
2627
2627
|
}, u;
|
|
2628
2628
|
}
|
|
2629
|
-
|
|
2629
|
+
a(Et, "trapezoidalPentagon");
|
|
2630
2630
|
var Dt = 10, Ot = 10;
|
|
2631
|
-
async function kt(e,
|
|
2632
|
-
var
|
|
2633
|
-
let { labelStyles:
|
|
2634
|
-
|
|
2635
|
-
let f = (
|
|
2636
|
-
if (
|
|
2631
|
+
async function kt(e, t) {
|
|
2632
|
+
var n, r, a, o, s;
|
|
2633
|
+
let { labelStyles: c, nodeStyles: d } = b(t);
|
|
2634
|
+
t.labelStyle = c;
|
|
2635
|
+
let f = (n = t.padding) == null ? 0 : n, p = t.look === "neo" ? f * 2 : f;
|
|
2636
|
+
if (t.width || t.height) {
|
|
2637
2637
|
var m, h;
|
|
2638
|
-
|
|
2638
|
+
t.width = (((m = t == null ? void 0 : t.width) == null ? 0 : m) - p) / 2, t.width < Ot && (t.width = Ot), t.height = (h = t == null ? void 0 : t.height) == null ? 0 : h, t.height < Dt && (t.height = Dt);
|
|
2639
2639
|
}
|
|
2640
|
-
let { shapeSvg: g, bbox: _, label: v } = await w(e,
|
|
2640
|
+
let { shapeSvg: g, bbox: _, label: v } = await w(e, t, D(t)), x = u((r = l().flowchart) == null ? void 0 : r.htmlLabels), S = (t != null && t.width ? t == null ? void 0 : t.width : _.width) + p, T = t != null && t.height ? t == null ? void 0 : t.height : S + _.height, k = T, A = [
|
|
2641
2641
|
{
|
|
2642
2642
|
x: 0,
|
|
2643
2643
|
y: 0
|
|
@@ -2650,14 +2650,14 @@ async function kt(e, n) {
|
|
|
2650
2650
|
x: k / 2,
|
|
2651
2651
|
y: -T
|
|
2652
2652
|
}
|
|
2653
|
-
], { cssStyles: j } =
|
|
2654
|
-
|
|
2653
|
+
], { cssStyles: j } = t, M = C.svg(g), N = y(t, {});
|
|
2654
|
+
t.look !== "handDrawn" && (N.roughness = 0, N.fillStyle = "solid");
|
|
2655
2655
|
let P = O(A), F = M.path(P, N), I = g.insert(() => F, ":first-child").attr("transform", `translate(${-T / 2}, ${T / 2})`).attr("class", "outer-path");
|
|
2656
|
-
return j &&
|
|
2657
|
-
return
|
|
2656
|
+
return j && t.look !== "handDrawn" && I.selectChildren("path").attr("style", j), d && t.look !== "handDrawn" && I.selectChildren("path").attr("style", d), t.width = S, t.height = T, E(t, I), v.attr("transform", `translate(${-_.width / 2 - (_.x - ((a = _.left) == null ? 0 : a))}, ${T / 2 - (_.height + ((o = t.padding) == null ? 0 : o) / (x ? 2 : 1) - (_.y - ((s = _.top) == null ? 0 : s)))})`), t.intersect = function(e) {
|
|
2657
|
+
return i.info("Triangle intersect", t, A, e), q.polygon(t, A, e);
|
|
2658
2658
|
}, g;
|
|
2659
2659
|
}
|
|
2660
|
-
|
|
2660
|
+
a(kt, "triangle");
|
|
2661
2661
|
async function At(e, t) {
|
|
2662
2662
|
var n, r, i, a, o;
|
|
2663
2663
|
let { labelStyles: s, nodeStyles: c } = b(t);
|
|
@@ -2688,7 +2688,7 @@ async function At(e, t) {
|
|
|
2688
2688
|
return q.polygon(t, F, e);
|
|
2689
2689
|
}, h;
|
|
2690
2690
|
}
|
|
2691
|
-
|
|
2691
|
+
a(At, "waveEdgedRectangle");
|
|
2692
2692
|
async function jt(e, t) {
|
|
2693
2693
|
var n;
|
|
2694
2694
|
let { labelStyles: r, nodeStyles: i } = b(t);
|
|
@@ -2718,7 +2718,7 @@ async function jt(e, t) {
|
|
|
2718
2718
|
return q.polygon(t, x, e);
|
|
2719
2719
|
}, u;
|
|
2720
2720
|
}
|
|
2721
|
-
|
|
2721
|
+
a(jt, "waveRectangle");
|
|
2722
2722
|
var $ = 10;
|
|
2723
2723
|
async function Mt(e, t) {
|
|
2724
2724
|
var n, r, i, a;
|
|
@@ -2755,7 +2755,7 @@ async function Mt(e, t) {
|
|
|
2755
2755
|
return q.polygon(t, A, e);
|
|
2756
2756
|
}, f;
|
|
2757
2757
|
}
|
|
2758
|
-
|
|
2758
|
+
a(Mt, "windowPane");
|
|
2759
2759
|
var Nt = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), Pt = /* @__PURE__ */ new Set([
|
|
2760
2760
|
"redux",
|
|
2761
2761
|
"redux-dark",
|
|
@@ -2763,12 +2763,12 @@ var Nt = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), Pt = /* @
|
|
|
2763
2763
|
"redux-dark-color"
|
|
2764
2764
|
]);
|
|
2765
2765
|
async function Ft(t, n) {
|
|
2766
|
-
var i, a,
|
|
2766
|
+
var i, a, s, c, l, d;
|
|
2767
2767
|
let f = n;
|
|
2768
2768
|
f.alias && (n.label = f.alias);
|
|
2769
|
-
let { theme: p, themeVariables: h } =
|
|
2769
|
+
let { theme: p, themeVariables: h } = m(), { rowEven: g, rowOdd: _, nodeBorder: v, borderColorArray: x } = h;
|
|
2770
2770
|
if (n.look === "handDrawn") {
|
|
2771
|
-
let { themeVariables: r } =
|
|
2771
|
+
let { themeVariables: r } = m(), { background: i } = r;
|
|
2772
2772
|
await Ft(t, e(e({}, n), {}, {
|
|
2773
2773
|
id: n.id + "-background",
|
|
2774
2774
|
domId: (n.domId || n.id) + "-background",
|
|
@@ -2776,9 +2776,9 @@ async function Ft(t, n) {
|
|
|
2776
2776
|
cssStyles: ["stroke: none", `fill: ${i}`]
|
|
2777
2777
|
}));
|
|
2778
2778
|
}
|
|
2779
|
-
let S =
|
|
2779
|
+
let S = m();
|
|
2780
2780
|
n.useHtmlLabels = S.htmlLabels;
|
|
2781
|
-
let w = (i = (a = S.er) == null ? void 0 : a.diagramPadding) == null ? 10 : i, T = (
|
|
2781
|
+
let w = (i = (a = S.er) == null ? void 0 : a.diagramPadding) == null ? 10 : i, T = (s = (c = S.er) == null ? void 0 : c.entityPadding) == null ? 6 : s, { cssStyles: O } = n, { labelStyles: k, nodeStyles: A } = b(n);
|
|
2782
2782
|
if (f.attributes.length === 0 && n.label) {
|
|
2783
2783
|
let e = {
|
|
2784
2784
|
rx: 0,
|
|
@@ -2787,19 +2787,19 @@ async function Ft(t, n) {
|
|
|
2787
2787
|
labelPaddingY: w * 1.5,
|
|
2788
2788
|
classes: ""
|
|
2789
2789
|
};
|
|
2790
|
-
|
|
2791
|
-
let
|
|
2790
|
+
r(n.label, S) + e.labelPaddingX * 2 < S.er.minEntityWidth && (n.width = S.er.minEntityWidth);
|
|
2791
|
+
let i = await ze(t, n, e);
|
|
2792
2792
|
if (p != null && Nt.has(p)) {
|
|
2793
2793
|
var j;
|
|
2794
2794
|
let e = (j = f.colorIndex) == null ? 0 : j;
|
|
2795
|
-
|
|
2795
|
+
i.attr("data-color-id", `color-${e % x.length}`);
|
|
2796
2796
|
}
|
|
2797
|
-
if (!
|
|
2797
|
+
if (!u(S.htmlLabels)) {
|
|
2798
2798
|
var M;
|
|
2799
|
-
let e =
|
|
2799
|
+
let e = i.select("text"), t = (M = e.node()) == null ? void 0 : M.getBBox();
|
|
2800
2800
|
e.attr("transform", `translate(${-t.width / 2}, 0)`);
|
|
2801
2801
|
}
|
|
2802
|
-
return
|
|
2802
|
+
return i;
|
|
2803
2803
|
}
|
|
2804
2804
|
S.htmlLabels || (w *= 1.25, T *= 1.25);
|
|
2805
2805
|
let N = D(n);
|
|
@@ -2836,14 +2836,14 @@ async function Ft(t, n) {
|
|
|
2836
2836
|
var n;
|
|
2837
2837
|
return e + ((n = t == null ? void 0 : t.rowHeight) == null ? 0 : n);
|
|
2838
2838
|
}, 0));
|
|
2839
|
-
let ie = Math.max(ee.width + w * 2, (n == null ? void 0 : n.width) || 0, te), ae = Math.max(((
|
|
2839
|
+
let ie = Math.max(ee.width + w * 2, (n == null ? void 0 : n.width) || 0, te), ae = Math.max(((d = re) == null ? 0 : d) + F.height, (n == null ? void 0 : n.height) || 0), J = -ie / 2, Y = -ae / 2;
|
|
2840
2840
|
if (P.selectAll("g:not(:first-child)").each((e, t, n) => {
|
|
2841
|
-
let
|
|
2842
|
-
if (
|
|
2843
|
-
let e = RegExp(/translate\(([^,]+),([^)]+)\)/).exec(
|
|
2844
|
-
e && (
|
|
2841
|
+
let r = o(n[t]), i = r.attr("transform"), a = 0, s = 0;
|
|
2842
|
+
if (i) {
|
|
2843
|
+
let e = RegExp(/translate\(([^,]+),([^)]+)\)/).exec(i);
|
|
2844
|
+
e && (a = parseFloat(e[1]), s = parseFloat(e[2]), r.attr("class").includes("attribute-name") ? a += z : r.attr("class").includes("attribute-keys") ? a += z + B : r.attr("class").includes("attribute-comment") && (a += z + B + V));
|
|
2845
2845
|
}
|
|
2846
|
-
|
|
2846
|
+
r.attr("transform", `translate(${J + w / 2 + a}, ${s + Y + F.height + T / 2})`);
|
|
2847
2847
|
}), P.select(".name").attr("transform", "translate(" + -F.width / 2 + ", " + (Y + T / 2) + ")"), p != null && Nt.has(p)) {
|
|
2848
2848
|
var oe;
|
|
2849
2849
|
let e = (oe = f.colorIndex) == null ? 0 : oe;
|
|
@@ -2881,29 +2881,29 @@ async function Ft(t, n) {
|
|
|
2881
2881
|
return q.rect(n, e);
|
|
2882
2882
|
}, P;
|
|
2883
2883
|
}
|
|
2884
|
-
|
|
2885
|
-
async function It(e, t, n, i = 0, a = 0,
|
|
2886
|
-
let
|
|
2887
|
-
t !==
|
|
2888
|
-
let
|
|
2889
|
-
width:
|
|
2890
|
-
style:
|
|
2884
|
+
a(Ft, "erBox");
|
|
2885
|
+
async function It(e, t, n, i = 0, a = 0, s = [], c = "") {
|
|
2886
|
+
let l = e.insert("g").attr("class", `label ${s.join(" ")}`).attr("transform", `translate(${i}, ${a})`).attr("style", c);
|
|
2887
|
+
t !== d(t) && (t = d(t), t = t.replaceAll("<", "<").replaceAll(">", ">"));
|
|
2888
|
+
let f = l.node().appendChild(await h(l, t, {
|
|
2889
|
+
width: r(t, n) + 100,
|
|
2890
|
+
style: c,
|
|
2891
2891
|
useHtmlLabels: n.htmlLabels
|
|
2892
2892
|
}, n));
|
|
2893
2893
|
if (t.includes("<") || t.includes(">")) {
|
|
2894
|
-
let e =
|
|
2894
|
+
let e = f.children[0];
|
|
2895
2895
|
for (e.textContent = e.textContent.replaceAll("<", "<").replaceAll(">", ">"); e.childNodes[0];) e = e.childNodes[0], e.textContent = e.textContent.replaceAll("<", "<").replaceAll(">", ">");
|
|
2896
2896
|
}
|
|
2897
|
-
let
|
|
2898
|
-
if (
|
|
2899
|
-
let e =
|
|
2897
|
+
let p = f.getBBox();
|
|
2898
|
+
if (u(n.htmlLabels)) {
|
|
2899
|
+
let e = f.children[0];
|
|
2900
2900
|
e.style.textAlign = "start";
|
|
2901
|
-
let t =
|
|
2902
|
-
|
|
2901
|
+
let t = o(f);
|
|
2902
|
+
p = e.getBoundingClientRect(), t.attr("width", p.width), t.attr("height", p.height);
|
|
2903
2903
|
}
|
|
2904
|
-
return
|
|
2904
|
+
return p;
|
|
2905
2905
|
}
|
|
2906
|
-
|
|
2906
|
+
a(It, "addText");
|
|
2907
2907
|
function Lt(e, t, n, r, i) {
|
|
2908
2908
|
return e === n ? [
|
|
2909
2909
|
{
|
|
@@ -2941,7 +2941,7 @@ function Lt(e, t, n, r, i) {
|
|
|
2941
2941
|
}
|
|
2942
2942
|
];
|
|
2943
2943
|
}
|
|
2944
|
-
|
|
2944
|
+
a(Lt, "lineToPolygon");
|
|
2945
2945
|
async function Rt(e, t, n, r, i = ((e) => (e = n.class.padding) == null ? 12 : e)()) {
|
|
2946
2946
|
let a = r ? 0 : 3, o = e.insert("g").attr("class", D(t)).attr("id", t.domId || t.id), s = null, c = null, l = null, u = null, d = 0, f = 0, p = 0;
|
|
2947
2947
|
if (s = o.insert("g").attr("class", "annotation-group text"), t.annotations.length > 0) {
|
|
@@ -2972,49 +2972,49 @@ async function Rt(e, t, n, r, i = ((e) => (e = n.class.padding) == null ? 12 : e
|
|
|
2972
2972
|
bbox: _
|
|
2973
2973
|
};
|
|
2974
2974
|
}
|
|
2975
|
-
|
|
2976
|
-
async function zt(e,
|
|
2977
|
-
var
|
|
2978
|
-
let
|
|
2979
|
-
_ = "text" in
|
|
2980
|
-
let v = await h(
|
|
2981
|
-
width:
|
|
2975
|
+
a(Rt, "textHelper");
|
|
2976
|
+
async function zt(e, n, i, s = []) {
|
|
2977
|
+
var l;
|
|
2978
|
+
let d = e.insert("g").attr("class", "label").attr("style", s.join("; ")), p = m(), g = "useHtmlLabels" in n ? n.useHtmlLabels : (l = u(p.htmlLabels)) == null ? !0 : l, _ = "";
|
|
2979
|
+
_ = "text" in n ? n.text : n.label, !g && _.startsWith("\\") && (_ = _.substring(1)), f(_) && (g = !0);
|
|
2980
|
+
let v = await h(d, c(t(_)), {
|
|
2981
|
+
width: r(_, p) + 50,
|
|
2982
2982
|
classes: "markdown-node-label",
|
|
2983
2983
|
useHtmlLabels: g
|
|
2984
2984
|
}, p), y, b = 1;
|
|
2985
2985
|
if (g) {
|
|
2986
|
-
let e = v.children[0], t =
|
|
2986
|
+
let e = v.children[0], t = o(v);
|
|
2987
2987
|
b = e.innerHTML.split("<br>").length, e.innerHTML.includes("</math>") && (b += e.innerHTML.split("<mrow>").length - 1);
|
|
2988
|
-
let
|
|
2989
|
-
if (
|
|
2988
|
+
let n = e.getElementsByTagName("img");
|
|
2989
|
+
if (n) {
|
|
2990
2990
|
let e = _.replace(/<img[^>]*>/g, "").trim() === "";
|
|
2991
|
-
await Promise.all([...
|
|
2992
|
-
function
|
|
2991
|
+
await Promise.all([...n].map((t) => new Promise((n) => {
|
|
2992
|
+
function r() {
|
|
2993
2993
|
if (t.style.display = "flex", t.style.flexDirection = "column", e) {
|
|
2994
|
-
var
|
|
2995
|
-
let e = (
|
|
2996
|
-
t.style.minWidth =
|
|
2994
|
+
var r, i;
|
|
2995
|
+
let e = (r = (i = p.fontSize) == null ? void 0 : i.toString()) == null ? window.getComputedStyle(document.body).fontSize : r, n = parseInt(e, 10) * 5 + "px";
|
|
2996
|
+
t.style.minWidth = n, t.style.maxWidth = n;
|
|
2997
2997
|
} else t.style.width = "100%";
|
|
2998
|
-
|
|
2998
|
+
n(t);
|
|
2999
2999
|
}
|
|
3000
|
-
|
|
3001
|
-
t.complete &&
|
|
3002
|
-
}), t.addEventListener("error",
|
|
3000
|
+
a(r, "setupImage"), setTimeout(() => {
|
|
3001
|
+
t.complete && r();
|
|
3002
|
+
}), t.addEventListener("error", r), t.addEventListener("load", r);
|
|
3003
3003
|
})));
|
|
3004
3004
|
}
|
|
3005
3005
|
y = e.getBoundingClientRect(), t.attr("width", y.width), t.attr("height", y.height);
|
|
3006
3006
|
} else {
|
|
3007
|
-
|
|
3007
|
+
s.includes("font-weight: bolder") && o(v).selectAll("tspan").attr("font-weight", ""), b = v.children.length;
|
|
3008
3008
|
let e = v.children[0];
|
|
3009
3009
|
(v.textContent === "" || v.textContent.includes(">")) && (e.textContent = _[0] + _.substring(1).replaceAll(">", ">").replaceAll("<", "<").trim(), _[1] === " " && (e.textContent = e.textContent[0] + " " + e.textContent.substring(1))), e.textContent === "undefined" && (e.textContent = ""), y = v.getBBox();
|
|
3010
3010
|
}
|
|
3011
|
-
return
|
|
3011
|
+
return d.attr("transform", "translate(0," + (-y.height / (2 * b) + i) + ")"), y.height;
|
|
3012
3012
|
}
|
|
3013
|
-
|
|
3013
|
+
a(zt, "addText");
|
|
3014
3014
|
async function Bt(e, t) {
|
|
3015
|
-
var n, i, a,
|
|
3016
|
-
let g =
|
|
3017
|
-
T.annotations = (
|
|
3015
|
+
var n, r, i, a, s, c, d, f, p, m, h;
|
|
3016
|
+
let g = l(), { themeVariables: _ } = g, { useGradient: v } = _, x = (n = g.class.padding) == null ? 12 : n, S = x, w = (r = (i = t.useHtmlLabels) == null ? u(g.htmlLabels) : i) == null ? !0 : r, T = t;
|
|
3017
|
+
T.annotations = (a = T.annotations) == null ? [] : a, T.members = (s = T.members) == null ? [] : s, T.methods = (c = T.methods) == null ? [] : c;
|
|
3018
3018
|
let { shapeSvg: D, bbox: O } = await Rt(e, t, g, w, S), { labelStyles: k, nodeStyles: A } = b(t);
|
|
3019
3019
|
t.labelStyle = k, t.cssStyles = T.styles || "";
|
|
3020
3020
|
let j = ((d = T.styles) == null ? void 0 : d.join(";")) || A || "";
|
|
@@ -3029,26 +3029,26 @@ async function Bt(e, t) {
|
|
|
3029
3029
|
H.attr("class", "basic label-container outer-path");
|
|
3030
3030
|
let U = H.node().getBBox(), W = D.select(".annotation-group").node().getBBox().height - (M ? x / 2 : 0) || 0, G = D.select(".label-group").node().getBBox().height - (M ? x / 2 : 0) || 0, ee = D.select(".members-group").node().getBBox().height - (M ? x / 2 : 0) || 0, te = (W + G + z + x - (z - x - (M ? x : T.members.length === 0 && T.methods.length === 0 ? -x / 2 : 0))) / 2;
|
|
3031
3031
|
if (D.selectAll(".text").each((e, t, n) => {
|
|
3032
|
-
var
|
|
3033
|
-
let
|
|
3034
|
-
if (
|
|
3035
|
-
let e = RegExp(/translate\(([^,]+),([^)]+)\)/).exec(
|
|
3032
|
+
var r;
|
|
3033
|
+
let i = o(n[t]), a = i.attr("transform"), s = 0;
|
|
3034
|
+
if (a) {
|
|
3035
|
+
let e = RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);
|
|
3036
3036
|
e && (s = parseFloat(e[2]));
|
|
3037
3037
|
}
|
|
3038
3038
|
let c = s + z + x - (M ? x : T.members.length === 0 && T.methods.length === 0 ? -x / 2 : 0);
|
|
3039
|
-
if (
|
|
3039
|
+
if (i.attr("class").includes("methods-group")) {
|
|
3040
3040
|
let e = Math.max(ee, S / 2);
|
|
3041
3041
|
c = L ? Math.max(te, W + G + e + z + S * 2 + x) + S * 2 : W + G + e + z + S * 4 + x;
|
|
3042
3042
|
}
|
|
3043
|
-
T.members.length === 0 && T.methods.length === 0 && (
|
|
3043
|
+
T.members.length === 0 && T.methods.length === 0 && (r = g.class) != null && r.hideEmptyMembersBox && (c = T.annotations.length > 0 ? s - S : s), w || (c -= 4);
|
|
3044
3044
|
let l = R;
|
|
3045
|
-
if (
|
|
3045
|
+
if (i.attr("class").includes("label-group") || i.attr("class").includes("annotation-group")) {
|
|
3046
3046
|
var u;
|
|
3047
|
-
l = -((u =
|
|
3047
|
+
l = -((u = i.node()) == null ? void 0 : u.getBBox().width) / 2 || 0, D.selectAll("text").each(function(e, t, n) {
|
|
3048
3048
|
window.getComputedStyle(n[t]).textAnchor === "middle" && (l = 0);
|
|
3049
3049
|
});
|
|
3050
3050
|
}
|
|
3051
|
-
|
|
3051
|
+
i.attr("transform", `translate(${l}, ${c})`);
|
|
3052
3052
|
}), T.members.length > 0 || T.methods.length > 0 || M) {
|
|
3053
3053
|
let e = W + G + z + x, n = N.line(U.x, e, U.x + U.width, e + .001, P);
|
|
3054
3054
|
D.insert(() => n).attr("class", `divider${t.look === "neo" && !v ? " neo-line" : ""}`).attr("style", j);
|
|
@@ -3074,12 +3074,12 @@ async function Bt(e, t) {
|
|
|
3074
3074
|
return q.rect(t, e);
|
|
3075
3075
|
}, D;
|
|
3076
3076
|
}
|
|
3077
|
-
|
|
3077
|
+
a(Bt, "classBox");
|
|
3078
3078
|
async function Vt(e, t) {
|
|
3079
|
-
var n, i, a, s
|
|
3080
|
-
let { labelStyles:
|
|
3081
|
-
t.labelStyle =
|
|
3082
|
-
let d = t, f = t, p = "verifyMethod" in t, m = D(t), { themeVariables: h } =
|
|
3079
|
+
var n, r, i, a, s;
|
|
3080
|
+
let { labelStyles: c, nodeStyles: u } = b(t);
|
|
3081
|
+
t.labelStyle = c;
|
|
3082
|
+
let d = t, f = t, p = "verifyMethod" in t, m = D(t), { themeVariables: h } = l(), { borderColorArray: g, requirementEdgeLabelBackground: _ } = h, v = e.insert("g").attr("class", m).attr("id", (n = t.domId) == null ? t.id : n), x;
|
|
3083
3083
|
x = p ? await Ht(v, `<<${d.type}>>`, 0, t.labelStyle) : await Ht(v, "<<Element>>", 0, t.labelStyle);
|
|
3084
3084
|
let S = x, w = await Ht(v, d.name, S, t.labelStyle + "; font-weight: bold;");
|
|
3085
3085
|
if (S += w + 20, p) {
|
|
@@ -3093,7 +3093,7 @@ async function Vt(e, t) {
|
|
|
3093
3093
|
let e = await Ht(v, `${f.type ? `Type: ${f.type}` : ""}`, S, t.labelStyle);
|
|
3094
3094
|
S += e, await Ht(v, `${f.docRef ? `Doc Ref: ${f.docRef}` : ""}`, S, t.labelStyle);
|
|
3095
3095
|
}
|
|
3096
|
-
let T = ((
|
|
3096
|
+
let T = ((r = (i = v.node()) == null ? void 0 : i.getBBox().width) == null ? 200 : r) + 20, O = ((a = (s = v.node()) == null ? void 0 : s.getBBox().height) == null ? 200 : a) + 20, k = -T / 2, A = -O / 2, j = C.svg(v), M = y(t, {});
|
|
3097
3097
|
t.look !== "handDrawn" && (M.roughness = 0, M.fillStyle = "solid");
|
|
3098
3098
|
let N = j.rectangle(k, A, T, O, M), P = v.insert(() => N, ":first-child");
|
|
3099
3099
|
if (P.attr("class", "basic label-container outer-path").attr("style", u), g != null && g.length) {
|
|
@@ -3102,13 +3102,13 @@ async function Vt(e, t) {
|
|
|
3102
3102
|
v.attr("data-color-id", `color-${e % g.length}`);
|
|
3103
3103
|
}
|
|
3104
3104
|
if (v.selectAll(".label").each((e, t, n) => {
|
|
3105
|
-
let
|
|
3106
|
-
if (
|
|
3107
|
-
let e = RegExp(/translate\(([^,]+),([^)]+)\)/).exec(
|
|
3108
|
-
e && (
|
|
3105
|
+
let r = o(n[t]), i = r.attr("transform"), a = 0, s = 0;
|
|
3106
|
+
if (i) {
|
|
3107
|
+
let e = RegExp(/translate\(([^,]+),([^)]+)\)/).exec(i);
|
|
3108
|
+
e && (a = parseFloat(e[1]), s = parseFloat(e[2]));
|
|
3109
3109
|
}
|
|
3110
3110
|
let c = s - O / 2, l = k + 20 / 2;
|
|
3111
|
-
(t === 0 || t === 1) && (l =
|
|
3111
|
+
(t === 0 || t === 1) && (l = a), r.attr("transform", `translate(${l}, ${c + 20})`);
|
|
3112
3112
|
}), S > x + w + 20) {
|
|
3113
3113
|
let e = A + x + w + 20, n;
|
|
3114
3114
|
if (t.look === "neo") {
|
|
@@ -3126,28 +3126,28 @@ async function Vt(e, t) {
|
|
|
3126
3126
|
return q.rect(t, e);
|
|
3127
3127
|
}, u && t.look !== "handDrawn" && (_ || g != null && g.length) && v.selectAll("path").attr("style", u), v;
|
|
3128
3128
|
}
|
|
3129
|
-
|
|
3130
|
-
async function Ht(e,
|
|
3129
|
+
a(Vt, "requirementBox");
|
|
3130
|
+
async function Ht(e, n, i, a = "") {
|
|
3131
3131
|
var s;
|
|
3132
|
-
if (
|
|
3133
|
-
let
|
|
3134
|
-
width:
|
|
3132
|
+
if (n === "") return 0;
|
|
3133
|
+
let u = e.insert("g").attr("class", "label").attr("style", a), d = l(), f = (s = d.htmlLabels) == null ? !0 : s, p = await h(u, c(t(n)), {
|
|
3134
|
+
width: r(n, d) + 50,
|
|
3135
3135
|
classes: "markdown-node-label",
|
|
3136
|
-
useHtmlLabels:
|
|
3137
|
-
style:
|
|
3138
|
-
},
|
|
3139
|
-
if (
|
|
3140
|
-
let e =
|
|
3141
|
-
|
|
3136
|
+
useHtmlLabels: f,
|
|
3137
|
+
style: a
|
|
3138
|
+
}, d), m;
|
|
3139
|
+
if (f) {
|
|
3140
|
+
let e = p.children[0], t = o(p);
|
|
3141
|
+
m = e.getBoundingClientRect(), t.attr("width", m.width), t.attr("height", m.height);
|
|
3142
3142
|
} else {
|
|
3143
|
-
let e =
|
|
3144
|
-
for (let t of e.children)
|
|
3145
|
-
|
|
3143
|
+
let e = p.children[0];
|
|
3144
|
+
for (let t of e.children) a && t.setAttribute("style", a);
|
|
3145
|
+
m = p.getBBox(), m.height += 6;
|
|
3146
3146
|
}
|
|
3147
|
-
return
|
|
3147
|
+
return u.attr("transform", `translate(${-m.width / 2},${-m.height / 2 + i})`), m.height;
|
|
3148
3148
|
}
|
|
3149
|
-
|
|
3150
|
-
var Ut = /* @__PURE__ */
|
|
3149
|
+
a(Ht, "addText");
|
|
3150
|
+
var Ut = /* @__PURE__ */ a((e) => {
|
|
3151
3151
|
switch (e) {
|
|
3152
3152
|
case "Very High": return "red";
|
|
3153
3153
|
case "High": return "orange";
|
|
@@ -3196,71 +3196,71 @@ async function Wt(e, t, { config: n }) {
|
|
|
3196
3196
|
return q.rect(t, e);
|
|
3197
3197
|
}, c;
|
|
3198
3198
|
}
|
|
3199
|
-
|
|
3200
|
-
async function Gt(e,
|
|
3201
|
-
let { labelStyles: r, nodeStyles:
|
|
3202
|
-
|
|
3203
|
-
let { shapeSvg:
|
|
3204
|
-
|
|
3199
|
+
a(Wt, "kanbanItem");
|
|
3200
|
+
async function Gt(e, t) {
|
|
3201
|
+
let { labelStyles: r, nodeStyles: a } = b(t);
|
|
3202
|
+
t.labelStyle = r;
|
|
3203
|
+
let { shapeSvg: o, bbox: s, halfPadding: c, label: l } = await w(e, t, D(t)), u = s.width + 10 * c, d = s.height + 8 * c, f = .15 * u, { cssStyles: p } = t, m = s.width + 20, h = s.height + 20, g = Math.max(u, m), _ = Math.max(d, h);
|
|
3204
|
+
l.attr("transform", `translate(${-s.width / 2}, ${-s.height / 2})`);
|
|
3205
3205
|
let v, x = `M0 0
|
|
3206
|
-
a${
|
|
3207
|
-
a${
|
|
3208
|
-
a${
|
|
3209
|
-
a${
|
|
3206
|
+
a${f},${f} 1 0,0 ${g * .25},${-1 * _ * .1}
|
|
3207
|
+
a${f},${f} 1 0,0 ${g * .25},0
|
|
3208
|
+
a${f},${f} 1 0,0 ${g * .25},0
|
|
3209
|
+
a${f},${f} 1 0,0 ${g * .25},${_ * .1}
|
|
3210
3210
|
|
|
3211
|
-
a${
|
|
3212
|
-
a${
|
|
3213
|
-
a${
|
|
3211
|
+
a${f},${f} 1 0,0 ${g * .15},${_ * .33}
|
|
3212
|
+
a${f * .8},${f * .8} 1 0,0 0,${_ * .34}
|
|
3213
|
+
a${f},${f} 1 0,0 ${-1 * g * .15},${_ * .33}
|
|
3214
3214
|
|
|
3215
|
-
a${
|
|
3216
|
-
a${
|
|
3217
|
-
a${
|
|
3218
|
-
a${
|
|
3215
|
+
a${f},${f} 1 0,0 ${-1 * g * .25},${_ * .15}
|
|
3216
|
+
a${f},${f} 1 0,0 ${-1 * g * .25},0
|
|
3217
|
+
a${f},${f} 1 0,0 ${-1 * g * .25},0
|
|
3218
|
+
a${f},${f} 1 0,0 ${-1 * g * .25},${-1 * _ * .15}
|
|
3219
3219
|
|
|
3220
|
-
a${
|
|
3221
|
-
a${
|
|
3222
|
-
a${
|
|
3220
|
+
a${f},${f} 1 0,0 ${-1 * g * .1},${-1 * _ * .33}
|
|
3221
|
+
a${f * .8},${f * .8} 1 0,0 0,${-1 * _ * .34}
|
|
3222
|
+
a${f},${f} 1 0,0 ${g * .1},${-1 * _ * .33}
|
|
3223
3223
|
H0 V0 Z`;
|
|
3224
|
-
if (
|
|
3225
|
-
let e = C.svg(
|
|
3226
|
-
v =
|
|
3227
|
-
} else v =
|
|
3228
|
-
return v.attr("transform", `translate(${-g / 2}, ${-_ / 2})`), E(
|
|
3224
|
+
if (t.look === "handDrawn") {
|
|
3225
|
+
let e = C.svg(o), r = y(t, {}), i = e.path(x, r);
|
|
3226
|
+
v = o.insert(() => i, ":first-child"), v.attr("class", "basic label-container").attr("style", n(p));
|
|
3227
|
+
} else v = o.insert("path", ":first-child").attr("class", "basic label-container").attr("style", a).attr("d", x);
|
|
3228
|
+
return v.attr("transform", `translate(${-g / 2}, ${-_ / 2})`), E(t, v), t.calcIntersect = function(e, t) {
|
|
3229
3229
|
return q.rect(e, t);
|
|
3230
|
-
},
|
|
3231
|
-
return
|
|
3232
|
-
},
|
|
3230
|
+
}, t.intersect = function(e) {
|
|
3231
|
+
return i.info("Bang intersect", t, e), q.rect(t, e);
|
|
3232
|
+
}, o;
|
|
3233
3233
|
}
|
|
3234
|
-
|
|
3235
|
-
async function Kt(e,
|
|
3236
|
-
let { labelStyles: r, nodeStyles:
|
|
3237
|
-
|
|
3238
|
-
let { shapeSvg:
|
|
3239
|
-
a${
|
|
3240
|
-
a${m},${m} 1 0,1 ${
|
|
3241
|
-
a${
|
|
3234
|
+
a(Gt, "bang");
|
|
3235
|
+
async function Kt(e, t) {
|
|
3236
|
+
let { labelStyles: r, nodeStyles: a } = b(t);
|
|
3237
|
+
t.labelStyle = r;
|
|
3238
|
+
let { shapeSvg: o, bbox: s, halfPadding: c, label: l } = await w(e, t, D(t)), u = s.width + 2 * c, d = s.height + 2 * c, f = .15 * u, p = .25 * u, m = .35 * u, h = .2 * u, { cssStyles: g } = t, _, v = `M0 0
|
|
3239
|
+
a${f},${f} 0 0,1 ${u * .25},${-1 * u * .1}
|
|
3240
|
+
a${m},${m} 1 0,1 ${u * .4},${-1 * u * .1}
|
|
3241
|
+
a${p},${p} 1 0,1 ${u * .35},${u * .2}
|
|
3242
3242
|
|
|
3243
|
-
a${
|
|
3244
|
-
a${h},${h} 1 0,1 ${-1 *
|
|
3243
|
+
a${f},${f} 1 0,1 ${u * .15},${d * .35}
|
|
3244
|
+
a${h},${h} 1 0,1 ${-1 * u * .15},${d * .65}
|
|
3245
3245
|
|
|
3246
|
-
a${
|
|
3247
|
-
a${m},${m} 1 0,1 ${-1 *
|
|
3248
|
-
a${
|
|
3246
|
+
a${p},${f} 1 0,1 ${-1 * u * .25},${u * .15}
|
|
3247
|
+
a${m},${m} 1 0,1 ${-1 * u * .5},0
|
|
3248
|
+
a${f},${f} 1 0,1 ${-1 * u * .25},${-1 * u * .15}
|
|
3249
3249
|
|
|
3250
|
-
a${
|
|
3251
|
-
a${h},${h} 1 0,1 ${
|
|
3250
|
+
a${f},${f} 1 0,1 ${-1 * u * .1},${-1 * d * .35}
|
|
3251
|
+
a${h},${h} 1 0,1 ${u * .1},${-1 * d * .65}
|
|
3252
3252
|
H0 V0 Z`;
|
|
3253
|
-
if (
|
|
3254
|
-
let e = C.svg(
|
|
3255
|
-
_ =
|
|
3256
|
-
} else _ =
|
|
3257
|
-
return
|
|
3253
|
+
if (t.look === "handDrawn") {
|
|
3254
|
+
let e = C.svg(o), r = y(t, {}), i = e.path(v, r);
|
|
3255
|
+
_ = o.insert(() => i, ":first-child"), _.attr("class", "basic label-container").attr("style", n(g));
|
|
3256
|
+
} else _ = o.insert("path", ":first-child").attr("class", "basic label-container").attr("style", a).attr("d", v);
|
|
3257
|
+
return l.attr("transform", `translate(${-s.width / 2}, ${-s.height / 2})`), _.attr("transform", `translate(${-u / 2}, ${-d / 2})`), E(t, _), t.calcIntersect = function(e, t) {
|
|
3258
3258
|
return q.rect(e, t);
|
|
3259
|
-
},
|
|
3260
|
-
return
|
|
3261
|
-
},
|
|
3259
|
+
}, t.intersect = function(e) {
|
|
3260
|
+
return i.info("Cloud intersect", t, e), q.rect(t, e);
|
|
3261
|
+
}, o;
|
|
3262
3262
|
}
|
|
3263
|
-
|
|
3263
|
+
a(Kt, "cloud");
|
|
3264
3264
|
async function qt(e, t) {
|
|
3265
3265
|
let { labelStyles: n, nodeStyles: r } = b(t);
|
|
3266
3266
|
t.labelStyle = n;
|
|
@@ -3293,12 +3293,12 @@ async function qt(e, t) {
|
|
|
3293
3293
|
return q.rect(t, e);
|
|
3294
3294
|
}, i;
|
|
3295
3295
|
}
|
|
3296
|
-
|
|
3296
|
+
a(qt, "defaultMindmapNode");
|
|
3297
3297
|
async function Jt(e, t) {
|
|
3298
3298
|
var n;
|
|
3299
3299
|
return le(e, t, { padding: (n = t.padding) == null ? 0 : n });
|
|
3300
3300
|
}
|
|
3301
|
-
|
|
3301
|
+
a(Jt, "mindmapCircle");
|
|
3302
3302
|
var Yt = [
|
|
3303
3303
|
{
|
|
3304
3304
|
semanticName: "Process",
|
|
@@ -3728,7 +3728,7 @@ var Yt = [
|
|
|
3728
3728
|
aliases: ["lined-document"],
|
|
3729
3729
|
handler: Xe
|
|
3730
3730
|
}
|
|
3731
|
-
], Xt = (/* @__PURE__ */
|
|
3731
|
+
], Xt = (/* @__PURE__ */ a(() => {
|
|
3732
3732
|
let e = {
|
|
3733
3733
|
state: ut,
|
|
3734
3734
|
choice: ce,
|
|
@@ -3757,30 +3757,30 @@ var Yt = [
|
|
|
3757
3757
|
function Zt(e) {
|
|
3758
3758
|
return e in Xt;
|
|
3759
3759
|
}
|
|
3760
|
-
|
|
3760
|
+
a(Zt, "isValidShape");
|
|
3761
3761
|
var Qt = /* @__PURE__ */ new Map();
|
|
3762
|
-
async function $t(e, t,
|
|
3763
|
-
let
|
|
3762
|
+
async function $t(e, t, r) {
|
|
3763
|
+
let i, a;
|
|
3764
3764
|
t.shape === "rect" && (t.rx && t.ry ? t.shape = "roundedRect" : t.shape = "squareRect");
|
|
3765
|
-
let
|
|
3766
|
-
if (!
|
|
3765
|
+
let o = t.shape ? Xt[t.shape] : void 0;
|
|
3766
|
+
if (!o) throw Error(`No such shape: ${t.shape}. Please check your syntax.`);
|
|
3767
3767
|
if (t.link) {
|
|
3768
|
-
var
|
|
3769
|
-
let
|
|
3770
|
-
|
|
3771
|
-
} else
|
|
3772
|
-
return
|
|
3773
|
-
}
|
|
3774
|
-
|
|
3775
|
-
var en = /* @__PURE__ */
|
|
3768
|
+
var s;
|
|
3769
|
+
let n;
|
|
3770
|
+
r.config.securityLevel === "sandbox" ? n = "_top" : t.linkTarget && (n = t.linkTarget || "_blank"), i = e.insert("svg:a").attr("xlink:href", t.link).attr("target", (s = n) == null ? null : s), a = await o(i, t, r);
|
|
3771
|
+
} else a = await o(e, t, r), i = a;
|
|
3772
|
+
return i.attr("data-look", n(t.look)), t.tooltip && a.attr("title", t.tooltip), Qt.set(t.id, i), t.haveCallback && i.attr("class", i.attr("class") + " clickable"), i;
|
|
3773
|
+
}
|
|
3774
|
+
a($t, "insertNode");
|
|
3775
|
+
var en = /* @__PURE__ */ a((e, t) => {
|
|
3776
3776
|
Qt.set(t.id, e);
|
|
3777
|
-
}, "setNodeElem"), tn = /* @__PURE__ */
|
|
3777
|
+
}, "setNodeElem"), tn = /* @__PURE__ */ a(() => {
|
|
3778
3778
|
Qt.clear();
|
|
3779
|
-
}, "clear"), nn = /* @__PURE__ */
|
|
3780
|
-
let
|
|
3781
|
-
|
|
3782
|
-
let
|
|
3783
|
-
return e.clusterNode ?
|
|
3779
|
+
}, "clear"), nn = /* @__PURE__ */ a((e) => {
|
|
3780
|
+
let t = Qt.get(e.id);
|
|
3781
|
+
i.trace("Transforming node", e.diff, e, "translate(" + (e.x - e.width / 2 - 5) + ", " + e.width / 2 + ")");
|
|
3782
|
+
let n = e.diff || 0;
|
|
3783
|
+
return e.clusterNode ? t.attr("transform", "translate(" + (e.x + n - e.width / 2) + ", " + (e.y - e.height / 2 - 8) + ")") : t.attr("transform", "translate(" + e.x + ", " + e.y + ")"), n;
|
|
3784
3784
|
}, "positionNode");
|
|
3785
3785
|
//#endregion
|
|
3786
3786
|
export { $t as a, nn as c, R as i, en as l, tn as n, Zt as o, N as r, w as s, z as t, E as u };
|