@sme.up/ketchup2 2.2.0 → 2.4.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-Klgb378K.js → arc-D80gVCcI.js} +2 -2
- package/dist/{arc-CqG9Hxdf.cjs → arc-MUYNnJxV.cjs} +1 -1
- package/dist/architecture-7EHR7CIX-Bnyu5zgG.js +3 -0
- package/dist/architecture-7EHR7CIX-CKF7-4kH.cjs +1 -0
- package/dist/architectureDiagram-3BPJPVTR-BrmPrClJ.cjs +36 -0
- package/dist/{architectureDiagram-Q4EWVU46-CnzjcVBn.js → architectureDiagram-3BPJPVTR-EFK4DMha.js} +167 -166
- package/dist/assets/svg/barcode.svg +1 -0
- package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
- package/dist/basic-components/barcode/barcode-types.d.ts +16 -0
- package/dist/basic-components/barcode/barcode-types.d.ts.map +1 -0
- package/dist/basic-components/barcode/barcode.d.ts +3 -0
- package/dist/basic-components/barcode/barcode.d.ts.map +1 -0
- package/dist/basic-components/cell/cell-types.d.ts +7 -0
- package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
- package/dist/basic-components/cell/cell-utils.d.ts +3 -2
- 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/cell/tests/utils.d.ts.map +1 -1
- package/dist/basic-components/icon/icon.d.ts.map +1 -1
- package/dist/basic-components/input-number/input-number.d.ts.map +1 -1
- package/dist/basic-components/qr-code/corners/qr-code-corner-utils.d.ts +4 -0
- package/dist/basic-components/qr-code/corners/qr-code-corner-utils.d.ts.map +1 -0
- package/dist/basic-components/qr-code/corners/qr-code-corner.d.ts +13 -0
- package/dist/basic-components/qr-code/corners/qr-code-corner.d.ts.map +1 -0
- package/dist/basic-components/qr-code/qr-code-encoding.d.ts +9 -0
- package/dist/basic-components/qr-code/qr-code-encoding.d.ts.map +1 -0
- package/dist/basic-components/qr-code/qr-code-error-correction.d.ts +10 -0
- package/dist/basic-components/qr-code/qr-code-error-correction.d.ts.map +1 -0
- package/dist/basic-components/qr-code/qr-code-helpers.d.ts +15 -0
- package/dist/basic-components/qr-code/qr-code-helpers.d.ts.map +1 -0
- package/dist/basic-components/qr-code/qr-code-mask.d.ts +9 -0
- package/dist/basic-components/qr-code/qr-code-mask.d.ts.map +1 -0
- package/dist/basic-components/qr-code/qr-code-matrix.d.ts +3 -0
- package/dist/basic-components/qr-code/qr-code-matrix.d.ts.map +1 -0
- package/dist/basic-components/qr-code/qr-code-renderer.d.ts +8 -0
- package/dist/basic-components/qr-code/qr-code-renderer.d.ts.map +1 -0
- package/dist/basic-components/qr-code/qr-code-types.d.ts +122 -0
- package/dist/basic-components/qr-code/qr-code-types.d.ts.map +1 -0
- package/dist/basic-components/qr-code/qr-code.d.ts +8 -0
- package/dist/basic-components/qr-code/qr-code.d.ts.map +1 -0
- package/dist/basic-components/text-editor/text-editor-utils.d.ts +11 -0
- package/dist/basic-components/text-editor/text-editor-utils.d.ts.map +1 -1
- package/dist/basic-components/text-editor/text-editor.d.ts.map +1 -1
- package/dist/basic-components/textarea/textarea-types.d.ts +2 -2
- package/dist/basic-components/textarea/textarea-types.d.ts.map +1 -1
- package/dist/basic-components/textarea/textarea.d.ts.map +1 -1
- package/dist/basic-components/textfield/textfield-types.d.ts +5 -0
- package/dist/basic-components/textfield/textfield-types.d.ts.map +1 -1
- package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
- package/dist/basic-components/tree/tree.d.ts.map +1 -1
- package/dist/basic-components/tree/tree.types.d.ts +6 -0
- package/dist/basic-components/tree/tree.types.d.ts.map +1 -1
- package/dist/basic-components/typography/typography-types.d.ts +1 -1
- package/dist/basic-components/typography/typography-types.d.ts.map +1 -1
- package/dist/{blockDiagram-DXYQGD6D-B0NvV2Ph.js → blockDiagram-GPEHLZMM-C3UgY0Z5.js} +999 -877
- package/dist/blockDiagram-GPEHLZMM-CuzoKhJT.cjs +132 -0
- package/dist/{c4Diagram-AHTNJAMY-Dgwv-e5O.cjs → c4Diagram-AAUBKEIU-DU8uXbgK.cjs} +6 -6
- package/dist/{c4Diagram-AHTNJAMY-DPijI3_r.js → c4Diagram-AAUBKEIU-klnmEOUo.js} +279 -279
- package/dist/channel-BbRDdbmM.js +5 -0
- package/dist/channel-intTktDQ.cjs +1 -0
- package/dist/chunk-2J33WTMH-EmvF7iYC.js +25 -0
- package/dist/chunk-2J33WTMH-PlcpVW8G.cjs +1 -0
- package/dist/{chunk-5FUZZQ4R-D3C0F0Tr.js → chunk-3OPIFGDE-C7wE5oN7.js} +957 -929
- package/dist/chunk-3OPIFGDE-CT5oNC5X.cjs +62 -0
- package/dist/{chunk-4BX2VUAB-BW54-JWg.js → chunk-4BX2VUAB-BO1KRGb1.js} +1 -1
- package/dist/{chunk-4BX2VUAB-Qba52sxc.cjs → chunk-4BX2VUAB-CtDGlaPx.cjs} +1 -1
- package/dist/{chunk-7N4EOEYR-C-GuhRgW.js → chunk-4EGX6M5U-BMVrizoY.js} +12 -12
- package/dist/{chunk-7N4EOEYR-jNBQwvHx.cjs → chunk-4EGX6M5U-VENLmgBt.cjs} +1 -1
- package/dist/{chunk-55IACEB6-DPatBzu7.cjs → chunk-55IACEB6-VJP3Osm7.cjs} +1 -1
- package/dist/{chunk-55IACEB6-Bu3k0Yz5.js → chunk-55IACEB6-b_Ivgrk-.js} +1 -1
- package/dist/chunk-5DO6E6H7-Cx6Mfbjl.cjs +1 -0
- package/dist/chunk-5DO6E6H7-QuTLwcim.js +23 -0
- package/dist/chunk-5ZQYHXKU-BMnKD7Zq.cjs +2 -0
- package/dist/{chunk-5PVQY5BW-Dn8n6moB.js → chunk-5ZQYHXKU-C4uam08j.js} +527 -461
- package/dist/chunk-727SXJPM-DTmqhRKX.cjs +206 -0
- package/dist/{chunk-4TB4RGXK-D2LRzcEP.js → chunk-727SXJPM-Dof0vDVV.js} +650 -554
- package/dist/{chunk-OYMX7WX6-CrK-lehh.cjs → chunk-AQP2D5EJ-DdWeFQ4O.cjs} +5 -5
- package/dist/{chunk-OYMX7WX6-DJkGVCqi.js → chunk-AQP2D5EJ-N9ii4fwJ.js} +349 -339
- package/dist/{chunk-LIHQZDEY-59I4-LWb.js → chunk-BR22UD5L-CS6hURQQ.js} +15 -15
- package/dist/{chunk-LIHQZDEY-CrogR3nT.cjs → chunk-BR22UD5L-wI1vkyAT.cjs} +1 -1
- package/dist/{chunk-BSJP7CBP-oNTXVRA7.js → chunk-BSJP7CBP-Bx5APwBA.js} +1 -1
- package/dist/{chunk-BSJP7CBP-CFzYPvgr.cjs → chunk-BSJP7CBP-CaeBFqNU.cjs} +1 -1
- package/dist/{chunk-ICPOFSXX-fQJ5ufMR.js → chunk-CSCIHK7Q-9WKhcDqw.js} +132 -38
- package/dist/chunk-CSCIHK7Q-BPMuICCz.cjs +123 -0
- package/dist/chunk-FHYWG6QK-CfRqYwCI.js +23 -0
- package/dist/chunk-FHYWG6QK-DxmnARsZ.cjs +1 -0
- package/dist/{chunk-FMBD7UC4-RRSc9jqt.js → chunk-FMBD7UC4-BbggSGOg.js} +1 -1
- package/dist/{chunk-FMBD7UC4-CS9_r76V.cjs → chunk-FMBD7UC4-CiO_59ls.cjs} +1 -1
- package/dist/{chunk-ENJZ2VHE-CZ7BvL2h.js → chunk-KSCS5N6A-BY1s4eGg.js} +205 -205
- package/dist/chunk-KSCS5N6A-DO8jEi0y.cjs +10 -0
- package/dist/{chunk-ZZ45TVLE-BfSqZnT4.cjs → chunk-L5ZTLDWV-BE9udiOh.cjs} +1 -1
- package/dist/{chunk-ZZ45TVLE-X2jolXSO.js → chunk-L5ZTLDWV-D3UwMopa.js} +8 -8
- package/dist/{chunk-336JU56O-DQhIGd25.cjs → chunk-LZXEDZCA-Dpz_wx3M.cjs} +1 -1
- package/dist/{chunk-336JU56O-DkZvWJVe.js → chunk-LZXEDZCA-KzBFuWPU.js} +18 -18
- package/dist/chunk-MPE355IW-4bpROspE.js +23 -0
- package/dist/chunk-MPE355IW-CxPw_dPP.cjs +1 -0
- package/dist/chunk-MZUSXYTE-DA5mUG5B.js +30 -0
- package/dist/chunk-MZUSXYTE-DIg1BPts.cjs +1 -0
- package/dist/chunk-N66VUXT2-DSbygtq1.cjs +1 -0
- package/dist/chunk-N66VUXT2-pDZ1b-B3.js +54 -0
- package/dist/{chunk-YZCP3GAM-D6P3SWmL.js → chunk-ND2GUHAM-CHTke4K8.js} +17 -17
- package/dist/{chunk-YZCP3GAM-qxaNo0r8.cjs → chunk-ND2GUHAM-DdBSZTft.cjs} +1 -1
- package/dist/chunk-NNHCCRGN-D_orSz6n.js +20630 -0
- package/dist/chunk-NNHCCRGN-aKMHXBzL.cjs +159 -0
- package/dist/{chunk-X2U36JSP-VxRY65ea.js → chunk-NZK2D7GU-BVOINLmx.js} +13 -13
- package/dist/{chunk-X2U36JSP-CtXjVqek.cjs → chunk-NZK2D7GU-_twqedIe.cjs} +1 -1
- package/dist/{chunk-U2HBQHQK-CJ77uizk.cjs → chunk-O5CBEL6O-CDvi2oZo.cjs} +6 -6
- package/dist/{chunk-U2HBQHQK-Ceyeq0IV.js → chunk-O5CBEL6O-VsMF4aZB.js} +108 -108
- package/dist/chunk-PUPMXCY4-CKjhJQnN.js +23 -0
- package/dist/chunk-PUPMXCY4-DsS_t57r.cjs +1 -0
- package/dist/{chunk-QZHKN3VN-CSMKL2rB.cjs → chunk-QZHKN3VN-CHjRGMI2.cjs} +1 -1
- package/dist/{chunk-QZHKN3VN-Bx8I6l3c.js → chunk-QZHKN3VN-DCddt14Q.js} +1 -1
- package/dist/chunk-UIBZB4QT-BZf7vqd9.cjs +1 -0
- package/dist/chunk-UIBZB4QT-BvFllM0Q.js +23 -0
- package/dist/chunk-WCWK7LTN-D_C1as0Y.js +31 -0
- package/dist/chunk-WCWK7LTN-Dl2uC9ZD.cjs +1 -0
- package/dist/chunk-WU5MYG2G-DgyP9QDj.cjs +1 -0
- package/dist/chunk-WU5MYG2G-mQn7Wt-i.js +9 -0
- package/dist/{chunk-XPW4576I-BcWkx-AL.js → chunk-XPW4576I-BCowsgDU.js} +1 -1
- package/dist/{chunk-XPW4576I-D8Pp6a3j.cjs → chunk-XPW4576I-D_mwgMVU.cjs} +1 -1
- package/dist/classDiagram-4FO5ZUOK-5DyhpZRK.cjs +1 -0
- package/dist/classDiagram-4FO5ZUOK-BHGLQIkz.js +29 -0
- package/dist/classDiagram-v2-Q7XG4LA2-CCAbBo05.js +29 -0
- package/dist/classDiagram-v2-Q7XG4LA2-D4TX4CLT.cjs +1 -0
- package/dist/components/dash-list/assets/dash-list.data.d.ts +1 -0
- package/dist/components/dash-list/assets/dash-list.data.d.ts.map +1 -1
- package/dist/components/dash-list/dash-list-types.d.ts +1 -0
- package/dist/components/dash-list/dash-list-types.d.ts.map +1 -1
- package/dist/components/dash-list/dash-list.d.ts.map +1 -1
- package/dist/components/dash-list/dash-list.utils.d.ts +1 -3
- package/dist/components/dash-list/dash-list.utils.d.ts.map +1 -1
- package/dist/components/field/field-types.d.ts +6 -0
- package/dist/components/field/field-types.d.ts.map +1 -1
- package/dist/components/field/field.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/items/image-list-item.d.ts.map +1 -1
- package/dist/components/input-panel/input-panel-types.d.ts +6 -0
- package/dist/components/input-panel/input-panel-types.d.ts.map +1 -1
- package/dist/components/input-panel/input-panel-utils.d.ts.map +1 -1
- package/dist/components/input-panel/input-panel.d.ts.map +1 -1
- package/dist/components/pdf/pdf-types.d.ts +8 -0
- package/dist/components/pdf/pdf-types.d.ts.map +1 -1
- package/dist/components/pdf/pdf-utils.d.ts +1 -1
- package/dist/components/pdf/pdf-utils.d.ts.map +1 -1
- package/dist/components/pdf/pdf.d.ts.map +1 -1
- package/dist/components/planner/planner-assets.d.ts +2 -2
- package/dist/components/planner/planner-assets.d.ts.map +1 -1
- package/dist/components/planner/planner-utils.d.ts +1 -0
- package/dist/components/planner/planner-utils.d.ts.map +1 -1
- package/dist/components/planner/planner.d.ts.map +1 -1
- package/dist/components/tab-bar/tab-bar-types.d.ts +1 -1
- package/dist/components/tab-bar/tab-bar-types.d.ts.map +1 -1
- package/dist/components/timeline/timeline.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip-assets.d.ts +1 -0
- package/dist/components/tooltip/tooltip-assets.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip-types.d.ts +4 -16
- package/dist/components/tooltip/tooltip-types.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/context/obj-metadata-context.d.ts +8 -0
- package/dist/context/obj-metadata-context.d.ts.map +1 -0
- package/dist/{cose-bilkent-S5V4N54A-B30Rh9DR.js → cose-bilkent-S5V4N54A-Bfb7U01p.js} +26 -27
- package/dist/cose-bilkent-S5V4N54A-CE-7Sw0Y.cjs +1 -0
- package/dist/dagre-BM42HDAG-BhbA1R8l.cjs +4 -0
- package/dist/dagre-BM42HDAG-D87Rv2R4.js +297 -0
- package/dist/dagre-CC68z3y6.cjs +1 -0
- package/dist/dagre-Cg4CV48I.js +1936 -0
- package/dist/diagram-2AECGRRQ-C6vI3yau.cjs +43 -0
- package/dist/{diagram-MMDJMWI5-DUpEI5ug.js → diagram-2AECGRRQ-OSYCK0tv.js} +36 -36
- package/dist/diagram-5GNKFQAL-BS9rRMAe.cjs +10 -0
- package/dist/diagram-5GNKFQAL-DnquluB9.js +101 -0
- package/dist/diagram-KO2AKTUF-CFi6eQYd.js +431 -0
- package/dist/diagram-KO2AKTUF-CjA_KTJj.cjs +3 -0
- package/dist/{diagram-TYMM5635-DHHPZ5ZJ.js → diagram-LMA3HP47-Cwm5bzeM.js} +38 -38
- package/dist/diagram-LMA3HP47-DBwSTp2j.cjs +24 -0
- package/dist/diagram-OG6HWLK6-BdLnbUYy.cjs +24 -0
- package/dist/{diagram-G4DWMVQ6-iYV58Drq.js → diagram-OG6HWLK6-DvGk1j55.js} +93 -93
- package/dist/{dist-DL30VIBI.js → dist-9MKIBfY4.js} +1 -1
- package/dist/dist-DC1YYeHc.cjs +1 -0
- package/dist/{erDiagram-SMLLAGMA-C8FM7wbJ.js → erDiagram-TEJ5UH35-B17mqgD_.js} +164 -164
- package/dist/erDiagram-TEJ5UH35-NlRiP_bX.cjs +85 -0
- package/dist/eventmodeling-FCH6USID-BVaFiLQO.js +3 -0
- package/dist/eventmodeling-FCH6USID-leiC8dtX.cjs +1 -0
- package/dist/{flowDiagram-DWJPFMVM-BGtX2gw0.js → flowDiagram-I6XJVG4X-C2G6Tgw_.js} +444 -444
- package/dist/{flowDiagram-DWJPFMVM-DWuKiJeo.cjs → flowDiagram-I6XJVG4X-ChI_6giU.cjs} +9 -9
- package/dist/functional-components/row/row-types.d.ts +6 -0
- package/dist/functional-components/row/row-types.d.ts.map +1 -1
- package/dist/functional-components/row/row.d.ts.map +1 -1
- package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts.map +1 -1
- package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow-utils.d.ts +106 -0
- package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow-utils.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow-utils.test.d.ts +2 -0
- package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow-utils.test.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow.d.ts +38 -0
- package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow.d.ts.map +1 -0
- package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts +23 -20
- package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -1
- package/dist/functional-components/timeline-engine/components/gantt/gantt.d.ts.map +1 -1
- package/dist/functional-components/timeline-engine/components/gantt/types/gantt-types.d.ts +13 -2
- package/dist/functional-components/timeline-engine/components/gantt/types/gantt-types.d.ts.map +1 -1
- package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts +4 -0
- package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts.map +1 -1
- package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts +24 -0
- package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -1
- package/dist/functional-components/timeline-engine/timeline-engine.d.ts.map +1 -1
- package/dist/ganttDiagram-6RSMTGT7-B0DHqd7u.cjs +292 -0
- package/dist/{ganttDiagram-T4ZO3ILL-PY1BUp5b.js → ganttDiagram-6RSMTGT7-Bb6bqcaS.js} +278 -276
- package/dist/gitGraph-WXDBUCRP-BFFuTWG4.cjs +1 -0
- package/dist/gitGraph-WXDBUCRP-Fz2kRwJ-.js +3 -0
- package/dist/gitGraphDiagram-PVQCEYII-BzbgPrwe.cjs +106 -0
- package/dist/{gitGraphDiagram-UUTBAWPF-CDIW9-sX.js → gitGraphDiagram-PVQCEYII-DiJUr7lO.js} +255 -255
- package/dist/graphlib-B1zohIOM.js +1266 -0
- package/dist/graphlib-B5AXIZA4.cjs +1 -0
- package/dist/hooks/useFloating.d.ts.map +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/info-J43DQDTF-CLRXRK49.js +3 -0
- package/dist/info-J43DQDTF-CmpcAuH-.cjs +1 -0
- package/dist/infoDiagram-5YYISTIA-C8P9DHlE.js +19 -0
- package/dist/infoDiagram-5YYISTIA-fhwEAAjF.cjs +2 -0
- package/dist/{ishikawaDiagram-UXIWVN3A-BfkF39Xv.cjs → ishikawaDiagram-YF4QCWOH-j6IZz59g.cjs} +6 -6
- package/dist/{ishikawaDiagram-UXIWVN3A-BblrAmns.js → ishikawaDiagram-YF4QCWOH-rqNbTKZp.js} +134 -134
- package/dist/{journeyDiagram-VCZTEJTY-UwcVOFtb.cjs → journeyDiagram-JHISSGLW-BhHdd4y3.cjs} +6 -6
- package/dist/{journeyDiagram-VCZTEJTY-CCOZ1XFK.js → journeyDiagram-JHISSGLW-peUJlm3L.js} +180 -180
- package/dist/{kanban-definition-6JOO6SKY-BWwfbdd6.js → kanban-definition-UN3LZRKU-DLxDqiQn.js} +151 -151
- package/dist/{kanban-definition-6JOO6SKY-Coxpi43B.cjs → kanban-definition-UN3LZRKU-TUg1x5yJ.cjs} +8 -8
- package/dist/{katex-SAH56fvc.cjs → katex-HkVgAsLB.cjs} +1 -1
- package/dist/ketchup2.cjs.js +107 -110
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +90621 -90697
- package/dist/{line-CrxZdHmO.js → line-BhAnxCE8.js} +3 -3
- package/dist/line-CpcTW4h-.cjs +1 -0
- package/dist/{linear-CxHa1DsM.cjs → linear-D0eFmsG1.cjs} +1 -1
- package/dist/{linear-BsPvNLJv.js → linear-lSeWuvgy.js} +3 -3
- package/dist/locale/en/translation.json.d.ts +3 -0
- package/dist/locale/it/translation.json.d.ts +3 -0
- package/dist/{mermaid-parser.core-CERDf-UG.js → mermaid-parser.core-Dz33ts1l.js} +24 -19
- package/dist/mermaid-parser.core-HQxPJrkY.cjs +3 -0
- package/dist/{mindmap-definition-QFDTVHPH--xULjpFZ.cjs → mindmap-definition-RKZ34NQL-D9BOsg5W.cjs} +29 -29
- package/dist/{mindmap-definition-QFDTVHPH-dYQoMeA6.js → mindmap-definition-RKZ34NQL-DHkmUkxh.js} +148 -148
- package/dist/{ordinal-Civr0hZL.cjs → ordinal-BnUYNBtU.cjs} +1 -1
- package/dist/{ordinal-C-VoL0XF.js → ordinal-MD9_ORcM.js} +1 -1
- package/dist/packet-YPE3B663-BwjweAZY.cjs +1 -0
- package/dist/packet-YPE3B663-D1Hr9AQm.js +3 -0
- package/dist/pie-LRSECV5Y-CpDfN1P0.js +3 -0
- package/dist/pie-LRSECV5Y-I1-OkIXi.cjs +1 -0
- package/dist/{pieDiagram-DEJITSTG-Dj5pX4fC.js → pieDiagram-4H26LBE5-ByA7ytZx.js} +40 -40
- package/dist/pieDiagram-4H26LBE5-CrLJh4L9.cjs +30 -0
- package/dist/{quadrantDiagram-34T5L4WZ-BKNOJBiR.js → quadrantDiagram-W4KKPZXB-CHHpmu1l.js} +547 -520
- package/dist/quadrantDiagram-W4KKPZXB-CalC_db_.cjs +7 -0
- package/dist/radar-GUYGQ44K-BXt3oO8c.cjs +1 -0
- package/dist/radar-GUYGQ44K-ByzrmbOz.js +3 -0
- package/dist/{requirementDiagram-MS252O5E-r3eZu57d.js → requirementDiagram-4Y6WPE33-BVcDFSx8.js} +165 -165
- package/dist/requirementDiagram-4Y6WPE33-SsePLT8d.cjs +84 -0
- package/dist/sankeyDiagram-5OEKKPKP-BgvTZ7jd.cjs +40 -0
- package/dist/{sankeyDiagram-XADWPNL6-ErTVVewH.js → sankeyDiagram-5OEKKPKP-C-ODz9lV.js} +202 -153
- package/dist/{sequenceDiagram-FGHM5R23-BmqbzzHY.js → sequenceDiagram-3UESZ5HK-Cnc0aDO4.js} +786 -779
- package/dist/sequenceDiagram-3UESZ5HK-DEVLteqD.cjs +162 -0
- package/dist/src-BgvDIw01.cjs +1 -0
- package/dist/{src-BQiFKP24.js → src-v9RrE_4h.js} +578 -563
- package/dist/stateDiagram-AJRCARHV-CuHe6Iji.js +217 -0
- package/dist/stateDiagram-AJRCARHV-D_yPvIRw.cjs +1 -0
- package/dist/stateDiagram-v2-BHNVJYJU-CTnE6fOT.cjs +1 -0
- package/dist/stateDiagram-v2-BHNVJYJU-DqstYMSl.js +27 -0
- package/dist/{timeline-definition-GMOUNBTQ-DgcI7XnE.js → timeline-definition-PNZ67QCA-Bj1BItRB.js} +324 -324
- package/dist/{timeline-definition-GMOUNBTQ-BeTHmikc.cjs → timeline-definition-PNZ67QCA-Cynbc96w.cjs} +48 -48
- package/dist/treeView-BLDUP644-CxLhpd93.js +3 -0
- package/dist/treeView-BLDUP644-DMwVx0AR.cjs +1 -0
- package/dist/treemap-LRROVOQU-BqmiLdFI.js +3 -0
- package/dist/treemap-LRROVOQU-XhaFZdvI.cjs +1 -0
- package/dist/types/translation.d.ts +4 -1
- package/dist/types/translation.d.ts.map +1 -1
- package/dist/utils/translation.d.ts.map +1 -1
- package/dist/v4-BpDBEhLK.js +30 -0
- package/dist/v4-CA8ev9YY.cjs +1 -0
- package/dist/{vennDiagram-DHZGUBPP-7tx3VVDU.js → vennDiagram-CIIHVFJN-CdmcxixA.js} +192 -192
- package/dist/vennDiagram-CIIHVFJN-Dm4D6omA.cjs +34 -0
- package/dist/wardley-L42UT6IY-C7UjBmVh.js +3 -0
- package/dist/wardley-L42UT6IY-DFAYOpjD.cjs +1 -0
- package/dist/{wardleyDiagram-NUSXRM2D-DY51LHBa.cjs → wardleyDiagram-YWT4CUSO-C-DdutxP.cjs} +61 -3
- package/dist/{wardleyDiagram-NUSXRM2D-DGKU7A2U.js → wardleyDiagram-YWT4CUSO-D1o116Wi.js} +272 -206
- package/dist/{xychartDiagram-5P7HB3ND--7RYyckP.js → xychartDiagram-2RQKCTM6-Byw7djcg.js} +213 -213
- package/dist/{xychartDiagram-5P7HB3ND-Cj0HUNew.cjs → xychartDiagram-2RQKCTM6-D0D4PIQS.cjs} +6 -6
- package/package.json +6 -6
- package/dist/architecture-YZFGNWBL-BRqToLcm.js +0 -3
- package/dist/architecture-YZFGNWBL-BTOWQWD9.cjs +0 -1
- package/dist/architectureDiagram-Q4EWVU46-CX_6DnSJ.cjs +0 -36
- package/dist/blockDiagram-DXYQGD6D-D6DypQdM.cjs +0 -132
- package/dist/channel-CRWct3-i.js +0 -5
- package/dist/channel-DkTvdPpU.cjs +0 -1
- package/dist/chunk-2KRD3SAO-Ca3zDQyj.js +0 -23
- package/dist/chunk-2KRD3SAO-oZrIWZvV.cjs +0 -1
- package/dist/chunk-426QAEUC-CDXJVpQr.js +0 -9
- package/dist/chunk-426QAEUC-CqN26l3E.cjs +0 -1
- package/dist/chunk-4TB4RGXK-B0SIkKDf.cjs +0 -206
- package/dist/chunk-5FUZZQ4R-Cj5KbGC7.cjs +0 -62
- package/dist/chunk-5PVQY5BW-DEPZKGvb.cjs +0 -2
- package/dist/chunk-67CJDMHE-2Qg7i1xJ.cjs +0 -1
- package/dist/chunk-67CJDMHE-YMBkJcAO.js +0 -23
- package/dist/chunk-AA7GKIK3-B_ZB6dou.js +0 -30
- package/dist/chunk-AA7GKIK3-dqnTmnvO.cjs +0 -1
- package/dist/chunk-CIAEETIT-ClHUj0Su.cjs +0 -1
- package/dist/chunk-CIAEETIT-XlxsAz-4.js +0 -23
- package/dist/chunk-D-IZpNpi.cjs +0 -1
- package/dist/chunk-EDXVE4YY-1dwNWzc7.cjs +0 -1
- package/dist/chunk-EDXVE4YY-CGNVB686.js +0 -25
- package/dist/chunk-ENJZ2VHE-BAWfx0nA.cjs +0 -10
- package/dist/chunk-FOC6F5B3-DcZs851j.cjs +0 -1
- package/dist/chunk-FOC6F5B3-E9n6-juB.js +0 -23
- package/dist/chunk-ICPOFSXX-hY6BIZ4Y.cjs +0 -122
- package/dist/chunk-K5T4RW27-BzDQkjC7.cjs +0 -94
- package/dist/chunk-K5T4RW27-DY7TOEqa.js +0 -16070
- package/dist/chunk-KGLVRYIC-5OJpfQCj.js +0 -23
- package/dist/chunk-KGLVRYIC-DnbIkai8.cjs +0 -1
- package/dist/chunk-ORNJ4GCN-CcrEtiCn.cjs +0 -1
- package/dist/chunk-ORNJ4GCN-CwkOSFbS.js +0 -31
- package/dist/chunk-WQLz0Won.js +0 -20
- package/dist/classDiagram-6PBFFD2Q-BT4_JTnP.cjs +0 -1
- package/dist/classDiagram-6PBFFD2Q-Dgaxt4wI.js +0 -29
- package/dist/classDiagram-v2-HSJHXN6E-CWhiK6nm.js +0 -29
- package/dist/classDiagram-v2-HSJHXN6E-DkBLzgTv.cjs +0 -1
- package/dist/clone-CQQwPjME.cjs +0 -1
- package/dist/clone-Dwbh_blD.js +0 -8
- package/dist/cose-bilkent-S5V4N54A-Bhdp-wcb.cjs +0 -1
- package/dist/dagre-BcwvU6ZF.cjs +0 -1
- package/dist/dagre-D17h-Z-U.js +0 -1606
- package/dist/dagre-KV5264BT-BnEKAAAn.js +0 -293
- package/dist/dagre-KV5264BT-DRbiLA37.cjs +0 -4
- package/dist/diagram-5BDNPKRD-B_Fa4dpl.js +0 -101
- package/dist/diagram-5BDNPKRD-CPN8m2Hl.cjs +0 -10
- package/dist/diagram-G4DWMVQ6-VpXkNb67.cjs +0 -24
- package/dist/diagram-MMDJMWI5-DGk_PUo9.cjs +0 -43
- package/dist/diagram-TYMM5635-BH_-vSv9.cjs +0 -24
- package/dist/dist-BgvMZbfo.cjs +0 -1
- package/dist/erDiagram-SMLLAGMA-vuYEmfFA.cjs +0 -85
- package/dist/flatten-BE1bWL-7.js +0 -40
- package/dist/flatten-DxvYSoR8.cjs +0 -1
- package/dist/ganttDiagram-T4ZO3ILL-C25CnBTv.cjs +0 -292
- package/dist/gitGraph-7Q5UKJZL-DZea3ltD.cjs +0 -1
- package/dist/gitGraph-7Q5UKJZL-sjlqDwJ_.js +0 -3
- package/dist/gitGraphDiagram-UUTBAWPF-0lCBo9nK.cjs +0 -106
- package/dist/graphlib-CdgJ32J_.cjs +0 -1
- package/dist/graphlib-DbQkSsC8.js +0 -373
- package/dist/identity-KQSjemTb.cjs +0 -1
- package/dist/identity-g0dsMjx7.js +0 -393
- package/dist/info-OMHHGYJF-Bk0VWVNW.js +0 -3
- package/dist/info-OMHHGYJF-C8QtwF0k.cjs +0 -1
- package/dist/infoDiagram-42DDH7IO-CQLxpytS.js +0 -19
- package/dist/infoDiagram-42DDH7IO-Da__a_a_.cjs +0 -2
- package/dist/isEmpty-CA3kJuev.cjs +0 -1
- package/dist/isEmpty-RwX-oIQS.js +0 -35
- package/dist/line-C7oijaT4.cjs +0 -1
- package/dist/mermaid-parser.core-DHpvGOZR.cjs +0 -3
- package/dist/packet-4T2RLAQJ-X0BMsNFj.js +0 -3
- package/dist/packet-4T2RLAQJ-lvmQnXPI.cjs +0 -1
- package/dist/pie-ZZUOXDRM-CJ_fU5k1.js +0 -3
- package/dist/pie-ZZUOXDRM-Dp4APKqR.cjs +0 -1
- package/dist/pieDiagram-DEJITSTG-7we8s9eC.cjs +0 -30
- package/dist/quadrantDiagram-34T5L4WZ-B3BFuPYQ.cjs +0 -7
- package/dist/radar-PYXPWWZC-BHWJy_E1.cjs +0 -1
- package/dist/radar-PYXPWWZC-DgZIW9Ah.js +0 -3
- package/dist/reduce-B7WW9rkU.cjs +0 -1
- package/dist/reduce-DNnkcf3M.js +0 -532
- package/dist/requirementDiagram-MS252O5E-BemsEy3Y.cjs +0 -84
- package/dist/sankeyDiagram-XADWPNL6-B9YCkPHh.cjs +0 -10
- package/dist/sequenceDiagram-FGHM5R23-CBpQL6X2.cjs +0 -157
- package/dist/src-DFxq-N5I.cjs +0 -1
- package/dist/stateDiagram-FHFEXIEX-CL9LE-W1.js +0 -217
- package/dist/stateDiagram-FHFEXIEX-Cju5Z2VS.cjs +0 -1
- package/dist/stateDiagram-v2-QKLJ7IA2-BHoytfGp.js +0 -27
- package/dist/stateDiagram-v2-QKLJ7IA2-DO1H6Vqa.cjs +0 -1
- package/dist/treeView-SZITEDCU-CT5vX0q9.cjs +0 -1
- package/dist/treeView-SZITEDCU-Df3xzFtO.js +0 -3
- package/dist/treemap-W4RFUUIX-Bk_jVZ7D.cjs +0 -1
- package/dist/treemap-W4RFUUIX-ClUtdSdn.js +0 -3
- package/dist/v4-6yr83DbP.cjs +0 -1
- package/dist/v4-BR71w5_q.js +0 -33
- package/dist/vennDiagram-DHZGUBPP-C16dnMoe.cjs +0 -34
- package/dist/wardley-RL74JXVD-BtHQbnUy.js +0 -3
- package/dist/wardley-RL74JXVD-y8RO5Iqv.cjs +0 -1
- /package/dist/{array-D8NZ46Ht.js → array-CBdkHBGa.js} +0 -0
- /package/dist/{array-Dxz0O8Q3.cjs → array-Cx1JwiGD.cjs} +0 -0
- /package/dist/{cytoscape.esm-CrBwLFXE.cjs → cytoscape.esm-BzblyxzZ.cjs} +0 -0
- /package/dist/{cytoscape.esm-CPjF_mSK.js → cytoscape.esm-VShrX2U1.js} +0 -0
- /package/dist/{defaultLocale-DtzyZW63.cjs → defaultLocale-Bj_Ndo9V.cjs} +0 -0
- /package/dist/{defaultLocale-Dcyuaxxg.js → defaultLocale-dGy1YRID.js} +0 -0
- /package/dist/{init-BO60vQHJ.js → init-B7h4SEX5.js} +0 -0
- /package/dist/{init-B2MubQrj.cjs → init-CEL65JUo.cjs} +0 -0
- /package/dist/{katex-Du5WiYIy.js → katex-DWDh1q_h.js} +0 -0
- /package/dist/{path-CvfwEr8y.js → path-CAXMhBzK.js} +0 -0
- /package/dist/{path-Civic7PQ.cjs → path-CRahBUHI.cjs} +0 -0
- /package/dist/{rough.esm-BLKo1fIQ.cjs → rough.esm-BEA_SCZB.cjs} +0 -0
- /package/dist/{rough.esm-1mqTSjCt.js → rough.esm-TWNWL4Us.js} +0 -0
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { g as e, h as t } from "./src-v9RrE_4h.js";
|
|
2
|
+
import { D as n, H as r, K as i, U as a, a as o, b as s, c, v as l, w as u, x as d, y as f } from "./chunk-CSCIHK7Q-9WKhcDqw.js";
|
|
3
|
+
import { i as p } from "./chunk-5ZQYHXKU-C4uam08j.js";
|
|
4
|
+
import { t as m } from "./chunk-WU5MYG2G-mQn7Wt-i.js";
|
|
5
|
+
import { t as h } from "./chunk-4BX2VUAB-BO1KRGb1.js";
|
|
6
|
+
import { t as g } from "./mermaid-parser.core-Dz33ts1l.js";
|
|
7
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-YWT4CUSO.mjs
|
|
8
|
+
var _ = /* @__PURE__ */ t((e, t) => {
|
|
8
9
|
let n = e <= 1 ? e * 100 : e;
|
|
9
10
|
if (n < 0 || n > 100) throw Error(`${t} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);
|
|
10
11
|
return n;
|
|
11
|
-
}, "toPercent"),
|
|
12
|
-
x:
|
|
13
|
-
y:
|
|
14
|
-
}), "toCoordinates"),
|
|
12
|
+
}, "toPercent"), v = /* @__PURE__ */ t((e, t, n) => ({
|
|
13
|
+
x: _(t, `${n} evolution`),
|
|
14
|
+
y: _(e, `${n} visibility`)
|
|
15
|
+
}), "toCoordinates"), y = /* @__PURE__ */ t((e) => {
|
|
15
16
|
if (e) {
|
|
16
17
|
if (e === "+<>") return "bidirectional";
|
|
17
18
|
if (e === "+<") return "backward";
|
|
18
19
|
if (e === "+>") return "forward";
|
|
19
20
|
}
|
|
20
|
-
}, "getFlowFromPort"),
|
|
21
|
+
}, "getFlowFromPort"), b = /* @__PURE__ */ t((e) => {
|
|
21
22
|
if (!e?.startsWith("+")) return {};
|
|
22
23
|
let t = /^\+'([^']*)'/.exec(e)?.[1];
|
|
23
24
|
return e.includes("<>") ? {
|
|
@@ -30,8 +31,8 @@ var h = /* @__PURE__ */ d((e, t) => {
|
|
|
30
31
|
flow: "forward",
|
|
31
32
|
label: t
|
|
32
33
|
} : { label: t };
|
|
33
|
-
}, "extractFlowFromArrow"),
|
|
34
|
-
if (
|
|
34
|
+
}, "extractFlowFromArrow"), x = /* @__PURE__ */ t((e, t) => {
|
|
35
|
+
if (h(e, t), e.size && t.setSize(e.size.width, e.size.height), e.evolution) {
|
|
35
36
|
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
37
|
t.updateAxes({
|
|
37
38
|
stages: n,
|
|
@@ -39,65 +40,65 @@ var h = /* @__PURE__ */ d((e, t) => {
|
|
|
39
40
|
});
|
|
40
41
|
}
|
|
41
42
|
if (e.anchors.forEach((e) => {
|
|
42
|
-
let n =
|
|
43
|
+
let n = v(e.visibility, e.evolution, `Anchor "${e.name}"`);
|
|
43
44
|
t.addNode(e.name, e.name, n.x, n.y, "anchor");
|
|
44
45
|
}), e.components.forEach((e) => {
|
|
45
|
-
let n =
|
|
46
|
+
let n = v(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
47
|
t.addNode(e.name, e.name, n.x, n.y, "component", r, i, e.inertia, a);
|
|
47
48
|
}), e.notes.forEach((e) => {
|
|
48
|
-
let n =
|
|
49
|
+
let n = v(e.visibility, e.evolution, `Note "${e.text}"`);
|
|
49
50
|
t.addNote(e.text, n.x, n.y);
|
|
50
51
|
}), e.pipelines.forEach((e) => {
|
|
51
52
|
let n = t.getNode(e.parent);
|
|
52
53
|
if (!n || typeof n.y != "number") throw Error(`Pipeline "${e.parent}" must reference an existing component with coordinates.`);
|
|
53
54
|
let r = n.y;
|
|
54
55
|
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 =
|
|
56
|
+
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 = _(n.evolution, `Pipeline component "${n.name}" evolution`);
|
|
56
57
|
t.addNode(i, n.name, s, r, "pipeline-component", a, o), t.addPipelineComponent(e.parent, i);
|
|
57
58
|
});
|
|
58
59
|
}), e.links.forEach((e) => {
|
|
59
|
-
let n = !!e.arrow && (e.arrow.includes("-.->") || e.arrow.includes(".-.")), r =
|
|
60
|
+
let n = !!e.arrow && (e.arrow.includes("-.->") || e.arrow.includes(".-.")), r = y(e.fromPort) ?? y(e.toPort), { flow: i, label: a } = b(e.arrow);
|
|
60
61
|
!r && i && (r = i);
|
|
61
62
|
let o = e.linkLabel, s = a ?? o;
|
|
62
|
-
t.addLink(e.from, e.to, n, s, r);
|
|
63
|
+
t.addLink(t.resolveNodeId(e.from), t.resolveNodeId(e.to), n, s, r);
|
|
63
64
|
}), e.evolves.forEach((e) => {
|
|
64
65
|
let n = t.getNode(e.component);
|
|
65
66
|
if (n?.y !== void 0) {
|
|
66
|
-
let r =
|
|
67
|
+
let r = _(e.target, `Evolve target for "${e.component}"`);
|
|
67
68
|
t.addTrend(e.component, r, n.y);
|
|
68
69
|
}
|
|
69
70
|
}), e.annotations.length > 0) {
|
|
70
|
-
let n = e.annotations[0], r =
|
|
71
|
+
let n = e.annotations[0], r = v(n.x, n.y, "Annotations box");
|
|
71
72
|
t.setAnnotationsBox(r.x, r.y);
|
|
72
73
|
}
|
|
73
74
|
e.annotation.forEach((e) => {
|
|
74
|
-
let n =
|
|
75
|
+
let n = v(e.x, e.y, `Annotation ${e.number}`);
|
|
75
76
|
t.addAnnotation(e.number, [{
|
|
76
77
|
x: n.x,
|
|
77
78
|
y: n.y
|
|
78
79
|
}], e.text);
|
|
79
80
|
}), e.accelerators.forEach((e) => {
|
|
80
|
-
let n =
|
|
81
|
+
let n = v(e.x, e.y, `Accelerator "${e.name}"`);
|
|
81
82
|
t.addAccelerator(e.name, n.x, n.y);
|
|
82
83
|
}), e.deaccelerators.forEach((e) => {
|
|
83
|
-
let n =
|
|
84
|
+
let n = v(e.x, e.y, `Deaccelerator "${e.name}"`);
|
|
84
85
|
t.addDeaccelerator(e.name, n.x, n.y);
|
|
85
86
|
});
|
|
86
|
-
}, "populateDb"),
|
|
87
|
+
}, "populateDb"), S = {
|
|
87
88
|
parser: { yy: void 0 },
|
|
88
|
-
parse: /* @__PURE__ */
|
|
89
|
-
let
|
|
90
|
-
|
|
91
|
-
let
|
|
92
|
-
if (!
|
|
93
|
-
|
|
89
|
+
parse: /* @__PURE__ */ t(async (t) => {
|
|
90
|
+
let n = await g("wardley", t);
|
|
91
|
+
e.debug(n);
|
|
92
|
+
let r = S.parser?.yy;
|
|
93
|
+
if (!r || typeof r.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.");
|
|
94
|
+
x(n, r);
|
|
94
95
|
}, "parse")
|
|
95
|
-
},
|
|
96
|
+
}, C = new class {
|
|
96
97
|
constructor() {
|
|
97
98
|
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
|
}
|
|
99
100
|
static {
|
|
100
|
-
|
|
101
|
+
t(this, "WardleyBuilder");
|
|
101
102
|
}
|
|
102
103
|
addNode(e) {
|
|
103
104
|
let t = this.nodes.get(e.id) ?? {
|
|
@@ -165,6 +166,11 @@ var h = /* @__PURE__ */ d((e, t) => {
|
|
|
165
166
|
getNode(e) {
|
|
166
167
|
return this.nodes.get(e);
|
|
167
168
|
}
|
|
169
|
+
resolveNodeId(e) {
|
|
170
|
+
if (this.nodes.has(e)) return e;
|
|
171
|
+
for (let [t, n] of this.nodes) if (n.label === e) return t;
|
|
172
|
+
return e;
|
|
173
|
+
}
|
|
168
174
|
build() {
|
|
169
175
|
let e = [];
|
|
170
176
|
for (let t of this.nodes.values()) {
|
|
@@ -189,19 +195,14 @@ var h = /* @__PURE__ */ d((e, t) => {
|
|
|
189
195
|
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
196
|
}
|
|
191
197
|
}();
|
|
192
|
-
function
|
|
193
|
-
|
|
194
|
-
return n(e.trim(), t);
|
|
195
|
-
}
|
|
196
|
-
d(S, "textSanitizer");
|
|
197
|
-
function C() {
|
|
198
|
-
return s()["wardley-beta"];
|
|
198
|
+
function w() {
|
|
199
|
+
return d()["wardley-beta"];
|
|
199
200
|
}
|
|
200
|
-
|
|
201
|
-
function
|
|
202
|
-
|
|
201
|
+
t(w, "getConfig");
|
|
202
|
+
function T(e, t, n, r, i, a, o, s, c) {
|
|
203
|
+
C.addNode({
|
|
203
204
|
id: e,
|
|
204
|
-
label:
|
|
205
|
+
label: t,
|
|
205
206
|
x: n,
|
|
206
207
|
y: r,
|
|
207
208
|
className: i,
|
|
@@ -211,9 +212,9 @@ function w(e, t, n, r, i, a, o, s, c) {
|
|
|
211
212
|
sourceStrategy: c
|
|
212
213
|
});
|
|
213
214
|
}
|
|
214
|
-
|
|
215
|
-
function
|
|
216
|
-
|
|
215
|
+
t(T, "addNode");
|
|
216
|
+
function E(e, t, n = !1, r, i) {
|
|
217
|
+
C.addLink({
|
|
217
218
|
source: e,
|
|
218
219
|
target: t,
|
|
219
220
|
dashed: n,
|
|
@@ -221,110 +222,114 @@ function T(e, t, n = !1, r, i) {
|
|
|
221
222
|
flow: i
|
|
222
223
|
});
|
|
223
224
|
}
|
|
224
|
-
|
|
225
|
-
function
|
|
226
|
-
|
|
225
|
+
t(E, "addLink");
|
|
226
|
+
function D(e, t, n) {
|
|
227
|
+
C.addTrend({
|
|
227
228
|
nodeId: e,
|
|
228
229
|
targetX: t,
|
|
229
230
|
targetY: n
|
|
230
231
|
});
|
|
231
232
|
}
|
|
232
|
-
|
|
233
|
-
function
|
|
234
|
-
|
|
233
|
+
t(D, "addTrend");
|
|
234
|
+
function O(e, t, n) {
|
|
235
|
+
C.addAnnotation({
|
|
235
236
|
number: e,
|
|
236
237
|
coordinates: t,
|
|
237
|
-
text: n
|
|
238
|
+
text: n
|
|
238
239
|
});
|
|
239
240
|
}
|
|
240
|
-
|
|
241
|
-
function
|
|
242
|
-
|
|
243
|
-
text:
|
|
241
|
+
t(O, "addAnnotation");
|
|
242
|
+
function k(e, t, n) {
|
|
243
|
+
C.addNote({
|
|
244
|
+
text: e,
|
|
244
245
|
x: t,
|
|
245
246
|
y: n
|
|
246
247
|
});
|
|
247
248
|
}
|
|
248
|
-
|
|
249
|
-
function
|
|
250
|
-
|
|
251
|
-
name:
|
|
249
|
+
t(k, "addNote");
|
|
250
|
+
function A(e, t, n) {
|
|
251
|
+
C.addAccelerator({
|
|
252
|
+
name: e,
|
|
252
253
|
x: t,
|
|
253
254
|
y: n
|
|
254
255
|
});
|
|
255
256
|
}
|
|
256
|
-
|
|
257
|
-
function
|
|
258
|
-
|
|
259
|
-
name:
|
|
257
|
+
t(A, "addAccelerator");
|
|
258
|
+
function j(e, t, n) {
|
|
259
|
+
C.addDeaccelerator({
|
|
260
|
+
name: e,
|
|
260
261
|
x: t,
|
|
261
262
|
y: n
|
|
262
263
|
});
|
|
263
264
|
}
|
|
264
|
-
|
|
265
|
-
function j(e, t) {
|
|
266
|
-
x.setAnnotationsBox(e, t);
|
|
267
|
-
}
|
|
268
|
-
d(j, "setAnnotationsBox");
|
|
265
|
+
t(j, "addDeaccelerator");
|
|
269
266
|
function M(e, t) {
|
|
270
|
-
|
|
267
|
+
C.setAnnotationsBox(e, t);
|
|
271
268
|
}
|
|
272
|
-
|
|
273
|
-
function N(e) {
|
|
274
|
-
|
|
269
|
+
t(M, "setAnnotationsBox");
|
|
270
|
+
function N(e, t) {
|
|
271
|
+
C.setSize(e, t);
|
|
275
272
|
}
|
|
276
|
-
|
|
277
|
-
function P(e
|
|
278
|
-
|
|
273
|
+
t(N, "setSize");
|
|
274
|
+
function P(e) {
|
|
275
|
+
C.startPipeline(e);
|
|
279
276
|
}
|
|
280
|
-
|
|
281
|
-
function F(e) {
|
|
282
|
-
|
|
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);
|
|
277
|
+
t(P, "startPipeline");
|
|
278
|
+
function F(e, t) {
|
|
279
|
+
C.addPipelineComponent(e, t);
|
|
284
280
|
}
|
|
285
|
-
|
|
281
|
+
t(F, "addPipelineComponent");
|
|
286
282
|
function I(e) {
|
|
287
|
-
|
|
283
|
+
C.setAxes(e);
|
|
284
|
+
}
|
|
285
|
+
t(I, "updateAxes");
|
|
286
|
+
function L(e) {
|
|
287
|
+
return C.getNode(e);
|
|
288
|
+
}
|
|
289
|
+
t(L, "getNode");
|
|
290
|
+
function R(e) {
|
|
291
|
+
return C.resolveNodeId(e);
|
|
288
292
|
}
|
|
289
|
-
|
|
290
|
-
function
|
|
291
|
-
return
|
|
293
|
+
t(R, "resolveNodeId");
|
|
294
|
+
function z() {
|
|
295
|
+
return C.build();
|
|
292
296
|
}
|
|
293
|
-
|
|
294
|
-
function
|
|
295
|
-
|
|
297
|
+
t(z, "getWardleyData");
|
|
298
|
+
function B() {
|
|
299
|
+
C.clear(), o();
|
|
296
300
|
}
|
|
297
|
-
|
|
298
|
-
var
|
|
299
|
-
getConfig:
|
|
300
|
-
addNode:
|
|
301
|
-
addLink:
|
|
302
|
-
addTrend:
|
|
303
|
-
addAnnotation:
|
|
304
|
-
addNote:
|
|
305
|
-
addAccelerator:
|
|
306
|
-
addDeaccelerator:
|
|
307
|
-
setAnnotationsBox:
|
|
308
|
-
setSize:
|
|
309
|
-
startPipeline:
|
|
310
|
-
addPipelineComponent:
|
|
311
|
-
updateAxes:
|
|
312
|
-
getNode:
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
301
|
+
t(B, "clear");
|
|
302
|
+
var V = {
|
|
303
|
+
getConfig: w,
|
|
304
|
+
addNode: T,
|
|
305
|
+
addLink: E,
|
|
306
|
+
addTrend: D,
|
|
307
|
+
addAnnotation: O,
|
|
308
|
+
addNote: k,
|
|
309
|
+
addAccelerator: A,
|
|
310
|
+
addDeaccelerator: j,
|
|
311
|
+
setAnnotationsBox: M,
|
|
312
|
+
setSize: N,
|
|
313
|
+
startPipeline: P,
|
|
314
|
+
addPipelineComponent: F,
|
|
315
|
+
updateAxes: I,
|
|
316
|
+
getNode: L,
|
|
317
|
+
resolveNodeId: R,
|
|
318
|
+
getWardleyData: z,
|
|
319
|
+
clear: B,
|
|
320
|
+
setAccTitle: a,
|
|
321
|
+
getAccTitle: f,
|
|
317
322
|
setDiagramTitle: i,
|
|
318
|
-
getDiagramTitle:
|
|
319
|
-
getAccDescription:
|
|
320
|
-
setAccDescription:
|
|
321
|
-
},
|
|
323
|
+
getDiagramTitle: u,
|
|
324
|
+
getAccDescription: l,
|
|
325
|
+
setAccDescription: r
|
|
326
|
+
}, H = [
|
|
322
327
|
"Genesis",
|
|
323
328
|
"Custom Built",
|
|
324
329
|
"Product",
|
|
325
330
|
"Commodity"
|
|
326
|
-
],
|
|
327
|
-
let { themeVariables: e } =
|
|
331
|
+
], U = /* @__PURE__ */ t(() => {
|
|
332
|
+
let { themeVariables: e } = d();
|
|
328
333
|
return {
|
|
329
334
|
backgroundColor: e.wardley?.backgroundColor ?? e.background ?? "#fff",
|
|
330
335
|
axisColor: e.wardley?.axisColor ?? "#000",
|
|
@@ -339,8 +344,8 @@ var z = {
|
|
|
339
344
|
annotationTextColor: e.wardley?.annotationTextColor ?? e.primaryTextColor ?? "#222",
|
|
340
345
|
annotationFill: e.wardley?.annotationFill ?? e.background ?? "#fff"
|
|
341
346
|
};
|
|
342
|
-
}, "getTheme"),
|
|
343
|
-
let e =
|
|
347
|
+
}, "getTheme"), W = /* @__PURE__ */ t(() => {
|
|
348
|
+
let e = d()["wardley-beta"];
|
|
344
349
|
return {
|
|
345
350
|
width: e?.width ?? 900,
|
|
346
351
|
height: e?.height ?? 600,
|
|
@@ -352,24 +357,24 @@ var z = {
|
|
|
352
357
|
showGrid: e?.showGrid ?? !1,
|
|
353
358
|
useMaxWidth: e?.useMaxWidth ?? !0
|
|
354
359
|
};
|
|
355
|
-
}, "getConfigValues"),
|
|
356
|
-
parser:
|
|
357
|
-
db:
|
|
358
|
-
renderer: { draw: /* @__PURE__ */
|
|
359
|
-
|
|
360
|
-
let
|
|
361
|
-
g.selectAll("*").remove(), c(g, h,
|
|
360
|
+
}, "getConfigValues"), G = {
|
|
361
|
+
parser: S,
|
|
362
|
+
db: V,
|
|
363
|
+
renderer: { draw: /* @__PURE__ */ t((n, r, i, a) => {
|
|
364
|
+
e.debug("Rendering Wardley map\n" + n);
|
|
365
|
+
let o = W(), s = U(), l = o.nodeRadius * 1.6, u = a.db, d = u.getWardleyData(), f = u.getDiagramTitle(), p = d.size?.width ?? o.width, h = d.size?.height ?? o.height, g = m(r);
|
|
366
|
+
g.selectAll("*").remove(), c(g, h, p, o.useMaxWidth), g.attr("viewBox", `0 0 ${p} ${h}`);
|
|
362
367
|
let _ = g.append("g").attr("class", "wardley-map"), v = g.append("defs");
|
|
363
|
-
v.append("marker").attr("id", `arrow-${
|
|
364
|
-
let y =
|
|
365
|
-
|
|
366
|
-
let x = /* @__PURE__ */
|
|
367
|
-
C.append("line").attr("x1",
|
|
368
|
-
let w =
|
|
369
|
-
C.append("text").attr("class", "wardley-axis-label wardley-axis-label-x").attr("x",
|
|
370
|
-
let E =
|
|
368
|
+
v.append("marker").attr("id", `arrow-${r}`).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", s.evolutionStroke).attr("stroke", "none"), v.append("marker").attr("id", `link-arrow-end-${r}`).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", s.linkStroke).attr("stroke", "none"), v.append("marker").attr("id", `link-arrow-start-${r}`).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", s.linkStroke).attr("stroke", "none"), _.append("rect").attr("class", "wardley-background").attr("width", p).attr("height", h).attr("fill", s.backgroundColor);
|
|
369
|
+
let y = p - o.padding * 2, b = h - o.padding * 2;
|
|
370
|
+
f && _.append("text").attr("class", "wardley-title").attr("x", p / 2).attr("y", o.padding / 2).attr("fill", s.axisTextColor).attr("font-size", o.axisFontSize * 1.05).attr("font-weight", "bold").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(f);
|
|
371
|
+
let x = /* @__PURE__ */ t((e) => o.padding + e / 100 * y, "projectX"), S = /* @__PURE__ */ t((e) => h - o.padding - e / 100 * b, "projectY"), C = _.append("g").attr("class", "wardley-axes");
|
|
372
|
+
C.append("line").attr("x1", o.padding).attr("x2", p - o.padding).attr("y1", h - o.padding).attr("y2", h - o.padding).attr("stroke", s.axisColor).attr("stroke-width", 1), C.append("line").attr("x1", o.padding).attr("x2", o.padding).attr("y1", o.padding).attr("y2", h - o.padding).attr("stroke", s.axisColor).attr("stroke-width", 1);
|
|
373
|
+
let w = d.axes.xLabel ?? "Evolution", T = d.axes.yLabel ?? "Visibility";
|
|
374
|
+
C.append("text").attr("class", "wardley-axis-label wardley-axis-label-x").attr("x", o.padding + y / 2).attr("y", h - o.padding / 4).attr("fill", s.axisTextColor).attr("font-size", o.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", o.padding / 3).attr("y", o.padding + b / 2).attr("fill", s.axisTextColor).attr("font-size", o.axisFontSize).attr("font-weight", "bold").attr("text-anchor", "middle").attr("transform", `rotate(-90 ${o.padding / 3} ${o.padding + b / 2})`).text(T);
|
|
375
|
+
let E = d.axes.stages && d.axes.stages.length > 0 ? d.axes.stages : H;
|
|
371
376
|
if (E.length > 0) {
|
|
372
|
-
let e = _.append("g").attr("class", "wardley-stages"), t =
|
|
377
|
+
let e = _.append("g").attr("class", "wardley-stages"), t = d.axes.stageBoundaries, n = [];
|
|
373
378
|
if (t && t.length === E.length) {
|
|
374
379
|
let e = 0;
|
|
375
380
|
t.forEach((t) => {
|
|
@@ -388,160 +393,160 @@ var z = {
|
|
|
388
393
|
});
|
|
389
394
|
}
|
|
390
395
|
E.forEach((t, r) => {
|
|
391
|
-
let
|
|
392
|
-
r > 0 && e.append("line").attr("x1",
|
|
396
|
+
let i = n[r], a = o.padding + i.start * y, c = (a + (o.padding + i.end * y)) / 2;
|
|
397
|
+
r > 0 && e.append("line").attr("x1", a).attr("x2", a).attr("y1", o.padding).attr("y2", h - o.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 - o.padding / 1.5).attr("fill", s.axisTextColor).attr("font-size", o.axisFontSize - 2).attr("text-anchor", "middle").text(t);
|
|
393
398
|
});
|
|
394
399
|
}
|
|
395
|
-
if (
|
|
400
|
+
if (o.showGrid) {
|
|
396
401
|
let e = _.append("g").attr("class", "wardley-grid");
|
|
397
402
|
for (let t = 1; t < 4; t++) {
|
|
398
|
-
let n = t / 4, r =
|
|
399
|
-
e.append("line").attr("x1", r).attr("x2", r).attr("y1",
|
|
403
|
+
let n = t / 4, r = o.padding + y * n;
|
|
404
|
+
e.append("line").attr("x1", r).attr("x2", r).attr("y1", o.padding).attr("y2", h - o.padding).attr("stroke", s.gridColor).attr("stroke-dasharray", "2 6"), e.append("line").attr("x1", o.padding).attr("x2", p - o.padding).attr("y1", h - o.padding - b * n).attr("y2", h - o.padding - b * n).attr("stroke", s.gridColor).attr("stroke-dasharray", "2 6");
|
|
400
405
|
}
|
|
401
406
|
}
|
|
402
407
|
let D = /* @__PURE__ */ new Map();
|
|
403
|
-
if (
|
|
408
|
+
if (d.nodes.forEach((e) => {
|
|
404
409
|
D.set(e.id, {
|
|
405
410
|
x: x(e.x),
|
|
406
411
|
y: S(e.y),
|
|
407
412
|
node: e
|
|
408
413
|
});
|
|
409
|
-
}),
|
|
414
|
+
}), d.pipelines.length > 0) {
|
|
410
415
|
let e = _.append("g").attr("class", "wardley-pipelines"), t = _.append("g").attr("class", "wardley-pipeline-links");
|
|
411
|
-
|
|
416
|
+
d.pipelines.forEach((n) => {
|
|
412
417
|
if (n.componentIds.length === 0) return;
|
|
413
418
|
let r = n.componentIds.map((e) => ({
|
|
414
419
|
id: e,
|
|
415
420
|
pos: D.get(e),
|
|
416
|
-
node:
|
|
421
|
+
node: d.nodes.find((t) => t.id === e)
|
|
417
422
|
})).filter((e) => e.pos && e.node).sort((e, t) => e.node.x - t.node.x);
|
|
418
423
|
for (let e = 0; e < r.length - 1; e++) {
|
|
419
424
|
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",
|
|
425
|
+
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", s.linkStroke).attr("stroke-width", 1).attr("stroke-dasharray", "4 4");
|
|
421
426
|
}
|
|
422
|
-
let
|
|
427
|
+
let i = Infinity, a = -Infinity, c = 0;
|
|
423
428
|
if (n.componentIds.forEach((e) => {
|
|
424
429
|
let t = D.get(e);
|
|
425
|
-
t && (
|
|
426
|
-
}),
|
|
427
|
-
let t =
|
|
428
|
-
|
|
430
|
+
t && (i = Math.min(i, t.x), a = Math.max(a, t.x), c = t.y);
|
|
431
|
+
}), i !== Infinity && a !== -Infinity) {
|
|
432
|
+
let t = o.nodeRadius * 4, r = c - t / 2, u = D.get(n.nodeId);
|
|
433
|
+
u && (u.x = (i + a) / 2, u.y = r - l / 6), e.append("rect").attr("class", "wardley-pipeline-box").attr("x", i - 15).attr("y", r).attr("width", a - i + 30).attr("height", t).attr("fill", "none").attr("stroke", s.axisColor).attr("stroke-width", 1.5).attr("rx", 4).attr("ry", 4);
|
|
429
434
|
}
|
|
430
435
|
});
|
|
431
436
|
}
|
|
432
437
|
let O = _.append("g").attr("class", "wardley-links"), k = /* @__PURE__ */ new Map();
|
|
433
|
-
|
|
438
|
+
d.pipelines.forEach((e) => {
|
|
434
439
|
k.set(e.nodeId, new Set(e.componentIds));
|
|
435
440
|
});
|
|
436
|
-
let A =
|
|
441
|
+
let A = d.links.filter((e) => !(!D.has(e.source) || !D.has(e.target) || k.get(e.target)?.has(e.source)));
|
|
437
442
|
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 =
|
|
439
|
-
return t.x +
|
|
443
|
+
let t = D.get(e.source), n = D.get(e.target), r = d.nodes.find((t) => t.id === e.source).isPipelineParent ? l / Math.sqrt(2) : o.nodeRadius, i = n.x - t.x, a = n.y - t.y, s = Math.sqrt(i * i + a * a);
|
|
444
|
+
return t.x + i / s * r;
|
|
440
445
|
}).attr("y1", (e) => {
|
|
441
|
-
let t = D.get(e.source), n = D.get(e.target), r =
|
|
442
|
-
return t.y +
|
|
446
|
+
let t = D.get(e.source), n = D.get(e.target), r = d.nodes.find((t) => t.id === e.source).isPipelineParent ? l / Math.sqrt(2) : o.nodeRadius, i = n.x - t.x, a = n.y - t.y, s = Math.sqrt(i * i + a * a);
|
|
447
|
+
return t.y + a / s * r;
|
|
443
448
|
}).attr("x2", (e) => {
|
|
444
|
-
let t = D.get(e.source), n = D.get(e.target), r =
|
|
445
|
-
return n.x +
|
|
449
|
+
let t = D.get(e.source), n = D.get(e.target), r = d.nodes.find((t) => t.id === e.target).isPipelineParent ? l / Math.sqrt(2) : o.nodeRadius, i = t.x - n.x, a = t.y - n.y, s = Math.sqrt(i * i + a * a);
|
|
450
|
+
return n.x + i / s * r;
|
|
446
451
|
}).attr("y2", (e) => {
|
|
447
|
-
let t = D.get(e.source), n = D.get(e.target), r =
|
|
448
|
-
return n.y +
|
|
449
|
-
}).attr("stroke",
|
|
452
|
+
let t = D.get(e.source), n = D.get(e.target), r = d.nodes.find((t) => t.id === e.target).isPipelineParent ? l / Math.sqrt(2) : o.nodeRadius, i = t.x - n.x, a = t.y - n.y, s = Math.sqrt(i * i + a * a);
|
|
453
|
+
return n.y + a / s * r;
|
|
454
|
+
}).attr("stroke", s.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-${r})` : null).attr("marker-start", (e) => e.flow === "backward" || e.flow === "bidirectional" ? `url(#link-arrow-start-${r})` : null), O.selectAll("text").data(A.filter((e) => e.label)).enter().append("text").attr("class", "wardley-link-label").attr("x", (e) => {
|
|
450
455
|
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
456
|
return r + i / Math.sqrt(a * a + i * i) * 8;
|
|
452
457
|
}).attr("y", (e) => {
|
|
453
458
|
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
459
|
return r + -i / o * 8;
|
|
455
|
-
}).attr("fill",
|
|
460
|
+
}).attr("fill", s.axisTextColor).attr("font-size", o.labelFontSize).attr("text-anchor", "middle").attr("dominant-baseline", "middle").attr("transform", (e) => {
|
|
456
461
|
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
462
|
return (f > 90 || f < -90) && (f += 180), `rotate(${f} ${u} ${d})`;
|
|
458
463
|
}).text((e) => e.label);
|
|
459
|
-
let j = _.append("g").attr("class", "wardley-trends"), M =
|
|
464
|
+
let j = _.append("g").attr("class", "wardley-trends"), M = d.trends.map((e) => {
|
|
460
465
|
let t = D.get(e.nodeId);
|
|
461
466
|
if (!t) return null;
|
|
462
|
-
let n = x(e.targetX), r = S(e.targetY),
|
|
467
|
+
let n = x(e.targetX), r = S(e.targetY), i = n - t.x, a = r - t.y, s = Math.sqrt(i * i + a * a), c = o.nodeRadius + 2;
|
|
463
468
|
return {
|
|
464
469
|
origin: t,
|
|
465
470
|
targetX: n,
|
|
466
471
|
targetY: r,
|
|
467
|
-
adjustedX2: s > c ? n -
|
|
468
|
-
adjustedY2: s > c ? r -
|
|
472
|
+
adjustedX2: s > c ? n - i / s * c : n,
|
|
473
|
+
adjustedY2: s > c ? r - a / s * c : r
|
|
469
474
|
};
|
|
470
475
|
}).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",
|
|
472
|
-
let N = _.append("g").attr("class", "wardley-nodes").selectAll("g").data(
|
|
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",
|
|
476
|
+
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", s.evolutionStroke).attr("stroke-width", 1).attr("stroke-dasharray", "4 4").attr("marker-end", `url(#arrow-${r})`);
|
|
477
|
+
let N = _.append("g").attr("class", "wardley-nodes").selectAll("g").data(d.nodes).enter().append("g").attr("class", (e) => ["wardley-node", e.className ? `wardley-node--${e.className}` : ""].filter(Boolean).join(" "));
|
|
478
|
+
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", o.nodeRadius * 2).attr("fill", "#666").attr("stroke", s.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", o.nodeRadius * 2).attr("fill", "#ccc").attr("stroke", s.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", o.nodeRadius * 2).attr("fill", "#eee").attr("stroke", "#000").attr("stroke-width", 1);
|
|
474
479
|
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",
|
|
476
|
-
let F =
|
|
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",
|
|
478
|
-
let t = D.get(e.id), n = e.isPipelineParent ?
|
|
479
|
-
return e.sourceStrategy && (n +=
|
|
480
|
+
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", o.nodeRadius * 2).attr("fill", "white").attr("stroke", s.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", o.nodeRadius).attr("fill", s.componentFill).attr("stroke", s.componentStroke).attr("stroke-width", 1);
|
|
481
|
+
let F = o.nodeRadius * .7, I = o.nodeRadius * 1.2;
|
|
482
|
+
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", s.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", s.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", s.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", s.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", s.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", s.componentStroke).attr("stroke-width", 2), N.filter((e) => e.isPipelineParent === !0).append("rect").attr("x", (e) => D.get(e.id).x - l / 2).attr("y", (e) => D.get(e.id).y - l / 2).attr("width", l).attr("height", l).attr("fill", s.componentFill).attr("stroke", s.componentStroke).attr("stroke-width", 1), N.filter((e) => e.inertia === !0).append("line").attr("class", "wardley-inertia").attr("x1", (e) => {
|
|
483
|
+
let t = D.get(e.id), n = e.isPipelineParent ? l / 2 + 15 : o.nodeRadius + 15;
|
|
484
|
+
return e.sourceStrategy && (n += o.nodeRadius + 10), t.x + n;
|
|
480
485
|
}).attr("y1", (e) => {
|
|
481
|
-
let t = D.get(e.id), n = e.isPipelineParent ?
|
|
486
|
+
let t = D.get(e.id), n = e.isPipelineParent ? l : o.nodeRadius * 2;
|
|
482
487
|
return t.y - n / 2;
|
|
483
488
|
}).attr("x2", (e) => {
|
|
484
|
-
let t = D.get(e.id), n = e.isPipelineParent ?
|
|
485
|
-
return e.sourceStrategy && (n +=
|
|
489
|
+
let t = D.get(e.id), n = e.isPipelineParent ? l / 2 + 15 : o.nodeRadius + 15;
|
|
490
|
+
return e.sourceStrategy && (n += o.nodeRadius + 10), t.x + n;
|
|
486
491
|
}).attr("y2", (e) => {
|
|
487
|
-
let t = D.get(e.id), n = e.isPipelineParent ?
|
|
492
|
+
let t = D.get(e.id), n = e.isPipelineParent ? l : o.nodeRadius * 2;
|
|
488
493
|
return t.y + n / 2;
|
|
489
|
-
}).attr("stroke",
|
|
494
|
+
}).attr("stroke", s.componentStroke).attr("stroke-width", 6), N.append("text").attr("x", (e) => {
|
|
490
495
|
let t = D.get(e.id);
|
|
491
496
|
if (e.className === "anchor") return e.labelOffsetX === void 0 ? t.x : t.x + e.labelOffsetX;
|
|
492
|
-
let n =
|
|
497
|
+
let n = o.nodeLabelOffset;
|
|
493
498
|
e.sourceStrategy && e.labelOffsetX === void 0 && (n += 10);
|
|
494
499
|
let r = e.labelOffsetX ?? n;
|
|
495
500
|
return t.x + r;
|
|
496
501
|
}).attr("y", (e) => {
|
|
497
502
|
let t = D.get(e.id);
|
|
498
503
|
if (e.className === "anchor") return e.labelOffsetY === void 0 ? t.y - 3 : t.y + e.labelOffsetY;
|
|
499
|
-
let n = -
|
|
504
|
+
let n = -o.nodeLabelOffset;
|
|
500
505
|
e.sourceStrategy && e.labelOffsetY === void 0 && (n -= 10);
|
|
501
506
|
let r = e.labelOffsetY ?? n;
|
|
502
507
|
return t.y + r;
|
|
503
|
-
}).attr("class", "wardley-node-label").attr("fill", (e) => e.className === "evolved" ?
|
|
508
|
+
}).attr("class", "wardley-node-label").attr("fill", (e) => e.className === "evolved" ? s.evolutionStroke : e.className === "anchor" ? "#000" : s.componentLabelColor).attr("font-size", o.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), d.annotations.length > 0) {
|
|
504
509
|
let e = _.append("g").attr("class", "wardley-annotations");
|
|
505
|
-
if (
|
|
510
|
+
if (d.annotations.forEach((t) => {
|
|
506
511
|
let n = t.coordinates.map((e) => ({
|
|
507
512
|
x: x(e.x),
|
|
508
513
|
y: S(e.y)
|
|
509
514
|
}));
|
|
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",
|
|
515
|
+
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", s.axisColor).attr("stroke-width", 1.5).attr("stroke-dasharray", "4 4");
|
|
511
516
|
n.forEach((n) => {
|
|
512
517
|
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",
|
|
518
|
+
r.append("circle").attr("cx", n.x).attr("cy", n.y).attr("r", 10).attr("fill", "white").attr("stroke", s.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", s.axisTextColor).attr("font-weight", "bold").text(t.number);
|
|
514
519
|
});
|
|
515
|
-
}),
|
|
516
|
-
let t = x(
|
|
517
|
-
if (
|
|
518
|
-
let o = r.append("text").attr("x", t + 10).attr("y", n + 10 + (i + 1) * 16).attr("font-size", 11).attr("fill",
|
|
519
|
-
|
|
520
|
-
}),
|
|
520
|
+
}), d.annotationsBox) {
|
|
521
|
+
let t = x(d.annotationsBox.x), n = S(d.annotationsBox.y), r = e.append("g").attr("class", "wardley-annotations-box"), i = [...d.annotations].filter((e) => e.text).sort((e, t) => e.number - t.number), a = [];
|
|
522
|
+
if (i.forEach((e, i) => {
|
|
523
|
+
let o = r.append("text").attr("x", t + 10).attr("y", n + 10 + (i + 1) * 16).attr("font-size", 11).attr("fill", s.axisTextColor).attr("text-anchor", "start").attr("dominant-baseline", "middle").text(`${e.number}. ${e.text}`);
|
|
524
|
+
a.push(o);
|
|
525
|
+
}), a.length > 0) {
|
|
521
526
|
let e = 0, c = 0;
|
|
522
|
-
|
|
527
|
+
a.forEach((t) => {
|
|
523
528
|
let n = t.node(), r = n.getComputedTextLength();
|
|
524
529
|
e = Math.max(e, r);
|
|
525
530
|
let i = n.getBBox();
|
|
526
531
|
c = Math.max(c, i.height);
|
|
527
532
|
});
|
|
528
|
-
let l = e + 20 + 105, u =
|
|
529
|
-
t = Math.max(d, Math.min(t, f)), n = Math.max(
|
|
533
|
+
let l = e + 20 + 105, u = i.length * 16 + 20 + c / 2, d = o.padding, f = p - o.padding - l, m = o.padding, g = h - o.padding - u;
|
|
534
|
+
t = Math.max(d, Math.min(t, f)), n = Math.max(m, Math.min(n, g)), a.forEach((e, r) => {
|
|
530
535
|
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",
|
|
536
|
+
}), r.insert("rect", "text").attr("x", t).attr("y", n).attr("width", l).attr("height", u).attr("fill", "white").attr("stroke", s.axisColor).attr("stroke-width", 1.5).attr("rx", 4).attr("ry", 4);
|
|
532
537
|
}
|
|
533
538
|
}
|
|
534
539
|
}
|
|
535
|
-
if (
|
|
540
|
+
if (d.notes.length > 0) {
|
|
536
541
|
let e = _.append("g").attr("class", "wardley-notes");
|
|
537
|
-
|
|
542
|
+
d.notes.forEach((t) => {
|
|
538
543
|
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",
|
|
544
|
+
e.append("text").attr("x", n).attr("y", r).attr("text-anchor", "start").attr("font-size", 11).attr("fill", s.axisTextColor).attr("font-weight", "bold").text(t.text);
|
|
540
545
|
});
|
|
541
546
|
}
|
|
542
|
-
if (
|
|
547
|
+
if (d.accelerators.length > 0) {
|
|
543
548
|
let e = _.append("g").attr("class", "wardley-accelerators");
|
|
544
|
-
|
|
549
|
+
d.accelerators.forEach((t) => {
|
|
545
550
|
let n = x(t.x), r = S(t.y), i = `
|
|
546
551
|
M ${n} ${r - 30 / 2}
|
|
547
552
|
L ${n + 60 - 20} ${r - 30 / 2}
|
|
@@ -552,12 +557,12 @@ var z = {
|
|
|
552
557
|
L ${n} ${r + 30 / 2}
|
|
553
558
|
Z
|
|
554
559
|
`;
|
|
555
|
-
e.append("path").attr("d", i).attr("fill", "white").attr("stroke",
|
|
560
|
+
e.append("path").attr("d", i).attr("fill", "white").attr("stroke", s.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", s.axisTextColor).attr("font-weight", "bold").text(t.name);
|
|
556
561
|
});
|
|
557
562
|
}
|
|
558
|
-
if (
|
|
563
|
+
if (d.deaccelerators.length > 0) {
|
|
559
564
|
let e = _.append("g").attr("class", "wardley-deaccelerators");
|
|
560
|
-
|
|
565
|
+
d.deaccelerators.forEach((t) => {
|
|
561
566
|
let n = x(t.x), r = S(t.y), i = `
|
|
562
567
|
M ${n + 60} ${r - 30 / 2}
|
|
563
568
|
L ${n + 20} ${r - 30 / 2}
|
|
@@ -568,11 +573,72 @@ var z = {
|
|
|
568
573
|
L ${n + 60} ${r + 30 / 2}
|
|
569
574
|
Z
|
|
570
575
|
`;
|
|
571
|
-
e.append("path").attr("d", i).attr("fill", "white").attr("stroke",
|
|
576
|
+
e.append("path").attr("d", i).attr("fill", "white").attr("stroke", s.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", s.axisTextColor).attr("font-weight", "bold").text(t.name);
|
|
572
577
|
});
|
|
573
578
|
}
|
|
574
579
|
}, "draw") },
|
|
575
|
-
styles: /* @__PURE__ */
|
|
580
|
+
styles: /* @__PURE__ */ t(({ wardley: e } = {}) => {
|
|
581
|
+
let t = p(p(n(), s().themeVariables).wardley, e);
|
|
582
|
+
return `
|
|
583
|
+
.wardley-background {
|
|
584
|
+
fill: ${t.backgroundColor};
|
|
585
|
+
}
|
|
586
|
+
.wardley-axes line, .wardley-axes path {
|
|
587
|
+
stroke: ${t.axisColor};
|
|
588
|
+
}
|
|
589
|
+
.wardley-axis-label {
|
|
590
|
+
fill: ${t.axisTextColor};
|
|
591
|
+
}
|
|
592
|
+
.wardley-stage-label {
|
|
593
|
+
fill: ${t.axisTextColor};
|
|
594
|
+
}
|
|
595
|
+
.wardley-grid line {
|
|
596
|
+
stroke: ${t.gridColor};
|
|
597
|
+
}
|
|
598
|
+
.wardley-node circle {
|
|
599
|
+
fill: ${t.componentFill};
|
|
600
|
+
stroke: ${t.componentStroke};
|
|
601
|
+
}
|
|
602
|
+
.wardley-node-label {
|
|
603
|
+
fill: ${t.componentLabelColor};
|
|
604
|
+
}
|
|
605
|
+
.wardley-link {
|
|
606
|
+
stroke: ${t.linkStroke};
|
|
607
|
+
}
|
|
608
|
+
.wardley-link--dashed {
|
|
609
|
+
stroke-dasharray: 4 4;
|
|
610
|
+
}
|
|
611
|
+
.wardley-link-label {
|
|
612
|
+
fill: ${t.axisTextColor};
|
|
613
|
+
}
|
|
614
|
+
.wardley-trend line {
|
|
615
|
+
stroke: ${t.evolutionStroke};
|
|
616
|
+
}
|
|
617
|
+
.wardley-annotation-line {
|
|
618
|
+
stroke: ${t.annotationStroke};
|
|
619
|
+
}
|
|
620
|
+
.wardley-annotation circle {
|
|
621
|
+
fill: ${t.annotationFill};
|
|
622
|
+
stroke: ${t.annotationStroke};
|
|
623
|
+
}
|
|
624
|
+
.wardley-annotation text {
|
|
625
|
+
fill: ${t.annotationTextColor};
|
|
626
|
+
}
|
|
627
|
+
.wardley-annotations-box rect {
|
|
628
|
+
fill: ${t.annotationFill};
|
|
629
|
+
stroke: ${t.annotationStroke};
|
|
630
|
+
}
|
|
631
|
+
.wardley-annotations-box text {
|
|
632
|
+
fill: ${t.annotationTextColor};
|
|
633
|
+
}
|
|
634
|
+
.wardley-pipeline-box {
|
|
635
|
+
stroke: ${t.componentStroke};
|
|
636
|
+
}
|
|
637
|
+
.wardley-notes text {
|
|
638
|
+
fill: ${t.axisTextColor};
|
|
639
|
+
}
|
|
640
|
+
`;
|
|
641
|
+
}, "styles")
|
|
576
642
|
};
|
|
577
643
|
//#endregion
|
|
578
|
-
export {
|
|
644
|
+
export { G as diagram };
|