@sme.up/ketchup2 2.0.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arc-CqG9Hxdf.cjs +1 -0
- package/dist/arc-Klgb378K.js +80 -0
- package/dist/architecture-YZFGNWBL-BRqToLcm.js +3 -0
- package/dist/architecture-YZFGNWBL-BTOWQWD9.cjs +1 -0
- package/dist/architectureDiagram-Q4EWVU46-CX_6DnSJ.cjs +36 -0
- package/dist/architectureDiagram-Q4EWVU46-CnzjcVBn.js +4057 -0
- package/dist/array-D8NZ46Ht.js +6 -0
- package/dist/array-Dxz0O8Q3.cjs +1 -0
- package/dist/assets/buttonListAssets.d.ts +8 -0
- package/dist/assets/buttonListAssets.d.ts.map +1 -1
- package/dist/assets/imageListAssets.d.ts +3 -1
- package/dist/assets/imageListAssets.d.ts.map +1 -1
- package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
- package/dist/basic-components/button/button-types.d.ts +4 -0
- package/dist/basic-components/button/button-types.d.ts.map +1 -1
- package/dist/basic-components/button-dropdown/button-dropdown-types.d.ts +16 -0
- package/dist/basic-components/button-dropdown/button-dropdown-types.d.ts.map +1 -0
- package/dist/basic-components/button-dropdown/button-dropdown.d.ts +4 -0
- package/dist/basic-components/button-dropdown/button-dropdown.d.ts.map +1 -0
- package/dist/basic-components/button-list/button-list-types.d.ts +6 -0
- 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-utils.d.ts +11 -4
- 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/image/image.d.ts.map +1 -1
- package/dist/basic-components/image-cell/image-cell-types.d.ts +12 -3
- package/dist/basic-components/image-cell/image-cell-types.d.ts.map +1 -1
- package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
- package/dist/basic-components/list/list-types.d.ts +0 -1
- package/dist/basic-components/list/list-types.d.ts.map +1 -1
- package/dist/basic-components/list/list.d.ts.map +1 -1
- package/dist/basic-components/notification/notification.assets.d.ts.map +1 -1
- package/dist/basic-components/select/select.d.ts.map +1 -1
- package/dist/basic-components/text/text.d.ts.map +1 -1
- package/dist/basic-components/text-editor/text-editor-utils.d.ts.map +1 -1
- package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
- package/dist/blockDiagram-DXYQGD6D-B0NvV2Ph.js +3033 -0
- package/dist/blockDiagram-DXYQGD6D-D6DypQdM.cjs +132 -0
- package/dist/c4Diagram-AHTNJAMY-DPijI3_r.js +2961 -0
- package/dist/c4Diagram-AHTNJAMY-Dgwv-e5O.cjs +10 -0
- package/dist/channel-CRWct3-i.js +5 -0
- package/dist/channel-DkTvdPpU.cjs +1 -0
- package/dist/chunk-2KRD3SAO-Ca3zDQyj.js +23 -0
- package/dist/chunk-2KRD3SAO-oZrIWZvV.cjs +1 -0
- package/dist/chunk-336JU56O-DQhIGd25.cjs +1 -0
- package/dist/chunk-336JU56O-DkZvWJVe.js +49 -0
- package/dist/chunk-426QAEUC-CDXJVpQr.js +9 -0
- package/dist/chunk-426QAEUC-CqN26l3E.cjs +1 -0
- package/dist/chunk-4BX2VUAB-BW54-JWg.js +8 -0
- package/dist/chunk-4BX2VUAB-Qba52sxc.cjs +1 -0
- package/dist/chunk-4TB4RGXK-B0SIkKDf.cjs +206 -0
- package/dist/chunk-4TB4RGXK-D2LRzcEP.js +3253 -0
- package/dist/chunk-55IACEB6-Bu3k0Yz5.js +8 -0
- package/dist/chunk-55IACEB6-DPatBzu7.cjs +1 -0
- package/dist/chunk-5FUZZQ4R-Cj5KbGC7.cjs +62 -0
- package/dist/chunk-5FUZZQ4R-D3C0F0Tr.js +3638 -0
- package/dist/chunk-5PVQY5BW-DEPZKGvb.cjs +2 -0
- package/dist/chunk-5PVQY5BW-Dn8n6moB.js +1299 -0
- package/dist/chunk-67CJDMHE-2Qg7i1xJ.cjs +1 -0
- package/dist/chunk-67CJDMHE-YMBkJcAO.js +23 -0
- package/dist/chunk-7N4EOEYR-C-GuhRgW.js +35 -0
- package/dist/chunk-7N4EOEYR-jNBQwvHx.cjs +1 -0
- package/dist/chunk-AA7GKIK3-B_ZB6dou.js +30 -0
- package/dist/chunk-AA7GKIK3-dqnTmnvO.cjs +1 -0
- package/dist/chunk-BSJP7CBP-CFzYPvgr.cjs +1 -0
- package/dist/chunk-BSJP7CBP-oNTXVRA7.js +82 -0
- package/dist/chunk-CIAEETIT-ClHUj0Su.cjs +1 -0
- package/dist/chunk-CIAEETIT-XlxsAz-4.js +23 -0
- package/dist/chunk-D-IZpNpi.cjs +1 -0
- package/dist/chunk-EDXVE4YY-1dwNWzc7.cjs +1 -0
- package/dist/chunk-EDXVE4YY-CGNVB686.js +25 -0
- package/dist/chunk-ENJZ2VHE-BAWfx0nA.cjs +10 -0
- package/dist/chunk-ENJZ2VHE-CZ7BvL2h.js +560 -0
- package/dist/{chunk-FMBD7UC4-C1wIcaJH.js → chunk-FMBD7UC4-CS9_r76V.cjs} +2 -6
- package/dist/chunk-FMBD7UC4-RRSc9jqt.js +5 -0
- package/dist/chunk-FOC6F5B3-DcZs851j.cjs +1 -0
- package/dist/chunk-FOC6F5B3-E9n6-juB.js +23 -0
- package/dist/chunk-ICPOFSXX-fQJ5ufMR.js +3320 -0
- package/dist/chunk-ICPOFSXX-hY6BIZ4Y.cjs +122 -0
- package/dist/chunk-K5T4RW27-BzDQkjC7.cjs +94 -0
- package/dist/chunk-K5T4RW27-DY7TOEqa.js +16070 -0
- package/dist/chunk-KGLVRYIC-5OJpfQCj.js +23 -0
- package/dist/chunk-KGLVRYIC-DnbIkai8.cjs +1 -0
- package/dist/chunk-LIHQZDEY-59I4-LWb.js +64 -0
- package/dist/chunk-LIHQZDEY-CrogR3nT.cjs +1 -0
- package/dist/chunk-ORNJ4GCN-CcrEtiCn.cjs +1 -0
- package/dist/chunk-ORNJ4GCN-CwkOSFbS.js +31 -0
- package/dist/chunk-OYMX7WX6-CrK-lehh.cjs +231 -0
- package/dist/chunk-OYMX7WX6-DJkGVCqi.js +2014 -0
- package/dist/chunk-QZHKN3VN-Bx8I6l3c.js +15 -0
- package/dist/chunk-QZHKN3VN-CSMKL2rB.cjs +1 -0
- package/dist/chunk-U2HBQHQK-CJ77uizk.cjs +70 -0
- package/dist/chunk-U2HBQHQK-Ceyeq0IV.js +1879 -0
- package/dist/chunk-WQLz0Won.js +20 -0
- package/dist/chunk-X2U36JSP-CtXjVqek.cjs +1 -0
- package/dist/chunk-X2U36JSP-VxRY65ea.js +67 -0
- package/dist/chunk-XPW4576I-BcWkx-AL.js +1146 -0
- package/dist/chunk-XPW4576I-D8Pp6a3j.cjs +32 -0
- package/dist/chunk-YZCP3GAM-D6P3SWmL.js +60 -0
- package/dist/chunk-YZCP3GAM-qxaNo0r8.cjs +1 -0
- package/dist/chunk-ZZ45TVLE-BfSqZnT4.cjs +1 -0
- package/dist/chunk-ZZ45TVLE-X2jolXSO.js +32 -0
- package/dist/classDiagram-6PBFFD2Q-BT4_JTnP.cjs +1 -0
- package/dist/classDiagram-6PBFFD2Q-Dgaxt4wI.js +29 -0
- package/dist/classDiagram-v2-HSJHXN6E-CWhiK6nm.js +29 -0
- package/dist/classDiagram-v2-HSJHXN6E-DkBLzgTv.cjs +1 -0
- package/dist/clone-CQQwPjME.cjs +1 -0
- package/dist/clone-Dwbh_blD.js +8 -0
- package/dist/components/drawer/drawer-types.d.ts +4 -0
- package/dist/components/drawer/drawer-types.d.ts.map +1 -1
- package/dist/components/image-list/components/image-list-command-panel.d.ts +15 -0
- package/dist/components/image-list/components/image-list-command-panel.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-command-trigger.d.ts +16 -0
- package/dist/components/image-list/components/image-list-command-trigger.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-filter-picker.d.ts +14 -0
- package/dist/components/image-list/components/image-list-filter-picker.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-h-strip.d.ts.map +1 -1
- package/dist/components/image-list/components/image-list-json-viewer.d.ts +11 -0
- package/dist/components/image-list/components/image-list-json-viewer.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-menu.d.ts.map +1 -1
- package/dist/components/image-list/components/image-list-navigation-picker.d.ts +6 -2
- package/dist/components/image-list/components/image-list-navigation-picker.d.ts.map +1 -1
- package/dist/components/image-list/components/image-list-sort-picker.d.ts +14 -0
- package/dist/components/image-list/components/image-list-sort-picker.d.ts.map +1 -0
- package/dist/components/image-list/components/image-list-v-strip.d.ts.map +1 -1
- package/dist/components/image-list/components/items/image-list-card-item.d.ts +5 -0
- package/dist/components/image-list/components/items/image-list-card-item.d.ts.map +1 -0
- package/dist/components/image-list/components/items/image-list-folder-item.d.ts.map +1 -1
- package/dist/components/image-list/components/items/image-list-item.d.ts.map +1 -1
- package/dist/components/image-list/components/menu-nav-item.d.ts.map +1 -1
- package/dist/components/image-list/components/navigation-modes/image-list-catalog.d.ts.map +1 -1
- package/dist/components/image-list/components/navigation-modes/image-list-explorer.d.ts.map +1 -1
- package/dist/components/image-list/components/navigation-modes/image-list-tree.d.ts.map +1 -1
- package/dist/components/image-list/components/strip-item.d.ts.map +1 -1
- package/dist/components/image-list/hooks/useCommandPickers.d.ts +13 -0
- package/dist/components/image-list/hooks/useCommandPickers.d.ts.map +1 -0
- package/dist/components/image-list/image-list-column-utils.d.ts +9 -0
- package/dist/components/image-list/image-list-column-utils.d.ts.map +1 -0
- package/dist/components/image-list/image-list-context.d.ts +5 -2
- package/dist/components/image-list/image-list-context.d.ts.map +1 -1
- package/dist/components/image-list/image-list-debug-utils.d.ts +13 -0
- package/dist/components/image-list/image-list-debug-utils.d.ts.map +1 -0
- package/dist/components/image-list/image-list-filter-context.d.ts +9 -0
- package/dist/components/image-list/image-list-filter-context.d.ts.map +1 -0
- package/dist/components/image-list/image-list-filter-utils.d.ts +12 -0
- package/dist/components/image-list/image-list-filter-utils.d.ts.map +1 -0
- package/dist/components/image-list/image-list-sort-context.d.ts +9 -0
- package/dist/components/image-list/image-list-sort-context.d.ts.map +1 -0
- package/dist/components/image-list/image-list-sort-utils.d.ts +13 -0
- package/dist/components/image-list/image-list-sort-utils.d.ts.map +1 -0
- package/dist/components/image-list/image-list-state-context.d.ts +5 -0
- package/dist/components/image-list/image-list-state-context.d.ts.map +1 -0
- package/dist/components/image-list/image-list-types.d.ts +45 -2
- package/dist/components/image-list/image-list-types.d.ts.map +1 -1
- package/dist/components/image-list/image-list-utils.d.ts +24 -1
- package/dist/components/image-list/image-list-utils.d.ts.map +1 -1
- package/dist/components/image-list/image-list.d.ts +1 -1
- package/dist/components/image-list/image-list.d.ts.map +1 -1
- package/dist/components/planner/planner-assets.d.ts +1 -1
- package/dist/components/planner/planner-assets.d.ts.map +1 -1
- package/dist/components/planner/planner-types.d.ts +1 -1
- package/dist/components/planner/planner-types.d.ts.map +1 -1
- package/dist/components/planner/planner-utils.d.ts +6 -5
- package/dist/components/planner/planner-utils.d.ts.map +1 -1
- package/dist/components/planner/planner.d.ts.map +1 -1
- package/dist/components/scaffold/context/scaffold-provider.d.ts.map +1 -1
- package/dist/components/scaffold/scaffold-types.d.ts +1 -0
- package/dist/components/scaffold/scaffold-types.d.ts.map +1 -1
- package/dist/components/timeline/timeline-types.d.ts +6 -2
- package/dist/components/timeline/timeline-types.d.ts.map +1 -1
- package/dist/components/timeline/timeline.d.ts.map +1 -1
- package/dist/components/toolbar/toolbar.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/cose-bilkent-S5V4N54A-B30Rh9DR.js +2250 -0
- package/dist/cose-bilkent-S5V4N54A-Bhdp-wcb.cjs +1 -0
- package/dist/cytoscape.esm-CPjF_mSK.js +18100 -0
- package/dist/cytoscape.esm-CrBwLFXE.cjs +321 -0
- package/dist/dagre-BcwvU6ZF.cjs +1 -0
- package/dist/dagre-D17h-Z-U.js +1606 -0
- package/dist/dagre-KV5264BT-BnEKAAAn.js +293 -0
- package/dist/dagre-KV5264BT-DRbiLA37.cjs +4 -0
- package/dist/defaultLocale-Dcyuaxxg.js +201 -0
- package/dist/defaultLocale-DtzyZW63.cjs +1 -0
- package/dist/diagram-5BDNPKRD-B_Fa4dpl.js +101 -0
- package/dist/diagram-5BDNPKRD-CPN8m2Hl.cjs +10 -0
- package/dist/diagram-G4DWMVQ6-VpXkNb67.cjs +24 -0
- package/dist/diagram-G4DWMVQ6-iYV58Drq.js +524 -0
- package/dist/diagram-MMDJMWI5-DGk_PUo9.cjs +43 -0
- package/dist/diagram-MMDJMWI5-DUpEI5ug.js +213 -0
- package/dist/diagram-TYMM5635-BH_-vSv9.cjs +24 -0
- package/dist/diagram-TYMM5635-DHHPZ5ZJ.js +133 -0
- package/dist/dist-BgvMZbfo.cjs +1 -0
- package/dist/dist-DL30VIBI.js +60 -0
- package/dist/erDiagram-SMLLAGMA-C8FM7wbJ.js +1700 -0
- package/dist/erDiagram-SMLLAGMA-vuYEmfFA.cjs +85 -0
- package/dist/flatten-BE1bWL-7.js +40 -0
- package/dist/flatten-DxvYSoR8.cjs +1 -0
- package/dist/flowDiagram-DWJPFMVM-BGtX2gw0.js +4145 -0
- package/dist/flowDiagram-DWJPFMVM-DWuKiJeo.cjs +162 -0
- package/dist/functional-components/action/action-types.d.ts +32 -2
- package/dist/functional-components/action/action-types.d.ts.map +1 -1
- package/dist/functional-components/action/action-utils.d.ts +13 -1
- package/dist/functional-components/action/action-utils.d.ts.map +1 -1
- package/dist/functional-components/action/action.d.ts.map +1 -1
- package/dist/functional-components/action-list/action-list.d.ts.map +1 -1
- package/dist/functional-components/action-list/dual-list/dual-list.d.ts.map +1 -1
- package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts +18 -0
- package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts.map +1 -0
- package/dist/functional-components/{gantt → timeline-engine/components/gantt}/gantt-assets.d.ts +2 -0
- package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -0
- package/dist/functional-components/{gantt → timeline-engine/components/gantt}/gantt.d.ts +3 -3
- package/dist/functional-components/timeline-engine/components/gantt/gantt.d.ts.map +1 -0
- package/dist/functional-components/{gantt → timeline-engine/components/gantt}/grid/gantt-grid.d.ts +3 -5
- package/dist/functional-components/timeline-engine/components/gantt/grid/gantt-grid.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/gantt/header/gantt-header.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/gantt/today-indicator/gantt-today-indicator.d.ts.map +1 -0
- package/dist/functional-components/{gantt → timeline-engine/components/gantt}/types/gantt-types.d.ts +27 -6
- package/dist/functional-components/timeline-engine/components/gantt/types/gantt-types.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/task-list/task-list-types.d.ts +27 -0
- package/dist/functional-components/timeline-engine/components/task-list/task-list-types.d.ts.map +1 -0
- package/dist/functional-components/{task-list → timeline-engine/components/task-list}/task-list-utils.d.ts +4 -4
- package/dist/functional-components/timeline-engine/components/task-list/task-list-utils.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/task-list/task-list.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts +24 -0
- package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts +119 -0
- package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/timeline-engine-utils.test.d.ts +2 -0
- package/dist/functional-components/timeline-engine/timeline-engine-utils.test.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/timeline-engine.d.ts +8 -0
- package/dist/functional-components/timeline-engine/timeline-engine.d.ts.map +1 -0
- package/dist/ganttDiagram-T4ZO3ILL-C25CnBTv.cjs +292 -0
- package/dist/ganttDiagram-T4ZO3ILL-PY1BUp5b.js +3077 -0
- package/dist/gitGraph-7Q5UKJZL-DZea3ltD.cjs +1 -0
- package/dist/gitGraph-7Q5UKJZL-sjlqDwJ_.js +3 -0
- package/dist/gitGraphDiagram-UUTBAWPF-0lCBo9nK.cjs +106 -0
- package/dist/gitGraphDiagram-UUTBAWPF-CDIW9-sX.js +728 -0
- package/dist/graphlib-CdgJ32J_.cjs +1 -0
- package/dist/graphlib-DbQkSsC8.js +373 -0
- package/dist/hooks/useClickOutside.d.ts.map +1 -1
- package/dist/hooks/useFocusTrap.d.ts.map +1 -1
- package/dist/hooks/useGanttMath.d.ts +1 -1
- package/dist/hooks/useGanttMath.d.ts.map +1 -1
- package/dist/hooks/useVirtualListScroll.d.ts.map +1 -1
- package/dist/identity-KQSjemTb.cjs +1 -0
- package/dist/identity-g0dsMjx7.js +393 -0
- package/dist/info-OMHHGYJF-Bk0VWVNW.js +3 -0
- package/dist/info-OMHHGYJF-C8QtwF0k.cjs +1 -0
- package/dist/infoDiagram-42DDH7IO-CQLxpytS.js +19 -0
- package/dist/infoDiagram-42DDH7IO-Da__a_a_.cjs +2 -0
- package/dist/init-B2MubQrj.cjs +1 -0
- package/dist/init-BO60vQHJ.js +15 -0
- package/dist/isEmpty-CA3kJuev.cjs +1 -0
- package/dist/isEmpty-RwX-oIQS.js +35 -0
- package/dist/ishikawaDiagram-UXIWVN3A-BblrAmns.js +718 -0
- package/dist/ishikawaDiagram-UXIWVN3A-BfkF39Xv.cjs +70 -0
- package/dist/journeyDiagram-VCZTEJTY-CCOZ1XFK.js +883 -0
- package/dist/journeyDiagram-VCZTEJTY-UwcVOFtb.cjs +139 -0
- package/dist/kanban-definition-6JOO6SKY-BWwfbdd6.js +973 -0
- package/dist/kanban-definition-6JOO6SKY-Coxpi43B.cjs +89 -0
- package/dist/katex-Du5WiYIy.js +22000 -0
- package/dist/katex-SAH56fvc.cjs +257 -0
- package/dist/ketchup2.cjs.js +197 -1
- package/dist/ketchup2.css +2 -1
- package/dist/ketchup2.es.js +132798 -52
- package/dist/line-C7oijaT4.cjs +1 -0
- package/dist/line-CrxZdHmO.js +34 -0
- package/dist/linear-BsPvNLJv.js +289 -0
- package/dist/linear-CxHa1DsM.cjs +1 -0
- package/dist/mermaid-parser.core-CERDf-UG.js +69 -0
- package/dist/mermaid-parser.core-DHpvGOZR.cjs +3 -0
- package/dist/mindmap-definition-QFDTVHPH--xULjpFZ.cjs +96 -0
- package/dist/mindmap-definition-QFDTVHPH-dYQoMeA6.js +978 -0
- package/dist/ordinal-C-VoL0XF.js +65 -0
- package/dist/ordinal-Civr0hZL.cjs +1 -0
- package/dist/packet-4T2RLAQJ-X0BMsNFj.js +3 -0
- package/dist/packet-4T2RLAQJ-lvmQnXPI.cjs +1 -0
- package/dist/path-Civic7PQ.cjs +1 -0
- package/dist/path-CvfwEr8y.js +85 -0
- package/dist/pie-ZZUOXDRM-CJ_fU5k1.js +3 -0
- package/dist/pie-ZZUOXDRM-Dp4APKqR.cjs +1 -0
- package/dist/pieDiagram-DEJITSTG-7we8s9eC.cjs +30 -0
- package/dist/pieDiagram-DEJITSTG-Dj5pX4fC.js +165 -0
- package/dist/quadrantDiagram-34T5L4WZ-B3BFuPYQ.cjs +7 -0
- package/dist/quadrantDiagram-34T5L4WZ-BKNOJBiR.js +1974 -0
- package/dist/radar-PYXPWWZC-BHWJy_E1.cjs +1 -0
- package/dist/radar-PYXPWWZC-DgZIW9Ah.js +3 -0
- package/dist/reduce-B7WW9rkU.cjs +1 -0
- package/dist/reduce-DNnkcf3M.js +532 -0
- package/dist/requirementDiagram-MS252O5E-BemsEy3Y.cjs +84 -0
- package/dist/requirementDiagram-MS252O5E-r3eZu57d.js +2221 -0
- package/dist/rough.esm-1mqTSjCt.js +1352 -0
- package/dist/rough.esm-BLKo1fIQ.cjs +1 -0
- package/dist/sankeyDiagram-XADWPNL6-B9YCkPHh.cjs +10 -0
- package/dist/sankeyDiagram-XADWPNL6-ErTVVewH.js +920 -0
- package/dist/sequenceDiagram-FGHM5R23-BmqbzzHY.js +4157 -0
- package/dist/sequenceDiagram-FGHM5R23-CBpQL6X2.cjs +157 -0
- package/dist/src-BQiFKP24.js +2146 -0
- package/dist/src-DFxq-N5I.cjs +1 -0
- package/dist/stateDiagram-FHFEXIEX-CL9LE-W1.js +217 -0
- package/dist/stateDiagram-FHFEXIEX-Cju5Z2VS.cjs +1 -0
- package/dist/stateDiagram-v2-QKLJ7IA2-BHoytfGp.js +27 -0
- package/dist/stateDiagram-v2-QKLJ7IA2-DO1H6Vqa.cjs +1 -0
- package/dist/timeline-definition-GMOUNBTQ-BeTHmikc.cjs +120 -0
- package/dist/timeline-definition-GMOUNBTQ-DgcI7XnE.js +1068 -0
- package/dist/treeView-SZITEDCU-CT5vX0q9.cjs +1 -0
- package/dist/treeView-SZITEDCU-Df3xzFtO.js +3 -0
- package/dist/treemap-W4RFUUIX-Bk_jVZ7D.cjs +1 -0
- package/dist/treemap-W4RFUUIX-ClUtdSdn.js +3 -0
- package/dist/types/data-structures.d.ts +9 -1
- package/dist/types/data-structures.d.ts.map +1 -1
- package/dist/utils/data-structures.d.ts +2 -0
- package/dist/utils/data-structures.d.ts.map +1 -1
- package/dist/utils/style.d.ts +13 -2
- package/dist/utils/style.d.ts.map +1 -1
- package/dist/utils/translation.d.ts.map +1 -1
- package/dist/v4-6yr83DbP.cjs +1 -0
- package/dist/v4-BR71w5_q.js +33 -0
- package/dist/vennDiagram-DHZGUBPP-7tx3VVDU.js +1858 -0
- package/dist/vennDiagram-DHZGUBPP-C16dnMoe.cjs +34 -0
- package/dist/wardley-RL74JXVD-BtHQbnUy.js +3 -0
- package/dist/wardley-RL74JXVD-y8RO5Iqv.cjs +1 -0
- package/dist/wardleyDiagram-NUSXRM2D-DGKU7A2U.js +578 -0
- package/dist/wardleyDiagram-NUSXRM2D-DY51LHBa.cjs +20 -0
- package/dist/xychartDiagram-5P7HB3ND--7RYyckP.js +2044 -0
- package/dist/xychartDiagram-5P7HB3ND-Cj0HUNew.cjs +7 -0
- package/package.json +31 -31
- package/dist/_basePickBy-CPekwY_Z.js +0 -151
- package/dist/_basePickBy-DDhgLyLp.cjs +0 -1
- package/dist/_baseUniq-CAhfZr5S.js +0 -614
- package/dist/_baseUniq-bLb2QO_4.cjs +0 -1
- package/dist/arc-CnmUepZA.cjs +0 -1
- package/dist/arc-Md6Ds0JZ.js +0 -83
- package/dist/architecture-7HQA4BMR-DLImbuCr.js +0 -6
- package/dist/architecture-7HQA4BMR-zD1jCFXs.cjs +0 -1
- package/dist/architectureDiagram-VXUJARFQ-BkTy7RJA.js +0 -4661
- package/dist/architectureDiagram-VXUJARFQ-Vl-ya9R6.cjs +0 -36
- package/dist/blockDiagram-VD42YOAC-C9AJNM79.js +0 -2256
- package/dist/blockDiagram-VD42YOAC-D_EmYywD.cjs +0 -122
- package/dist/c4Diagram-YG6GDRKO-BfwBYulK.cjs +0 -10
- package/dist/c4Diagram-YG6GDRKO-YW-l-SYp.js +0 -1580
- package/dist/channel-BGeX_R6w.cjs +0 -1
- package/dist/channel-lqmaHMPZ.js +0 -5
- package/dist/chunk-4BX2VUAB-C6nahV0u.cjs +0 -1
- package/dist/chunk-4BX2VUAB-UMbIiF-V.js +0 -8
- package/dist/chunk-55IACEB6-CH_wWg2p.js +0 -8
- package/dist/chunk-55IACEB6-Cxt8uWHb.cjs +0 -1
- package/dist/chunk-B4BG7PRW-CTNZzNh0.js +0 -1375
- package/dist/chunk-B4BG7PRW-ekpXKNa3.cjs +0 -165
- package/dist/chunk-DI55MBZ5-BrLh6Fue.js +0 -1370
- package/dist/chunk-DI55MBZ5-TYqUGYGr.cjs +0 -220
- package/dist/chunk-FMBD7UC4-D0Nmh8EL.cjs +0 -15
- package/dist/chunk-QN33PNHL-B91UelWj.js +0 -19
- package/dist/chunk-QN33PNHL-KGNgU1-8.cjs +0 -1
- package/dist/chunk-QZHKN3VN-IV7jnz-R.js +0 -15
- package/dist/chunk-QZHKN3VN-ajuovO9B.cjs +0 -1
- package/dist/chunk-TZMSLE5B-Bkf7U79o.cjs +0 -1
- package/dist/chunk-TZMSLE5B-DArsm2Pn.js +0 -64
- package/dist/classDiagram-2ON5EDUG-C0_Gqd5k.js +0 -16
- package/dist/classDiagram-2ON5EDUG-Cnous8-m.cjs +0 -1
- package/dist/classDiagram-v2-WZHVMYZB-C0_Gqd5k.js +0 -16
- package/dist/classDiagram-v2-WZHVMYZB-Cnous8-m.cjs +0 -1
- package/dist/clone-B_MxWhab.js +0 -8
- package/dist/clone-D6gFD6F-.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-DHZ_jZYH.js +0 -2608
- package/dist/cose-bilkent-S5V4N54A-Da7jSuau.cjs +0 -1
- package/dist/cytoscape.esm-CNUX3VTg.cjs +0 -321
- package/dist/cytoscape.esm-Cvf3sx9F.js +0 -18704
- package/dist/dagre-6UL2VRFP-CI2ww-SU.js +0 -444
- package/dist/dagre-6UL2VRFP-qOR4yAIQ.cjs +0 -4
- package/dist/defaultLocale-D7EN2tov.js +0 -171
- package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
- package/dist/diagram-PSM6KHXK-1g8345m3.js +0 -531
- package/dist/diagram-PSM6KHXK-DHWL3g5V.cjs +0 -24
- package/dist/diagram-QEK2KX5R-B-VP4dVY.js +0 -217
- package/dist/diagram-QEK2KX5R-DDWbMmAv.cjs +0 -43
- package/dist/diagram-S2PKOQOG-BbSGqLET.js +0 -142
- package/dist/diagram-S2PKOQOG-Djw9RGNh.cjs +0 -24
- package/dist/erDiagram-Q2GNP2WA-CxY1P4hJ.js +0 -841
- package/dist/erDiagram-Q2GNP2WA-Pw9i-eBN.cjs +0 -60
- package/dist/flowDiagram-NV44I4VS-BOr3T0H8.js +0 -1620
- package/dist/flowDiagram-NV44I4VS-D9VKU1cV.cjs +0 -162
- package/dist/functional-components/gantt/bar/gantt-bar.d.ts +0 -17
- package/dist/functional-components/gantt/bar/gantt-bar.d.ts.map +0 -1
- package/dist/functional-components/gantt/gantt-assets.d.ts.map +0 -1
- package/dist/functional-components/gantt/gantt.d.ts.map +0 -1
- package/dist/functional-components/gantt/grid/gantt-grid.d.ts.map +0 -1
- package/dist/functional-components/gantt/header/gantt-header.d.ts.map +0 -1
- package/dist/functional-components/gantt/today-indicator/gantt-today-indicator.d.ts.map +0 -1
- package/dist/functional-components/gantt/types/gantt-types.d.ts.map +0 -1
- package/dist/functional-components/task-list/task-list-types.d.ts +0 -22
- package/dist/functional-components/task-list/task-list-types.d.ts.map +0 -1
- package/dist/functional-components/task-list/task-list-utils.d.ts.map +0 -1
- package/dist/functional-components/task-list/task-list.d.ts.map +0 -1
- package/dist/ganttDiagram-JELNMOA3-B4T6J11z.js +0 -2670
- package/dist/ganttDiagram-JELNMOA3-C4Y4VT0h.cjs +0 -267
- package/dist/gitGraph-G5XIXVHT-C5QaeLIs.cjs +0 -1
- package/dist/gitGraph-G5XIXVHT-bOZ2ppp1.js +0 -6
- package/dist/gitGraphDiagram-V2S2FVAM-CteUW9ML.js +0 -699
- package/dist/gitGraphDiagram-V2S2FVAM-D_v6ae_z.cjs +0 -65
- package/dist/graph-BBPk5jyk.cjs +0 -1
- package/dist/graph-h6vsxKyr.js +0 -247
- package/dist/hooks/usePlannerSync.d.ts +0 -11
- package/dist/hooks/usePlannerSync.d.ts.map +0 -1
- package/dist/index-CYQM-t1d.cjs +0 -390
- package/dist/index-FiV1b00w.js +0 -133122
- package/dist/info-VBDWY6EO-BEIYBsnB.cjs +0 -1
- package/dist/info-VBDWY6EO-BQAW_660.js +0 -6
- package/dist/infoDiagram-HS3SLOUP-DMalb3kC.js +0 -24
- package/dist/infoDiagram-HS3SLOUP-Tepm6ygN.cjs +0 -2
- package/dist/init-CHZsXQcr.cjs +0 -1
- package/dist/init-DjUOC4st.js +0 -16
- package/dist/journeyDiagram-XKPGCS4Q-CzePcKne.cjs +0 -139
- package/dist/journeyDiagram-XKPGCS4Q-D0u-RLFV.js +0 -834
- package/dist/kanban-definition-3W4ZIXB7-BSCzAsMJ.js +0 -719
- package/dist/kanban-definition-3W4ZIXB7-DdbH9sci.cjs +0 -89
- package/dist/katex-C2g-EhzP.cjs +0 -261
- package/dist/katex-CUSbq6rG.js +0 -11692
- package/dist/layout-6z7-eUnZ.js +0 -1335
- package/dist/layout-DbcrMh5B.cjs +0 -1
- package/dist/linear-BKevCbhh.js +0 -259
- package/dist/linear-C7uVEtWW.cjs +0 -1
- package/dist/mermaid-parser.core-Cwy51n_e.js +0 -17907
- package/dist/mermaid-parser.core-DQ2yhapR.cjs +0 -160
- package/dist/mindmap-definition-VGOIOE7T-CcEisj0R.cjs +0 -68
- package/dist/mindmap-definition-VGOIOE7T-xp6GmSIx.js +0 -758
- package/dist/ordinal-B6-f3MAq.js +0 -61
- package/dist/ordinal-CagbB1m8.cjs +0 -1
- package/dist/packet-DYOGHKS2-BGgwnMhM.js +0 -6
- package/dist/packet-DYOGHKS2-BWg8qxI8.cjs +0 -1
- package/dist/pie-VRWISCQL-DhM8CUW4.cjs +0 -1
- package/dist/pie-VRWISCQL-DrWIWm7W.js +0 -6
- package/dist/pieDiagram-ADFJNKIX-BdvacM-Z.cjs +0 -30
- package/dist/pieDiagram-ADFJNKIX-D6Fa7W_r.js +0 -161
- package/dist/quadrantDiagram-AYHSOK5B-CHMoSBvg.js +0 -1022
- package/dist/quadrantDiagram-AYHSOK5B-ddq5zZEg.cjs +0 -7
- package/dist/radar-ZZBFDIW7-CPvW4Njh.js +0 -6
- package/dist/radar-ZZBFDIW7-YJK72BlV.cjs +0 -1
- package/dist/requirementDiagram-UZGBJVZJ-Cr9HnGVO.js +0 -850
- package/dist/requirementDiagram-UZGBJVZJ-NdpzVbnf.cjs +0 -64
- package/dist/sankeyDiagram-TZEHDZUN-3f19WwKd.js +0 -810
- package/dist/sankeyDiagram-TZEHDZUN-D2Hzq4Kr.cjs +0 -10
- package/dist/sequenceDiagram-WL72ISMW-Cu-7V--6.js +0 -2511
- package/dist/sequenceDiagram-WL72ISMW-Nk6vhSK9.cjs +0 -145
- package/dist/stateDiagram-FKZM4ZOC-BSnDKUaW.cjs +0 -1
- package/dist/stateDiagram-FKZM4ZOC-BleTIniP.js +0 -263
- package/dist/stateDiagram-v2-4FDKWEC3-7EjW078x.js +0 -16
- package/dist/stateDiagram-v2-4FDKWEC3-BJPzO53y.cjs +0 -1
- package/dist/timeline-definition-IT6M3QCI-CFTjPpKy.js +0 -795
- package/dist/timeline-definition-IT6M3QCI-CfaGtuF2.cjs +0 -61
- package/dist/treemap-GDKQZRPO-CtDdEOaj.cjs +0 -1
- package/dist/treemap-GDKQZRPO-DlODAdQ2.js +0 -6
- package/dist/utils/wbs-utils.d.ts +0 -143
- package/dist/utils/wbs-utils.d.ts.map +0 -1
- package/dist/xychartDiagram-PRI3JC2R-mShGv2CD.cjs +0 -7
- package/dist/xychartDiagram-PRI3JC2R-vEJER5zT.js +0 -1340
- /package/dist/functional-components/{gantt → timeline-engine/components/gantt}/header/gantt-header.d.ts +0 -0
- /package/dist/functional-components/{gantt → timeline-engine/components/gantt}/today-indicator/gantt-today-indicator.d.ts +0 -0
- /package/dist/functional-components/{task-list → timeline-engine/components/task-list}/task-list.d.ts +0 -0
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
import { s as k, g as R, q as E, p as F, a as I, b as _, _ as l, H as D, y as G, D as f, E as P, F as C, l as z, K as H } from "./index-FiV1b00w.js";
|
|
2
|
-
import { p as V } from "./chunk-4BX2VUAB-UMbIiF-V.js";
|
|
3
|
-
import { p as W } from "./mermaid-parser.core-Cwy51n_e.js";
|
|
4
|
-
var x = {
|
|
5
|
-
showLegend: !0,
|
|
6
|
-
ticks: 5,
|
|
7
|
-
max: null,
|
|
8
|
-
min: 0,
|
|
9
|
-
graticule: "circle"
|
|
10
|
-
}, w = {
|
|
11
|
-
axes: [],
|
|
12
|
-
curves: [],
|
|
13
|
-
options: x
|
|
14
|
-
}, h = structuredClone(w), B = P.radar, j = /* @__PURE__ */ l(() => f({
|
|
15
|
-
...B,
|
|
16
|
-
...C().radar
|
|
17
|
-
}), "getConfig"), b = /* @__PURE__ */ l(() => h.axes, "getAxes"), q = /* @__PURE__ */ l(() => h.curves, "getCurves"), K = /* @__PURE__ */ l(() => h.options, "getOptions"), N = /* @__PURE__ */ l((a) => {
|
|
18
|
-
h.axes = a.map((t) => ({
|
|
19
|
-
name: t.name,
|
|
20
|
-
label: t.label ?? t.name
|
|
21
|
-
}));
|
|
22
|
-
}, "setAxes"), U = /* @__PURE__ */ l((a) => {
|
|
23
|
-
h.curves = a.map((t) => ({
|
|
24
|
-
name: t.name,
|
|
25
|
-
label: t.label ?? t.name,
|
|
26
|
-
entries: X(t.entries)
|
|
27
|
-
}));
|
|
28
|
-
}, "setCurves"), X = /* @__PURE__ */ l((a) => {
|
|
29
|
-
if (a[0].axis == null)
|
|
30
|
-
return a.map((e) => e.value);
|
|
31
|
-
const t = b();
|
|
32
|
-
if (t.length === 0)
|
|
33
|
-
throw new Error("Axes must be populated before curves for reference entries");
|
|
34
|
-
return t.map((e) => {
|
|
35
|
-
const r = a.find((s) => s.axis?.$refText === e.name);
|
|
36
|
-
if (r === void 0)
|
|
37
|
-
throw new Error("Missing entry for axis " + e.label);
|
|
38
|
-
return r.value;
|
|
39
|
-
});
|
|
40
|
-
}, "computeCurveEntries"), Y = /* @__PURE__ */ l((a) => {
|
|
41
|
-
const t = a.reduce(
|
|
42
|
-
(e, r) => (e[r.name] = r, e),
|
|
43
|
-
{}
|
|
44
|
-
);
|
|
45
|
-
h.options = {
|
|
46
|
-
showLegend: t.showLegend?.value ?? x.showLegend,
|
|
47
|
-
ticks: t.ticks?.value ?? x.ticks,
|
|
48
|
-
max: t.max?.value ?? x.max,
|
|
49
|
-
min: t.min?.value ?? x.min,
|
|
50
|
-
graticule: t.graticule?.value ?? x.graticule
|
|
51
|
-
};
|
|
52
|
-
}, "setOptions"), Z = /* @__PURE__ */ l(() => {
|
|
53
|
-
G(), h = structuredClone(w);
|
|
54
|
-
}, "clear"), $ = {
|
|
55
|
-
getAxes: b,
|
|
56
|
-
getCurves: q,
|
|
57
|
-
getOptions: K,
|
|
58
|
-
setAxes: N,
|
|
59
|
-
setCurves: U,
|
|
60
|
-
setOptions: Y,
|
|
61
|
-
getConfig: j,
|
|
62
|
-
clear: Z,
|
|
63
|
-
setAccTitle: _,
|
|
64
|
-
getAccTitle: I,
|
|
65
|
-
setDiagramTitle: F,
|
|
66
|
-
getDiagramTitle: E,
|
|
67
|
-
getAccDescription: R,
|
|
68
|
-
setAccDescription: k
|
|
69
|
-
}, J = /* @__PURE__ */ l((a) => {
|
|
70
|
-
V(a, $);
|
|
71
|
-
const { axes: t, curves: e, options: r } = a;
|
|
72
|
-
$.setAxes(t), $.setCurves(e), $.setOptions(r);
|
|
73
|
-
}, "populate"), Q = {
|
|
74
|
-
parse: /* @__PURE__ */ l(async (a) => {
|
|
75
|
-
const t = await W("radar", a);
|
|
76
|
-
z.debug(t), J(t);
|
|
77
|
-
}, "parse")
|
|
78
|
-
}, tt = /* @__PURE__ */ l((a, t, e, r) => {
|
|
79
|
-
const s = r.db, o = s.getAxes(), i = s.getCurves(), n = s.getOptions(), c = s.getConfig(), d = s.getDiagramTitle(), p = D(t), u = et(p, c), g = n.max ?? Math.max(...i.map((y) => Math.max(...y.entries))), m = n.min, v = Math.min(c.width, c.height) / 2;
|
|
80
|
-
at(u, o, v, n.ticks, n.graticule), rt(u, o, v, c), M(u, o, i, m, g, n.graticule, c), T(u, i, n.showLegend, c), u.append("text").attr("class", "radarTitle").text(d).attr("x", 0).attr("y", -c.height / 2 - c.marginTop);
|
|
81
|
-
}, "draw"), et = /* @__PURE__ */ l((a, t) => {
|
|
82
|
-
const e = t.width + t.marginLeft + t.marginRight, r = t.height + t.marginTop + t.marginBottom, s = {
|
|
83
|
-
x: t.marginLeft + t.width / 2,
|
|
84
|
-
y: t.marginTop + t.height / 2
|
|
85
|
-
};
|
|
86
|
-
return a.attr("viewbox", `0 0 ${e} ${r}`).attr("width", e).attr("height", r), a.append("g").attr("transform", `translate(${s.x}, ${s.y})`);
|
|
87
|
-
}, "drawFrame"), at = /* @__PURE__ */ l((a, t, e, r, s) => {
|
|
88
|
-
if (s === "circle")
|
|
89
|
-
for (let o = 0; o < r; o++) {
|
|
90
|
-
const i = e * (o + 1) / r;
|
|
91
|
-
a.append("circle").attr("r", i).attr("class", "radarGraticule");
|
|
92
|
-
}
|
|
93
|
-
else if (s === "polygon") {
|
|
94
|
-
const o = t.length;
|
|
95
|
-
for (let i = 0; i < r; i++) {
|
|
96
|
-
const n = e * (i + 1) / r, c = t.map((d, p) => {
|
|
97
|
-
const u = 2 * p * Math.PI / o - Math.PI / 2, g = n * Math.cos(u), m = n * Math.sin(u);
|
|
98
|
-
return `${g},${m}`;
|
|
99
|
-
}).join(" ");
|
|
100
|
-
a.append("polygon").attr("points", c).attr("class", "radarGraticule");
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}, "drawGraticule"), rt = /* @__PURE__ */ l((a, t, e, r) => {
|
|
104
|
-
const s = t.length;
|
|
105
|
-
for (let o = 0; o < s; o++) {
|
|
106
|
-
const i = t[o].label, n = 2 * o * Math.PI / s - Math.PI / 2;
|
|
107
|
-
a.append("line").attr("x1", 0).attr("y1", 0).attr("x2", e * r.axisScaleFactor * Math.cos(n)).attr("y2", e * r.axisScaleFactor * Math.sin(n)).attr("class", "radarAxisLine"), a.append("text").text(i).attr("x", e * r.axisLabelFactor * Math.cos(n)).attr("y", e * r.axisLabelFactor * Math.sin(n)).attr("class", "radarAxisLabel");
|
|
108
|
-
}
|
|
109
|
-
}, "drawAxes");
|
|
110
|
-
function M(a, t, e, r, s, o, i) {
|
|
111
|
-
const n = t.length, c = Math.min(i.width, i.height) / 2;
|
|
112
|
-
e.forEach((d, p) => {
|
|
113
|
-
if (d.entries.length !== n)
|
|
114
|
-
return;
|
|
115
|
-
const u = d.entries.map((g, m) => {
|
|
116
|
-
const v = 2 * Math.PI * m / n - Math.PI / 2, y = A(g, r, s, c), O = y * Math.cos(v), S = y * Math.sin(v);
|
|
117
|
-
return { x: O, y: S };
|
|
118
|
-
});
|
|
119
|
-
o === "circle" ? a.append("path").attr("d", L(u, i.curveTension)).attr("class", `radarCurve-${p}`) : o === "polygon" && a.append("polygon").attr("points", u.map((g) => `${g.x},${g.y}`).join(" ")).attr("class", `radarCurve-${p}`);
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
l(M, "drawCurves");
|
|
123
|
-
function A(a, t, e, r) {
|
|
124
|
-
const s = Math.min(Math.max(a, t), e);
|
|
125
|
-
return r * (s - t) / (e - t);
|
|
126
|
-
}
|
|
127
|
-
l(A, "relativeRadius");
|
|
128
|
-
function L(a, t) {
|
|
129
|
-
const e = a.length;
|
|
130
|
-
let r = `M${a[0].x},${a[0].y}`;
|
|
131
|
-
for (let s = 0; s < e; s++) {
|
|
132
|
-
const o = a[(s - 1 + e) % e], i = a[s], n = a[(s + 1) % e], c = a[(s + 2) % e], d = {
|
|
133
|
-
x: i.x + (n.x - o.x) * t,
|
|
134
|
-
y: i.y + (n.y - o.y) * t
|
|
135
|
-
}, p = {
|
|
136
|
-
x: n.x - (c.x - i.x) * t,
|
|
137
|
-
y: n.y - (c.y - i.y) * t
|
|
138
|
-
};
|
|
139
|
-
r += ` C${d.x},${d.y} ${p.x},${p.y} ${n.x},${n.y}`;
|
|
140
|
-
}
|
|
141
|
-
return `${r} Z`;
|
|
142
|
-
}
|
|
143
|
-
l(L, "closedRoundCurve");
|
|
144
|
-
function T(a, t, e, r) {
|
|
145
|
-
if (!e)
|
|
146
|
-
return;
|
|
147
|
-
const s = (r.width / 2 + r.marginRight) * 3 / 4, o = -(r.height / 2 + r.marginTop) * 3 / 4, i = 20;
|
|
148
|
-
t.forEach((n, c) => {
|
|
149
|
-
const d = a.append("g").attr("transform", `translate(${s}, ${o + c * i})`);
|
|
150
|
-
d.append("rect").attr("width", 12).attr("height", 12).attr("class", `radarLegendBox-${c}`), d.append("text").attr("x", 16).attr("y", 0).attr("class", "radarLegendText").text(n.label);
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
l(T, "drawLegend");
|
|
154
|
-
var st = { draw: tt }, nt = /* @__PURE__ */ l((a, t) => {
|
|
155
|
-
let e = "";
|
|
156
|
-
for (let r = 0; r < a.THEME_COLOR_LIMIT; r++) {
|
|
157
|
-
const s = a[`cScale${r}`];
|
|
158
|
-
e += `
|
|
159
|
-
.radarCurve-${r} {
|
|
160
|
-
color: ${s};
|
|
161
|
-
fill: ${s};
|
|
162
|
-
fill-opacity: ${t.curveOpacity};
|
|
163
|
-
stroke: ${s};
|
|
164
|
-
stroke-width: ${t.curveStrokeWidth};
|
|
165
|
-
}
|
|
166
|
-
.radarLegendBox-${r} {
|
|
167
|
-
fill: ${s};
|
|
168
|
-
fill-opacity: ${t.curveOpacity};
|
|
169
|
-
stroke: ${s};
|
|
170
|
-
}
|
|
171
|
-
`;
|
|
172
|
-
}
|
|
173
|
-
return e;
|
|
174
|
-
}, "genIndexStyles"), ot = /* @__PURE__ */ l((a) => {
|
|
175
|
-
const t = H(), e = C(), r = f(t, e.themeVariables), s = f(r.radar, a);
|
|
176
|
-
return { themeVariables: r, radarOptions: s };
|
|
177
|
-
}, "buildRadarStyleOptions"), it = /* @__PURE__ */ l(({ radar: a } = {}) => {
|
|
178
|
-
const { themeVariables: t, radarOptions: e } = ot(a);
|
|
179
|
-
return `
|
|
180
|
-
.radarTitle {
|
|
181
|
-
font-size: ${t.fontSize};
|
|
182
|
-
color: ${t.titleColor};
|
|
183
|
-
dominant-baseline: hanging;
|
|
184
|
-
text-anchor: middle;
|
|
185
|
-
}
|
|
186
|
-
.radarAxisLine {
|
|
187
|
-
stroke: ${e.axisColor};
|
|
188
|
-
stroke-width: ${e.axisStrokeWidth};
|
|
189
|
-
}
|
|
190
|
-
.radarAxisLabel {
|
|
191
|
-
dominant-baseline: middle;
|
|
192
|
-
text-anchor: middle;
|
|
193
|
-
font-size: ${e.axisLabelFontSize}px;
|
|
194
|
-
color: ${e.axisColor};
|
|
195
|
-
}
|
|
196
|
-
.radarGraticule {
|
|
197
|
-
fill: ${e.graticuleColor};
|
|
198
|
-
fill-opacity: ${e.graticuleOpacity};
|
|
199
|
-
stroke: ${e.graticuleColor};
|
|
200
|
-
stroke-width: ${e.graticuleStrokeWidth};
|
|
201
|
-
}
|
|
202
|
-
.radarLegendText {
|
|
203
|
-
text-anchor: start;
|
|
204
|
-
font-size: ${e.legendFontSize}px;
|
|
205
|
-
dominant-baseline: hanging;
|
|
206
|
-
}
|
|
207
|
-
${nt(t, e)}
|
|
208
|
-
`;
|
|
209
|
-
}, "styles"), ut = {
|
|
210
|
-
parser: Q,
|
|
211
|
-
db: $,
|
|
212
|
-
renderer: st,
|
|
213
|
-
styles: it
|
|
214
|
-
};
|
|
215
|
-
export {
|
|
216
|
-
ut as diagram
|
|
217
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-CYQM-t1d.cjs"),L=require("./chunk-4BX2VUAB-C6nahV0u.cjs"),O=require("./mermaid-parser.core-DQ2yhapR.cjs");var h={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y={axes:[],curves:[],options:h},p=structuredClone(y),S=n.defaultConfig_default.radar,k=n.__name(()=>n.cleanAndMerge({...S,...n.getConfig().radar}),"getConfig"),f=n.__name(()=>p.axes,"getAxes"),D=n.__name(()=>p.curves,"getCurves"),R=n.__name(()=>p.options,"getOptions"),I=n.__name(a=>{p.axes=a.map(e=>({name:e.name,label:e.label??e.name}))},"setAxes"),E=n.__name(a=>{p.curves=a.map(e=>({name:e.name,label:e.label??e.name,entries:F(e.entries)}))},"setCurves"),F=n.__name(a=>{if(a[0].axis==null)return a.map(t=>t.value);const e=f();if(e.length===0)throw new Error("Axes must be populated before curves for reference entries");return e.map(t=>{const r=a.find(s=>s.axis?.$refText===t.name);if(r===void 0)throw new Error("Missing entry for axis "+t.label);return r.value})},"computeCurveEntries"),P=n.__name(a=>{const e=a.reduce((t,r)=>(t[r.name]=r,t),{});p.options={showLegend:e.showLegend?.value??h.showLegend,ticks:e.ticks?.value??h.ticks,max:e.max?.value??h.max,min:e.min?.value??h.min,graticule:e.graticule?.value??h.graticule}},"setOptions"),G=n.__name(()=>{n.clear(),p=structuredClone(y)},"clear"),_={getAxes:f,getCurves:D,getOptions:R,setAxes:I,setCurves:E,setOptions:P,getConfig:k,clear:G,setAccTitle:n.setAccTitle,getAccTitle:n.getAccTitle,setDiagramTitle:n.setDiagramTitle,getDiagramTitle:n.getDiagramTitle,getAccDescription:n.getAccDescription,setAccDescription:n.setAccDescription},z=n.__name(a=>{L.populateCommonDb(a,_);const{axes:e,curves:t,options:r}=a;_.setAxes(e),_.setCurves(t),_.setOptions(r)},"populate"),B={parse:n.__name(async a=>{const e=await O.parse("radar",a);n.log.debug(e),z(e)},"parse")},V=n.__name((a,e,t,r)=>{const s=r.db,o=s.getAxes(),l=s.getCurves(),i=s.getOptions(),c=s.getConfig(),d=s.getDiagramTitle(),m=n.selectSvgElement(e),u=W(m,c),g=i.max??Math.max(...l.map($=>Math.max(...$.entries))),x=i.min,v=Math.min(c.width,c.height)/2;j(u,o,v,i.ticks,i.graticule),q(u,o,v,c),C(u,o,l,x,g,i.graticule,c),A(u,l,i.showLegend,c),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-c.height/2-c.marginTop)},"draw"),W=n.__name((a,e)=>{const t=e.width+e.marginLeft+e.marginRight,r=e.height+e.marginTop+e.marginBottom,s={x:e.marginLeft+e.width/2,y:e.marginTop+e.height/2};return a.attr("viewbox",`0 0 ${t} ${r}`).attr("width",t).attr("height",r),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),j=n.__name((a,e,t,r,s)=>{if(s==="circle")for(let o=0;o<r;o++){const l=t*(o+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const o=e.length;for(let l=0;l<r;l++){const i=t*(l+1)/r,c=e.map((d,m)=>{const u=2*m*Math.PI/o-Math.PI/2,g=i*Math.cos(u),x=i*Math.sin(u);return`${g},${x}`}).join(" ");a.append("polygon").attr("points",c).attr("class","radarGraticule")}}},"drawGraticule"),q=n.__name((a,e,t,r)=>{const s=e.length;for(let o=0;o<s;o++){const l=e[o].label,i=2*o*Math.PI/s-Math.PI/2;a.append("line").attr("x1",0).attr("y1",0).attr("x2",t*r.axisScaleFactor*Math.cos(i)).attr("y2",t*r.axisScaleFactor*Math.sin(i)).attr("class","radarAxisLine"),a.append("text").text(l).attr("x",t*r.axisLabelFactor*Math.cos(i)).attr("y",t*r.axisLabelFactor*Math.sin(i)).attr("class","radarAxisLabel")}},"drawAxes");function C(a,e,t,r,s,o,l){const i=e.length,c=Math.min(l.width,l.height)/2;t.forEach((d,m)=>{if(d.entries.length!==i)return;const u=d.entries.map((g,x)=>{const v=2*Math.PI*x/i-Math.PI/2,$=w(g,r,s,c),M=$*Math.cos(v),T=$*Math.sin(v);return{x:M,y:T}});o==="circle"?a.append("path").attr("d",b(u,l.curveTension)).attr("class",`radarCurve-${m}`):o==="polygon"&&a.append("polygon").attr("points",u.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${m}`)})}n.__name(C,"drawCurves");function w(a,e,t,r){const s=Math.min(Math.max(a,e),t);return r*(s-e)/(t-e)}n.__name(w,"relativeRadius");function b(a,e){const t=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<t;s++){const o=a[(s-1+t)%t],l=a[s],i=a[(s+1)%t],c=a[(s+2)%t],d={x:l.x+(i.x-o.x)*e,y:l.y+(i.y-o.y)*e},m={x:i.x-(c.x-l.x)*e,y:i.y-(c.y-l.y)*e};r+=` C${d.x},${d.y} ${m.x},${m.y} ${i.x},${i.y}`}return`${r} Z`}n.__name(b,"closedRoundCurve");function A(a,e,t,r){if(!t)return;const s=(r.width/2+r.marginRight)*3/4,o=-(r.height/2+r.marginTop)*3/4,l=20;e.forEach((i,c)=>{const d=a.append("g").attr("transform",`translate(${s}, ${o+c*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${c}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(i.label)})}n.__name(A,"drawLegend");var H={draw:V},U=n.__name((a,e)=>{let t="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];t+=`
|
|
2
|
-
.radarCurve-${r} {
|
|
3
|
-
color: ${s};
|
|
4
|
-
fill: ${s};
|
|
5
|
-
fill-opacity: ${e.curveOpacity};
|
|
6
|
-
stroke: ${s};
|
|
7
|
-
stroke-width: ${e.curveStrokeWidth};
|
|
8
|
-
}
|
|
9
|
-
.radarLegendBox-${r} {
|
|
10
|
-
fill: ${s};
|
|
11
|
-
fill-opacity: ${e.curveOpacity};
|
|
12
|
-
stroke: ${s};
|
|
13
|
-
}
|
|
14
|
-
`}return t},"genIndexStyles"),X=n.__name(a=>{const e=n.getThemeVariables3(),t=n.getConfig(),r=n.cleanAndMerge(e,t.themeVariables),s=n.cleanAndMerge(r.radar,a);return{themeVariables:r,radarOptions:s}},"buildRadarStyleOptions"),N=n.__name(({radar:a}={})=>{const{themeVariables:e,radarOptions:t}=X(a);return`
|
|
15
|
-
.radarTitle {
|
|
16
|
-
font-size: ${e.fontSize};
|
|
17
|
-
color: ${e.titleColor};
|
|
18
|
-
dominant-baseline: hanging;
|
|
19
|
-
text-anchor: middle;
|
|
20
|
-
}
|
|
21
|
-
.radarAxisLine {
|
|
22
|
-
stroke: ${t.axisColor};
|
|
23
|
-
stroke-width: ${t.axisStrokeWidth};
|
|
24
|
-
}
|
|
25
|
-
.radarAxisLabel {
|
|
26
|
-
dominant-baseline: middle;
|
|
27
|
-
text-anchor: middle;
|
|
28
|
-
font-size: ${t.axisLabelFontSize}px;
|
|
29
|
-
color: ${t.axisColor};
|
|
30
|
-
}
|
|
31
|
-
.radarGraticule {
|
|
32
|
-
fill: ${t.graticuleColor};
|
|
33
|
-
fill-opacity: ${t.graticuleOpacity};
|
|
34
|
-
stroke: ${t.graticuleColor};
|
|
35
|
-
stroke-width: ${t.graticuleStrokeWidth};
|
|
36
|
-
}
|
|
37
|
-
.radarLegendText {
|
|
38
|
-
text-anchor: start;
|
|
39
|
-
font-size: ${t.legendFontSize}px;
|
|
40
|
-
dominant-baseline: hanging;
|
|
41
|
-
}
|
|
42
|
-
${U(e,t)}
|
|
43
|
-
`},"styles"),Y={parser:B,db:_,renderer:H,styles:N};exports.diagram=Y;
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { _ as b, D as m, H as B, e as C, l as w, b as S, a as D, p as T, q as E, g as F, s as P, E as z, F as A, y as W } from "./index-FiV1b00w.js";
|
|
2
|
-
import { p as _ } from "./chunk-4BX2VUAB-UMbIiF-V.js";
|
|
3
|
-
import { p as N } from "./mermaid-parser.core-Cwy51n_e.js";
|
|
4
|
-
var L = z.packet, u, v = (u = class {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.packet = [], this.setAccTitle = S, this.getAccTitle = D, this.setDiagramTitle = T, this.getDiagramTitle = E, this.getAccDescription = F, this.setAccDescription = P;
|
|
7
|
-
}
|
|
8
|
-
getConfig() {
|
|
9
|
-
const t = m({
|
|
10
|
-
...L,
|
|
11
|
-
...A().packet
|
|
12
|
-
});
|
|
13
|
-
return t.showBits && (t.paddingY += 10), t;
|
|
14
|
-
}
|
|
15
|
-
getPacket() {
|
|
16
|
-
return this.packet;
|
|
17
|
-
}
|
|
18
|
-
pushWord(t) {
|
|
19
|
-
t.length > 0 && this.packet.push(t);
|
|
20
|
-
}
|
|
21
|
-
clear() {
|
|
22
|
-
W(), this.packet = [];
|
|
23
|
-
}
|
|
24
|
-
}, b(u, "PacketDB"), u), M = 1e4, Y = /* @__PURE__ */ b((e, t) => {
|
|
25
|
-
_(e, t);
|
|
26
|
-
let r = -1, s = [], n = 1;
|
|
27
|
-
const { bitsPerRow: l } = t.getConfig();
|
|
28
|
-
for (let { start: a, end: i, bits: d, label: c } of e.blocks) {
|
|
29
|
-
if (a !== void 0 && i !== void 0 && i < a)
|
|
30
|
-
throw new Error(`Packet block ${a} - ${i} is invalid. End must be greater than start.`);
|
|
31
|
-
if (a ??= r + 1, a !== r + 1)
|
|
32
|
-
throw new Error(
|
|
33
|
-
`Packet block ${a} - ${i ?? a} is not contiguous. It should start from ${r + 1}.`
|
|
34
|
-
);
|
|
35
|
-
if (d === 0)
|
|
36
|
-
throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);
|
|
37
|
-
for (i ??= a + (d ?? 1) - 1, d ??= i - a + 1, r = i, w.debug(`Packet block ${a} - ${r} with label ${c}`); s.length <= l + 1 && t.getPacket().length < M; ) {
|
|
38
|
-
const [p, o] = H({ start: a, end: i, bits: d, label: c }, n, l);
|
|
39
|
-
if (s.push(p), p.end + 1 === n * l && (t.pushWord(s), s = [], n++), !o)
|
|
40
|
-
break;
|
|
41
|
-
({ start: a, end: i, bits: d, label: c } = o);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
t.pushWord(s);
|
|
45
|
-
}, "populate"), H = /* @__PURE__ */ b((e, t, r) => {
|
|
46
|
-
if (e.start === void 0)
|
|
47
|
-
throw new Error("start should have been set during first phase");
|
|
48
|
-
if (e.end === void 0)
|
|
49
|
-
throw new Error("end should have been set during first phase");
|
|
50
|
-
if (e.start > e.end)
|
|
51
|
-
throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);
|
|
52
|
-
if (e.end + 1 <= t * r)
|
|
53
|
-
return [e, void 0];
|
|
54
|
-
const s = t * r - 1, n = t * r;
|
|
55
|
-
return [
|
|
56
|
-
{
|
|
57
|
-
start: e.start,
|
|
58
|
-
end: s,
|
|
59
|
-
label: e.label,
|
|
60
|
-
bits: s - e.start
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
start: n,
|
|
64
|
-
end: e.end,
|
|
65
|
-
label: e.label,
|
|
66
|
-
bits: e.end - n
|
|
67
|
-
}
|
|
68
|
-
];
|
|
69
|
-
}, "getNextFittingBlock"), x = {
|
|
70
|
-
// @ts-expect-error - PacketDB is not assignable to DiagramDB
|
|
71
|
-
parser: { yy: void 0 },
|
|
72
|
-
parse: /* @__PURE__ */ b(async (e) => {
|
|
73
|
-
const t = await N("packet", e), r = x.parser?.yy;
|
|
74
|
-
if (!(r instanceof v))
|
|
75
|
-
throw new Error(
|
|
76
|
-
"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."
|
|
77
|
-
);
|
|
78
|
-
w.debug(t), Y(t, r);
|
|
79
|
-
}, "parse")
|
|
80
|
-
}, I = /* @__PURE__ */ b((e, t, r, s) => {
|
|
81
|
-
const n = s.db, l = n.getConfig(), { rowHeight: a, paddingY: i, bitWidth: d, bitsPerRow: c } = l, p = n.getPacket(), o = n.getDiagramTitle(), h = a + i, g = h * (p.length + 1) - (o ? 0 : a), k = d * c + 2, f = B(t);
|
|
82
|
-
f.attr("viewbox", `0 0 ${k} ${g}`), C(f, g, k, l.useMaxWidth);
|
|
83
|
-
for (const [y, $] of p.entries())
|
|
84
|
-
O(f, $, y, l);
|
|
85
|
-
f.append("text").text(o).attr("x", k / 2).attr("y", g - h / 2).attr("dominant-baseline", "middle").attr("text-anchor", "middle").attr("class", "packetTitle");
|
|
86
|
-
}, "draw"), O = /* @__PURE__ */ b((e, t, r, { rowHeight: s, paddingX: n, paddingY: l, bitWidth: a, bitsPerRow: i, showBits: d }) => {
|
|
87
|
-
const c = e.append("g"), p = r * (s + l) + l;
|
|
88
|
-
for (const o of t) {
|
|
89
|
-
const h = o.start % i * a + 1, g = (o.end - o.start + 1) * a - n;
|
|
90
|
-
if (c.append("rect").attr("x", h).attr("y", p).attr("width", g).attr("height", s).attr("class", "packetBlock"), c.append("text").attr("x", h + g / 2).attr("y", p + s / 2).attr("class", "packetLabel").attr("dominant-baseline", "middle").attr("text-anchor", "middle").text(o.label), !d)
|
|
91
|
-
continue;
|
|
92
|
-
const k = o.end === o.start, f = p - 2;
|
|
93
|
-
c.append("text").attr("x", h + (k ? g / 2 : 0)).attr("y", f).attr("class", "packetByte start").attr("dominant-baseline", "auto").attr("text-anchor", k ? "middle" : "start").text(o.start), k || c.append("text").attr("x", h + g).attr("y", f).attr("class", "packetByte end").attr("dominant-baseline", "auto").attr("text-anchor", "end").text(o.end);
|
|
94
|
-
}
|
|
95
|
-
}, "drawWord"), j = { draw: I }, q = {
|
|
96
|
-
byteFontSize: "10px",
|
|
97
|
-
startByteColor: "black",
|
|
98
|
-
endByteColor: "black",
|
|
99
|
-
labelColor: "black",
|
|
100
|
-
labelFontSize: "12px",
|
|
101
|
-
titleColor: "black",
|
|
102
|
-
titleFontSize: "14px",
|
|
103
|
-
blockStrokeColor: "black",
|
|
104
|
-
blockStrokeWidth: "1",
|
|
105
|
-
blockFillColor: "#efefef"
|
|
106
|
-
}, G = /* @__PURE__ */ b(({ packet: e } = {}) => {
|
|
107
|
-
const t = m(q, e);
|
|
108
|
-
return `
|
|
109
|
-
.packetByte {
|
|
110
|
-
font-size: ${t.byteFontSize};
|
|
111
|
-
}
|
|
112
|
-
.packetByte.start {
|
|
113
|
-
fill: ${t.startByteColor};
|
|
114
|
-
}
|
|
115
|
-
.packetByte.end {
|
|
116
|
-
fill: ${t.endByteColor};
|
|
117
|
-
}
|
|
118
|
-
.packetLabel {
|
|
119
|
-
fill: ${t.labelColor};
|
|
120
|
-
font-size: ${t.labelFontSize};
|
|
121
|
-
}
|
|
122
|
-
.packetTitle {
|
|
123
|
-
fill: ${t.titleColor};
|
|
124
|
-
font-size: ${t.titleFontSize};
|
|
125
|
-
}
|
|
126
|
-
.packetBlock {
|
|
127
|
-
stroke: ${t.blockStrokeColor};
|
|
128
|
-
stroke-width: ${t.blockStrokeWidth};
|
|
129
|
-
fill: ${t.blockFillColor};
|
|
130
|
-
}
|
|
131
|
-
`;
|
|
132
|
-
}, "styles"), X = {
|
|
133
|
-
parser: x,
|
|
134
|
-
get db() {
|
|
135
|
-
return new v();
|
|
136
|
-
},
|
|
137
|
-
renderer: j,
|
|
138
|
-
styles: G
|
|
139
|
-
};
|
|
140
|
-
export {
|
|
141
|
-
X as diagram
|
|
142
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-CYQM-t1d.cjs"),y=require("./chunk-4BX2VUAB-C6nahV0u.cjs"),B=require("./mermaid-parser.core-DQ2yhapR.cjs");var $=a.defaultConfig_default.packet,b,m=(b=class{constructor(){this.packet=[],this.setAccTitle=a.setAccTitle,this.getAccTitle=a.getAccTitle,this.setDiagramTitle=a.setDiagramTitle,this.getDiagramTitle=a.getDiagramTitle,this.getAccDescription=a.getAccDescription,this.setAccDescription=a.setAccDescription}getConfig(){const t=a.cleanAndMerge({...$,...a.getConfig().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){a.clear(),this.packet=[]}},a.__name(b,"PacketDB"),b),C=1e4,_=a.__name((e,t)=>{y.populateCommonDb(e,t);let o=-1,i=[],l=1;const{bitsPerRow:c}=t.getConfig();for(let{start:r,end:n,bits:p,label:d}of e.blocks){if(r!==void 0&&n!==void 0&&n<r)throw new Error(`Packet block ${r} - ${n} is invalid. End must be greater than start.`);if(r??=o+1,r!==o+1)throw new Error(`Packet block ${r} - ${n??r} is not contiguous. It should start from ${o+1}.`);if(p===0)throw new Error(`Packet block ${r} is invalid. Cannot have a zero bit field.`);for(n??=r+(p??1)-1,p??=n-r+1,o=n,a.log.debug(`Packet block ${r} - ${o} with label ${d}`);i.length<=c+1&&t.getPacket().length<C;){const[g,s]=S({start:r,end:n,bits:p,label:d},l,c);if(i.push(g),g.end+1===l*c&&(t.pushWord(i),i=[],l++),!s)break;({start:r,end:n,bits:p,label:d}=s)}}t.pushWord(i)},"populate"),S=a.__name((e,t,o)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*o)return[e,void 0];const i=t*o-1,l=t*o;return[{start:e.start,end:i,label:e.label,bits:i-e.start},{start:l,end:e.end,label:e.label,bits:e.end-l}]},"getNextFittingBlock"),w={parser:{yy:void 0},parse:a.__name(async e=>{const t=await B.parse("packet",e),o=w.parser?.yy;if(!(o instanceof m))throw new 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.");a.log.debug(t),_(t,o)},"parse")},P=a.__name((e,t,o,i)=>{const l=i.db,c=l.getConfig(),{rowHeight:r,paddingY:n,bitWidth:p,bitsPerRow:d}=c,g=l.getPacket(),s=l.getDiagramTitle(),k=r+n,h=k*(g.length+1)-(s?0:r),f=p*d+2,u=a.selectSvgElement(t);u.attr("viewbox",`0 0 ${f} ${h}`),a.configureSvgSize(u,h,f,c.useMaxWidth);for(const[v,x]of g.entries())T(u,x,v,c);u.append("text").text(s).attr("x",f/2).attr("y",h-k/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),T=a.__name((e,t,o,{rowHeight:i,paddingX:l,paddingY:c,bitWidth:r,bitsPerRow:n,showBits:p})=>{const d=e.append("g"),g=o*(i+c)+c;for(const s of t){const k=s.start%n*r+1,h=(s.end-s.start+1)*r-l;if(d.append("rect").attr("x",k).attr("y",g).attr("width",h).attr("height",i).attr("class","packetBlock"),d.append("text").attr("x",k+h/2).attr("y",g+i/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(s.label),!p)continue;const f=s.end===s.start,u=g-2;d.append("text").attr("x",k+(f?h/2:0)).attr("y",u).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",f?"middle":"start").text(s.start),f||d.append("text").attr("x",k+h).attr("y",u).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(s.end)}},"drawWord"),D={draw:P},A={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},z=a.__name(({packet:e}={})=>{const t=a.cleanAndMerge(A,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"),E={parser:w,get db(){return new m},renderer:D,styles:z};exports.diagram=E;
|