@sme.up/ketchup2 2.6.0 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abnfDiagram-VCTEODGH-C9blQ78p.cjs +1 -0
- package/dist/abnfDiagram-VCTEODGH-DZIaCwNE.js +89 -0
- package/dist/{arc-yUAZoqJP.js → arc-7ZXqzxve.js} +1 -1
- package/dist/{arc-CYi2lpSd.cjs → arc-DBilzVYt.cjs} +1 -1
- package/dist/architecture-7GRP2DOG-DYFsLst2.js +3 -0
- package/dist/architecture-7GRP2DOG-DdhuGtEz.cjs +1 -0
- package/dist/architectureDiagram-5GKGNRK7-B080D0D_.cjs +36 -0
- package/dist/{architectureDiagram-3BPJPVTR-CMX2LiQK.js → architectureDiagram-5GKGNRK7-BJvIxhbL.js} +338 -252
- package/dist/assets/svg/functions.svg +1 -0
- package/dist/basic-components/autocomplete/autocomplete-types.d.ts +2 -1
- package/dist/basic-components/autocomplete/autocomplete-types.d.ts.map +1 -1
- package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
- package/dist/basic-components/button/button-utils.d.ts.map +1 -1
- package/dist/basic-components/button-list/button-list-types.d.ts +2 -1
- package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
- package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
- package/dist/basic-components/cell/cell-types.d.ts +5 -0
- package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
- package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
- package/dist/basic-components/cell/cell.d.ts.map +1 -1
- package/dist/basic-components/checkbox/checkbox-types.d.ts +5 -0
- package/dist/basic-components/checkbox/checkbox-types.d.ts.map +1 -1
- package/dist/basic-components/chips/chips-types.d.ts +15 -1
- package/dist/basic-components/chips/chips-types.d.ts.map +1 -1
- package/dist/basic-components/chips/chips.d.ts.map +1 -1
- package/dist/basic-components/chips-input/chips-input-types.d.ts +5 -0
- package/dist/basic-components/chips-input/chips-input-types.d.ts.map +1 -1
- package/dist/basic-components/chips-input/chips-input.d.ts.map +1 -1
- package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts +5 -0
- package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts.map +1 -1
- package/dist/basic-components/multiple-autocomplete/multiple-autocomplete.d.ts.map +1 -1
- package/dist/basic-components/multiple-select/multiple-select-types.d.ts +5 -0
- package/dist/basic-components/multiple-select/multiple-select-types.d.ts.map +1 -1
- package/dist/basic-components/multiple-select/multiple-select.d.ts.map +1 -1
- package/dist/blockDiagram-I7D4REHJ-C5aW9ypR.js +1919 -0
- package/dist/blockDiagram-I7D4REHJ-fT7Of27R.cjs +129 -0
- package/dist/c4Diagram-7LVT6UL2-B1n5PnN5.cjs +38 -0
- package/dist/{c4Diagram-AAUBKEIU-BUOgTWLR.js → c4Diagram-7LVT6UL2-JxFfT5VH.js} +808 -789
- package/dist/channel-BvUly9jN.cjs +1 -0
- package/dist/{channel-CAhFwf6U.js → channel-D6agWknC.js} +1 -1
- package/dist/chunk-2E4U76K2-BiZwNOhf.cjs +1 -0
- package/dist/chunk-2E4U76K2-C8vehurw.js +346 -0
- package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +1 -0
- package/dist/{chunk-QZHKN3VN-cS9OamWo.js → chunk-2Q5K7J3B-kzxEEeTu.js} +2 -2
- package/dist/chunk-4HAMMTFA-Db_fcZEn.cjs +62 -0
- package/dist/{chunk-3OPIFGDE-BYuWDDGY.js → chunk-4HAMMTFA-MZIwowe1.js} +1665 -1143
- package/dist/{chunk-FMBD7UC4-Cia16Ryi.js → chunk-5VM5RSS4-Cr17nBXp.js} +2 -2
- package/dist/{chunk-FMBD7UC4-BLLpskYF.cjs → chunk-5VM5RSS4-CwDmQ9T_.cjs} +1 -1
- package/dist/{chunk-5ZQYHXKU-BvO58_5C.js → chunk-75Z2AOVW-BwUD389x.js} +56 -55
- package/dist/chunk-75Z2AOVW-RbCLc-XL.cjs +2 -0
- package/dist/chunk-CLGD4ZFX-DKRy6g5T.js +10 -0
- package/dist/chunk-CLGD4ZFX-Dvn-kRD7.cjs +1 -0
- package/dist/{chunk-CSCIHK7Q-Drr_NBLR.js → chunk-DU6HZSFF-CNSdkWoH.js} +1584 -621
- package/dist/chunk-DU6HZSFF-mznJTFyO.cjs +127 -0
- package/dist/chunk-F27PBJKO-C5NrgqMI.cjs +1 -0
- package/dist/{chunk-ND2GUHAM-CKQ1Jk8O.js → chunk-F27PBJKO-DKsmevT5.js} +18 -17
- package/dist/chunk-FOHPRMQF-BYsnEQU5.cjs +161 -0
- package/dist/{chunk-NNHCCRGN-BB1q5NkR.js → chunk-FOHPRMQF-C49KxWOg.js} +5156 -4419
- package/dist/chunk-GMAD6QVW-BVSRANO9.cjs +72 -0
- package/dist/{chunk-O5CBEL6O-BIU6TcWp.js → chunk-GMAD6QVW-DKxKOKLF.js} +459 -503
- package/dist/chunk-GVQU2GXP-BiuaO1L5.cjs +1 -0
- package/dist/chunk-GVQU2GXP-w4KY-she.js +37 -0
- package/dist/chunk-IMKFNOWR-CusIwu2H.cjs +231 -0
- package/dist/{chunk-AQP2D5EJ-Cp3ieoZF.js → chunk-IMKFNOWR-DHxMOe_C.js} +313 -291
- package/dist/{chunk-4BX2VUAB-B74FMcxr.js → chunk-JWPE2WC7-Ccb0QaC8.js} +2 -2
- package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +1 -0
- package/dist/chunk-L3NEJ4N5-B8UQMgqc.cjs +1 -0
- package/dist/chunk-L3NEJ4N5-CvNbHpcd.js +245 -0
- package/dist/chunk-LNGE3PJU-CiGrDO_F.js +1513 -0
- package/dist/chunk-LNGE3PJU-TgsSSByc.cjs +34 -0
- package/dist/{chunk-KSCS5N6A-pd39ksIM.js → chunk-OSK3NFVY-BmtDbEvT.js} +304 -195
- package/dist/chunk-OSK3NFVY-DE9_ERt9.cjs +10 -0
- package/dist/chunk-P2QGCYS3-DRvvOWJ2.js +67 -0
- package/dist/chunk-P2QGCYS3-DqT85Q-S.cjs +1 -0
- package/dist/chunk-POPQ4Y6H-CaEkosGL.js +26 -0
- package/dist/chunk-POPQ4Y6H-QqO5seyb.cjs +1 -0
- package/dist/chunk-PWAF6VOD-CbmhQpgH.js +277 -0
- package/dist/chunk-PWAF6VOD-CjrO-QHU.cjs +1 -0
- package/dist/{flowDiagram-I6XJVG4X-Dx5d6cgt.js → chunk-SHT3W25Y-DJgD-hyF.js} +581 -538
- package/dist/chunk-SHT3W25Y-DuMn9iH6.cjs +168 -0
- package/dist/chunk-SVP7TREG-BNwvtyzm.js +490 -0
- package/dist/chunk-SVP7TREG-CiwWyOxx.cjs +88 -0
- package/dist/chunk-TICWLB2K-1u0p_luB.cjs +206 -0
- package/dist/{chunk-727SXJPM-BDsxon3G.js → chunk-TICWLB2K-DqSHwYf9.js} +185 -180
- package/dist/chunk-TLUHSLCS-ZDzqyqeY.cjs +1 -0
- package/dist/{chunk-LZXEDZCA-oQMllZja.js → chunk-TLUHSLCS-opHh7fd-.js} +35 -25
- package/dist/chunk-XXDRQBXY-BF71LTT1.cjs +1 -0
- package/dist/chunk-XXDRQBXY-BZK6GgVm.js +9 -0
- package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +1 -0
- package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
- package/dist/classDiagram-ZZMXUADV-BTRkvFx4.js +30 -0
- package/dist/classDiagram-ZZMXUADV-CwAl_N60.cjs +1 -0
- package/dist/classDiagram-v2-VYDZK3BY-CFutvfy-.js +30 -0
- package/dist/classDiagram-v2-VYDZK3BY-CwAl_N60.cjs +1 -0
- package/dist/components/activity-timeline/activity-timeline-types.d.ts +46 -0
- package/dist/components/activity-timeline/activity-timeline-types.d.ts.map +1 -0
- package/dist/components/activity-timeline/activity-timeline.d.ts +4 -0
- package/dist/components/activity-timeline/activity-timeline.d.ts.map +1 -0
- package/dist/components/box-list/box-list.d.ts.map +1 -1
- package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts +12 -0
- package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts.map +1 -0
- package/dist/components/data-table/assets/data-table-row-actions.d.ts +11 -0
- package/dist/components/data-table/assets/data-table-row-actions.d.ts.map +1 -0
- package/dist/components/data-table/columns/useColumnWidths.d.ts +6 -1
- package/dist/components/data-table/columns/useColumnWidths.d.ts.map +1 -1
- package/dist/components/data-table/data-table-types.d.ts +108 -4
- package/dist/components/data-table/data-table-types.d.ts.map +1 -1
- package/dist/components/data-table/data-table.d.ts.map +1 -1
- package/dist/components/data-table/header/Header.d.ts.map +1 -1
- package/dist/components/data-table/header/header-types.d.ts +14 -4
- package/dist/components/data-table/header/header-types.d.ts.map +1 -1
- package/dist/components/data-table/sorting/parseDftSort.d.ts +14 -0
- package/dist/components/data-table/sorting/parseDftSort.d.ts.map +1 -0
- package/dist/components/data-table/sorting/parseDftSort.test.d.ts +2 -0
- package/dist/components/data-table/sorting/parseDftSort.test.d.ts.map +1 -0
- package/dist/components/data-table/sorting/sortTable-utils.d.ts +8 -9
- package/dist/components/data-table/sorting/sortTable-utils.d.ts.map +1 -1
- package/dist/components/data-table/sorting/useSortableTable.d.ts +3 -5
- package/dist/components/data-table/sorting/useSortableTable.d.ts.map +1 -1
- package/dist/components/data-table/state/datatable-state.d.ts +1 -0
- package/dist/components/data-table/state/datatable-state.d.ts.map +1 -1
- package/dist/components/tab-bar/tab-bar-assets.d.ts +1 -0
- package/dist/components/tab-bar/tab-bar-assets.d.ts.map +1 -1
- package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts +14 -0
- package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts.map +1 -0
- package/dist/components/workflow-designer/workflow-designer-types.d.ts +109 -0
- package/dist/components/workflow-designer/workflow-designer-types.d.ts.map +1 -0
- package/dist/components/workflow-designer/workflow-designer-utils.d.ts +86 -0
- package/dist/components/workflow-designer/workflow-designer-utils.d.ts.map +1 -0
- package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts +2 -0
- package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts.map +1 -0
- package/dist/components/workflow-designer/workflow-designer.d.ts +15 -0
- package/dist/components/workflow-designer/workflow-designer.d.ts.map +1 -0
- package/dist/{cose-bilkent-S5V4N54A-DZmA7Nat.js → cose-bilkent-JH36ORCC-CE0T5PqO.js} +23 -23
- package/dist/cose-bilkent-JH36ORCC-D6t9R42P.cjs +1 -0
- package/dist/cynefin-OW5HDTMX-CsZ3W32G.cjs +1 -0
- package/dist/cynefin-OW5HDTMX-DlKRHClQ.js +3 -0
- package/dist/cynefinDiagram-5FMLGOSQ-D5vkxB9p.js +349 -0
- package/dist/cynefinDiagram-5FMLGOSQ-D95Uad6U.cjs +62 -0
- package/dist/{cytoscape.esm-BU21wl3m.js → cytoscape.esm-BQqfb1oS.js} +2260 -2206
- package/dist/cytoscape.esm-TdwWzXkE.cjs +321 -0
- package/dist/dagre-GXQ25YYZ-CFXgAmuL.js +423 -0
- package/dist/dagre-GXQ25YYZ-NS5a_ezX.cjs +4 -0
- package/dist/{dagre-B2BBwKNb.cjs → dagre-nX1Mh32P.cjs} +1 -1
- package/dist/{dagre-3-RnF0EK.js → dagre-qXSFUdzO.js} +131 -131
- package/dist/diagram-S7CK7UJ4-CTj-4VAh.cjs +30 -0
- package/dist/diagram-S7CK7UJ4-DrGNegqs.js +301 -0
- package/dist/{diagram-2AECGRRQ-BITzWXbn.js → diagram-UQ7AKVKN-LU56O9S9.js} +82 -81
- package/dist/diagram-UQ7AKVKN-eskbTWOc.cjs +41 -0
- package/dist/{diagram-KO2AKTUF-DwTH3Hoo.js → diagram-VSXAHHWV-CaQnupEx.js} +66 -65
- package/dist/diagram-VSXAHHWV-DzHhzg5V.cjs +3 -0
- package/dist/diagram-VX7I27RA-D7Ibz__z.cjs +24 -0
- package/dist/{diagram-OG6HWLK6-CPzvG6Xi.js → diagram-VX7I27RA-DH-s9daK.js} +105 -104
- package/dist/diagram-Z3DM3KII-BpFP72Tr.cjs +24 -0
- package/dist/{diagram-LMA3HP47-nYPIM4Uq.js → diagram-Z3DM3KII-DWhRX2l9.js} +21 -20
- package/dist/{dist-BEmBi80K.js → dist-C7OpkiTz.js} +2 -3
- package/dist/dist-DrOEvFlx.cjs +1 -0
- package/dist/ebnfDiagram-PWID7BFC-CtT2erlt.js +100 -0
- package/dist/ebnfDiagram-PWID7BFC-DXCy8fra.cjs +1 -0
- package/dist/erDiagram-RLTQ6QDP-B-cUtqmN.cjs +99 -0
- package/dist/erDiagram-RLTQ6QDP-CxxAoCSs.js +1966 -0
- package/dist/eventmodeling-NTZA5JFV-5J5w1INt.js +3 -0
- package/dist/eventmodeling-NTZA5JFV-DcUTtbEf.cjs +1 -0
- package/dist/flowDiagram-HODETNUW-B6sXxv0S.cjs +1 -0
- package/dist/flowDiagram-HODETNUW-BUvMJJnE.js +17 -0
- package/dist/functional-components/action-list/action-list-types.d.ts +0 -7
- package/dist/functional-components/action-list/action-list-types.d.ts.map +1 -1
- package/dist/functional-components/action-list/action-list.d.ts.map +1 -1
- package/dist/functional-components/multiple-field/multiple-field-types.d.ts +2 -0
- package/dist/functional-components/multiple-field/multiple-field-types.d.ts.map +1 -1
- package/dist/functional-components/multiple-field/multiple-field.d.ts.map +1 -1
- package/dist/functional-components/row/row-types.d.ts +13 -0
- package/dist/functional-components/row/row-types.d.ts.map +1 -1
- package/dist/functional-components/row/row.d.ts.map +1 -1
- package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts +3 -1
- package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -1
- package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -1
- package/dist/functional-components/tree-picker/tree-picker-types.d.ts +42 -0
- package/dist/functional-components/tree-picker/tree-picker-types.d.ts.map +1 -0
- package/dist/functional-components/tree-picker/tree-picker.d.ts +3 -0
- package/dist/functional-components/tree-picker/tree-picker.d.ts.map +1 -0
- package/dist/ganttDiagram-EL5Y4UJY-Bee0Pd-N.cjs +292 -0
- package/dist/{ganttDiagram-6RSMTGT7-CFuwKLrB.js → ganttDiagram-EL5Y4UJY-C04RZW4s.js} +642 -639
- package/dist/gitGraph-4MIJSDKK-BCt5iiZ5.js +3 -0
- package/dist/gitGraph-4MIJSDKK-BeFVwcRC.cjs +1 -0
- package/dist/{gitGraphDiagram-PVQCEYII-B2CaQTP_.js → gitGraphDiagram-WWUBYQGX-BTcuEGsY.js} +146 -145
- package/dist/gitGraphDiagram-WWUBYQGX-DA026nbS.cjs +106 -0
- package/dist/index.d.ts +6 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/info-A6RAGUB7-C0KA0jej.cjs +1 -0
- package/dist/info-A6RAGUB7-DYBvudiC.js +3 -0
- package/dist/infoDiagram-27XIBGKW-B5nTXQEj.cjs +2 -0
- package/dist/infoDiagram-27XIBGKW-BoUOV42E.js +20 -0
- package/dist/{ishikawaDiagram-YF4QCWOH-CfOvUIo-.js → ishikawaDiagram-5VMMS53U-D15Hi9wp.js} +134 -133
- package/dist/{ishikawaDiagram-YF4QCWOH-CSRSkgHx.cjs → ishikawaDiagram-5VMMS53U-ptk0d5z2.cjs} +6 -6
- package/dist/{journeyDiagram-JHISSGLW-BMECXtd1.js → journeyDiagram-3NMN7TZE-BUb4frTN.js} +181 -180
- package/dist/{journeyDiagram-JHISSGLW-P42eSNEh.cjs → journeyDiagram-3NMN7TZE-CxVpPKa-.cjs} +8 -8
- package/dist/kanban-definition-UXKFOSKX-Cd_nphr7.cjs +89 -0
- package/dist/{kanban-definition-UN3LZRKU-DCzfGTs4.js → kanban-definition-UXKFOSKX-DkgBC20j.js} +141 -138
- package/dist/katex-DUe6VLjC.cjs +257 -0
- package/dist/{katex-D-2KeLwt.js → katex-Dyoqg6Cv.js} +1562 -1600
- package/dist/ketchup2.cjs.js +405 -101
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +151183 -119083
- package/dist/{line-0G6sJTVA.js → line-BEo8vh4N.js} +1 -1
- package/dist/{line-CLmmMPn2.cjs → line-wiGgVVGi.cjs} +1 -1
- package/dist/{linear-BNWgac81.js → linear-BNesvT28.js} +1 -1
- package/dist/{linear-yBssgUAc.cjs → linear-YA14Lx5Z.cjs} +1 -1
- package/dist/locale/en/translation.json.d.ts +23 -0
- package/dist/locale/it/translation.json.d.ts +24 -1
- package/dist/mermaid-parser.core-CqChDTj1.cjs +6 -0
- package/dist/mermaid-parser.core-oFB-qEU8.js +638 -0
- package/dist/{mindmap-definition-RKZ34NQL-DbK4qO1Z.cjs → mindmap-definition-YA3MSWOX-0PG4raFG.cjs} +11 -11
- package/dist/{mindmap-definition-RKZ34NQL-DpX8ksst.js → mindmap-definition-YA3MSWOX-Cjs12XgD.js} +156 -154
- package/dist/packet-AYTQ26CC-BEwXWBE0.js +3 -0
- package/dist/packet-AYTQ26CC-DfXUrk97.cjs +1 -0
- package/dist/pegDiagram-XKGWAZYB-BuyVzOiH.js +94 -0
- package/dist/pegDiagram-XKGWAZYB-J7VwZsJf.cjs +1 -0
- package/dist/pie-WAS4IAKB-4NfHFfJd.cjs +1 -0
- package/dist/pie-WAS4IAKB-BOR5Wwai.js +3 -0
- package/dist/pieDiagram-E7YTZNPT-B-rPB0ZO.cjs +39 -0
- package/dist/pieDiagram-E7YTZNPT-D4bB4TDP.js +205 -0
- package/dist/{quadrantDiagram-W4KKPZXB-Bgw66PrU.js → quadrantDiagram-AXDQQJYC-B6Q9biU9.js} +293 -293
- package/dist/quadrantDiagram-AXDQQJYC-C5sdY1DW.cjs +7 -0
- package/dist/radar-RG4KPBEZ-BwLQFFzF.js +3 -0
- package/dist/radar-RG4KPBEZ-_epvvHKu.cjs +1 -0
- package/dist/railroad-74A4TZTK-CaWzRQE0.js +3 -0
- package/dist/railroad-74A4TZTK-D2qbdjOh.cjs +1 -0
- package/dist/railroad-abnf-HS5TGJTU-D2tm1mra.js +3 -0
- package/dist/railroad-abnf-HS5TGJTU-_ThxftPt.cjs +1 -0
- package/dist/railroad-ebnf-LZEXJU2U-CKpMMgXK.cjs +1 -0
- package/dist/railroad-ebnf-LZEXJU2U-KAuGgmQe.js +3 -0
- package/dist/railroad-peg-WCYAUIDC-B8bfIIor.cjs +1 -0
- package/dist/railroad-peg-WCYAUIDC-XB38GivH.js +3 -0
- package/dist/railroadDiagram-O6MQD6OU-C7LfgSGm.cjs +1 -0
- package/dist/railroadDiagram-O6MQD6OU-DFR4_PxB.js +76 -0
- package/dist/{requirementDiagram-4Y6WPE33-BzNEhq-x.js → requirementDiagram-BXWQKSXE-BfWCCTu8.js} +169 -166
- package/dist/requirementDiagram-BXWQKSXE-y2O3wvFe.cjs +84 -0
- package/dist/{sankeyDiagram-5OEKKPKP-06MsaQmt.js → sankeyDiagram-P5KCCOFB-B_3NESVW.js} +109 -108
- package/dist/sankeyDiagram-P5KCCOFB-z8VLw23o.cjs +40 -0
- package/dist/sequenceDiagram-WJ2MYXX4-3cWo24Xv.cjs +162 -0
- package/dist/{sequenceDiagram-3UESZ5HK-QEaDF4MY.js → sequenceDiagram-WJ2MYXX4-B8W9PUBb.js} +692 -688
- package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
- package/dist/sizeCapture-INFHLROL-bJ2ZX4Du.cjs +1 -0
- package/dist/src-B16ML7oM.cjs +1 -0
- package/dist/{src-GDFuItmC.js → src-D-6ZfKf9.js} +587 -579
- package/dist/stateDiagram-D77RDMKH-DghYG1f5.cjs +1 -0
- package/dist/stateDiagram-D77RDMKH-IwptGFzp.js +220 -0
- package/dist/stateDiagram-v2-MP3YSRHH-0rNAzd4v.cjs +1 -0
- package/dist/stateDiagram-v2-MP3YSRHH-NATCGJSV.js +30 -0
- package/dist/swimlanes-42K2YHIH-jhIjSCsq.js +4976 -0
- package/dist/swimlanes-42K2YHIH-svHo0tVy.cjs +1 -0
- package/dist/swimlanesDiagram-VR7AAH4N-DKxpX9Hj.js +31 -0
- package/dist/swimlanesDiagram-VR7AAH4N-DcDLe-u-.cjs +8 -0
- package/dist/{timeline-definition-PNZ67QCA-DoD4D5kw.js → timeline-definition-24CTP7MA-C6u6A92C.js} +212 -211
- package/dist/timeline-definition-24CTP7MA-CA62jwSB.cjs +120 -0
- package/dist/treeView-Q6P3EWNA-CkgGYPwy.js +3 -0
- package/dist/treeView-Q6P3EWNA-zIJfTe51.cjs +1 -0
- package/dist/treemap-WGGIJYW6-CooEnQQp.cjs +1 -0
- package/dist/treemap-WGGIJYW6-D4tTzsvR.js +3 -0
- package/dist/types/data-structures.d.ts +0 -1
- package/dist/types/data-structures.d.ts.map +1 -1
- package/dist/types/global.d.ts +1 -1
- package/dist/types/global.d.ts.map +1 -1
- package/dist/types/translation.d.ts +24 -1
- package/dist/types/translation.d.ts.map +1 -1
- package/dist/utils/data-structures.d.ts +2 -1
- package/dist/utils/data-structures.d.ts.map +1 -1
- package/dist/{vennDiagram-CIIHVFJN-Du1h-z8K.js → vennDiagram-4TSXK5OY-Bt9cyeRX.js} +324 -302
- package/dist/vennDiagram-4TSXK5OY-YKU1Lb_h.cjs +34 -0
- package/dist/wardley-WFR3VGLG-Cp2KFpcw.cjs +1 -0
- package/dist/wardley-WFR3VGLG-D1o3hFSK.js +3 -0
- package/dist/wardleyDiagram-VM6X3IG4-BvyabMK8.cjs +78 -0
- package/dist/{wardleyDiagram-YWT4CUSO-CjOm3Xnp.js → wardleyDiagram-VM6X3IG4-QkNx10Ny.js} +144 -143
- package/dist/{xychartDiagram-2RQKCTM6-D0hXWFFN.js → xychartDiagram-S5SC5T6Z-BSwoR01A.js} +729 -559
- package/dist/xychartDiagram-S5SC5T6Z-BtNTzcXw.cjs +7 -0
- package/package.json +6 -2
- package/dist/architecture-7EHR7CIX-Bzeobe9Y.cjs +0 -1
- package/dist/architecture-7EHR7CIX-C8NPmR2w.js +0 -3
- package/dist/architectureDiagram-3BPJPVTR-C8DI7_Rn.cjs +0 -36
- package/dist/assets/shapeListAssets.d.ts +0 -22
- package/dist/assets/shapeListAssets.d.ts.map +0 -1
- package/dist/basic-components/card/card-slot-resolver.d.ts +0 -6
- package/dist/basic-components/card/card-slot-resolver.d.ts.map +0 -1
- package/dist/basic-components/card/card-types.d.ts +0 -43
- package/dist/basic-components/card/card-types.d.ts.map +0 -1
- package/dist/basic-components/card/card.d.ts +0 -5
- package/dist/basic-components/card/card.d.ts.map +0 -1
- package/dist/basic-components/card/flow/aside/index.d.ts +0 -2
- package/dist/basic-components/card/flow/aside/index.d.ts.map +0 -1
- package/dist/basic-components/card/flow/compact/index.d.ts +0 -2
- package/dist/basic-components/card/flow/compact/index.d.ts.map +0 -1
- package/dist/basic-components/card/flow/editorial/index.d.ts +0 -2
- package/dist/basic-components/card/flow/editorial/index.d.ts.map +0 -1
- package/dist/basic-components/card/flow/minimal/index.d.ts +0 -2
- package/dist/basic-components/card/flow/minimal/index.d.ts.map +0 -1
- package/dist/basic-components/card/flow/overlay/index.d.ts +0 -2
- package/dist/basic-components/card/flow/overlay/index.d.ts.map +0 -1
- package/dist/basic-components/card/flow/shared/flow-layout.d.ts +0 -4
- package/dist/basic-components/card/flow/shared/flow-layout.d.ts.map +0 -1
- package/dist/basic-components/card/flow/split/index.d.ts +0 -2
- package/dist/basic-components/card/flow/split/index.d.ts.map +0 -1
- package/dist/basic-components/card/flow/spotlight/index.d.ts +0 -2
- package/dist/basic-components/card/flow/spotlight/index.d.ts.map +0 -1
- package/dist/basic-components/card/flow/tiles/index.d.ts +0 -2
- package/dist/basic-components/card/flow/tiles/index.d.ts.map +0 -1
- package/dist/basic-components/card/layout-registry.d.ts +0 -4
- package/dist/basic-components/card/layout-registry.d.ts.map +0 -1
- package/dist/basic-components/card/positional/collaborator/index.d.ts +0 -4
- package/dist/basic-components/card/positional/collaborator/index.d.ts.map +0 -1
- package/dist/basic-components/card/positional/detailed-object/index.d.ts +0 -5
- package/dist/basic-components/card/positional/detailed-object/index.d.ts.map +0 -1
- package/dist/basic-components/card/positional/financial/index.d.ts +0 -4
- package/dist/basic-components/card/positional/financial/index.d.ts.map +0 -1
- package/dist/basic-components/card/positional/folder-grid/index.d.ts +0 -4
- package/dist/basic-components/card/positional/folder-grid/index.d.ts.map +0 -1
- package/dist/basic-components/card/positional/hero/index.d.ts +0 -4
- package/dist/basic-components/card/positional/hero/index.d.ts.map +0 -1
- package/dist/basic-components/card/positional/product/index.d.ts +0 -4
- package/dist/basic-components/card/positional/product/index.d.ts.map +0 -1
- package/dist/basic-components/card/positional/shared/object-card.d.ts +0 -24
- package/dist/basic-components/card/positional/shared/object-card.d.ts.map +0 -1
- package/dist/basic-components/card/positional/shared/utils.d.ts +0 -26
- package/dist/basic-components/card/positional/shared/utils.d.ts.map +0 -1
- package/dist/basic-components/card/positional/simple-object/index.d.ts +0 -5
- package/dist/basic-components/card/positional/simple-object/index.d.ts.map +0 -1
- package/dist/basic-components/card/positional/tooltip/index.d.ts +0 -4
- package/dist/basic-components/card/positional/tooltip/index.d.ts.map +0 -1
- package/dist/basic-components/card/positional/trend/index.d.ts +0 -4
- package/dist/basic-components/card/positional/trend/index.d.ts.map +0 -1
- package/dist/blockDiagram-GPEHLZMM-C7mogpj_.cjs +0 -132
- package/dist/blockDiagram-GPEHLZMM-fcAaH_Ka.js +0 -3157
- package/dist/c4Diagram-AAUBKEIU-BjsHAdap.cjs +0 -10
- package/dist/cell-NyD4Bcyq.js +0 -6457
- package/dist/cell-dpOG-xr_.cjs +0 -6
- package/dist/channel-BzP1tmYc.cjs +0 -1
- package/dist/chunk-2J33WTMH-BulZYTKs.js +0 -25
- package/dist/chunk-2J33WTMH-DIfvCbWZ.cjs +0 -1
- package/dist/chunk-3OPIFGDE-Ohf7vgmX.cjs +0 -62
- package/dist/chunk-4BX2VUAB-DdliHvKq.cjs +0 -1
- package/dist/chunk-55IACEB6-D5PlvtBC.js +0 -8
- package/dist/chunk-55IACEB6-DzCdT-ru.cjs +0 -1
- package/dist/chunk-5ZQYHXKU-35HHGVyc.cjs +0 -2
- package/dist/chunk-727SXJPM-BCv3AEZb.cjs +0 -206
- package/dist/chunk-AQP2D5EJ-CPbTYzEZ.cjs +0 -231
- package/dist/chunk-BSJP7CBP-BjkTjHJ6.js +0 -82
- package/dist/chunk-BSJP7CBP-DtjFXF0S.cjs +0 -1
- package/dist/chunk-CSCIHK7Q-WWTYrQLt.cjs +0 -122
- package/dist/chunk-Dqa2HsxW.js +0 -20
- package/dist/chunk-KSCS5N6A-DSWnBtbV.cjs +0 -10
- package/dist/chunk-L5ZTLDWV-DXk-PQPS.js +0 -32
- package/dist/chunk-L5ZTLDWV-sRcGREMv.cjs +0 -1
- package/dist/chunk-LZXEDZCA-4kbGESh2.cjs +0 -1
- package/dist/chunk-ND2GUHAM-See9KDdJ.cjs +0 -1
- package/dist/chunk-NNHCCRGN-qV8bfiMQ.cjs +0 -159
- package/dist/chunk-NZK2D7GU-CqugOMaJ.js +0 -67
- package/dist/chunk-NZK2D7GU-FNVK0iHI.cjs +0 -1
- package/dist/chunk-O5CBEL6O-BU_i0jbb.cjs +0 -70
- package/dist/chunk-QZHKN3VN-DPdobKra.cjs +0 -1
- package/dist/chunk-WU5MYG2G-BL6T82Hi.js +0 -9
- package/dist/chunk-WU5MYG2G-qi7ZaL3o.cjs +0 -1
- package/dist/chunk-XPW4576I-B9aC8EBY.js +0 -1146
- package/dist/chunk-XPW4576I-Dsm0jctf.cjs +0 -32
- package/dist/chunk-mLOUI7ql.cjs +0 -1
- package/dist/classDiagram-4FO5ZUOK-Dc-Jypl3.js +0 -29
- package/dist/classDiagram-4FO5ZUOK-Dqxk6PU-.cjs +0 -1
- package/dist/classDiagram-v2-Q7XG4LA2-DZ44tKmY.js +0 -29
- package/dist/classDiagram-v2-Q7XG4LA2-Dqxk6PU-.cjs +0 -1
- package/dist/components/shape-list/components/error-boundary.d.ts +0 -16
- package/dist/components/shape-list/components/error-boundary.d.ts.map +0 -1
- package/dist/components/shape-list/components/shape-list-drill-down.d.ts +0 -4
- package/dist/components/shape-list/components/shape-list-drill-down.d.ts.map +0 -1
- package/dist/components/shape-list/components/toolbar/command-panel.d.ts +0 -15
- package/dist/components/shape-list/components/toolbar/command-panel.d.ts.map +0 -1
- package/dist/components/shape-list/components/toolbar/command-trigger.d.ts +0 -16
- package/dist/components/shape-list/components/toolbar/command-trigger.d.ts.map +0 -1
- package/dist/components/shape-list/components/toolbar/filter-picker.d.ts +0 -14
- package/dist/components/shape-list/components/toolbar/filter-picker.d.ts.map +0 -1
- package/dist/components/shape-list/components/toolbar/json-viewer.d.ts +0 -11
- package/dist/components/shape-list/components/toolbar/json-viewer.d.ts.map +0 -1
- package/dist/components/shape-list/components/toolbar/navigation-picker.d.ts +0 -15
- package/dist/components/shape-list/components/toolbar/navigation-picker.d.ts.map +0 -1
- package/dist/components/shape-list/components/toolbar/sort-picker.d.ts +0 -14
- package/dist/components/shape-list/components/toolbar/sort-picker.d.ts.map +0 -1
- package/dist/components/shape-list/context/shape-list-context.d.ts +0 -31
- package/dist/components/shape-list/context/shape-list-context.d.ts.map +0 -1
- package/dist/components/shape-list/context/shape-list-filter-context.d.ts +0 -9
- package/dist/components/shape-list/context/shape-list-filter-context.d.ts.map +0 -1
- package/dist/components/shape-list/context/shape-list-sort-context.d.ts +0 -9
- package/dist/components/shape-list/context/shape-list-sort-context.d.ts.map +0 -1
- package/dist/components/shape-list/context/shape-list-state-context.d.ts +0 -5
- package/dist/components/shape-list/context/shape-list-state-context.d.ts.map +0 -1
- package/dist/components/shape-list/hooks/useCommandPickers.d.ts +0 -13
- package/dist/components/shape-list/hooks/useCommandPickers.d.ts.map +0 -1
- package/dist/components/shape-list/hooks/useLazyShapeData.d.ts +0 -35
- package/dist/components/shape-list/hooks/useLazyShapeData.d.ts.map +0 -1
- package/dist/components/shape-list/hooks/useLazyShapeData.test.d.ts +0 -2
- package/dist/components/shape-list/hooks/useLazyShapeData.test.d.ts.map +0 -1
- package/dist/components/shape-list/hooks/useNavigation.d.ts +0 -16
- package/dist/components/shape-list/hooks/useNavigation.d.ts.map +0 -1
- package/dist/components/shape-list/hooks/useSelection.d.ts +0 -34
- package/dist/components/shape-list/hooks/useSelection.d.ts.map +0 -1
- package/dist/components/shape-list/hooks/useStripOverflow.d.ts +0 -17
- package/dist/components/shape-list/hooks/useStripOverflow.d.ts.map +0 -1
- package/dist/components/shape-list/items/node-content.d.ts +0 -47
- package/dist/components/shape-list/items/node-content.d.ts.map +0 -1
- package/dist/components/shape-list/items/shape.d.ts +0 -20
- package/dist/components/shape-list/items/shape.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/_shared/navigation-orchestrator.d.ts +0 -13
- package/dist/components/shape-list/navigation-modes/_shared/navigation-orchestrator.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/_shared/panel/context-menu.d.ts +0 -4
- package/dist/components/shape-list/navigation-modes/_shared/panel/context-menu.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/_shared/panel/index.d.ts +0 -7
- package/dist/components/shape-list/navigation-modes/_shared/panel/index.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/_shared/panel/item-content.d.ts +0 -11
- package/dist/components/shape-list/navigation-modes/_shared/panel/item-content.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/_shared/panel/panel.d.ts +0 -18
- package/dist/components/shape-list/navigation-modes/_shared/panel/panel.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/_shared/panel/rail-item.d.ts +0 -8
- package/dist/components/shape-list/navigation-modes/_shared/panel/rail-item.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/_shared/panel/section-view.d.ts +0 -6
- package/dist/components/shape-list/navigation-modes/_shared/panel/section-view.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/_shared/panel/shell.d.ts +0 -13
- package/dist/components/shape-list/navigation-modes/_shared/panel/shell.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/_shared/panel/tree-item.d.ts +0 -9
- package/dist/components/shape-list/navigation-modes/_shared/panel/tree-item.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/_shared/strip/index.d.ts +0 -4
- package/dist/components/shape-list/navigation-modes/_shared/strip/index.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/_shared/strip/strip-child-popup.d.ts +0 -5
- package/dist/components/shape-list/navigation-modes/_shared/strip/strip-child-popup.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/_shared/strip/strip-item.d.ts +0 -5
- package/dist/components/shape-list/navigation-modes/_shared/strip/strip-item.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/_shared/strip/strip-overflow-button.d.ts +0 -5
- package/dist/components/shape-list/navigation-modes/_shared/strip/strip-overflow-button.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/catalog/index.d.ts +0 -3
- package/dist/components/shape-list/navigation-modes/catalog/index.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/catalog/shape-list-catalog.d.ts +0 -5
- package/dist/components/shape-list/navigation-modes/catalog/shape-list-catalog.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/compact/index.d.ts +0 -3
- package/dist/components/shape-list/navigation-modes/compact/index.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/compact/shape-list-compact.d.ts +0 -5
- package/dist/components/shape-list/navigation-modes/compact/shape-list-compact.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/explorer/index.d.ts +0 -4
- package/dist/components/shape-list/navigation-modes/explorer/index.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/explorer/shape-list-explorer.d.ts +0 -5
- package/dist/components/shape-list/navigation-modes/explorer/shape-list-explorer.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/explorer/shape-list-tree.d.ts +0 -5
- package/dist/components/shape-list/navigation-modes/explorer/shape-list-tree.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/h-strip/index.d.ts +0 -3
- package/dist/components/shape-list/navigation-modes/h-strip/index.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/h-strip/shape-list-h-strip.d.ts +0 -5
- package/dist/components/shape-list/navigation-modes/h-strip/shape-list-h-strip.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/modal/index.d.ts +0 -3
- package/dist/components/shape-list/navigation-modes/modal/index.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/modal/shape-list-modal.d.ts +0 -5
- package/dist/components/shape-list/navigation-modes/modal/shape-list-modal.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/rail/index.d.ts +0 -3
- package/dist/components/shape-list/navigation-modes/rail/index.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/rail/shape-list-rail.d.ts +0 -11
- package/dist/components/shape-list/navigation-modes/rail/shape-list-rail.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/sidebar/index.d.ts +0 -3
- package/dist/components/shape-list/navigation-modes/sidebar/index.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/sidebar/shape-list-sidebar.d.ts +0 -11
- package/dist/components/shape-list/navigation-modes/sidebar/shape-list-sidebar.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/slideshow/index.d.ts +0 -3
- package/dist/components/shape-list/navigation-modes/slideshow/index.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/slideshow/shape-list-slideshow.d.ts +0 -5
- package/dist/components/shape-list/navigation-modes/slideshow/shape-list-slideshow.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/v-strip/index.d.ts +0 -3
- package/dist/components/shape-list/navigation-modes/v-strip/index.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/v-strip/shape-list-v-strip.d.ts +0 -5
- package/dist/components/shape-list/navigation-modes/v-strip/shape-list-v-strip.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/workspace/index.d.ts +0 -3
- package/dist/components/shape-list/navigation-modes/workspace/index.d.ts.map +0 -1
- package/dist/components/shape-list/navigation-modes/workspace/shape-list-workspace.d.ts +0 -11
- package/dist/components/shape-list/navigation-modes/workspace/shape-list-workspace.d.ts.map +0 -1
- package/dist/components/shape-list/shape-list.d.ts +0 -5
- package/dist/components/shape-list/shape-list.d.ts.map +0 -1
- package/dist/components/shape-list/slots/renderers/brand.d.ts +0 -6
- package/dist/components/shape-list/slots/renderers/brand.d.ts.map +0 -1
- package/dist/components/shape-list/slots/renderers/cta.d.ts +0 -9
- package/dist/components/shape-list/slots/renderers/cta.d.ts.map +0 -1
- package/dist/components/shape-list/slots/renderers/icon.d.ts +0 -11
- package/dist/components/shape-list/slots/renderers/icon.d.ts.map +0 -1
- package/dist/components/shape-list/slots/renderers/section-header.d.ts +0 -7
- package/dist/components/shape-list/slots/renderers/section-header.d.ts.map +0 -1
- package/dist/components/shape-list/slots/renderers/shape-cell.d.ts +0 -9
- package/dist/components/shape-list/slots/renderers/shape-cell.d.ts.map +0 -1
- package/dist/components/shape-list/slots/slot-config.d.ts +0 -7
- package/dist/components/shape-list/slots/slot-config.d.ts.map +0 -1
- package/dist/components/shape-list/slots/slot-model.d.ts +0 -6
- package/dist/components/shape-list/slots/slot-model.d.ts.map +0 -1
- package/dist/components/shape-list/slots/slot-node.d.ts +0 -9
- package/dist/components/shape-list/slots/slot-node.d.ts.map +0 -1
- package/dist/components/shape-list/slots/slot-render-utils.d.ts +0 -11
- package/dist/components/shape-list/slots/slot-render-utils.d.ts.map +0 -1
- package/dist/components/shape-list/slots/slot-types.d.ts +0 -151
- package/dist/components/shape-list/slots/slot-types.d.ts.map +0 -1
- package/dist/components/shape-list/slots/test/slot-model.test.d.ts +0 -2
- package/dist/components/shape-list/slots/test/slot-model.test.d.ts.map +0 -1
- package/dist/components/shape-list/types/shape-list-types.d.ts +0 -181
- package/dist/components/shape-list/types/shape-list-types.d.ts.map +0 -1
- package/dist/components/shape-list/utils/column-utils.d.ts +0 -9
- package/dist/components/shape-list/utils/column-utils.d.ts.map +0 -1
- package/dist/components/shape-list/utils/debug-utils.d.ts +0 -13
- package/dist/components/shape-list/utils/debug-utils.d.ts.map +0 -1
- package/dist/components/shape-list/utils/filter-utils.d.ts +0 -12
- package/dist/components/shape-list/utils/filter-utils.d.ts.map +0 -1
- package/dist/components/shape-list/utils/keyboard-utils.d.ts +0 -12
- package/dist/components/shape-list/utils/keyboard-utils.d.ts.map +0 -1
- package/dist/components/shape-list/utils/navigation-options.d.ts +0 -30
- package/dist/components/shape-list/utils/navigation-options.d.ts.map +0 -1
- package/dist/components/shape-list/utils/node-utils.d.ts +0 -12
- package/dist/components/shape-list/utils/node-utils.d.ts.map +0 -1
- package/dist/components/shape-list/utils/sort-utils.d.ts +0 -13
- package/dist/components/shape-list/utils/sort-utils.d.ts.map +0 -1
- package/dist/components/shape-list/utils/typeahead-utils.d.ts +0 -28
- package/dist/components/shape-list/utils/typeahead-utils.d.ts.map +0 -1
- package/dist/cose-bilkent-S5V4N54A-BxQyjZqX.cjs +0 -1
- package/dist/cytoscape.esm-CElDUMAx.cjs +0 -321
- package/dist/dagre-BM42HDAG-DwRqEen8.js +0 -297
- package/dist/dagre-BM42HDAG-E2Jw6uLH.cjs +0 -4
- package/dist/diagram-2AECGRRQ-BkwGTiAT.cjs +0 -43
- package/dist/diagram-5GNKFQAL-CvMOQgoH.cjs +0 -10
- package/dist/diagram-5GNKFQAL-bsRwDc-2.js +0 -101
- package/dist/diagram-KO2AKTUF-DKGDs9Ax.cjs +0 -3
- package/dist/diagram-LMA3HP47-BojSLu6w.cjs +0 -24
- package/dist/diagram-OG6HWLK6-bHqMXqif.cjs +0 -24
- package/dist/dist-Dwq87x4R.cjs +0 -1
- package/dist/erDiagram-TEJ5UH35-BxeM1F9k.js +0 -1700
- package/dist/erDiagram-TEJ5UH35-CqUBZsAh.cjs +0 -85
- package/dist/eventmodeling-FCH6USID-Cued7Lz2.cjs +0 -1
- package/dist/eventmodeling-FCH6USID-mCB8hc7X.js +0 -3
- package/dist/flowDiagram-I6XJVG4X-DsjMn89E.cjs +0 -162
- package/dist/functional-components/shape/index.d.ts +0 -9
- package/dist/functional-components/shape/index.d.ts.map +0 -1
- package/dist/functional-components/shape/shape-map.d.ts +0 -3
- package/dist/functional-components/shape/shape-map.d.ts.map +0 -1
- package/dist/functional-components/shape/shape-registry.d.ts +0 -25
- package/dist/functional-components/shape/shape-registry.d.ts.map +0 -1
- package/dist/functional-components/shape/shape-resolver.d.ts +0 -61
- package/dist/functional-components/shape/shape-resolver.d.ts.map +0 -1
- package/dist/functional-components/shape/shape-types.d.ts +0 -55
- package/dist/functional-components/shape/shape-types.d.ts.map +0 -1
- package/dist/functional-components/shape/shape.d.ts +0 -5
- package/dist/functional-components/shape/shape.d.ts.map +0 -1
- package/dist/functional-components/shape/slot-resolver.d.ts +0 -24
- package/dist/functional-components/shape/slot-resolver.d.ts.map +0 -1
- package/dist/functional-components/shape/slot-types.d.ts +0 -27
- package/dist/functional-components/shape/slot-types.d.ts.map +0 -1
- package/dist/functional-components/shape/useSlotResolver.d.ts +0 -13
- package/dist/functional-components/shape/useSlotResolver.d.ts.map +0 -1
- package/dist/ganttDiagram-6RSMTGT7-CG_knKFc.cjs +0 -292
- package/dist/gitGraph-WXDBUCRP-B23gOjfP.js +0 -3
- package/dist/gitGraph-WXDBUCRP-Bi-Y5dA7.cjs +0 -1
- package/dist/gitGraphDiagram-PVQCEYII-B-VOfNjd.cjs +0 -106
- package/dist/info-J43DQDTF-DC3N8SoX.js +0 -3
- package/dist/info-J43DQDTF-jRjlWVKj.cjs +0 -1
- package/dist/infoDiagram-5YYISTIA-22jaR465.cjs +0 -2
- package/dist/infoDiagram-5YYISTIA-CM-al6Jc.js +0 -19
- package/dist/jsx-runtime-DCATrIRp.js +0 -183
- package/dist/jsx-runtime-DtVwqYNW.cjs +0 -6
- package/dist/kanban-definition-UN3LZRKU-DplPe2EX.cjs +0 -89
- package/dist/katex-CkiTumqg.cjs +0 -257
- package/dist/mermaid-parser.core-ADyJ_PY4.cjs +0 -3
- package/dist/mermaid-parser.core-D6xVjl2t.js +0 -373
- package/dist/packet-YPE3B663-CGZxZ1Z0.cjs +0 -1
- package/dist/packet-YPE3B663-D2JW2EUF.js +0 -3
- package/dist/pie-LRSECV5Y-BHyd33ZA.js +0 -3
- package/dist/pie-LRSECV5Y-Ca_qbHEv.cjs +0 -1
- package/dist/pieDiagram-4H26LBE5-CCgLxjTB.js +0 -165
- package/dist/pieDiagram-4H26LBE5-DAhjc9WT.cjs +0 -30
- package/dist/purify.es-9OKVhuci.js +0 -735
- package/dist/purify.es-hdXGOu6N.cjs +0 -3
- package/dist/quadrantDiagram-W4KKPZXB-BBEQhVJy.cjs +0 -7
- package/dist/radar-GUYGQ44K-BpJWFTCm.js +0 -3
- package/dist/radar-GUYGQ44K-CYqWSxO_.cjs +0 -1
- package/dist/requirementDiagram-4Y6WPE33-L_lL0BcB.cjs +0 -84
- package/dist/sankeyDiagram-5OEKKPKP-Dy9K3F81.cjs +0 -40
- package/dist/sequenceDiagram-3UESZ5HK-C69YSjBM.cjs +0 -162
- package/dist/src-CFBvxm_0.cjs +0 -1
- package/dist/stateDiagram-AJRCARHV-BTzCb_Q-.js +0 -217
- package/dist/stateDiagram-AJRCARHV-CBbDL4Ct.cjs +0 -1
- package/dist/stateDiagram-v2-BHNVJYJU-BrQR0oUL.cjs +0 -1
- package/dist/stateDiagram-v2-BHNVJYJU-C7E3JbTB.js +0 -27
- package/dist/timeline-definition-PNZ67QCA-DJ9VKw6h.cjs +0 -120
- package/dist/treeView-BLDUP644-C9tQMbiq.js +0 -3
- package/dist/treeView-BLDUP644-DKh9BcaT.cjs +0 -1
- package/dist/treemap-LRROVOQU-2aferAph.cjs +0 -1
- package/dist/treemap-LRROVOQU-CBv3oGC3.js +0 -3
- package/dist/useObjectProtocol-3BhpCUjG.cjs +0 -3
- package/dist/useObjectProtocol-DZdggHDN.js +0 -4333
- package/dist/vennDiagram-CIIHVFJN-DeRVKdRG.cjs +0 -34
- package/dist/wardley-L42UT6IY-CIM0_V5T.js +0 -3
- package/dist/wardley-L42UT6IY-DjjjOB8T.cjs +0 -1
- package/dist/wardleyDiagram-YWT4CUSO-CaaSvy6n.cjs +0 -78
- package/dist/xychartDiagram-2RQKCTM6-CWncieig.cjs +0 -7
|
@@ -1,297 +0,0 @@
|
|
|
1
|
-
import { g as e, h as t } from "./src-GDFuItmC.js";
|
|
2
|
-
import { x as n } from "./chunk-CSCIHK7Q-Drr_NBLR.js";
|
|
3
|
-
import "./chunk-5ZQYHXKU-BvO58_5C.js";
|
|
4
|
-
import "./chunk-BSJP7CBP-BjkTjHJ6.js";
|
|
5
|
-
import { n as r } from "./chunk-L5ZTLDWV-DXk-PQPS.js";
|
|
6
|
-
import "./chunk-NZK2D7GU-CqugOMaJ.js";
|
|
7
|
-
import "./chunk-O5CBEL6O-BIU6TcWp.js";
|
|
8
|
-
import { a as i, c as a, i as o, l as s, n as c, t as l, u } from "./chunk-3OPIFGDE-BYuWDDGY.js";
|
|
9
|
-
import { a as d, i as f, n as p, r as m, t as h } from "./chunk-KSCS5N6A-pd39ksIM.js";
|
|
10
|
-
import { r as g, t as _ } from "./graphlib-VMWSbyYi.js";
|
|
11
|
-
import { n as v, r as y, t as b } from "./dagre-3-RnF0EK.js";
|
|
12
|
-
//#region node_modules/lodash-es/clone.js
|
|
13
|
-
var x = 4;
|
|
14
|
-
function S(e) {
|
|
15
|
-
return y(e, x);
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region node_modules/dagre-d3-es/src/graphlib/json.js
|
|
19
|
-
function C(e) {
|
|
20
|
-
var t = {
|
|
21
|
-
options: {
|
|
22
|
-
directed: e.isDirected(),
|
|
23
|
-
multigraph: e.isMultigraph(),
|
|
24
|
-
compound: e.isCompound()
|
|
25
|
-
},
|
|
26
|
-
nodes: w(e),
|
|
27
|
-
edges: T(e)
|
|
28
|
-
};
|
|
29
|
-
return g(e.graph()) || (t.value = S(e.graph())), t;
|
|
30
|
-
}
|
|
31
|
-
function w(e) {
|
|
32
|
-
return v(e.nodes(), function(t) {
|
|
33
|
-
var n = e.node(t), r = e.parent(t), i = { v: t };
|
|
34
|
-
return g(n) || (i.value = n), g(r) || (i.parent = r), i;
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
function T(e) {
|
|
38
|
-
return v(e.edges(), function(t) {
|
|
39
|
-
var n = e.edge(t), r = {
|
|
40
|
-
v: t.v,
|
|
41
|
-
w: t.w
|
|
42
|
-
};
|
|
43
|
-
return g(t.name) || (r.name = t.name), g(n) || (r.value = n), r;
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
//#endregion
|
|
47
|
-
//#region node_modules/mermaid/dist/chunks/mermaid.core/dagre-BM42HDAG.mjs
|
|
48
|
-
var E = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ new Map(), k = /* @__PURE__ */ t(() => {
|
|
49
|
-
D.clear(), O.clear(), E.clear();
|
|
50
|
-
}, "clear"), A = /* @__PURE__ */ t((t, n) => {
|
|
51
|
-
let r = D.get(n) || [];
|
|
52
|
-
return e.trace("In isDescendant", n, " ", t, " = ", r.includes(t)), r.includes(t);
|
|
53
|
-
}, "isDescendant"), j = /* @__PURE__ */ t((t, n) => {
|
|
54
|
-
let r = D.get(n) || [];
|
|
55
|
-
return e.info("Descendants of ", n, " is ", r), e.info("Edge is ", t), t.v === n || t.w === n ? !1 : r ? r.includes(t.v) || A(t.v, n) || A(t.w, n) || r.includes(t.w) : (e.debug("Tilt, ", n, ",not in descendants"), !1);
|
|
56
|
-
}, "edgeInCluster"), M = /* @__PURE__ */ t((t, n, r, i) => {
|
|
57
|
-
e.warn("Copying children of ", t, "root", i, "data", n.node(t), i);
|
|
58
|
-
let a = n.children(t) || [];
|
|
59
|
-
t !== i && a.push(t), e.warn("Copying (nodes) clusterId", t, "nodes", a), a.forEach((a) => {
|
|
60
|
-
if (n.children(a).length > 0) M(a, n, r, i);
|
|
61
|
-
else {
|
|
62
|
-
let o = n.node(a);
|
|
63
|
-
e.info("cp ", a, " to ", i, " with parent ", t), r.setNode(a, o), i !== n.parent(a) && (e.warn("Setting parent", a, n.parent(a)), r.setParent(a, n.parent(a))), t !== i && a !== t ? (e.debug("Setting parent", a, t), r.setParent(a, t)) : (e.info("In copy ", t, "root", i, "data", n.node(t), i), e.debug("Not Setting parent for node=", a, "cluster!==rootId", t !== i, "node!==clusterId", a !== t));
|
|
64
|
-
let s = n.edges(a);
|
|
65
|
-
e.debug("Copying Edges", s), s.forEach((a) => {
|
|
66
|
-
e.info("Edge", a);
|
|
67
|
-
let o = n.edge(a.v, a.w, a.name);
|
|
68
|
-
e.info("Edge data", o, i);
|
|
69
|
-
try {
|
|
70
|
-
j(a, i) ? (e.info("Copying as ", a.v, a.w, o, a.name), r.setEdge(a.v, a.w, o, a.name), e.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : e.info("Skipping copy of edge ", a.v, "-->", a.w, " rootId: ", i, " clusterId:", t);
|
|
71
|
-
} catch (t) {
|
|
72
|
-
e.error(t);
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
e.debug("Removing node", a), n.removeNode(a);
|
|
77
|
-
});
|
|
78
|
-
}, "copy"), N = /* @__PURE__ */ t((e, t) => {
|
|
79
|
-
let n = t.children(e), r = [...n];
|
|
80
|
-
for (let i of n) O.set(i, e), r = [...r, ...N(i, t)];
|
|
81
|
-
return r;
|
|
82
|
-
}, "extractDescendants"), P = /* @__PURE__ */ t((e, t, n) => {
|
|
83
|
-
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) => ({
|
|
84
|
-
v: e.v === t ? n : e.v,
|
|
85
|
-
w: e.w === t ? t : e.w
|
|
86
|
-
})), o = i.map((e) => ({
|
|
87
|
-
v: e.v,
|
|
88
|
-
w: e.w
|
|
89
|
-
}));
|
|
90
|
-
return a.filter((e) => o.some((t) => e.v === t.v && e.w === t.w));
|
|
91
|
-
}, "findCommonEdges"), F = /* @__PURE__ */ t((t, n, r) => {
|
|
92
|
-
let i = n.children(t);
|
|
93
|
-
if (e.trace("Searching children of id ", t, i), i.length < 1) return t;
|
|
94
|
-
let a;
|
|
95
|
-
for (let e of i) {
|
|
96
|
-
let t = F(e, n, r), i = P(n, r, t);
|
|
97
|
-
if (t) if (i.length > 0) a = t;
|
|
98
|
-
else return t;
|
|
99
|
-
}
|
|
100
|
-
return a;
|
|
101
|
-
}, "findNonClusterChild"), I = /* @__PURE__ */ t((e) => !E.has(e) || !E.get(e).externalConnections ? e : E.has(e) ? E.get(e).id : e, "getAnchorId"), L = /* @__PURE__ */ t((t, n) => {
|
|
102
|
-
if (!t || n > 10) {
|
|
103
|
-
e.debug("Opting out, no graph ");
|
|
104
|
-
return;
|
|
105
|
-
} else e.debug("Opting in, graph ");
|
|
106
|
-
t.nodes().forEach(function(n) {
|
|
107
|
-
t.children(n).length > 0 && (e.warn("Cluster identified", n, " Replacement id in edges: ", F(n, t, n)), D.set(n, N(n, t)), E.set(n, {
|
|
108
|
-
id: F(n, t, n),
|
|
109
|
-
clusterData: t.node(n)
|
|
110
|
-
}));
|
|
111
|
-
}), t.nodes().forEach(function(n) {
|
|
112
|
-
let r = t.children(n), i = t.edges();
|
|
113
|
-
r.length > 0 ? (e.debug("Cluster identified", n, D), i.forEach((t) => {
|
|
114
|
-
A(t.v, n) ^ A(t.w, n) && (e.warn("Edge: ", t, " leaves cluster ", n), e.warn("Descendants of XXX ", n, ": ", D.get(n)), E.get(n).externalConnections = !0);
|
|
115
|
-
})) : e.debug("Not a cluster ", n, D);
|
|
116
|
-
});
|
|
117
|
-
for (let e of E.keys()) {
|
|
118
|
-
let n = E.get(e).id, r = t.parent(n);
|
|
119
|
-
r !== e && E.has(r) && !E.get(r).externalConnections && (E.get(e).id = r);
|
|
120
|
-
}
|
|
121
|
-
t.edges().forEach(function(n) {
|
|
122
|
-
let r = t.edge(n);
|
|
123
|
-
e.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(n)), e.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(t.edge(n)));
|
|
124
|
-
let i = n.v, a = n.w;
|
|
125
|
-
if (e.warn("Fix XXX", E, "ids:", n.v, n.w, "Translating: ", E.get(n.v), " --- ", E.get(n.w)), E.get(n.v) || E.get(n.w)) {
|
|
126
|
-
if (e.warn("Fixing and trying - removing XXX", n.v, n.w, n.name), i = I(n.v), a = I(n.w), t.removeEdge(n.v, n.w, n.name), i !== n.v) {
|
|
127
|
-
let e = t.parent(i);
|
|
128
|
-
E.get(e).externalConnections = !0, r.fromCluster = n.v;
|
|
129
|
-
}
|
|
130
|
-
if (a !== n.w) {
|
|
131
|
-
let e = t.parent(a);
|
|
132
|
-
E.get(e).externalConnections = !0, r.toCluster = n.w;
|
|
133
|
-
}
|
|
134
|
-
e.warn("Fix Replacing with XXX", i, a, n.name), t.setEdge(i, a, r, n.name);
|
|
135
|
-
}
|
|
136
|
-
}), e.warn("Adjusted Graph", C(t)), R(t, 0), e.trace(E);
|
|
137
|
-
}, "adjustClustersAndEdges"), R = /* @__PURE__ */ t((t, n) => {
|
|
138
|
-
if (e.warn("extractor - ", n, C(t), t.children("D")), n > 10) {
|
|
139
|
-
e.error("Bailing out");
|
|
140
|
-
return;
|
|
141
|
-
}
|
|
142
|
-
let r = t.nodes(), i = !1;
|
|
143
|
-
for (let e of r) {
|
|
144
|
-
let n = t.children(e);
|
|
145
|
-
i ||= n.length > 0;
|
|
146
|
-
}
|
|
147
|
-
if (!i) {
|
|
148
|
-
e.debug("Done, no node has children", t.nodes());
|
|
149
|
-
return;
|
|
150
|
-
}
|
|
151
|
-
e.debug("Nodes = ", r, n);
|
|
152
|
-
for (let i of r) if (e.debug("Extracting node", i, E, E.has(i) && !E.get(i).externalConnections, !t.parent(i), t.node(i), t.children("D"), " Depth ", n), !E.has(i)) e.debug("Not a cluster", i, n);
|
|
153
|
-
else if (!E.get(i).externalConnections && t.children(i) && t.children(i).length > 0) {
|
|
154
|
-
e.warn("Cluster without external connections, without a parent and with children", i, n);
|
|
155
|
-
let r = t.graph().rankdir === "TB" ? "LR" : "TB";
|
|
156
|
-
E.get(i)?.clusterData?.dir && (r = E.get(i).clusterData.dir, e.warn("Fixing dir", E.get(i).clusterData.dir, r));
|
|
157
|
-
let a = new _({
|
|
158
|
-
multigraph: !0,
|
|
159
|
-
compound: !0
|
|
160
|
-
}).setGraph({
|
|
161
|
-
rankdir: r,
|
|
162
|
-
nodesep: 50,
|
|
163
|
-
ranksep: 50,
|
|
164
|
-
marginx: 8,
|
|
165
|
-
marginy: 8
|
|
166
|
-
}).setDefaultEdgeLabel(function() {
|
|
167
|
-
return {};
|
|
168
|
-
});
|
|
169
|
-
e.warn("Old graph before copy", C(t)), M(i, t, a, i), t.setNode(i, {
|
|
170
|
-
clusterNode: !0,
|
|
171
|
-
id: i,
|
|
172
|
-
clusterData: E.get(i).clusterData,
|
|
173
|
-
label: E.get(i).label,
|
|
174
|
-
graph: a
|
|
175
|
-
}), e.warn("New graph after copy node: (", i, ")", C(a)), e.debug("Old graph after copy", C(t));
|
|
176
|
-
} else e.warn("Cluster ** ", i, " **not meeting the criteria !externalConnections:", !E.get(i).externalConnections, " no parent: ", !t.parent(i), " children ", t.children(i) && t.children(i).length > 0, t.children("D"), n), e.debug(E);
|
|
177
|
-
r = t.nodes(), e.warn("New list of nodes", r);
|
|
178
|
-
for (let i of r) {
|
|
179
|
-
let r = t.node(i);
|
|
180
|
-
e.warn(" Now next level", i, r), r?.clusterNode && R(r.graph, n + 1);
|
|
181
|
-
}
|
|
182
|
-
}, "extractor"), z = /* @__PURE__ */ t((e, t) => {
|
|
183
|
-
if (t.length === 0) return [];
|
|
184
|
-
let n = Object.assign([], t);
|
|
185
|
-
return t.forEach((t) => {
|
|
186
|
-
let r = z(e, e.children(t));
|
|
187
|
-
n = [...n, ...r];
|
|
188
|
-
}), n;
|
|
189
|
-
}, "sorter"), B = /* @__PURE__ */ t((e) => z(e, e.children()), "sortNodesByHierarchy"), V = /* @__PURE__ */ t(async (n, c, l, f, h, g) => {
|
|
190
|
-
e.warn("Graph in recursive render:XAX", C(c), h);
|
|
191
|
-
let _ = c.graph().rankdir;
|
|
192
|
-
e.trace("Dir in recursive render - dir:", _);
|
|
193
|
-
let v = n.insert("g").attr("class", "root");
|
|
194
|
-
c.nodes() ? e.info("Recursive render XXX", c.nodes()) : e.info("No nodes found for", c), c.edges().length > 0 && e.info("Recursive edges", c.edge(c.edges()[0]));
|
|
195
|
-
let y = v.insert("g").attr("class", "clusters"), x = v.insert("g").attr("class", "edgePaths"), S = v.insert("g").attr("class", "edgeLabels"), w = v.insert("g").attr("class", "nodes");
|
|
196
|
-
await Promise.all(c.nodes().map(async function(t) {
|
|
197
|
-
let n = c.node(t);
|
|
198
|
-
if (h !== void 0) {
|
|
199
|
-
let n = JSON.parse(JSON.stringify(h.clusterData));
|
|
200
|
-
e.trace("Setting data for parent cluster XXX\n Node.id = ", t, "\n data=", n.height, "\nParent cluster", h.height), c.setNode(h.id, n), c.parent(t) || (e.trace("Setting parent", t, h.id), c.setParent(t, h.id, n));
|
|
201
|
-
}
|
|
202
|
-
if (e.info("(Insert) Node XXX" + t + ": " + JSON.stringify(c.node(t))), n?.clusterNode) {
|
|
203
|
-
e.info("Cluster identified XBX", t, n.width, c.node(t));
|
|
204
|
-
let { ranksep: r, nodesep: i } = c.graph();
|
|
205
|
-
n.graph.setGraph({
|
|
206
|
-
...n.graph.graph(),
|
|
207
|
-
ranksep: r + 25,
|
|
208
|
-
nodesep: i
|
|
209
|
-
});
|
|
210
|
-
let a = await V(w, n.graph, l, f, c.node(t), g), o = a.elem;
|
|
211
|
-
u(n, o), n.diff = a.diff || 0, e.info("New compound node after recursive render XAX", t, "width", n.width, "height", n.height), s(o, n);
|
|
212
|
-
} else c.children(t).length > 0 ? (e.trace("Cluster - the non recursive path XBX", t, n.id, n, n.width, "Graph:", c), e.trace(F(n.id, c)), E.set(n.id, {
|
|
213
|
-
id: F(n.id, c),
|
|
214
|
-
node: n
|
|
215
|
-
})) : (e.trace("Node - the non recursive path XAX", t, w, c.node(t), _), await i(w, c.node(t), {
|
|
216
|
-
config: g,
|
|
217
|
-
dir: _
|
|
218
|
-
}));
|
|
219
|
-
})), await (/* @__PURE__ */ t(async () => {
|
|
220
|
-
let t = c.edges().map(async function(t) {
|
|
221
|
-
let n = c.edge(t.v, t.w, t.name);
|
|
222
|
-
e.info("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(t)), e.info("Edge " + t.v + " -> " + t.w + ": ", t, " ", JSON.stringify(c.edge(t))), e.info("Fix", E, "ids:", t.v, t.w, "Translating: ", E.get(t.v), E.get(t.w)), await m(S, n);
|
|
223
|
-
});
|
|
224
|
-
await Promise.all(t);
|
|
225
|
-
}, "processEdges"))(), e.info("Graph before layout:", JSON.stringify(C(c))), e.info("############################################# XXX"), e.info("### Layout ### XXX"), e.info("############################################# XXX"), b(c), e.info("Graph after layout:", JSON.stringify(C(c)));
|
|
226
|
-
let T = 0, { subGraphTitleTotalMargin: D } = r(g);
|
|
227
|
-
return await Promise.all(B(c).map(async function(t) {
|
|
228
|
-
let n = c.node(t);
|
|
229
|
-
if (e.info("Position XBX => " + t + ": (" + n.x, "," + n.y, ") width: ", n.width, " height: ", n.height), n?.clusterNode) n.y += D, e.info("A tainted cluster node XBX1", t, n.id, n.width, n.height, n.x, n.y, c.parent(t)), E.get(n.id).node = n, a(n);
|
|
230
|
-
else if (c.children(t).length > 0) {
|
|
231
|
-
e.info("A pure cluster node XBX1", t, n.id, n.x, n.y, n.width, n.height, c.parent(t)), n.height += D, c.node(n.parentId);
|
|
232
|
-
let r = n?.padding / 2 || 0, i = n?.labelBBox?.height || 0, a = i - r || 0;
|
|
233
|
-
e.debug("OffsetY", a, "labelHeight", i, "halfPadding", r), await o(y, n), E.get(n.id).node = n;
|
|
234
|
-
} else {
|
|
235
|
-
let t = c.node(n.parentId);
|
|
236
|
-
n.y += D / 2, e.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", t, t?.offsetY, n), a(n);
|
|
237
|
-
}
|
|
238
|
-
})), c.edges().forEach(function(t) {
|
|
239
|
-
let n = c.edge(t);
|
|
240
|
-
e.info("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(n), n), n.points.forEach((e) => e.y += D / 2), d(n, p(x, n, E, l, c.node(t.v), c.node(t.w), f));
|
|
241
|
-
}), c.nodes().forEach(function(t) {
|
|
242
|
-
let n = c.node(t);
|
|
243
|
-
e.info(t, n.type, n.diff), n.isGroup && (T = n.diff);
|
|
244
|
-
}), e.warn("Returning from recursive render XAX", v, T), {
|
|
245
|
-
elem: v,
|
|
246
|
-
diff: T
|
|
247
|
-
};
|
|
248
|
-
}, "recursiveRender"), H = /* @__PURE__ */ t(async (t, r) => {
|
|
249
|
-
let i = new _({
|
|
250
|
-
multigraph: !0,
|
|
251
|
-
compound: !0
|
|
252
|
-
}).setGraph({
|
|
253
|
-
rankdir: t.direction,
|
|
254
|
-
nodesep: t.config?.nodeSpacing || t.config?.flowchart?.nodeSpacing || t.nodeSpacing,
|
|
255
|
-
ranksep: t.config?.rankSpacing || t.config?.flowchart?.rankSpacing || t.rankSpacing,
|
|
256
|
-
marginx: 8,
|
|
257
|
-
marginy: 8
|
|
258
|
-
}).setDefaultEdgeLabel(function() {
|
|
259
|
-
return {};
|
|
260
|
-
}), a = r.select("g");
|
|
261
|
-
f(a, t.markers, t.type, t.diagramId), c(), h(), l(), k(), t.nodes.forEach((e) => {
|
|
262
|
-
i.setNode(e.id, { ...e }), e.parentId && i.setParent(e.id, e.parentId);
|
|
263
|
-
}), e.debug("Edges:", t.edges), t.edges.forEach((e) => {
|
|
264
|
-
if (e.start === e.end) {
|
|
265
|
-
let t = e.start, n = t + "---" + t + "---1", r = t + "---" + t + "---2", a = i.node(t);
|
|
266
|
-
i.setNode(n, {
|
|
267
|
-
domId: n,
|
|
268
|
-
id: n,
|
|
269
|
-
parentId: a.parentId,
|
|
270
|
-
labelStyle: "",
|
|
271
|
-
label: "",
|
|
272
|
-
padding: 0,
|
|
273
|
-
shape: "labelRect",
|
|
274
|
-
style: "",
|
|
275
|
-
width: 10,
|
|
276
|
-
height: 10
|
|
277
|
-
}), i.setParent(n, a.parentId), i.setNode(r, {
|
|
278
|
-
domId: r,
|
|
279
|
-
id: r,
|
|
280
|
-
parentId: a.parentId,
|
|
281
|
-
labelStyle: "",
|
|
282
|
-
padding: 0,
|
|
283
|
-
shape: "labelRect",
|
|
284
|
-
label: "",
|
|
285
|
-
style: "",
|
|
286
|
-
width: 10,
|
|
287
|
-
height: 10
|
|
288
|
-
}), i.setParent(r, a.parentId);
|
|
289
|
-
let o = structuredClone(e), s = structuredClone(e), c = structuredClone(e);
|
|
290
|
-
o.label = "", o.arrowTypeEnd = "none", o.endLabelLeft = "", o.endLabelRight = "", o.startLabelLeft = "", o.id = t + "-cyclic-special-1", s.startLabelRight = "", s.startLabelLeft = "", s.endLabelLeft = "", s.endLabelRight = "", s.arrowTypeStart = "none", s.arrowTypeEnd = "none", s.id = t + "-cyclic-special-mid", c.label = "", c.startLabelRight = "", c.startLabelLeft = "", c.arrowTypeStart = "none", 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");
|
|
291
|
-
} else i.setEdge(e.start, e.end, { ...e }, e.id);
|
|
292
|
-
}), e.warn("Graph at first:", JSON.stringify(C(i))), L(i), e.warn("Graph after XAX:", JSON.stringify(C(i)));
|
|
293
|
-
let o = n();
|
|
294
|
-
await V(a, i, t.type, t.diagramId, void 0, o);
|
|
295
|
-
}, "render");
|
|
296
|
-
//#endregion
|
|
297
|
-
export { H as render };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const e=require("./src-CFBvxm_0.cjs"),t=require("./chunk-CSCIHK7Q-WWTYrQLt.cjs");require("./chunk-5ZQYHXKU-35HHGVyc.cjs"),require("./chunk-BSJP7CBP-DtjFXF0S.cjs");const n=require("./chunk-L5ZTLDWV-sRcGREMv.cjs");require("./chunk-NZK2D7GU-FNVK0iHI.cjs"),require("./chunk-O5CBEL6O-BU_i0jbb.cjs");const r=require("./chunk-3OPIFGDE-Ohf7vgmX.cjs"),i=require("./chunk-KSCS5N6A-DSWnBtbV.cjs"),a=require("./graphlib-CkkG5MuS.cjs"),o=require("./dagre-B2BBwKNb.cjs");var s=4;function c(e){return o.r(e,s)}function l(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:u(e),edges:d(e)};return a.r(e.graph())||(t.value=c(e.graph())),t}function u(e){return o.n(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),i={v:t};return a.r(n)||(i.value=n),a.r(r)||(i.parent=r),i})}function d(e){return o.n(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return a.r(t.name)||(r.name=t.name),a.r(n)||(r.value=n),r})}var f=new Map,p=new Map,m=new Map,h=e.h(()=>{p.clear(),m.clear(),f.clear()},`clear`),g=e.h((t,n)=>{let r=p.get(n)||[];return e.g.trace(`In isDescendant`,n,` `,t,` = `,r.includes(t)),r.includes(t)},`isDescendant`),_=e.h((t,n)=>{let r=p.get(n)||[];return e.g.info(`Descendants of `,n,` is `,r),e.g.info(`Edge is `,t),t.v===n||t.w===n?!1:r?r.includes(t.v)||g(t.v,n)||g(t.w,n)||r.includes(t.w):(e.g.debug(`Tilt, `,n,`,not in descendants`),!1)},`edgeInCluster`),v=e.h((t,n,r,i)=>{e.g.warn(`Copying children of `,t,`root`,i,`data`,n.node(t),i);let a=n.children(t)||[];t!==i&&a.push(t),e.g.warn(`Copying (nodes) clusterId`,t,`nodes`,a),a.forEach(a=>{if(n.children(a).length>0)v(a,n,r,i);else{let o=n.node(a);e.g.info(`cp `,a,` to `,i,` with parent `,t),r.setNode(a,o),i!==n.parent(a)&&(e.g.warn(`Setting parent`,a,n.parent(a)),r.setParent(a,n.parent(a))),t!==i&&a!==t?(e.g.debug(`Setting parent`,a,t),r.setParent(a,t)):(e.g.info(`In copy `,t,`root`,i,`data`,n.node(t),i),e.g.debug(`Not Setting parent for node=`,a,`cluster!==rootId`,t!==i,`node!==clusterId`,a!==t));let s=n.edges(a);e.g.debug(`Copying Edges`,s),s.forEach(a=>{e.g.info(`Edge`,a);let o=n.edge(a.v,a.w,a.name);e.g.info(`Edge data`,o,i);try{_(a,i)?(e.g.info(`Copying as `,a.v,a.w,o,a.name),r.setEdge(a.v,a.w,o,a.name),e.g.info(`newGraph edges `,r.edges(),r.edge(r.edges()[0]))):e.g.info(`Skipping copy of edge `,a.v,`-->`,a.w,` rootId: `,i,` clusterId:`,t)}catch(t){e.g.error(t)}})}e.g.debug(`Removing node`,a),n.removeNode(a)})},`copy`),y=e.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=e.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=e.h((t,n,r)=>{let i=n.children(t);if(e.g.trace(`Searching children of id `,t,i),i.length<1)return t;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=e.h(e=>!f.has(e)||!f.get(e).externalConnections?e:f.has(e)?f.get(e).id:e,`getAnchorId`),C=e.h((t,n)=>{if(!t||n>10){e.g.debug(`Opting out, no graph `);return}else e.g.debug(`Opting in, graph `);t.nodes().forEach(function(n){t.children(n).length>0&&(e.g.warn(`Cluster identified`,n,` Replacement id in edges: `,x(n,t,n)),p.set(n,y(n,t)),f.set(n,{id:x(n,t,n),clusterData:t.node(n)}))}),t.nodes().forEach(function(n){let r=t.children(n),i=t.edges();r.length>0?(e.g.debug(`Cluster identified`,n,p),i.forEach(t=>{g(t.v,n)^g(t.w,n)&&(e.g.warn(`Edge: `,t,` leaves cluster `,n),e.g.warn(`Descendants of XXX `,n,`: `,p.get(n)),f.get(n).externalConnections=!0)})):e.g.debug(`Not a cluster `,n,p)});for(let e of f.keys()){let n=f.get(e).id,r=t.parent(n);r!==e&&f.has(r)&&!f.get(r).externalConnections&&(f.get(e).id=r)}t.edges().forEach(function(n){let r=t.edge(n);e.g.warn(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(n)),e.g.warn(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(t.edge(n)));let i=n.v,a=n.w;if(e.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(e.g.warn(`Fixing and trying - removing XXX`,n.v,n.w,n.name),i=S(n.v),a=S(n.w),t.removeEdge(n.v,n.w,n.name),i!==n.v){let e=t.parent(i);f.get(e).externalConnections=!0,r.fromCluster=n.v}if(a!==n.w){let e=t.parent(a);f.get(e).externalConnections=!0,r.toCluster=n.w}e.g.warn(`Fix Replacing with XXX`,i,a,n.name),t.setEdge(i,a,r,n.name)}}),e.g.warn(`Adjusted Graph`,l(t)),w(t,0),e.g.trace(f)},`adjustClustersAndEdges`),w=e.h((t,n)=>{if(e.g.warn(`extractor - `,n,l(t),t.children(`D`)),n>10){e.g.error(`Bailing out`);return}let r=t.nodes(),i=!1;for(let e of r){let n=t.children(e);i||=n.length>0}if(!i){e.g.debug(`Done, no node has children`,t.nodes());return}e.g.debug(`Nodes = `,r,n);for(let i of r)if(e.g.debug(`Extracting node`,i,f,f.has(i)&&!f.get(i).externalConnections,!t.parent(i),t.node(i),t.children(`D`),` Depth `,n),!f.has(i))e.g.debug(`Not a cluster`,i,n);else if(!f.get(i).externalConnections&&t.children(i)&&t.children(i).length>0){e.g.warn(`Cluster without external connections, without a parent and with children`,i,n);let r=t.graph().rankdir===`TB`?`LR`:`TB`;f.get(i)?.clusterData?.dir&&(r=f.get(i).clusterData.dir,e.g.warn(`Fixing dir`,f.get(i).clusterData.dir,r));let o=new a.t({multigraph:!0,compound:!0}).setGraph({rankdir:r,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});e.g.warn(`Old graph before copy`,l(t)),v(i,t,o,i),t.setNode(i,{clusterNode:!0,id:i,clusterData:f.get(i).clusterData,label:f.get(i).label,graph:o}),e.g.warn(`New graph after copy node: (`,i,`)`,l(o)),e.g.debug(`Old graph after copy`,l(t))}else e.g.warn(`Cluster ** `,i,` **not meeting the criteria !externalConnections:`,!f.get(i).externalConnections,` no parent: `,!t.parent(i),` children `,t.children(i)&&t.children(i).length>0,t.children(`D`),n),e.g.debug(f);r=t.nodes(),e.g.warn(`New list of nodes`,r);for(let i of r){let r=t.node(i);e.g.warn(` Now next level`,i,r),r?.clusterNode&&w(r.graph,n+1)}},`extractor`),T=e.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=e.h(e=>T(e,e.children()),`sortNodesByHierarchy`),D=e.h(async(t,a,s,c,u,d)=>{e.g.warn(`Graph in recursive render:XAX`,l(a),u);let p=a.graph().rankdir;e.g.trace(`Dir in recursive render - dir:`,p);let m=t.insert(`g`).attr(`class`,`root`);a.nodes()?e.g.info(`Recursive render XXX`,a.nodes()):e.g.info(`No nodes found for`,a),a.edges().length>0&&e.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(t){let n=a.node(t);if(u!==void 0){let n=JSON.parse(JSON.stringify(u.clusterData));e.g.trace(`Setting data for parent cluster XXX
|
|
2
|
-
Node.id = `,t,`
|
|
3
|
-
data=`,n.height,`
|
|
4
|
-
Parent cluster`,u.height),a.setNode(u.id,n),a.parent(t)||(e.g.trace(`Setting parent`,t,u.id),a.setParent(t,u.id,n))}if(e.g.info(`(Insert) Node XXX`+t+`: `+JSON.stringify(a.node(t))),n?.clusterNode){e.g.info(`Cluster identified XBX`,t,n.width,a.node(t));let{ranksep:i,nodesep:o}=a.graph();n.graph.setGraph({...n.graph.graph(),ranksep:i+25,nodesep:o});let l=await D(v,n.graph,s,c,a.node(t),d),u=l.elem;r.u(n,u),n.diff=l.diff||0,e.g.info(`New compound node after recursive render XAX`,t,`width`,n.width,`height`,n.height),r.l(u,n)}else a.children(t).length>0?(e.g.trace(`Cluster - the non recursive path XBX`,t,n.id,n,n.width,`Graph:`,a),e.g.trace(x(n.id,a)),f.set(n.id,{id:x(n.id,a),node:n})):(e.g.trace(`Node - the non recursive path XAX`,t,v,a.node(t),p),await r.a(v,a.node(t),{config:d,dir:p}))})),await e.h(async()=>{let t=a.edges().map(async function(t){let n=a.edge(t.v,t.w,t.name);e.g.info(`Edge `+t.v+` -> `+t.w+`: `+JSON.stringify(t)),e.g.info(`Edge `+t.v+` -> `+t.w+`: `,t,` `,JSON.stringify(a.edge(t))),e.g.info(`Fix`,f,`ids:`,t.v,t.w,`Translating: `,f.get(t.v),f.get(t.w)),await i.r(_,n)});await Promise.all(t)},`processEdges`)(),e.g.info(`Graph before layout:`,JSON.stringify(l(a))),e.g.info(`############################################# XXX`),e.g.info(`### Layout ### XXX`),e.g.info(`############################################# XXX`),o.t(a),e.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(t){let n=a.node(t);if(e.g.info(`Position XBX => `+t+`: (`+n.x,`,`+n.y,`) width: `,n.width,` height: `,n.height),n?.clusterNode)n.y+=b,e.g.info(`A tainted cluster node XBX1`,t,n.id,n.width,n.height,n.x,n.y,a.parent(t)),f.get(n.id).node=n,r.c(n);else if(a.children(t).length>0){e.g.info(`A pure cluster node XBX1`,t,n.id,n.x,n.y,n.width,n.height,a.parent(t)),n.height+=b,a.node(n.parentId);let i=n?.padding/2||0,o=n?.labelBBox?.height||0,s=o-i||0;e.g.debug(`OffsetY`,s,`labelHeight`,o,`halfPadding`,i),await r.i(h,n),f.get(n.id).node=n}else{let t=a.node(n.parentId);n.y+=b/2,e.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`,t,t?.offsetY,n),r.c(n)}})),a.edges().forEach(function(t){let n=a.edge(t);e.g.info(`Edge `+t.v+` -> `+t.w+`: `+JSON.stringify(n),n),n.points.forEach(e=>e.y+=b/2),i.a(n,i.n(g,n,f,s,a.node(t.v),a.node(t.w),c))}),a.nodes().forEach(function(t){let n=a.node(t);e.g.info(t,n.type,n.diff),n.isGroup&&(y=n.diff)}),e.g.warn(`Returning from recursive render XAX`,m,y),{elem:m,diff:y}},`recursiveRender`),O=e.h(async(n,o)=>{let s=new a.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=o.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)}),e.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.endLabelLeft=``,a.endLabelRight=``,a.startLabelLeft=``,a.id=t+`-cyclic-special-1`,o.startLabelRight=``,o.startLabelLeft=``,o.endLabelLeft=``,o.endLabelRight=``,o.arrowTypeStart=`none`,o.arrowTypeEnd=`none`,o.id=t+`-cyclic-special-mid`,c.label=``,c.startLabelRight=``,c.startLabelLeft=``,c.arrowTypeStart=`none`,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)}),e.g.warn(`Graph at first:`,JSON.stringify(l(s))),C(s),e.g.warn(`Graph after XAX:`,JSON.stringify(l(s)));let u=t.x();await D(c,s,n.type,n.diagramId,void 0,u)},`render`);exports.render=O;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
const e=require("./src-CFBvxm_0.cjs"),t=require("./chunk-CSCIHK7Q-WWTYrQLt.cjs"),n=require("./chunk-5ZQYHXKU-35HHGVyc.cjs"),r=require("./chunk-WU5MYG2G-qi7ZaL3o.cjs"),i=require("./mermaid-parser.core-ADyJ_PY4.cjs"),a=require("./chunk-4BX2VUAB-DdliHvKq.cjs");var o={showLegend:!0,ticks:5,max:null,min:0,graticule:`circle`},s={axes:[],curves:[],options:o},c=structuredClone(s),l=t.f.radar,u=e.h(()=>n.i({...l,...t.b().radar}),`getConfig`),d=e.h(()=>c.axes,`getAxes`),f=e.h(()=>c.curves,`getCurves`),p=e.h(()=>c.options,`getOptions`),m=e.h(e=>{c.axes=e.map(e=>({name:e.name,label:e.label??e.name}))},`setAxes`),h=e.h(e=>{c.curves=e.map(e=>({name:e.name,label:e.label??e.name,entries:g(e.entries)}))},`setCurves`),g=e.h(e=>{if(e[0].axis==null)return e.map(e=>e.value);let t=d();if(t.length===0)throw Error(`Axes must be populated before curves for reference entries`);return t.map(t=>{let n=e.find(e=>e.axis?.$refText===t.name);if(n===void 0)throw Error(`Missing entry for axis `+t.label);return n.value})},`computeCurveEntries`),_={getAxes:d,getCurves:f,getOptions:p,setAxes:m,setCurves:h,setOptions:e.h(e=>{let t=e.reduce((e,t)=>(e[t.name]=t,e),{});c.options={showLegend:t.showLegend?.value??o.showLegend,ticks:t.ticks?.value??o.ticks,max:t.max?.value??o.max,min:t.min?.value??o.min,graticule:t.graticule?.value??o.graticule}},`setOptions`),getConfig:u,clear:e.h(()=>{t.a(),c=structuredClone(s)},`clear`),setAccTitle:t.U,getAccTitle:t.y,setDiagramTitle:t.K,getDiagramTitle:t.w,getAccDescription:t.v,setAccDescription:t.H},v=e.h(e=>{a.t(e,_);let{axes:t,curves:n,options:r}=e;_.setAxes(t),_.setCurves(n),_.setOptions(r)},`populate`),y={parse:e.h(async t=>{let n=await i.t(`radar`,t);e.g.debug(n),v(n)},`parse`)},b=e.h((e,t,n,i)=>{let a=i.db,o=a.getAxes(),s=a.getCurves(),c=a.getOptions(),l=a.getConfig(),u=a.getDiagramTitle(),d=x(r.t(t),l),f=c.max??Math.max(...s.map(e=>Math.max(...e.entries))),p=c.min,m=Math.min(l.width,l.height)/2;S(d,o,m,c.ticks,c.graticule),C(d,o,m,l),w(d,o,s,p,f,c.graticule,l),D(d,s,c.showLegend,l),d.append(`text`).attr(`class`,`radarTitle`).text(u).attr(`x`,0).attr(`y`,-l.height/2-l.marginTop)},`draw`),x=e.h((e,n)=>{let r=n.width+n.marginLeft+n.marginRight,i=n.height+n.marginTop+n.marginBottom,a={x:n.marginLeft+n.width/2,y:n.marginTop+n.height/2};return t.c(e,i,r,n.useMaxWidth??!0),e.attr(`viewBox`,`0 0 ${r} ${i}`),e.append(`g`).attr(`transform`,`translate(${a.x}, ${a.y})`)},`drawFrame`),S=e.h((e,t,n,r,i)=>{if(i===`circle`)for(let t=0;t<r;t++){let i=n*(t+1)/r;e.append(`circle`).attr(`r`,i).attr(`class`,`radarGraticule`)}else if(i===`polygon`){let i=t.length;for(let a=0;a<r;a++){let o=n*(a+1)/r,s=t.map((e,t)=>{let n=2*t*Math.PI/i-Math.PI/2;return`${o*Math.cos(n)},${o*Math.sin(n)}`}).join(` `);e.append(`polygon`).attr(`points`,s).attr(`class`,`radarGraticule`)}}},`drawGraticule`),C=e.h((e,t,n,r)=>{let i=t.length;for(let a=0;a<i;a++){let o=t[a].label,s=2*a*Math.PI/i-Math.PI/2;e.append(`line`).attr(`x1`,0).attr(`y1`,0).attr(`x2`,n*r.axisScaleFactor*Math.cos(s)).attr(`y2`,n*r.axisScaleFactor*Math.sin(s)).attr(`class`,`radarAxisLine`),e.append(`text`).text(o).attr(`x`,n*r.axisLabelFactor*Math.cos(s)).attr(`y`,n*r.axisLabelFactor*Math.sin(s)).attr(`class`,`radarAxisLabel`)}},`drawAxes`);function w(e,t,n,r,i,a,o){let s=t.length,c=Math.min(o.width,o.height)/2;n.forEach((t,n)=>{if(t.entries.length!==s)return;let l=t.entries.map((e,t)=>{let n=2*Math.PI*t/s-Math.PI/2,a=T(e,r,i,c);return{x:a*Math.cos(n),y:a*Math.sin(n)}});a===`circle`?e.append(`path`).attr(`d`,E(l,o.curveTension)).attr(`class`,`radarCurve-${n}`):a===`polygon`&&e.append(`polygon`).attr(`points`,l.map(e=>`${e.x},${e.y}`).join(` `)).attr(`class`,`radarCurve-${n}`)})}e.h(w,`drawCurves`);function T(e,t,n,r){return r*(Math.min(Math.max(e,t),n)-t)/(n-t)}e.h(T,`relativeRadius`);function E(e,t){let n=e.length,r=`M${e[0].x},${e[0].y}`;for(let i=0;i<n;i++){let a=e[(i-1+n)%n],o=e[i],s=e[(i+1)%n],c=e[(i+2)%n],l={x:o.x+(s.x-a.x)*t,y:o.y+(s.y-a.y)*t},u={x:s.x-(c.x-o.x)*t,y:s.y-(c.y-o.y)*t};r+=` C${l.x},${l.y} ${u.x},${u.y} ${s.x},${s.y}`}return`${r} Z`}e.h(E,`closedRoundCurve`);function D(e,t,n,r){if(!n)return;let i=(r.width/2+r.marginRight)*3/4,a=-(r.height/2+r.marginTop)*3/4;t.forEach((t,n)=>{let r=e.append(`g`).attr(`transform`,`translate(${i}, ${a+n*20})`);r.append(`rect`).attr(`width`,12).attr(`height`,12).attr(`class`,`radarLegendBox-${n}`),r.append(`text`).attr(`x`,16).attr(`y`,0).attr(`class`,`radarLegendText`).text(t.label)})}e.h(D,`drawLegend`);var O={draw:b},k=e.h((e,t)=>{let n=``;for(let r=0;r<e.THEME_COLOR_LIMIT;r++){let i=e[`cScale${r}`];n+=`
|
|
2
|
-
.radarCurve-${r} {
|
|
3
|
-
color: ${i};
|
|
4
|
-
fill: ${i};
|
|
5
|
-
fill-opacity: ${t.curveOpacity};
|
|
6
|
-
stroke: ${i};
|
|
7
|
-
stroke-width: ${t.curveStrokeWidth};
|
|
8
|
-
}
|
|
9
|
-
.radarLegendBox-${r} {
|
|
10
|
-
fill: ${i};
|
|
11
|
-
fill-opacity: ${t.curveOpacity};
|
|
12
|
-
stroke: ${i};
|
|
13
|
-
}
|
|
14
|
-
`}return n},`genIndexStyles`),A=e.h(e=>{let r=n.i(t.D(),t.b().themeVariables);return{themeVariables:r,radarOptions:n.i(r.radar,e)}},`buildRadarStyleOptions`),j={parser:y,db:_,renderer:O,styles:e.h(({radar:e}={})=>{let{themeVariables:t,radarOptions:n}=A(e);return`
|
|
15
|
-
.radarTitle {
|
|
16
|
-
font-size: ${t.fontSize};
|
|
17
|
-
color: ${t.titleColor};
|
|
18
|
-
dominant-baseline: hanging;
|
|
19
|
-
text-anchor: middle;
|
|
20
|
-
}
|
|
21
|
-
.radarAxisLine {
|
|
22
|
-
stroke: ${n.axisColor};
|
|
23
|
-
stroke-width: ${n.axisStrokeWidth};
|
|
24
|
-
}
|
|
25
|
-
.radarAxisLabel {
|
|
26
|
-
dominant-baseline: middle;
|
|
27
|
-
text-anchor: middle;
|
|
28
|
-
font-size: ${n.axisLabelFontSize}px;
|
|
29
|
-
color: ${n.axisColor};
|
|
30
|
-
}
|
|
31
|
-
.radarGraticule {
|
|
32
|
-
fill: ${n.graticuleColor};
|
|
33
|
-
fill-opacity: ${n.graticuleOpacity};
|
|
34
|
-
stroke: ${n.graticuleColor};
|
|
35
|
-
stroke-width: ${n.graticuleStrokeWidth};
|
|
36
|
-
}
|
|
37
|
-
.radarLegendText {
|
|
38
|
-
text-anchor: start;
|
|
39
|
-
font-size: ${n.legendFontSize}px;
|
|
40
|
-
dominant-baseline: hanging;
|
|
41
|
-
}
|
|
42
|
-
${k(t,n)}
|
|
43
|
-
`},`styles`)};exports.diagram=j;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
const e=require("./src-CFBvxm_0.cjs"),t=require("./chunk-CSCIHK7Q-WWTYrQLt.cjs"),n=require("./chunk-5ZQYHXKU-35HHGVyc.cjs"),r=require("./chunk-WU5MYG2G-qi7ZaL3o.cjs"),i=require("./mermaid-parser.core-ADyJ_PY4.cjs"),a=require("./chunk-4BX2VUAB-DdliHvKq.cjs");var o=new(require("./chunk-QZHKN3VN-DPdobKra.cjs")).t(()=>({cnt:1,stack:[{id:0,level:-1,name:`/`,children:[]}]})),s=e.h(()=>{o.reset(),t.a()},`clear`),c=e.h(()=>o.records.stack[0],`getRoot`),l=e.h(()=>o.records.cnt,`getCount`),u=t.f.treeView,d={clear:s,addNode:e.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:e.h(()=>n.i(u,t.b().treeView),`getConfig`),getAccTitle:t.y,getAccDescription:t.v,getDiagramTitle:t.w,setAccDescription:t.H,setAccTitle:t.U,setDiagramTitle:t.K},f=e.h(e=>{a.t(e,d),e.nodes.map(e=>d.addNode(e.indent?parseInt(e.indent):0,e.name))},`populate`),p={parse:e.h(async t=>{let n=await i.t(`treeView`,t);e.g.debug(n),f(n)},`parse`)},m=e.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=e.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=e.h((t,n,r)=>{let i=0,a=0,o=e.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=e.h((e,n=0)=>{o(t,e,r,n),e.children.forEach(e=>{s(e,n+1)});let{x:i,y:a,height:c}=e.BBox;if(e.children.length){let{y:n,height:o}=e.children[e.children.length-1].BBox;h(t,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:e.h((n,i,a,o)=>{e.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}`),t.c(u,f,p,l.useMaxWidth)},`draw`)},v={labelFontSize:`16px`,labelColor:`black`,lineColor:`black`},y={db:d,renderer:_,parser:p,styles:e.h(({treeView:e})=>{let{labelFontSize:t,labelColor:r,lineColor:i}=n.i(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;
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { g as e, h as t } from "./src-GDFuItmC.js";
|
|
2
|
-
import { H as n, K as r, U as i, a, b as o, c as s, f as c, v as l, w as u, y as d } from "./chunk-CSCIHK7Q-Drr_NBLR.js";
|
|
3
|
-
import { i as f } from "./chunk-5ZQYHXKU-BvO58_5C.js";
|
|
4
|
-
import { t as p } from "./chunk-WU5MYG2G-BL6T82Hi.js";
|
|
5
|
-
import { t as m } from "./mermaid-parser.core-D6xVjl2t.js";
|
|
6
|
-
import { t as h } from "./chunk-4BX2VUAB-B74FMcxr.js";
|
|
7
|
-
import { t as g } from "./chunk-QZHKN3VN-cS9OamWo.js";
|
|
8
|
-
//#region node_modules/mermaid/dist/chunks/mermaid.core/diagram-5GNKFQAL.mjs
|
|
9
|
-
var _ = new g(() => ({
|
|
10
|
-
cnt: 1,
|
|
11
|
-
stack: [{
|
|
12
|
-
id: 0,
|
|
13
|
-
level: -1,
|
|
14
|
-
name: "/",
|
|
15
|
-
children: []
|
|
16
|
-
}]
|
|
17
|
-
})), v = /* @__PURE__ */ t(() => {
|
|
18
|
-
_.reset(), a();
|
|
19
|
-
}, "clear"), y = /* @__PURE__ */ t(() => _.records.stack[0], "getRoot"), b = /* @__PURE__ */ t(() => _.records.cnt, "getCount"), x = c.treeView, S = {
|
|
20
|
-
clear: v,
|
|
21
|
-
addNode: /* @__PURE__ */ t((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__ */ t(() => f(x, o().treeView), "getConfig"),
|
|
34
|
-
getAccTitle: d,
|
|
35
|
-
getAccDescription: l,
|
|
36
|
-
getDiagramTitle: u,
|
|
37
|
-
setAccDescription: n,
|
|
38
|
-
setAccTitle: i,
|
|
39
|
-
setDiagramTitle: r
|
|
40
|
-
}, C = /* @__PURE__ */ t((e) => {
|
|
41
|
-
h(e, S), e.nodes.map((e) => S.addNode(e.indent ? parseInt(e.indent) : 0, e.name));
|
|
42
|
-
}, "populate"), w = { parse: /* @__PURE__ */ t(async (t) => {
|
|
43
|
-
let n = await m("treeView", t);
|
|
44
|
-
e.debug(n), C(n);
|
|
45
|
-
}, "parse") }, T = /* @__PURE__ */ t((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__ */ t((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__ */ t((e, n, r) => {
|
|
54
|
-
let i = 0, a = 0, o = /* @__PURE__ */ t((e, t, n, r) => {
|
|
55
|
-
let o = r * (n.rowIndent + n.paddingX);
|
|
56
|
-
T(o, i, t, e, n);
|
|
57
|
-
let { height: s, width: c } = t.BBox;
|
|
58
|
-
E(e, o - n.rowIndent, i + s / 2, o, i + s / 2, n.lineThickness), a = Math.max(a, o + c), i += s;
|
|
59
|
-
}, "drawNode"), s = /* @__PURE__ */ t((t, n = 0) => {
|
|
60
|
-
o(e, t, r, n), t.children.forEach((e) => {
|
|
61
|
-
s(e, n + 1);
|
|
62
|
-
});
|
|
63
|
-
let { x: i, y: a, height: c } = t.BBox;
|
|
64
|
-
if (t.children.length) {
|
|
65
|
-
let { y: n, height: o } = t.children[t.children.length - 1].BBox;
|
|
66
|
-
E(e, i + r.paddingX, a + c, i + r.paddingX, n + o / 2 + r.lineThickness / 2, r.lineThickness);
|
|
67
|
-
}
|
|
68
|
-
}, "processNode");
|
|
69
|
-
return s(n), {
|
|
70
|
-
totalHeight: i,
|
|
71
|
-
totalWidth: a
|
|
72
|
-
};
|
|
73
|
-
}, "drawTree"), O = { draw: /* @__PURE__ */ t((t, n, r, i) => {
|
|
74
|
-
e.debug("Rendering treeView diagram\n" + t);
|
|
75
|
-
let a = i.db, o = a.getRoot(), c = a.getConfig(), l = p(n), u = l.append("g");
|
|
76
|
-
u.attr("class", "tree-view");
|
|
77
|
-
let { totalHeight: d, totalWidth: f } = D(u, o, c);
|
|
78
|
-
l.attr("viewBox", `-${c.lineThickness / 2} 0 ${f} ${d}`), s(l, d, f, c.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__ */ t(({ 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 };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const e=require("./src-CFBvxm_0.cjs"),t=require("./chunk-CSCIHK7Q-WWTYrQLt.cjs"),n=require("./chunk-5ZQYHXKU-35HHGVyc.cjs"),r=require("./chunk-NNHCCRGN-qV8bfiMQ.cjs"),i=require("./mermaid-parser.core-ADyJ_PY4.cjs"),a=require("./chunk-4BX2VUAB-DdliHvKq.cjs");var o=`position frame`,s=`frame positioned`,c=`position relation`,l=`relation positioned`,u=e.h(function(t){e.g.debug(`options str`,t)},`setOptions`),d=e.h(function(){return{}},`getOptions`),f=e.h(function(){p(),t.a()},`clear`);function p(){g={}}e.h(p,`reset`);var m=t.f.eventmodeling,h=e.h(()=>n.i({...m,...t.b().eventmodeling}),`getConfig`),g={};function _(){let t=x,{ast:n}=g,r=b();if(!n)throw Error(`No data for EventModel`);return n.frames.forEach((i,a)=>{let s=O(i,n.dataEntities,r);t=W(t,{$kind:o,index:a,frame:i,textProps:s});let l;F(i)?(e.g.debug(`source frame`,i.sourceFrames),l=n.frames.filter(e=>i.sourceFrames.some(t=>t.$refText===e.name)),l.forEach(e=>{t=W(t,{$kind:c,index:a,frame:i,sourceFrame:e})})):t=W(t,{$kind:c,index:a,frame:i})}),t={...t,sortedSwimlanesArray:M(t.swimlanes)},t}e.h(_,`getState`);function v(e){g.ast=e}e.h(v,`setAst`);var y={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:`bold`,boxTextPadding:10,swimlaneTextFontWeight:`bold`,labelUiAutomation:`UI/Automation`,labelUiAutomationPrefix:`UI/A: `,labelCommandReadModel:`Command/Read Model`,labelCommandReadModelPrefix:`C/RM: `,labelEvents:`Events`,labelEventsPrefix:`Stream: `};function b(){return y}e.h(b,`getDiagramProps`);var x={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function S(e){let t=e.split(`.`);if(t.length===2)return t[0]}e.h(S,`extractNamespace`);function C(e){let t=e.split(`.`);return t.length===2?t[1]:e}e.h(C,`extractName`);function w(e,t){if(!(!t||t.length===0))return Object.values(e).find(e=>e.namespace===t)}e.h(w,`findSwimlaneByNamespace`);function T(e,t,n){return Math.max(t,...Object.keys(e).filter(e=>{let r=Number.parseInt(e);return r>t&&r<n}).map(e=>Number.parseInt(e)))+1}e.h(T,`findNextAvailableIndex`);function E(e,t){let n=S(e.entityIdentifier),r=w(t,n);switch(e.modelEntityType){case`ui`:case`pcr`:case`processor`:return r?{index:r.index,label:r.namespace||y.labelUiAutomation}:n?{index:T(t,0,100),label:y.labelUiAutomationPrefix+n}:{index:0,label:y.labelUiAutomation};case`rmo`:case`readmodel`:case`cmd`:case`command`:return r?{index:r.index,label:r.namespace||y.labelCommandReadModel}:n?{index:T(t,100,200),label:y.labelCommandReadModelPrefix+n}:{index:100,label:y.labelCommandReadModel};default:return r?{index:r.index,label:r.namespace||y.labelEvents}:n?{index:T(t,200,300),label:y.labelEventsPrefix+n}:{index:200,label:y.labelEvents}}}e.h(E,`calculateSwimlaneProps`);function D(e){let{themeVariables:n}=t.b();switch(e.modelEntityType){case`ui`:return{fill:n.emUiFill??`white`,stroke:n.emUiStroke??`#dbdada`};case`pcr`:case`processor`:return{fill:n.emProcessorFill??`#edb3f6`,stroke:n.emProcessorStroke??`#b88cbf`};case`rmo`:case`readmodel`:return{fill:n.emReadModelFill??`#d3f1a2`,stroke:n.emReadModelStroke??`#a3b732`};case`cmd`:case`command`:return{fill:n.emCommandFill??`#bcd6fe`,stroke:n.emCommandStroke??`#679ac3`};case`evt`:case`event`:return{fill:n.emEventFill??`#ffb778`,stroke:n.emEventStroke??`#c19a0f`};default:return{fill:`red`,stroke:`black`}}}e.h(D,`calculateEntityVisualProps`);function O(r,i,a){let o=t.b(),s=t.z(C(r.entityIdentifier)??``,o),c,l={fontSize:16,fontWeight:700,fontFamily:`"trebuchet ms", verdana, arial, sans-serif`,joinWith:`<br/>`},u=`<b>${n._(s,a.textMaxWidth,l)}</b>`;if(r.dataInlineValue&&(c=r.dataInlineValue,c=c.substring(c.indexOf(`{`)+1),c=c.substring(0,c.lastIndexOf(`}`)-1),c=t.z(c,o),c=n._(c,a.textMaxWidth,l),c=c.replaceAll(` `,` `)),r.dataReference){let e=i.find(e=>e.name===r.dataReference?.$refText);e&&(c=e.dataBlockValue,c=c.substring(c.indexOf(`{
|
|
2
|
-
`)+2),c=c.substring(0,c.lastIndexOf(`}`)-1),c=t.z(c,o),c=n._(c,a.textMaxWidth,l),c=c.replaceAll(` `,` `),c+=`<br/>`)}let d=c!==void 0;d&&(u+=`<br/><br/><code style="text-align: left; display: block;max-width:${a.textMaxWidth}px">${c}</code>`);let f={fontSize:l.fontSize,fontWeight:l.fontWeight,fontFamily:l.fontFamily},p=n.t(u,f),m=d?p.width/3:p.width,h={content:u,width:m,height:p.height};return e.g.debug(`[${r.name}] ${r.entityIdentifier} text`,h),h}e.h(O,`calculateTextProps`);function k(e,t){let n=t,r=D(n.frame),i={width:n.textProps.width+2*y.boxTextPadding,height:n.textProps.height+2*y.boxTextPadding};return[{$kind:s,frame:n.frame,index:n.index,visual:r,dimension:i,textProps:n.textProps}]}e.h(k,`decidePositionFrame`);function A(e,t,n){return t===void 0?y.contentStartX:t.index===e.index&&e.r?e.r+y.boxPadding:n===void 0?y.contentStartX:n.r-y.boxOverlap+y.boxPadding}e.h(A,`calculateX`);function j(e,t){let n=[...e.map(e=>e.r),t];return Math.max(...n)}e.h(j,`calculateMaxRight`);function M(e){return Object.values(e).sort((e,t)=>e.index-t.index)}e.h(M,`sortedSwimlanesArray`);function N(e,t){let n=t,r=E(n.frame,e.swimlanes),i;i=r.index in e.swimlanes?e.swimlanes[r.index]:{index:r.index,label:r.label,r:0,y:r.index*y.swimlaneMinHeight+y.swimlaneGap,height:y.swimlaneMinHeight,maxHeight:y.swimlaneMinHeight};let a=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,o=e.previousSwimlaneNumber===void 0?void 0:e.swimlanes[e.previousSwimlaneNumber],s={width:Math.max(y.boxMinWidth,Math.min(y.boxMaxWidth,n.dimension.width))+2*y.boxPadding,height:Math.max(y.boxMinHeight,Math.min(y.boxMaxHeight,n.dimension.height))+2*y.boxPadding},c=A(i,o,a),l=c+s.width+y.boxPadding,u=j(Object.values(e.swimlanes),l);i.r=c+s.width,i.maxHeight=Math.max(i.maxHeight,s.height),i.height=Math.max(y.swimlaneMinHeight,i.maxHeight)+2*y.swimlanePadding;let d={x:c,y:y.swimlanePadding+i.y,r:l,dimension:s,leftSibling:!1,swimlane:i,visual:n.visual,text:n.textProps.content,frame:n.frame,index:n.index},f={...e,boxes:[...e.boxes,d],swimlanes:{...e.swimlanes,[`${i.index}`]:i},previousSwimlaneNumber:r.index,previousFrame:n.frame,maxR:u},p=M(f.swimlanes);p.length>0&&(p[0].y=0);for(let e=1;e<p.length;e++){let t=p[e],n=p[e-1];t.y=n.y+n.height+y.swimlaneGap}return f}e.h(N,`evolveFramePositioned`);function P(e,t){return e===0&&t.sourceFrames.length===0}e.h(P,`isFirstFrame`);function F(e){return e.sourceFrames!==void 0&&e.sourceFrames!==null&&e.sourceFrames.length>0}e.h(F,`hasSourceFrame`);function I(e,t){if(t!=null)return e.find(e=>e.frame.name===t.name)}e.h(I,`findBoxByFrame`);function L(e,t,n){if(!(n<0))for(let r=n;r>=0;r--){let n=e[r];if(n.swimlane.index!==t)return n}}e.h(L,`findBoxByLineIndex`);function R(e,t){let n=t;if(r.b(n.frame)||P(n.index,n.frame))return[];let i=I(e.boxes,n.frame);if(i===void 0)throw Error(`Target box not found for frame ${n.frame.name}`);let a;return a=n.sourceFrame?I(e.boxes,n.sourceFrame):L(e.boxes,i.swimlane.index,n.index-1),a===void 0?[]:[{$kind:l,frame:n.frame,index:n.index,sourceBox:a,targetBox:i}]}e.h(R,`decidePositionRelation`);function z(e,t){let n=t,r={visual:{fill:`none`,stroke:`#000`},source:{x:n.sourceBox.x,y:n.sourceBox.y},target:{x:n.targetBox.x,y:n.targetBox.y},sourceBox:n.sourceBox,targetBox:n.targetBox};return{...e,relations:[...e.relations,r]}}e.h(z,`evolveRelationPositioned`);var B={[o]:k,[c]:R},V={[s]:N,[l]:z};function H(t,n){let r=B[n.$kind];if(r==null)return[];let i=r(t,n);return e.g.debug(`decided events`,i),i}e.h(H,`decide`);function U(t,n){let r=n.reduce((e,t)=>{let n=V[t.$kind];return n==null?e:n(e,t)},t);return e.g.debug(`evolve events`,{state:t,newState:r,events:n}),r}e.h(U,`evolve`);function W(e,t){return U(e,H(e,t))}e.h(W,`dispatch`);var G={getConfig:h,setOptions:u,getOptions:d,clear:f,setAccTitle:t.U,getAccTitle:t.y,getAccDescription:t.v,setAccDescription:t.H,setDiagramTitle:t.K,getDiagramTitle:t.w,setAst:v,getDiagramProps:b,getState:_},K={parse:e.h(async t=>{let n=await i.t(`eventmodeling`,t);e.g.debug(n),G.setAst(n),a.t(n,G)},`parse`)},q=t.x()?.eventmodeling;function J(e,t){return n=>{let r=n.swimlane.y+t.swimlanePadding,i=e.append(`g`).attr(`class`,`em-box`);i.append(`rect`).attr(`x`,n.x).attr(`y`,r).attr(`rx`,`3`).attr(`width`,n.dimension.width).attr(`height`,n.dimension.height).attr(`stroke`,n.visual.stroke).attr(`fill`,n.visual.fill),i.append(`foreignObject`).attr(`x`,n.x+t.boxPadding).attr(`y`,r+10).attr(`width`,n.dimension.width-2*t.boxPadding).attr(`height`,n.dimension.height-2*t.boxPadding).append(`xhtml:div`).style(`display`,`table`).style(`height`,`100%`).style(`width`,`100%`).append(`span`).style(`display`,`table-cell`).style(`text-align`,`center`).style(`vertical-align`,`middle`).html(n.text)}}e.h(J,`renderD3Box`);function Y(e,t){return e>t}e.h(Y,`dirUpwards`);function X(t,n,r,i){return a=>{let o=a.sourceBox.swimlane.y+n.swimlanePadding,s=a.targetBox.swimlane.y+n.swimlanePadding,c=Y(o,s),l=a.sourceBox.x+a.sourceBox.dimension.width*2/3,u=a.targetBox.x+a.targetBox.dimension.width/3,d,f;e.g.debug(`rendering relation up=${c} for `,{sourceBox:a.sourceBox,targetBox:a.targetBox}),c?(d=o,f=s+a.targetBox.dimension.height):(d=o+a.sourceBox.dimension.height,f=s);let p=i.emRelationStroke??a.visual.stroke;t.append(`path`).attr(`class`,`em-relation`).attr(`fill`,a.visual.fill).attr(`stroke`,p).attr(`stroke-width`,`1`).attr(`marker-end`,`url(#${r})`).attr(`d`,`M${l} ${d} L${u} ${f}`)}}e.h(X,`renderD3Relation`);function Z(e,t,n,r){return i=>{let a=e.append(`g`).attr(`class`,`em-swimlane`),o=r.emSwimlaneBackgroundOdd??`rgb(250,250,250)`,s=r.emSwimlaneBackgroundStroke??`rgb(240,240,240)`;a.append(`rect`).attr(`x`,0).attr(`y`,i.y).attr(`rx`,`3`).attr(`width`,t+n.swimlanePadding).attr(`height`,i.height).attr(`fill`,o).attr(`stroke`,s),a.append(`text`).attr(`font-weight`,n.swimlaneTextFontWeight).attr(`x`,30).attr(`y`,i.y+30).text(i.label)}}e.h(Z,`renderD3Swimlane`);var Q={parser:K,db:G,renderer:{draw:e.h(function(n,r,i,a){if(e.g.debug(`in eventmodeling renderer`,n+`
|
|
3
|
-
`,`id:`,r,i),!q)throw Error(`EventModeling config not found`);let o=a.db,{themeVariables:s,eventmodeling:c}=t.x(),l=e.p(`[id="${r}"]`),u=o.getDiagramProps(),d=o.getState(),f=`em-arrowhead-${r}`,p=s.emArrowhead??`#000000`;d.sortedSwimlanesArray.forEach(Z(l,d.maxR,u,s)),d.boxes.forEach(J(l,u)),d.relations.forEach(X(l,u,f,s)),l.append(`defs`).append(`marker`).attr(`id`,f).attr(`markerWidth`,`10`).attr(`markerHeight`,`7`).attr(`refX`,`10`).attr(`refY`,`3.5`).attr(`orient`,`auto`).append(`polygon`).attr(`points`,`0 0, 10 3.5, 0 7`).attr(`fill`,p),t.Y(void 0,l,c?.padding??30,c?.useMaxWidth)},`draw`)},styles:e.h(e=>``,`getStyles`)};exports.diagram=Q;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
const e=require("./src-CFBvxm_0.cjs"),t=require("./chunk-CSCIHK7Q-WWTYrQLt.cjs"),n=require("./chunk-5ZQYHXKU-35HHGVyc.cjs"),r=require("./chunk-WU5MYG2G-qi7ZaL3o.cjs"),i=require("./mermaid-parser.core-ADyJ_PY4.cjs"),a=require("./chunk-4BX2VUAB-DdliHvKq.cjs");var o=t.f.packet,s=class{constructor(){this.packet=[],this.setAccTitle=t.U,this.getAccTitle=t.y,this.setDiagramTitle=t.K,this.getDiagramTitle=t.w,this.getAccDescription=t.v,this.setAccDescription=t.H}static{e.h(this,`PacketDB`)}getConfig(){let e=n.i({...o,...t.b().packet});return e.showBits&&(e.paddingY+=10),e}getPacket(){return this.packet}pushWord(e){e.length>0&&this.packet.push(e)}clear(){t.a(),this.packet=[]}},c=1e4,l=e.h((t,n)=>{a.t(t,n);let r=-1,i=[],o=1,{bitsPerRow:s}=n.getConfig();for(let{start:a,end:l,bits:d,label:f}of t.blocks){if(a!==void 0&&l!==void 0&&l<a)throw Error(`Packet block ${a} - ${l} is invalid. End must be greater than start.`);if(a??=r+1,a!==r+1)throw Error(`Packet block ${a} - ${l??a} is not contiguous. It should start from ${r+1}.`);if(d===0)throw Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(l??=a+(d??1)-1,d??=l-a+1,r=l,e.g.debug(`Packet block ${a} - ${r} with label ${f}`);i.length<=s+1&&n.getPacket().length<c;){let[e,t]=u({start:a,end:l,bits:d,label:f},o,s);if(i.push(e),e.end+1===o*s&&(n.pushWord(i),i=[],o++),!t)break;({start:a,end:l,bits:d,label:f}=t)}}n.pushWord(i)},`populate`),u=e.h((e,t,n)=>{if(e.start===void 0)throw Error(`start should have been set during first phase`);if(e.end===void 0)throw Error(`end should have been set during first phase`);if(e.start>e.end)throw Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*n)return[e,void 0];let r=t*n-1,i=t*n;return[{start:e.start,end:r,label:e.label,bits:r-e.start},{start:i,end:e.end,label:e.label,bits:e.end-i}]},`getNextFittingBlock`),d={parser:{yy:void 0},parse:e.h(async t=>{let n=await i.t(`packet`,t),r=d.parser?.yy;if(!(r instanceof s))throw Error(`parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);e.g.debug(n),l(n,r)},`parse`)},f=e.h((e,n,i,a)=>{let o=a.db,s=o.getConfig(),{rowHeight:c,paddingY:l,bitWidth:u,bitsPerRow:d}=s,f=o.getPacket(),m=o.getDiagramTitle(),h=c+l,g=h*(f.length+1)-(m?0:c),_=u*d+2,v=r.t(n);v.attr(`viewBox`,`0 0 ${_} ${g}`),t.c(v,g,_,s.useMaxWidth);for(let[e,t]of f.entries())p(v,t,e,s);v.append(`text`).text(m).attr(`x`,_/2).attr(`y`,g-h/2).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).attr(`class`,`packetTitle`)},`draw`),p=e.h((e,t,n,{rowHeight:r,paddingX:i,paddingY:a,bitWidth:o,bitsPerRow:s,showBits:c})=>{let l=e.append(`g`),u=n*(r+a)+a;for(let e of t){let t=e.start%s*o+1,n=(e.end-e.start+1)*o-i;if(l.append(`rect`).attr(`x`,t).attr(`y`,u).attr(`width`,n).attr(`height`,r).attr(`class`,`packetBlock`),l.append(`text`).attr(`x`,t+n/2).attr(`y`,u+r/2).attr(`class`,`packetLabel`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).text(e.label),!c)continue;let a=e.end===e.start,d=u-2;l.append(`text`).attr(`x`,t+(a?n/2:0)).attr(`y`,d).attr(`class`,`packetByte start`).attr(`dominant-baseline`,`auto`).attr(`text-anchor`,a?`middle`:`start`).text(e.start),a||l.append(`text`).attr(`x`,t+n).attr(`y`,d).attr(`class`,`packetByte end`).attr(`dominant-baseline`,`auto`).attr(`text-anchor`,`end`).text(e.end)}},`drawWord`),m={draw:f},h={byteFontSize:`10px`,startByteColor:`black`,endByteColor:`black`,labelColor:`black`,labelFontSize:`12px`,titleColor:`black`,titleFontSize:`14px`,blockStrokeColor:`black`,blockStrokeWidth:`1`,blockFillColor:`#efefef`},g={parser:d,get db(){return new s},renderer:m,styles:e.h(({packet:e}={})=>{let t=n.i(h,e);return`
|
|
2
|
-
.packetByte {
|
|
3
|
-
font-size: ${t.byteFontSize};
|
|
4
|
-
}
|
|
5
|
-
.packetByte.start {
|
|
6
|
-
fill: ${t.startByteColor};
|
|
7
|
-
}
|
|
8
|
-
.packetByte.end {
|
|
9
|
-
fill: ${t.endByteColor};
|
|
10
|
-
}
|
|
11
|
-
.packetLabel {
|
|
12
|
-
fill: ${t.labelColor};
|
|
13
|
-
font-size: ${t.labelFontSize};
|
|
14
|
-
}
|
|
15
|
-
.packetTitle {
|
|
16
|
-
fill: ${t.titleColor};
|
|
17
|
-
font-size: ${t.titleFontSize};
|
|
18
|
-
}
|
|
19
|
-
.packetBlock {
|
|
20
|
-
stroke: ${t.blockStrokeColor};
|
|
21
|
-
stroke-width: ${t.blockStrokeWidth};
|
|
22
|
-
fill: ${t.blockFillColor};
|
|
23
|
-
}
|
|
24
|
-
`},`styles`)};exports.diagram=g;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
const e=require("./src-CFBvxm_0.cjs"),t=require("./chunk-CSCIHK7Q-WWTYrQLt.cjs"),n=require("./ordinal-CUPR-p0T.cjs"),r=require("./defaultLocale-u9yUoUmE.cjs"),i=require("./chunk-5ZQYHXKU-35HHGVyc.cjs"),a=require("./chunk-WU5MYG2G-qi7ZaL3o.cjs"),o=require("./chunk-NZK2D7GU-FNVK0iHI.cjs"),s=require("./mermaid-parser.core-ADyJ_PY4.cjs"),c=require("./chunk-4BX2VUAB-DdliHvKq.cjs"),l=require("./chunk-2J33WTMH-DIfvCbWZ.cjs");function u(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function d(){return this.eachAfter(u)}function f(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}function p(e,t){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(e.call(t,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}function m(e,t){for(var n=this,r=[n],i=[],a,o,s,c=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o<s;++o)r.push(a[o]);for(;n=i.pop();)e.call(t,n,++c,this);return this}function h(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r}function g(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function _(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function v(e){for(var t=this,n=y(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function y(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function b(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function x(){return Array.from(this)}function S(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function C(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*w(){var e=this,t,n=[e],r,i,a;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i<a;++i)n.push(r[i]);while(n.length)}function T(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=O)):t===void 0&&(t=D);for(var n=new j(e),r,i=[n],a,o,s,c;r=i.pop();)if((o=t(r.data))&&(c=(o=Array.from(o)).length))for(r.children=o,s=c-1;s>=0;--s)i.push(a=o[s]=new j(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(A)}function E(){return T(this).eachBefore(k)}function D(e){return e.children}function O(e){return Array.isArray(e)?e[1]:null}function k(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function A(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function j(e){this.data=e,this.depth=this.height=0,this.parent=null}j.prototype=T.prototype={constructor:j,count:d,each:f,eachAfter:m,eachBefore:p,find:h,sum:g,sort:_,path:v,ancestors:b,descendants:x,leaves:S,links:C,copy:E,[Symbol.iterator]:w};function M(e){if(typeof e!=`function`)throw Error();return e}function N(){return 0}function P(e){return function(){return e}}function F(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function I(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(r-t)/e.value;++s<c;)o=a[s],o.y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*l}function L(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(i-n)/e.value;++s<c;)o=a[s],o.x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*l}var R=(1+Math.sqrt(5))/2;function z(e,t,n,r,i,a){for(var o=[],s=t.children,c,l,u=0,d=0,f=s.length,p,m,h=t.value,g,_,v,y,b,x,S;u<f;){p=i-n,m=a-r;do g=s[d++].value;while(!g&&d<f);for(_=v=g,x=Math.max(m/p,p/m)/(h*e),S=g*g*x,b=Math.max(v/S,S/_);d<f;++d){if(g+=l=s[d].value,l<_&&(_=l),l>v&&(v=l),S=g*g*x,y=Math.max(v/S,S/_),y>b){g-=l;break}b=y}o.push(c={value:g,dice:p<m,children:s.slice(u,d)}),c.dice?I(c,n,r,i,h?r+=m*g/h:a):L(c,n,r,h?n+=p*g/h:i,a),h-=g,u=d}return o}var B=(function e(t){function n(e,n,r,i,a){z(t,e,n,r,i,a)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n})(R);function V(){var e=B,t=!1,n=1,r=1,i=[0],a=N,o=N,s=N,c=N,l=N;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),i=[0],t&&e.eachBefore(F),e}function d(t){var n=i[t.depth],r=t.x0+n,u=t.y0+n,d=t.x1-n,f=t.y1-n;d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),t.x0=r,t.y0=u,t.x1=d,t.y1=f,t.children&&(n=i[t.depth+1]=a(t)/2,r+=l(t)-n,u+=o(t)-n,d-=s(t)-n,f-=c(t)-n,d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),e(t,r,u,d,f))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],r=+e[1],u):[n,r]},u.tile=function(t){return arguments.length?(e=M(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(a=typeof e==`function`?e:P(+e),u):a},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(o=typeof e==`function`?e:P(+e),u):o},u.paddingRight=function(e){return arguments.length?(s=typeof e==`function`?e:P(+e),u):s},u.paddingBottom=function(e){return arguments.length?(c=typeof e==`function`?e:P(+e),u):c},u.paddingLeft=function(e){return arguments.length?(l=typeof e==`function`?e:P(+e),u):l},u}var H=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=t.U,this.getAccTitle=t.y,this.setDiagramTitle=t.K,this.getDiagramTitle=t.w,this.getAccDescription=t.v,this.setAccDescription=t.H}static{e.h(this,`TreeMapDB`)}getNodes(){return this.nodes}getConfig(){let e=t.f,n=t.b();return i.i({...e.treemap,...n.treemap??{}})}addNode(e,t){this.nodes.push(e),this.levels.set(e,t),t===0&&(this.outerNodes.push(e),this.root??=e)}getRoot(){return{name:``,children:this.outerNodes}}addClass(e,t){let n=this.classes.get(e)??{id:e,styles:[],textStyles:[]},r=t.replace(/\\,/g,`§§§`).replace(/,/g,`;`).replace(/§§§/g,`,`).split(`;`);r&&r.forEach(e=>{o.n(e)&&(n?.textStyles?n.textStyles.push(e):n.textStyles=[e]),n?.styles?n.styles.push(e):n.styles=[e]}),this.classes.set(e,n)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){t.a(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function U(e){if(!e.length)return[];let t=[],n=[];return e.forEach(e=>{let r={name:e.name,children:e.type===`Leaf`?void 0:[]};for(r.classSelector=e?.classSelector,e?.cssCompiledStyles&&(r.cssCompiledStyles=e.cssCompiledStyles),e.type===`Leaf`&&e.value!==void 0&&(r.value=e.value);n.length>0&&n[n.length-1].level>=e.level;)n.pop();if(n.length===0)t.push(r);else{let e=n[n.length-1].node;e.children?e.children.push(r):e.children=[r]}e.type!==`Leaf`&&n.push({node:r,level:e.level})}),t}e.h(U,`buildHierarchy`);var W=e.h((t,n)=>{c.t(t,n);let r=[];for(let e of t.TreemapRows??[])e.$type===`ClassDefStatement`&&n.addClass(e.className??``,e.styleText??``);for(let e of t.TreemapRows??[]){let t=e.item;if(!t)continue;let i=e.indent?parseInt(e.indent):0,a=G(t),o=t.classSelector?n.getStylesForClass(t.classSelector):[],s=o.length>0?o:void 0,c={level:i,name:a,type:t.$type,value:t.value,classSelector:t.classSelector,cssCompiledStyles:s};r.push(c)}let i=U(r),a=e.h((e,t)=>{for(let r of e)n.addNode(r,t),r.children&&r.children.length>0&&a(r.children,t+1)},`addNodesRecursively`);a(i,0)},`populate`),G=e.h(e=>e.name?String(e.name):``,`getItemName`),K={parser:{yy:void 0},parse:e.h(async t=>{try{let n=await s.t(`treemap`,t);e.g.debug(`Treemap AST:`,n);let r=K.parser?.yy;if(!(r instanceof H))throw Error(`parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);W(n,r)}catch(t){throw e.g.error(`Error parsing treemap:`,t),t}},`parse`)},q=10,J=10,Y=25,X={draw:e.h((i,s,c,u)=>{let d=u.db,f=d.getConfig(),p=f.padding??q,m=d.getDiagramTitle(),h=d.getRoot(),{themeVariables:g}=t.b();if(!h)return;let _=m?30:0,v=a.t(s),y=f.nodeWidth?f.nodeWidth*J:960,b=f.nodeHeight?f.nodeHeight*J:500,x=y,S=b+_;v.attr(`viewBox`,`0 0 ${x} ${S}`),t.c(v,S,x,f.useMaxWidth);let C;try{let t=f.valueFormat||`,`;if(t===`$0,0`)C=e.h(e=>`$`+r.t(`,`)(e),`valueFormat`);else if(t.startsWith(`$`)&&t.includes(`,`)){let n=/\.\d+/.exec(t),i=n?n[0]:``;C=e.h(e=>`$`+r.t(`,`+i)(e),`valueFormat`)}else if(t.startsWith(`$`)){let n=t.substring(1);C=e.h(e=>`$`+r.t(n||``)(e),`valueFormat`)}else C=r.t(t)}catch(t){e.g.error(`Error creating format function:`,t),C=r.t(`,`)}let w=n.t().range([`transparent`,g.cScale0,g.cScale1,g.cScale2,g.cScale3,g.cScale4,g.cScale5,g.cScale6,g.cScale7,g.cScale8,g.cScale9,g.cScale10,g.cScale11]),E=n.t().range([`transparent`,g.cScalePeer0,g.cScalePeer1,g.cScalePeer2,g.cScalePeer3,g.cScalePeer4,g.cScalePeer5,g.cScalePeer6,g.cScalePeer7,g.cScalePeer8,g.cScalePeer9,g.cScalePeer10,g.cScalePeer11]),D=n.t().range([g.cScaleLabel0,g.cScaleLabel1,g.cScaleLabel2,g.cScaleLabel3,g.cScaleLabel4,g.cScaleLabel5,g.cScaleLabel6,g.cScaleLabel7,g.cScaleLabel8,g.cScaleLabel9,g.cScaleLabel10,g.cScaleLabel11]);m&&v.append(`text`).attr(`x`,x/2).attr(`y`,_/2).attr(`class`,`treemapTitle`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(m);let O=v.append(`g`).attr(`transform`,`translate(0, ${_})`).attr(`class`,`treemapContainer`),k=T(h).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),A=V().size([y,b]).paddingTop(e=>e.children&&e.children.length>0?Y+J:0).paddingInner(p).paddingLeft(e=>e.children&&e.children.length>0?J:0).paddingRight(e=>e.children&&e.children.length>0?J:0).paddingBottom(e=>e.children&&e.children.length>0?J:0).round(!0)(k),j=A.descendants().filter(e=>e.children&&e.children.length>0),M=O.selectAll(`.treemapSection`).data(j).enter().append(`g`).attr(`class`,`treemapSection`).attr(`transform`,e=>`translate(${e.x0},${e.y0})`);M.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,Y).attr(`class`,`treemapSectionHeader`).attr(`fill`,`none`).attr(`fill-opacity`,.6).attr(`stroke-width`,.6).attr(`style`,e=>e.depth===0?`display: none;`:``),M.append(`clipPath`).attr(`id`,(e,t)=>`clip-section-${s}-${t}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-12)).attr(`height`,Y),M.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,e=>e.y1-e.y0).attr(`class`,(e,t)=>`treemapSection section${t}`).attr(`fill`,e=>w(e.data.name)).attr(`fill-opacity`,.6).attr(`stroke`,e=>E(e.data.name)).attr(`stroke-width`,2).attr(`stroke-opacity`,.4).attr(`style`,e=>{if(e.depth===0)return`display: none;`;let t=o.i({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+`;`+t.borderStyles.join(`;`)}),M.append(`text`).attr(`class`,`treemapSectionLabel`).attr(`x`,6).attr(`y`,Y/2).attr(`dominant-baseline`,`middle`).text(e=>e.depth===0?``:e.data.name).attr(`font-weight`,`bold`).attr(`style`,e=>e.depth===0?`display: none;`:`dominant-baseline: middle; font-size: 12px; fill:`+D(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+o.i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).each(function(t){if(t.depth===0)return;let n=e.p(this),r=t.data.name;n.text(r);let i=t.x1-t.x0,a;a=f.showValues!==!1&&t.value?i-10-30-10-6:i-6-6;let o=Math.max(15,a),s=n.node();if(s.getComputedTextLength()>o){let e=r;for(;e.length>0;){if(e=r.substring(0,e.length-1),e.length===0){n.text(`...`),s.getComputedTextLength()>o&&n.text(``);break}if(n.text(e+`...`),s.getComputedTextLength()<=o)break}}}),f.showValues!==!1&&M.append(`text`).attr(`class`,`treemapSectionValue`).attr(`x`,e=>e.x1-e.x0-10).attr(`y`,Y/2).attr(`text-anchor`,`end`).attr(`dominant-baseline`,`middle`).text(e=>e.value?C(e.value):``).attr(`font-style`,`italic`).attr(`style`,e=>e.depth===0?`display: none;`:`text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:`+D(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+o.i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`));let N=A.leaves(),P=O.selectAll(`.treemapLeafGroup`).data(N).enter().append(`g`).attr(`class`,(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:``}x`).attr(`transform`,e=>`translate(${e.x0},${e.y0})`);P.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,e=>e.y1-e.y0).attr(`class`,`treemapLeaf`).attr(`fill`,e=>e.parent?w(e.parent.data.name):w(e.data.name)).attr(`style`,e=>o.i({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr(`fill-opacity`,.3).attr(`stroke`,e=>e.parent?w(e.parent.data.name):w(e.data.name)).attr(`stroke-width`,3),P.append(`clipPath`).attr(`id`,(e,t)=>`clip-${s}-${t}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-4)).attr(`height`,e=>Math.max(0,e.y1-e.y0-4)),P.append(`text`).attr(`class`,`treemapLabel`).attr(`x`,e=>(e.x1-e.x0)/2).attr(`y`,e=>(e.y1-e.y0)/2).attr(`style`,e=>`text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:`+D(e.data.name)+`;`+o.i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,t)=>`url(#clip-${s}-${t})`).text(e=>e.data.name).each(function(t){let n=e.p(this),r=t.x1-t.x0,i=t.y1-t.y0,a=n.node(),o=r-8,s=i-8;if(o<10||s<10){n.style(`display`,`none`);return}let c=parseInt(n.style(`font-size`),10),l=.6;for(;a.getComputedTextLength()>o&&c>8;)c--,n.style(`font-size`,`${c}px`);let u=Math.max(6,Math.min(28,Math.round(c*l))),d=c+2+u;for(;d>s&&c>8&&(c--,u=Math.max(6,Math.min(28,Math.round(c*l))),!(u<6&&c===8));)n.style(`font-size`,`${c}px`),d=c+2+u;n.style(`font-size`,`${c}px`),(a.getComputedTextLength()>o||c<8||s<c)&&n.style(`display`,`none`)}),f.showValues!==!1&&P.append(`text`).attr(`class`,`treemapValue`).attr(`x`,e=>(e.x1-e.x0)/2).attr(`y`,function(e){return(e.y1-e.y0)/2}).attr(`style`,e=>`text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:`+D(e.data.name)+`;`+o.i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,t)=>`url(#clip-${s}-${t})`).text(e=>e.value?C(e.value):``).each(function(t){let n=e.p(this),r=this.parentNode;if(!r){n.style(`display`,`none`);return}let i=e.p(r).select(`.treemapLabel`);if(i.empty()||i.style(`display`)===`none`){n.style(`display`,`none`);return}let a=parseFloat(i.style(`font-size`)),o=Math.max(6,Math.min(28,Math.round(a*.6)));n.style(`font-size`,`${o}px`);let s=(t.y1-t.y0)/2+a/2+2;n.attr(`y`,s);let c=t.x1-t.x0,l=t.y1-t.y0-4,u=c-8;n.node().getComputedTextLength()>u||s+o>l||o<6?n.style(`display`,`none`):n.style(`display`,null)}),l.t(v,f.diagramPadding??8,`flowchart`,f?.useMaxWidth||!1)},`draw`),getClasses:e.h(function(e,t){return t.db.getClasses()},`getClasses`)},Z={sectionStrokeColor:`black`,sectionStrokeWidth:`1`,sectionFillColor:`#efefef`,leafStrokeColor:`black`,leafStrokeWidth:`1`,leafFillColor:`#efefef`,labelFontSize:`12px`,valueFontSize:`10px`,titleFontSize:`14px`},Q={parser:K,get db(){return new H},renderer:X,styles:e.h(({treemap:e}={})=>{let n=i.i(t.D(),t.b().themeVariables),r=i.i(Z,e),a=r.titleColor??n.titleColor,o=r.labelColor??n.textColor,s=r.valueColor??n.textColor;return`
|
|
2
|
-
.treemapNode.section {
|
|
3
|
-
stroke: ${r.sectionStrokeColor};
|
|
4
|
-
stroke-width: ${r.sectionStrokeWidth};
|
|
5
|
-
fill: ${r.sectionFillColor};
|
|
6
|
-
}
|
|
7
|
-
.treemapNode.leaf {
|
|
8
|
-
stroke: ${r.leafStrokeColor};
|
|
9
|
-
stroke-width: ${r.leafStrokeWidth};
|
|
10
|
-
fill: ${r.leafFillColor};
|
|
11
|
-
}
|
|
12
|
-
.treemapLabel {
|
|
13
|
-
fill: ${o};
|
|
14
|
-
font-size: ${r.labelFontSize};
|
|
15
|
-
}
|
|
16
|
-
.treemapValue {
|
|
17
|
-
fill: ${s};
|
|
18
|
-
font-size: ${r.valueFontSize};
|
|
19
|
-
}
|
|
20
|
-
.treemapTitle {
|
|
21
|
-
fill: ${a};
|
|
22
|
-
font-size: ${r.titleFontSize};
|
|
23
|
-
}
|
|
24
|
-
`},`getStyles`)};exports.diagram=Q;
|
package/dist/dist-Dwq87x4R.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./chunk-mLOUI7ql.cjs");var t=Math.abs,n=Math.atan2,r=Math.cos,i=Math.max,a=Math.min,o=Math.sin,s=Math.sqrt,c=1e-12,l=Math.PI,u=l/2,d=2*l;function f(e){return e>1?0:e<-1?l:Math.acos(e)}function p(e){return e>=1?u:e<=-1?-u:Math.asin(e)}var m=e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|:)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[`.`,`/`],e.BLANK_URL=`about:blank`})),h=e.t((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sanitizeUrl=void 0;var t=m();function n(e){return t.relativeFirstCharacters.indexOf(e[0])>-1}function r(e){return e.replace(t.ctrlCharactersRegex,``).replace(t.htmlEntitiesRegex,function(e,t){return String.fromCharCode(t)})}function i(e){return URL.canParse(e)}function a(e){try{return decodeURIComponent(e)}catch{return e}}function o(e){if(!e)return t.BLANK_URL;var o,s=a(e.trim());do s=r(s).replace(t.htmlCtrlEntityRegex,``).replace(t.ctrlCharactersRegex,``).replace(t.whitespaceEscapeCharsRegex,``).trim(),s=a(s),o=s.match(t.ctrlCharactersRegex)||s.match(t.htmlEntitiesRegex)||s.match(t.htmlCtrlEntityRegex)||s.match(t.whitespaceEscapeCharsRegex);while(o&&o.length>0);var c=s;if(!c)return t.BLANK_URL;if(n(c))return c;var l=c.trimStart(),u=l.match(t.urlSchemeRegex);if(!u)return c;var d=u[0].toLowerCase().trim();if(t.invalidProtocolRegex.test(d))return t.BLANK_URL;var f=l.replace(/\\/g,`/`);if(d===`mailto:`||d.includes(`://`))return f;if(d===`http:`||d===`https:`){if(!i(f))return t.BLANK_URL;var p=new URL(f);return p.protocol=p.protocol.toLowerCase(),p.hostname=p.hostname.toLowerCase(),p.toString()}return f}e.sanitizeUrl=o}));Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return a}});
|