@sme.up/ketchup2 2.10.0 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{abnfDiagram-VCTEODGH-jIDWUpNo.js → abnfDiagram-WEYOIA3C-BGzUWx_N.js} +18 -18
- package/dist/{arc-DXfwi1YX.js → arc-Cde31fHX.js} +1 -1
- package/dist/architecture-WOLXFQ4H-CjGAyYHf.js +2 -0
- package/dist/{architectureDiagram-5GKGNRK7-C1xA1c3c.js → architectureDiagram-ZHVYKT53-DH-D4G0y.js} +138 -153
- package/dist/assets/svg/magnify-minus.svg +1 -0
- package/dist/assets/svg/magnify-plus.svg +1 -0
- package/dist/basic-components/button-group/button-group.d.ts.map +1 -1
- package/dist/basic-components/cell/cell-types.d.ts +8 -0
- package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
- package/dist/basic-components/cell/cell.d.ts.map +1 -1
- package/dist/basic-components/checkbox/checkbox.d.ts.map +1 -1
- package/dist/basic-components/chips/chips-types.d.ts +13 -0
- package/dist/basic-components/chips/chips-types.d.ts.map +1 -1
- package/dist/basic-components/chips/chips.d.ts.map +1 -1
- package/dist/basic-components/date-picker/date-picker-types.d.ts +4 -0
- package/dist/basic-components/date-picker/date-picker-types.d.ts.map +1 -1
- package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
- package/dist/basic-components/input-number/input-number.d.ts.map +1 -1
- package/dist/basic-components/radio/radio.d.ts.map +1 -1
- package/dist/basic-components/slider/slider.d.ts.map +1 -1
- package/dist/basic-components/text/text.d.ts.map +1 -1
- package/dist/basic-components/textarea/textarea-types.d.ts +2 -2
- package/dist/basic-components/textarea/textarea.d.ts.map +1 -1
- package/dist/basic-components/textfield/textfield-types.d.ts +7 -2
- 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/typography/typography.d.ts.map +1 -1
- package/dist/{blockDiagram-I7D4REHJ-C0hlmHW8.js → blockDiagram-RJAE7QA3-hRpbCaPL.js} +329 -316
- package/dist/{c4Diagram-7LVT6UL2-DwTMAxzR.js → c4Diagram-XDPPPE54-Bkqvkv8O.js} +350 -340
- package/dist/channel-CcHUzwZl.js +5 -0
- package/dist/{chunk-SVP7TREG-f53BROgh.js → chunk-2E7WHVMD-DSYBrngB.js} +77 -77
- package/dist/chunk-4EMNKR2T-CndbTVTA.js +236 -0
- package/dist/{chunk-F27PBJKO-DPhiW07t.js → chunk-55XCU76K-B1HtPImz.js} +16 -16
- package/dist/{chunk-75Z2AOVW-CLjRECiG.js → chunk-7S6XSTFO-CN6S2H1-.js} +304 -305
- package/dist/{chunk-GMAD6QVW-Cnp61Cie.js → chunk-AQDTSKZB-DuUha9al.js} +386 -433
- package/dist/{chunk-DU6HZSFF-D9v_2L4Z.js → chunk-DSNLSHJZ-B1A8wsiA.js} +1078 -984
- package/dist/chunk-DUW6YSOI-BdOla2G8.js +10 -0
- package/dist/chunk-EJLWFMJV-Cu6XnLfk.js +75 -0
- package/dist/chunk-HAGFOTED-IzyIoLzD.js +4487 -0
- package/dist/chunk-HNE4Q36P-7zVKLE_b.js +363 -0
- package/dist/chunk-J5ZVWO5B-CYzz6Pq8.js +12 -0
- package/dist/{chunk-LNGE3PJU-CtYcu9x8.js → chunk-LNGE3PJU-ByFTjlja.js} +15 -19
- package/dist/chunk-NGNAAXSQ-Tr--SG_c.js +19832 -0
- package/dist/{chunk-SHT3W25Y-aBBFlrSX.js → chunk-NQOKRVIF-CEJ-prlJ.js} +483 -414
- package/dist/chunk-OYAV6JZA-Cypx4hYu.js +14 -0
- package/dist/{chunk-P2QGCYS3-667SFjNY.js → chunk-UHW7PFBP-CoHGQVjo.js} +6 -6
- package/dist/chunk-VQ5W62QI-BSDHmyws.js +26 -0
- package/dist/{chunk-OSK3NFVY-qg1q5TTI.js → chunk-WQQL4CDK-BJE6isq-.js} +312 -288
- package/dist/chunk-XXDRQBXY-CU-dbs05.js +9 -0
- package/dist/{chunk-PWAF6VOD-z0rQy52m.js → chunk-YZO67HFG-Bcmpw0dX.js} +28 -28
- package/dist/{chunk-GVQU2GXP-BJ9OHC7T.js → chunk-ZAUX2LTX-Bu7BRVL6.js} +14 -14
- package/dist/chunk-ZCHMQSOR-BA1QQ4D6.js +354 -0
- package/dist/{chunk-TICWLB2K-DzrOz9kL.js → classDiagram-v2-4MYWR3UA-Bnh650R8.js} +333 -293
- package/dist/components/app-bar/app-bar-utils.d.ts.map +1 -1
- package/dist/components/calendar/calendar-available-height.d.ts +14 -0
- package/dist/components/calendar/calendar-available-height.d.ts.map +1 -0
- package/dist/components/calendar/calendar-types.d.ts +20 -8
- package/dist/components/calendar/calendar-types.d.ts.map +1 -1
- package/dist/components/calendar/calendar-utils.d.ts +94 -37
- package/dist/components/calendar/calendar-utils.d.ts.map +1 -1
- package/dist/components/calendar/calendar.d.ts.map +1 -1
- package/dist/components/calendar/views/calendar-event-text.d.ts +14 -3
- package/dist/components/calendar/views/calendar-event-text.d.ts.map +1 -1
- package/dist/components/calendar/views/calendar-month-grid.d.ts +4 -4
- package/dist/components/calendar/views/calendar-month-grid.d.ts.map +1 -1
- package/dist/components/calendar/views/calendar-more-events.d.ts +1 -1
- package/dist/components/calendar/views/calendar-more-events.d.ts.map +1 -1
- package/dist/components/calendar/views/calendar-time-grid.d.ts +4 -0
- package/dist/components/calendar/views/calendar-time-grid.d.ts.map +1 -1
- package/dist/components/data-table/assets/data-table-row-actions.d.ts +1 -1
- package/dist/components/data-table/cell-actions/cell-actions-types.d.ts +12 -0
- package/dist/components/data-table/cell-actions/cell-actions-types.d.ts.map +1 -0
- package/dist/components/data-table/cell-actions/cell-actions-utils.d.ts +29 -0
- package/dist/components/data-table/cell-actions/cell-actions-utils.d.ts.map +1 -0
- package/dist/components/data-table/cell-actions/cell-actions-utils.test.d.ts +2 -0
- package/dist/components/data-table/cell-actions/cell-actions-utils.test.d.ts.map +1 -0
- package/dist/components/data-table/cell-actions/cell-actions.d.ts +6 -0
- package/dist/components/data-table/cell-actions/cell-actions.d.ts.map +1 -0
- package/dist/components/data-table/column-menu/column-menu-types.d.ts +32 -0
- package/dist/components/data-table/column-menu/column-menu-types.d.ts.map +1 -0
- package/dist/components/data-table/column-menu/column-menu.d.ts +11 -0
- package/dist/components/data-table/column-menu/column-menu.d.ts.map +1 -0
- package/dist/components/data-table/columns/columns-utils.d.ts +11 -2
- package/dist/components/data-table/columns/columns-utils.d.ts.map +1 -1
- package/dist/components/data-table/columns/useColumnWidths.d.ts +24 -1
- package/dist/components/data-table/columns/useColumnWidths.d.ts.map +1 -1
- package/dist/components/data-table/data-table-types.d.ts +191 -38
- package/dist/components/data-table/data-table-types.d.ts.map +1 -1
- package/dist/components/data-table/data-table.d.ts.map +1 -1
- package/dist/components/data-table/filtering/data-table-filter-utils.d.ts +19 -2
- package/dist/components/data-table/filtering/data-table-filter-utils.d.ts.map +1 -1
- package/dist/components/data-table/fixed/fixed-utils.d.ts +6 -0
- package/dist/components/data-table/fixed/fixed-utils.d.ts.map +1 -1
- package/dist/components/data-table/footer/footer-types.d.ts +22 -8
- package/dist/components/data-table/footer/footer-types.d.ts.map +1 -1
- package/dist/components/data-table/footer/footer.d.ts.map +1 -1
- package/dist/components/data-table/group-row/group-row-types.d.ts +29 -1
- package/dist/components/data-table/group-row/group-row-types.d.ts.map +1 -1
- package/dist/components/data-table/group-row/group-row.d.ts.map +1 -1
- package/dist/components/data-table/grouping/buildFlatGroupedRows.d.ts +11 -5
- package/dist/components/data-table/grouping/buildFlatGroupedRows.d.ts.map +1 -1
- package/dist/components/data-table/grouping/datatable-groups-utils.d.ts +11 -1
- package/dist/components/data-table/grouping/datatable-groups-utils.d.ts.map +1 -1
- package/dist/components/data-table/grouping/group-expansion.d.ts +16 -0
- package/dist/components/data-table/grouping/group-expansion.d.ts.map +1 -0
- package/dist/components/data-table/grouping/grouping-types.d.ts +9 -0
- package/dist/components/data-table/grouping/grouping-types.d.ts.map +1 -1
- package/dist/components/data-table/header/Header.d.ts.map +1 -1
- package/dist/components/data-table/header/header-toolbar/header-toolbar-types.d.ts +44 -0
- package/dist/components/data-table/header/header-toolbar/header-toolbar-types.d.ts.map +1 -0
- package/dist/components/data-table/header/header-toolbar/header-toolbar.d.ts +8 -0
- package/dist/components/data-table/header/header-toolbar/header-toolbar.d.ts.map +1 -0
- package/dist/components/data-table/header/header-types.d.ts +32 -21
- package/dist/components/data-table/header/header-types.d.ts.map +1 -1
- package/dist/components/data-table/load-more-row/load-more-row.d.ts +8 -0
- package/dist/components/data-table/load-more-row/load-more-row.d.ts.map +1 -0
- package/dist/components/data-table/load-more-row/load-more-types.d.ts +11 -0
- package/dist/components/data-table/load-more-row/load-more-types.d.ts.map +1 -0
- package/dist/components/data-table/sorting/buildDftSort.d.ts +16 -0
- package/dist/components/data-table/sorting/buildDftSort.d.ts.map +1 -0
- package/dist/components/data-table/sorting/buildDftSort.test.d.ts +2 -0
- package/dist/components/data-table/sorting/buildDftSort.test.d.ts.map +1 -0
- package/dist/components/data-table/sorting/parseDftSort.d.ts +4 -4
- package/dist/components/data-table/sorting/parseDftSort.d.ts.map +1 -1
- package/dist/components/data-table/sorting/sortTable-utils.d.ts +10 -0
- package/dist/components/data-table/sorting/sortTable-utils.d.ts.map +1 -1
- package/dist/components/data-table/sorting/useSortableTable.d.ts +10 -4
- package/dist/components/data-table/sorting/useSortableTable.d.ts.map +1 -1
- package/dist/components/data-table/state/datatable-state.d.ts +14 -7
- package/dist/components/data-table/state/datatable-state.d.ts.map +1 -1
- package/dist/components/data-table/stories/data-table-story-meta.d.ts +7 -0
- package/dist/components/data-table/stories/data-table-story-meta.d.ts.map +1 -0
- package/dist/components/data-table/useDataTableImperativeHandle.d.ts +23 -0
- package/dist/components/data-table/useDataTableImperativeHandle.d.ts.map +1 -0
- package/dist/components/data-table/useDataTableShortcuts.d.ts +19 -0
- package/dist/components/data-table/useDataTableShortcuts.d.ts.map +1 -0
- package/dist/components/echarts-graph/builders/echarts-graph-builders.d.ts.map +1 -1
- package/dist/components/echarts-graph/data/echarts-graph-data.d.ts +1 -1
- package/dist/components/echarts-graph/data/echarts-graph-data.d.ts.map +1 -1
- package/dist/components/echarts-graph/data/echarts-graph-tree.d.ts +12 -0
- package/dist/components/echarts-graph/data/echarts-graph-tree.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-tree.test.d.ts +2 -0
- package/dist/components/echarts-graph/data/echarts-graph-tree.test.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph-canvas.d.ts +34 -0
- package/dist/components/echarts-graph/echarts-graph-canvas.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph-from-table.d.ts +13 -0
- package/dist/components/echarts-graph/echarts-graph-from-table.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph-from-tree.d.ts +12 -0
- package/dist/components/echarts-graph/echarts-graph-from-tree.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph-hooks.d.ts +16 -0
- package/dist/components/echarts-graph/echarts-graph-hooks.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph-types.d.ts +24 -5
- package/dist/components/echarts-graph/echarts-graph-types.d.ts.map +1 -1
- package/dist/components/echarts-graph/echarts-graph.d.ts +10 -7
- package/dist/components/echarts-graph/echarts-graph.d.ts.map +1 -1
- package/dist/components/input-panel/input-panel-types.d.ts +7 -1
- package/dist/components/input-panel/input-panel-types.d.ts.map +1 -1
- package/dist/components/input-panel/input-panel.d.ts.map +1 -1
- package/dist/components/json-form/document-adapter.test.d.ts +2 -0
- package/dist/components/json-form/document-adapter.test.d.ts.map +1 -0
- package/dist/components/json-form/expression-evaluator.test.d.ts +2 -0
- package/dist/components/json-form/expression-evaluator.test.d.ts.map +1 -0
- package/dist/components/json-form/model/document-adapter.d.ts +54 -0
- package/dist/components/json-form/model/document-adapter.d.ts.map +1 -0
- package/dist/components/json-form/model/json-form-ajv.d.ts +12 -0
- package/dist/components/json-form/model/json-form-ajv.d.ts.map +1 -0
- package/dist/components/json-form/model/json-pointer.d.ts +20 -0
- package/dist/components/json-form/model/json-pointer.d.ts.map +1 -0
- package/dist/components/json-form/model/native-json-types.d.ts +5 -0
- package/dist/components/json-form/model/native-json-types.d.ts.map +1 -0
- package/dist/components/json-form/model/shape-event-support.d.ts +10 -0
- package/dist/components/json-form/model/shape-event-support.d.ts.map +1 -0
- package/dist/components/json-form/rule-controller.test.d.ts +2 -0
- package/dist/components/json-form/rule-controller.test.d.ts.map +1 -0
- package/dist/components/json-form/rules/expression-evaluator.d.ts +58 -0
- package/dist/components/json-form/rules/expression-evaluator.d.ts.map +1 -0
- package/dist/components/json-form/rules/rule-controller.d.ts +50 -0
- package/dist/components/json-form/rules/rule-controller.d.ts.map +1 -0
- package/dist/components/pdf/assets/pdf-fixtures.d.ts +6 -0
- package/dist/components/pdf/assets/pdf-fixtures.d.ts.map +1 -0
- package/dist/components/pdf/pdf-types.d.ts +17 -2
- package/dist/components/pdf/pdf-types.d.ts.map +1 -1
- package/dist/components/pdf/pdf-utils.d.ts +30 -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/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/toolbar/toolbar-nodes/toolbar-plain-node.d.ts.map +1 -1
- package/dist/context/test-utils.d.ts.map +1 -1
- package/dist/{cose-bilkent-JH36ORCC-Qs_Z6zBZ.js → cose-bilkent-JH36ORCC-DYLyHByQ.js} +77 -89
- package/dist/cynefin-EF2NZ3EQ-DZ1CSrfW.js +2 -0
- package/dist/{cynefinDiagram-5FMLGOSQ-3SByb22K.js → cynefinDiagram-WF24UDRP-bU_4r-FZ.js} +64 -64
- package/dist/{cytoscape.esm-C5TvPYYm.js → cytoscape.esm-BvXLQ91B.js} +412 -513
- package/dist/dagre-NK4GIZVX-B72HOuil.js +2352 -0
- package/dist/{diagram-VX7I27RA-DX39g4aO.js → diagram-CBK3MWTC-B-q-tUxd.js} +80 -80
- package/dist/diagram-I5XIIV2D-CMzniFEf.js +134 -0
- package/dist/{diagram-S7CK7UJ4-IhyDbKSO.js → diagram-ODIL2UCW-CrlDp0MP.js} +46 -54
- package/dist/{diagram-VSXAHHWV-CdX3XaQX.js → diagram-PFBEJUXE-hnrdzEe4.js} +136 -121
- package/dist/{diagram-UQ7AKVKN-CPDZJAkA.js → diagram-RJA3I4VV-DZW7CxE5.js} +43 -43
- package/dist/diagram-TYUNFSNR-cRJNHRy2.js +5069 -0
- package/dist/{dist-CsrMlyO_.js → dist-Bj7IMbKd.js} +1 -1
- package/dist/{ebnfDiagram-PWID7BFC-D0cmYo-k.js → ebnfDiagram-V4P3TTPT-Bm7KtfLA.js} +17 -17
- package/dist/echarts-C7ehbnCk.js +15485 -0
- package/dist/elk-QONTBCTQ-gWOTRRj4.js +47505 -0
- package/dist/{erDiagram-RLTQ6QDP-C-nlwQZa.js → erDiagram-KYQIGQAA-WZEbQwWz.js} +150 -146
- package/dist/eventmodeling-K75KTNOO-CEn7YBG4.js +2 -0
- package/dist/flowDiagram-IUGLLWBU-CRV2Bl2C.js +16 -0
- package/dist/functional-components/filter-group/filter-builder-operators.d.ts +15 -0
- package/dist/functional-components/filter-group/filter-builder-operators.d.ts.map +1 -0
- package/dist/functional-components/filter-group/filter-builder.d.ts +15 -1
- package/dist/functional-components/filter-group/filter-builder.d.ts.map +1 -1
- package/dist/functional-components/group-bar/group-bar-types.d.ts +16 -0
- package/dist/functional-components/group-bar/group-bar-types.d.ts.map +1 -1
- package/dist/functional-components/group-bar/group-bar.d.ts.map +1 -1
- package/dist/functional-components/helper-text/helper-text-types.d.ts +1 -1
- package/dist/functional-components/row/row-types.d.ts +27 -1
- 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/tree-picker/tree-picker-types.d.ts +5 -0
- package/dist/functional-components/tree-picker/tree-picker-types.d.ts.map +1 -1
- package/dist/{ganttDiagram-EL5Y4UJY-qQkBgEV6.js → ganttDiagram-R7GPNTJY-DFRGfQMr.js} +314 -310
- package/dist/gitGraph-VSP46ZUC-BSTikFaE.js +2 -0
- package/dist/{gitGraphDiagram-WWUBYQGX-D8cZBZXB.js → gitGraphDiagram-PDYL7XHY-nvoob8Ca.js} +250 -250
- package/dist/hooks/useVirtualListScroll.d.ts +7 -2
- package/dist/hooks/useVirtualListScroll.d.ts.map +1 -1
- package/dist/index.d.ts +2 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/info-OHQRW6UA-BGb3N889.js +2 -0
- package/dist/infoDiagram-MVDRKAX5-BqO_morw.js +20 -0
- package/dist/installCanvasRenderer-CgRxxRBg.js +29799 -0
- package/dist/{ishikawaDiagram-5VMMS53U-B0RvuZyG.js → ishikawaDiagram-HPEHV2GE-BE3amLYE.js} +27 -29
- package/dist/{journeyDiagram-3NMN7TZE-Dh8_Vc4e.js → journeyDiagram-BOSHW7O7-DE8ndsCi.js} +111 -111
- package/dist/{kanban-definition-UXKFOSKX-C99A4PsR.js → kanban-definition-FNSA4HC5-D72kc4EN.js} +135 -135
- package/dist/{katex-CT2p8LXT.js → katex-CDhNh-ZQ.js} +919 -1040
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +25049 -70453
- package/dist/{line-CkNoVxEr.js → line-ltPB6XbC.js} +1 -1
- package/dist/{linear-CXc5xaa6.js → linear-i6_MPSGL.js} +2 -3
- package/dist/locale/en/translation.json.d.ts +36 -5
- package/dist/locale/it/translation.json.d.ts +36 -5
- package/dist/{mermaid-parser.core-BwVmI_Rq.js → mermaid-parser.core-zUi7tSl-.js} +166 -172
- package/dist/{mindmap-definition-YA3MSWOX-D0ULN6M8.js → mindmap-definition-6OY57UG3-hH6Avsg4.js} +148 -145
- package/dist/packet-JDAUHWVQ-CKZoNg5j.js +2 -0
- package/dist/{pegDiagram-XKGWAZYB-BThnA3Uk.js → pegDiagram-ECIUJNBX-D3xLhrRh.js} +19 -19
- package/dist/pie-XZMESJXO-BnbWY8rE.js +2 -0
- package/dist/{pieDiagram-E7YTZNPT-CJ4LPitY.js → pieDiagram-GNMPY74T-Bd_UXypi.js} +39 -39
- package/dist/{quadrantDiagram-AXDQQJYC-nEwzg95_.js → quadrantDiagram-D57K4MC3-BAwweqT8.js} +149 -149
- package/dist/radar-ABXABTNO-D5CEmFBx.js +2 -0
- package/dist/railroad-I3PHUGI6-CxMiYaMH.js +2 -0
- package/dist/railroad-abnf-LNEFI6M7-C69KxGa-.js +2 -0
- package/dist/railroad-ebnf-DWYD2UWJ-D5Xd566k.js +2 -0
- package/dist/railroad-peg-JR7BVNR7-CD0OiqcS.js +2 -0
- package/dist/{railroadDiagram-O6MQD6OU-D_9gvx5m.js → railroadDiagram-Y72NRBL7-CPUbPgYX.js} +14 -14
- package/dist/{requirementDiagram-BXWQKSXE-BU3gTMjQ.js → requirementDiagram-EQYSW5RA-BXstYS3w.js} +97 -93
- package/dist/rolldown-runtime-5HNE8Q1r.js +23 -0
- package/dist/{sankeyDiagram-P5KCCOFB-BmNN-6y3.js → sankeyDiagram-SY24JHO5-Du-toJmg.js} +64 -64
- package/dist/{sequenceDiagram-WJ2MYXX4-QYJxbuz_.js → sequenceDiagram-BLEHNHQU-BNNnerZ-.js} +953 -868
- package/dist/{sizeCapture-INFHLROL-CHXIsPO_.js → sizeCapture-INFHLROL-DujrpAYz.js} +1 -1
- package/dist/{src-DQoflmwT.js → src-CY9Rz0Sf.js} +545 -566
- package/dist/{chunk-IMKFNOWR-yyUcHorm.js → stateDiagram-v2-A6IESKWZ-CfjPf8h7.js} +364 -267
- package/dist/{swimlanes-42K2YHIH-DkMzBkx7.js → swimlanes-B3ENRKFQ-Dumwq89C.js} +1356 -1590
- package/dist/swimlanesDiagram-AYQRV4AK-Boz_Azx7.js +28 -0
- package/dist/{timeline-definition-24CTP7MA-AvgVPsM_.js → timeline-definition-JXYKGLGB-ClzmRQCu.js} +354 -350
- package/dist/treeView-D4JQ5SDB-C3ue8DID.js +2 -0
- package/dist/treemap-SAJKECNS-BWis-Wpv.js +2 -0
- package/dist/types/data-structures.d.ts +11 -0
- package/dist/types/data-structures.d.ts.map +1 -1
- package/dist/types/global.d.ts +7 -2
- package/dist/types/global.d.ts.map +1 -1
- package/dist/types/translation.d.ts +35 -5
- package/dist/types/translation.d.ts.map +1 -1
- package/dist/usecaseDiagram-WPOLBNNX-ruZhXlYQ.js +7175 -0
- package/dist/utils/object-styles.d.ts +12 -0
- package/dist/utils/object-styles.d.ts.map +1 -0
- package/dist/utils/object-styles.test.d.ts +2 -0
- package/dist/utils/object-styles.test.d.ts.map +1 -0
- package/dist/utils/totals/totals-registry.d.ts +17 -0
- package/dist/utils/totals/totals-registry.d.ts.map +1 -0
- package/dist/utils/totals/totals-utils.d.ts +70 -7
- package/dist/utils/totals/totals-utils.d.ts.map +1 -1
- package/dist/utils/wrapper-types/list.d.ts.map +1 -1
- package/dist/{vennDiagram-4TSXK5OY-DBz_EnfL.js → vennDiagram-Q3Y3IDCW-L9GmqfCz.js} +118 -118
- package/dist/wardley-7MLQ67FV-DC0ayJCO.js +2 -0
- package/dist/{wardleyDiagram-VM6X3IG4-D4U_E7xl.js → wardleyDiagram-IVAIDKWA-Dz5K-UqN.js} +126 -126
- package/dist/{xychartDiagram-S5SC5T6Z-aHqeFP13.js → xychartDiagram-4URNHDU4-C2xwRx5F.js} +141 -137
- package/package.json +5 -3
- package/dist/architecture-7GRP2DOG-BsytjMto.js +0 -3
- package/dist/channel-BD0NTdCR.js +0 -5
- package/dist/chunk-2E4U76K2-CMCSmJ5_.js +0 -348
- package/dist/chunk-4HAMMTFA-DBtV-sHy.js +0 -4188
- package/dist/chunk-CLGD4ZFX-DdntjE3C.js +0 -14
- package/dist/chunk-FOHPRMQF-LRqOLsSw.js +0 -21456
- package/dist/chunk-L3NEJ4N5-Dd1FmxFn.js +0 -245
- package/dist/chunk-POPQ4Y6H-YFNrkrJW.js +0 -26
- package/dist/chunk-TLUHSLCS-Drk6ApJR.js +0 -59
- package/dist/chunk-XXDRQBXY-C1ZEFXGu.js +0 -9
- package/dist/classDiagram-ZZMXUADV-CaI6YU6r.js +0 -30
- package/dist/classDiagram-v2-VYDZK3BY-ClCVTcLo.js +0 -30
- package/dist/components/echart-graph-from-tree/echart-graph-from-tree-types.d.ts +0 -14
- package/dist/components/echart-graph-from-tree/echart-graph-from-tree-types.d.ts.map +0 -1
- package/dist/components/echart-graph-from-tree/echart-graph-from-tree.d.ts +0 -11
- package/dist/components/echart-graph-from-tree/echart-graph-from-tree.d.ts.map +0 -1
- package/dist/cynefin-OW5HDTMX-BJXlKro0.js +0 -3
- package/dist/dagre-D5csT9sx.js +0 -1934
- package/dist/dagre-GXQ25YYZ--Qf92cTs.js +0 -425
- package/dist/diagram-Z3DM3KII-DECfAI1l.js +0 -134
- package/dist/eventmodeling-NTZA5JFV-Cj-VH7yh.js +0 -3
- package/dist/flowDiagram-HODETNUW-LRjksS-j.js +0 -17
- package/dist/gitGraph-4MIJSDKK-C9JGDovl.js +0 -3
- package/dist/info-A6RAGUB7-CmZJKEaW.js +0 -3
- package/dist/infoDiagram-27XIBGKW-DXO97_PJ.js +0 -20
- package/dist/packet-AYTQ26CC-B3tgRshR.js +0 -3
- package/dist/pie-WAS4IAKB-BRiI8kbI.js +0 -3
- package/dist/radar-RG4KPBEZ-ASOMQXFw.js +0 -3
- package/dist/railroad-74A4TZTK-oS840SLr.js +0 -3
- package/dist/railroad-abnf-HS5TGJTU-nnQAkZY2.js +0 -3
- package/dist/railroad-ebnf-LZEXJU2U-DBQIOba3.js +0 -3
- package/dist/railroad-peg-WCYAUIDC-fBPN2TVb.js +0 -3
- package/dist/stateDiagram-D77RDMKH-0Jasv70t.js +0 -220
- package/dist/stateDiagram-v2-MP3YSRHH-JMSv8IGL.js +0 -30
- package/dist/swimlanesDiagram-VR7AAH4N-DtnUyaK5.js +0 -31
- package/dist/treeView-Q6P3EWNA-BmvB2b-_.js +0 -3
- package/dist/treemap-WGGIJYW6-Cjjk75wA.js +0 -3
- package/dist/wardley-WFR3VGLG-BamDiE0x.js +0 -3
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { i as p } from "./chunk-
|
|
5
|
-
import { t as m } from "./chunk-
|
|
6
|
-
import { n as h } from "./mermaid-parser.core-
|
|
1
|
+
import { C as e, E as t, H as n, U as r, _ as i, a, b as o, c as s, q as c, v as l, y as u } from "./chunk-DSNLSHJZ-B1A8wsiA.js";
|
|
2
|
+
import { n as d } from "./chunk-Y2CYZVJY-i11wjrBe.js";
|
|
3
|
+
import { m as f } from "./src-CY9Rz0Sf.js";
|
|
4
|
+
import { i as p } from "./chunk-7S6XSTFO-CN6S2H1-.js";
|
|
5
|
+
import { t as m } from "./chunk-OYAV6JZA-Cypx4hYu.js";
|
|
6
|
+
import { n as h } from "./mermaid-parser.core-zUi7tSl-.js";
|
|
7
7
|
import { t as g } from "./chunk-JWPE2WC7-Ccb0QaC8.js";
|
|
8
|
-
//#region node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-
|
|
9
|
-
var _ = /* @__PURE__ */
|
|
8
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-IVAIDKWA.mjs
|
|
9
|
+
var _ = /* @__PURE__ */ d((e, t) => {
|
|
10
10
|
let n = e <= 1 ? e * 100 : e;
|
|
11
11
|
if (n < 0 || n > 100) throw Error(`${t} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);
|
|
12
12
|
return n;
|
|
13
|
-
}, "toPercent"), v = /* @__PURE__ */
|
|
13
|
+
}, "toPercent"), v = /* @__PURE__ */ d((e, t, n) => ({
|
|
14
14
|
x: _(t, `${n} evolution`),
|
|
15
15
|
y: _(e, `${n} visibility`)
|
|
16
|
-
}), "toCoordinates"), y = /* @__PURE__ */
|
|
16
|
+
}), "toCoordinates"), y = /* @__PURE__ */ d((e) => {
|
|
17
17
|
if (e) {
|
|
18
18
|
if (e === "+<>") return "bidirectional";
|
|
19
19
|
if (e === "+<") return "backward";
|
|
20
20
|
if (e === "+>") return "forward";
|
|
21
21
|
}
|
|
22
|
-
}, "getFlowFromPort"), b = /* @__PURE__ */
|
|
22
|
+
}, "getFlowFromPort"), b = /* @__PURE__ */ d((e) => {
|
|
23
23
|
if (!e?.startsWith("+")) return {};
|
|
24
24
|
let t = /^\+'([^']*)'/.exec(e)?.[1];
|
|
25
25
|
return e.includes("<>") ? {
|
|
@@ -32,7 +32,7 @@ var _ = /* @__PURE__ */ f((e, t) => {
|
|
|
32
32
|
flow: "forward",
|
|
33
33
|
label: t
|
|
34
34
|
} : { label: t };
|
|
35
|
-
}, "extractFlowFromArrow"), x = /* @__PURE__ */
|
|
35
|
+
}, "extractFlowFromArrow"), x = /* @__PURE__ */ d((e, t) => {
|
|
36
36
|
if (g(e, t), e.size && t.setSize(e.size.width, e.size.height), e.evolution) {
|
|
37
37
|
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);
|
|
38
38
|
t.updateAxes({
|
|
@@ -87,19 +87,19 @@ var _ = /* @__PURE__ */ f((e, t) => {
|
|
|
87
87
|
});
|
|
88
88
|
}, "populateDb"), S = {
|
|
89
89
|
parser: { yy: void 0 },
|
|
90
|
-
parse: /* @__PURE__ */
|
|
91
|
-
let
|
|
92
|
-
|
|
93
|
-
let
|
|
94
|
-
if (!
|
|
95
|
-
x(
|
|
90
|
+
parse: /* @__PURE__ */ d(async (e) => {
|
|
91
|
+
let t = await h("wardley", e);
|
|
92
|
+
f.debug(t);
|
|
93
|
+
let n = S.parser?.yy;
|
|
94
|
+
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.");
|
|
95
|
+
x(t, n);
|
|
96
96
|
}, "parse")
|
|
97
97
|
}, C = new class {
|
|
98
98
|
constructor() {
|
|
99
99
|
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 = {};
|
|
100
100
|
}
|
|
101
101
|
static {
|
|
102
|
-
|
|
102
|
+
d(this, "WardleyBuilder");
|
|
103
103
|
}
|
|
104
104
|
addNode(e) {
|
|
105
105
|
let t = this.nodes.get(e.id) ?? {
|
|
@@ -197,9 +197,9 @@ var _ = /* @__PURE__ */ f((e, t) => {
|
|
|
197
197
|
}
|
|
198
198
|
}();
|
|
199
199
|
function w() {
|
|
200
|
-
return
|
|
200
|
+
return o()["wardley-beta"];
|
|
201
201
|
}
|
|
202
|
-
|
|
202
|
+
d(w, "getConfig");
|
|
203
203
|
function T(e, t, n, r, i, a, o, s, c) {
|
|
204
204
|
C.addNode({
|
|
205
205
|
id: e,
|
|
@@ -213,7 +213,7 @@ function T(e, t, n, r, i, a, o, s, c) {
|
|
|
213
213
|
sourceStrategy: c
|
|
214
214
|
});
|
|
215
215
|
}
|
|
216
|
-
|
|
216
|
+
d(T, "addNode");
|
|
217
217
|
function E(e, t, n = !1, r, i) {
|
|
218
218
|
C.addLink({
|
|
219
219
|
source: e,
|
|
@@ -223,7 +223,7 @@ function E(e, t, n = !1, r, i) {
|
|
|
223
223
|
flow: i
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
|
-
|
|
226
|
+
d(E, "addLink");
|
|
227
227
|
function D(e, t, n) {
|
|
228
228
|
C.addTrend({
|
|
229
229
|
nodeId: e,
|
|
@@ -231,7 +231,7 @@ function D(e, t, n) {
|
|
|
231
231
|
targetY: n
|
|
232
232
|
});
|
|
233
233
|
}
|
|
234
|
-
|
|
234
|
+
d(D, "addTrend");
|
|
235
235
|
function O(e, t, n) {
|
|
236
236
|
C.addAnnotation({
|
|
237
237
|
number: e,
|
|
@@ -239,7 +239,7 @@ function O(e, t, n) {
|
|
|
239
239
|
text: n
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
|
-
|
|
242
|
+
d(O, "addAnnotation");
|
|
243
243
|
function k(e, t, n) {
|
|
244
244
|
C.addNote({
|
|
245
245
|
text: e,
|
|
@@ -247,7 +247,7 @@ function k(e, t, n) {
|
|
|
247
247
|
y: n
|
|
248
248
|
});
|
|
249
249
|
}
|
|
250
|
-
|
|
250
|
+
d(k, "addNote");
|
|
251
251
|
function A(e, t, n) {
|
|
252
252
|
C.addAccelerator({
|
|
253
253
|
name: e,
|
|
@@ -255,7 +255,7 @@ function A(e, t, n) {
|
|
|
255
255
|
y: n
|
|
256
256
|
});
|
|
257
257
|
}
|
|
258
|
-
|
|
258
|
+
d(A, "addAccelerator");
|
|
259
259
|
function j(e, t, n) {
|
|
260
260
|
C.addDeaccelerator({
|
|
261
261
|
name: e,
|
|
@@ -263,43 +263,43 @@ function j(e, t, n) {
|
|
|
263
263
|
y: n
|
|
264
264
|
});
|
|
265
265
|
}
|
|
266
|
-
|
|
266
|
+
d(j, "addDeaccelerator");
|
|
267
267
|
function M(e, t) {
|
|
268
268
|
C.setAnnotationsBox(e, t);
|
|
269
269
|
}
|
|
270
|
-
|
|
270
|
+
d(M, "setAnnotationsBox");
|
|
271
271
|
function N(e, t) {
|
|
272
272
|
C.setSize(e, t);
|
|
273
273
|
}
|
|
274
|
-
|
|
274
|
+
d(N, "setSize");
|
|
275
275
|
function P(e) {
|
|
276
276
|
C.startPipeline(e);
|
|
277
277
|
}
|
|
278
|
-
|
|
278
|
+
d(P, "startPipeline");
|
|
279
279
|
function F(e, t) {
|
|
280
280
|
C.addPipelineComponent(e, t);
|
|
281
281
|
}
|
|
282
|
-
|
|
282
|
+
d(F, "addPipelineComponent");
|
|
283
283
|
function I(e) {
|
|
284
284
|
C.setAxes(e);
|
|
285
285
|
}
|
|
286
|
-
|
|
286
|
+
d(I, "updateAxes");
|
|
287
287
|
function L(e) {
|
|
288
288
|
return C.getNode(e);
|
|
289
289
|
}
|
|
290
|
-
|
|
290
|
+
d(L, "getNode");
|
|
291
291
|
function R(e) {
|
|
292
292
|
return C.resolveNodeId(e);
|
|
293
293
|
}
|
|
294
|
-
|
|
294
|
+
d(R, "resolveNodeId");
|
|
295
295
|
function z() {
|
|
296
296
|
return C.build();
|
|
297
297
|
}
|
|
298
|
-
|
|
298
|
+
d(z, "getWardleyData");
|
|
299
299
|
function B() {
|
|
300
300
|
C.clear(), a();
|
|
301
301
|
}
|
|
302
|
-
|
|
302
|
+
d(B, "clear");
|
|
303
303
|
var V = {
|
|
304
304
|
getConfig: w,
|
|
305
305
|
addNode: T,
|
|
@@ -318,19 +318,19 @@ var V = {
|
|
|
318
318
|
resolveNodeId: R,
|
|
319
319
|
getWardleyData: z,
|
|
320
320
|
clear: B,
|
|
321
|
-
setAccTitle:
|
|
322
|
-
getAccTitle:
|
|
323
|
-
setDiagramTitle:
|
|
324
|
-
getDiagramTitle:
|
|
325
|
-
getAccDescription:
|
|
321
|
+
setAccTitle: r,
|
|
322
|
+
getAccTitle: l,
|
|
323
|
+
setDiagramTitle: c,
|
|
324
|
+
getDiagramTitle: e,
|
|
325
|
+
getAccDescription: i,
|
|
326
326
|
setAccDescription: n
|
|
327
327
|
}, H = [
|
|
328
328
|
"Genesis",
|
|
329
329
|
"Custom Built",
|
|
330
330
|
"Product",
|
|
331
331
|
"Commodity"
|
|
332
|
-
], U = /* @__PURE__ */
|
|
333
|
-
let { themeVariables: e } =
|
|
332
|
+
], U = /* @__PURE__ */ d(() => {
|
|
333
|
+
let { themeVariables: e } = o();
|
|
334
334
|
return {
|
|
335
335
|
backgroundColor: e.wardley?.backgroundColor ?? e.background ?? "#fff",
|
|
336
336
|
axisColor: e.wardley?.axisColor ?? "#000",
|
|
@@ -345,8 +345,8 @@ var V = {
|
|
|
345
345
|
annotationTextColor: e.wardley?.annotationTextColor ?? e.primaryTextColor ?? "#222",
|
|
346
346
|
annotationFill: e.wardley?.annotationFill ?? e.background ?? "#fff"
|
|
347
347
|
};
|
|
348
|
-
}, "getTheme"), W = /* @__PURE__ */
|
|
349
|
-
let e =
|
|
348
|
+
}, "getTheme"), W = /* @__PURE__ */ d(() => {
|
|
349
|
+
let e = o()["wardley-beta"];
|
|
350
350
|
return {
|
|
351
351
|
width: e?.width ?? 900,
|
|
352
352
|
height: e?.height ?? 600,
|
|
@@ -361,21 +361,21 @@ var V = {
|
|
|
361
361
|
}, "getConfigValues"), G = {
|
|
362
362
|
parser: S,
|
|
363
363
|
db: V,
|
|
364
|
-
renderer: { draw: /* @__PURE__ */
|
|
365
|
-
|
|
366
|
-
let
|
|
367
|
-
g.selectAll("*").remove(), s(g, h, p,
|
|
364
|
+
renderer: { draw: /* @__PURE__ */ d((e, t, n, r) => {
|
|
365
|
+
f.debug("Rendering Wardley map\n" + e);
|
|
366
|
+
let i = W(), a = U(), o = i.nodeRadius * 1.6, c = r.db, l = c.getWardleyData(), u = c.getDiagramTitle(), p = l.size?.width ?? i.width, h = l.size?.height ?? i.height, g = m(t);
|
|
367
|
+
g.selectAll("*").remove(), s(g, h, p, i.useMaxWidth), g.attr("viewBox", `0 0 ${p} ${h}`);
|
|
368
368
|
let _ = g.append("g").attr("class", "wardley-map"), v = g.append("defs");
|
|
369
|
-
v.append("marker").attr("id", `arrow-${
|
|
370
|
-
let y = p -
|
|
371
|
-
|
|
372
|
-
let x = /* @__PURE__ */
|
|
373
|
-
C.append("line").attr("x1",
|
|
374
|
-
let w =
|
|
375
|
-
C.append("text").attr("class", "wardley-axis-label wardley-axis-label-x").attr("x",
|
|
376
|
-
let E =
|
|
369
|
+
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", p).attr("height", h).attr("fill", a.backgroundColor);
|
|
370
|
+
let y = p - i.padding * 2, b = h - i.padding * 2;
|
|
371
|
+
u && _.append("text").attr("class", "wardley-title").attr("x", p / 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(u);
|
|
372
|
+
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");
|
|
373
|
+
C.append("line").attr("x1", i.padding).attr("x2", p - 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);
|
|
374
|
+
let w = l.axes.xLabel ?? "Evolution", T = l.axes.yLabel ?? "Visibility";
|
|
375
|
+
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);
|
|
376
|
+
let E = l.axes.stages && l.axes.stages.length > 0 ? l.axes.stages : H;
|
|
377
377
|
if (E.length > 0) {
|
|
378
|
-
let e = _.append("g").attr("class", "wardley-stages"), t =
|
|
378
|
+
let e = _.append("g").attr("class", "wardley-stages"), t = l.axes.stageBoundaries, n = [];
|
|
379
379
|
if (t && t.length === E.length) {
|
|
380
380
|
let e = 0;
|
|
381
381
|
t.forEach((t) => {
|
|
@@ -394,135 +394,135 @@ var V = {
|
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
396
|
E.forEach((t, r) => {
|
|
397
|
-
let
|
|
398
|
-
r > 0 && e.append("line").attr("x1", s).attr("x2", s).attr("y1",
|
|
397
|
+
let o = n[r], s = i.padding + o.start * y, c = (s + (i.padding + o.end * y)) / 2;
|
|
398
|
+
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);
|
|
399
399
|
});
|
|
400
400
|
}
|
|
401
|
-
if (
|
|
401
|
+
if (i.showGrid) {
|
|
402
402
|
let e = _.append("g").attr("class", "wardley-grid");
|
|
403
403
|
for (let t = 1; t < 4; t++) {
|
|
404
|
-
let n = t / 4, r =
|
|
405
|
-
e.append("line").attr("x1", r).attr("x2", r).attr("y1",
|
|
404
|
+
let n = t / 4, r = i.padding + y * n;
|
|
405
|
+
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", p - 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");
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
408
|
let D = /* @__PURE__ */ new Map();
|
|
409
|
-
if (
|
|
409
|
+
if (l.nodes.forEach((e) => {
|
|
410
410
|
D.set(e.id, {
|
|
411
411
|
x: x(e.x),
|
|
412
412
|
y: S(e.y),
|
|
413
413
|
node: e
|
|
414
414
|
});
|
|
415
|
-
}),
|
|
415
|
+
}), l.pipelines.length > 0) {
|
|
416
416
|
let e = _.append("g").attr("class", "wardley-pipelines"), t = _.append("g").attr("class", "wardley-pipeline-links");
|
|
417
|
-
|
|
417
|
+
l.pipelines.forEach((n) => {
|
|
418
418
|
if (n.componentIds.length === 0) return;
|
|
419
419
|
let r = n.componentIds.map((e) => ({
|
|
420
420
|
id: e,
|
|
421
421
|
pos: D.get(e),
|
|
422
|
-
node:
|
|
422
|
+
node: l.nodes.find((t) => t.id === e)
|
|
423
423
|
})).filter((e) => e.pos && e.node).sort((e, t) => e.node.x - t.node.x);
|
|
424
424
|
for (let e = 0; e < r.length - 1; e++) {
|
|
425
425
|
let n = r[e], i = r[e + 1];
|
|
426
|
-
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",
|
|
426
|
+
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");
|
|
427
427
|
}
|
|
428
|
-
let
|
|
428
|
+
let s = Infinity, c = -Infinity, u = 0;
|
|
429
429
|
if (n.componentIds.forEach((e) => {
|
|
430
430
|
let t = D.get(e);
|
|
431
|
-
t && (
|
|
432
|
-
}),
|
|
433
|
-
let t =
|
|
434
|
-
|
|
431
|
+
t && (s = Math.min(s, t.x), c = Math.max(c, t.x), u = t.y);
|
|
432
|
+
}), s !== Infinity && c !== -Infinity) {
|
|
433
|
+
let t = i.nodeRadius * 4, r = u - t / 2, l = D.get(n.nodeId);
|
|
434
|
+
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);
|
|
435
435
|
}
|
|
436
436
|
});
|
|
437
437
|
}
|
|
438
438
|
let O = _.append("g").attr("class", "wardley-links"), k = /* @__PURE__ */ new Map();
|
|
439
|
-
|
|
439
|
+
l.pipelines.forEach((e) => {
|
|
440
440
|
k.set(e.nodeId, new Set(e.componentIds));
|
|
441
441
|
});
|
|
442
|
-
let A =
|
|
442
|
+
let A = l.links.filter((e) => !(!D.has(e.source) || !D.has(e.target) || k.get(e.target)?.has(e.source)));
|
|
443
443
|
O.selectAll("line").data(A).enter().append("line").attr("class", (e) => `wardley-link${e.dashed ? " wardley-link--dashed" : ""}`).attr("x1", (e) => {
|
|
444
|
-
let t = D.get(e.source), n = D.get(e.target), r =
|
|
445
|
-
return t.x +
|
|
444
|
+
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);
|
|
445
|
+
return t.x + a / c * r;
|
|
446
446
|
}).attr("y1", (e) => {
|
|
447
|
-
let t = D.get(e.source), n = D.get(e.target), r =
|
|
448
|
-
return t.y +
|
|
447
|
+
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);
|
|
448
|
+
return t.y + s / c * r;
|
|
449
449
|
}).attr("x2", (e) => {
|
|
450
|
-
let t = D.get(e.source), n = D.get(e.target), r =
|
|
451
|
-
return n.x +
|
|
450
|
+
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);
|
|
451
|
+
return n.x + a / c * r;
|
|
452
452
|
}).attr("y2", (e) => {
|
|
453
|
-
let t = D.get(e.source), n = D.get(e.target), r =
|
|
454
|
-
return n.y +
|
|
455
|
-
}).attr("stroke",
|
|
453
|
+
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);
|
|
454
|
+
return n.y + s / c * r;
|
|
455
|
+
}).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) => {
|
|
456
456
|
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;
|
|
457
457
|
return r + i / Math.sqrt(a * a + i * i) * 8;
|
|
458
458
|
}).attr("y", (e) => {
|
|
459
459
|
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);
|
|
460
460
|
return r + -i / o * 8;
|
|
461
|
-
}).attr("fill",
|
|
461
|
+
}).attr("fill", a.axisTextColor).attr("font-size", i.labelFontSize).attr("text-anchor", "middle").attr("dominant-baseline", "middle").attr("transform", (e) => {
|
|
462
462
|
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;
|
|
463
463
|
return (f > 90 || f < -90) && (f += 180), `rotate(${f} ${u} ${d})`;
|
|
464
464
|
}).text((e) => e.label);
|
|
465
|
-
let j = _.append("g").attr("class", "wardley-trends"), M =
|
|
465
|
+
let j = _.append("g").attr("class", "wardley-trends"), M = l.trends.map((e) => {
|
|
466
466
|
let t = D.get(e.nodeId);
|
|
467
467
|
if (!t) return null;
|
|
468
|
-
let n = x(e.targetX), r = S(e.targetY),
|
|
468
|
+
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;
|
|
469
469
|
return {
|
|
470
470
|
origin: t,
|
|
471
471
|
targetX: n,
|
|
472
472
|
targetY: r,
|
|
473
|
-
adjustedX2: s > c ? n -
|
|
473
|
+
adjustedX2: s > c ? n - a / s * c : n,
|
|
474
474
|
adjustedY2: s > c ? r - o / s * c : r
|
|
475
475
|
};
|
|
476
476
|
}).filter((e) => e !== null);
|
|
477
|
-
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",
|
|
478
|
-
let N = _.append("g").attr("class", "wardley-nodes").selectAll("g").data(
|
|
479
|
-
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",
|
|
477
|
+
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})`);
|
|
478
|
+
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(" "));
|
|
479
|
+
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);
|
|
480
480
|
let P = N.filter((e) => e.sourceStrategy === "market");
|
|
481
|
-
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",
|
|
482
|
-
let F =
|
|
483
|
-
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",
|
|
484
|
-
let t = D.get(e.id), n = e.isPipelineParent ?
|
|
485
|
-
return e.sourceStrategy && (n +=
|
|
481
|
+
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);
|
|
482
|
+
let F = i.nodeRadius * .7, I = i.nodeRadius * 1.2;
|
|
483
|
+
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) => {
|
|
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
486
|
}).attr("y1", (e) => {
|
|
487
|
-
let t = D.get(e.id), n = e.isPipelineParent ?
|
|
487
|
+
let t = D.get(e.id), n = e.isPipelineParent ? o : i.nodeRadius * 2;
|
|
488
488
|
return t.y - n / 2;
|
|
489
489
|
}).attr("x2", (e) => {
|
|
490
|
-
let t = D.get(e.id), n = e.isPipelineParent ?
|
|
491
|
-
return e.sourceStrategy && (n +=
|
|
490
|
+
let t = D.get(e.id), n = e.isPipelineParent ? o / 2 + 15 : i.nodeRadius + 15;
|
|
491
|
+
return e.sourceStrategy && (n += i.nodeRadius + 10), t.x + n;
|
|
492
492
|
}).attr("y2", (e) => {
|
|
493
|
-
let t = D.get(e.id), n = e.isPipelineParent ?
|
|
493
|
+
let t = D.get(e.id), n = e.isPipelineParent ? o : i.nodeRadius * 2;
|
|
494
494
|
return t.y + n / 2;
|
|
495
|
-
}).attr("stroke",
|
|
495
|
+
}).attr("stroke", a.componentStroke).attr("stroke-width", 6), N.append("text").attr("x", (e) => {
|
|
496
496
|
let t = D.get(e.id);
|
|
497
497
|
if (e.className === "anchor") return e.labelOffsetX === void 0 ? t.x : t.x + e.labelOffsetX;
|
|
498
|
-
let n =
|
|
498
|
+
let n = i.nodeLabelOffset;
|
|
499
499
|
e.sourceStrategy && e.labelOffsetX === void 0 && (n += 10);
|
|
500
500
|
let r = e.labelOffsetX ?? n;
|
|
501
501
|
return t.x + r;
|
|
502
502
|
}).attr("y", (e) => {
|
|
503
503
|
let t = D.get(e.id);
|
|
504
504
|
if (e.className === "anchor") return e.labelOffsetY === void 0 ? t.y - 3 : t.y + e.labelOffsetY;
|
|
505
|
-
let n = -
|
|
505
|
+
let n = -i.nodeLabelOffset;
|
|
506
506
|
e.sourceStrategy && e.labelOffsetY === void 0 && (n -= 10);
|
|
507
507
|
let r = e.labelOffsetY ?? n;
|
|
508
508
|
return t.y + r;
|
|
509
|
-
}).attr("class", "wardley-node-label").attr("fill", (e) => e.className === "evolved" ?
|
|
509
|
+
}).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) {
|
|
510
510
|
let e = _.append("g").attr("class", "wardley-annotations");
|
|
511
|
-
if (
|
|
511
|
+
if (l.annotations.forEach((t) => {
|
|
512
512
|
let n = t.coordinates.map((e) => ({
|
|
513
513
|
x: x(e.x),
|
|
514
514
|
y: S(e.y)
|
|
515
515
|
}));
|
|
516
|
-
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",
|
|
516
|
+
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");
|
|
517
517
|
n.forEach((n) => {
|
|
518
518
|
let r = e.append("g").attr("class", "wardley-annotation");
|
|
519
|
-
r.append("circle").attr("cx", n.x).attr("cy", n.y).attr("r", 10).attr("fill", "white").attr("stroke",
|
|
519
|
+
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);
|
|
520
520
|
});
|
|
521
|
-
}),
|
|
522
|
-
let t = x(
|
|
523
|
-
if (
|
|
524
|
-
let
|
|
525
|
-
s.push(
|
|
521
|
+
}), l.annotationsBox) {
|
|
522
|
+
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 = [];
|
|
523
|
+
if (o.forEach((e, i) => {
|
|
524
|
+
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}`);
|
|
525
|
+
s.push(o);
|
|
526
526
|
}), s.length > 0) {
|
|
527
527
|
let e = 0, c = 0;
|
|
528
528
|
s.forEach((t) => {
|
|
@@ -531,23 +531,23 @@ var V = {
|
|
|
531
531
|
let i = n.getBBox();
|
|
532
532
|
c = Math.max(c, i.height);
|
|
533
533
|
});
|
|
534
|
-
let l = e + 20 + 105, u =
|
|
534
|
+
let l = e + 20 + 105, u = o.length * 16 + 20 + c / 2, d = i.padding, f = p - i.padding - l, m = i.padding, g = h - i.padding - u;
|
|
535
535
|
t = Math.max(d, Math.min(t, f)), n = Math.max(m, Math.min(n, g)), s.forEach((e, r) => {
|
|
536
536
|
e.attr("x", t + 10).attr("y", n + 10 + (r + 1) * 16);
|
|
537
|
-
}), r.insert("rect", "text").attr("x", t).attr("y", n).attr("width", l).attr("height", u).attr("fill", "white").attr("stroke",
|
|
537
|
+
}), 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);
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
|
-
if (
|
|
541
|
+
if (l.notes.length > 0) {
|
|
542
542
|
let e = _.append("g").attr("class", "wardley-notes");
|
|
543
|
-
|
|
543
|
+
l.notes.forEach((t) => {
|
|
544
544
|
let n = x(t.x), r = S(t.y);
|
|
545
|
-
e.append("text").attr("x", n).attr("y", r).attr("text-anchor", "start").attr("font-size", 11).attr("fill",
|
|
545
|
+
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);
|
|
546
546
|
});
|
|
547
547
|
}
|
|
548
|
-
if (
|
|
548
|
+
if (l.accelerators.length > 0) {
|
|
549
549
|
let e = _.append("g").attr("class", "wardley-accelerators");
|
|
550
|
-
|
|
550
|
+
l.accelerators.forEach((t) => {
|
|
551
551
|
let n = x(t.x), r = S(t.y), i = `
|
|
552
552
|
M ${n} ${r - 15}
|
|
553
553
|
L ${n + 60 - 20} ${r - 15}
|
|
@@ -558,12 +558,12 @@ var V = {
|
|
|
558
558
|
L ${n} ${r + 15}
|
|
559
559
|
Z
|
|
560
560
|
`;
|
|
561
|
-
e.append("path").attr("d", i).attr("fill", "white").attr("stroke",
|
|
561
|
+
e.append("path").attr("d", i).attr("fill", "white").attr("stroke", a.componentStroke).attr("stroke-width", 1), e.append("text").attr("x", n + 30).attr("y", r + 15 + 15).attr("text-anchor", "middle").attr("font-size", 10).attr("fill", a.axisTextColor).attr("font-weight", "bold").text(t.name);
|
|
562
562
|
});
|
|
563
563
|
}
|
|
564
|
-
if (
|
|
564
|
+
if (l.deaccelerators.length > 0) {
|
|
565
565
|
let e = _.append("g").attr("class", "wardley-deaccelerators");
|
|
566
|
-
|
|
566
|
+
l.deaccelerators.forEach((t) => {
|
|
567
567
|
let n = x(t.x), r = S(t.y), i = `
|
|
568
568
|
M ${n + 60} ${r - 15}
|
|
569
569
|
L ${n + 20} ${r - 15}
|
|
@@ -574,12 +574,12 @@ var V = {
|
|
|
574
574
|
L ${n + 60} ${r + 15}
|
|
575
575
|
Z
|
|
576
576
|
`;
|
|
577
|
-
e.append("path").attr("d", i).attr("fill", "white").attr("stroke",
|
|
577
|
+
e.append("path").attr("d", i).attr("fill", "white").attr("stroke", a.componentStroke).attr("stroke-width", 1), e.append("text").attr("x", n + 30).attr("y", r + 15 + 15).attr("text-anchor", "middle").attr("font-size", 10).attr("fill", a.axisTextColor).attr("font-weight", "bold").text(t.name);
|
|
578
578
|
});
|
|
579
579
|
}
|
|
580
580
|
}, "draw") },
|
|
581
|
-
styles: /* @__PURE__ */
|
|
582
|
-
let n = t(), r =
|
|
581
|
+
styles: /* @__PURE__ */ d(({ wardley: e } = {}) => {
|
|
582
|
+
let n = t(), r = u(), i = p(n, r.themeVariables), a = p(i.wardley, e);
|
|
583
583
|
return `
|
|
584
584
|
.wardley-background {
|
|
585
585
|
fill: ${a.backgroundColor};
|