@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
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { t as e } from "./init-BO60vQHJ.js";
|
|
2
|
+
//#region node_modules/internmap/src/index.js
|
|
3
|
+
var t = class extends Map {
|
|
4
|
+
constructor(e, t = a) {
|
|
5
|
+
if (super(), Object.defineProperties(this, {
|
|
6
|
+
_intern: { value: /* @__PURE__ */ new Map() },
|
|
7
|
+
_key: { value: t }
|
|
8
|
+
}), e != null) for (let [t, n] of e) this.set(t, n);
|
|
9
|
+
}
|
|
10
|
+
get(e) {
|
|
11
|
+
return super.get(n(this, e));
|
|
12
|
+
}
|
|
13
|
+
has(e) {
|
|
14
|
+
return super.has(n(this, e));
|
|
15
|
+
}
|
|
16
|
+
set(e, t) {
|
|
17
|
+
return super.set(r(this, e), t);
|
|
18
|
+
}
|
|
19
|
+
delete(e) {
|
|
20
|
+
return super.delete(i(this, e));
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
function n({ _intern: e, _key: t }, n) {
|
|
24
|
+
let r = t(n);
|
|
25
|
+
return e.has(r) ? e.get(r) : n;
|
|
26
|
+
}
|
|
27
|
+
function r({ _intern: e, _key: t }, n) {
|
|
28
|
+
let r = t(n);
|
|
29
|
+
return e.has(r) ? e.get(r) : (e.set(r, n), n);
|
|
30
|
+
}
|
|
31
|
+
function i({ _intern: e, _key: t }, n) {
|
|
32
|
+
let r = t(n);
|
|
33
|
+
return e.has(r) && (n = e.get(r), e.delete(r)), n;
|
|
34
|
+
}
|
|
35
|
+
function a(e) {
|
|
36
|
+
return typeof e == "object" && e ? e.valueOf() : e;
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region node_modules/d3-scale/src/ordinal.js
|
|
40
|
+
var o = Symbol("implicit");
|
|
41
|
+
function s() {
|
|
42
|
+
var n = new t(), r = [], i = [], a = o;
|
|
43
|
+
function c(e) {
|
|
44
|
+
let t = n.get(e);
|
|
45
|
+
if (t === void 0) {
|
|
46
|
+
if (a !== o) return a;
|
|
47
|
+
n.set(e, t = r.push(e) - 1);
|
|
48
|
+
}
|
|
49
|
+
return i[t % i.length];
|
|
50
|
+
}
|
|
51
|
+
return c.domain = function(e) {
|
|
52
|
+
if (!arguments.length) return r.slice();
|
|
53
|
+
r = [], n = new t();
|
|
54
|
+
for (let t of e) n.has(t) || n.set(t, r.push(t) - 1);
|
|
55
|
+
return c;
|
|
56
|
+
}, c.range = function(e) {
|
|
57
|
+
return arguments.length ? (i = Array.from(e), c) : i.slice();
|
|
58
|
+
}, c.unknown = function(e) {
|
|
59
|
+
return arguments.length ? (a = e, c) : a;
|
|
60
|
+
}, c.copy = function() {
|
|
61
|
+
return s(r, i).unknown(a);
|
|
62
|
+
}, e.apply(c, arguments), c;
|
|
63
|
+
}
|
|
64
|
+
//#endregion
|
|
65
|
+
export { s as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./init-B2MubQrj.cjs`);var t=class extends Map{constructor(e,t=a){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(n(this,e))}has(e){return super.has(n(this,e))}set(e,t){return super.set(r(this,e),t)}delete(e){return super.delete(i(this,e))}};function n({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function r({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function i({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function a(e){return typeof e==`object`&&e?e.valueOf():e}var o=Symbol(`implicit`);function s(){var n=new t,r=[],i=[],a=o;function c(e){let t=n.get(e);if(t===void 0){if(a!==o)return a;n.set(e,t=r.push(e)-1)}return i[t%i.length]}return c.domain=function(e){if(!arguments.length)return r.slice();r=[],n=new t;for(let t of e)n.has(t)||n.set(t,r.push(t)-1);return c},c.range=function(e){return arguments.length?(i=Array.from(e),c):i.slice()},c.unknown=function(e){return arguments.length?(a=e,c):a},c.copy=function(){return s(r,i).unknown(a)},e.t.apply(c,arguments),c}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk-D-IZpNpi.cjs`),require(`./chunk-K5T4RW27-BzDQkjC7.cjs`);const e=require(`./chunk-FOC6F5B3-DcZs851j.cjs`);exports.createPacketServices=e.n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Math.PI,t=2*e,n=1e-6,r=t-n;function i(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function a(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return i;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var o=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?i:a(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(t,r,i,a,o){if(t=+t,r=+r,i=+i,a=+a,o=+o,o<0)throw Error(`negative radius: ${o}`);let s=this._x1,c=this._y1,l=i-t,u=a-r,d=s-t,f=c-r,p=d*d+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(p>n)if(!(Math.abs(f*l-u*d)>n)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let m=i-s,h=a-c,g=l*l+u*u,_=m*m+h*h,v=Math.sqrt(g),y=Math.sqrt(p),b=o*Math.tan((e-Math.acos((g+p-_)/(2*v*y)))/2),x=b/y,S=b/v;Math.abs(x-1)>n&&this._append`L${t+x*d},${r+x*f}`,this._append`A${o},${o},0,0,${+(f*m>d*h)},${this._x1=t+S*l},${this._y1=r+S*u}`}}arc(i,a,o,s,c,l){if(i=+i,a=+a,o=+o,l=!!l,o<0)throw Error(`negative radius: ${o}`);let u=o*Math.cos(s),d=o*Math.sin(s),f=i+u,p=a+d,m=1^l,h=l?s-c:c-s;this._x1===null?this._append`M${f},${p}`:(Math.abs(this._x1-f)>n||Math.abs(this._y1-p)>n)&&this._append`L${f},${p}`,o&&(h<0&&(h=h%t+t),h>r?this._append`A${o},${o},0,1,${m},${i-u},${a-d}A${o},${o},0,1,${m},${this._x1=f},${this._y1=p}`:h>n&&this._append`A${o},${o},0,${+(h>=e)},${m},${this._x1=i+o*Math.cos(c)},${this._y1=a+o*Math.sin(c)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function s(){return new o}s.prototype=o.prototype;function c(e){return function(){return e}}function l(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new o(t)}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return l}});
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
//#region node_modules/d3-path/src/path.js
|
|
2
|
+
var e = Math.PI, t = 2 * e, n = 1e-6, r = t - n;
|
|
3
|
+
function i(e) {
|
|
4
|
+
this._ += e[0];
|
|
5
|
+
for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];
|
|
6
|
+
}
|
|
7
|
+
function a(e) {
|
|
8
|
+
let t = Math.floor(e);
|
|
9
|
+
if (!(t >= 0)) throw Error(`invalid digits: ${e}`);
|
|
10
|
+
if (t > 15) return i;
|
|
11
|
+
let n = 10 ** t;
|
|
12
|
+
return function(e) {
|
|
13
|
+
this._ += e[0];
|
|
14
|
+
for (let t = 1, r = e.length; t < r; ++t) this._ += Math.round(arguments[t] * n) / n + e[t];
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
var o = class {
|
|
18
|
+
constructor(e) {
|
|
19
|
+
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? i : a(e);
|
|
20
|
+
}
|
|
21
|
+
moveTo(e, t) {
|
|
22
|
+
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;
|
|
23
|
+
}
|
|
24
|
+
closePath() {
|
|
25
|
+
this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._append`Z`);
|
|
26
|
+
}
|
|
27
|
+
lineTo(e, t) {
|
|
28
|
+
this._append`L${this._x1 = +e},${this._y1 = +t}`;
|
|
29
|
+
}
|
|
30
|
+
quadraticCurveTo(e, t, n, r) {
|
|
31
|
+
this._append`Q${+e},${+t},${this._x1 = +n},${this._y1 = +r}`;
|
|
32
|
+
}
|
|
33
|
+
bezierCurveTo(e, t, n, r, i, a) {
|
|
34
|
+
this._append`C${+e},${+t},${+n},${+r},${this._x1 = +i},${this._y1 = +a}`;
|
|
35
|
+
}
|
|
36
|
+
arcTo(t, r, i, a, o) {
|
|
37
|
+
if (t = +t, r = +r, i = +i, a = +a, o = +o, o < 0) throw Error(`negative radius: ${o}`);
|
|
38
|
+
let s = this._x1, c = this._y1, l = i - t, u = a - r, d = s - t, f = c - r, p = d * d + f * f;
|
|
39
|
+
if (this._x1 === null) this._append`M${this._x1 = t},${this._y1 = r}`;
|
|
40
|
+
else if (p > n) if (!(Math.abs(f * l - u * d) > n) || !o) this._append`L${this._x1 = t},${this._y1 = r}`;
|
|
41
|
+
else {
|
|
42
|
+
let m = i - s, h = a - c, g = l * l + u * u, _ = m * m + h * h, v = Math.sqrt(g), y = Math.sqrt(p), b = o * Math.tan((e - Math.acos((g + p - _) / (2 * v * y))) / 2), x = b / y, S = b / v;
|
|
43
|
+
Math.abs(x - 1) > n && this._append`L${t + x * d},${r + x * f}`, this._append`A${o},${o},0,0,${+(f * m > d * h)},${this._x1 = t + S * l},${this._y1 = r + S * u}`;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
arc(i, a, o, s, c, l) {
|
|
47
|
+
if (i = +i, a = +a, o = +o, l = !!l, o < 0) throw Error(`negative radius: ${o}`);
|
|
48
|
+
let u = o * Math.cos(s), d = o * Math.sin(s), f = i + u, p = a + d, m = 1 ^ l, h = l ? s - c : c - s;
|
|
49
|
+
this._x1 === null ? this._append`M${f},${p}` : (Math.abs(this._x1 - f) > n || Math.abs(this._y1 - p) > n) && this._append`L${f},${p}`, o && (h < 0 && (h = h % t + t), h > r ? this._append`A${o},${o},0,1,${m},${i - u},${a - d}A${o},${o},0,1,${m},${this._x1 = f},${this._y1 = p}` : h > n && this._append`A${o},${o},0,${+(h >= e)},${m},${this._x1 = i + o * Math.cos(c)},${this._y1 = a + o * Math.sin(c)}`);
|
|
50
|
+
}
|
|
51
|
+
rect(e, t, n, r) {
|
|
52
|
+
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}h${n = +n}v${+r}h${-n}Z`;
|
|
53
|
+
}
|
|
54
|
+
toString() {
|
|
55
|
+
return this._;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
function s() {
|
|
59
|
+
return new o();
|
|
60
|
+
}
|
|
61
|
+
s.prototype = o.prototype;
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region node_modules/d3-shape/src/constant.js
|
|
64
|
+
function c(e) {
|
|
65
|
+
return function() {
|
|
66
|
+
return e;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region node_modules/d3-shape/src/path.js
|
|
71
|
+
function l(e) {
|
|
72
|
+
let t = 3;
|
|
73
|
+
return e.digits = function(n) {
|
|
74
|
+
if (!arguments.length) return t;
|
|
75
|
+
if (n == null) t = null;
|
|
76
|
+
else {
|
|
77
|
+
let e = Math.floor(n);
|
|
78
|
+
if (!(e >= 0)) throw RangeError(`invalid digits: ${n}`);
|
|
79
|
+
t = e;
|
|
80
|
+
}
|
|
81
|
+
return e;
|
|
82
|
+
}, () => new o(t);
|
|
83
|
+
}
|
|
84
|
+
//#endregion
|
|
85
|
+
export { c as n, l as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk-D-IZpNpi.cjs`),require(`./chunk-K5T4RW27-BzDQkjC7.cjs`);const e=require(`./chunk-AA7GKIK3-dqnTmnvO.cjs`);exports.createPieServices=e.n;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
require(`./chunk-D-IZpNpi.cjs`);const e=require(`./chunk-ICPOFSXX-hY6BIZ4Y.cjs`),t=require(`./src-DFxq-N5I.cjs`),n=require(`./ordinal-Civr0hZL.cjs`),r=require(`./path-Civic7PQ.cjs`),i=require(`./dist-BgvMZbfo.cjs`),a=require(`./arc-CqG9Hxdf.cjs`),o=require(`./array-Dxz0O8Q3.cjs`),s=require(`./chunk-5PVQY5BW-DEPZKGvb.cjs`),c=require(`./chunk-426QAEUC-CqN26l3E.cjs`),l=require(`./chunk-4BX2VUAB-Qba52sxc.cjs`),u=require(`./mermaid-parser.core-DHpvGOZR.cjs`);function d(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function f(e){return e}function p(){var e=f,t=d,n=null,a=r.n(0),s=r.n(i.m),c=r.n(0);function l(r){var l,u=(r=o.t(r)).length,d,f,p=0,m=Array(u),h=Array(u),g=+a.apply(this,arguments),_=Math.min(i.m,Math.max(-i.m,s.apply(this,arguments)-g)),v,y=Math.min(Math.abs(_)/u,c.apply(this,arguments)),b=y*(_<0?-1:1),x;for(l=0;l<u;++l)(x=h[m[l]=l]=+e(r[l],l,r))>0&&(p+=x);for(t==null?n!=null&&m.sort(function(e,t){return n(r[e],r[t])}):m.sort(function(e,n){return t(h[e],h[n])}),l=0,f=p?(_-u*b)/p:0;l<u;++l,g=v)d=m[l],x=h[d],v=g+(x>0?x*f:0)+b,h[d]={data:r[d],index:l,value:x,startAngle:g,endAngle:v,padAngle:y};return h}return l.value=function(t){return arguments.length?(e=typeof t==`function`?t:r.n(+t),l):e},l.sortValues=function(e){return arguments.length?(t=e,n=null,l):t},l.sort=function(e){return arguments.length?(n=e,t=null,l):n},l.startAngle=function(e){return arguments.length?(a=typeof e==`function`?e:r.n(+e),l):a},l.endAngle=function(e){return arguments.length?(s=typeof e==`function`?e:r.n(+e),l):s},l.padAngle=function(e){return arguments.length?(c=typeof e==`function`?e:r.n(+e),l):c},l}var m=e.d.pie,h={sections:new Map,showData:!1,config:m},g=h.sections,_=h.showData,v=structuredClone(m),y={getConfig:t.h(()=>structuredClone(v),`getConfig`),clear:t.h(()=>{g=new Map,_=h.showData,e.a()},`clear`),setDiagramTitle:e.W,getDiagramTitle:e.C,setAccTitle:e.V,getAccTitle:e.v,setAccDescription:e.B,getAccDescription:e._,addSection:t.h(({label:e,value:n})=>{if(n<0)throw Error(`"${e}" has invalid value: ${n}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);g.has(e)||(g.set(e,n),t.g.debug(`added new section: ${e}, with value: ${n}`))},`addSection`),getSections:t.h(()=>g,`getSections`),setShowData:t.h(e=>{_=e},`setShowData`),getShowData:t.h(()=>_,`getShowData`)},b=t.h((e,t)=>{l.t(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},`populateDb`),x={parse:t.h(async e=>{let n=await u.t(`pie`,e);t.g.debug(n),b(n,y)},`parse`)},S=t.h(e=>`
|
|
2
|
+
.pieCircle{
|
|
3
|
+
stroke: ${e.pieStrokeColor};
|
|
4
|
+
stroke-width : ${e.pieStrokeWidth};
|
|
5
|
+
opacity : ${e.pieOpacity};
|
|
6
|
+
}
|
|
7
|
+
.pieOuterCircle{
|
|
8
|
+
stroke: ${e.pieOuterStrokeColor};
|
|
9
|
+
stroke-width: ${e.pieOuterStrokeWidth};
|
|
10
|
+
fill: none;
|
|
11
|
+
}
|
|
12
|
+
.pieTitleText {
|
|
13
|
+
text-anchor: middle;
|
|
14
|
+
font-size: ${e.pieTitleTextSize};
|
|
15
|
+
fill: ${e.pieTitleTextColor};
|
|
16
|
+
font-family: ${e.fontFamily};
|
|
17
|
+
}
|
|
18
|
+
.slice {
|
|
19
|
+
font-family: ${e.fontFamily};
|
|
20
|
+
fill: ${e.pieSectionTextColor};
|
|
21
|
+
font-size:${e.pieSectionTextSize};
|
|
22
|
+
// fill: white;
|
|
23
|
+
}
|
|
24
|
+
.legend text {
|
|
25
|
+
fill: ${e.pieLegendTextColor};
|
|
26
|
+
font-family: ${e.fontFamily};
|
|
27
|
+
font-size: ${e.pieLegendTextSize};
|
|
28
|
+
}
|
|
29
|
+
`,`getStyles`),C=t.h(e=>{let t=[...e.values()].reduce((e,t)=>e+t,0),n=[...e.entries()].map(([e,t])=>({label:e,value:t})).filter(e=>e.value/t*100>=1);return p().value(e=>e.value).sort(null)(n)},`createPieArcs`),w={parser:x,db:y,renderer:{draw:t.h((r,i,o,l)=>{t.g.debug(`rendering pie chart
|
|
30
|
+
`+r);let u=l.db,d=e.b(),f=s.r(u.getConfig(),d.pie),p=c.t(i),m=p.append(`g`);m.attr(`transform`,`translate(225,225)`);let{themeVariables:h}=d,[g]=s.f(h.pieOuterStrokeWidth);g??=2;let _=f.textPosition,v=a.t().innerRadius(0).outerRadius(185),y=a.t().innerRadius(185*_).outerRadius(185*_);m.append(`circle`).attr(`cx`,0).attr(`cy`,0).attr(`r`,185+g/2).attr(`class`,`pieOuterCircle`);let b=u.getSections(),x=C(b),S=[h.pie1,h.pie2,h.pie3,h.pie4,h.pie5,h.pie6,h.pie7,h.pie8,h.pie9,h.pie10,h.pie11,h.pie12],w=0;b.forEach(e=>{w+=e});let T=x.filter(e=>(e.data.value/w*100).toFixed(0)!==`0`),E=n.t(S).domain([...b.keys()]);m.selectAll(`mySlices`).data(T).enter().append(`path`).attr(`d`,v).attr(`fill`,e=>E(e.data.label)).attr(`class`,`pieCircle`),m.selectAll(`mySlices`).data(T).enter().append(`text`).text(e=>(e.data.value/w*100).toFixed(0)+`%`).attr(`transform`,e=>`translate(`+y.centroid(e)+`)`).style(`text-anchor`,`middle`).attr(`class`,`slice`);let D=m.append(`text`).text(u.getDiagramTitle()).attr(`x`,0).attr(`y`,-400/2).attr(`class`,`pieTitleText`),O=[...b.entries()].map(([e,t])=>({label:e,value:t})),k=m.selectAll(`.legend`).data(O).enter().append(`g`).attr(`class`,`legend`).attr(`transform`,(e,t)=>{let n=22*O.length/2;return`translate(216,`+(t*22-n)+`)`});k.append(`rect`).attr(`width`,18).attr(`height`,18).style(`fill`,e=>E(e.label)).style(`stroke`,e=>E(e.label)),k.append(`text`).attr(`x`,22).attr(`y`,14).text(e=>u.getShowData()?`${e.label} [${e.value}]`:e.label);let A=512+Math.max(...k.selectAll(`text`).nodes().map(e=>e?.getBoundingClientRect().width??0)),j=D.node()?.getBoundingClientRect().width??0,M=450/2-j/2,N=450/2+j/2,P=Math.min(0,M),F=Math.max(A,N)-P;p.attr(`viewBox`,`${P} 0 ${F} 450`),e.c(p,450,F,f.useMaxWidth)},`draw`)},styles:S};exports.diagram=w;
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { B as e, C as t, V as n, W as r, _ as i, a, b as o, c as s, d as c, v as l } from "./chunk-ICPOFSXX-fQJ5ufMR.js";
|
|
2
|
+
import { g as u, h as d } from "./src-BQiFKP24.js";
|
|
3
|
+
import { t as f } from "./ordinal-C-VoL0XF.js";
|
|
4
|
+
import { n as p } from "./path-CvfwEr8y.js";
|
|
5
|
+
import { m } from "./dist-DL30VIBI.js";
|
|
6
|
+
import { t as h } from "./arc-Klgb378K.js";
|
|
7
|
+
import { t as g } from "./array-D8NZ46Ht.js";
|
|
8
|
+
import { f as _, r as v } from "./chunk-5PVQY5BW-Dn8n6moB.js";
|
|
9
|
+
import { t as y } from "./chunk-426QAEUC-CDXJVpQr.js";
|
|
10
|
+
import { t as b } from "./chunk-4BX2VUAB-BW54-JWg.js";
|
|
11
|
+
import { t as x } from "./mermaid-parser.core-CERDf-UG.js";
|
|
12
|
+
//#region node_modules/d3-shape/src/descending.js
|
|
13
|
+
function S(e, t) {
|
|
14
|
+
return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region node_modules/d3-shape/src/identity.js
|
|
18
|
+
function C(e) {
|
|
19
|
+
return e;
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region node_modules/d3-shape/src/pie.js
|
|
23
|
+
function w() {
|
|
24
|
+
var e = C, t = S, n = null, r = p(0), i = p(m), a = p(0);
|
|
25
|
+
function o(o) {
|
|
26
|
+
var s, c = (o = g(o)).length, l, u, d = 0, f = Array(c), p = Array(c), h = +r.apply(this, arguments), _ = Math.min(m, Math.max(-m, i.apply(this, arguments) - h)), v, y = Math.min(Math.abs(_) / c, a.apply(this, arguments)), b = y * (_ < 0 ? -1 : 1), x;
|
|
27
|
+
for (s = 0; s < c; ++s) (x = p[f[s] = s] = +e(o[s], s, o)) > 0 && (d += x);
|
|
28
|
+
for (t == null ? n != null && f.sort(function(e, t) {
|
|
29
|
+
return n(o[e], o[t]);
|
|
30
|
+
}) : f.sort(function(e, n) {
|
|
31
|
+
return t(p[e], p[n]);
|
|
32
|
+
}), s = 0, u = d ? (_ - c * b) / d : 0; s < c; ++s, h = v) l = f[s], x = p[l], v = h + (x > 0 ? x * u : 0) + b, p[l] = {
|
|
33
|
+
data: o[l],
|
|
34
|
+
index: s,
|
|
35
|
+
value: x,
|
|
36
|
+
startAngle: h,
|
|
37
|
+
endAngle: v,
|
|
38
|
+
padAngle: y
|
|
39
|
+
};
|
|
40
|
+
return p;
|
|
41
|
+
}
|
|
42
|
+
return o.value = function(t) {
|
|
43
|
+
return arguments.length ? (e = typeof t == "function" ? t : p(+t), o) : e;
|
|
44
|
+
}, o.sortValues = function(e) {
|
|
45
|
+
return arguments.length ? (t = e, n = null, o) : t;
|
|
46
|
+
}, o.sort = function(e) {
|
|
47
|
+
return arguments.length ? (n = e, t = null, o) : n;
|
|
48
|
+
}, o.startAngle = function(e) {
|
|
49
|
+
return arguments.length ? (r = typeof e == "function" ? e : p(+e), o) : r;
|
|
50
|
+
}, o.endAngle = function(e) {
|
|
51
|
+
return arguments.length ? (i = typeof e == "function" ? e : p(+e), o) : i;
|
|
52
|
+
}, o.padAngle = function(e) {
|
|
53
|
+
return arguments.length ? (a = typeof e == "function" ? e : p(+e), o) : a;
|
|
54
|
+
}, o;
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-DEJITSTG.mjs
|
|
58
|
+
var T = c.pie, E = {
|
|
59
|
+
sections: /* @__PURE__ */ new Map(),
|
|
60
|
+
showData: !1,
|
|
61
|
+
config: T
|
|
62
|
+
}, D = E.sections, O = E.showData, k = structuredClone(T), A = {
|
|
63
|
+
getConfig: /* @__PURE__ */ d(() => structuredClone(k), "getConfig"),
|
|
64
|
+
clear: /* @__PURE__ */ d(() => {
|
|
65
|
+
D = /* @__PURE__ */ new Map(), O = E.showData, a();
|
|
66
|
+
}, "clear"),
|
|
67
|
+
setDiagramTitle: r,
|
|
68
|
+
getDiagramTitle: t,
|
|
69
|
+
setAccTitle: n,
|
|
70
|
+
getAccTitle: l,
|
|
71
|
+
setAccDescription: e,
|
|
72
|
+
getAccDescription: i,
|
|
73
|
+
addSection: /* @__PURE__ */ d(({ label: e, value: t }) => {
|
|
74
|
+
if (t < 0) throw Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);
|
|
75
|
+
D.has(e) || (D.set(e, t), u.debug(`added new section: ${e}, with value: ${t}`));
|
|
76
|
+
}, "addSection"),
|
|
77
|
+
getSections: /* @__PURE__ */ d(() => D, "getSections"),
|
|
78
|
+
setShowData: /* @__PURE__ */ d((e) => {
|
|
79
|
+
O = e;
|
|
80
|
+
}, "setShowData"),
|
|
81
|
+
getShowData: /* @__PURE__ */ d(() => O, "getShowData")
|
|
82
|
+
}, j = /* @__PURE__ */ d((e, t) => {
|
|
83
|
+
b(e, t), t.setShowData(e.showData), e.sections.map(t.addSection);
|
|
84
|
+
}, "populateDb"), M = { parse: /* @__PURE__ */ d(async (e) => {
|
|
85
|
+
let t = await x("pie", e);
|
|
86
|
+
u.debug(t), j(t, A);
|
|
87
|
+
}, "parse") }, N = /* @__PURE__ */ d((e) => `
|
|
88
|
+
.pieCircle{
|
|
89
|
+
stroke: ${e.pieStrokeColor};
|
|
90
|
+
stroke-width : ${e.pieStrokeWidth};
|
|
91
|
+
opacity : ${e.pieOpacity};
|
|
92
|
+
}
|
|
93
|
+
.pieOuterCircle{
|
|
94
|
+
stroke: ${e.pieOuterStrokeColor};
|
|
95
|
+
stroke-width: ${e.pieOuterStrokeWidth};
|
|
96
|
+
fill: none;
|
|
97
|
+
}
|
|
98
|
+
.pieTitleText {
|
|
99
|
+
text-anchor: middle;
|
|
100
|
+
font-size: ${e.pieTitleTextSize};
|
|
101
|
+
fill: ${e.pieTitleTextColor};
|
|
102
|
+
font-family: ${e.fontFamily};
|
|
103
|
+
}
|
|
104
|
+
.slice {
|
|
105
|
+
font-family: ${e.fontFamily};
|
|
106
|
+
fill: ${e.pieSectionTextColor};
|
|
107
|
+
font-size:${e.pieSectionTextSize};
|
|
108
|
+
// fill: white;
|
|
109
|
+
}
|
|
110
|
+
.legend text {
|
|
111
|
+
fill: ${e.pieLegendTextColor};
|
|
112
|
+
font-family: ${e.fontFamily};
|
|
113
|
+
font-size: ${e.pieLegendTextSize};
|
|
114
|
+
}
|
|
115
|
+
`, "getStyles"), P = /* @__PURE__ */ d((e) => {
|
|
116
|
+
let t = [...e.values()].reduce((e, t) => e + t, 0), n = [...e.entries()].map(([e, t]) => ({
|
|
117
|
+
label: e,
|
|
118
|
+
value: t
|
|
119
|
+
})).filter((e) => e.value / t * 100 >= 1);
|
|
120
|
+
return w().value((e) => e.value).sort(null)(n);
|
|
121
|
+
}, "createPieArcs"), F = {
|
|
122
|
+
parser: M,
|
|
123
|
+
db: A,
|
|
124
|
+
renderer: { draw: /* @__PURE__ */ d((e, t, n, r) => {
|
|
125
|
+
u.debug("rendering pie chart\n" + e);
|
|
126
|
+
let i = r.db, a = o(), c = v(i.getConfig(), a.pie), l = y(t), d = l.append("g");
|
|
127
|
+
d.attr("transform", "translate(225,225)");
|
|
128
|
+
let { themeVariables: p } = a, [m] = _(p.pieOuterStrokeWidth);
|
|
129
|
+
m ??= 2;
|
|
130
|
+
let g = c.textPosition, b = h().innerRadius(0).outerRadius(185), x = h().innerRadius(185 * g).outerRadius(185 * g);
|
|
131
|
+
d.append("circle").attr("cx", 0).attr("cy", 0).attr("r", 185 + m / 2).attr("class", "pieOuterCircle");
|
|
132
|
+
let S = i.getSections(), C = P(S), w = [
|
|
133
|
+
p.pie1,
|
|
134
|
+
p.pie2,
|
|
135
|
+
p.pie3,
|
|
136
|
+
p.pie4,
|
|
137
|
+
p.pie5,
|
|
138
|
+
p.pie6,
|
|
139
|
+
p.pie7,
|
|
140
|
+
p.pie8,
|
|
141
|
+
p.pie9,
|
|
142
|
+
p.pie10,
|
|
143
|
+
p.pie11,
|
|
144
|
+
p.pie12
|
|
145
|
+
], T = 0;
|
|
146
|
+
S.forEach((e) => {
|
|
147
|
+
T += e;
|
|
148
|
+
});
|
|
149
|
+
let E = C.filter((e) => (e.data.value / T * 100).toFixed(0) !== "0"), D = f(w).domain([...S.keys()]);
|
|
150
|
+
d.selectAll("mySlices").data(E).enter().append("path").attr("d", b).attr("fill", (e) => D(e.data.label)).attr("class", "pieCircle"), d.selectAll("mySlices").data(E).enter().append("text").text((e) => (e.data.value / T * 100).toFixed(0) + "%").attr("transform", (e) => "translate(" + x.centroid(e) + ")").style("text-anchor", "middle").attr("class", "slice");
|
|
151
|
+
let O = d.append("text").text(i.getDiagramTitle()).attr("x", 0).attr("y", -400 / 2).attr("class", "pieTitleText"), k = [...S.entries()].map(([e, t]) => ({
|
|
152
|
+
label: e,
|
|
153
|
+
value: t
|
|
154
|
+
})), A = d.selectAll(".legend").data(k).enter().append("g").attr("class", "legend").attr("transform", (e, t) => {
|
|
155
|
+
let n = 22 * k.length / 2;
|
|
156
|
+
return "translate(216," + (t * 22 - n) + ")";
|
|
157
|
+
});
|
|
158
|
+
A.append("rect").attr("width", 18).attr("height", 18).style("fill", (e) => D(e.label)).style("stroke", (e) => D(e.label)), A.append("text").attr("x", 22).attr("y", 14).text((e) => i.getShowData() ? `${e.label} [${e.value}]` : e.label);
|
|
159
|
+
let j = 512 + Math.max(...A.selectAll("text").nodes().map((e) => e?.getBoundingClientRect().width ?? 0)), M = O.node()?.getBoundingClientRect().width ?? 0, N = 450 / 2 - M / 2, F = 450 / 2 + M / 2, I = Math.min(0, N), L = Math.max(j, F) - I;
|
|
160
|
+
l.attr("viewBox", `${I} 0 ${L} 450`), s(l, 450, L, c.useMaxWidth);
|
|
161
|
+
}, "draw") },
|
|
162
|
+
styles: N
|
|
163
|
+
};
|
|
164
|
+
//#endregion
|
|
165
|
+
export { F as diagram };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
require(`./chunk-D-IZpNpi.cjs`);const e=require(`./chunk-ICPOFSXX-hY6BIZ4Y.cjs`),t=require(`./src-DFxq-N5I.cjs`),n=require(`./linear-CxHa1DsM.cjs`);var r=(function(){var e=t.h(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,3],r=[1,4],i=[1,5],a=[1,6],o=[1,7],s=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],c=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],l=[55,56,57],u=[2,36],d=[1,37],f=[1,36],p=[1,38],m=[1,35],h=[1,43],g=[1,41],_=[1,14],v=[1,23],y=[1,18],b=[1,19],x=[1,20],S=[1,21],C=[1,22],w=[1,24],T=[1,25],E=[1,26],D=[1,27],O=[1,28],k=[1,29],A=[1,32],j=[1,33],M=[1,34],N=[1,39],P=[1,40],F=[1,42],I=[1,44],L=[1,62],R=[1,61],z=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],ee=[1,65],te=[1,66],ne=[1,67],re=[1,68],ie=[1,69],ae=[1,70],oe=[1,71],se=[1,72],ce=[1,73],le=[1,74],ue=[1,75],de=[1,76],B=[4,5,6,7,8,9,10,11,12,13,14,15,18],V=[1,90],H=[1,91],U=[1,92],W=[1,99],G=[1,93],K=[1,96],q=[1,94],J=[1,95],Y=[1,97],X=[1,98],Z=[1,102],fe=[10,55,56,57],Q=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],pe={trace:t.h(function(){},`trace`),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:`error`,4:`ALPHA`,5:`NUM`,6:`NODE_STRING`,7:`DOWN`,8:`MINUS`,9:`DEFAULT`,10:`COMMA`,11:`COLON`,12:`AMP`,13:`BRKT`,14:`MULT`,15:`UNICODE_TEXT`,17:`UNIT`,18:`SPACE`,19:`STYLE`,20:`PCT`,25:`CLASSDEF`,28:`QUADRANT`,35:`title`,36:`title_value`,37:`acc_title`,38:`acc_title_value`,39:`acc_descr`,40:`acc_descr_value`,41:`acc_descr_multiline_value`,42:`section`,44:`point_start`,45:`point_x`,46:`point_y`,47:`class_name`,48:`X-AXIS`,49:`AXIS-TEXT-DELIMITER`,50:`Y-AXIS`,51:`QUADRANT_1`,52:`QUADRANT_2`,53:`QUADRANT_3`,54:`QUADRANT_4`,55:`NEWLINE`,56:`SEMI`,57:`EOF`,60:`STR`,61:`MD_STR`,63:`PUNCTUATION`,64:`PLUS`,65:`EQUALS`,66:`DOT`,67:`UNDERSCORE`},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:t.h(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 23:this.$=a[s];break;case 24:this.$=a[s-1]+``+a[s];break;case 26:this.$=a[s-1]+a[s];break;case 27:this.$=[a[s].trim()];break;case 28:a[s-2].push(a[s].trim()),this.$=a[s-2];break;case 29:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 37:this.$=[];break;case 42:this.$=a[s].trim(),r.setDiagramTitle(this.$);break;case 43:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 44:case 45:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 46:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 47:r.addPoint(a[s-3],``,a[s-1],a[s],[]);break;case 48:r.addPoint(a[s-4],a[s-3],a[s-1],a[s],[]);break;case 49:r.addPoint(a[s-4],``,a[s-2],a[s-1],a[s]);break;case 50:r.addPoint(a[s-5],a[s-4],a[s-2],a[s-1],a[s]);break;case 51:r.setXAxisLeftText(a[s-2]),r.setXAxisRightText(a[s]);break;case 52:a[s-1].text+=` ⟶ `,r.setXAxisLeftText(a[s-1]);break;case 53:r.setXAxisLeftText(a[s]);break;case 54:r.setYAxisBottomText(a[s-2]),r.setYAxisTopText(a[s]);break;case 55:a[s-1].text+=` ⟶ `,r.setYAxisBottomText(a[s-1]);break;case 56:r.setYAxisBottomText(a[s]);break;case 57:r.setQuadrant1Text(a[s]);break;case 58:r.setQuadrant2Text(a[s]);break;case 59:r.setQuadrant3Text(a[s]);break;case 60:r.setQuadrant4Text(a[s]);break;case 64:this.$={text:a[s],type:`text`};break;case 65:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 66:this.$={text:a[s],type:`text`};break;case 67:this.$={text:a[s],type:`markdown`};break;case 68:this.$=a[s];break;case 69:this.$=a[s-1]+``+a[s];break}},`anonymous`),table:[{18:n,26:1,27:2,28:r,55:i,56:a,57:o},{1:[3]},{18:n,26:8,27:2,28:r,55:i,56:a,57:o},{18:n,26:9,27:2,28:r,55:i,56:a,57:o},e(s,[2,33],{29:10}),e(c,[2,61]),e(c,[2,62]),e(c,[2,63]),{1:[2,30]},{1:[2,31]},e(l,u,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:f,10:p,12:m,13:h,14:g,18:_,25:v,35:y,37:b,39:x,41:S,42:C,48:w,50:T,51:E,52:D,53:O,54:k,60:A,61:j,63:M,64:N,65:P,66:F,67:I}),e(s,[2,34]),{27:45,55:i,56:a,57:o},e(l,[2,37]),e(l,u,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:d,5:f,10:p,12:m,13:h,14:g,18:_,25:v,35:y,37:b,39:x,41:S,42:C,48:w,50:T,51:E,52:D,53:O,54:k,60:A,61:j,63:M,64:N,65:P,66:F,67:I}),e(l,[2,39]),e(l,[2,40]),e(l,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},e(l,[2,45]),e(l,[2,46]),{18:[1,50]},{4:d,5:f,10:p,12:m,13:h,14:g,43:51,58:31,60:A,61:j,63:M,64:N,65:P,66:F,67:I},{4:d,5:f,10:p,12:m,13:h,14:g,43:52,58:31,60:A,61:j,63:M,64:N,65:P,66:F,67:I},{4:d,5:f,10:p,12:m,13:h,14:g,43:53,58:31,60:A,61:j,63:M,64:N,65:P,66:F,67:I},{4:d,5:f,10:p,12:m,13:h,14:g,43:54,58:31,60:A,61:j,63:M,64:N,65:P,66:F,67:I},{4:d,5:f,10:p,12:m,13:h,14:g,43:55,58:31,60:A,61:j,63:M,64:N,65:P,66:F,67:I},{4:d,5:f,10:p,12:m,13:h,14:g,43:56,58:31,60:A,61:j,63:M,64:N,65:P,66:F,67:I},{4:d,5:f,8:L,10:p,12:m,13:h,14:g,18:R,44:[1,57],47:[1,58],58:60,59:59,63:M,64:N,65:P,66:F,67:I},e(z,[2,64]),e(z,[2,66]),e(z,[2,67]),e(z,[2,70]),e(z,[2,71]),e(z,[2,72]),e(z,[2,73]),e(z,[2,74]),e(z,[2,75]),e(z,[2,76]),e(z,[2,77]),e(z,[2,78]),e(z,[2,79]),e(z,[2,80]),e(s,[2,35]),e(l,[2,38]),e(l,[2,42]),e(l,[2,43]),e(l,[2,44]),{3:64,4:ee,5:te,6:ne,7:re,8:ie,9:ae,10:oe,11:se,12:ce,13:le,14:ue,15:de,21:63},e(l,[2,53],{59:59,58:60,4:d,5:f,8:L,10:p,12:m,13:h,14:g,18:R,49:[1,77],63:M,64:N,65:P,66:F,67:I}),e(l,[2,56],{59:59,58:60,4:d,5:f,8:L,10:p,12:m,13:h,14:g,18:R,49:[1,78],63:M,64:N,65:P,66:F,67:I}),e(l,[2,57],{59:59,58:60,4:d,5:f,8:L,10:p,12:m,13:h,14:g,18:R,63:M,64:N,65:P,66:F,67:I}),e(l,[2,58],{59:59,58:60,4:d,5:f,8:L,10:p,12:m,13:h,14:g,18:R,63:M,64:N,65:P,66:F,67:I}),e(l,[2,59],{59:59,58:60,4:d,5:f,8:L,10:p,12:m,13:h,14:g,18:R,63:M,64:N,65:P,66:F,67:I}),e(l,[2,60],{59:59,58:60,4:d,5:f,8:L,10:p,12:m,13:h,14:g,18:R,63:M,64:N,65:P,66:F,67:I}),{45:[1,79]},{44:[1,80]},e(z,[2,65]),e(z,[2,81]),e(z,[2,82]),e(z,[2,83]),{3:82,4:ee,5:te,6:ne,7:re,8:ie,9:ae,10:oe,11:se,12:ce,13:le,14:ue,15:de,18:[1,81]},e(B,[2,23]),e(B,[2,1]),e(B,[2,2]),e(B,[2,3]),e(B,[2,4]),e(B,[2,5]),e(B,[2,6]),e(B,[2,7]),e(B,[2,8]),e(B,[2,9]),e(B,[2,10]),e(B,[2,11]),e(B,[2,12]),e(l,[2,52],{58:31,43:83,4:d,5:f,10:p,12:m,13:h,14:g,60:A,61:j,63:M,64:N,65:P,66:F,67:I}),e(l,[2,55],{58:31,43:84,4:d,5:f,10:p,12:m,13:h,14:g,60:A,61:j,63:M,64:N,65:P,66:F,67:I}),{46:[1,85]},{45:[1,86]},{4:V,5:H,6:U,8:W,11:G,13:K,16:89,17:q,18:J,19:Y,20:X,22:88,23:87},e(B,[2,24]),e(l,[2,51],{59:59,58:60,4:d,5:f,8:L,10:p,12:m,13:h,14:g,18:R,63:M,64:N,65:P,66:F,67:I}),e(l,[2,54],{59:59,58:60,4:d,5:f,8:L,10:p,12:m,13:h,14:g,18:R,63:M,64:N,65:P,66:F,67:I}),e(l,[2,47],{22:88,16:89,23:100,4:V,5:H,6:U,8:W,11:G,13:K,17:q,18:J,19:Y,20:X}),{46:[1,101]},e(l,[2,29],{10:Z}),e(fe,[2,27],{16:103,4:V,5:H,6:U,8:W,11:G,13:K,17:q,18:J,19:Y,20:X}),e(Q,[2,25]),e(Q,[2,13]),e(Q,[2,14]),e(Q,[2,15]),e(Q,[2,16]),e(Q,[2,17]),e(Q,[2,18]),e(Q,[2,19]),e(Q,[2,20]),e(Q,[2,21]),e(Q,[2,22]),e(l,[2,49],{10:Z}),e(l,[2,48],{22:88,16:89,23:104,4:V,5:H,6:U,8:W,11:G,13:K,17:q,18:J,19:Y,20:X}),{4:V,5:H,6:U,8:W,11:G,13:K,16:89,17:q,18:J,19:Y,20:X,22:105},e(Q,[2,26]),e(l,[2,50],{10:Z}),e(fe,[2,28],{16:103,4:V,5:H,6:U,8:W,11:G,13:K,17:q,18:J,19:Y,20:X})],defaultActions:{8:[2,30],9:[2,31]},parseError:t.h(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t.h(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t.h(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t.h(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
|
+
`+h.showPosition()+`
|
|
3
|
+
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};pe.lexer=(function(){return{EOF:1,parseError:t.h(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t.h(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:t.h(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t.h(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t.h(function(){return this._more=!0,this},`more`),reject:t.h(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t.h(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t.h(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t.h(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t.h(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
5
|
+
`+t+`^`},`showPosition`),test_match:t.h(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:t.h(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:t.h(function(){return this.next()||this.lex()},`lex`),begin:t.h(function(e){this.conditionStack.push(e)},`begin`),popState:t.h(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:t.h(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:t.h(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:t.h(function(e){this.begin(e)},`pushState`),stateStackSize:t.h(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:t.h(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin(`title`),35;case 5:return this.popState(),`title_value`;case 6:return this.begin(`acc_title`),37;case 7:return this.popState(),`acc_title_value`;case 8:return this.begin(`acc_descr`),39;case 9:return this.popState(),`acc_descr_value`;case 10:this.begin(`acc_descr_multiline`);break;case 11:this.popState();break;case 12:return`acc_descr_multiline_value`;case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin(`md_string`);break;case 22:return`MD_STR`;case 23:this.popState();break;case 24:this.begin(`string`);break;case 25:this.popState();break;case 26:return`STR`;case 27:this.begin(`class_name`);break;case 28:return this.popState(),47;case 29:return this.begin(`point_start`),44;case 30:return this.begin(`point_x`),45;case 31:this.popState();break;case 32:this.popState(),this.begin(`point_y`);break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 11;case 37:return 64;case 38:return 10;case 39:return 65;case 40:return 65;case 41:return 14;case 42:return 13;case 43:return 67;case 44:return 66;case 45:return 12;case 46:return 8;case 47:return 5;case 48:return 18;case 49:return 56;case 50:return 63;case 51:return 57}},`anonymous`),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],inclusive:!0}}}})();function $(){this.yy={}}return t.h($,`Parser`),$.prototype=pe,pe.Parser=$,new $})();r.parser=r;var i=r,a=e.E(),o=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{t.h(this,`QuadrantBuilder`)}getDefaultData(){return{titleText:``,quadrant1Text:``,quadrant2Text:``,quadrant3Text:``,quadrant4Text:``,xAxisLeftText:``,xAxisRightText:``,yAxisBottomText:``,yAxisTopText:``,points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:e.d.quadrantChart?.chartWidth||500,chartWidth:e.d.quadrantChart?.chartHeight||500,titlePadding:e.d.quadrantChart?.titlePadding||10,titleFontSize:e.d.quadrantChart?.titleFontSize||20,quadrantPadding:e.d.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:e.d.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:e.d.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:e.d.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:e.d.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:e.d.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:e.d.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:e.d.quadrantChart?.pointTextPadding||5,pointLabelFontSize:e.d.quadrantChart?.pointLabelFontSize||12,pointRadius:e.d.quadrantChart?.pointRadius||5,xAxisPosition:e.d.quadrantChart?.xAxisPosition||`top`,yAxisPosition:e.d.quadrantChart?.yAxisPosition||`left`,quadrantInternalBorderStrokeWidth:e.d.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:e.d.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:a.quadrant1Fill,quadrant2Fill:a.quadrant2Fill,quadrant3Fill:a.quadrant3Fill,quadrant4Fill:a.quadrant4Fill,quadrant1TextFill:a.quadrant1TextFill,quadrant2TextFill:a.quadrant2TextFill,quadrant3TextFill:a.quadrant3TextFill,quadrant4TextFill:a.quadrant4TextFill,quadrantPointFill:a.quadrantPointFill,quadrantPointTextFill:a.quadrantPointTextFill,quadrantXAxisTextFill:a.quadrantXAxisTextFill,quadrantYAxisTextFill:a.quadrantYAxisTextFill,quadrantTitleFill:a.quadrantTitleFill,quadrantInternalBorderStrokeFill:a.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:a.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,t.g.info(`clear called`)}setData(e){this.data={...this.data,...e}}addPoints(e){this.data.points=[...e,...this.data.points]}addClass(e,t){this.classes.set(e,t)}setConfig(e){t.g.trace(`setConfig called with: `,e),this.config={...this.config,...e}}setThemeConfig(e){t.g.trace(`setThemeConfig called with: `,e),this.themeConfig={...this.themeConfig,...e}}calculateSpace(e,t,n,r){let i=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,a={top:e===`top`&&t?i:0,bottom:e===`bottom`&&t?i:0},o=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,s={left:this.config.yAxisPosition===`left`&&n?o:0,right:this.config.yAxisPosition===`right`&&n?o:0},c=this.config.titleFontSize+this.config.titlePadding*2,l={top:r?c:0},u=this.config.quadrantPadding+s.left,d=this.config.quadrantPadding+a.top+l.top,f=this.config.chartWidth-this.config.quadrantPadding*2-s.left-s.right,p=this.config.chartHeight-this.config.quadrantPadding*2-a.top-a.bottom-l.top;return{xAxisSpace:a,yAxisSpace:s,titleSpace:l,quadrantSpace:{quadrantLeft:u,quadrantTop:d,quadrantWidth:f,quadrantHalfWidth:f/2,quadrantHeight:p,quadrantHalfHeight:p/2}}}getAxisLabels(e,t,n,r){let{quadrantSpace:i,titleSpace:a}=r,{quadrantHalfHeight:o,quadrantHeight:s,quadrantLeft:c,quadrantHalfWidth:l,quadrantTop:u,quadrantWidth:d}=i,f=!!this.data.xAxisRightText,p=!!this.data.yAxisTopText,m=[];return this.data.xAxisLeftText&&t&&m.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+(f?l/2:0),y:e===`top`?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+u+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:f?`center`:`left`,horizontalPos:`top`,rotation:0}),this.data.xAxisRightText&&t&&m.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+l+(f?l/2:0),y:e===`top`?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+u+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:f?`center`:`left`,horizontalPos:`top`,rotation:0}),this.data.yAxisBottomText&&n&&m.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition===`left`?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+d+this.config.quadrantPadding,y:u+s-(p?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:p?`center`:`left`,horizontalPos:`top`,rotation:-90}),this.data.yAxisTopText&&n&&m.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition===`left`?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+d+this.config.quadrantPadding,y:u+o-(p?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:p?`center`:`left`,horizontalPos:`top`,rotation:-90}),m}getQuadrants(e){let{quadrantSpace:t}=e,{quadrantHalfHeight:n,quadrantLeft:r,quadrantHalfWidth:i,quadrantTop:a}=t,o=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r+i,y:a,width:i,height:n,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r,y:a,width:i,height:n,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r,y:a+n,width:i,height:n,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r+i,y:a+n,width:i,height:n,fill:this.themeConfig.quadrant4Fill}];for(let e of o)e.text.x=e.x+e.width/2,this.data.points.length===0?(e.text.y=e.y+e.height/2,e.text.horizontalPos=`middle`):(e.text.y=e.y+this.config.quadrantTextTopPadding,e.text.horizontalPos=`top`);return o}getQuadrantPoints(e){let{quadrantSpace:t}=e,{quadrantHeight:r,quadrantLeft:i,quadrantTop:a,quadrantWidth:o}=t,s=n.t().domain([0,1]).range([i,o+i]),c=n.t().domain([0,1]).range([r+a,a]);return this.data.points.map(e=>{let t=this.classes.get(e.className);return t&&(e={...t,...e}),{x:s(e.x),y:c(e.y),fill:e.color??this.themeConfig.quadrantPointFill,radius:e.radius??this.config.pointRadius,text:{text:e.text,fill:this.themeConfig.quadrantPointTextFill,x:s(e.x),y:c(e.y)+this.config.pointTextPadding,verticalPos:`center`,horizontalPos:`top`,fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:e.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:e.strokeWidth??`0px`}})}getBorders(e){let t=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:n}=e,{quadrantHalfHeight:r,quadrantHeight:i,quadrantLeft:a,quadrantHalfWidth:o,quadrantTop:s,quadrantWidth:c}=n;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-t,y1:s,x2:a+c+t,y2:s},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a+c,y1:s+t,x2:a+c,y2:s+i-t},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-t,y1:s+i,x2:a+c+t,y2:s+i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a,y1:s+t,x2:a,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+o,y1:s+t,x2:a+o,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+t,y1:s+r,x2:a+c-t,y2:s+r}]}getTitle(e){if(e)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:`top`,verticalPos:`center`,rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){let e=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),t=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),n=this.config.showTitle&&!!this.data.titleText,r=this.data.points.length>0?`bottom`:this.config.xAxisPosition,i=this.calculateSpace(r,e,t,n);return{points:this.getQuadrantPoints(i),quadrants:this.getQuadrants(i),axisLabels:this.getAxisLabels(r,e,t,i),borderLines:this.getBorders(i),title:this.getTitle(n)}}},s=class extends Error{static{t.h(this,`InvalidStyleError`)}constructor(e,t,n){super(`value for ${e} ${t} is invalid, please use a valid ${n}`),this.name=`InvalidStyleError`}};function c(e){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e)}t.h(c,`validateHexCode`);function l(e){return!/^\d+$/.test(e)}t.h(l,`validateNumber`);function u(e){return!/^\d+px$/.test(e)}t.h(u,`validateSizeInPixels`);var d=e.b();function f(t){return e.L(t.trim(),d)}t.h(f,`textSanitizer`);var p=new o;function m(e){p.setData({quadrant1Text:f(e.text)})}t.h(m,`setQuadrant1Text`);function h(e){p.setData({quadrant2Text:f(e.text)})}t.h(h,`setQuadrant2Text`);function g(e){p.setData({quadrant3Text:f(e.text)})}t.h(g,`setQuadrant3Text`);function _(e){p.setData({quadrant4Text:f(e.text)})}t.h(_,`setQuadrant4Text`);function v(e){p.setData({xAxisLeftText:f(e.text)})}t.h(v,`setXAxisLeftText`);function y(e){p.setData({xAxisRightText:f(e.text)})}t.h(y,`setXAxisRightText`);function b(e){p.setData({yAxisTopText:f(e.text)})}t.h(b,`setYAxisTopText`);function x(e){p.setData({yAxisBottomText:f(e.text)})}t.h(x,`setYAxisBottomText`);function S(e){let t={};for(let n of e){let[e,r]=n.trim().split(/\s*:\s*/);if(e===`radius`){if(l(r))throw new s(e,r,`number`);t.radius=parseInt(r)}else if(e===`color`){if(c(r))throw new s(e,r,`hex code`);t.color=r}else if(e===`stroke-color`){if(c(r))throw new s(e,r,`hex code`);t.strokeColor=r}else if(e===`stroke-width`){if(u(r))throw new s(e,r,`number of pixels (eg. 10px)`);t.strokeWidth=r}else throw Error(`style named ${e} is not supported.`)}return t}t.h(S,`parseStyles`);function C(e,t,n,r,i){let a=S(i);p.addPoints([{x:n,y:r,text:f(e.text),className:t,...a}])}t.h(C,`addPoint`);function w(e,t){p.addClass(e,S(t))}t.h(w,`addClass`);function T(e){p.setConfig({chartWidth:e})}t.h(T,`setWidth`);function E(e){p.setConfig({chartHeight:e})}t.h(E,`setHeight`);function D(){let{themeVariables:t,quadrantChart:n}=e.b();return n&&p.setConfig(n),p.setThemeConfig({quadrant1Fill:t.quadrant1Fill,quadrant2Fill:t.quadrant2Fill,quadrant3Fill:t.quadrant3Fill,quadrant4Fill:t.quadrant4Fill,quadrant1TextFill:t.quadrant1TextFill,quadrant2TextFill:t.quadrant2TextFill,quadrant3TextFill:t.quadrant3TextFill,quadrant4TextFill:t.quadrant4TextFill,quadrantPointFill:t.quadrantPointFill,quadrantPointTextFill:t.quadrantPointTextFill,quadrantXAxisTextFill:t.quadrantXAxisTextFill,quadrantYAxisTextFill:t.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:t.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:t.quadrantInternalBorderStrokeFill,quadrantTitleFill:t.quadrantTitleFill}),p.setData({titleText:e.C()}),p.build()}t.h(D,`getQuadrantData`);var O={parser:i,db:{setWidth:T,setHeight:E,setQuadrant1Text:m,setQuadrant2Text:h,setQuadrant3Text:g,setQuadrant4Text:_,setXAxisLeftText:v,setXAxisRightText:y,setYAxisTopText:b,setYAxisBottomText:x,parseStyles:S,addPoint:C,addClass:w,getQuadrantData:D,clear:t.h(function(){p.clear(),e.a()},`clear`),setAccTitle:e.V,getAccTitle:e.v,setDiagramTitle:e.W,getDiagramTitle:e.C,getAccDescription:e._,setAccDescription:e.B},renderer:{draw:t.h((n,r,i,a)=>{function o(e){return e===`top`?`hanging`:`middle`}t.h(o,`getDominantBaseLine`);function s(e){return e===`left`?`start`:`middle`}t.h(s,`getTextAnchor`);function c(e){return`translate(${e.x}, ${e.y}) rotate(${e.rotation||0})`}t.h(c,`getTransformation`);let l=e.b();t.g.debug(`Rendering quadrant chart
|
|
7
|
+
`+n);let u=l.securityLevel,d;u===`sandbox`&&(d=t.p(`#i`+r));let f=(u===`sandbox`?t.p(d.nodes()[0].contentDocument.body):t.p(`body`)).select(`[id="${r}"]`),p=f.append(`g`).attr(`class`,`main`),m=l.quadrantChart?.chartWidth??500,h=l.quadrantChart?.chartHeight??500;e.c(f,h,m,l.quadrantChart?.useMaxWidth??!0),f.attr(`viewBox`,`0 0 `+m+` `+h),a.db.setHeight(h),a.db.setWidth(m);let g=a.db.getQuadrantData(),_=p.append(`g`).attr(`class`,`quadrants`),v=p.append(`g`).attr(`class`,`border`),y=p.append(`g`).attr(`class`,`data-points`),b=p.append(`g`).attr(`class`,`labels`),x=p.append(`g`).attr(`class`,`title`);g.title&&x.append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,g.title.fill).attr(`font-size`,g.title.fontSize).attr(`dominant-baseline`,o(g.title.horizontalPos)).attr(`text-anchor`,s(g.title.verticalPos)).attr(`transform`,c(g.title)).text(g.title.text),g.borderLines&&v.selectAll(`line`).data(g.borderLines).enter().append(`line`).attr(`x1`,e=>e.x1).attr(`y1`,e=>e.y1).attr(`x2`,e=>e.x2).attr(`y2`,e=>e.y2).style(`stroke`,e=>e.strokeFill).style(`stroke-width`,e=>e.strokeWidth);let S=_.selectAll(`g.quadrant`).data(g.quadrants).enter().append(`g`).attr(`class`,`quadrant`);S.append(`rect`).attr(`x`,e=>e.x).attr(`y`,e=>e.y).attr(`width`,e=>e.width).attr(`height`,e=>e.height).attr(`fill`,e=>e.fill),S.append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,e=>e.text.fill).attr(`font-size`,e=>e.text.fontSize).attr(`dominant-baseline`,e=>o(e.text.horizontalPos)).attr(`text-anchor`,e=>s(e.text.verticalPos)).attr(`transform`,e=>c(e.text)).text(e=>e.text.text),b.selectAll(`g.label`).data(g.axisLabels).enter().append(`g`).attr(`class`,`label`).append(`text`).attr(`x`,0).attr(`y`,0).text(e=>e.text).attr(`fill`,e=>e.fill).attr(`font-size`,e=>e.fontSize).attr(`dominant-baseline`,e=>o(e.horizontalPos)).attr(`text-anchor`,e=>s(e.verticalPos)).attr(`transform`,e=>c(e));let C=y.selectAll(`g.data-point`).data(g.points).enter().append(`g`).attr(`class`,`data-point`);C.append(`circle`).attr(`cx`,e=>e.x).attr(`cy`,e=>e.y).attr(`r`,e=>e.radius).attr(`fill`,e=>e.fill).attr(`stroke`,e=>e.strokeColor).attr(`stroke-width`,e=>e.strokeWidth),C.append(`text`).attr(`x`,0).attr(`y`,0).text(e=>e.text.text).attr(`fill`,e=>e.text.fill).attr(`font-size`,e=>e.text.fontSize).attr(`dominant-baseline`,e=>o(e.text.horizontalPos)).attr(`text-anchor`,e=>s(e.text.verticalPos)).attr(`transform`,e=>c(e.text))},`draw`)},styles:t.h(()=>``,`styles`)};exports.diagram=O;
|