@sme.up/ketchup2 2.9.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-DwAVRNNu.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-N1aPr2hw.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/button-types.d.ts +2 -2
- package/dist/basic-components/button-group/button-group.d.ts.map +1 -1
- package/dist/basic-components/cell/cell-types.d.ts +15 -6
- package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
- package/dist/basic-components/cell/cell-utils.d.ts +10 -4
- package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
- package/dist/basic-components/cell/cell.d.ts.map +1 -1
- package/dist/basic-components/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 +6 -2
- package/dist/basic-components/date-picker/date-picker-types.d.ts.map +1 -1
- package/dist/basic-components/file-upload/file-upload-types.d.ts +2 -2
- package/dist/basic-components/file-upload/file-upload-types.d.ts.map +1 -1
- package/dist/basic-components/file-upload/file-upload.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/multiple-autocomplete/multiple-autocomplete.d.ts.map +1 -1
- package/dist/basic-components/multiple-select/multiple-select.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-types.d.ts +3 -1
- package/dist/basic-components/text/text-types.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 +10 -5
- 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/time-picker/time-picker.d.ts.map +1 -1
- package/dist/basic-components/typography/typography.d.ts.map +1 -1
- package/dist/{blockDiagram-I7D4REHJ-Cu18ws5-.js → blockDiagram-RJAE7QA3-hRpbCaPL.js} +329 -316
- package/dist/{c4Diagram-7LVT6UL2-B-uBy_NE.js → c4Diagram-XDPPPE54-Bkqvkv8O.js} +350 -340
- package/dist/channel-CcHUzwZl.js +5 -0
- package/dist/{chunk-SVP7TREG-CyJlOPau.js → chunk-2E7WHVMD-DSYBrngB.js} +77 -77
- package/dist/chunk-4EMNKR2T-CndbTVTA.js +236 -0
- package/dist/{chunk-F27PBJKO-jIrOJO87.js → chunk-55XCU76K-B1HtPImz.js} +16 -16
- package/dist/{chunk-75Z2AOVW-Drsj7a97.js → chunk-7S6XSTFO-CN6S2H1-.js} +304 -305
- package/dist/{chunk-GMAD6QVW-D80II4AD.js → chunk-AQDTSKZB-DuUha9al.js} +386 -433
- package/dist/{chunk-DU6HZSFF-waeanndy.js → chunk-DSNLSHJZ-B1A8wsiA.js} +1227 -1043
- 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-Cri27Jke.js → chunk-NQOKRVIF-CEJ-prlJ.js} +483 -414
- package/dist/chunk-OYAV6JZA-Cypx4hYu.js +14 -0
- package/dist/{chunk-P2QGCYS3-BUeNZ170.js → chunk-UHW7PFBP-CoHGQVjo.js} +6 -6
- package/dist/chunk-VQ5W62QI-BSDHmyws.js +26 -0
- package/dist/{chunk-OSK3NFVY-CQhPF3Mc.js → chunk-WQQL4CDK-BJE6isq-.js} +312 -288
- package/dist/chunk-XXDRQBXY-CU-dbs05.js +9 -0
- package/dist/{chunk-PWAF6VOD-D37VoZ8H.js → chunk-YZO67HFG-Bcmpw0dX.js} +28 -28
- package/dist/{chunk-GVQU2GXP-DP3t_9Rl.js → chunk-ZAUX2LTX-Bu7BRVL6.js} +14 -14
- package/dist/chunk-ZCHMQSOR-BA1QQ4D6.js +354 -0
- package/dist/{chunk-TICWLB2K-Cw2iT_VD.js → classDiagram-v2-4MYWR3UA-Bnh650R8.js} +333 -293
- package/dist/components/app-bar/app-bar-utils.d.ts.map +1 -1
- package/dist/components/app-bar/app-bar.data.d.ts.map +1 -1
- package/dist/components/box-list/box-list.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 +49 -4
- package/dist/components/calendar/calendar-types.d.ts.map +1 -1
- package/dist/components/calendar/calendar-utils.d.ts +160 -16
- 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 +23 -0
- package/dist/components/calendar/views/calendar-event-text.d.ts.map +1 -0
- package/dist/components/calendar/views/calendar-month-grid.d.ts +12 -4
- package/dist/components/calendar/views/calendar-month-grid.d.ts.map +1 -1
- package/dist/components/calendar/views/calendar-more-events.d.ts +19 -0
- package/dist/components/calendar/views/calendar-more-events.d.ts.map +1 -0
- package/dist/components/calendar/views/calendar-time-grid.d.ts +16 -2
- 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 +206 -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 +69 -0
- package/dist/components/data-table/fixed/fixed-utils.d.ts.map +1 -0
- package/dist/components/data-table/footer/footer-types.d.ts +23 -6
- 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 +38 -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 +20 -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 +37 -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 +15 -8
- 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/drawer/drawer.d.ts.map +1 -1
- package/dist/components/echarts-graph/builders/echarts-graph-builders-advanced.d.ts +26 -0
- package/dist/components/echarts-graph/builders/echarts-graph-builders-advanced.d.ts.map +1 -0
- package/dist/components/echarts-graph/builders/echarts-graph-builders.d.ts +17 -0
- package/dist/components/echarts-graph/builders/echarts-graph-builders.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-data.d.ts +151 -0
- package/dist/components/echarts-graph/data/echarts-graph-data.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-data.test.d.ts +2 -0
- package/dist/components/echarts-graph/data/echarts-graph-data.test.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-frame.d.ts +164 -0
- package/dist/components/echarts-graph/data/echarts-graph-frame.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-math.d.ts +26 -0
- package/dist/components/echarts-graph/data/echarts-graph-math.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-time.d.ts +42 -0
- package/dist/components/echarts-graph/data/echarts-graph-time.d.ts.map +1 -0
- 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/data/echarts-graph-utils.d.ts +197 -0
- package/dist/components/echarts-graph/data/echarts-graph-utils.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-utils.test.d.ts +2 -0
- package/dist/components/echarts-graph/data/echarts-graph-utils.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 +229 -0
- package/dist/components/echarts-graph/echarts-graph-types.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph.d.ts +18 -0
- package/dist/components/echarts-graph/echarts-graph.d.ts.map +1 -0
- package/dist/components/echarts-graph/theme/echarts-graph-color.d.ts +20 -0
- package/dist/components/echarts-graph/theme/echarts-graph-color.d.ts.map +1 -0
- package/dist/components/echarts-graph/theme/echarts-graph-color.test.d.ts +2 -0
- package/dist/components/echarts-graph/theme/echarts-graph-color.test.d.ts.map +1 -0
- package/dist/components/echarts-graph/theme/echarts-graph-theme.d.ts +58 -0
- package/dist/components/echarts-graph/theme/echarts-graph-theme.d.ts.map +1 -0
- package/dist/components/input-panel/assets/data.d.ts +1 -0
- package/dist/components/input-panel/assets/data.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-utils.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/components/workflow-designer/workflow-designer-metadata-panel.d.ts.map +1 -1
- package/dist/context/interaction-context.d.ts +16 -0
- package/dist/context/interaction-context.d.ts.map +1 -0
- 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-3Ha1hdlV.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-BNmG1sig.js → diagram-CBK3MWTC-B-q-tUxd.js} +80 -80
- package/dist/diagram-I5XIIV2D-CMzniFEf.js +134 -0
- package/dist/{diagram-S7CK7UJ4-BuDHTdHA.js → diagram-ODIL2UCW-CrlDp0MP.js} +46 -54
- package/dist/{diagram-VSXAHHWV-CrQQCs-B.js → diagram-PFBEJUXE-hnrdzEe4.js} +136 -121
- package/dist/{diagram-UQ7AKVKN-uvzJGj43.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-DMx8xAFO.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-bkJ9nzVK.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/badge/badge-assets.d.ts +1 -0
- package/dist/functional-components/badge/badge-assets.d.ts.map +1 -1
- package/dist/functional-components/badge/badge-utils.d.ts +5 -0
- package/dist/functional-components/badge/badge-utils.d.ts.map +1 -1
- package/dist/functional-components/badge/badge.d.ts.map +1 -1
- 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/multiple-field/multiple-field-types.d.ts +1 -0
- package/dist/functional-components/multiple-field/multiple-field-types.d.ts.map +1 -1
- package/dist/functional-components/multiple-field/multiple-field.d.ts.map +1 -1
- package/dist/functional-components/row/row-types.d.ts +50 -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-CL-ywzz_.js → ganttDiagram-R7GPNTJY-DFRGfQMr.js} +314 -310
- package/dist/gitGraph-VSP46ZUC-BSTikFaE.js +2 -0
- package/dist/{gitGraphDiagram-WWUBYQGX-aXhNDG6P.js → gitGraphDiagram-PDYL7XHY-nvoob8Ca.js} +250 -250
- package/dist/hooks/useClickOutside/useClickOutside-assets.d.ts +14 -0
- package/dist/hooks/useClickOutside/useClickOutside-assets.d.ts.map +1 -0
- package/dist/hooks/useClickOutside/useClickOutside.d.ts.map +1 -0
- package/dist/hooks/useFloating.d.ts.map +1 -1
- package/dist/hooks/useVirtualListScroll.d.ts +14 -2
- package/dist/hooks/useVirtualListScroll.d.ts.map +1 -1
- package/dist/index.d.ts +5 -3
- 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-DK7HlH95.js → ishikawaDiagram-HPEHV2GE-BE3amLYE.js} +27 -29
- package/dist/{journeyDiagram-3NMN7TZE-CpuYEKcB.js → journeyDiagram-BOSHW7O7-DE8ndsCi.js} +111 -111
- package/dist/{kanban-definition-UXKFOSKX-aK8uKmyY.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 +25778 -68770
- package/dist/{line-DTqYMLoX.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 +40 -4
- package/dist/locale/it/translation.json.d.ts +40 -4
- package/dist/{mermaid-parser.core-BwVmI_Rq.js → mermaid-parser.core-zUi7tSl-.js} +166 -172
- package/dist/{mindmap-definition-YA3MSWOX-ZMYcmi9J.js → mindmap-definition-6OY57UG3-hH6Avsg4.js} +148 -145
- package/dist/packet-JDAUHWVQ-CKZoNg5j.js +2 -0
- package/dist/{pegDiagram-XKGWAZYB-DsfILwZN.js → pegDiagram-ECIUJNBX-D3xLhrRh.js} +19 -19
- package/dist/pie-XZMESJXO-BnbWY8rE.js +2 -0
- package/dist/{pieDiagram-E7YTZNPT-DcSLcLdd.js → pieDiagram-GNMPY74T-Bd_UXypi.js} +39 -39
- package/dist/{quadrantDiagram-AXDQQJYC-DSx3teop.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-jOZRtNDi.js → railroadDiagram-Y72NRBL7-CPUbPgYX.js} +14 -14
- package/dist/{requirementDiagram-BXWQKSXE-D14hkkez.js → requirementDiagram-EQYSW5RA-BXstYS3w.js} +97 -93
- package/dist/rolldown-runtime-5HNE8Q1r.js +23 -0
- package/dist/{sankeyDiagram-P5KCCOFB-C0jmknYo.js → sankeyDiagram-SY24JHO5-Du-toJmg.js} +64 -64
- package/dist/{sequenceDiagram-WJ2MYXX4-C00egnMz.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-8ItzAAcf.js → stateDiagram-v2-A6IESKWZ-CfjPf8h7.js} +364 -267
- package/dist/{swimlanes-42K2YHIH-CJcMmxXf.js → swimlanes-B3ENRKFQ-Dumwq89C.js} +1356 -1590
- package/dist/swimlanesDiagram-AYQRV4AK-Boz_Azx7.js +28 -0
- package/dist/{timeline-definition-24CTP7MA-D2xfYuSV.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 +16 -1
- 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 +40 -5
- package/dist/types/translation.d.ts.map +1 -1
- package/dist/usecaseDiagram-WPOLBNNX-ruZhXlYQ.js +7175 -0
- package/dist/utils/floating-layer.d.ts +11 -0
- package/dist/utils/floating-layer.d.ts.map +1 -0
- package/dist/utils/legacy.d.ts +7 -0
- package/dist/utils/legacy.d.ts.map +1 -1
- 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/objects.d.ts +20 -1
- package/dist/utils/objects.d.ts.map +1 -1
- 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-C4XLgus_.js → vennDiagram-Q3Y3IDCW-L9GmqfCz.js} +118 -118
- package/dist/wardley-7MLQ67FV-DC0ayJCO.js +2 -0
- package/dist/{wardleyDiagram-VM6X3IG4-DFoKuS9s.js → wardleyDiagram-IVAIDKWA-Dz5K-UqN.js} +126 -126
- package/dist/{xychartDiagram-S5SC5T6Z-BzKKgVBe.js → xychartDiagram-4URNHDU4-C2xwRx5F.js} +141 -137
- package/package.json +7 -5
- package/dist/architecture-7GRP2DOG-BsytjMto.js +0 -3
- package/dist/channel-CuEby436.js +0 -5
- package/dist/chunk-2E4U76K2-ComA5SPA.js +0 -348
- package/dist/chunk-4HAMMTFA-CZgIgrp_.js +0 -4188
- package/dist/chunk-CLGD4ZFX-CLGio9rD.js +0 -14
- package/dist/chunk-FOHPRMQF-LRqOLsSw.js +0 -21456
- package/dist/chunk-L3NEJ4N5-qPot4t6M.js +0 -245
- package/dist/chunk-POPQ4Y6H-CU9oz17Z.js +0 -26
- package/dist/chunk-TLUHSLCS-BdsLNXjt.js +0 -59
- package/dist/chunk-XXDRQBXY-C1ZEFXGu.js +0 -9
- package/dist/classDiagram-ZZMXUADV-L32jCfMj.js +0 -30
- package/dist/classDiagram-v2-VYDZK3BY-BsnrDCgX.js +0 -30
- package/dist/components/echarts/echarts-graph-types.d.ts +0 -8
- package/dist/components/echarts/echarts-graph-types.d.ts.map +0 -1
- package/dist/components/echarts/echarts-graph.d.ts +0 -4
- package/dist/components/echarts/echarts-graph.d.ts.map +0 -1
- package/dist/cynefin-OW5HDTMX-BJXlKro0.js +0 -3
- package/dist/dagre-D5csT9sx.js +0 -1934
- package/dist/dagre-GXQ25YYZ-Bg7xf6xn.js +0 -425
- package/dist/diagram-Z3DM3KII-B6BrLhP0.js +0 -134
- package/dist/eventmodeling-NTZA5JFV-Cj-VH7yh.js +0 -3
- package/dist/flowDiagram-HODETNUW-BIvD7-ts.js +0 -17
- package/dist/gitGraph-4MIJSDKK-C9JGDovl.js +0 -3
- package/dist/hooks/useClickOutside.d.ts.map +0 -1
- package/dist/info-A6RAGUB7-CmZJKEaW.js +0 -3
- package/dist/infoDiagram-27XIBGKW-Je4heBlk.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-YfzmviNY.js +0 -220
- package/dist/stateDiagram-v2-MP3YSRHH-B6Hzx8T0.js +0 -30
- package/dist/swimlanesDiagram-VR7AAH4N-DirvhGBA.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
- /package/dist/hooks/{useClickOutside.d.ts → useClickOutside/useClickOutside.d.ts} +0 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { $ as o, J as s,
|
|
5
|
-
import { t as
|
|
6
|
-
import { i as
|
|
7
|
-
import { n as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { n as
|
|
11
|
-
//#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-
|
|
12
|
-
var
|
|
1
|
+
import { b as e, w as t, y as n } from "./chunk-DSNLSHJZ-B1A8wsiA.js";
|
|
2
|
+
import { n as r } from "./chunk-Y2CYZVJY-i11wjrBe.js";
|
|
3
|
+
import { m as i, p as a } from "./src-CY9Rz0Sf.js";
|
|
4
|
+
import { $ as o, J as s, Q as c, X as l, Y as u, Z as d, _ as f, d as p, et as m, it as h, nt as g, q as _, rt as v, tt as y } from "./chunk-7S6XSTFO-CN6S2H1-.js";
|
|
5
|
+
import { t as b } from "./line-ltPB6XbC.js";
|
|
6
|
+
import { i as x, n as S } from "./chunk-UHW7PFBP-CoHGQVjo.js";
|
|
7
|
+
import { n as C, r as w } from "./chunk-AQDTSKZB-DuUha9al.js";
|
|
8
|
+
import { t as ee } from "./rough.esm-DXYGHN3m.js";
|
|
9
|
+
import { t as T } from "./chunk-HAGFOTED-IzyIoLzD.js";
|
|
10
|
+
import { n as E } from "./chunk-ZAUX2LTX-Bu7BRVL6.js";
|
|
11
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-WQQL4CDK.mjs
|
|
12
|
+
var D = /* @__PURE__ */ r((e, t) => {
|
|
13
13
|
if (t) return "translate(" + -e.width / 2 + ", " + -e.height / 2 + ")";
|
|
14
14
|
let n = e.x ?? 0, r = e.y ?? 0;
|
|
15
15
|
return "translate(" + -(n + e.width / 2) + ", " + -(r + e.height / 2) + ")";
|
|
16
|
-
}, "computeLabelTransform"),
|
|
16
|
+
}, "computeLabelTransform"), O = {
|
|
17
17
|
aggregation: 17.25,
|
|
18
18
|
extension: 17.25,
|
|
19
19
|
composition: 17.25,
|
|
@@ -22,18 +22,18 @@ var E = /* @__PURE__ */ a((e, t) => {
|
|
|
22
22
|
arrow_point: 4,
|
|
23
23
|
arrow_barb: 0,
|
|
24
24
|
arrow_barb_neo: 5.5
|
|
25
|
-
},
|
|
25
|
+
}, k = {
|
|
26
26
|
arrow_point: 4,
|
|
27
27
|
arrow_cross: 12.5,
|
|
28
28
|
arrow_circle: 12.5
|
|
29
29
|
};
|
|
30
|
-
function
|
|
30
|
+
function A(e, t) {
|
|
31
31
|
if (e === void 0 || t === void 0) return {
|
|
32
32
|
angle: 0,
|
|
33
33
|
deltaX: 0,
|
|
34
34
|
deltaY: 0
|
|
35
35
|
};
|
|
36
|
-
e =
|
|
36
|
+
e = j(e), t = j(t);
|
|
37
37
|
let [n, r] = [e.x, e.y], [i, a] = [t.x, t.y], o = i - n, s = a - r;
|
|
38
38
|
return {
|
|
39
39
|
angle: Math.atan(s / o),
|
|
@@ -41,21 +41,21 @@ function k(e, t) {
|
|
|
41
41
|
deltaY: s
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
|
|
45
|
-
var
|
|
44
|
+
r(A, "calculateDeltaAndAngle");
|
|
45
|
+
var j = /* @__PURE__ */ r((e) => Array.isArray(e) ? {
|
|
46
46
|
x: e[0],
|
|
47
47
|
y: e[1]
|
|
48
|
-
} : e, "pointTransformer"),
|
|
49
|
-
x: /* @__PURE__ */
|
|
50
|
-
let i = 0, a =
|
|
51
|
-
if (n === 0 && Object.hasOwn(
|
|
52
|
-
let { angle: t, deltaX: n } =
|
|
53
|
-
i =
|
|
54
|
-
} else if (n === r.length - 1 && Object.hasOwn(
|
|
55
|
-
let { angle: t, deltaX: n } =
|
|
56
|
-
i =
|
|
48
|
+
} : e, "pointTransformer"), te = /* @__PURE__ */ r((e) => ({
|
|
49
|
+
x: /* @__PURE__ */ r(function(t, n, r) {
|
|
50
|
+
let i = 0, a = j(r[0]).x < j(r[r.length - 1]).x ? "left" : "right";
|
|
51
|
+
if (n === 0 && Object.hasOwn(O, e.arrowTypeStart)) {
|
|
52
|
+
let { angle: t, deltaX: n } = A(r[0], r[1]);
|
|
53
|
+
i = O[e.arrowTypeStart] * Math.cos(t) * (n >= 0 ? 1 : -1);
|
|
54
|
+
} else if (n === r.length - 1 && Object.hasOwn(O, e.arrowTypeEnd)) {
|
|
55
|
+
let { angle: t, deltaX: n } = A(r[r.length - 1], r[r.length - 2]);
|
|
56
|
+
i = O[e.arrowTypeEnd] * Math.cos(t) * (n >= 0 ? 1 : -1);
|
|
57
57
|
}
|
|
58
|
-
let o = Math.abs(
|
|
58
|
+
let o = Math.abs(j(t).x - j(r[r.length - 1]).x), s = Math.abs(j(t).y - j(r[r.length - 1]).y), c = Math.abs(j(t).x - j(r[0]).x), l = Math.abs(j(t).y - j(r[0]).y), u = O[e.arrowTypeStart], d = O[e.arrowTypeEnd];
|
|
59
59
|
if (o < d && o > 0 && s < d) {
|
|
60
60
|
let e = d + 1 - o;
|
|
61
61
|
e *= a === "right" ? -1 : 1, i -= e;
|
|
@@ -64,18 +64,18 @@ var A = /* @__PURE__ */ a((e) => Array.isArray(e) ? {
|
|
|
64
64
|
let e = u + 1 - c;
|
|
65
65
|
e *= a === "right" ? -1 : 1, i += e;
|
|
66
66
|
}
|
|
67
|
-
return
|
|
67
|
+
return j(t).x + i;
|
|
68
68
|
}, "x"),
|
|
69
|
-
y: /* @__PURE__ */
|
|
70
|
-
let i = 0, a =
|
|
71
|
-
if (n === 0 && Object.hasOwn(
|
|
72
|
-
let { angle: t, deltaY: n } =
|
|
73
|
-
i =
|
|
74
|
-
} else if (n === r.length - 1 && Object.hasOwn(
|
|
75
|
-
let { angle: t, deltaY: n } =
|
|
76
|
-
i =
|
|
69
|
+
y: /* @__PURE__ */ r(function(t, n, r) {
|
|
70
|
+
let i = 0, a = j(r[0]).y < j(r[r.length - 1]).y ? "down" : "up";
|
|
71
|
+
if (n === 0 && Object.hasOwn(O, e.arrowTypeStart)) {
|
|
72
|
+
let { angle: t, deltaY: n } = A(r[0], r[1]);
|
|
73
|
+
i = O[e.arrowTypeStart] * Math.abs(Math.sin(t)) * (n >= 0 ? 1 : -1);
|
|
74
|
+
} else if (n === r.length - 1 && Object.hasOwn(O, e.arrowTypeEnd)) {
|
|
75
|
+
let { angle: t, deltaY: n } = A(r[r.length - 1], r[r.length - 2]);
|
|
76
|
+
i = O[e.arrowTypeEnd] * Math.abs(Math.sin(t)) * (n >= 0 ? 1 : -1);
|
|
77
77
|
}
|
|
78
|
-
let o = Math.abs(
|
|
78
|
+
let o = Math.abs(j(t).y - j(r[r.length - 1]).y), s = Math.abs(j(t).x - j(r[r.length - 1]).x), c = Math.abs(j(t).y - j(r[0]).y), l = Math.abs(j(t).x - j(r[0]).x), u = O[e.arrowTypeStart], d = O[e.arrowTypeEnd];
|
|
79
79
|
if (o < d && o > 0 && s < d) {
|
|
80
80
|
let e = d + 1 - o;
|
|
81
81
|
e *= a === "up" ? -1 : 1, i -= e;
|
|
@@ -84,11 +84,11 @@ var A = /* @__PURE__ */ a((e) => Array.isArray(e) ? {
|
|
|
84
84
|
let e = u + 1 - c;
|
|
85
85
|
e *= a === "up" ? -1 : 1, i += e;
|
|
86
86
|
}
|
|
87
|
-
return
|
|
87
|
+
return j(t).y + i;
|
|
88
88
|
}, "y")
|
|
89
|
-
}), "getLineFunctionsWithOffset"),
|
|
90
|
-
t.arrowTypeStart &&
|
|
91
|
-
}, "addEdgeMarkers"),
|
|
89
|
+
}), "getLineFunctionsWithOffset"), ne = /* @__PURE__ */ r((e, t, n, r, i, a = !1, o) => {
|
|
90
|
+
t.arrowTypeStart && P(e, "start", t.arrowTypeStart, n, r, i, a, o), t.arrowTypeEnd && P(e, "end", t.arrowTypeEnd, n, r, i, a, o);
|
|
91
|
+
}, "addEdgeMarkers"), M = {
|
|
92
92
|
arrow_cross: {
|
|
93
93
|
type: "cross",
|
|
94
94
|
fill: !1
|
|
@@ -109,6 +109,10 @@ var A = /* @__PURE__ */ a((e) => Array.isArray(e) ? {
|
|
|
109
109
|
type: "circle",
|
|
110
110
|
fill: !1
|
|
111
111
|
},
|
|
112
|
+
arrow_hierarchy: {
|
|
113
|
+
type: "hierarchy",
|
|
114
|
+
fill: !1
|
|
115
|
+
},
|
|
112
116
|
aggregation: {
|
|
113
117
|
type: "aggregation",
|
|
114
118
|
fill: !1
|
|
@@ -153,7 +157,7 @@ var A = /* @__PURE__ */ a((e) => Array.isArray(e) ? {
|
|
|
153
157
|
type: "requirement_contains",
|
|
154
158
|
fill: !1
|
|
155
159
|
}
|
|
156
|
-
},
|
|
160
|
+
}, N = [
|
|
157
161
|
"cross",
|
|
158
162
|
"point",
|
|
159
163
|
"circle",
|
|
@@ -163,143 +167,160 @@ var A = /* @__PURE__ */ a((e) => Array.isArray(e) ? {
|
|
|
163
167
|
"composition",
|
|
164
168
|
"dependency",
|
|
165
169
|
"barb"
|
|
166
|
-
],
|
|
167
|
-
if (!
|
|
168
|
-
let l =
|
|
170
|
+
], P = /* @__PURE__ */ r((e, t, n, r, a, o, s = !1, c) => {
|
|
171
|
+
if (!n || n === "none") return;
|
|
172
|
+
let l = M[n], u = l && N.includes(l.type);
|
|
169
173
|
if (!l) {
|
|
170
|
-
|
|
174
|
+
i.warn(`Unknown arrow type: ${n}`);
|
|
171
175
|
return;
|
|
172
176
|
}
|
|
173
|
-
let d = `${a}_${o}-${l.type}${
|
|
177
|
+
let d = `${a}_${o}-${l.type}${t === "start" ? "Start" : "End"}${s && u ? "-margin" : ""}`;
|
|
174
178
|
if (c && c.trim() !== "") {
|
|
175
|
-
let
|
|
176
|
-
if (!document.getElementById(
|
|
177
|
-
let
|
|
178
|
-
if (
|
|
179
|
-
let
|
|
180
|
-
|
|
179
|
+
let n = `${d}_${c.replace(/[^\dA-Za-z]/g, "_")}`;
|
|
180
|
+
if (!document.getElementById(n)) {
|
|
181
|
+
let e = document.getElementById(d);
|
|
182
|
+
if (e) {
|
|
183
|
+
let t = e.cloneNode(!0);
|
|
184
|
+
t.id = n, t.querySelectorAll("path, circle, line").forEach((e) => {
|
|
181
185
|
e.setAttribute("stroke", c), l.fill && e.setAttribute("fill", c);
|
|
182
|
-
}),
|
|
186
|
+
}), e.parentNode?.appendChild(t);
|
|
183
187
|
}
|
|
184
188
|
}
|
|
185
|
-
|
|
186
|
-
} else
|
|
187
|
-
}, "addEdgeMarker"),
|
|
188
|
-
|
|
189
|
-
}, "clear"), L = /* @__PURE__ */
|
|
190
|
-
let o =
|
|
191
|
-
|
|
192
|
-
let l =
|
|
193
|
-
style: R(
|
|
189
|
+
e.attr(`marker-${t}`, `url(${r}#${n})`);
|
|
190
|
+
} else e.attr(`marker-${t}`, `url(${r}#${d})`);
|
|
191
|
+
}, "addEdgeMarker"), re = /* @__PURE__ */ r((t) => typeof t == "string" ? t : e()?.flowchart?.curve, "resolveEdgeCurveType"), F = /* @__PURE__ */ new Map(), I = /* @__PURE__ */ new Map(), ie = /* @__PURE__ */ r(() => {
|
|
192
|
+
F.clear(), I.clear();
|
|
193
|
+
}, "clear"), L = /* @__PURE__ */ r((e) => !!(e.label || e.startLabelLeft || e.startLabelRight || e.endLabelLeft || e.endLabelRight), "hasEdgeLabel"), R = /* @__PURE__ */ r((e) => e ? typeof e == "string" ? e : e.reduce((e, t) => e + ";" + t, "") : "", "getLabelStyles"), z = /* @__PURE__ */ r(async (n, r) => {
|
|
194
|
+
let o = e(), s = t(o), { labelStyles: c } = x(r);
|
|
195
|
+
r.labelStyle = c;
|
|
196
|
+
let l = n.insert("g").attr("class", "edgeLabel"), u = l.insert("g").attr("class", "label").attr("data-id", r.id), d = r.labelType === "markdown", f = await C(n, r.label, {
|
|
197
|
+
style: R(r.labelStyle),
|
|
194
198
|
useHtmlLabels: s,
|
|
195
199
|
addSvgBackground: !0,
|
|
196
200
|
isNode: !1,
|
|
197
201
|
markdown: d,
|
|
198
202
|
width: void 0
|
|
199
203
|
}, o);
|
|
200
|
-
u.node().appendChild(f),
|
|
204
|
+
u.node().appendChild(f), i.info("abc82", r, r.labelType);
|
|
201
205
|
let p, m;
|
|
202
206
|
if (s) {
|
|
203
|
-
let e = f.children[0],
|
|
204
|
-
p = await
|
|
207
|
+
let e = f.children[0], t = a(f);
|
|
208
|
+
p = await w.measure(() => e.getBoundingClientRect()), m = p, t.attr("width", p.width), t.attr("height", p.height);
|
|
205
209
|
} else {
|
|
206
|
-
let e =
|
|
207
|
-
await
|
|
210
|
+
let e = a(f).select("text").node();
|
|
211
|
+
await w.measure(() => {
|
|
208
212
|
p = f.getBBox(), m = e && typeof e.getBBox == "function" ? e.getBBox() : p;
|
|
209
213
|
});
|
|
210
214
|
}
|
|
211
|
-
u.attr("transform",
|
|
215
|
+
u.attr("transform", D(m, s)), F.set(r.id, l), r.width = p.width, r.height = p.height;
|
|
212
216
|
let h;
|
|
213
|
-
if (
|
|
214
|
-
let e =
|
|
217
|
+
if (r.startLabelLeft) {
|
|
218
|
+
let e = n.insert("g").attr("class", "edgeTerminals"), t = e.insert("g").attr("class", "inner"), i = await T(t, r.startLabelLeft, R(r.labelStyle) || "", !1, !1);
|
|
215
219
|
h = i;
|
|
216
220
|
let o = i.getBBox();
|
|
217
221
|
if (s) {
|
|
218
|
-
let e = i.children[0],
|
|
219
|
-
o = e.getBoundingClientRect(),
|
|
222
|
+
let e = i.children[0], t = a(i);
|
|
223
|
+
o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
|
|
220
224
|
}
|
|
221
|
-
|
|
225
|
+
t.attr("transform", D(o, s)), I.get(r.id) || I.set(r.id, {}), I.get(r.id).startLeft = e, V(h, r.startLabelLeft, o), B(r, "startLeft", o);
|
|
222
226
|
}
|
|
223
|
-
if (
|
|
224
|
-
let e =
|
|
227
|
+
if (r.startLabelRight) {
|
|
228
|
+
let e = n.insert("g").attr("class", "edgeTerminals"), t = e.insert("g").attr("class", "inner"), i = await T(t, r.startLabelRight, R(r.labelStyle) || "", !1, !1);
|
|
225
229
|
h = i;
|
|
226
230
|
let o = i.getBBox();
|
|
227
231
|
if (s) {
|
|
228
|
-
let e = i.children[0],
|
|
229
|
-
o = e.getBoundingClientRect(),
|
|
232
|
+
let e = i.children[0], t = a(i);
|
|
233
|
+
o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
|
|
230
234
|
}
|
|
231
|
-
|
|
235
|
+
t.attr("transform", D(o, s)), I.get(r.id) || I.set(r.id, {}), I.get(r.id).startRight = e, V(h, r.startLabelRight, o), B(r, "startRight", o);
|
|
232
236
|
}
|
|
233
|
-
if (
|
|
234
|
-
let e =
|
|
237
|
+
if (r.endLabelLeft) {
|
|
238
|
+
let e = n.insert("g").attr("class", "edgeTerminals"), t = e.insert("g").attr("class", "inner"), i = await T(t, r.endLabelLeft, R(r.labelStyle) || "", !1, !1);
|
|
235
239
|
h = i;
|
|
236
240
|
let o = i.getBBox();
|
|
237
241
|
if (s) {
|
|
238
|
-
let e = i.children[0],
|
|
239
|
-
o = e.getBoundingClientRect(),
|
|
242
|
+
let e = i.children[0], t = a(i);
|
|
243
|
+
o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
|
|
240
244
|
}
|
|
241
|
-
|
|
245
|
+
t.attr("transform", D(o, s)), I.get(r.id) || I.set(r.id, {}), I.get(r.id).endLeft = e, V(h, r.endLabelLeft, o), B(r, "endLeft", o);
|
|
242
246
|
}
|
|
243
|
-
if (
|
|
244
|
-
let e =
|
|
247
|
+
if (r.endLabelRight) {
|
|
248
|
+
let e = n.insert("g").attr("class", "edgeTerminals"), t = e.insert("g").attr("class", "inner"), i = await T(t, r.endLabelRight, R(r.labelStyle) || "", !1, !1);
|
|
245
249
|
h = i;
|
|
246
250
|
let o = i.getBBox();
|
|
247
251
|
if (s) {
|
|
248
|
-
let e = i.children[0],
|
|
249
|
-
o = e.getBoundingClientRect(),
|
|
252
|
+
let e = i.children[0], t = a(i);
|
|
253
|
+
o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
|
|
250
254
|
}
|
|
251
|
-
|
|
255
|
+
t.attr("transform", D(o, s)), I.get(r.id) || I.set(r.id, {}), I.get(r.id).endRight = e, V(h, r.endLabelRight, o), B(r, "endRight", o);
|
|
252
256
|
}
|
|
253
257
|
return f;
|
|
254
258
|
}, "insertEdgeLabel");
|
|
255
|
-
function B(e, t) {
|
|
256
|
-
|
|
259
|
+
function B(e, t, n) {
|
|
260
|
+
e.terminalLabelSizes ??= {}, e.terminalLabelSizes[t] = {
|
|
261
|
+
width: n.width,
|
|
262
|
+
height: n.height
|
|
263
|
+
};
|
|
257
264
|
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
e
|
|
261
|
-
|
|
265
|
+
r(B, "recordTerminalLabelSize");
|
|
266
|
+
function V(n, r, i) {
|
|
267
|
+
t(e()) && n && (n.style.width = Math.max(r.length * 9, i.width) + "px", n.style.height = i.height + "px");
|
|
268
|
+
}
|
|
269
|
+
r(V, "setTerminalWidth");
|
|
270
|
+
var H = /* @__PURE__ */ r((e, t) => {
|
|
271
|
+
let n = e.x, r = e.y;
|
|
272
|
+
if (t?.updatedPath) {
|
|
273
|
+
let i = f.calcLabelPosition(t.updatedPath);
|
|
274
|
+
if (t.originalPath) {
|
|
275
|
+
let a = f.calcLabelPosition(t.originalPath);
|
|
276
|
+
n = e.x + (i.x - a.x), r = e.y + (i.y - a.y);
|
|
277
|
+
} else n = i.x, r = i.y;
|
|
278
|
+
}
|
|
279
|
+
return {
|
|
280
|
+
x: n,
|
|
281
|
+
y: r
|
|
282
|
+
};
|
|
283
|
+
}, "resolveEdgeLabelPosition"), U = /* @__PURE__ */ r((t, n) => {
|
|
284
|
+
i.debug("Moving label abc88 ", t.id, t.label, F.get(t.id), n);
|
|
285
|
+
let r = e(), { subGraphTitleTotalMargin: a } = E(r);
|
|
262
286
|
if (t.label) {
|
|
263
|
-
let
|
|
264
|
-
|
|
265
|
-
let i = m.calcLabelPosition(r);
|
|
266
|
-
e.debug("Moving label " + t.label + " from (", a, ",", s, ") to (", i.x, ",", i.y, ") abc88"), n.updatedPath && (a = i.x, s = i.y);
|
|
267
|
-
}
|
|
268
|
-
i.attr("transform", `translate(${a}, ${s + o / 2})`);
|
|
287
|
+
let e = F.get(t.id), { x: r, y: o } = H(t, n);
|
|
288
|
+
i.debug("Moving label " + t.label + " from (", t.x, ",", t.y, ") to (", r, ",", o, ") abc88"), e.attr("transform", `translate(${r}, ${o + a / 2})`);
|
|
269
289
|
}
|
|
290
|
+
let o = n.updatedPath ? n.updatedPath : n.originalPath;
|
|
270
291
|
if (t.startLabelLeft) {
|
|
271
|
-
let e =
|
|
272
|
-
if (
|
|
273
|
-
let e =
|
|
274
|
-
n = e.x,
|
|
292
|
+
let e = I.get(t.id).startLeft, n = t.x, r = t.y;
|
|
293
|
+
if (o) {
|
|
294
|
+
let e = f.calcTerminalLabelPosition(t.arrowTypeStart ? 10 : 0, "start_left", o);
|
|
295
|
+
n = e.x, r = e.y;
|
|
275
296
|
}
|
|
276
|
-
e.attr("transform", `translate(${n}, ${
|
|
297
|
+
e.attr("transform", `translate(${n}, ${r})`);
|
|
277
298
|
}
|
|
278
299
|
if (t.startLabelRight) {
|
|
279
|
-
let e =
|
|
280
|
-
if (
|
|
281
|
-
let e =
|
|
282
|
-
n = e.x,
|
|
300
|
+
let e = I.get(t.id).startRight, n = t.x, r = t.y;
|
|
301
|
+
if (o) {
|
|
302
|
+
let e = f.calcTerminalLabelPosition(t.arrowTypeStart ? 10 : 0, "start_right", o);
|
|
303
|
+
n = e.x, r = e.y;
|
|
283
304
|
}
|
|
284
|
-
e.attr("transform", `translate(${n}, ${
|
|
305
|
+
e.attr("transform", `translate(${n}, ${r})`);
|
|
285
306
|
}
|
|
286
307
|
if (t.endLabelLeft) {
|
|
287
|
-
let e =
|
|
288
|
-
if (
|
|
289
|
-
let e =
|
|
290
|
-
n = e.x,
|
|
308
|
+
let e = I.get(t.id).endLeft, n = t.x, r = t.y;
|
|
309
|
+
if (o) {
|
|
310
|
+
let e = f.calcTerminalLabelPosition(t.arrowTypeEnd ? 10 : 0, "end_left", o);
|
|
311
|
+
n = e.x, r = e.y;
|
|
291
312
|
}
|
|
292
|
-
e.attr("transform", `translate(${n}, ${
|
|
313
|
+
e.attr("transform", `translate(${n}, ${r})`);
|
|
293
314
|
}
|
|
294
315
|
if (t.endLabelRight) {
|
|
295
|
-
let e =
|
|
296
|
-
if (
|
|
297
|
-
let e =
|
|
298
|
-
n = e.x,
|
|
316
|
+
let e = I.get(t.id).endRight, n = t.x, r = t.y;
|
|
317
|
+
if (o) {
|
|
318
|
+
let e = f.calcTerminalLabelPosition(t.arrowTypeEnd ? 10 : 0, "end_right", o);
|
|
319
|
+
n = e.x, r = e.y;
|
|
299
320
|
}
|
|
300
|
-
e.attr("transform", `translate(${n}, ${
|
|
321
|
+
e.attr("transform", `translate(${n}, ${r})`);
|
|
301
322
|
}
|
|
302
|
-
}, "positionEdgeLabel"), ae = /* @__PURE__ */
|
|
323
|
+
}, "positionEdgeLabel"), ae = /* @__PURE__ */ r((e, t) => {
|
|
303
324
|
if (!e?.isLabelEdge || !e?.id?.endsWith("-to-label") || !Array.isArray(t) || t.length !== 2) return t;
|
|
304
325
|
let [n, r] = t, i = Math.abs(r.x - n.x), a = Math.abs(r.y - n.y);
|
|
305
326
|
return i < .001 || a < .001 ? t : a >= i ? [
|
|
@@ -317,50 +338,50 @@ var V = /* @__PURE__ */ a((t, n) => {
|
|
|
317
338
|
},
|
|
318
339
|
r
|
|
319
340
|
];
|
|
320
|
-
}, "orthogonalizeToLabelClippedPoints"),
|
|
341
|
+
}, "orthogonalizeToLabelClippedPoints"), W = /* @__PURE__ */ r((e, t) => {
|
|
321
342
|
let n = e.x, r = e.y, i = Math.abs(t.x - n), a = Math.abs(t.y - r), o = e.width / 2, s = e.height / 2;
|
|
322
343
|
return i >= o || a >= s;
|
|
323
|
-
}, "outsideNode"),
|
|
324
|
-
|
|
325
|
-
outsidePoint: ${JSON.stringify(
|
|
326
|
-
insidePoint : ${JSON.stringify(
|
|
327
|
-
node : x:${
|
|
328
|
-
let
|
|
329
|
-
if (Math.abs(a -
|
|
330
|
-
let
|
|
331
|
-
c = d *
|
|
332
|
-
let
|
|
333
|
-
x:
|
|
334
|
-
y:
|
|
344
|
+
}, "outsideNode"), G = /* @__PURE__ */ r((e, t, n) => {
|
|
345
|
+
i.debug(`intersection calc abc89:
|
|
346
|
+
outsidePoint: ${JSON.stringify(t)}
|
|
347
|
+
insidePoint : ${JSON.stringify(n)}
|
|
348
|
+
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);
|
|
349
|
+
let r = e.x, a = e.y, o = Math.abs(r - n.x), s = e.width / 2, c = n.x < t.x ? s - o : s + o, l = e.height / 2, u = Math.abs(t.y - n.y), d = Math.abs(t.x - n.x);
|
|
350
|
+
if (Math.abs(a - t.y) * s > Math.abs(r - t.x) * l) {
|
|
351
|
+
let e = n.y < t.y ? t.y - l - a : a - l - t.y;
|
|
352
|
+
c = d * e / u;
|
|
353
|
+
let r = {
|
|
354
|
+
x: n.x < t.x ? n.x + c : n.x - d + c,
|
|
355
|
+
y: n.y < t.y ? n.y + u - e : n.y - u + e
|
|
335
356
|
};
|
|
336
|
-
return c === 0 && (
|
|
357
|
+
return c === 0 && (r.x = t.x, r.y = t.y), d === 0 && (r.x = t.x), u === 0 && (r.y = t.y), i.debug(`abc89 top/bottom calc, Q ${u}, q ${e}, R ${d}, r ${c}`, r), r;
|
|
337
358
|
}
|
|
338
359
|
{
|
|
339
|
-
c =
|
|
340
|
-
let
|
|
341
|
-
return
|
|
360
|
+
c = n.x < t.x ? t.x - s - r : r - s - t.x;
|
|
361
|
+
let e = u * c / d, a = n.x < t.x ? n.x + d - c : n.x - d + c, o = n.y < t.y ? n.y + e : n.y - e;
|
|
362
|
+
return i.debug(`sides calc abc89, Q ${u}, q ${e}, R ${d}, r ${c}`, {
|
|
342
363
|
_x: a,
|
|
343
364
|
_y: o
|
|
344
|
-
}), c === 0 && (a =
|
|
365
|
+
}), c === 0 && (a = t.x, o = t.y), d === 0 && (a = t.x), u === 0 && (o = t.y), {
|
|
345
366
|
x: a,
|
|
346
367
|
y: o
|
|
347
368
|
};
|
|
348
369
|
}
|
|
349
|
-
}, "intersection"),
|
|
350
|
-
|
|
351
|
-
let
|
|
352
|
-
return
|
|
353
|
-
if (
|
|
354
|
-
let o =
|
|
355
|
-
|
|
370
|
+
}, "intersection"), K = /* @__PURE__ */ r((e, t) => {
|
|
371
|
+
i.warn("abc88 cutPathAtIntersect", e, t);
|
|
372
|
+
let n = [], r = e[0], a = !1;
|
|
373
|
+
return e.forEach((e) => {
|
|
374
|
+
if (i.info("abc88 checking point", e, t), !W(t, e) && !a) {
|
|
375
|
+
let o = G(t, r, e);
|
|
376
|
+
i.debug("abc88 inside", e, r, o), i.debug("abc88 intersection", o, t);
|
|
356
377
|
let s = !1;
|
|
357
|
-
|
|
378
|
+
n.forEach((e) => {
|
|
358
379
|
s ||= e.x === o.x && e.y === o.y;
|
|
359
|
-
}),
|
|
360
|
-
} else
|
|
361
|
-
}),
|
|
380
|
+
}), n.some((e) => e.x === o.x && e.y === o.y) ? i.warn("abc88 no intersect", o, n) : n.push(o), a = !0;
|
|
381
|
+
} else i.warn("abc88 outside", e, r), r = e, a || n.push(e);
|
|
382
|
+
}), i.debug("returning points", n), n;
|
|
362
383
|
}, "cutPathAtIntersect");
|
|
363
|
-
function
|
|
384
|
+
function q(e) {
|
|
364
385
|
let t = [], n = [];
|
|
365
386
|
for (let r = 1; r < e.length - 1; r++) {
|
|
366
387
|
let i = e[r - 1], a = e[r], o = e[r + 1];
|
|
@@ -371,161 +392,161 @@ function G(e) {
|
|
|
371
392
|
cornerPointPositions: n
|
|
372
393
|
};
|
|
373
394
|
}
|
|
374
|
-
|
|
375
|
-
var
|
|
395
|
+
r(q, "extractCornerPoints");
|
|
396
|
+
var J = /* @__PURE__ */ r(function(e, t, n) {
|
|
376
397
|
let r = t.x - e.x, i = t.y - e.y, a = n / Math.sqrt(r * r + i * i);
|
|
377
398
|
return {
|
|
378
399
|
x: t.x - a * r,
|
|
379
400
|
y: t.y - a * i
|
|
380
401
|
};
|
|
381
|
-
}, "findAdjacentPoint"), oe = /* @__PURE__ */
|
|
382
|
-
let { cornerPointPositions:
|
|
383
|
-
for (let
|
|
384
|
-
let
|
|
385
|
-
|
|
402
|
+
}, "findAdjacentPoint"), oe = /* @__PURE__ */ r(function(e) {
|
|
403
|
+
let { cornerPointPositions: t } = q(e), n = [];
|
|
404
|
+
for (let r = 0; r < e.length; r++) if (t.includes(r)) {
|
|
405
|
+
let t = e[r - 1], a = e[r + 1], o = e[r], s = J(t, o, 5), c = J(a, o, 5), l = c.x - s.x, u = c.y - s.y;
|
|
406
|
+
n.push(s);
|
|
386
407
|
let d = Math.sqrt(2) * 2, f = {
|
|
387
408
|
x: o.x,
|
|
388
409
|
y: o.y
|
|
389
410
|
};
|
|
390
|
-
Math.abs(a.x -
|
|
411
|
+
Math.abs(a.x - t.x) > 10 && Math.abs(a.y - t.y) >= 10 ? (i.debug("Corner point fixing", Math.abs(a.x - t.x), Math.abs(a.y - t.y)), f = o.x === s.x ? {
|
|
391
412
|
x: l < 0 ? s.x - 5 + d : s.x + 5 - d,
|
|
392
413
|
y: u < 0 ? s.y - d : s.y + d
|
|
393
414
|
} : {
|
|
394
415
|
x: l < 0 ? s.x - d : s.x + d,
|
|
395
416
|
y: u < 0 ? s.y - 5 + d : s.y + 5 - d
|
|
396
|
-
}) :
|
|
397
|
-
} else
|
|
398
|
-
return
|
|
399
|
-
}, "fixCorners"), se = /* @__PURE__ */
|
|
417
|
+
}) : i.debug("Corner point skipping fixing", Math.abs(a.x - t.x), Math.abs(a.y - t.y)), n.push(f, c);
|
|
418
|
+
} else n.push(e[r]);
|
|
419
|
+
return n;
|
|
420
|
+
}, "fixCorners"), se = /* @__PURE__ */ r((e, t, n) => {
|
|
400
421
|
let r = e - t - n, i = Math.floor(r / 4);
|
|
401
422
|
return `0 ${t} ${Array(Number.isFinite(i) ? Math.max(0, i) : 0).fill("2 2").join(" ")} ${n}`;
|
|
402
|
-
}, "generateDashArray"),
|
|
403
|
-
if (!
|
|
404
|
-
let { handDrawnSeed:
|
|
405
|
-
var
|
|
406
|
-
let
|
|
407
|
-
for (let e in
|
|
408
|
-
if (
|
|
409
|
-
if (
|
|
410
|
-
if (
|
|
423
|
+
}, "generateDashArray"), Y = /* @__PURE__ */ r(function(t, n, r, x, C, w, T, E = !1, D = void 0) {
|
|
424
|
+
if (!T) throw Error(`insertEdge: missing diagramId for edge "${n.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);
|
|
425
|
+
let { handDrawnSeed: O, layout: A } = e(), j = D ?? A, M = n.points, N = !1, P = C;
|
|
426
|
+
var F = w;
|
|
427
|
+
let I = [];
|
|
428
|
+
for (let e in n.cssCompiledStyles) S(e) || I.push(n.cssCompiledStyles[e]);
|
|
429
|
+
if (j === "swimlane") {
|
|
430
|
+
if (!E && F.intersect && P.intersect && Array.isArray(M) && M.length >= 2) {
|
|
431
|
+
if (M.length === 2) M = [P.intersect(M[0]), F.intersect(M[1])];
|
|
411
432
|
else {
|
|
412
|
-
let e =
|
|
413
|
-
|
|
433
|
+
let e = M.slice(1, -1), t = e[0], n = e[e.length - 1], r = .5, i = Math.abs(M[M.length - 1].x - n.x) < r && Math.abs(M[M.length - 1].y - n.y) < r, a = P.intersect(t), o = i ? n : F.intersect(n), s = Math.abs(o.x - n.x) < r && Math.abs(o.y - n.y) < r, c = Math.abs(a.x - t.x) < r && Math.abs(a.y - t.y) < r ? [] : [a], l = s ? [] : [o];
|
|
434
|
+
M = [
|
|
414
435
|
...c,
|
|
415
436
|
...e,
|
|
416
437
|
...l
|
|
417
438
|
];
|
|
418
439
|
}
|
|
419
440
|
}
|
|
420
|
-
|
|
421
|
-
} else
|
|
422
|
-
let
|
|
423
|
-
|
|
424
|
-
let
|
|
425
|
-
|
|
426
|
-
let
|
|
427
|
-
switch (
|
|
441
|
+
M = ae(n, M);
|
|
442
|
+
} else F.intersect && P.intersect && !E && (M = M.slice(1, n.points.length - 1), M.unshift(P.intersect(M[0])), M.push(F.intersect(M[M.length - 1])));
|
|
443
|
+
let ie = btoa(JSON.stringify(M));
|
|
444
|
+
n.toCluster && (i.info("to cluster abc88", r.get(n.toCluster)), M = K(n.points, r.get(n.toCluster).node), N = !0), n.fromCluster && (i.debug("from cluster abc88", r.get(n.fromCluster), JSON.stringify(M, null, 2)), M = K(M.reverse(), r.get(n.fromCluster).node).reverse(), N = !0);
|
|
445
|
+
let L = M.filter((e) => !Number.isNaN(e.y)), R = re(n.curve);
|
|
446
|
+
R !== "rounded" && (L = oe(L));
|
|
447
|
+
let z = h;
|
|
448
|
+
switch (R) {
|
|
428
449
|
case "linear":
|
|
429
|
-
|
|
450
|
+
z = h;
|
|
430
451
|
break;
|
|
431
452
|
case "basis":
|
|
432
|
-
|
|
453
|
+
z = y;
|
|
433
454
|
break;
|
|
434
455
|
case "cardinal":
|
|
435
|
-
|
|
456
|
+
z = m;
|
|
436
457
|
break;
|
|
437
458
|
case "bumpX":
|
|
438
|
-
|
|
459
|
+
z = g;
|
|
439
460
|
break;
|
|
440
461
|
case "bumpY":
|
|
441
|
-
|
|
462
|
+
z = v;
|
|
442
463
|
break;
|
|
443
464
|
case "catmullRom":
|
|
444
|
-
|
|
465
|
+
z = o;
|
|
445
466
|
break;
|
|
446
467
|
case "monotoneX":
|
|
447
|
-
|
|
468
|
+
z = d;
|
|
448
469
|
break;
|
|
449
470
|
case "monotoneY":
|
|
450
|
-
|
|
471
|
+
z = c;
|
|
451
472
|
break;
|
|
452
473
|
case "natural":
|
|
453
|
-
|
|
474
|
+
z = l;
|
|
454
475
|
break;
|
|
455
476
|
case "step":
|
|
456
|
-
|
|
477
|
+
z = u;
|
|
457
478
|
break;
|
|
458
479
|
case "stepAfter":
|
|
459
|
-
|
|
480
|
+
z = _;
|
|
460
481
|
break;
|
|
461
482
|
case "stepBefore":
|
|
462
|
-
|
|
483
|
+
z = s;
|
|
463
484
|
break;
|
|
464
485
|
case "rounded":
|
|
465
|
-
|
|
486
|
+
z = h;
|
|
466
487
|
break;
|
|
467
|
-
default:
|
|
488
|
+
default: z = y;
|
|
468
489
|
}
|
|
469
|
-
let { x:
|
|
470
|
-
switch (
|
|
490
|
+
let { x: B, y: V } = te(n), H = b().x(B).y(V).curve(z), U;
|
|
491
|
+
switch (n.thickness) {
|
|
471
492
|
case "normal":
|
|
472
|
-
|
|
493
|
+
U = "edge-thickness-normal";
|
|
473
494
|
break;
|
|
474
495
|
case "thick":
|
|
475
|
-
|
|
496
|
+
U = "edge-thickness-thick";
|
|
476
497
|
break;
|
|
477
498
|
case "invisible":
|
|
478
|
-
|
|
499
|
+
U = "edge-thickness-invisible";
|
|
479
500
|
break;
|
|
480
|
-
default:
|
|
501
|
+
default: U = "edge-thickness-normal";
|
|
481
502
|
}
|
|
482
|
-
switch (
|
|
503
|
+
switch (n.pattern) {
|
|
483
504
|
case "solid":
|
|
484
|
-
|
|
505
|
+
U += " edge-pattern-solid";
|
|
485
506
|
break;
|
|
486
507
|
case "dotted":
|
|
487
|
-
|
|
508
|
+
U += " edge-pattern-dotted";
|
|
488
509
|
break;
|
|
489
510
|
case "dashed":
|
|
490
|
-
|
|
511
|
+
U += " edge-pattern-dashed";
|
|
491
512
|
break;
|
|
492
|
-
default:
|
|
513
|
+
default: U += " edge-pattern-solid";
|
|
493
514
|
}
|
|
494
|
-
let
|
|
495
|
-
|
|
496
|
-
let
|
|
497
|
-
if (
|
|
498
|
-
let e =
|
|
499
|
-
Object.assign([],
|
|
500
|
-
let
|
|
515
|
+
let W, G = R === "rounded" ? X(ce(L, n), 5) : H(L), q = Array.isArray(n.style) ? n.style : [n.style], J = q.find((e) => e?.startsWith("stroke:")), Y = "";
|
|
516
|
+
n.animate && (Y = "edge-animation-fast"), n.animation && (Y = "edge-animation-" + n.animation);
|
|
517
|
+
let Z = !1;
|
|
518
|
+
if (n.look === "handDrawn") {
|
|
519
|
+
let e = ee.svg(t);
|
|
520
|
+
Object.assign([], L);
|
|
521
|
+
let r = e.path(G, {
|
|
501
522
|
roughness: .3,
|
|
502
|
-
seed:
|
|
523
|
+
seed: O
|
|
503
524
|
});
|
|
504
|
-
|
|
505
|
-
let
|
|
506
|
-
|
|
525
|
+
U += " transition", W = a(r).select("path").attr("id", `${T}-${n.id}`).attr("class", " " + U + (n.classes ? " " + n.classes : "") + (Y ? " " + Y : "")).attr("style", q ? q.reduce((e, t) => e + ";" + t, "") : "");
|
|
526
|
+
let i = W.attr("d");
|
|
527
|
+
W.attr("d", i), t.node().appendChild(W.node());
|
|
507
528
|
} else {
|
|
508
|
-
let e =
|
|
509
|
-
|
|
510
|
-
let a =
|
|
511
|
-
if (
|
|
512
|
-
let e = `stroke-dasharray: ${
|
|
513
|
-
|
|
529
|
+
let e = I.join(";"), r = q ? q.reduce((e, t) => e + t + ";", "") : "", i = (e ? e + ";" + r + ";" : r) + ";" + (q ? q.reduce((e, t) => e + ";" + t, "") : "");
|
|
530
|
+
W = t.append("path").attr("d", G).attr("id", `${T}-${n.id}`).attr("class", " " + U + (n.classes ? " " + n.classes : "") + (Y ? " " + Y : "")).attr("style", i), J = i.match(/stroke:([^;]+)/)?.[1], Z = n.animate === !0 || !!n.animation || e.includes("animation");
|
|
531
|
+
let a = W.node(), o = typeof a.getTotalLength == "function" ? a.getTotalLength() : 0, s = k[n.arrowTypeStart] || 0, c = k[n.arrowTypeEnd] || 0;
|
|
532
|
+
if (n.look === "neo" && !Z) {
|
|
533
|
+
let e = `stroke-dasharray: ${n.pattern === "dotted" || n.pattern === "dashed" ? se(o, s, c) : `0 ${s} ${o - s - c} ${c}`}; stroke-dashoffset: 0;`;
|
|
534
|
+
W.attr("style", e + W.attr("style"));
|
|
514
535
|
}
|
|
515
536
|
}
|
|
516
|
-
|
|
517
|
-
|
|
537
|
+
W.attr("data-edge", !0), W.attr("data-et", "edge"), W.attr("data-id", n.id), W.attr("data-points", ie), W.attr("data-look", p(n.look)), n.showPoints && L.forEach((e) => {
|
|
538
|
+
t.append("circle").style("stroke", "red").style("fill", "red").attr("r", 1).attr("cx", e.x).attr("cy", e.y);
|
|
518
539
|
});
|
|
519
|
-
let
|
|
520
|
-
(
|
|
521
|
-
let
|
|
522
|
-
|
|
523
|
-
let
|
|
524
|
-
|
|
540
|
+
let Q = "";
|
|
541
|
+
(e().flowchart.arrowMarkerAbsolute || e().state.arrowMarkerAbsolute) && (Q = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, Q = Q.replace(/\(/g, "\\(").replace(/\)/g, "\\)")), i.info("arrowTypeStart", n.arrowTypeStart), i.info("arrowTypeEnd", n.arrowTypeEnd);
|
|
542
|
+
let le = !Z && n?.look === "neo";
|
|
543
|
+
ne(W, n, Q, T, x, le, J);
|
|
544
|
+
let ue = Math.floor(M.length / 2), de = M[ue];
|
|
545
|
+
f.isLabelCoordinateInPath(de, W.attr("d")) || (N = !0);
|
|
525
546
|
let $ = {};
|
|
526
|
-
return
|
|
547
|
+
return N && ($.updatedPath = M), $.originalPath = n.points, $;
|
|
527
548
|
}, "insertEdge");
|
|
528
|
-
function
|
|
549
|
+
function X(e, t) {
|
|
529
550
|
if (e.length < 2) return "";
|
|
530
551
|
let n = "", r = e.length, i = 1e-5;
|
|
531
552
|
for (let a = 0; a < r; a++) {
|
|
@@ -543,14 +564,14 @@ function J(e, t) {
|
|
|
543
564
|
n += `L${o.x},${o.y}`;
|
|
544
565
|
continue;
|
|
545
566
|
}
|
|
546
|
-
let v = Math.min(t / Math.sin(_ / 2), u / 2, d / 2),
|
|
547
|
-
n += `L${
|
|
567
|
+
let v = Math.min(t / Math.sin(_ / 2), u / 2, d / 2), y = o.x - f * v, b = o.y - p * v, x = o.x + m * v, S = o.y + h * v;
|
|
568
|
+
n += `L${y},${b}`, n += `Q${o.x},${o.y} ${x},${S}`;
|
|
548
569
|
}
|
|
549
570
|
}
|
|
550
571
|
return n;
|
|
551
572
|
}
|
|
552
|
-
|
|
553
|
-
function
|
|
573
|
+
r(X, "generateRoundedPath");
|
|
574
|
+
function Z(e, t) {
|
|
554
575
|
if (!e || !t) return {
|
|
555
576
|
angle: 0,
|
|
556
577
|
deltaX: 0,
|
|
@@ -563,110 +584,113 @@ function Y(e, t) {
|
|
|
563
584
|
deltaY: r
|
|
564
585
|
};
|
|
565
586
|
}
|
|
566
|
-
|
|
567
|
-
function
|
|
587
|
+
r(Z, "calculateDeltaAndAngle");
|
|
588
|
+
function ce(e, t) {
|
|
568
589
|
let n = e.map((e) => ({ ...e }));
|
|
569
|
-
if (e.length >= 2 &&
|
|
570
|
-
let r =
|
|
590
|
+
if (e.length >= 2 && O[t.arrowTypeStart]) {
|
|
591
|
+
let r = O[t.arrowTypeStart], i = e[0], a = e[1], { angle: o } = Z(i, a), s = r * Math.cos(o), c = r * Math.sin(o);
|
|
571
592
|
n[0].x = i.x + s, n[0].y = i.y + c;
|
|
572
593
|
}
|
|
573
594
|
let r = e.length;
|
|
574
|
-
if (r >= 2 &&
|
|
575
|
-
let i =
|
|
595
|
+
if (r >= 2 && O[t.arrowTypeEnd]) {
|
|
596
|
+
let i = O[t.arrowTypeEnd], a = e[r - 1], o = e[r - 2], { angle: s } = Z(o, a), c = i * Math.cos(s), l = i * Math.sin(s);
|
|
576
597
|
n[r - 1].x = a.x - c, n[r - 1].y = a.y - l;
|
|
577
598
|
}
|
|
578
599
|
return n;
|
|
579
600
|
}
|
|
580
|
-
|
|
581
|
-
var
|
|
601
|
+
r(ce, "applyMarkerOffsetsToPoints");
|
|
602
|
+
var Q = /* @__PURE__ */ r((e, t, n, r) => {
|
|
582
603
|
t.forEach((t) => {
|
|
583
|
-
|
|
604
|
+
le[t](e, n, r);
|
|
584
605
|
});
|
|
585
|
-
}, "insertMarkers"),
|
|
586
|
-
extension: /* @__PURE__ */
|
|
587
|
-
|
|
606
|
+
}, "insertMarkers"), le = {
|
|
607
|
+
extension: /* @__PURE__ */ r((e, t, n) => {
|
|
608
|
+
i.trace("Making markers for ", n), e.append("defs").append("marker").attr("id", n + "_" + t + "-extensionStart").attr("class", "marker extension " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-extensionEnd").attr("class", "marker extension " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 1,1 V 13 L18,7 Z"), e.append("marker").attr("id", n + "_" + t + "-extensionStart-margin").attr("class", "marker extension " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").attr("viewBox", "0 0 20 14").append("polygon").attr("points", "10,7 18,13 18,1").style("stroke-width", 2).style("stroke-dasharray", "0"), e.append("defs").append("marker").attr("id", n + "_" + t + "-extensionEnd-margin").attr("class", "marker extension " + t).attr("refX", 9).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").attr("viewBox", "0 0 20 14").append("polygon").attr("points", "10,1 10,13 18,7").style("stroke-width", 2).style("stroke-dasharray", "0");
|
|
588
609
|
}, "extension"),
|
|
589
|
-
composition: /* @__PURE__ */
|
|
610
|
+
composition: /* @__PURE__ */ r((e, t, n) => {
|
|
590
611
|
e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionStart").attr("class", "marker composition " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionEnd").attr("class", "marker composition " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionStart-margin").attr("class", "marker composition " + t).attr("refX", 15).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("viewBox", "0 0 15 15").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionEnd-margin").attr("class", "marker composition " + t).attr("refX", 3.5).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
|
|
591
612
|
}, "composition"),
|
|
592
|
-
aggregation: /* @__PURE__ */
|
|
613
|
+
aggregation: /* @__PURE__ */ r((e, t, n) => {
|
|
593
614
|
e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationStart").attr("class", "marker aggregation " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationEnd").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationStart-margin").attr("class", "marker aggregation " + t).attr("refX", 15).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 2).attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationEnd-margin").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 2).attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
|
|
594
615
|
}, "aggregation"),
|
|
595
|
-
dependency: /* @__PURE__ */
|
|
616
|
+
dependency: /* @__PURE__ */ r((e, t, n) => {
|
|
596
617
|
e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyStart").attr("class", "marker dependency " + t).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyEnd").attr("class", "marker dependency " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyStart-margin").attr("class", "marker dependency " + t).attr("refX", 4).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyEnd-margin").attr("class", "marker dependency " + t).attr("refX", 16).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
|
|
597
618
|
}, "dependency"),
|
|
598
|
-
lollipop: /* @__PURE__ */
|
|
619
|
+
lollipop: /* @__PURE__ */ r((e, t, n) => {
|
|
599
620
|
e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopStart").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopEnd").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopStart-margin").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6).attr("stroke-width", 2), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopEnd-margin").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6).attr("stroke-width", 2);
|
|
600
621
|
}, "lollipop"),
|
|
601
|
-
point: /* @__PURE__ */
|
|
622
|
+
point: /* @__PURE__ */ r((e, t, n) => {
|
|
602
623
|
e.append("marker").attr("id", n + "_" + t + "-pointEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-pointStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-pointEnd-margin").attr("class", "marker " + t).attr("viewBox", "0 0 11.5 14").attr("refX", 11.5).attr("refY", 7).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 10.5).attr("markerHeight", 14).attr("orient", "auto").append("path").attr("d", "M 0 0 L 11.5 7 L 0 14 z").attr("class", "arrowMarkerPath").style("stroke-width", 0).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-pointStart-margin").attr("class", "marker " + t).attr("viewBox", "0 0 11.5 14").attr("refX", 1).attr("refY", 7).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11.5).attr("markerHeight", 14).attr("orient", "auto").append("polygon").attr("points", "0,7 11.5,14 11.5,0").attr("class", "arrowMarkerPath").style("stroke-width", 0).style("stroke-dasharray", "1,0");
|
|
603
624
|
}, "point"),
|
|
604
|
-
circle: /* @__PURE__ */
|
|
625
|
+
circle: /* @__PURE__ */ r((e, t, n) => {
|
|
605
626
|
e.append("marker").attr("id", n + "_" + t + "-circleEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-circleStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-circleEnd-margin").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refY", 5).attr("refX", 12.25).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 14).attr("markerHeight", 14).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 0).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-circleStart-margin").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", -2).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 14).attr("markerHeight", 14).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 0).style("stroke-dasharray", "1,0");
|
|
606
627
|
}, "circle"),
|
|
607
|
-
cross: /* @__PURE__ */
|
|
628
|
+
cross: /* @__PURE__ */ r((e, t, n) => {
|
|
608
629
|
e.append("marker").attr("id", n + "_" + t + "-crossEnd").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-crossStart").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-crossEnd-margin").attr("class", "marker cross " + t).attr("viewBox", "0 0 15 15").attr("refX", 17.7).attr("refY", 7.5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 1,1 L 14,14 M 1,14 L 14,1").attr("class", "arrowMarkerPath").style("stroke-width", 2.5), e.append("marker").attr("id", n + "_" + t + "-crossStart-margin").attr("class", "marker cross " + t).attr("viewBox", "0 0 15 15").attr("refX", -3.5).attr("refY", 7.5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 1,1 L 14,14 M 1,14 L 14,1").attr("class", "arrowMarkerPath").style("stroke-width", 2.5).style("stroke-dasharray", "1,0");
|
|
609
630
|
}, "cross"),
|
|
610
|
-
barb: /* @__PURE__ */
|
|
631
|
+
barb: /* @__PURE__ */ r((e, t, n) => {
|
|
611
632
|
e.append("defs").append("marker").attr("id", n + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
|
|
612
633
|
}, "barb"),
|
|
613
|
-
barbNeo: /* @__PURE__ */
|
|
614
|
-
let { themeVariables: i } =
|
|
615
|
-
e.append("defs").append("marker").attr("id",
|
|
634
|
+
barbNeo: /* @__PURE__ */ r((e, t, r) => {
|
|
635
|
+
let { themeVariables: i } = n(), { transitionColor: a } = i;
|
|
636
|
+
e.append("defs").append("marker").attr("id", r + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L11,14 L13,7 L11,0 Z"), e.append("defs").append("marker").attr("id", r + "_" + t + "-barbEnd-margin").attr("refX", 17).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M 19,7 L11,14 L13,7 L11,0 Z").attr("fill", `${a}`);
|
|
616
637
|
}, "barbNeo"),
|
|
617
|
-
|
|
638
|
+
hierarchy: /* @__PURE__ */ r((e, t, n) => {
|
|
639
|
+
e.append("marker").attr("id", n + "_" + t + "-hierarchyEnd").attr("class", "marker hierarchy " + t).attr("viewBox", "0 0 12 10").attr("refX", 10).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 10).attr("orient", "auto").append("path").attr("d", "M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0").style("fill", "none"), e.append("marker").attr("id", n + "_" + t + "-hierarchyStart").attr("class", "marker hierarchy " + t).attr("viewBox", "0 0 12 10").attr("refX", 2).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 10).attr("orient", "auto").append("path").attr("d", "M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0").style("fill", "none");
|
|
640
|
+
}, "hierarchy"),
|
|
641
|
+
only_one: /* @__PURE__ */ r((e, t, n) => {
|
|
618
642
|
e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneStart").attr("class", "marker onlyOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("d", "M9,0 L9,18 M15,0 L15,18"), e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneEnd").attr("class", "marker onlyOne " + t).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("d", "M3,0 L3,18 M9,0 L9,18");
|
|
619
643
|
}, "only_one"),
|
|
620
|
-
zero_or_one: /* @__PURE__ */
|
|
644
|
+
zero_or_one: /* @__PURE__ */ r((e, t, n) => {
|
|
621
645
|
let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneStart").attr("class", "marker zeroOrOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto");
|
|
622
646
|
r.append("circle").attr("fill", "white").attr("cx", 21).attr("cy", 9).attr("r", 6), r.append("path").attr("d", "M9,0 L9,18");
|
|
623
647
|
let i = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneEnd").attr("class", "marker zeroOrOne " + t).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto");
|
|
624
648
|
i.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 9).attr("r", 6), i.append("path").attr("d", "M21,0 L21,18");
|
|
625
649
|
}, "zero_or_one"),
|
|
626
|
-
one_or_more: /* @__PURE__ */
|
|
650
|
+
one_or_more: /* @__PURE__ */ r((e, t, n) => {
|
|
627
651
|
e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreStart").attr("class", "marker oneOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("d", "M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"), e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreEnd").attr("class", "marker oneOrMore " + t).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18");
|
|
628
652
|
}, "one_or_more"),
|
|
629
|
-
zero_or_more: /* @__PURE__ */
|
|
653
|
+
zero_or_more: /* @__PURE__ */ r((e, t, n) => {
|
|
630
654
|
let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreStart").attr("class", "marker zeroOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto");
|
|
631
655
|
r.append("circle").attr("fill", "white").attr("cx", 48).attr("cy", 18).attr("r", 6), r.append("path").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18");
|
|
632
656
|
let i = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreEnd").attr("class", "marker zeroOrMore " + t).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto");
|
|
633
657
|
i.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 18).attr("r", 6), i.append("path").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18");
|
|
634
658
|
}, "zero_or_more"),
|
|
635
|
-
only_one_neo: /* @__PURE__ */
|
|
636
|
-
let { themeVariables: i } =
|
|
637
|
-
e.append("defs").append("marker").attr("id",
|
|
659
|
+
only_one_neo: /* @__PURE__ */ r((e, t, r) => {
|
|
660
|
+
let { themeVariables: i } = n(), { strokeWidth: a } = i;
|
|
661
|
+
e.append("defs").append("marker").attr("id", r + "_" + t + "-onlyOneStart").attr("class", "marker onlyOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M9,0 L9,18 M15,0 L15,18").attr("stroke-width", `${a}`), e.append("defs").append("marker").attr("id", r + "_" + t + "-onlyOneEnd").attr("class", "marker onlyOne " + t).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M3,0 L3,18 M9,0 L9,18").attr("stroke-width", `${a}`);
|
|
638
662
|
}, "only_one_neo"),
|
|
639
|
-
zero_or_one_neo: /* @__PURE__ */
|
|
640
|
-
let { themeVariables: i } =
|
|
663
|
+
zero_or_one_neo: /* @__PURE__ */ r((e, t, r) => {
|
|
664
|
+
let { themeVariables: i } = n(), { strokeWidth: a, mainBkg: o } = i, s = e.append("defs").append("marker").attr("id", r + "_" + t + "-zeroOrOneStart").attr("class", "marker zeroOrOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse");
|
|
641
665
|
s.append("circle").attr("fill", o ?? "white").attr("cx", 21).attr("cy", 9).attr("stroke-width", `${a}`).attr("r", 6), s.append("path").attr("d", "M9,0 L9,18").attr("stroke-width", `${a}`);
|
|
642
|
-
let c = e.append("defs").append("marker").attr("id",
|
|
666
|
+
let c = e.append("defs").append("marker").attr("id", r + "_" + t + "-zeroOrOneEnd").attr("class", "marker zeroOrOne " + t).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto");
|
|
643
667
|
c.append("circle").attr("fill", o ?? "white").attr("cx", 9).attr("cy", 9).attr("stroke-width", `${a}`).attr("r", 6), c.append("path").attr("d", "M21,0 L21,18").attr("stroke-width", `${a}`);
|
|
644
668
|
}, "zero_or_one_neo"),
|
|
645
|
-
one_or_more_neo: /* @__PURE__ */
|
|
646
|
-
let { themeVariables: i } =
|
|
647
|
-
e.append("defs").append("marker").attr("id",
|
|
669
|
+
one_or_more_neo: /* @__PURE__ */ r((e, t, r) => {
|
|
670
|
+
let { themeVariables: i } = n(), { strokeWidth: a } = i;
|
|
671
|
+
e.append("defs").append("marker").attr("id", r + "_" + t + "-oneOrMoreStart").attr("class", "marker oneOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width", `${a}`), e.append("defs").append("marker").attr("id", r + "_" + t + "-oneOrMoreEnd").attr("class", "marker oneOrMore " + t).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width", `${a}`);
|
|
648
672
|
}, "one_or_more_neo"),
|
|
649
|
-
zero_or_more_neo: /* @__PURE__ */
|
|
650
|
-
let { themeVariables: i } =
|
|
673
|
+
zero_or_more_neo: /* @__PURE__ */ r((e, t, r) => {
|
|
674
|
+
let { themeVariables: i } = n(), { strokeWidth: a, mainBkg: o } = i, s = e.append("defs").append("marker").attr("id", r + "_" + t + "-zeroOrMoreStart").attr("class", "marker zeroOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto");
|
|
651
675
|
s.append("circle").attr("fill", o ?? "white").attr("cx", 45.5).attr("cy", 18).attr("r", 6).attr("stroke-width", `${a}`), s.append("path").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width", `${a}`);
|
|
652
|
-
let c = e.append("defs").append("marker").attr("id",
|
|
676
|
+
let c = e.append("defs").append("marker").attr("id", r + "_" + t + "-zeroOrMoreEnd").attr("class", "marker zeroOrMore " + t).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse");
|
|
653
677
|
c.append("circle").attr("fill", o ?? "white").attr("cx", 11).attr("cy", 18).attr("r", 6).attr("stroke-width", `${a}`), c.append("path").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width", `${a}`);
|
|
654
678
|
}, "zero_or_more_neo"),
|
|
655
|
-
requirement_arrow: /* @__PURE__ */
|
|
679
|
+
requirement_arrow: /* @__PURE__ */ r((e, t, n) => {
|
|
656
680
|
e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_arrowEnd").attr("refX", 20).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("path").attr("d", "M0,0\n L20,10\n M20,10\n L0,20");
|
|
657
681
|
}, "requirement_arrow"),
|
|
658
|
-
requirement_contains: /* @__PURE__ */
|
|
682
|
+
requirement_contains: /* @__PURE__ */ r((e, t, n) => {
|
|
659
683
|
let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_containsStart").attr("refX", 0).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("g");
|
|
660
684
|
r.append("circle").attr("cx", 10).attr("cy", 10).attr("r", 9).attr("fill", "none"), r.append("line").attr("x1", 1).attr("x2", 19).attr("y1", 10).attr("y2", 10), r.append("line").attr("y1", 1).attr("y2", 19).attr("x1", 10).attr("x2", 10);
|
|
661
685
|
}, "requirement_contains"),
|
|
662
|
-
requirement_arrow_neo: /* @__PURE__ */
|
|
663
|
-
let { themeVariables: i } =
|
|
664
|
-
e.append("defs").append("marker").attr("id",
|
|
686
|
+
requirement_arrow_neo: /* @__PURE__ */ r((e, t, r) => {
|
|
687
|
+
let { themeVariables: i } = n(), { strokeWidth: a } = i;
|
|
688
|
+
e.append("defs").append("marker").attr("id", r + "_" + t + "-requirement_arrowEnd").attr("refX", 20).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").attr("stroke-width", `${a}`).attr("viewBox", "0 0 25 20").append("path").attr("d", "M0,0\n L20,10\n M20,10\n L0,20").attr("stroke-linejoin", "miter");
|
|
665
689
|
}, "requirement_arrow_neo"),
|
|
666
|
-
requirement_contains_neo: /* @__PURE__ */
|
|
667
|
-
let { themeVariables: i } =
|
|
690
|
+
requirement_contains_neo: /* @__PURE__ */ r((e, t, r) => {
|
|
691
|
+
let { themeVariables: i } = n(), { strokeWidth: a } = i, o = e.append("defs").append("marker").attr("id", r + "_" + t + "-requirement_containsStart").attr("refX", 0).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("g");
|
|
668
692
|
o.append("circle").attr("cx", 10).attr("cy", 10).attr("r", 9).attr("fill", "none"), o.append("line").attr("x1", 1).attr("x2", 19).attr("y1", 10).attr("y2", 10), o.append("line").attr("y1", 1).attr("y2", 19).attr("x1", 10).attr("x2", 10), o.selectAll("*").attr("stroke-width", `${a}`);
|
|
669
693
|
}, "requirement_contains_neo")
|
|
670
|
-
},
|
|
694
|
+
}, ue = Q;
|
|
671
695
|
//#endregion
|
|
672
|
-
export { z as a,
|
|
696
|
+
export { z as a, ue as c, I as d, Y as i, U as l, F as n, O as o, L as r, k as s, ie as t, H as u };
|