@sme.up/ketchup2 2.0.0-alpha.2 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arc-CqG9Hxdf.cjs +1 -0
- package/dist/arc-Klgb378K.js +80 -0
- package/dist/architecture-YZFGNWBL-BRqToLcm.js +3 -0
- package/dist/architecture-YZFGNWBL-BTOWQWD9.cjs +1 -0
- package/dist/architectureDiagram-Q4EWVU46-JSjagcXX.cjs +36 -0
- package/dist/architectureDiagram-Q4EWVU46-u2vgZv3N.js +4057 -0
- package/dist/array-D8NZ46Ht.js +6 -0
- package/dist/array-Dxz0O8Q3.cjs +1 -0
- package/dist/assets/imageListAssets.d.ts +3 -1
- package/dist/assets/imageListAssets.d.ts.map +1 -1
- package/dist/assets/svg/chevron_down.svg +1 -0
- package/dist/assets/svg/error_outline.svg +1 -0
- package/dist/assets/svg/warning_outline.svg +1 -0
- package/dist/basic-components/autocomplete/autocomplete.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-editor/text-editor-utils.d.ts +1 -1
- package/dist/basic-components/text-editor/text-editor-utils.d.ts.map +1 -1
- package/dist/basic-components/typography/typography.d.ts.map +1 -1
- package/dist/blockDiagram-DXYQGD6D-BpB6_kTP.js +3033 -0
- package/dist/blockDiagram-DXYQGD6D-DlcDXSwH.cjs +132 -0
- package/dist/c4Diagram-AHTNJAMY-B5Z8nO1s.js +2961 -0
- package/dist/c4Diagram-AHTNJAMY-CX5IjREU.cjs +10 -0
- package/dist/channel-BY9Lkyz7.cjs +1 -0
- package/dist/channel-BqNr2cYO.js +5 -0
- package/dist/chunk-2KRD3SAO-Ca3zDQyj.js +23 -0
- package/dist/chunk-2KRD3SAO-oZrIWZvV.cjs +1 -0
- package/dist/chunk-336JU56O-CuXRn1VH.cjs +1 -0
- package/dist/chunk-336JU56O-xKPgkG3O.js +49 -0
- package/dist/chunk-426QAEUC-Df31vuwu.cjs +1 -0
- package/dist/chunk-426QAEUC-JjFVHKYG.js +9 -0
- package/dist/chunk-4BX2VUAB-BW54-JWg.js +8 -0
- package/dist/chunk-4BX2VUAB-Qba52sxc.cjs +1 -0
- package/dist/chunk-4TB4RGXK-CKyHmNcP.js +3253 -0
- package/dist/chunk-4TB4RGXK-DdKJIFS5.cjs +206 -0
- package/dist/chunk-55IACEB6-Bu3k0Yz5.js +8 -0
- package/dist/chunk-55IACEB6-DPatBzu7.cjs +1 -0
- package/dist/chunk-5FUZZQ4R-2kdZJWq2.js +3638 -0
- package/dist/chunk-5FUZZQ4R-D_vnCbAb.cjs +62 -0
- package/dist/chunk-5PVQY5BW-C5U7sJAA.js +1299 -0
- package/dist/chunk-5PVQY5BW-CfQDYQZt.cjs +2 -0
- package/dist/chunk-67CJDMHE-2Qg7i1xJ.cjs +1 -0
- package/dist/chunk-67CJDMHE-YMBkJcAO.js +23 -0
- package/dist/chunk-7N4EOEYR-C-GuhRgW.js +35 -0
- package/dist/chunk-7N4EOEYR-jNBQwvHx.cjs +1 -0
- package/dist/chunk-AA7GKIK3-B_ZB6dou.js +30 -0
- package/dist/chunk-AA7GKIK3-dqnTmnvO.cjs +1 -0
- package/dist/chunk-BSJP7CBP-CFzYPvgr.cjs +1 -0
- package/dist/chunk-BSJP7CBP-oNTXVRA7.js +82 -0
- package/dist/chunk-CIAEETIT-ClHUj0Su.cjs +1 -0
- package/dist/chunk-CIAEETIT-XlxsAz-4.js +23 -0
- package/dist/chunk-D-IZpNpi.cjs +1 -0
- package/dist/chunk-EDXVE4YY-BZsJORf8.cjs +1 -0
- package/dist/chunk-EDXVE4YY-Bzf4FU3i.js +25 -0
- package/dist/chunk-ENJZ2VHE-BluGQPyl.js +560 -0
- package/dist/chunk-ENJZ2VHE-CwgVASaU.cjs +10 -0
- package/dist/{chunk-FMBD7UC4-Bbe5VHO3.cjs → chunk-FMBD7UC4-CS9_r76V.cjs} +2 -2
- package/dist/chunk-FMBD7UC4-RRSc9jqt.js +5 -0
- package/dist/chunk-FOC6F5B3-DcZs851j.cjs +1 -0
- package/dist/chunk-FOC6F5B3-E9n6-juB.js +23 -0
- package/dist/chunk-ICPOFSXX-CoaJw-IT.cjs +122 -0
- package/dist/chunk-ICPOFSXX-Sn6LWD0k.js +3316 -0
- package/dist/chunk-K5T4RW27-BzDQkjC7.cjs +94 -0
- package/dist/chunk-K5T4RW27-DY7TOEqa.js +16070 -0
- package/dist/chunk-KGLVRYIC-5OJpfQCj.js +23 -0
- package/dist/chunk-KGLVRYIC-DnbIkai8.cjs +1 -0
- package/dist/chunk-LIHQZDEY-59I4-LWb.js +64 -0
- package/dist/chunk-LIHQZDEY-CrogR3nT.cjs +1 -0
- package/dist/chunk-ORNJ4GCN-CcrEtiCn.cjs +1 -0
- package/dist/chunk-ORNJ4GCN-CwkOSFbS.js +31 -0
- package/dist/chunk-OYMX7WX6-BCT45RPu.cjs +231 -0
- package/dist/chunk-OYMX7WX6-BQADsxYi.js +2014 -0
- package/dist/chunk-QZHKN3VN-Bx8I6l3c.js +15 -0
- package/dist/chunk-QZHKN3VN-CSMKL2rB.cjs +1 -0
- package/dist/chunk-U2HBQHQK-BZ3YFMXB.js +1879 -0
- package/dist/chunk-U2HBQHQK-D0AoQWxK.cjs +70 -0
- package/dist/chunk-WQLz0Won.js +20 -0
- package/dist/chunk-X2U36JSP-CY7mJR8m.js +67 -0
- package/dist/chunk-X2U36JSP-D1RYKjVc.cjs +1 -0
- package/dist/chunk-XPW4576I-BcWkx-AL.js +1146 -0
- package/dist/chunk-XPW4576I-D8Pp6a3j.cjs +32 -0
- package/dist/chunk-YZCP3GAM-9K9WNdyN.js +60 -0
- package/dist/chunk-YZCP3GAM-BmaAafMm.cjs +1 -0
- package/dist/chunk-ZZ45TVLE-AQQsnXy4.cjs +1 -0
- package/dist/chunk-ZZ45TVLE-CIYrdg-O.js +32 -0
- package/dist/classDiagram-6PBFFD2Q-B6betnLH.cjs +1 -0
- package/dist/classDiagram-6PBFFD2Q-XGxl_AeB.js +29 -0
- package/dist/classDiagram-v2-HSJHXN6E-CwayYG4G.js +29 -0
- package/dist/classDiagram-v2-HSJHXN6E-Dda8WDvn.cjs +1 -0
- package/dist/clone-Dn__H8fX.js +8 -0
- package/dist/clone-lShkT11Q.cjs +1 -0
- package/dist/components/app-bar/app-bar.d.ts.map +1 -1
- package/dist/components/box-list/box-list-types.d.ts +1 -0
- package/dist/components/box-list/box-list-types.d.ts.map +1 -1
- package/dist/components/box-list/box-list.d.ts.map +1 -1
- package/dist/components/dash-list/dash-list.d.ts.map +1 -1
- package/dist/components/field/field-types.d.ts +1 -1
- package/dist/components/field/field-types.d.ts.map +1 -1
- package/dist/components/htm/htm-types.d.ts +4 -0
- package/dist/components/htm/htm-types.d.ts.map +1 -1
- package/dist/components/htm/htm.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 +15 -0
- package/dist/components/image-list/components/image-list-navigation-picker.d.ts.map +1 -0
- 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-slideshow.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-child-popup.d.ts.map +1 -1
- package/dist/components/image-list/components/strip-item.d.ts.map +1 -1
- package/dist/components/image-list/components/strip-overflow-button.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 +50 -2
- package/dist/components/image-list/image-list-types.d.ts.map +1 -1
- package/dist/components/image-list/image-list-utils.d.ts +54 -2
- 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/tooltip/tooltip-assets.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip-utils.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-BjnWDdkw.cjs +1 -0
- package/dist/dagre-DVLnxd7n.js +1606 -0
- package/dist/dagre-KV5264BT-BjqayRYC.js +293 -0
- package/dist/dagre-KV5264BT-BvInGAUC.cjs +4 -0
- package/dist/defaultLocale-Dcyuaxxg.js +201 -0
- package/dist/defaultLocale-DtzyZW63.cjs +1 -0
- package/dist/diagram-5BDNPKRD-Bk7depC0.js +101 -0
- package/dist/diagram-5BDNPKRD-D6EXksHo.cjs +10 -0
- package/dist/diagram-G4DWMVQ6-BkQnbCLv.js +524 -0
- package/dist/diagram-G4DWMVQ6-CJASbR70.cjs +24 -0
- package/dist/diagram-MMDJMWI5-DEt7jQx9.cjs +43 -0
- package/dist/diagram-MMDJMWI5-DUUVPi55.js +213 -0
- package/dist/diagram-TYMM5635-5auoAFCi.cjs +24 -0
- package/dist/diagram-TYMM5635-Cpj8wfoJ.js +133 -0
- package/dist/dist-BgvMZbfo.cjs +1 -0
- package/dist/dist-DL30VIBI.js +60 -0
- package/dist/erDiagram-SMLLAGMA-DVUT6TBy.cjs +85 -0
- package/dist/erDiagram-SMLLAGMA-D_ByPk0C.js +1700 -0
- package/dist/flatten-BE1bWL-7.js +40 -0
- package/dist/flatten-DxvYSoR8.cjs +1 -0
- package/dist/flowDiagram-DWJPFMVM-BWrkDnqc.js +4145 -0
- package/dist/flowDiagram-DWJPFMVM-BbK42NaF.cjs +162 -0
- package/dist/functional-components/action/action-types.d.ts +70 -0
- package/dist/functional-components/action/action-types.d.ts.map +1 -0
- package/dist/functional-components/action/action-utils.d.ts +5 -0
- package/dist/functional-components/action/action-utils.d.ts.map +1 -0
- package/dist/functional-components/action/action.d.ts +3 -0
- package/dist/functional-components/action/action.d.ts.map +1 -0
- 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/gantt/bar/gantt-bar.d.ts.map +1 -1
- package/dist/functional-components/gantt/gantt-assets.d.ts +4 -0
- package/dist/functional-components/gantt/gantt-assets.d.ts.map +1 -1
- package/dist/functional-components/gantt/gantt.d.ts.map +1 -1
- package/dist/functional-components/gantt/today-indicator/gantt-today-indicator.d.ts +17 -0
- package/dist/functional-components/gantt/today-indicator/gantt-today-indicator.d.ts.map +1 -0
- package/dist/ganttDiagram-T4ZO3ILL-DUi8jF9H.cjs +292 -0
- package/dist/ganttDiagram-T4ZO3ILL-LuaYkUvj.js +3077 -0
- package/dist/gitGraph-7Q5UKJZL-DZea3ltD.cjs +1 -0
- package/dist/gitGraph-7Q5UKJZL-sjlqDwJ_.js +3 -0
- package/dist/gitGraphDiagram-UUTBAWPF-D-tMWUQ1.cjs +106 -0
- package/dist/gitGraphDiagram-UUTBAWPF-DKkENwcV.js +728 -0
- package/dist/graphlib-Cpifseqb.js +373 -0
- package/dist/graphlib-HdfvGLpV.cjs +1 -0
- package/dist/hooks/useClickOutside.d.ts.map +1 -1
- package/dist/identity-KQSjemTb.cjs +1 -0
- package/dist/identity-g0dsMjx7.js +393 -0
- package/dist/info-OMHHGYJF-Bk0VWVNW.js +3 -0
- package/dist/info-OMHHGYJF-C8QtwF0k.cjs +1 -0
- package/dist/infoDiagram-42DDH7IO-CH5xHj8H.cjs +2 -0
- package/dist/infoDiagram-42DDH7IO-CLkQPFe0.js +19 -0
- package/dist/init-B2MubQrj.cjs +1 -0
- package/dist/init-BO60vQHJ.js +15 -0
- package/dist/isEmpty-CA3kJuev.cjs +1 -0
- package/dist/isEmpty-RwX-oIQS.js +35 -0
- package/dist/ishikawaDiagram-UXIWVN3A-Cl3Ivm8H.cjs +70 -0
- package/dist/ishikawaDiagram-UXIWVN3A-DqbVPChK.js +718 -0
- package/dist/journeyDiagram-VCZTEJTY-DudduR0c.js +883 -0
- package/dist/journeyDiagram-VCZTEJTY-XRc0J8gM.cjs +139 -0
- package/dist/kanban-definition-6JOO6SKY-Br87atRc.cjs +89 -0
- package/dist/kanban-definition-6JOO6SKY-DzEqE64J.js +973 -0
- package/dist/katex-Du5WiYIy.js +22000 -0
- package/dist/katex-SAH56fvc.cjs +257 -0
- package/dist/ketchup2.cjs.js +190 -1
- package/dist/ketchup2.css +2 -1
- package/dist/ketchup2.es.js +132419 -52
- package/dist/line-BbHmiwbs.cjs +1 -0
- package/dist/line-JyRBGWft.js +34 -0
- package/dist/linear-BsPvNLJv.js +289 -0
- package/dist/linear-CxHa1DsM.cjs +1 -0
- package/dist/mermaid-parser.core-CERDf-UG.js +69 -0
- package/dist/mermaid-parser.core-DHpvGOZR.cjs +3 -0
- package/dist/mindmap-definition-QFDTVHPH-BCq8zmLt.cjs +96 -0
- package/dist/mindmap-definition-QFDTVHPH-NGjPQ5SM.js +978 -0
- package/dist/ordinal-C-VoL0XF.js +65 -0
- package/dist/ordinal-Civr0hZL.cjs +1 -0
- package/dist/packet-4T2RLAQJ-X0BMsNFj.js +3 -0
- package/dist/packet-4T2RLAQJ-lvmQnXPI.cjs +1 -0
- package/dist/path-Civic7PQ.cjs +1 -0
- package/dist/path-CvfwEr8y.js +85 -0
- package/dist/pie-ZZUOXDRM-CJ_fU5k1.js +3 -0
- package/dist/pie-ZZUOXDRM-Dp4APKqR.cjs +1 -0
- package/dist/pieDiagram-DEJITSTG-CK4xy0PS.cjs +30 -0
- package/dist/pieDiagram-DEJITSTG-DTeyzHmB.js +165 -0
- package/dist/quadrantDiagram-34T5L4WZ-CCcJIf91.js +1974 -0
- package/dist/quadrantDiagram-34T5L4WZ-D-_iiK79.cjs +7 -0
- package/dist/radar-PYXPWWZC-BHWJy_E1.cjs +1 -0
- package/dist/radar-PYXPWWZC-DgZIW9Ah.js +3 -0
- package/dist/reduce-B7WW9rkU.cjs +1 -0
- package/dist/reduce-DNnkcf3M.js +532 -0
- package/dist/requirementDiagram-MS252O5E-BdOanuYe.js +2221 -0
- package/dist/requirementDiagram-MS252O5E-EfY029Xj.cjs +84 -0
- package/dist/rough.esm-1mqTSjCt.js +1352 -0
- package/dist/rough.esm-BLKo1fIQ.cjs +1 -0
- package/dist/sankeyDiagram-XADWPNL6-3jlM2UcU.cjs +10 -0
- package/dist/sankeyDiagram-XADWPNL6-3wviN_U4.js +920 -0
- package/dist/sequenceDiagram-FGHM5R23-DC8SjhFN.js +4157 -0
- package/dist/sequenceDiagram-FGHM5R23-lK1G3QLN.cjs +157 -0
- package/dist/src-BQiFKP24.js +2146 -0
- package/dist/src-DFxq-N5I.cjs +1 -0
- package/dist/stateDiagram-FHFEXIEX-DnkzFphf.js +217 -0
- package/dist/stateDiagram-FHFEXIEX-DsQigFuR.cjs +1 -0
- package/dist/stateDiagram-v2-QKLJ7IA2-2v8JiIJr.js +27 -0
- package/dist/stateDiagram-v2-QKLJ7IA2-UKKfWPoT.cjs +1 -0
- package/dist/timeline-definition-GMOUNBTQ-CBnYBWN0.js +1068 -0
- package/dist/timeline-definition-GMOUNBTQ-DWpngnE4.cjs +120 -0
- package/dist/treeView-SZITEDCU-CT5vX0q9.cjs +1 -0
- package/dist/treeView-SZITEDCU-Df3xzFtO.js +3 -0
- package/dist/treemap-W4RFUUIX-Bk_jVZ7D.cjs +1 -0
- package/dist/treemap-W4RFUUIX-ClUtdSdn.js +3 -0
- package/dist/utils/translation.d.ts.map +1 -1
- package/dist/v4-6yr83DbP.cjs +1 -0
- package/dist/v4-BR71w5_q.js +33 -0
- package/dist/vennDiagram-DHZGUBPP-D-kj-sVU.cjs +34 -0
- package/dist/vennDiagram-DHZGUBPP-M-kkEkXj.js +1858 -0
- package/dist/wardley-RL74JXVD-BtHQbnUy.js +3 -0
- package/dist/wardley-RL74JXVD-y8RO5Iqv.cjs +1 -0
- package/dist/wardleyDiagram-NUSXRM2D-CUX1SYhw.js +578 -0
- package/dist/wardleyDiagram-NUSXRM2D-thoOuA_D.cjs +20 -0
- package/dist/xychartDiagram-5P7HB3ND-1cXRZ1bi.js +2044 -0
- package/dist/xychartDiagram-5P7HB3ND-BF2WmJ4-.cjs +7 -0
- package/package.json +31 -31
- package/dist/_basePickBy-DGJmMScd.cjs +0 -1
- package/dist/_basePickBy-PX1Y-d1V.js +0 -151
- package/dist/_baseUniq-DcRTQJQN.cjs +0 -1
- package/dist/_baseUniq-DwOD2Otm.js +0 -614
- package/dist/arc-BsWNnd73.js +0 -83
- package/dist/arc-DBV_HLQY.cjs +0 -1
- package/dist/architecture-7HQA4BMR-CFSh30qd.js +0 -6
- package/dist/architecture-7HQA4BMR-lBVp8HRs.cjs +0 -1
- package/dist/architectureDiagram-VXUJARFQ-Bc0s-J3p.cjs +0 -36
- package/dist/architectureDiagram-VXUJARFQ-CMUHe_r-.js +0 -4661
- package/dist/blockDiagram-VD42YOAC-C_oUXbzO.cjs +0 -122
- package/dist/blockDiagram-VD42YOAC-IY9o9LbQ.js +0 -2256
- package/dist/c4Diagram-YG6GDRKO-CqZ8ZT08.cjs +0 -10
- package/dist/c4Diagram-YG6GDRKO-DJxkbTo5.js +0 -1580
- package/dist/channel-BkvCKlJ6.js +0 -5
- package/dist/channel-CswPsSpD.cjs +0 -1
- package/dist/chunk-4BX2VUAB-CYIF37mc.js +0 -8
- package/dist/chunk-4BX2VUAB-gEHSzd7y.cjs +0 -1
- package/dist/chunk-55IACEB6-BHAHwp5q.js +0 -8
- package/dist/chunk-55IACEB6-_lyvFxBQ.cjs +0 -1
- package/dist/chunk-B4BG7PRW-B8r_ephc.js +0 -1375
- package/dist/chunk-B4BG7PRW-BS27R9kc.cjs +0 -165
- package/dist/chunk-DI55MBZ5-Bm2YZ5i9.cjs +0 -220
- package/dist/chunk-DI55MBZ5-hEyGllSh.js +0 -1370
- package/dist/chunk-FMBD7UC4-D7nrDShK.js +0 -19
- package/dist/chunk-QN33PNHL-BgJe6Xfg.cjs +0 -1
- package/dist/chunk-QN33PNHL-rrJh01ga.js +0 -19
- package/dist/chunk-QZHKN3VN-BmAbl_2n.js +0 -15
- package/dist/chunk-QZHKN3VN-BrAhTHYa.cjs +0 -1
- package/dist/chunk-TZMSLE5B-BE-7S1wa.js +0 -64
- package/dist/chunk-TZMSLE5B-BHB7-VQp.cjs +0 -1
- package/dist/classDiagram-2ON5EDUG-CebcMRVR.cjs +0 -1
- package/dist/classDiagram-2ON5EDUG-D3F1RaIQ.js +0 -16
- package/dist/classDiagram-v2-WZHVMYZB-CebcMRVR.cjs +0 -1
- package/dist/classDiagram-v2-WZHVMYZB-D3F1RaIQ.js +0 -16
- package/dist/clone-BDgl72Aq.cjs +0 -1
- package/dist/clone-C_aDFxlO.js +0 -8
- package/dist/cose-bilkent-S5V4N54A-D3wiY3iN.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-D5AClp5l.js +0 -2608
- package/dist/cytoscape.esm-CNUX3VTg.cjs +0 -321
- package/dist/cytoscape.esm-Cvf3sx9F.js +0 -18704
- package/dist/dagre-6UL2VRFP-CypqseiV.cjs +0 -4
- package/dist/dagre-6UL2VRFP-DMO4JOci.js +0 -444
- package/dist/defaultLocale-D7EN2tov.js +0 -171
- package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
- package/dist/diagram-PSM6KHXK-BDoLsIhn.cjs +0 -24
- package/dist/diagram-PSM6KHXK-cFCqdUIB.js +0 -531
- package/dist/diagram-QEK2KX5R-Cc5PUDIg.cjs +0 -43
- package/dist/diagram-QEK2KX5R-Cu_E8La-.js +0 -217
- package/dist/diagram-S2PKOQOG-CGnbJJ6_.cjs +0 -24
- package/dist/diagram-S2PKOQOG-Cz6p6CDp.js +0 -142
- package/dist/erDiagram-Q2GNP2WA-C4LFQCJ0.cjs +0 -60
- package/dist/erDiagram-Q2GNP2WA-DvfsJLvg.js +0 -841
- package/dist/flowDiagram-NV44I4VS-CeKGu9EW.js +0 -1620
- package/dist/flowDiagram-NV44I4VS-D5y8Cy09.cjs +0 -162
- package/dist/ganttDiagram-JELNMOA3-BSy5awHh.cjs +0 -267
- package/dist/ganttDiagram-JELNMOA3-Dr4U9R4y.js +0 -2670
- package/dist/gitGraph-G5XIXVHT-CO3K0I5T.js +0 -6
- package/dist/gitGraph-G5XIXVHT-Ca7V3WsM.cjs +0 -1
- package/dist/gitGraphDiagram-V2S2FVAM-1QBHZeWE.js +0 -699
- package/dist/gitGraphDiagram-V2S2FVAM-OiapaYQL.cjs +0 -65
- package/dist/graph-Jks8K00w.cjs +0 -1
- package/dist/graph-zNBt93GG.js +0 -247
- package/dist/index-D_QdHvga.js +0 -132342
- package/dist/index-DrE_PcNC.cjs +0 -390
- package/dist/info-VBDWY6EO-0Eh7RJSD.js +0 -6
- package/dist/info-VBDWY6EO-BUpod63m.cjs +0 -1
- package/dist/infoDiagram-HS3SLOUP-DQPTM4yd.cjs +0 -2
- package/dist/infoDiagram-HS3SLOUP-y4B3rGEI.js +0 -24
- package/dist/init-CHZsXQcr.cjs +0 -1
- package/dist/init-DjUOC4st.js +0 -16
- package/dist/journeyDiagram-XKPGCS4Q-BA6dU3fB.js +0 -834
- package/dist/journeyDiagram-XKPGCS4Q-CgX1uRWQ.cjs +0 -139
- package/dist/kanban-definition-3W4ZIXB7-CCcUvQw2.js +0 -719
- package/dist/kanban-definition-3W4ZIXB7-CLsSK820.cjs +0 -89
- package/dist/katex-C2g-EhzP.cjs +0 -261
- package/dist/katex-CUSbq6rG.js +0 -11692
- package/dist/layout-DQY8NU7r.cjs +0 -1
- package/dist/layout-DhDJaAGH.js +0 -1335
- package/dist/linear-BxHQa2UM.js +0 -259
- package/dist/linear-DFPXnk9z.cjs +0 -1
- package/dist/mermaid-parser.core-BLQ9Ldcb.cjs +0 -160
- package/dist/mermaid-parser.core-Bny4tLBT.js +0 -17907
- package/dist/mindmap-definition-VGOIOE7T-Bw0Ttp1K.cjs +0 -68
- package/dist/mindmap-definition-VGOIOE7T-DWETxOzy.js +0 -758
- package/dist/ordinal-B6-f3MAq.js +0 -61
- package/dist/ordinal-CagbB1m8.cjs +0 -1
- package/dist/packet-DYOGHKS2-A2xNn9e2.cjs +0 -1
- package/dist/packet-DYOGHKS2-C9WC8eNb.js +0 -6
- package/dist/pie-VRWISCQL-BafPWeA1.cjs +0 -1
- package/dist/pie-VRWISCQL-vKJ8WC8d.js +0 -6
- package/dist/pieDiagram-ADFJNKIX-BdsfNh69.js +0 -161
- package/dist/pieDiagram-ADFJNKIX-DOZhSj8j.cjs +0 -30
- package/dist/quadrantDiagram-AYHSOK5B-BLuxXMra.cjs +0 -7
- package/dist/quadrantDiagram-AYHSOK5B-D9KE7HJs.js +0 -1022
- package/dist/radar-ZZBFDIW7-BLGCqPHv.js +0 -6
- package/dist/radar-ZZBFDIW7-BWxFhKYx.cjs +0 -1
- package/dist/requirementDiagram-UZGBJVZJ-BEkU_fE6.js +0 -850
- package/dist/requirementDiagram-UZGBJVZJ-DkNufFqc.cjs +0 -64
- package/dist/sankeyDiagram-TZEHDZUN-BJD6V_yO.js +0 -810
- package/dist/sankeyDiagram-TZEHDZUN-Dt4bjS4w.cjs +0 -10
- package/dist/sequenceDiagram-WL72ISMW-CSEM0aqp.cjs +0 -145
- package/dist/sequenceDiagram-WL72ISMW-dCDlLWba.js +0 -2511
- package/dist/stateDiagram-FKZM4ZOC-BcD9IQHo.cjs +0 -1
- package/dist/stateDiagram-FKZM4ZOC-CZ3DL61f.js +0 -263
- package/dist/stateDiagram-v2-4FDKWEC3-DGsrmxNL.cjs +0 -1
- package/dist/stateDiagram-v2-4FDKWEC3-DON-yX7J.js +0 -16
- package/dist/timeline-definition-IT6M3QCI-Bwb7mbiA.js +0 -795
- package/dist/timeline-definition-IT6M3QCI-CIbYhaSE.cjs +0 -61
- package/dist/treemap-GDKQZRPO-BMq1hkbw.cjs +0 -1
- package/dist/treemap-GDKQZRPO-DYOf8KkT.js +0 -6
- package/dist/xychartDiagram-PRI3JC2R-DloZDwSO.cjs +0 -7
- package/dist/xychartDiagram-PRI3JC2R-er9aZ4EF.js +0 -1340
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk-D-IZpNpi.cjs`),require(`./chunk-K5T4RW27-BzDQkjC7.cjs`);const e=require(`./chunk-CIAEETIT-ClHUj0Su.cjs`);exports.createWardleyServices=e.n;
|
|
@@ -0,0 +1,578 @@
|
|
|
1
|
+
import { B as e, C as t, L as n, V as r, W as i, _ as a, a as o, b as s, c, v as l } from "./chunk-ICPOFSXX-Sn6LWD0k.js";
|
|
2
|
+
import { g as u, h as d } from "./src-BQiFKP24.js";
|
|
3
|
+
import { t as f } from "./chunk-426QAEUC-JjFVHKYG.js";
|
|
4
|
+
import { t as p } from "./chunk-4BX2VUAB-BW54-JWg.js";
|
|
5
|
+
import { t as m } from "./mermaid-parser.core-CERDf-UG.js";
|
|
6
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.mjs
|
|
7
|
+
var h = /* @__PURE__ */ d((e, t) => {
|
|
8
|
+
let n = e <= 1 ? e * 100 : e;
|
|
9
|
+
if (n < 0 || n > 100) throw Error(`${t} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);
|
|
10
|
+
return n;
|
|
11
|
+
}, "toPercent"), g = /* @__PURE__ */ d((e, t, n) => ({
|
|
12
|
+
x: h(t, `${n} evolution`),
|
|
13
|
+
y: h(e, `${n} visibility`)
|
|
14
|
+
}), "toCoordinates"), _ = /* @__PURE__ */ d((e) => {
|
|
15
|
+
if (e) {
|
|
16
|
+
if (e === "+<>") return "bidirectional";
|
|
17
|
+
if (e === "+<") return "backward";
|
|
18
|
+
if (e === "+>") return "forward";
|
|
19
|
+
}
|
|
20
|
+
}, "getFlowFromPort"), v = /* @__PURE__ */ d((e) => {
|
|
21
|
+
if (!e?.startsWith("+")) return {};
|
|
22
|
+
let t = /^\+'([^']*)'/.exec(e)?.[1];
|
|
23
|
+
return e.includes("<>") ? {
|
|
24
|
+
flow: "bidirectional",
|
|
25
|
+
label: t
|
|
26
|
+
} : e.includes("<") ? {
|
|
27
|
+
flow: "backward",
|
|
28
|
+
label: t
|
|
29
|
+
} : e.includes(">") ? {
|
|
30
|
+
flow: "forward",
|
|
31
|
+
label: t
|
|
32
|
+
} : { label: t };
|
|
33
|
+
}, "extractFlowFromArrow"), y = /* @__PURE__ */ d((e, t) => {
|
|
34
|
+
if (p(e, t), e.size && t.setSize(e.size.width, e.size.height), e.evolution) {
|
|
35
|
+
let n = e.evolution.stages.map((e) => e.secondName ? `${e.name.trim()} / ${e.secondName.trim()}` : e.name.trim()), r = e.evolution.stages.filter((e) => e.boundary !== void 0).map((e) => e.boundary);
|
|
36
|
+
t.updateAxes({
|
|
37
|
+
stages: n,
|
|
38
|
+
stageBoundaries: r
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
if (e.anchors.forEach((e) => {
|
|
42
|
+
let n = g(e.visibility, e.evolution, `Anchor "${e.name}"`);
|
|
43
|
+
t.addNode(e.name, e.name, n.x, n.y, "anchor");
|
|
44
|
+
}), e.components.forEach((e) => {
|
|
45
|
+
let n = g(e.visibility, e.evolution, `Component "${e.name}"`), r = e.label ? (e.label.negX ? -1 : 1) * e.label.offsetX : void 0, i = e.label ? (e.label.negY ? -1 : 1) * e.label.offsetY : void 0, a = e.decorator?.strategy;
|
|
46
|
+
t.addNode(e.name, e.name, n.x, n.y, "component", r, i, e.inertia, a);
|
|
47
|
+
}), e.notes.forEach((e) => {
|
|
48
|
+
let n = g(e.visibility, e.evolution, `Note "${e.text}"`);
|
|
49
|
+
t.addNote(e.text, n.x, n.y);
|
|
50
|
+
}), e.pipelines.forEach((e) => {
|
|
51
|
+
let n = t.getNode(e.parent);
|
|
52
|
+
if (!n || typeof n.y != "number") throw Error(`Pipeline "${e.parent}" must reference an existing component with coordinates.`);
|
|
53
|
+
let r = n.y;
|
|
54
|
+
t.startPipeline(e.parent), e.components.forEach((n) => {
|
|
55
|
+
let i = `${e.parent}_${n.name}`, a = n.label ? (n.label.negX ? -1 : 1) * n.label.offsetX : void 0, o = n.label ? (n.label.negY ? -1 : 1) * n.label.offsetY : void 0, s = h(n.evolution, `Pipeline component "${n.name}" evolution`);
|
|
56
|
+
t.addNode(i, n.name, s, r, "pipeline-component", a, o), t.addPipelineComponent(e.parent, i);
|
|
57
|
+
});
|
|
58
|
+
}), e.links.forEach((e) => {
|
|
59
|
+
let n = !!e.arrow && (e.arrow.includes("-.->") || e.arrow.includes(".-.")), r = _(e.fromPort) ?? _(e.toPort), { flow: i, label: a } = v(e.arrow);
|
|
60
|
+
!r && i && (r = i);
|
|
61
|
+
let o = e.linkLabel, s = a ?? o;
|
|
62
|
+
t.addLink(e.from, e.to, n, s, r);
|
|
63
|
+
}), e.evolves.forEach((e) => {
|
|
64
|
+
let n = t.getNode(e.component);
|
|
65
|
+
if (n?.y !== void 0) {
|
|
66
|
+
let r = h(e.target, `Evolve target for "${e.component}"`);
|
|
67
|
+
t.addTrend(e.component, r, n.y);
|
|
68
|
+
}
|
|
69
|
+
}), e.annotations.length > 0) {
|
|
70
|
+
let n = e.annotations[0], r = g(n.x, n.y, "Annotations box");
|
|
71
|
+
t.setAnnotationsBox(r.x, r.y);
|
|
72
|
+
}
|
|
73
|
+
e.annotation.forEach((e) => {
|
|
74
|
+
let n = g(e.x, e.y, `Annotation ${e.number}`);
|
|
75
|
+
t.addAnnotation(e.number, [{
|
|
76
|
+
x: n.x,
|
|
77
|
+
y: n.y
|
|
78
|
+
}], e.text);
|
|
79
|
+
}), e.accelerators.forEach((e) => {
|
|
80
|
+
let n = g(e.x, e.y, `Accelerator "${e.name}"`);
|
|
81
|
+
t.addAccelerator(e.name, n.x, n.y);
|
|
82
|
+
}), e.deaccelerators.forEach((e) => {
|
|
83
|
+
let n = g(e.x, e.y, `Deaccelerator "${e.name}"`);
|
|
84
|
+
t.addDeaccelerator(e.name, n.x, n.y);
|
|
85
|
+
});
|
|
86
|
+
}, "populateDb"), b = {
|
|
87
|
+
parser: { yy: void 0 },
|
|
88
|
+
parse: /* @__PURE__ */ d(async (e) => {
|
|
89
|
+
let t = await m("wardley", e);
|
|
90
|
+
u.debug(t);
|
|
91
|
+
let n = b.parser?.yy;
|
|
92
|
+
if (!n || typeof n.addNode != "function") throw Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");
|
|
93
|
+
y(t, n);
|
|
94
|
+
}, "parse")
|
|
95
|
+
}, x = new class {
|
|
96
|
+
constructor() {
|
|
97
|
+
this.nodes = /* @__PURE__ */ new Map(), this.links = [], this.trends = /* @__PURE__ */ new Map(), this.pipelines = /* @__PURE__ */ new Map(), this.annotations = [], this.notes = [], this.accelerators = [], this.deaccelerators = [], this.axes = {};
|
|
98
|
+
}
|
|
99
|
+
static {
|
|
100
|
+
d(this, "WardleyBuilder");
|
|
101
|
+
}
|
|
102
|
+
addNode(e) {
|
|
103
|
+
let t = this.nodes.get(e.id) ?? {
|
|
104
|
+
id: e.id,
|
|
105
|
+
label: e.label
|
|
106
|
+
}, n = {
|
|
107
|
+
...t,
|
|
108
|
+
...e,
|
|
109
|
+
className: e.className ?? t.className,
|
|
110
|
+
labelOffsetX: e.labelOffsetX ?? t.labelOffsetX,
|
|
111
|
+
labelOffsetY: e.labelOffsetY ?? t.labelOffsetY
|
|
112
|
+
};
|
|
113
|
+
this.nodes.set(e.id, n);
|
|
114
|
+
}
|
|
115
|
+
addLink(e) {
|
|
116
|
+
this.links.push(e);
|
|
117
|
+
}
|
|
118
|
+
addTrend(e) {
|
|
119
|
+
this.trends.set(e.nodeId, e);
|
|
120
|
+
}
|
|
121
|
+
startPipeline(e) {
|
|
122
|
+
this.pipelines.set(e, {
|
|
123
|
+
nodeId: e,
|
|
124
|
+
componentIds: []
|
|
125
|
+
});
|
|
126
|
+
let t = this.nodes.get(e);
|
|
127
|
+
t && (t.isPipelineParent = !0);
|
|
128
|
+
}
|
|
129
|
+
addPipelineComponent(e, t) {
|
|
130
|
+
let n = this.pipelines.get(e);
|
|
131
|
+
n && n.componentIds.push(t);
|
|
132
|
+
let r = this.nodes.get(t);
|
|
133
|
+
r && (r.inPipeline = !0);
|
|
134
|
+
}
|
|
135
|
+
addAnnotation(e) {
|
|
136
|
+
this.annotations.push(e);
|
|
137
|
+
}
|
|
138
|
+
addNote(e) {
|
|
139
|
+
this.notes.push(e);
|
|
140
|
+
}
|
|
141
|
+
addAccelerator(e) {
|
|
142
|
+
this.accelerators.push(e);
|
|
143
|
+
}
|
|
144
|
+
addDeaccelerator(e) {
|
|
145
|
+
this.deaccelerators.push(e);
|
|
146
|
+
}
|
|
147
|
+
setAnnotationsBox(e, t) {
|
|
148
|
+
this.annotationsBox = {
|
|
149
|
+
x: e,
|
|
150
|
+
y: t
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
setAxes(e) {
|
|
154
|
+
this.axes = {
|
|
155
|
+
...this.axes,
|
|
156
|
+
...e
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
setSize(e, t) {
|
|
160
|
+
this.size = {
|
|
161
|
+
width: e,
|
|
162
|
+
height: t
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
getNode(e) {
|
|
166
|
+
return this.nodes.get(e);
|
|
167
|
+
}
|
|
168
|
+
build() {
|
|
169
|
+
let e = [];
|
|
170
|
+
for (let t of this.nodes.values()) {
|
|
171
|
+
if (typeof t.x != "number" || typeof t.y != "number") throw Error(`Node "${t.label}" is missing coordinates`);
|
|
172
|
+
e.push(t);
|
|
173
|
+
}
|
|
174
|
+
return {
|
|
175
|
+
nodes: e,
|
|
176
|
+
links: [...this.links],
|
|
177
|
+
trends: [...this.trends.values()],
|
|
178
|
+
pipelines: [...this.pipelines.values()],
|
|
179
|
+
annotations: [...this.annotations],
|
|
180
|
+
notes: [...this.notes],
|
|
181
|
+
accelerators: [...this.accelerators],
|
|
182
|
+
deaccelerators: [...this.deaccelerators],
|
|
183
|
+
annotationsBox: this.annotationsBox,
|
|
184
|
+
axes: { ...this.axes },
|
|
185
|
+
size: this.size
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
clear() {
|
|
189
|
+
this.nodes.clear(), this.links = [], this.trends.clear(), this.pipelines.clear(), this.annotations = [], this.notes = [], this.accelerators = [], this.deaccelerators = [], this.annotationsBox = void 0, this.axes = {}, this.size = void 0;
|
|
190
|
+
}
|
|
191
|
+
}();
|
|
192
|
+
function S(e) {
|
|
193
|
+
let t = s();
|
|
194
|
+
return n(e.trim(), t);
|
|
195
|
+
}
|
|
196
|
+
d(S, "textSanitizer");
|
|
197
|
+
function C() {
|
|
198
|
+
return s()["wardley-beta"];
|
|
199
|
+
}
|
|
200
|
+
d(C, "getConfig");
|
|
201
|
+
function w(e, t, n, r, i, a, o, s, c) {
|
|
202
|
+
x.addNode({
|
|
203
|
+
id: e,
|
|
204
|
+
label: S(t),
|
|
205
|
+
x: n,
|
|
206
|
+
y: r,
|
|
207
|
+
className: i,
|
|
208
|
+
labelOffsetX: a,
|
|
209
|
+
labelOffsetY: o,
|
|
210
|
+
inertia: s,
|
|
211
|
+
sourceStrategy: c
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
d(w, "addNode");
|
|
215
|
+
function T(e, t, n = !1, r, i) {
|
|
216
|
+
x.addLink({
|
|
217
|
+
source: e,
|
|
218
|
+
target: t,
|
|
219
|
+
dashed: n,
|
|
220
|
+
label: r,
|
|
221
|
+
flow: i
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
d(T, "addLink");
|
|
225
|
+
function E(e, t, n) {
|
|
226
|
+
x.addTrend({
|
|
227
|
+
nodeId: e,
|
|
228
|
+
targetX: t,
|
|
229
|
+
targetY: n
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
d(E, "addTrend");
|
|
233
|
+
function D(e, t, n) {
|
|
234
|
+
x.addAnnotation({
|
|
235
|
+
number: e,
|
|
236
|
+
coordinates: t,
|
|
237
|
+
text: n ? S(n) : void 0
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
d(D, "addAnnotation");
|
|
241
|
+
function O(e, t, n) {
|
|
242
|
+
x.addNote({
|
|
243
|
+
text: S(e),
|
|
244
|
+
x: t,
|
|
245
|
+
y: n
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
d(O, "addNote");
|
|
249
|
+
function k(e, t, n) {
|
|
250
|
+
x.addAccelerator({
|
|
251
|
+
name: S(e),
|
|
252
|
+
x: t,
|
|
253
|
+
y: n
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
d(k, "addAccelerator");
|
|
257
|
+
function A(e, t, n) {
|
|
258
|
+
x.addDeaccelerator({
|
|
259
|
+
name: S(e),
|
|
260
|
+
x: t,
|
|
261
|
+
y: n
|
|
262
|
+
});
|
|
263
|
+
}
|
|
264
|
+
d(A, "addDeaccelerator");
|
|
265
|
+
function j(e, t) {
|
|
266
|
+
x.setAnnotationsBox(e, t);
|
|
267
|
+
}
|
|
268
|
+
d(j, "setAnnotationsBox");
|
|
269
|
+
function M(e, t) {
|
|
270
|
+
x.setSize(e, t);
|
|
271
|
+
}
|
|
272
|
+
d(M, "setSize");
|
|
273
|
+
function N(e) {
|
|
274
|
+
x.startPipeline(e);
|
|
275
|
+
}
|
|
276
|
+
d(N, "startPipeline");
|
|
277
|
+
function P(e, t) {
|
|
278
|
+
x.addPipelineComponent(e, t);
|
|
279
|
+
}
|
|
280
|
+
d(P, "addPipelineComponent");
|
|
281
|
+
function F(e) {
|
|
282
|
+
let t = {};
|
|
283
|
+
e.xLabel && (t.xLabel = S(e.xLabel)), e.yLabel && (t.yLabel = S(e.yLabel)), e.stages && (t.stages = e.stages.map((e) => S(e))), e.stageBoundaries && (t.stageBoundaries = e.stageBoundaries), x.setAxes(t);
|
|
284
|
+
}
|
|
285
|
+
d(F, "updateAxes");
|
|
286
|
+
function I(e) {
|
|
287
|
+
return x.getNode(e);
|
|
288
|
+
}
|
|
289
|
+
d(I, "getNode");
|
|
290
|
+
function L() {
|
|
291
|
+
return x.build();
|
|
292
|
+
}
|
|
293
|
+
d(L, "getWardleyData");
|
|
294
|
+
function R() {
|
|
295
|
+
x.clear(), o();
|
|
296
|
+
}
|
|
297
|
+
d(R, "clear");
|
|
298
|
+
var z = {
|
|
299
|
+
getConfig: C,
|
|
300
|
+
addNode: w,
|
|
301
|
+
addLink: T,
|
|
302
|
+
addTrend: E,
|
|
303
|
+
addAnnotation: D,
|
|
304
|
+
addNote: O,
|
|
305
|
+
addAccelerator: k,
|
|
306
|
+
addDeaccelerator: A,
|
|
307
|
+
setAnnotationsBox: j,
|
|
308
|
+
setSize: M,
|
|
309
|
+
startPipeline: N,
|
|
310
|
+
addPipelineComponent: P,
|
|
311
|
+
updateAxes: F,
|
|
312
|
+
getNode: I,
|
|
313
|
+
getWardleyData: L,
|
|
314
|
+
clear: R,
|
|
315
|
+
setAccTitle: r,
|
|
316
|
+
getAccTitle: l,
|
|
317
|
+
setDiagramTitle: i,
|
|
318
|
+
getDiagramTitle: t,
|
|
319
|
+
getAccDescription: a,
|
|
320
|
+
setAccDescription: e
|
|
321
|
+
}, B = [
|
|
322
|
+
"Genesis",
|
|
323
|
+
"Custom Built",
|
|
324
|
+
"Product",
|
|
325
|
+
"Commodity"
|
|
326
|
+
], V = /* @__PURE__ */ d(() => {
|
|
327
|
+
let { themeVariables: e } = s();
|
|
328
|
+
return {
|
|
329
|
+
backgroundColor: e.wardley?.backgroundColor ?? e.background ?? "#fff",
|
|
330
|
+
axisColor: e.wardley?.axisColor ?? "#000",
|
|
331
|
+
axisTextColor: e.wardley?.axisTextColor ?? e.primaryTextColor ?? "#222",
|
|
332
|
+
gridColor: e.wardley?.gridColor ?? "rgba(100, 100, 100, 0.2)",
|
|
333
|
+
componentFill: e.wardley?.componentFill ?? "#fff",
|
|
334
|
+
componentStroke: e.wardley?.componentStroke ?? "#000",
|
|
335
|
+
componentLabelColor: e.wardley?.componentLabelColor ?? e.primaryTextColor ?? "#222",
|
|
336
|
+
linkStroke: e.wardley?.linkStroke ?? "#000",
|
|
337
|
+
evolutionStroke: e.wardley?.evolutionStroke ?? "#dc3545",
|
|
338
|
+
annotationStroke: e.wardley?.annotationStroke ?? "#000",
|
|
339
|
+
annotationTextColor: e.wardley?.annotationTextColor ?? e.primaryTextColor ?? "#222",
|
|
340
|
+
annotationFill: e.wardley?.annotationFill ?? e.background ?? "#fff"
|
|
341
|
+
};
|
|
342
|
+
}, "getTheme"), H = /* @__PURE__ */ d(() => {
|
|
343
|
+
let e = s()["wardley-beta"];
|
|
344
|
+
return {
|
|
345
|
+
width: e?.width ?? 900,
|
|
346
|
+
height: e?.height ?? 600,
|
|
347
|
+
padding: e?.padding ?? 48,
|
|
348
|
+
nodeRadius: e?.nodeRadius ?? 6,
|
|
349
|
+
nodeLabelOffset: e?.nodeLabelOffset ?? 8,
|
|
350
|
+
axisFontSize: e?.axisFontSize ?? 12,
|
|
351
|
+
labelFontSize: e?.labelFontSize ?? 10,
|
|
352
|
+
showGrid: e?.showGrid ?? !1,
|
|
353
|
+
useMaxWidth: e?.useMaxWidth ?? !0
|
|
354
|
+
};
|
|
355
|
+
}, "getConfigValues"), U = {
|
|
356
|
+
parser: b,
|
|
357
|
+
db: z,
|
|
358
|
+
renderer: { draw: /* @__PURE__ */ d((e, t, n, r) => {
|
|
359
|
+
u.debug("Rendering Wardley map\n" + e);
|
|
360
|
+
let i = H(), a = V(), o = i.nodeRadius * 1.6, s = r.db, l = s.getWardleyData(), p = s.getDiagramTitle(), m = l.size?.width ?? i.width, h = l.size?.height ?? i.height, g = f(t);
|
|
361
|
+
g.selectAll("*").remove(), c(g, h, m, i.useMaxWidth), g.attr("viewBox", `0 0 ${m} ${h}`);
|
|
362
|
+
let _ = g.append("g").attr("class", "wardley-map"), v = g.append("defs");
|
|
363
|
+
v.append("marker").attr("id", `arrow-${t}`).attr("viewBox", "0 0 10 10").attr("refX", 9).attr("refY", 5).attr("markerWidth", 6).attr("markerHeight", 6).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("fill", a.evolutionStroke).attr("stroke", "none"), v.append("marker").attr("id", `link-arrow-end-${t}`).attr("viewBox", "0 0 10 10").attr("refX", 9).attr("refY", 5).attr("markerWidth", 5).attr("markerHeight", 5).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("fill", a.linkStroke).attr("stroke", "none"), v.append("marker").attr("id", `link-arrow-start-${t}`).attr("viewBox", "0 0 10 10").attr("refX", 1).attr("refY", 5).attr("markerWidth", 5).attr("markerHeight", 5).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 z").attr("fill", a.linkStroke).attr("stroke", "none"), _.append("rect").attr("class", "wardley-background").attr("width", m).attr("height", h).attr("fill", a.backgroundColor);
|
|
364
|
+
let y = m - i.padding * 2, b = h - i.padding * 2;
|
|
365
|
+
p && _.append("text").attr("class", "wardley-title").attr("x", m / 2).attr("y", i.padding / 2).attr("fill", a.axisTextColor).attr("font-size", i.axisFontSize * 1.05).attr("font-weight", "bold").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(p);
|
|
366
|
+
let x = /* @__PURE__ */ d((e) => i.padding + e / 100 * y, "projectX"), S = /* @__PURE__ */ d((e) => h - i.padding - e / 100 * b, "projectY"), C = _.append("g").attr("class", "wardley-axes");
|
|
367
|
+
C.append("line").attr("x1", i.padding).attr("x2", m - i.padding).attr("y1", h - i.padding).attr("y2", h - i.padding).attr("stroke", a.axisColor).attr("stroke-width", 1), C.append("line").attr("x1", i.padding).attr("x2", i.padding).attr("y1", i.padding).attr("y2", h - i.padding).attr("stroke", a.axisColor).attr("stroke-width", 1);
|
|
368
|
+
let w = l.axes.xLabel ?? "Evolution", T = l.axes.yLabel ?? "Visibility";
|
|
369
|
+
C.append("text").attr("class", "wardley-axis-label wardley-axis-label-x").attr("x", i.padding + y / 2).attr("y", h - i.padding / 4).attr("fill", a.axisTextColor).attr("font-size", i.axisFontSize).attr("font-weight", "bold").attr("text-anchor", "middle").text(w), C.append("text").attr("class", "wardley-axis-label wardley-axis-label-y").attr("x", i.padding / 3).attr("y", i.padding + b / 2).attr("fill", a.axisTextColor).attr("font-size", i.axisFontSize).attr("font-weight", "bold").attr("text-anchor", "middle").attr("transform", `rotate(-90 ${i.padding / 3} ${i.padding + b / 2})`).text(T);
|
|
370
|
+
let E = l.axes.stages && l.axes.stages.length > 0 ? l.axes.stages : B;
|
|
371
|
+
if (E.length > 0) {
|
|
372
|
+
let e = _.append("g").attr("class", "wardley-stages"), t = l.axes.stageBoundaries, n = [];
|
|
373
|
+
if (t && t.length === E.length) {
|
|
374
|
+
let e = 0;
|
|
375
|
+
t.forEach((t) => {
|
|
376
|
+
n.push({
|
|
377
|
+
start: e,
|
|
378
|
+
end: t
|
|
379
|
+
}), e = t;
|
|
380
|
+
});
|
|
381
|
+
} else {
|
|
382
|
+
let e = 1 / E.length;
|
|
383
|
+
E.forEach((t, r) => {
|
|
384
|
+
n.push({
|
|
385
|
+
start: r * e,
|
|
386
|
+
end: (r + 1) * e
|
|
387
|
+
});
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
E.forEach((t, r) => {
|
|
391
|
+
let o = n[r], s = i.padding + o.start * y, c = (s + (i.padding + o.end * y)) / 2;
|
|
392
|
+
r > 0 && e.append("line").attr("x1", s).attr("x2", s).attr("y1", i.padding).attr("y2", h - i.padding).attr("stroke", "#000").attr("stroke-width", 1).attr("stroke-dasharray", "5 5").attr("opacity", .8), e.append("text").attr("class", "wardley-stage-label").attr("x", c).attr("y", h - i.padding / 1.5).attr("fill", a.axisTextColor).attr("font-size", i.axisFontSize - 2).attr("text-anchor", "middle").text(t);
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
if (i.showGrid) {
|
|
396
|
+
let e = _.append("g").attr("class", "wardley-grid");
|
|
397
|
+
for (let t = 1; t < 4; t++) {
|
|
398
|
+
let n = t / 4, r = i.padding + y * n;
|
|
399
|
+
e.append("line").attr("x1", r).attr("x2", r).attr("y1", i.padding).attr("y2", h - i.padding).attr("stroke", a.gridColor).attr("stroke-dasharray", "2 6"), e.append("line").attr("x1", i.padding).attr("x2", m - i.padding).attr("y1", h - i.padding - b * n).attr("y2", h - i.padding - b * n).attr("stroke", a.gridColor).attr("stroke-dasharray", "2 6");
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
let D = /* @__PURE__ */ new Map();
|
|
403
|
+
if (l.nodes.forEach((e) => {
|
|
404
|
+
D.set(e.id, {
|
|
405
|
+
x: x(e.x),
|
|
406
|
+
y: S(e.y),
|
|
407
|
+
node: e
|
|
408
|
+
});
|
|
409
|
+
}), l.pipelines.length > 0) {
|
|
410
|
+
let e = _.append("g").attr("class", "wardley-pipelines"), t = _.append("g").attr("class", "wardley-pipeline-links");
|
|
411
|
+
l.pipelines.forEach((n) => {
|
|
412
|
+
if (n.componentIds.length === 0) return;
|
|
413
|
+
let r = n.componentIds.map((e) => ({
|
|
414
|
+
id: e,
|
|
415
|
+
pos: D.get(e),
|
|
416
|
+
node: l.nodes.find((t) => t.id === e)
|
|
417
|
+
})).filter((e) => e.pos && e.node).sort((e, t) => e.node.x - t.node.x);
|
|
418
|
+
for (let e = 0; e < r.length - 1; e++) {
|
|
419
|
+
let n = r[e], i = r[e + 1];
|
|
420
|
+
t.append("line").attr("class", "wardley-pipeline-evolution-link").attr("x1", n.pos.x).attr("y1", n.pos.y).attr("x2", i.pos.x).attr("y2", i.pos.y).attr("stroke", a.linkStroke).attr("stroke-width", 1).attr("stroke-dasharray", "4 4");
|
|
421
|
+
}
|
|
422
|
+
let s = Infinity, c = -Infinity, u = 0;
|
|
423
|
+
if (n.componentIds.forEach((e) => {
|
|
424
|
+
let t = D.get(e);
|
|
425
|
+
t && (s = Math.min(s, t.x), c = Math.max(c, t.x), u = t.y);
|
|
426
|
+
}), s !== Infinity && c !== -Infinity) {
|
|
427
|
+
let t = i.nodeRadius * 4, r = u - t / 2, l = D.get(n.nodeId);
|
|
428
|
+
l && (l.x = (s + c) / 2, l.y = r - o / 6), e.append("rect").attr("class", "wardley-pipeline-box").attr("x", s - 15).attr("y", r).attr("width", c - s + 30).attr("height", t).attr("fill", "none").attr("stroke", a.axisColor).attr("stroke-width", 1.5).attr("rx", 4).attr("ry", 4);
|
|
429
|
+
}
|
|
430
|
+
});
|
|
431
|
+
}
|
|
432
|
+
let O = _.append("g").attr("class", "wardley-links"), k = /* @__PURE__ */ new Map();
|
|
433
|
+
l.pipelines.forEach((e) => {
|
|
434
|
+
k.set(e.nodeId, new Set(e.componentIds));
|
|
435
|
+
});
|
|
436
|
+
let A = l.links.filter((e) => !(!D.has(e.source) || !D.has(e.target) || k.get(e.target)?.has(e.source)));
|
|
437
|
+
O.selectAll("line").data(A).enter().append("line").attr("class", (e) => `wardley-link${e.dashed ? " wardley-link--dashed" : ""}`).attr("x1", (e) => {
|
|
438
|
+
let t = D.get(e.source), n = D.get(e.target), r = l.nodes.find((t) => t.id === e.source).isPipelineParent ? o / Math.sqrt(2) : i.nodeRadius, a = n.x - t.x, s = n.y - t.y, c = Math.sqrt(a * a + s * s);
|
|
439
|
+
return t.x + a / c * r;
|
|
440
|
+
}).attr("y1", (e) => {
|
|
441
|
+
let t = D.get(e.source), n = D.get(e.target), r = l.nodes.find((t) => t.id === e.source).isPipelineParent ? o / Math.sqrt(2) : i.nodeRadius, a = n.x - t.x, s = n.y - t.y, c = Math.sqrt(a * a + s * s);
|
|
442
|
+
return t.y + s / c * r;
|
|
443
|
+
}).attr("x2", (e) => {
|
|
444
|
+
let t = D.get(e.source), n = D.get(e.target), r = l.nodes.find((t) => t.id === e.target).isPipelineParent ? o / Math.sqrt(2) : i.nodeRadius, a = t.x - n.x, s = t.y - n.y, c = Math.sqrt(a * a + s * s);
|
|
445
|
+
return n.x + a / c * r;
|
|
446
|
+
}).attr("y2", (e) => {
|
|
447
|
+
let t = D.get(e.source), n = D.get(e.target), r = l.nodes.find((t) => t.id === e.target).isPipelineParent ? o / Math.sqrt(2) : i.nodeRadius, a = t.x - n.x, s = t.y - n.y, c = Math.sqrt(a * a + s * s);
|
|
448
|
+
return n.y + s / c * r;
|
|
449
|
+
}).attr("stroke", a.linkStroke).attr("stroke-width", 1).attr("stroke-dasharray", (e) => e.dashed ? "6 6" : null).attr("marker-end", (e) => e.flow === "forward" || e.flow === "bidirectional" ? `url(#link-arrow-end-${t})` : null).attr("marker-start", (e) => e.flow === "backward" || e.flow === "bidirectional" ? `url(#link-arrow-start-${t})` : null), O.selectAll("text").data(A.filter((e) => e.label)).enter().append("text").attr("class", "wardley-link-label").attr("x", (e) => {
|
|
450
|
+
let t = D.get(e.source), n = D.get(e.target), r = (t.x + n.x) / 2, i = n.y - t.y, a = n.x - t.x;
|
|
451
|
+
return r + i / Math.sqrt(a * a + i * i) * 8;
|
|
452
|
+
}).attr("y", (e) => {
|
|
453
|
+
let t = D.get(e.source), n = D.get(e.target), r = (t.y + n.y) / 2, i = n.x - t.x, a = n.y - t.y, o = Math.sqrt(i * i + a * a);
|
|
454
|
+
return r + -i / o * 8;
|
|
455
|
+
}).attr("fill", a.axisTextColor).attr("font-size", i.labelFontSize).attr("text-anchor", "middle").attr("dominant-baseline", "middle").attr("transform", (e) => {
|
|
456
|
+
let t = D.get(e.source), n = D.get(e.target), r = (t.x + n.x) / 2, i = (t.y + n.y) / 2, a = n.x - t.x, o = n.y - t.y, s = Math.sqrt(a * a + o * o), c = o / s, l = -a / s, u = r + c * 8, d = i + l * 8, f = Math.atan2(o, a) * 180 / Math.PI;
|
|
457
|
+
return (f > 90 || f < -90) && (f += 180), `rotate(${f} ${u} ${d})`;
|
|
458
|
+
}).text((e) => e.label);
|
|
459
|
+
let j = _.append("g").attr("class", "wardley-trends"), M = l.trends.map((e) => {
|
|
460
|
+
let t = D.get(e.nodeId);
|
|
461
|
+
if (!t) return null;
|
|
462
|
+
let n = x(e.targetX), r = S(e.targetY), a = n - t.x, o = r - t.y, s = Math.sqrt(a * a + o * o), c = i.nodeRadius + 2;
|
|
463
|
+
return {
|
|
464
|
+
origin: t,
|
|
465
|
+
targetX: n,
|
|
466
|
+
targetY: r,
|
|
467
|
+
adjustedX2: s > c ? n - a / s * c : n,
|
|
468
|
+
adjustedY2: s > c ? r - o / s * c : r
|
|
469
|
+
};
|
|
470
|
+
}).filter((e) => e !== null);
|
|
471
|
+
j.selectAll("line").data(M).enter().append("line").attr("class", "wardley-trend").attr("x1", (e) => e.origin.x).attr("y1", (e) => e.origin.y).attr("x2", (e) => e.adjustedX2).attr("y2", (e) => e.adjustedY2).attr("stroke", a.evolutionStroke).attr("stroke-width", 1).attr("stroke-dasharray", "4 4").attr("marker-end", `url(#arrow-${t})`);
|
|
472
|
+
let N = _.append("g").attr("class", "wardley-nodes").selectAll("g").data(l.nodes).enter().append("g").attr("class", (e) => ["wardley-node", e.className ? `wardley-node--${e.className}` : ""].filter(Boolean).join(" "));
|
|
473
|
+
N.filter((e) => e.sourceStrategy === "outsource").append("circle").attr("class", "wardley-outsource-overlay").attr("cx", (e) => D.get(e.id).x).attr("cy", (e) => D.get(e.id).y).attr("r", i.nodeRadius * 2).attr("fill", "#666").attr("stroke", a.componentStroke).attr("stroke-width", 1), N.filter((e) => e.sourceStrategy === "buy").append("circle").attr("class", "wardley-buy-overlay").attr("cx", (e) => D.get(e.id).x).attr("cy", (e) => D.get(e.id).y).attr("r", i.nodeRadius * 2).attr("fill", "#ccc").attr("stroke", a.componentStroke).attr("stroke-width", 1), N.filter((e) => e.sourceStrategy === "build").append("circle").attr("class", "wardley-build-overlay").attr("cx", (e) => D.get(e.id).x).attr("cy", (e) => D.get(e.id).y).attr("r", i.nodeRadius * 2).attr("fill", "#eee").attr("stroke", "#000").attr("stroke-width", 1);
|
|
474
|
+
let P = N.filter((e) => e.sourceStrategy === "market");
|
|
475
|
+
P.append("circle").attr("class", "wardley-market-overlay").attr("cx", (e) => D.get(e.id).x).attr("cy", (e) => D.get(e.id).y).attr("r", i.nodeRadius * 2).attr("fill", "white").attr("stroke", a.componentStroke).attr("stroke-width", 1), N.filter((e) => !e.isPipelineParent && e.sourceStrategy !== "market" && e.className !== "anchor").append("circle").attr("cx", (e) => D.get(e.id).x).attr("cy", (e) => D.get(e.id).y).attr("r", i.nodeRadius).attr("fill", a.componentFill).attr("stroke", a.componentStroke).attr("stroke-width", 1);
|
|
476
|
+
let F = i.nodeRadius * .7, I = i.nodeRadius * 1.2;
|
|
477
|
+
if (P.append("line").attr("class", "wardley-market-line").attr("x1", (e) => D.get(e.id).x).attr("y1", (e) => D.get(e.id).y - I).attr("x2", (e) => D.get(e.id).x - I * Math.cos(Math.PI / 6)).attr("y2", (e) => D.get(e.id).y + I * Math.sin(Math.PI / 6)).attr("stroke", a.componentStroke).attr("stroke-width", 1), P.append("line").attr("class", "wardley-market-line").attr("x1", (e) => D.get(e.id).x - I * Math.cos(Math.PI / 6)).attr("y1", (e) => D.get(e.id).y + I * Math.sin(Math.PI / 6)).attr("x2", (e) => D.get(e.id).x + I * Math.cos(Math.PI / 6)).attr("y2", (e) => D.get(e.id).y + I * Math.sin(Math.PI / 6)).attr("stroke", a.componentStroke).attr("stroke-width", 1), P.append("line").attr("class", "wardley-market-line").attr("x1", (e) => D.get(e.id).x + I * Math.cos(Math.PI / 6)).attr("y1", (e) => D.get(e.id).y + I * Math.sin(Math.PI / 6)).attr("x2", (e) => D.get(e.id).x).attr("y2", (e) => D.get(e.id).y - I).attr("stroke", a.componentStroke).attr("stroke-width", 1), P.append("circle").attr("class", "wardley-market-dot").attr("cx", (e) => D.get(e.id).x).attr("cy", (e) => D.get(e.id).y - I).attr("r", F).attr("fill", "white").attr("stroke", a.componentStroke).attr("stroke-width", 2), P.append("circle").attr("class", "wardley-market-dot").attr("cx", (e) => D.get(e.id).x - I * Math.cos(Math.PI / 6)).attr("cy", (e) => D.get(e.id).y + I * Math.sin(Math.PI / 6)).attr("r", F).attr("fill", "white").attr("stroke", a.componentStroke).attr("stroke-width", 2), P.append("circle").attr("class", "wardley-market-dot").attr("cx", (e) => D.get(e.id).x + I * Math.cos(Math.PI / 6)).attr("cy", (e) => D.get(e.id).y + I * Math.sin(Math.PI / 6)).attr("r", F).attr("fill", "white").attr("stroke", a.componentStroke).attr("stroke-width", 2), N.filter((e) => e.isPipelineParent === !0).append("rect").attr("x", (e) => D.get(e.id).x - o / 2).attr("y", (e) => D.get(e.id).y - o / 2).attr("width", o).attr("height", o).attr("fill", a.componentFill).attr("stroke", a.componentStroke).attr("stroke-width", 1), N.filter((e) => e.inertia === !0).append("line").attr("class", "wardley-inertia").attr("x1", (e) => {
|
|
478
|
+
let t = D.get(e.id), n = e.isPipelineParent ? o / 2 + 15 : i.nodeRadius + 15;
|
|
479
|
+
return e.sourceStrategy && (n += i.nodeRadius + 10), t.x + n;
|
|
480
|
+
}).attr("y1", (e) => {
|
|
481
|
+
let t = D.get(e.id), n = e.isPipelineParent ? o : i.nodeRadius * 2;
|
|
482
|
+
return t.y - n / 2;
|
|
483
|
+
}).attr("x2", (e) => {
|
|
484
|
+
let t = D.get(e.id), n = e.isPipelineParent ? o / 2 + 15 : i.nodeRadius + 15;
|
|
485
|
+
return e.sourceStrategy && (n += i.nodeRadius + 10), t.x + n;
|
|
486
|
+
}).attr("y2", (e) => {
|
|
487
|
+
let t = D.get(e.id), n = e.isPipelineParent ? o : i.nodeRadius * 2;
|
|
488
|
+
return t.y + n / 2;
|
|
489
|
+
}).attr("stroke", a.componentStroke).attr("stroke-width", 6), N.append("text").attr("x", (e) => {
|
|
490
|
+
let t = D.get(e.id);
|
|
491
|
+
if (e.className === "anchor") return e.labelOffsetX === void 0 ? t.x : t.x + e.labelOffsetX;
|
|
492
|
+
let n = i.nodeLabelOffset;
|
|
493
|
+
e.sourceStrategy && e.labelOffsetX === void 0 && (n += 10);
|
|
494
|
+
let r = e.labelOffsetX ?? n;
|
|
495
|
+
return t.x + r;
|
|
496
|
+
}).attr("y", (e) => {
|
|
497
|
+
let t = D.get(e.id);
|
|
498
|
+
if (e.className === "anchor") return e.labelOffsetY === void 0 ? t.y - 3 : t.y + e.labelOffsetY;
|
|
499
|
+
let n = -i.nodeLabelOffset;
|
|
500
|
+
e.sourceStrategy && e.labelOffsetY === void 0 && (n -= 10);
|
|
501
|
+
let r = e.labelOffsetY ?? n;
|
|
502
|
+
return t.y + r;
|
|
503
|
+
}).attr("class", "wardley-node-label").attr("fill", (e) => e.className === "evolved" ? a.evolutionStroke : e.className === "anchor" ? "#000" : a.componentLabelColor).attr("font-size", i.labelFontSize).attr("font-weight", (e) => e.className === "anchor" ? "bold" : "normal").attr("text-anchor", (e) => e.className === "anchor" ? "middle" : "start").attr("dominant-baseline", (e) => e.className === "anchor" ? "middle" : "auto").text((e) => e.label), l.annotations.length > 0) {
|
|
504
|
+
let e = _.append("g").attr("class", "wardley-annotations");
|
|
505
|
+
if (l.annotations.forEach((t) => {
|
|
506
|
+
let n = t.coordinates.map((e) => ({
|
|
507
|
+
x: x(e.x),
|
|
508
|
+
y: S(e.y)
|
|
509
|
+
}));
|
|
510
|
+
if (n.length > 1) for (let t = 0; t < n.length - 1; t++) e.append("line").attr("class", "wardley-annotation-line").attr("x1", n[t].x).attr("y1", n[t].y).attr("x2", n[t + 1].x).attr("y2", n[t + 1].y).attr("stroke", a.axisColor).attr("stroke-width", 1.5).attr("stroke-dasharray", "4 4");
|
|
511
|
+
n.forEach((n) => {
|
|
512
|
+
let r = e.append("g").attr("class", "wardley-annotation");
|
|
513
|
+
r.append("circle").attr("cx", n.x).attr("cy", n.y).attr("r", 10).attr("fill", "white").attr("stroke", a.axisColor).attr("stroke-width", 1.5), r.append("text").attr("x", n.x).attr("y", n.y).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-size", 10).attr("fill", a.axisTextColor).attr("font-weight", "bold").text(t.number);
|
|
514
|
+
});
|
|
515
|
+
}), l.annotationsBox) {
|
|
516
|
+
let t = x(l.annotationsBox.x), n = S(l.annotationsBox.y), r = e.append("g").attr("class", "wardley-annotations-box"), o = [...l.annotations].filter((e) => e.text).sort((e, t) => e.number - t.number), s = [];
|
|
517
|
+
if (o.forEach((e, i) => {
|
|
518
|
+
let o = r.append("text").attr("x", t + 10).attr("y", n + 10 + (i + 1) * 16).attr("font-size", 11).attr("fill", a.axisTextColor).attr("text-anchor", "start").attr("dominant-baseline", "middle").text(`${e.number}. ${e.text}`);
|
|
519
|
+
s.push(o);
|
|
520
|
+
}), s.length > 0) {
|
|
521
|
+
let e = 0, c = 0;
|
|
522
|
+
s.forEach((t) => {
|
|
523
|
+
let n = t.node(), r = n.getComputedTextLength();
|
|
524
|
+
e = Math.max(e, r);
|
|
525
|
+
let i = n.getBBox();
|
|
526
|
+
c = Math.max(c, i.height);
|
|
527
|
+
});
|
|
528
|
+
let l = e + 20 + 105, u = o.length * 16 + 20 + c / 2, d = i.padding, f = m - i.padding - l, p = i.padding, g = h - i.padding - u;
|
|
529
|
+
t = Math.max(d, Math.min(t, f)), n = Math.max(p, Math.min(n, g)), s.forEach((e, r) => {
|
|
530
|
+
e.attr("x", t + 10).attr("y", n + 10 + (r + 1) * 16);
|
|
531
|
+
}), r.insert("rect", "text").attr("x", t).attr("y", n).attr("width", l).attr("height", u).attr("fill", "white").attr("stroke", a.axisColor).attr("stroke-width", 1.5).attr("rx", 4).attr("ry", 4);
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
if (l.notes.length > 0) {
|
|
536
|
+
let e = _.append("g").attr("class", "wardley-notes");
|
|
537
|
+
l.notes.forEach((t) => {
|
|
538
|
+
let n = x(t.x), r = S(t.y);
|
|
539
|
+
e.append("text").attr("x", n).attr("y", r).attr("text-anchor", "start").attr("font-size", 11).attr("fill", a.axisTextColor).attr("font-weight", "bold").text(t.text);
|
|
540
|
+
});
|
|
541
|
+
}
|
|
542
|
+
if (l.accelerators.length > 0) {
|
|
543
|
+
let e = _.append("g").attr("class", "wardley-accelerators");
|
|
544
|
+
l.accelerators.forEach((t) => {
|
|
545
|
+
let n = x(t.x), r = S(t.y), i = `
|
|
546
|
+
M ${n} ${r - 30 / 2}
|
|
547
|
+
L ${n + 60 - 20} ${r - 30 / 2}
|
|
548
|
+
L ${n + 60 - 20} ${r - 30 / 2 - 8}
|
|
549
|
+
L ${n + 60} ${r}
|
|
550
|
+
L ${n + 60 - 20} ${r + 30 / 2 + 8}
|
|
551
|
+
L ${n + 60 - 20} ${r + 30 / 2}
|
|
552
|
+
L ${n} ${r + 30 / 2}
|
|
553
|
+
Z
|
|
554
|
+
`;
|
|
555
|
+
e.append("path").attr("d", i).attr("fill", "white").attr("stroke", a.componentStroke).attr("stroke-width", 1), e.append("text").attr("x", n + 60 / 2).attr("y", r + 30 / 2 + 15).attr("text-anchor", "middle").attr("font-size", 10).attr("fill", a.axisTextColor).attr("font-weight", "bold").text(t.name);
|
|
556
|
+
});
|
|
557
|
+
}
|
|
558
|
+
if (l.deaccelerators.length > 0) {
|
|
559
|
+
let e = _.append("g").attr("class", "wardley-deaccelerators");
|
|
560
|
+
l.deaccelerators.forEach((t) => {
|
|
561
|
+
let n = x(t.x), r = S(t.y), i = `
|
|
562
|
+
M ${n + 60} ${r - 30 / 2}
|
|
563
|
+
L ${n + 20} ${r - 30 / 2}
|
|
564
|
+
L ${n + 20} ${r - 30 / 2 - 8}
|
|
565
|
+
L ${n} ${r}
|
|
566
|
+
L ${n + 20} ${r + 30 / 2 + 8}
|
|
567
|
+
L ${n + 20} ${r + 30 / 2}
|
|
568
|
+
L ${n + 60} ${r + 30 / 2}
|
|
569
|
+
Z
|
|
570
|
+
`;
|
|
571
|
+
e.append("path").attr("d", i).attr("fill", "white").attr("stroke", a.componentStroke).attr("stroke-width", 1), e.append("text").attr("x", n + 60 / 2).attr("y", r + 30 / 2 + 15).attr("text-anchor", "middle").attr("font-size", 10).attr("fill", a.axisTextColor).attr("font-weight", "bold").text(t.name);
|
|
572
|
+
});
|
|
573
|
+
}
|
|
574
|
+
}, "draw") },
|
|
575
|
+
styles: /* @__PURE__ */ d(() => "", "styles")
|
|
576
|
+
};
|
|
577
|
+
//#endregion
|
|
578
|
+
export { U as diagram };
|