@sme.up/ketchup2 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arc-CqG9Hxdf.cjs +1 -0
- package/dist/arc-Klgb378K.js +80 -0
- package/dist/architecture-YZFGNWBL-BRqToLcm.js +3 -0
- package/dist/architecture-YZFGNWBL-BTOWQWD9.cjs +1 -0
- package/dist/architectureDiagram-Q4EWVU46-JSjagcXX.cjs +36 -0
- package/dist/architectureDiagram-Q4EWVU46-u2vgZv3N.js +4057 -0
- package/dist/array-D8NZ46Ht.js +6 -0
- package/dist/array-Dxz0O8Q3.cjs +1 -0
- package/dist/assets/imageListAssets.d.ts +3 -1
- package/dist/assets/imageListAssets.d.ts.map +1 -1
- package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
- package/dist/basic-components/list/list-types.d.ts +0 -1
- package/dist/basic-components/list/list-types.d.ts.map +1 -1
- package/dist/basic-components/list/list.d.ts.map +1 -1
- package/dist/basic-components/notification/notification.assets.d.ts.map +1 -1
- package/dist/basic-components/select/select.d.ts.map +1 -1
- package/dist/basic-components/text-editor/text-editor-utils.d.ts.map +1 -1
- package/dist/blockDiagram-DXYQGD6D-BpB6_kTP.js +3033 -0
- package/dist/blockDiagram-DXYQGD6D-DlcDXSwH.cjs +132 -0
- package/dist/c4Diagram-AHTNJAMY-B5Z8nO1s.js +2961 -0
- package/dist/c4Diagram-AHTNJAMY-CX5IjREU.cjs +10 -0
- package/dist/channel-BY9Lkyz7.cjs +1 -0
- package/dist/channel-BqNr2cYO.js +5 -0
- package/dist/chunk-2KRD3SAO-Ca3zDQyj.js +23 -0
- package/dist/chunk-2KRD3SAO-oZrIWZvV.cjs +1 -0
- package/dist/chunk-336JU56O-CuXRn1VH.cjs +1 -0
- package/dist/chunk-336JU56O-xKPgkG3O.js +49 -0
- package/dist/chunk-426QAEUC-Df31vuwu.cjs +1 -0
- package/dist/chunk-426QAEUC-JjFVHKYG.js +9 -0
- package/dist/chunk-4BX2VUAB-BW54-JWg.js +8 -0
- package/dist/chunk-4BX2VUAB-Qba52sxc.cjs +1 -0
- package/dist/chunk-4TB4RGXK-CKyHmNcP.js +3253 -0
- package/dist/chunk-4TB4RGXK-DdKJIFS5.cjs +206 -0
- package/dist/chunk-55IACEB6-Bu3k0Yz5.js +8 -0
- package/dist/chunk-55IACEB6-DPatBzu7.cjs +1 -0
- package/dist/chunk-5FUZZQ4R-2kdZJWq2.js +3638 -0
- package/dist/chunk-5FUZZQ4R-D_vnCbAb.cjs +62 -0
- package/dist/chunk-5PVQY5BW-C5U7sJAA.js +1299 -0
- package/dist/chunk-5PVQY5BW-CfQDYQZt.cjs +2 -0
- package/dist/chunk-67CJDMHE-2Qg7i1xJ.cjs +1 -0
- package/dist/chunk-67CJDMHE-YMBkJcAO.js +23 -0
- package/dist/chunk-7N4EOEYR-C-GuhRgW.js +35 -0
- package/dist/chunk-7N4EOEYR-jNBQwvHx.cjs +1 -0
- package/dist/chunk-AA7GKIK3-B_ZB6dou.js +30 -0
- package/dist/chunk-AA7GKIK3-dqnTmnvO.cjs +1 -0
- package/dist/chunk-BSJP7CBP-CFzYPvgr.cjs +1 -0
- package/dist/chunk-BSJP7CBP-oNTXVRA7.js +82 -0
- package/dist/chunk-CIAEETIT-ClHUj0Su.cjs +1 -0
- package/dist/chunk-CIAEETIT-XlxsAz-4.js +23 -0
- package/dist/chunk-D-IZpNpi.cjs +1 -0
- package/dist/chunk-EDXVE4YY-BZsJORf8.cjs +1 -0
- package/dist/chunk-EDXVE4YY-Bzf4FU3i.js +25 -0
- package/dist/chunk-ENJZ2VHE-BluGQPyl.js +560 -0
- package/dist/chunk-ENJZ2VHE-CwgVASaU.cjs +10 -0
- package/dist/{chunk-FMBD7UC4-C1wIcaJH.js → chunk-FMBD7UC4-CS9_r76V.cjs} +2 -6
- package/dist/chunk-FMBD7UC4-RRSc9jqt.js +5 -0
- package/dist/chunk-FOC6F5B3-DcZs851j.cjs +1 -0
- package/dist/chunk-FOC6F5B3-E9n6-juB.js +23 -0
- package/dist/chunk-ICPOFSXX-CoaJw-IT.cjs +122 -0
- package/dist/chunk-ICPOFSXX-Sn6LWD0k.js +3316 -0
- package/dist/chunk-K5T4RW27-BzDQkjC7.cjs +94 -0
- package/dist/chunk-K5T4RW27-DY7TOEqa.js +16070 -0
- package/dist/chunk-KGLVRYIC-5OJpfQCj.js +23 -0
- package/dist/chunk-KGLVRYIC-DnbIkai8.cjs +1 -0
- package/dist/chunk-LIHQZDEY-59I4-LWb.js +64 -0
- package/dist/chunk-LIHQZDEY-CrogR3nT.cjs +1 -0
- package/dist/chunk-ORNJ4GCN-CcrEtiCn.cjs +1 -0
- package/dist/chunk-ORNJ4GCN-CwkOSFbS.js +31 -0
- package/dist/chunk-OYMX7WX6-BCT45RPu.cjs +231 -0
- package/dist/chunk-OYMX7WX6-BQADsxYi.js +2014 -0
- package/dist/chunk-QZHKN3VN-Bx8I6l3c.js +15 -0
- package/dist/chunk-QZHKN3VN-CSMKL2rB.cjs +1 -0
- package/dist/chunk-U2HBQHQK-BZ3YFMXB.js +1879 -0
- package/dist/chunk-U2HBQHQK-D0AoQWxK.cjs +70 -0
- package/dist/chunk-WQLz0Won.js +20 -0
- package/dist/chunk-X2U36JSP-CY7mJR8m.js +67 -0
- package/dist/chunk-X2U36JSP-D1RYKjVc.cjs +1 -0
- package/dist/chunk-XPW4576I-BcWkx-AL.js +1146 -0
- package/dist/chunk-XPW4576I-D8Pp6a3j.cjs +32 -0
- package/dist/chunk-YZCP3GAM-9K9WNdyN.js +60 -0
- package/dist/chunk-YZCP3GAM-BmaAafMm.cjs +1 -0
- package/dist/chunk-ZZ45TVLE-AQQsnXy4.cjs +1 -0
- package/dist/chunk-ZZ45TVLE-CIYrdg-O.js +32 -0
- package/dist/classDiagram-6PBFFD2Q-B6betnLH.cjs +1 -0
- package/dist/classDiagram-6PBFFD2Q-XGxl_AeB.js +29 -0
- package/dist/classDiagram-v2-HSJHXN6E-CwayYG4G.js +29 -0
- package/dist/classDiagram-v2-HSJHXN6E-Dda8WDvn.cjs +1 -0
- package/dist/clone-Dn__H8fX.js +8 -0
- package/dist/clone-lShkT11Q.cjs +1 -0
- package/dist/components/image-list/components/image-list-command-panel.d.ts +15 -0
- package/dist/components/image-list/components/image-list-command-panel.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-command-trigger.d.ts +16 -0
- package/dist/components/image-list/components/image-list-command-trigger.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-filter-picker.d.ts +14 -0
- package/dist/components/image-list/components/image-list-filter-picker.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-h-strip.d.ts.map +1 -1
- package/dist/components/image-list/components/image-list-json-viewer.d.ts +11 -0
- package/dist/components/image-list/components/image-list-json-viewer.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-menu.d.ts.map +1 -1
- package/dist/components/image-list/components/image-list-navigation-picker.d.ts +6 -2
- package/dist/components/image-list/components/image-list-navigation-picker.d.ts.map +1 -1
- package/dist/components/image-list/components/image-list-sort-picker.d.ts +14 -0
- package/dist/components/image-list/components/image-list-sort-picker.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-v-strip.d.ts.map +1 -1
- package/dist/components/image-list/components/items/image-list-card-item.d.ts +5 -0
- package/dist/components/image-list/components/items/image-list-card-item.d.ts.map +1 -0
- package/dist/components/image-list/components/items/image-list-folder-item.d.ts.map +1 -1
- package/dist/components/image-list/components/items/image-list-item.d.ts.map +1 -1
- package/dist/components/image-list/components/menu-nav-item.d.ts.map +1 -1
- package/dist/components/image-list/components/navigation-modes/image-list-catalog.d.ts.map +1 -1
- package/dist/components/image-list/components/navigation-modes/image-list-explorer.d.ts.map +1 -1
- package/dist/components/image-list/components/navigation-modes/image-list-tree.d.ts.map +1 -1
- package/dist/components/image-list/components/strip-item.d.ts.map +1 -1
- package/dist/components/image-list/hooks/useCommandPickers.d.ts +13 -0
- package/dist/components/image-list/hooks/useCommandPickers.d.ts.map +1 -0
- package/dist/components/image-list/image-list-column-utils.d.ts +9 -0
- package/dist/components/image-list/image-list-column-utils.d.ts.map +1 -0
- package/dist/components/image-list/image-list-context.d.ts +5 -2
- package/dist/components/image-list/image-list-context.d.ts.map +1 -1
- package/dist/components/image-list/image-list-debug-utils.d.ts +13 -0
- package/dist/components/image-list/image-list-debug-utils.d.ts.map +1 -0
- package/dist/components/image-list/image-list-filter-context.d.ts +9 -0
- package/dist/components/image-list/image-list-filter-context.d.ts.map +1 -0
- package/dist/components/image-list/image-list-filter-utils.d.ts +12 -0
- package/dist/components/image-list/image-list-filter-utils.d.ts.map +1 -0
- package/dist/components/image-list/image-list-sort-context.d.ts +9 -0
- package/dist/components/image-list/image-list-sort-context.d.ts.map +1 -0
- package/dist/components/image-list/image-list-sort-utils.d.ts +13 -0
- package/dist/components/image-list/image-list-sort-utils.d.ts.map +1 -0
- package/dist/components/image-list/image-list-state-context.d.ts +5 -0
- package/dist/components/image-list/image-list-state-context.d.ts.map +1 -0
- package/dist/components/image-list/image-list-types.d.ts +45 -2
- package/dist/components/image-list/image-list-types.d.ts.map +1 -1
- package/dist/components/image-list/image-list-utils.d.ts +24 -1
- package/dist/components/image-list/image-list-utils.d.ts.map +1 -1
- package/dist/components/image-list/image-list.d.ts +1 -1
- package/dist/components/image-list/image-list.d.ts.map +1 -1
- package/dist/cose-bilkent-S5V4N54A-B30Rh9DR.js +2250 -0
- package/dist/cose-bilkent-S5V4N54A-Bhdp-wcb.cjs +1 -0
- package/dist/cytoscape.esm-CPjF_mSK.js +18100 -0
- package/dist/cytoscape.esm-CrBwLFXE.cjs +321 -0
- package/dist/dagre-BjnWDdkw.cjs +1 -0
- package/dist/dagre-DVLnxd7n.js +1606 -0
- package/dist/dagre-KV5264BT-BjqayRYC.js +293 -0
- package/dist/dagre-KV5264BT-BvInGAUC.cjs +4 -0
- package/dist/defaultLocale-Dcyuaxxg.js +201 -0
- package/dist/defaultLocale-DtzyZW63.cjs +1 -0
- package/dist/diagram-5BDNPKRD-Bk7depC0.js +101 -0
- package/dist/diagram-5BDNPKRD-D6EXksHo.cjs +10 -0
- package/dist/diagram-G4DWMVQ6-BkQnbCLv.js +524 -0
- package/dist/diagram-G4DWMVQ6-CJASbR70.cjs +24 -0
- package/dist/diagram-MMDJMWI5-DEt7jQx9.cjs +43 -0
- package/dist/diagram-MMDJMWI5-DUUVPi55.js +213 -0
- package/dist/diagram-TYMM5635-5auoAFCi.cjs +24 -0
- package/dist/diagram-TYMM5635-Cpj8wfoJ.js +133 -0
- package/dist/dist-BgvMZbfo.cjs +1 -0
- package/dist/dist-DL30VIBI.js +60 -0
- package/dist/erDiagram-SMLLAGMA-DVUT6TBy.cjs +85 -0
- package/dist/erDiagram-SMLLAGMA-D_ByPk0C.js +1700 -0
- package/dist/flatten-BE1bWL-7.js +40 -0
- package/dist/flatten-DxvYSoR8.cjs +1 -0
- package/dist/flowDiagram-DWJPFMVM-BWrkDnqc.js +4145 -0
- package/dist/flowDiagram-DWJPFMVM-BbK42NaF.cjs +162 -0
- package/dist/functional-components/action/action-types.d.ts +6 -1
- package/dist/functional-components/action/action-types.d.ts.map +1 -1
- package/dist/functional-components/action/action.d.ts.map +1 -1
- package/dist/ganttDiagram-T4ZO3ILL-DUi8jF9H.cjs +292 -0
- package/dist/ganttDiagram-T4ZO3ILL-LuaYkUvj.js +3077 -0
- package/dist/gitGraph-7Q5UKJZL-DZea3ltD.cjs +1 -0
- package/dist/gitGraph-7Q5UKJZL-sjlqDwJ_.js +3 -0
- package/dist/gitGraphDiagram-UUTBAWPF-D-tMWUQ1.cjs +106 -0
- package/dist/gitGraphDiagram-UUTBAWPF-DKkENwcV.js +728 -0
- package/dist/graphlib-Cpifseqb.js +373 -0
- package/dist/graphlib-HdfvGLpV.cjs +1 -0
- package/dist/hooks/useClickOutside.d.ts.map +1 -1
- package/dist/identity-KQSjemTb.cjs +1 -0
- package/dist/identity-g0dsMjx7.js +393 -0
- package/dist/info-OMHHGYJF-Bk0VWVNW.js +3 -0
- package/dist/info-OMHHGYJF-C8QtwF0k.cjs +1 -0
- package/dist/infoDiagram-42DDH7IO-CH5xHj8H.cjs +2 -0
- package/dist/infoDiagram-42DDH7IO-CLkQPFe0.js +19 -0
- package/dist/init-B2MubQrj.cjs +1 -0
- package/dist/init-BO60vQHJ.js +15 -0
- package/dist/isEmpty-CA3kJuev.cjs +1 -0
- package/dist/isEmpty-RwX-oIQS.js +35 -0
- package/dist/ishikawaDiagram-UXIWVN3A-Cl3Ivm8H.cjs +70 -0
- package/dist/ishikawaDiagram-UXIWVN3A-DqbVPChK.js +718 -0
- package/dist/journeyDiagram-VCZTEJTY-DudduR0c.js +883 -0
- package/dist/journeyDiagram-VCZTEJTY-XRc0J8gM.cjs +139 -0
- package/dist/kanban-definition-6JOO6SKY-Br87atRc.cjs +89 -0
- package/dist/kanban-definition-6JOO6SKY-DzEqE64J.js +973 -0
- package/dist/katex-Du5WiYIy.js +22000 -0
- package/dist/katex-SAH56fvc.cjs +257 -0
- package/dist/ketchup2.cjs.js +190 -1
- package/dist/ketchup2.css +2 -1
- package/dist/ketchup2.es.js +132419 -52
- package/dist/line-BbHmiwbs.cjs +1 -0
- package/dist/line-JyRBGWft.js +34 -0
- package/dist/linear-BsPvNLJv.js +289 -0
- package/dist/linear-CxHa1DsM.cjs +1 -0
- package/dist/mermaid-parser.core-CERDf-UG.js +69 -0
- package/dist/mermaid-parser.core-DHpvGOZR.cjs +3 -0
- package/dist/mindmap-definition-QFDTVHPH-BCq8zmLt.cjs +96 -0
- package/dist/mindmap-definition-QFDTVHPH-NGjPQ5SM.js +978 -0
- package/dist/ordinal-C-VoL0XF.js +65 -0
- package/dist/ordinal-Civr0hZL.cjs +1 -0
- package/dist/packet-4T2RLAQJ-X0BMsNFj.js +3 -0
- package/dist/packet-4T2RLAQJ-lvmQnXPI.cjs +1 -0
- package/dist/path-Civic7PQ.cjs +1 -0
- package/dist/path-CvfwEr8y.js +85 -0
- package/dist/pie-ZZUOXDRM-CJ_fU5k1.js +3 -0
- package/dist/pie-ZZUOXDRM-Dp4APKqR.cjs +1 -0
- package/dist/pieDiagram-DEJITSTG-CK4xy0PS.cjs +30 -0
- package/dist/pieDiagram-DEJITSTG-DTeyzHmB.js +165 -0
- package/dist/quadrantDiagram-34T5L4WZ-CCcJIf91.js +1974 -0
- package/dist/quadrantDiagram-34T5L4WZ-D-_iiK79.cjs +7 -0
- package/dist/radar-PYXPWWZC-BHWJy_E1.cjs +1 -0
- package/dist/radar-PYXPWWZC-DgZIW9Ah.js +3 -0
- package/dist/reduce-B7WW9rkU.cjs +1 -0
- package/dist/reduce-DNnkcf3M.js +532 -0
- package/dist/requirementDiagram-MS252O5E-BdOanuYe.js +2221 -0
- package/dist/requirementDiagram-MS252O5E-EfY029Xj.cjs +84 -0
- package/dist/rough.esm-1mqTSjCt.js +1352 -0
- package/dist/rough.esm-BLKo1fIQ.cjs +1 -0
- package/dist/sankeyDiagram-XADWPNL6-3jlM2UcU.cjs +10 -0
- package/dist/sankeyDiagram-XADWPNL6-3wviN_U4.js +920 -0
- package/dist/sequenceDiagram-FGHM5R23-DC8SjhFN.js +4157 -0
- package/dist/sequenceDiagram-FGHM5R23-lK1G3QLN.cjs +157 -0
- package/dist/src-BQiFKP24.js +2146 -0
- package/dist/src-DFxq-N5I.cjs +1 -0
- package/dist/stateDiagram-FHFEXIEX-DnkzFphf.js +217 -0
- package/dist/stateDiagram-FHFEXIEX-DsQigFuR.cjs +1 -0
- package/dist/stateDiagram-v2-QKLJ7IA2-2v8JiIJr.js +27 -0
- package/dist/stateDiagram-v2-QKLJ7IA2-UKKfWPoT.cjs +1 -0
- package/dist/timeline-definition-GMOUNBTQ-CBnYBWN0.js +1068 -0
- package/dist/timeline-definition-GMOUNBTQ-DWpngnE4.cjs +120 -0
- package/dist/treeView-SZITEDCU-CT5vX0q9.cjs +1 -0
- package/dist/treeView-SZITEDCU-Df3xzFtO.js +3 -0
- package/dist/treemap-W4RFUUIX-Bk_jVZ7D.cjs +1 -0
- package/dist/treemap-W4RFUUIX-ClUtdSdn.js +3 -0
- package/dist/utils/translation.d.ts.map +1 -1
- package/dist/v4-6yr83DbP.cjs +1 -0
- package/dist/v4-BR71w5_q.js +33 -0
- package/dist/vennDiagram-DHZGUBPP-D-kj-sVU.cjs +34 -0
- package/dist/vennDiagram-DHZGUBPP-M-kkEkXj.js +1858 -0
- package/dist/wardley-RL74JXVD-BtHQbnUy.js +3 -0
- package/dist/wardley-RL74JXVD-y8RO5Iqv.cjs +1 -0
- package/dist/wardleyDiagram-NUSXRM2D-CUX1SYhw.js +578 -0
- package/dist/wardleyDiagram-NUSXRM2D-thoOuA_D.cjs +20 -0
- package/dist/xychartDiagram-5P7HB3ND-1cXRZ1bi.js +2044 -0
- package/dist/xychartDiagram-5P7HB3ND-BF2WmJ4-.cjs +7 -0
- package/package.json +31 -31
- package/dist/_basePickBy-CPekwY_Z.js +0 -151
- package/dist/_basePickBy-DDhgLyLp.cjs +0 -1
- package/dist/_baseUniq-CAhfZr5S.js +0 -614
- package/dist/_baseUniq-bLb2QO_4.cjs +0 -1
- package/dist/arc-CnmUepZA.cjs +0 -1
- package/dist/arc-Md6Ds0JZ.js +0 -83
- package/dist/architecture-7HQA4BMR-DLImbuCr.js +0 -6
- package/dist/architecture-7HQA4BMR-zD1jCFXs.cjs +0 -1
- package/dist/architectureDiagram-VXUJARFQ-BkTy7RJA.js +0 -4661
- package/dist/architectureDiagram-VXUJARFQ-Vl-ya9R6.cjs +0 -36
- package/dist/blockDiagram-VD42YOAC-C9AJNM79.js +0 -2256
- package/dist/blockDiagram-VD42YOAC-D_EmYywD.cjs +0 -122
- package/dist/c4Diagram-YG6GDRKO-BfwBYulK.cjs +0 -10
- package/dist/c4Diagram-YG6GDRKO-YW-l-SYp.js +0 -1580
- package/dist/channel-BGeX_R6w.cjs +0 -1
- package/dist/channel-lqmaHMPZ.js +0 -5
- package/dist/chunk-4BX2VUAB-C6nahV0u.cjs +0 -1
- package/dist/chunk-4BX2VUAB-UMbIiF-V.js +0 -8
- package/dist/chunk-55IACEB6-CH_wWg2p.js +0 -8
- package/dist/chunk-55IACEB6-Cxt8uWHb.cjs +0 -1
- package/dist/chunk-B4BG7PRW-CTNZzNh0.js +0 -1375
- package/dist/chunk-B4BG7PRW-ekpXKNa3.cjs +0 -165
- package/dist/chunk-DI55MBZ5-BrLh6Fue.js +0 -1370
- package/dist/chunk-DI55MBZ5-TYqUGYGr.cjs +0 -220
- package/dist/chunk-FMBD7UC4-D0Nmh8EL.cjs +0 -15
- package/dist/chunk-QN33PNHL-B91UelWj.js +0 -19
- package/dist/chunk-QN33PNHL-KGNgU1-8.cjs +0 -1
- package/dist/chunk-QZHKN3VN-IV7jnz-R.js +0 -15
- package/dist/chunk-QZHKN3VN-ajuovO9B.cjs +0 -1
- package/dist/chunk-TZMSLE5B-Bkf7U79o.cjs +0 -1
- package/dist/chunk-TZMSLE5B-DArsm2Pn.js +0 -64
- package/dist/classDiagram-2ON5EDUG-C0_Gqd5k.js +0 -16
- package/dist/classDiagram-2ON5EDUG-Cnous8-m.cjs +0 -1
- package/dist/classDiagram-v2-WZHVMYZB-C0_Gqd5k.js +0 -16
- package/dist/classDiagram-v2-WZHVMYZB-Cnous8-m.cjs +0 -1
- package/dist/clone-B_MxWhab.js +0 -8
- package/dist/clone-D6gFD6F-.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-DHZ_jZYH.js +0 -2608
- package/dist/cose-bilkent-S5V4N54A-Da7jSuau.cjs +0 -1
- package/dist/cytoscape.esm-CNUX3VTg.cjs +0 -321
- package/dist/cytoscape.esm-Cvf3sx9F.js +0 -18704
- package/dist/dagre-6UL2VRFP-CI2ww-SU.js +0 -444
- package/dist/dagre-6UL2VRFP-qOR4yAIQ.cjs +0 -4
- package/dist/defaultLocale-D7EN2tov.js +0 -171
- package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
- package/dist/diagram-PSM6KHXK-1g8345m3.js +0 -531
- package/dist/diagram-PSM6KHXK-DHWL3g5V.cjs +0 -24
- package/dist/diagram-QEK2KX5R-B-VP4dVY.js +0 -217
- package/dist/diagram-QEK2KX5R-DDWbMmAv.cjs +0 -43
- package/dist/diagram-S2PKOQOG-BbSGqLET.js +0 -142
- package/dist/diagram-S2PKOQOG-Djw9RGNh.cjs +0 -24
- package/dist/erDiagram-Q2GNP2WA-CxY1P4hJ.js +0 -841
- package/dist/erDiagram-Q2GNP2WA-Pw9i-eBN.cjs +0 -60
- package/dist/flowDiagram-NV44I4VS-BOr3T0H8.js +0 -1620
- package/dist/flowDiagram-NV44I4VS-D9VKU1cV.cjs +0 -162
- package/dist/ganttDiagram-JELNMOA3-B4T6J11z.js +0 -2670
- package/dist/ganttDiagram-JELNMOA3-C4Y4VT0h.cjs +0 -267
- package/dist/gitGraph-G5XIXVHT-C5QaeLIs.cjs +0 -1
- package/dist/gitGraph-G5XIXVHT-bOZ2ppp1.js +0 -6
- package/dist/gitGraphDiagram-V2S2FVAM-CteUW9ML.js +0 -699
- package/dist/gitGraphDiagram-V2S2FVAM-D_v6ae_z.cjs +0 -65
- package/dist/graph-BBPk5jyk.cjs +0 -1
- package/dist/graph-h6vsxKyr.js +0 -247
- package/dist/index-CYQM-t1d.cjs +0 -390
- package/dist/index-FiV1b00w.js +0 -133122
- package/dist/info-VBDWY6EO-BEIYBsnB.cjs +0 -1
- package/dist/info-VBDWY6EO-BQAW_660.js +0 -6
- package/dist/infoDiagram-HS3SLOUP-DMalb3kC.js +0 -24
- package/dist/infoDiagram-HS3SLOUP-Tepm6ygN.cjs +0 -2
- package/dist/init-CHZsXQcr.cjs +0 -1
- package/dist/init-DjUOC4st.js +0 -16
- package/dist/journeyDiagram-XKPGCS4Q-CzePcKne.cjs +0 -139
- package/dist/journeyDiagram-XKPGCS4Q-D0u-RLFV.js +0 -834
- package/dist/kanban-definition-3W4ZIXB7-BSCzAsMJ.js +0 -719
- package/dist/kanban-definition-3W4ZIXB7-DdbH9sci.cjs +0 -89
- package/dist/katex-C2g-EhzP.cjs +0 -261
- package/dist/katex-CUSbq6rG.js +0 -11692
- package/dist/layout-6z7-eUnZ.js +0 -1335
- package/dist/layout-DbcrMh5B.cjs +0 -1
- package/dist/linear-BKevCbhh.js +0 -259
- package/dist/linear-C7uVEtWW.cjs +0 -1
- package/dist/mermaid-parser.core-Cwy51n_e.js +0 -17907
- package/dist/mermaid-parser.core-DQ2yhapR.cjs +0 -160
- package/dist/mindmap-definition-VGOIOE7T-CcEisj0R.cjs +0 -68
- package/dist/mindmap-definition-VGOIOE7T-xp6GmSIx.js +0 -758
- package/dist/ordinal-B6-f3MAq.js +0 -61
- package/dist/ordinal-CagbB1m8.cjs +0 -1
- package/dist/packet-DYOGHKS2-BGgwnMhM.js +0 -6
- package/dist/packet-DYOGHKS2-BWg8qxI8.cjs +0 -1
- package/dist/pie-VRWISCQL-DhM8CUW4.cjs +0 -1
- package/dist/pie-VRWISCQL-DrWIWm7W.js +0 -6
- package/dist/pieDiagram-ADFJNKIX-BdvacM-Z.cjs +0 -30
- package/dist/pieDiagram-ADFJNKIX-D6Fa7W_r.js +0 -161
- package/dist/quadrantDiagram-AYHSOK5B-CHMoSBvg.js +0 -1022
- package/dist/quadrantDiagram-AYHSOK5B-ddq5zZEg.cjs +0 -7
- package/dist/radar-ZZBFDIW7-CPvW4Njh.js +0 -6
- package/dist/radar-ZZBFDIW7-YJK72BlV.cjs +0 -1
- package/dist/requirementDiagram-UZGBJVZJ-Cr9HnGVO.js +0 -850
- package/dist/requirementDiagram-UZGBJVZJ-NdpzVbnf.cjs +0 -64
- package/dist/sankeyDiagram-TZEHDZUN-3f19WwKd.js +0 -810
- package/dist/sankeyDiagram-TZEHDZUN-D2Hzq4Kr.cjs +0 -10
- package/dist/sequenceDiagram-WL72ISMW-Cu-7V--6.js +0 -2511
- package/dist/sequenceDiagram-WL72ISMW-Nk6vhSK9.cjs +0 -145
- package/dist/stateDiagram-FKZM4ZOC-BSnDKUaW.cjs +0 -1
- package/dist/stateDiagram-FKZM4ZOC-BleTIniP.js +0 -263
- package/dist/stateDiagram-v2-4FDKWEC3-7EjW078x.js +0 -16
- package/dist/stateDiagram-v2-4FDKWEC3-BJPzO53y.cjs +0 -1
- package/dist/timeline-definition-IT6M3QCI-CFTjPpKy.js +0 -795
- package/dist/timeline-definition-IT6M3QCI-CfaGtuF2.cjs +0 -61
- package/dist/treemap-GDKQZRPO-CtDdEOaj.cjs +0 -1
- package/dist/treemap-GDKQZRPO-DlODAdQ2.js +0 -6
- package/dist/xychartDiagram-PRI3JC2R-mShGv2CD.cjs +0 -7
- package/dist/xychartDiagram-PRI3JC2R-vEJER5zT.js +0 -1340
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
import { b as e } from "./chunk-ICPOFSXX-Sn6LWD0k.js";
|
|
2
|
+
import { g as t, h as n } from "./src-BQiFKP24.js";
|
|
3
|
+
import "./chunk-5PVQY5BW-C5U7sJAA.js";
|
|
4
|
+
import "./chunk-BSJP7CBP-oNTXVRA7.js";
|
|
5
|
+
import { n as r } from "./chunk-ZZ45TVLE-CIYrdg-O.js";
|
|
6
|
+
import "./chunk-X2U36JSP-CY7mJR8m.js";
|
|
7
|
+
import "./chunk-U2HBQHQK-BZ3YFMXB.js";
|
|
8
|
+
import { a as i, c as a, i as o, l as s, n as c, t as l, u } from "./chunk-5FUZZQ4R-2kdZJWq2.js";
|
|
9
|
+
import { a as d, i as f, n as p, r as m, t as h } from "./chunk-ENJZ2VHE-BluGQPyl.js";
|
|
10
|
+
import { a as g } from "./flatten-BE1bWL-7.js";
|
|
11
|
+
import { n as _, t as v } from "./graphlib-Cpifseqb.js";
|
|
12
|
+
import { t as y } from "./clone-Dn__H8fX.js";
|
|
13
|
+
import { t as b } from "./dagre-DVLnxd7n.js";
|
|
14
|
+
//#region node_modules/dagre-d3-es/src/graphlib/json.js
|
|
15
|
+
function x(e) {
|
|
16
|
+
var t = {
|
|
17
|
+
options: {
|
|
18
|
+
directed: e.isDirected(),
|
|
19
|
+
multigraph: e.isMultigraph(),
|
|
20
|
+
compound: e.isCompound()
|
|
21
|
+
},
|
|
22
|
+
nodes: S(e),
|
|
23
|
+
edges: C(e)
|
|
24
|
+
};
|
|
25
|
+
return _(e.graph()) || (t.value = y(e.graph())), t;
|
|
26
|
+
}
|
|
27
|
+
function S(e) {
|
|
28
|
+
return g(e.nodes(), function(t) {
|
|
29
|
+
var n = e.node(t), r = e.parent(t), i = { v: t };
|
|
30
|
+
return _(n) || (i.value = n), _(r) || (i.parent = r), i;
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function C(e) {
|
|
34
|
+
return g(e.edges(), function(t) {
|
|
35
|
+
var n = e.edge(t), r = {
|
|
36
|
+
v: t.v,
|
|
37
|
+
w: t.w
|
|
38
|
+
};
|
|
39
|
+
return _(t.name) || (r.name = t.name), _(n) || (r.value = n), r;
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/dagre-KV5264BT.mjs
|
|
44
|
+
var w = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ n(() => {
|
|
45
|
+
T.clear(), E.clear(), w.clear();
|
|
46
|
+
}, "clear"), O = /* @__PURE__ */ n((e, n) => {
|
|
47
|
+
let r = T.get(n) || [];
|
|
48
|
+
return t.trace("In isDescendant", n, " ", e, " = ", r.includes(e)), r.includes(e);
|
|
49
|
+
}, "isDescendant"), k = /* @__PURE__ */ n((e, n) => {
|
|
50
|
+
let r = T.get(n) || [];
|
|
51
|
+
return t.info("Descendants of ", n, " is ", r), t.info("Edge is ", e), e.v === n || e.w === n ? !1 : r ? r.includes(e.v) || O(e.v, n) || O(e.w, n) || r.includes(e.w) : (t.debug("Tilt, ", n, ",not in descendants"), !1);
|
|
52
|
+
}, "edgeInCluster"), A = /* @__PURE__ */ n((e, n, r, i) => {
|
|
53
|
+
t.warn("Copying children of ", e, "root", i, "data", n.node(e), i);
|
|
54
|
+
let a = n.children(e) || [];
|
|
55
|
+
e !== i && a.push(e), t.warn("Copying (nodes) clusterId", e, "nodes", a), a.forEach((a) => {
|
|
56
|
+
if (n.children(a).length > 0) A(a, n, r, i);
|
|
57
|
+
else {
|
|
58
|
+
let o = n.node(a);
|
|
59
|
+
t.info("cp ", a, " to ", i, " with parent ", e), r.setNode(a, o), i !== n.parent(a) && (t.warn("Setting parent", a, n.parent(a)), r.setParent(a, n.parent(a))), e !== i && a !== e ? (t.debug("Setting parent", a, e), r.setParent(a, e)) : (t.info("In copy ", e, "root", i, "data", n.node(e), i), t.debug("Not Setting parent for node=", a, "cluster!==rootId", e !== i, "node!==clusterId", a !== e));
|
|
60
|
+
let s = n.edges(a);
|
|
61
|
+
t.debug("Copying Edges", s), s.forEach((a) => {
|
|
62
|
+
t.info("Edge", a);
|
|
63
|
+
let o = n.edge(a.v, a.w, a.name);
|
|
64
|
+
t.info("Edge data", o, i);
|
|
65
|
+
try {
|
|
66
|
+
k(a, i) ? (t.info("Copying as ", a.v, a.w, o, a.name), r.setEdge(a.v, a.w, o, a.name), t.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : t.info("Skipping copy of edge ", a.v, "-->", a.w, " rootId: ", i, " clusterId:", e);
|
|
67
|
+
} catch (e) {
|
|
68
|
+
t.error(e);
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
t.debug("Removing node", a), n.removeNode(a);
|
|
73
|
+
});
|
|
74
|
+
}, "copy"), j = /* @__PURE__ */ n((e, t) => {
|
|
75
|
+
let n = t.children(e), r = [...n];
|
|
76
|
+
for (let i of n) E.set(i, e), r = [...r, ...j(i, t)];
|
|
77
|
+
return r;
|
|
78
|
+
}, "extractDescendants"), M = /* @__PURE__ */ n((e, t, n) => {
|
|
79
|
+
let r = e.edges().filter((e) => e.v === t || e.w === t), i = e.edges().filter((e) => e.v === n || e.w === n), a = r.map((e) => ({
|
|
80
|
+
v: e.v === t ? n : e.v,
|
|
81
|
+
w: e.w === t ? t : e.w
|
|
82
|
+
})), o = i.map((e) => ({
|
|
83
|
+
v: e.v,
|
|
84
|
+
w: e.w
|
|
85
|
+
}));
|
|
86
|
+
return a.filter((e) => o.some((t) => e.v === t.v && e.w === t.w));
|
|
87
|
+
}, "findCommonEdges"), N = /* @__PURE__ */ n((e, n, r) => {
|
|
88
|
+
let i = n.children(e);
|
|
89
|
+
if (t.trace("Searching children of id ", e, i), i.length < 1) return e;
|
|
90
|
+
let a;
|
|
91
|
+
for (let e of i) {
|
|
92
|
+
let t = N(e, n, r), i = M(n, r, t);
|
|
93
|
+
if (t) if (i.length > 0) a = t;
|
|
94
|
+
else return t;
|
|
95
|
+
}
|
|
96
|
+
return a;
|
|
97
|
+
}, "findNonClusterChild"), P = /* @__PURE__ */ n((e) => !w.has(e) || !w.get(e).externalConnections ? e : w.has(e) ? w.get(e).id : e, "getAnchorId"), F = /* @__PURE__ */ n((e, n) => {
|
|
98
|
+
if (!e || n > 10) {
|
|
99
|
+
t.debug("Opting out, no graph ");
|
|
100
|
+
return;
|
|
101
|
+
} else t.debug("Opting in, graph ");
|
|
102
|
+
e.nodes().forEach(function(n) {
|
|
103
|
+
e.children(n).length > 0 && (t.warn("Cluster identified", n, " Replacement id in edges: ", N(n, e, n)), T.set(n, j(n, e)), w.set(n, {
|
|
104
|
+
id: N(n, e, n),
|
|
105
|
+
clusterData: e.node(n)
|
|
106
|
+
}));
|
|
107
|
+
}), e.nodes().forEach(function(n) {
|
|
108
|
+
let r = e.children(n), i = e.edges();
|
|
109
|
+
r.length > 0 ? (t.debug("Cluster identified", n, T), i.forEach((e) => {
|
|
110
|
+
O(e.v, n) ^ O(e.w, n) && (t.warn("Edge: ", e, " leaves cluster ", n), t.warn("Descendants of XXX ", n, ": ", T.get(n)), w.get(n).externalConnections = !0);
|
|
111
|
+
})) : t.debug("Not a cluster ", n, T);
|
|
112
|
+
});
|
|
113
|
+
for (let t of w.keys()) {
|
|
114
|
+
let n = w.get(t).id, r = e.parent(n);
|
|
115
|
+
r !== t && w.has(r) && !w.get(r).externalConnections && (w.get(t).id = r);
|
|
116
|
+
}
|
|
117
|
+
e.edges().forEach(function(n) {
|
|
118
|
+
let r = e.edge(n);
|
|
119
|
+
t.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(n)), t.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(e.edge(n)));
|
|
120
|
+
let i = n.v, a = n.w;
|
|
121
|
+
if (t.warn("Fix XXX", w, "ids:", n.v, n.w, "Translating: ", w.get(n.v), " --- ", w.get(n.w)), w.get(n.v) || w.get(n.w)) {
|
|
122
|
+
if (t.warn("Fixing and trying - removing XXX", n.v, n.w, n.name), i = P(n.v), a = P(n.w), e.removeEdge(n.v, n.w, n.name), i !== n.v) {
|
|
123
|
+
let t = e.parent(i);
|
|
124
|
+
w.get(t).externalConnections = !0, r.fromCluster = n.v;
|
|
125
|
+
}
|
|
126
|
+
if (a !== n.w) {
|
|
127
|
+
let t = e.parent(a);
|
|
128
|
+
w.get(t).externalConnections = !0, r.toCluster = n.w;
|
|
129
|
+
}
|
|
130
|
+
t.warn("Fix Replacing with XXX", i, a, n.name), e.setEdge(i, a, r, n.name);
|
|
131
|
+
}
|
|
132
|
+
}), t.warn("Adjusted Graph", x(e)), I(e, 0), t.trace(w);
|
|
133
|
+
}, "adjustClustersAndEdges"), I = /* @__PURE__ */ n((e, n) => {
|
|
134
|
+
if (t.warn("extractor - ", n, x(e), e.children("D")), n > 10) {
|
|
135
|
+
t.error("Bailing out");
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
let r = e.nodes(), i = !1;
|
|
139
|
+
for (let t of r) {
|
|
140
|
+
let n = e.children(t);
|
|
141
|
+
i ||= n.length > 0;
|
|
142
|
+
}
|
|
143
|
+
if (!i) {
|
|
144
|
+
t.debug("Done, no node has children", e.nodes());
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
t.debug("Nodes = ", r, n);
|
|
148
|
+
for (let i of r) if (t.debug("Extracting node", i, w, w.has(i) && !w.get(i).externalConnections, !e.parent(i), e.node(i), e.children("D"), " Depth ", n), !w.has(i)) t.debug("Not a cluster", i, n);
|
|
149
|
+
else if (!w.get(i).externalConnections && e.children(i) && e.children(i).length > 0) {
|
|
150
|
+
t.warn("Cluster without external connections, without a parent and with children", i, n);
|
|
151
|
+
let r = e.graph().rankdir === "TB" ? "LR" : "TB";
|
|
152
|
+
w.get(i)?.clusterData?.dir && (r = w.get(i).clusterData.dir, t.warn("Fixing dir", w.get(i).clusterData.dir, r));
|
|
153
|
+
let a = new v({
|
|
154
|
+
multigraph: !0,
|
|
155
|
+
compound: !0
|
|
156
|
+
}).setGraph({
|
|
157
|
+
rankdir: r,
|
|
158
|
+
nodesep: 50,
|
|
159
|
+
ranksep: 50,
|
|
160
|
+
marginx: 8,
|
|
161
|
+
marginy: 8
|
|
162
|
+
}).setDefaultEdgeLabel(function() {
|
|
163
|
+
return {};
|
|
164
|
+
});
|
|
165
|
+
t.warn("Old graph before copy", x(e)), A(i, e, a, i), e.setNode(i, {
|
|
166
|
+
clusterNode: !0,
|
|
167
|
+
id: i,
|
|
168
|
+
clusterData: w.get(i).clusterData,
|
|
169
|
+
label: w.get(i).label,
|
|
170
|
+
graph: a
|
|
171
|
+
}), t.warn("New graph after copy node: (", i, ")", x(a)), t.debug("Old graph after copy", x(e));
|
|
172
|
+
} else t.warn("Cluster ** ", i, " **not meeting the criteria !externalConnections:", !w.get(i).externalConnections, " no parent: ", !e.parent(i), " children ", e.children(i) && e.children(i).length > 0, e.children("D"), n), t.debug(w);
|
|
173
|
+
r = e.nodes(), t.warn("New list of nodes", r);
|
|
174
|
+
for (let i of r) {
|
|
175
|
+
let r = e.node(i);
|
|
176
|
+
t.warn(" Now next level", i, r), r?.clusterNode && I(r.graph, n + 1);
|
|
177
|
+
}
|
|
178
|
+
}, "extractor"), L = /* @__PURE__ */ n((e, t) => {
|
|
179
|
+
if (t.length === 0) return [];
|
|
180
|
+
let n = Object.assign([], t);
|
|
181
|
+
return t.forEach((t) => {
|
|
182
|
+
let r = L(e, e.children(t));
|
|
183
|
+
n = [...n, ...r];
|
|
184
|
+
}), n;
|
|
185
|
+
}, "sorter"), R = /* @__PURE__ */ n((e) => L(e, e.children()), "sortNodesByHierarchy"), z = /* @__PURE__ */ n(async (e, c, l, f, h, g) => {
|
|
186
|
+
t.warn("Graph in recursive render:XAX", x(c), h);
|
|
187
|
+
let _ = c.graph().rankdir;
|
|
188
|
+
t.trace("Dir in recursive render - dir:", _);
|
|
189
|
+
let v = e.insert("g").attr("class", "root");
|
|
190
|
+
c.nodes() ? t.info("Recursive render XXX", c.nodes()) : t.info("No nodes found for", c), c.edges().length > 0 && t.info("Recursive edges", c.edge(c.edges()[0]));
|
|
191
|
+
let y = v.insert("g").attr("class", "clusters"), S = v.insert("g").attr("class", "edgePaths"), C = v.insert("g").attr("class", "edgeLabels"), T = v.insert("g").attr("class", "nodes");
|
|
192
|
+
await Promise.all(c.nodes().map(async function(e) {
|
|
193
|
+
let n = c.node(e);
|
|
194
|
+
if (h !== void 0) {
|
|
195
|
+
let n = JSON.parse(JSON.stringify(h.clusterData));
|
|
196
|
+
t.trace("Setting data for parent cluster XXX\n Node.id = ", e, "\n data=", n.height, "\nParent cluster", h.height), c.setNode(h.id, n), c.parent(e) || (t.trace("Setting parent", e, h.id), c.setParent(e, h.id, n));
|
|
197
|
+
}
|
|
198
|
+
if (t.info("(Insert) Node XXX" + e + ": " + JSON.stringify(c.node(e))), n?.clusterNode) {
|
|
199
|
+
t.info("Cluster identified XBX", e, n.width, c.node(e));
|
|
200
|
+
let { ranksep: r, nodesep: i } = c.graph();
|
|
201
|
+
n.graph.setGraph({
|
|
202
|
+
...n.graph.graph(),
|
|
203
|
+
ranksep: r + 25,
|
|
204
|
+
nodesep: i
|
|
205
|
+
});
|
|
206
|
+
let a = await z(T, n.graph, l, f, c.node(e), g), o = a.elem;
|
|
207
|
+
u(n, o), n.diff = a.diff || 0, t.info("New compound node after recursive render XAX", e, "width", n.width, "height", n.height), s(o, n);
|
|
208
|
+
} else c.children(e).length > 0 ? (t.trace("Cluster - the non recursive path XBX", e, n.id, n, n.width, "Graph:", c), t.trace(N(n.id, c)), w.set(n.id, {
|
|
209
|
+
id: N(n.id, c),
|
|
210
|
+
node: n
|
|
211
|
+
})) : (t.trace("Node - the non recursive path XAX", e, T, c.node(e), _), await i(T, c.node(e), {
|
|
212
|
+
config: g,
|
|
213
|
+
dir: _
|
|
214
|
+
}));
|
|
215
|
+
})), await (/* @__PURE__ */ n(async () => {
|
|
216
|
+
let e = c.edges().map(async function(e) {
|
|
217
|
+
let n = c.edge(e.v, e.w, e.name);
|
|
218
|
+
t.info("Edge " + e.v + " -> " + e.w + ": " + JSON.stringify(e)), t.info("Edge " + e.v + " -> " + e.w + ": ", e, " ", JSON.stringify(c.edge(e))), t.info("Fix", w, "ids:", e.v, e.w, "Translating: ", w.get(e.v), w.get(e.w)), await m(C, n);
|
|
219
|
+
});
|
|
220
|
+
await Promise.all(e);
|
|
221
|
+
}, "processEdges"))(), t.info("Graph before layout:", JSON.stringify(x(c))), t.info("############################################# XXX"), t.info("### Layout ### XXX"), t.info("############################################# XXX"), b(c), t.info("Graph after layout:", JSON.stringify(x(c)));
|
|
222
|
+
let E = 0, { subGraphTitleTotalMargin: D } = r(g);
|
|
223
|
+
return await Promise.all(R(c).map(async function(e) {
|
|
224
|
+
let n = c.node(e);
|
|
225
|
+
if (t.info("Position XBX => " + e + ": (" + n.x, "," + n.y, ") width: ", n.width, " height: ", n.height), n?.clusterNode) n.y += D, t.info("A tainted cluster node XBX1", e, n.id, n.width, n.height, n.x, n.y, c.parent(e)), w.get(n.id).node = n, a(n);
|
|
226
|
+
else if (c.children(e).length > 0) {
|
|
227
|
+
t.info("A pure cluster node XBX1", e, n.id, n.x, n.y, n.width, n.height, c.parent(e)), n.height += D, c.node(n.parentId);
|
|
228
|
+
let r = n?.padding / 2 || 0, i = n?.labelBBox?.height || 0, a = i - r || 0;
|
|
229
|
+
t.debug("OffsetY", a, "labelHeight", i, "halfPadding", r), await o(y, n), w.get(n.id).node = n;
|
|
230
|
+
} else {
|
|
231
|
+
let e = c.node(n.parentId);
|
|
232
|
+
n.y += D / 2, t.info("A regular node XBX1 - using the padding", n.id, "parent", n.parentId, n.width, n.height, n.x, n.y, "offsetY", n.offsetY, "parent", e, e?.offsetY, n), a(n);
|
|
233
|
+
}
|
|
234
|
+
})), c.edges().forEach(function(e) {
|
|
235
|
+
let n = c.edge(e);
|
|
236
|
+
t.info("Edge " + e.v + " -> " + e.w + ": " + JSON.stringify(n), n), n.points.forEach((e) => e.y += D / 2), d(n, p(S, n, w, l, c.node(e.v), c.node(e.w), f));
|
|
237
|
+
}), c.nodes().forEach(function(e) {
|
|
238
|
+
let n = c.node(e);
|
|
239
|
+
t.info(e, n.type, n.diff), n.isGroup && (E = n.diff);
|
|
240
|
+
}), t.warn("Returning from recursive render XAX", v, E), {
|
|
241
|
+
elem: v,
|
|
242
|
+
diff: E
|
|
243
|
+
};
|
|
244
|
+
}, "recursiveRender"), B = /* @__PURE__ */ n(async (n, r) => {
|
|
245
|
+
let i = new v({
|
|
246
|
+
multigraph: !0,
|
|
247
|
+
compound: !0
|
|
248
|
+
}).setGraph({
|
|
249
|
+
rankdir: n.direction,
|
|
250
|
+
nodesep: n.config?.nodeSpacing || n.config?.flowchart?.nodeSpacing || n.nodeSpacing,
|
|
251
|
+
ranksep: n.config?.rankSpacing || n.config?.flowchart?.rankSpacing || n.rankSpacing,
|
|
252
|
+
marginx: 8,
|
|
253
|
+
marginy: 8
|
|
254
|
+
}).setDefaultEdgeLabel(function() {
|
|
255
|
+
return {};
|
|
256
|
+
}), a = r.select("g");
|
|
257
|
+
f(a, n.markers, n.type, n.diagramId), c(), h(), l(), D(), n.nodes.forEach((e) => {
|
|
258
|
+
i.setNode(e.id, { ...e }), e.parentId && i.setParent(e.id, e.parentId);
|
|
259
|
+
}), t.debug("Edges:", n.edges), n.edges.forEach((e) => {
|
|
260
|
+
if (e.start === e.end) {
|
|
261
|
+
let t = e.start, n = t + "---" + t + "---1", r = t + "---" + t + "---2", a = i.node(t);
|
|
262
|
+
i.setNode(n, {
|
|
263
|
+
domId: n,
|
|
264
|
+
id: n,
|
|
265
|
+
parentId: a.parentId,
|
|
266
|
+
labelStyle: "",
|
|
267
|
+
label: "",
|
|
268
|
+
padding: 0,
|
|
269
|
+
shape: "labelRect",
|
|
270
|
+
style: "",
|
|
271
|
+
width: 10,
|
|
272
|
+
height: 10
|
|
273
|
+
}), i.setParent(n, a.parentId), i.setNode(r, {
|
|
274
|
+
domId: r,
|
|
275
|
+
id: r,
|
|
276
|
+
parentId: a.parentId,
|
|
277
|
+
labelStyle: "",
|
|
278
|
+
padding: 0,
|
|
279
|
+
shape: "labelRect",
|
|
280
|
+
label: "",
|
|
281
|
+
style: "",
|
|
282
|
+
width: 10,
|
|
283
|
+
height: 10
|
|
284
|
+
}), i.setParent(r, a.parentId);
|
|
285
|
+
let o = structuredClone(e), s = structuredClone(e), c = structuredClone(e);
|
|
286
|
+
o.label = "", o.arrowTypeEnd = "none", o.id = t + "-cyclic-special-1", s.arrowTypeStart = "none", s.arrowTypeEnd = "none", s.id = t + "-cyclic-special-mid", c.label = "", a.isGroup && (o.fromCluster = t, c.toCluster = t), c.id = t + "-cyclic-special-2", c.arrowTypeStart = "none", i.setEdge(t, n, o, t + "-cyclic-special-0"), i.setEdge(n, r, s, t + "-cyclic-special-1"), i.setEdge(r, t, c, t + "-cyc<lic-special-2");
|
|
287
|
+
} else i.setEdge(e.start, e.end, { ...e }, e.id);
|
|
288
|
+
}), t.warn("Graph at first:", JSON.stringify(x(i))), F(i), t.warn("Graph after XAX:", JSON.stringify(x(i)));
|
|
289
|
+
let o = e();
|
|
290
|
+
await z(a, i, n.type, n.diagramId, void 0, o);
|
|
291
|
+
}, "render");
|
|
292
|
+
//#endregion
|
|
293
|
+
export { B as render };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
require(`./chunk-D-IZpNpi.cjs`);const e=require(`./chunk-ICPOFSXX-CoaJw-IT.cjs`),t=require(`./src-DFxq-N5I.cjs`);require(`./chunk-5PVQY5BW-CfQDYQZt.cjs`),require(`./chunk-BSJP7CBP-CFzYPvgr.cjs`);const n=require(`./chunk-ZZ45TVLE-AQQsnXy4.cjs`);require(`./chunk-X2U36JSP-D1RYKjVc.cjs`),require(`./chunk-U2HBQHQK-D0AoQWxK.cjs`);const r=require(`./chunk-5FUZZQ4R-D_vnCbAb.cjs`),i=require(`./chunk-ENJZ2VHE-CwgVASaU.cjs`),a=require(`./flatten-DxvYSoR8.cjs`),o=require(`./graphlib-HdfvGLpV.cjs`),s=require(`./clone-lShkT11Q.cjs`),c=require(`./dagre-BjnWDdkw.cjs`);function l(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:u(e),edges:d(e)};return o.n(e.graph())||(t.value=s.t(e.graph())),t}function u(e){return a.a(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),i={v:t};return o.n(n)||(i.value=n),o.n(r)||(i.parent=r),i})}function d(e){return a.a(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return o.n(t.name)||(r.name=t.name),o.n(n)||(r.value=n),r})}var f=new Map,p=new Map,m=new Map,h=t.h(()=>{p.clear(),m.clear(),f.clear()},`clear`),g=t.h((e,n)=>{let r=p.get(n)||[];return t.g.trace(`In isDescendant`,n,` `,e,` = `,r.includes(e)),r.includes(e)},`isDescendant`),_=t.h((e,n)=>{let r=p.get(n)||[];return t.g.info(`Descendants of `,n,` is `,r),t.g.info(`Edge is `,e),e.v===n||e.w===n?!1:r?r.includes(e.v)||g(e.v,n)||g(e.w,n)||r.includes(e.w):(t.g.debug(`Tilt, `,n,`,not in descendants`),!1)},`edgeInCluster`),v=t.h((e,n,r,i)=>{t.g.warn(`Copying children of `,e,`root`,i,`data`,n.node(e),i);let a=n.children(e)||[];e!==i&&a.push(e),t.g.warn(`Copying (nodes) clusterId`,e,`nodes`,a),a.forEach(a=>{if(n.children(a).length>0)v(a,n,r,i);else{let o=n.node(a);t.g.info(`cp `,a,` to `,i,` with parent `,e),r.setNode(a,o),i!==n.parent(a)&&(t.g.warn(`Setting parent`,a,n.parent(a)),r.setParent(a,n.parent(a))),e!==i&&a!==e?(t.g.debug(`Setting parent`,a,e),r.setParent(a,e)):(t.g.info(`In copy `,e,`root`,i,`data`,n.node(e),i),t.g.debug(`Not Setting parent for node=`,a,`cluster!==rootId`,e!==i,`node!==clusterId`,a!==e));let s=n.edges(a);t.g.debug(`Copying Edges`,s),s.forEach(a=>{t.g.info(`Edge`,a);let o=n.edge(a.v,a.w,a.name);t.g.info(`Edge data`,o,i);try{_(a,i)?(t.g.info(`Copying as `,a.v,a.w,o,a.name),r.setEdge(a.v,a.w,o,a.name),t.g.info(`newGraph edges `,r.edges(),r.edge(r.edges()[0]))):t.g.info(`Skipping copy of edge `,a.v,`-->`,a.w,` rootId: `,i,` clusterId:`,e)}catch(e){t.g.error(e)}})}t.g.debug(`Removing node`,a),n.removeNode(a)})},`copy`),y=t.h((e,t)=>{let n=t.children(e),r=[...n];for(let i of n)m.set(i,e),r=[...r,...y(i,t)];return r},`extractDescendants`),b=t.h((e,t,n)=>{let r=e.edges().filter(e=>e.v===t||e.w===t),i=e.edges().filter(e=>e.v===n||e.w===n),a=r.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),o=i.map(e=>({v:e.v,w:e.w}));return a.filter(e=>o.some(t=>e.v===t.v&&e.w===t.w))},`findCommonEdges`),x=t.h((e,n,r)=>{let i=n.children(e);if(t.g.trace(`Searching children of id `,e,i),i.length<1)return e;let a;for(let e of i){let t=x(e,n,r),i=b(n,r,t);if(t)if(i.length>0)a=t;else return t}return a},`findNonClusterChild`),S=t.h(e=>!f.has(e)||!f.get(e).externalConnections?e:f.has(e)?f.get(e).id:e,`getAnchorId`),C=t.h((e,n)=>{if(!e||n>10){t.g.debug(`Opting out, no graph `);return}else t.g.debug(`Opting in, graph `);e.nodes().forEach(function(n){e.children(n).length>0&&(t.g.warn(`Cluster identified`,n,` Replacement id in edges: `,x(n,e,n)),p.set(n,y(n,e)),f.set(n,{id:x(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){let r=e.children(n),i=e.edges();r.length>0?(t.g.debug(`Cluster identified`,n,p),i.forEach(e=>{g(e.v,n)^g(e.w,n)&&(t.g.warn(`Edge: `,e,` leaves cluster `,n),t.g.warn(`Descendants of XXX `,n,`: `,p.get(n)),f.get(n).externalConnections=!0)})):t.g.debug(`Not a cluster `,n,p)});for(let t of f.keys()){let n=f.get(t).id,r=e.parent(n);r!==t&&f.has(r)&&!f.get(r).externalConnections&&(f.get(t).id=r)}e.edges().forEach(function(n){let r=e.edge(n);t.g.warn(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(n)),t.g.warn(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(e.edge(n)));let i=n.v,a=n.w;if(t.g.warn(`Fix XXX`,f,`ids:`,n.v,n.w,`Translating: `,f.get(n.v),` --- `,f.get(n.w)),f.get(n.v)||f.get(n.w)){if(t.g.warn(`Fixing and trying - removing XXX`,n.v,n.w,n.name),i=S(n.v),a=S(n.w),e.removeEdge(n.v,n.w,n.name),i!==n.v){let t=e.parent(i);f.get(t).externalConnections=!0,r.fromCluster=n.v}if(a!==n.w){let t=e.parent(a);f.get(t).externalConnections=!0,r.toCluster=n.w}t.g.warn(`Fix Replacing with XXX`,i,a,n.name),e.setEdge(i,a,r,n.name)}}),t.g.warn(`Adjusted Graph`,l(e)),w(e,0),t.g.trace(f)},`adjustClustersAndEdges`),w=t.h((e,n)=>{if(t.g.warn(`extractor - `,n,l(e),e.children(`D`)),n>10){t.g.error(`Bailing out`);return}let r=e.nodes(),i=!1;for(let t of r){let n=e.children(t);i||=n.length>0}if(!i){t.g.debug(`Done, no node has children`,e.nodes());return}t.g.debug(`Nodes = `,r,n);for(let i of r)if(t.g.debug(`Extracting node`,i,f,f.has(i)&&!f.get(i).externalConnections,!e.parent(i),e.node(i),e.children(`D`),` Depth `,n),!f.has(i))t.g.debug(`Not a cluster`,i,n);else if(!f.get(i).externalConnections&&e.children(i)&&e.children(i).length>0){t.g.warn(`Cluster without external connections, without a parent and with children`,i,n);let r=e.graph().rankdir===`TB`?`LR`:`TB`;f.get(i)?.clusterData?.dir&&(r=f.get(i).clusterData.dir,t.g.warn(`Fixing dir`,f.get(i).clusterData.dir,r));let a=new o.t({multigraph:!0,compound:!0}).setGraph({rankdir:r,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});t.g.warn(`Old graph before copy`,l(e)),v(i,e,a,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:f.get(i).clusterData,label:f.get(i).label,graph:a}),t.g.warn(`New graph after copy node: (`,i,`)`,l(a)),t.g.debug(`Old graph after copy`,l(e))}else t.g.warn(`Cluster ** `,i,` **not meeting the criteria !externalConnections:`,!f.get(i).externalConnections,` no parent: `,!e.parent(i),` children `,e.children(i)&&e.children(i).length>0,e.children(`D`),n),t.g.debug(f);r=e.nodes(),t.g.warn(`New list of nodes`,r);for(let i of r){let r=e.node(i);t.g.warn(` Now next level`,i,r),r?.clusterNode&&w(r.graph,n+1)}},`extractor`),T=t.h((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(t=>{let r=T(e,e.children(t));n=[...n,...r]}),n},`sorter`),E=t.h(e=>T(e,e.children()),`sortNodesByHierarchy`),D=t.h(async(e,a,o,s,u,d)=>{t.g.warn(`Graph in recursive render:XAX`,l(a),u);let p=a.graph().rankdir;t.g.trace(`Dir in recursive render - dir:`,p);let m=e.insert(`g`).attr(`class`,`root`);a.nodes()?t.g.info(`Recursive render XXX`,a.nodes()):t.g.info(`No nodes found for`,a),a.edges().length>0&&t.g.info(`Recursive edges`,a.edge(a.edges()[0]));let h=m.insert(`g`).attr(`class`,`clusters`),g=m.insert(`g`).attr(`class`,`edgePaths`),_=m.insert(`g`).attr(`class`,`edgeLabels`),v=m.insert(`g`).attr(`class`,`nodes`);await Promise.all(a.nodes().map(async function(e){let n=a.node(e);if(u!==void 0){let n=JSON.parse(JSON.stringify(u.clusterData));t.g.trace(`Setting data for parent cluster XXX
|
|
2
|
+
Node.id = `,e,`
|
|
3
|
+
data=`,n.height,`
|
|
4
|
+
Parent cluster`,u.height),a.setNode(u.id,n),a.parent(e)||(t.g.trace(`Setting parent`,e,u.id),a.setParent(e,u.id,n))}if(t.g.info(`(Insert) Node XXX`+e+`: `+JSON.stringify(a.node(e))),n?.clusterNode){t.g.info(`Cluster identified XBX`,e,n.width,a.node(e));let{ranksep:i,nodesep:c}=a.graph();n.graph.setGraph({...n.graph.graph(),ranksep:i+25,nodesep:c});let l=await D(v,n.graph,o,s,a.node(e),d),u=l.elem;r.u(n,u),n.diff=l.diff||0,t.g.info(`New compound node after recursive render XAX`,e,`width`,n.width,`height`,n.height),r.l(u,n)}else a.children(e).length>0?(t.g.trace(`Cluster - the non recursive path XBX`,e,n.id,n,n.width,`Graph:`,a),t.g.trace(x(n.id,a)),f.set(n.id,{id:x(n.id,a),node:n})):(t.g.trace(`Node - the non recursive path XAX`,e,v,a.node(e),p),await r.a(v,a.node(e),{config:d,dir:p}))})),await t.h(async()=>{let e=a.edges().map(async function(e){let n=a.edge(e.v,e.w,e.name);t.g.info(`Edge `+e.v+` -> `+e.w+`: `+JSON.stringify(e)),t.g.info(`Edge `+e.v+` -> `+e.w+`: `,e,` `,JSON.stringify(a.edge(e))),t.g.info(`Fix`,f,`ids:`,e.v,e.w,`Translating: `,f.get(e.v),f.get(e.w)),await i.r(_,n)});await Promise.all(e)},`processEdges`)(),t.g.info(`Graph before layout:`,JSON.stringify(l(a))),t.g.info(`############################################# XXX`),t.g.info(`### Layout ### XXX`),t.g.info(`############################################# XXX`),c.t(a),t.g.info(`Graph after layout:`,JSON.stringify(l(a)));let y=0,{subGraphTitleTotalMargin:b}=n.n(d);return await Promise.all(E(a).map(async function(e){let n=a.node(e);if(t.g.info(`Position XBX => `+e+`: (`+n.x,`,`+n.y,`) width: `,n.width,` height: `,n.height),n?.clusterNode)n.y+=b,t.g.info(`A tainted cluster node XBX1`,e,n.id,n.width,n.height,n.x,n.y,a.parent(e)),f.get(n.id).node=n,r.c(n);else if(a.children(e).length>0){t.g.info(`A pure cluster node XBX1`,e,n.id,n.x,n.y,n.width,n.height,a.parent(e)),n.height+=b,a.node(n.parentId);let i=n?.padding/2||0,o=n?.labelBBox?.height||0,s=o-i||0;t.g.debug(`OffsetY`,s,`labelHeight`,o,`halfPadding`,i),await r.i(h,n),f.get(n.id).node=n}else{let e=a.node(n.parentId);n.y+=b/2,t.g.info(`A regular node XBX1 - using the padding`,n.id,`parent`,n.parentId,n.width,n.height,n.x,n.y,`offsetY`,n.offsetY,`parent`,e,e?.offsetY,n),r.c(n)}})),a.edges().forEach(function(e){let n=a.edge(e);t.g.info(`Edge `+e.v+` -> `+e.w+`: `+JSON.stringify(n),n),n.points.forEach(e=>e.y+=b/2),i.a(n,i.n(g,n,f,o,a.node(e.v),a.node(e.w),s))}),a.nodes().forEach(function(e){let n=a.node(e);t.g.info(e,n.type,n.diff),n.isGroup&&(y=n.diff)}),t.g.warn(`Returning from recursive render XAX`,m,y),{elem:m,diff:y}},`recursiveRender`),O=t.h(async(n,a)=>{let s=new o.t({multigraph:!0,compound:!0}).setGraph({rankdir:n.direction,nodesep:n.config?.nodeSpacing||n.config?.flowchart?.nodeSpacing||n.nodeSpacing,ranksep:n.config?.rankSpacing||n.config?.flowchart?.rankSpacing||n.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),c=a.select(`g`);i.i(c,n.markers,n.type,n.diagramId),r.n(),i.t(),r.t(),h(),n.nodes.forEach(e=>{s.setNode(e.id,{...e}),e.parentId&&s.setParent(e.id,e.parentId)}),t.g.debug(`Edges:`,n.edges),n.edges.forEach(e=>{if(e.start===e.end){let t=e.start,n=t+`---`+t+`---1`,r=t+`---`+t+`---2`,i=s.node(t);s.setNode(n,{domId:n,id:n,parentId:i.parentId,labelStyle:``,label:``,padding:0,shape:`labelRect`,style:``,width:10,height:10}),s.setParent(n,i.parentId),s.setNode(r,{domId:r,id:r,parentId:i.parentId,labelStyle:``,padding:0,shape:`labelRect`,label:``,style:``,width:10,height:10}),s.setParent(r,i.parentId);let a=structuredClone(e),o=structuredClone(e),c=structuredClone(e);a.label=``,a.arrowTypeEnd=`none`,a.id=t+`-cyclic-special-1`,o.arrowTypeStart=`none`,o.arrowTypeEnd=`none`,o.id=t+`-cyclic-special-mid`,c.label=``,i.isGroup&&(a.fromCluster=t,c.toCluster=t),c.id=t+`-cyclic-special-2`,c.arrowTypeStart=`none`,s.setEdge(t,n,a,t+`-cyclic-special-0`),s.setEdge(n,r,o,t+`-cyclic-special-1`),s.setEdge(r,t,c,t+`-cyc<lic-special-2`)}else s.setEdge(e.start,e.end,{...e},e.id)}),t.g.warn(`Graph at first:`,JSON.stringify(l(s))),C(s),t.g.warn(`Graph after XAX:`,JSON.stringify(l(s)));let u=e.b();await D(c,s,n.type,n.diagramId,void 0,u)},`render`);exports.render=O;
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
//#region node_modules/d3-format/src/formatDecimal.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
|
|
4
|
+
}
|
|
5
|
+
function t(e, t) {
|
|
6
|
+
if (!isFinite(e) || e === 0) return null;
|
|
7
|
+
var n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e"), r = e.slice(0, n);
|
|
8
|
+
return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region node_modules/d3-format/src/exponent.js
|
|
12
|
+
function n(e) {
|
|
13
|
+
return e = t(Math.abs(e)), e ? e[1] : NaN;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region node_modules/d3-format/src/formatGroup.js
|
|
17
|
+
function r(e, t) {
|
|
18
|
+
return function(n, r) {
|
|
19
|
+
for (var i = n.length, a = [], o = 0, s = e[0], c = 0; i > 0 && s > 0 && (c + s + 1 > r && (s = Math.max(1, r - c)), a.push(n.substring(i -= s, i + s)), !((c += s + 1) > r));) s = e[o = (o + 1) % e.length];
|
|
20
|
+
return a.reverse().join(t);
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region node_modules/d3-format/src/formatNumerals.js
|
|
25
|
+
function i(e) {
|
|
26
|
+
return function(t) {
|
|
27
|
+
return t.replace(/[0-9]/g, function(t) {
|
|
28
|
+
return e[+t];
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region node_modules/d3-format/src/formatSpecifier.js
|
|
34
|
+
var a = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
35
|
+
function o(e) {
|
|
36
|
+
if (!(t = a.exec(e))) throw Error("invalid format: " + e);
|
|
37
|
+
var t;
|
|
38
|
+
return new s({
|
|
39
|
+
fill: t[1],
|
|
40
|
+
align: t[2],
|
|
41
|
+
sign: t[3],
|
|
42
|
+
symbol: t[4],
|
|
43
|
+
zero: t[5],
|
|
44
|
+
width: t[6],
|
|
45
|
+
comma: t[7],
|
|
46
|
+
precision: t[8] && t[8].slice(1),
|
|
47
|
+
trim: t[9],
|
|
48
|
+
type: t[10]
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
o.prototype = s.prototype;
|
|
52
|
+
function s(e) {
|
|
53
|
+
this.fill = e.fill === void 0 ? " " : e.fill + "", this.align = e.align === void 0 ? ">" : e.align + "", this.sign = e.sign === void 0 ? "-" : e.sign + "", this.symbol = e.symbol === void 0 ? "" : e.symbol + "", this.zero = !!e.zero, this.width = e.width === void 0 ? void 0 : +e.width, this.comma = !!e.comma, this.precision = e.precision === void 0 ? void 0 : +e.precision, this.trim = !!e.trim, this.type = e.type === void 0 ? "" : e.type + "";
|
|
54
|
+
}
|
|
55
|
+
s.prototype.toString = function() {
|
|
56
|
+
return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
|
|
57
|
+
};
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region node_modules/d3-format/src/formatTrim.js
|
|
60
|
+
function c(e) {
|
|
61
|
+
out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
|
|
62
|
+
case ".":
|
|
63
|
+
r = i = n;
|
|
64
|
+
break;
|
|
65
|
+
case "0":
|
|
66
|
+
r === 0 && (r = n), i = n;
|
|
67
|
+
break;
|
|
68
|
+
default:
|
|
69
|
+
if (!+e[n]) break out;
|
|
70
|
+
r > 0 && (r = 0);
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
return r > 0 ? e.slice(0, r) + e.slice(i + 1) : e;
|
|
74
|
+
}
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region node_modules/d3-format/src/formatPrefixAuto.js
|
|
77
|
+
var l;
|
|
78
|
+
function u(e, n) {
|
|
79
|
+
var r = t(e, n);
|
|
80
|
+
if (!r) return l = void 0, e.toPrecision(n);
|
|
81
|
+
var i = r[0], a = r[1], o = a - (l = Math.max(-8, Math.min(8, Math.floor(a / 3))) * 3) + 1, s = i.length;
|
|
82
|
+
return o === s ? i : o > s ? i + Array(o - s + 1).join("0") : o > 0 ? i.slice(0, o) + "." + i.slice(o) : "0." + Array(1 - o).join("0") + t(e, Math.max(0, n + o - 1))[0];
|
|
83
|
+
}
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region node_modules/d3-format/src/formatRounded.js
|
|
86
|
+
function d(e, n) {
|
|
87
|
+
var r = t(e, n);
|
|
88
|
+
if (!r) return e + "";
|
|
89
|
+
var i = r[0], a = r[1];
|
|
90
|
+
return a < 0 ? "0." + Array(-a).join("0") + i : i.length > a + 1 ? i.slice(0, a + 1) + "." + i.slice(a + 1) : i + Array(a - i.length + 2).join("0");
|
|
91
|
+
}
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region node_modules/d3-format/src/formatTypes.js
|
|
94
|
+
var f = {
|
|
95
|
+
"%": (e, t) => (e * 100).toFixed(t),
|
|
96
|
+
b: (e) => Math.round(e).toString(2),
|
|
97
|
+
c: (e) => e + "",
|
|
98
|
+
d: e,
|
|
99
|
+
e: (e, t) => e.toExponential(t),
|
|
100
|
+
f: (e, t) => e.toFixed(t),
|
|
101
|
+
g: (e, t) => e.toPrecision(t),
|
|
102
|
+
o: (e) => Math.round(e).toString(8),
|
|
103
|
+
p: (e, t) => d(e * 100, t),
|
|
104
|
+
r: d,
|
|
105
|
+
s: u,
|
|
106
|
+
X: (e) => Math.round(e).toString(16).toUpperCase(),
|
|
107
|
+
x: (e) => Math.round(e).toString(16)
|
|
108
|
+
};
|
|
109
|
+
//#endregion
|
|
110
|
+
//#region node_modules/d3-format/src/identity.js
|
|
111
|
+
function p(e) {
|
|
112
|
+
return e;
|
|
113
|
+
}
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region node_modules/d3-format/src/locale.js
|
|
116
|
+
var m = Array.prototype.map, h = [
|
|
117
|
+
"y",
|
|
118
|
+
"z",
|
|
119
|
+
"a",
|
|
120
|
+
"f",
|
|
121
|
+
"p",
|
|
122
|
+
"n",
|
|
123
|
+
"µ",
|
|
124
|
+
"m",
|
|
125
|
+
"",
|
|
126
|
+
"k",
|
|
127
|
+
"M",
|
|
128
|
+
"G",
|
|
129
|
+
"T",
|
|
130
|
+
"P",
|
|
131
|
+
"E",
|
|
132
|
+
"Z",
|
|
133
|
+
"Y"
|
|
134
|
+
];
|
|
135
|
+
function g(e) {
|
|
136
|
+
var t = e.grouping === void 0 || e.thousands === void 0 ? p : r(m.call(e.grouping, Number), e.thousands + ""), a = e.currency === void 0 ? "" : e.currency[0] + "", s = e.currency === void 0 ? "" : e.currency[1] + "", u = e.decimal === void 0 ? "." : e.decimal + "", d = e.numerals === void 0 ? p : i(m.call(e.numerals, String)), g = e.percent === void 0 ? "%" : e.percent + "", _ = e.minus === void 0 ? "−" : e.minus + "", v = e.nan === void 0 ? "NaN" : e.nan + "";
|
|
137
|
+
function y(e, n) {
|
|
138
|
+
e = o(e);
|
|
139
|
+
var r = e.fill, i = e.align, p = e.sign, m = e.symbol, y = e.zero, b = e.width, x = e.comma, S = e.precision, C = e.trim, w = e.type;
|
|
140
|
+
w === "n" ? (x = !0, w = "g") : f[w] || (S === void 0 && (S = 12), C = !0, w = "g"), (y || r === "0" && i === "=") && (y = !0, r = "0", i = "=");
|
|
141
|
+
var T = (n && n.prefix !== void 0 ? n.prefix : "") + (m === "$" ? a : m === "#" && /[boxX]/.test(w) ? "0" + w.toLowerCase() : ""), E = (m === "$" ? s : /[%p]/.test(w) ? g : "") + (n && n.suffix !== void 0 ? n.suffix : ""), D = f[w], O = /[defgprs%]/.test(w);
|
|
142
|
+
S = S === void 0 ? 6 : /[gprs]/.test(w) ? Math.max(1, Math.min(21, S)) : Math.max(0, Math.min(20, S));
|
|
143
|
+
function k(e) {
|
|
144
|
+
var n = T, a = E, o, s, f;
|
|
145
|
+
if (w === "c") a = D(e) + a, e = "";
|
|
146
|
+
else {
|
|
147
|
+
e = +e;
|
|
148
|
+
var m = e < 0 || 1 / e < 0;
|
|
149
|
+
if (e = isNaN(e) ? v : D(Math.abs(e), S), C && (e = c(e)), m && +e == 0 && p !== "+" && (m = !1), n = (m ? p === "(" ? p : _ : p === "-" || p === "(" ? "" : p) + n, a = (w === "s" && !isNaN(e) && l !== void 0 ? h[8 + l / 3] : "") + a + (m && p === "(" ? ")" : ""), O) {
|
|
150
|
+
for (o = -1, s = e.length; ++o < s;) if (f = e.charCodeAt(o), 48 > f || f > 57) {
|
|
151
|
+
a = (f === 46 ? u + e.slice(o + 1) : e.slice(o)) + a, e = e.slice(0, o);
|
|
152
|
+
break;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
x && !y && (e = t(e, Infinity));
|
|
157
|
+
var g = n.length + e.length + a.length, k = g < b ? Array(b - g + 1).join(r) : "";
|
|
158
|
+
switch (x && y && (e = t(k + e, k.length ? b - a.length : Infinity), k = ""), i) {
|
|
159
|
+
case "<":
|
|
160
|
+
e = n + e + a + k;
|
|
161
|
+
break;
|
|
162
|
+
case "=":
|
|
163
|
+
e = n + k + e + a;
|
|
164
|
+
break;
|
|
165
|
+
case "^":
|
|
166
|
+
e = k.slice(0, g = k.length >> 1) + n + e + a + k.slice(g);
|
|
167
|
+
break;
|
|
168
|
+
default:
|
|
169
|
+
e = k + n + e + a;
|
|
170
|
+
break;
|
|
171
|
+
}
|
|
172
|
+
return d(e);
|
|
173
|
+
}
|
|
174
|
+
return k.toString = function() {
|
|
175
|
+
return e + "";
|
|
176
|
+
}, k;
|
|
177
|
+
}
|
|
178
|
+
function b(e, t) {
|
|
179
|
+
var r = Math.max(-8, Math.min(8, Math.floor(n(t) / 3))) * 3, i = 10 ** -r, a = y((e = o(e), e.type = "f", e), { suffix: h[8 + r / 3] });
|
|
180
|
+
return function(e) {
|
|
181
|
+
return a(i * e);
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
return {
|
|
185
|
+
format: y,
|
|
186
|
+
formatPrefix: b
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
//#endregion
|
|
190
|
+
//#region node_modules/d3-format/src/defaultLocale.js
|
|
191
|
+
var _, v, y;
|
|
192
|
+
b({
|
|
193
|
+
thousands: ",",
|
|
194
|
+
grouping: [3],
|
|
195
|
+
currency: ["$", ""]
|
|
196
|
+
});
|
|
197
|
+
function b(e) {
|
|
198
|
+
return _ = g(e), v = _.format, y = _.formatPrefix, _;
|
|
199
|
+
}
|
|
200
|
+
//#endregion
|
|
201
|
+
export { n as i, y as n, o as r, v as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function t(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function n(e){return e=t(Math.abs(e)),e?e[1]:NaN}function r(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function i(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var a=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(e){if(!(t=a.exec(e)))throw Error(`invalid format: `+e);var t;return new s({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}o.prototype=s.prototype;function s(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function c(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var l;function u(e,n){var r=t(e,n);if(!r)return l=void 0,e.toPrecision(n);var i=r[0],a=r[1],o=a-(l=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,s=i.length;return o===s?i:o>s?i+Array(o-s+1).join(`0`):o>0?i.slice(0,o)+`.`+i.slice(o):`0.`+Array(1-o).join(`0`)+t(e,Math.max(0,n+o-1))[0]}function d(e,n){var r=t(e,n);if(!r)return e+``;var i=r[0],a=r[1];return a<0?`0.`+Array(-a).join(`0`)+i:i.length>a+1?i.slice(0,a+1)+`.`+i.slice(a+1):i+Array(a-i.length+2).join(`0`)}var f={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:e,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>d(e*100,t),r:d,s:u,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function p(e){return e}var m=Array.prototype.map,h=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function g(e){var t=e.grouping===void 0||e.thousands===void 0?p:r(m.call(e.grouping,Number),e.thousands+``),a=e.currency===void 0?``:e.currency[0]+``,s=e.currency===void 0?``:e.currency[1]+``,u=e.decimal===void 0?`.`:e.decimal+``,d=e.numerals===void 0?p:i(m.call(e.numerals,String)),g=e.percent===void 0?`%`:e.percent+``,_=e.minus===void 0?`−`:e.minus+``,v=e.nan===void 0?`NaN`:e.nan+``;function y(e,n){e=o(e);var r=e.fill,i=e.align,p=e.sign,m=e.symbol,y=e.zero,b=e.width,x=e.comma,S=e.precision,C=e.trim,w=e.type;w===`n`?(x=!0,w=`g`):f[w]||(S===void 0&&(S=12),C=!0,w=`g`),(y||r===`0`&&i===`=`)&&(y=!0,r=`0`,i=`=`);var T=(n&&n.prefix!==void 0?n.prefix:``)+(m===`$`?a:m===`#`&&/[boxX]/.test(w)?`0`+w.toLowerCase():``),E=(m===`$`?s:/[%p]/.test(w)?g:``)+(n&&n.suffix!==void 0?n.suffix:``),D=f[w],O=/[defgprs%]/.test(w);S=S===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function k(e){var n=T,a=E,o,s,f;if(w===`c`)a=D(e)+a,e=``;else{e=+e;var m=e<0||1/e<0;if(e=isNaN(e)?v:D(Math.abs(e),S),C&&(e=c(e)),m&&+e==0&&p!==`+`&&(m=!1),n=(m?p===`(`?p:_:p===`-`||p===`(`?``:p)+n,a=(w===`s`&&!isNaN(e)&&l!==void 0?h[8+l/3]:``)+a+(m&&p===`(`?`)`:``),O){for(o=-1,s=e.length;++o<s;)if(f=e.charCodeAt(o),48>f||f>57){a=(f===46?u+e.slice(o+1):e.slice(o))+a,e=e.slice(0,o);break}}}x&&!y&&(e=t(e,1/0));var g=n.length+e.length+a.length,k=g<b?Array(b-g+1).join(r):``;switch(x&&y&&(e=t(k+e,k.length?b-a.length:1/0),k=``),i){case`<`:e=n+e+a+k;break;case`=`:e=n+k+e+a;break;case`^`:e=k.slice(0,g=k.length>>1)+n+e+a+k.slice(g);break;default:e=k+n+e+a;break}return d(e)}return k.toString=function(){return e+``},k}function b(e,t){var r=Math.max(-8,Math.min(8,Math.floor(n(t)/3)))*3,i=10**-r,a=y((e=o(e),e.type=`f`,e),{suffix:h[8+r/3]});return function(e){return a(i*e)}}return{format:y,formatPrefix:b}}var _,v,y;b({thousands:`,`,grouping:[3],currency:[`$`,``]});function b(e){return _=g(e),v=_.format,y=_.formatPrefix,_}Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return v}});
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { B as e, C as t, V as n, W as r, _ as i, a, c as o, d as s, v as c, y as l } from "./chunk-ICPOFSXX-Sn6LWD0k.js";
|
|
2
|
+
import { g as u, h as d } from "./src-BQiFKP24.js";
|
|
3
|
+
import { r as f } from "./chunk-5PVQY5BW-C5U7sJAA.js";
|
|
4
|
+
import { t as p } from "./chunk-426QAEUC-JjFVHKYG.js";
|
|
5
|
+
import { t as m } from "./chunk-4BX2VUAB-BW54-JWg.js";
|
|
6
|
+
import { t as h } from "./mermaid-parser.core-CERDf-UG.js";
|
|
7
|
+
import { t as g } from "./chunk-QZHKN3VN-Bx8I6l3c.js";
|
|
8
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/diagram-5BDNPKRD.mjs
|
|
9
|
+
var _ = new g(() => ({
|
|
10
|
+
cnt: 1,
|
|
11
|
+
stack: [{
|
|
12
|
+
id: 0,
|
|
13
|
+
level: -1,
|
|
14
|
+
name: "/",
|
|
15
|
+
children: []
|
|
16
|
+
}]
|
|
17
|
+
})), v = /* @__PURE__ */ d(() => {
|
|
18
|
+
_.reset(), a();
|
|
19
|
+
}, "clear"), y = /* @__PURE__ */ d(() => _.records.stack[0], "getRoot"), b = /* @__PURE__ */ d(() => _.records.cnt, "getCount"), x = s.treeView, S = {
|
|
20
|
+
clear: v,
|
|
21
|
+
addNode: /* @__PURE__ */ d((e, t) => {
|
|
22
|
+
for (; e <= _.records.stack[_.records.stack.length - 1].level;) _.records.stack.pop();
|
|
23
|
+
let n = {
|
|
24
|
+
id: _.records.cnt++,
|
|
25
|
+
level: e,
|
|
26
|
+
name: t,
|
|
27
|
+
children: []
|
|
28
|
+
};
|
|
29
|
+
_.records.stack[_.records.stack.length - 1].children.push(n), _.records.stack.push(n);
|
|
30
|
+
}, "addNode"),
|
|
31
|
+
getRoot: y,
|
|
32
|
+
getCount: b,
|
|
33
|
+
getConfig: /* @__PURE__ */ d(() => f(x, l().treeView), "getConfig"),
|
|
34
|
+
getAccTitle: c,
|
|
35
|
+
getAccDescription: i,
|
|
36
|
+
getDiagramTitle: t,
|
|
37
|
+
setAccDescription: e,
|
|
38
|
+
setAccTitle: n,
|
|
39
|
+
setDiagramTitle: r
|
|
40
|
+
}, C = /* @__PURE__ */ d((e) => {
|
|
41
|
+
m(e, S), e.nodes.map((e) => S.addNode(e.indent ? parseInt(e.indent) : 0, e.name));
|
|
42
|
+
}, "populate"), w = { parse: /* @__PURE__ */ d(async (e) => {
|
|
43
|
+
let t = await h("treeView", e);
|
|
44
|
+
u.debug(t), C(t);
|
|
45
|
+
}, "parse") }, T = /* @__PURE__ */ d((e, t, n, r, i) => {
|
|
46
|
+
let a = r.append("text").text(n.name).attr("dominant-baseline", "middle").attr("class", "treeView-node-label"), { height: o, width: s } = a.node().getBBox(), c = o + i.paddingY * 2, l = s + i.paddingX * 2;
|
|
47
|
+
a.attr("x", e + i.paddingX), a.attr("y", t + c / 2), n.BBox = {
|
|
48
|
+
x: e,
|
|
49
|
+
y: t,
|
|
50
|
+
width: l,
|
|
51
|
+
height: c
|
|
52
|
+
};
|
|
53
|
+
}, "positionLabel"), E = /* @__PURE__ */ d((e, t, n, r, i, a) => e.append("line").attr("x1", t).attr("y1", n).attr("x2", r).attr("y2", i).attr("stroke-width", a).attr("class", "treeView-node-line"), "positionLine"), D = /* @__PURE__ */ d((e, t, n) => {
|
|
54
|
+
let r = 0, i = 0, a = /* @__PURE__ */ d((e, t, n, a) => {
|
|
55
|
+
let o = a * (n.rowIndent + n.paddingX);
|
|
56
|
+
T(o, r, t, e, n);
|
|
57
|
+
let { height: s, width: c } = t.BBox;
|
|
58
|
+
E(e, o - n.rowIndent, r + s / 2, o, r + s / 2, n.lineThickness), i = Math.max(i, o + c), r += s;
|
|
59
|
+
}, "drawNode"), o = /* @__PURE__ */ d((t, r = 0) => {
|
|
60
|
+
a(e, t, n, r), t.children.forEach((e) => {
|
|
61
|
+
o(e, r + 1);
|
|
62
|
+
});
|
|
63
|
+
let { x: i, y: s, height: c } = t.BBox;
|
|
64
|
+
if (t.children.length) {
|
|
65
|
+
let { y: r, height: a } = t.children[t.children.length - 1].BBox;
|
|
66
|
+
E(e, i + n.paddingX, s + c, i + n.paddingX, r + a / 2 + n.lineThickness / 2, n.lineThickness);
|
|
67
|
+
}
|
|
68
|
+
}, "processNode");
|
|
69
|
+
return o(t), {
|
|
70
|
+
totalHeight: r,
|
|
71
|
+
totalWidth: i
|
|
72
|
+
};
|
|
73
|
+
}, "drawTree"), O = { draw: /* @__PURE__ */ d((e, t, n, r) => {
|
|
74
|
+
u.debug("Rendering treeView diagram\n" + e);
|
|
75
|
+
let i = r.db, a = i.getRoot(), s = i.getConfig(), c = p(t), l = c.append("g");
|
|
76
|
+
l.attr("class", "tree-view");
|
|
77
|
+
let { totalHeight: d, totalWidth: f } = D(l, a, s);
|
|
78
|
+
c.attr("viewBox", `-${s.lineThickness / 2} 0 ${f} ${d}`), o(c, d, f, s.useMaxWidth);
|
|
79
|
+
}, "draw") }, k = {
|
|
80
|
+
labelFontSize: "16px",
|
|
81
|
+
labelColor: "black",
|
|
82
|
+
lineColor: "black"
|
|
83
|
+
}, A = {
|
|
84
|
+
db: S,
|
|
85
|
+
renderer: O,
|
|
86
|
+
parser: w,
|
|
87
|
+
styles: /* @__PURE__ */ d(({ treeView: e }) => {
|
|
88
|
+
let { labelFontSize: t, labelColor: n, lineColor: r } = f(k, e);
|
|
89
|
+
return `
|
|
90
|
+
.treeView-node-label {
|
|
91
|
+
font-size: ${t};
|
|
92
|
+
fill: ${n};
|
|
93
|
+
}
|
|
94
|
+
.treeView-node-line {
|
|
95
|
+
stroke: ${r};
|
|
96
|
+
}
|
|
97
|
+
`;
|
|
98
|
+
}, "styles")
|
|
99
|
+
};
|
|
100
|
+
//#endregion
|
|
101
|
+
export { A as diagram };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
require(`./chunk-D-IZpNpi.cjs`);const e=require(`./chunk-ICPOFSXX-CoaJw-IT.cjs`),t=require(`./src-DFxq-N5I.cjs`),n=require(`./chunk-5PVQY5BW-CfQDYQZt.cjs`),r=require(`./chunk-426QAEUC-Df31vuwu.cjs`),i=require(`./chunk-4BX2VUAB-Qba52sxc.cjs`),a=require(`./mermaid-parser.core-DHpvGOZR.cjs`);var o=new(require(`./chunk-QZHKN3VN-CSMKL2rB.cjs`)).t(()=>({cnt:1,stack:[{id:0,level:-1,name:`/`,children:[]}]})),s=t.h(()=>{o.reset(),e.a()},`clear`),c=t.h(()=>o.records.stack[0],`getRoot`),l=t.h(()=>o.records.cnt,`getCount`),u=e.d.treeView,d={clear:s,addNode:t.h((e,t)=>{for(;e<=o.records.stack[o.records.stack.length-1].level;)o.records.stack.pop();let n={id:o.records.cnt++,level:e,name:t,children:[]};o.records.stack[o.records.stack.length-1].children.push(n),o.records.stack.push(n)},`addNode`),getRoot:c,getCount:l,getConfig:t.h(()=>n.r(u,e.y().treeView),`getConfig`),getAccTitle:e.v,getAccDescription:e._,getDiagramTitle:e.C,setAccDescription:e.B,setAccTitle:e.V,setDiagramTitle:e.W},f=t.h(e=>{i.t(e,d),e.nodes.map(e=>d.addNode(e.indent?parseInt(e.indent):0,e.name))},`populate`),p={parse:t.h(async e=>{let n=await a.t(`treeView`,e);t.g.debug(n),f(n)},`parse`)},m=t.h((e,t,n,r,i)=>{let a=r.append(`text`).text(n.name).attr(`dominant-baseline`,`middle`).attr(`class`,`treeView-node-label`),{height:o,width:s}=a.node().getBBox(),c=o+i.paddingY*2,l=s+i.paddingX*2;a.attr(`x`,e+i.paddingX),a.attr(`y`,t+c/2),n.BBox={x:e,y:t,width:l,height:c}},`positionLabel`),h=t.h((e,t,n,r,i,a)=>e.append(`line`).attr(`x1`,t).attr(`y1`,n).attr(`x2`,r).attr(`y2`,i).attr(`stroke-width`,a).attr(`class`,`treeView-node-line`),`positionLine`),g=t.h((e,n,r)=>{let i=0,a=0,o=t.h((e,t,n,r)=>{let o=r*(n.rowIndent+n.paddingX);m(o,i,t,e,n);let{height:s,width:c}=t.BBox;h(e,o-n.rowIndent,i+s/2,o,i+s/2,n.lineThickness),a=Math.max(a,o+c),i+=s},`drawNode`),s=t.h((t,n=0)=>{o(e,t,r,n),t.children.forEach(e=>{s(e,n+1)});let{x:i,y:a,height:c}=t.BBox;if(t.children.length){let{y:n,height:o}=t.children[t.children.length-1].BBox;h(e,i+r.paddingX,a+c,i+r.paddingX,n+o/2+r.lineThickness/2,r.lineThickness)}},`processNode`);return s(n),{totalHeight:i,totalWidth:a}},`drawTree`),_={draw:t.h((n,i,a,o)=>{t.g.debug(`Rendering treeView diagram
|
|
2
|
+
`+n);let s=o.db,c=s.getRoot(),l=s.getConfig(),u=r.t(i),d=u.append(`g`);d.attr(`class`,`tree-view`);let{totalHeight:f,totalWidth:p}=g(d,c,l);u.attr(`viewBox`,`-${l.lineThickness/2} 0 ${p} ${f}`),e.c(u,f,p,l.useMaxWidth)},`draw`)},v={labelFontSize:`16px`,labelColor:`black`,lineColor:`black`},y={db:d,renderer:_,parser:p,styles:t.h(({treeView:e})=>{let{labelFontSize:t,labelColor:r,lineColor:i}=n.r(v,e);return`
|
|
3
|
+
.treeView-node-label {
|
|
4
|
+
font-size: ${t};
|
|
5
|
+
fill: ${r};
|
|
6
|
+
}
|
|
7
|
+
.treeView-node-line {
|
|
8
|
+
stroke: ${i};
|
|
9
|
+
}
|
|
10
|
+
`},`styles`)};exports.diagram=y;
|