@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,17 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { C as e, H as t, U as n, _ as r, a as i, b as a, q as o, s, st as c, v as l } from "./chunk-DSNLSHJZ-B1A8wsiA.js";
|
|
2
|
+
import { n as u } from "./chunk-Y2CYZVJY-i11wjrBe.js";
|
|
3
|
+
import { m as d, p as f } from "./src-CY9Rz0Sf.js";
|
|
4
|
+
import { _ as p, s as m } from "./chunk-7S6XSTFO-CN6S2H1-.js";
|
|
5
|
+
import "./chunk-UHW7PFBP-CoHGQVjo.js";
|
|
6
|
+
import "./chunk-YZO67HFG-Bcmpw0dX.js";
|
|
7
|
+
import "./chunk-AQDTSKZB-DuUha9al.js";
|
|
8
|
+
import { a as h, i as g, o as _, r as v } from "./chunk-J5ZVWO5B-CYzz6Pq8.js";
|
|
9
|
+
import "./chunk-HAGFOTED-IzyIoLzD.js";
|
|
10
|
+
import "./chunk-ZAUX2LTX-Bu7BRVL6.js";
|
|
11
|
+
import "./chunk-HNE4Q36P-7zVKLE_b.js";
|
|
12
|
+
import "./chunk-WQQL4CDK-BJE6isq-.js";
|
|
13
|
+
import { r as y, t as b } from "./chunk-EJLWFMJV-Cu6XnLfk.js";
|
|
14
|
+
import { t as x } from "./chunk-55XCU76K-B1HtPImz.js";
|
|
15
|
+
import { t as S } from "./chunk-XXDRQBXY-CU-dbs05.js";
|
|
16
|
+
import { t as C } from "./chunk-VQ5W62QI-BSDHmyws.js";
|
|
17
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-A6IESKWZ.mjs
|
|
18
|
+
var w = (function() {
|
|
19
|
+
var e = /* @__PURE__ */ u(function(e, t, n, r) {
|
|
12
20
|
for (n ||= {}, r = e.length; r--; n[e[r]] = t);
|
|
13
21
|
return n;
|
|
14
|
-
}, "o"), t = [1, 2], n = [1, 3], r = [1, 4], i = [2, 4], a = [1, 9], o = [1, 11], s = [1, 16], c = [1, 17], l = [1, 18],
|
|
22
|
+
}, "o"), t = [1, 2], n = [1, 3], r = [1, 4], i = [2, 4], a = [1, 9], o = [1, 11], s = [1, 16], c = [1, 17], l = [1, 18], d = [1, 19], f = [1, 33], p = [1, 20], m = [1, 21], h = [1, 22], g = [1, 23], _ = [1, 24], v = [1, 26], y = [1, 27], b = [1, 28], x = [1, 29], S = [1, 30], C = [1, 31], w = [1, 32], T = [1, 35], E = [1, 36], D = [1, 37], O = [1, 38], k = [1, 34], A = [
|
|
15
23
|
1,
|
|
16
24
|
4,
|
|
17
25
|
5,
|
|
@@ -96,7 +104,7 @@ var y = (function() {
|
|
|
96
104
|
54,
|
|
97
105
|
57
|
|
98
106
|
], N = {
|
|
99
|
-
trace: /* @__PURE__ */
|
|
107
|
+
trace: /* @__PURE__ */ u(function() {}, "trace"),
|
|
100
108
|
yy: {},
|
|
101
109
|
symbols_: {
|
|
102
110
|
error: 2,
|
|
@@ -263,7 +271,7 @@ var y = (function() {
|
|
|
263
271
|
[30, 1],
|
|
264
272
|
[30, 1]
|
|
265
273
|
],
|
|
266
|
-
performAction: /* @__PURE__ */
|
|
274
|
+
performAction: /* @__PURE__ */ u(function(e, t, n, r, i, a, o) {
|
|
267
275
|
var s = a.length - 1;
|
|
268
276
|
switch (i) {
|
|
269
277
|
case 3: return r.setRootDoc(a[s]), a[s];
|
|
@@ -530,8 +538,8 @@ var y = (function() {
|
|
|
530
538
|
16: s,
|
|
531
539
|
17: c,
|
|
532
540
|
19: l,
|
|
533
|
-
22:
|
|
534
|
-
24:
|
|
541
|
+
22: d,
|
|
542
|
+
24: f,
|
|
535
543
|
25: p,
|
|
536
544
|
26: m,
|
|
537
545
|
27: h,
|
|
@@ -561,8 +569,8 @@ var y = (function() {
|
|
|
561
569
|
16: s,
|
|
562
570
|
17: c,
|
|
563
571
|
19: l,
|
|
564
|
-
22:
|
|
565
|
-
24:
|
|
572
|
+
22: d,
|
|
573
|
+
24: f,
|
|
566
574
|
25: p,
|
|
567
575
|
26: m,
|
|
568
576
|
27: h,
|
|
@@ -611,7 +619,7 @@ var y = (function() {
|
|
|
611
619
|
e(A, [2, 31]),
|
|
612
620
|
{
|
|
613
621
|
13: 51,
|
|
614
|
-
24:
|
|
622
|
+
24: f,
|
|
615
623
|
57: k
|
|
616
624
|
},
|
|
617
625
|
{
|
|
@@ -630,7 +638,7 @@ var y = (function() {
|
|
|
630
638
|
e(A, [2, 13]),
|
|
631
639
|
{
|
|
632
640
|
13: 58,
|
|
633
|
-
24:
|
|
641
|
+
24: f,
|
|
634
642
|
57: k
|
|
635
643
|
},
|
|
636
644
|
e(A, [2, 17]),
|
|
@@ -666,8 +674,8 @@ var y = (function() {
|
|
|
666
674
|
17: c,
|
|
667
675
|
19: l,
|
|
668
676
|
21: [1, 72],
|
|
669
|
-
22:
|
|
670
|
-
24:
|
|
677
|
+
22: d,
|
|
678
|
+
24: f,
|
|
671
679
|
25: p,
|
|
672
680
|
26: m,
|
|
673
681
|
27: h,
|
|
@@ -718,8 +726,8 @@ var y = (function() {
|
|
|
718
726
|
17: c,
|
|
719
727
|
19: l,
|
|
720
728
|
21: [1, 81],
|
|
721
|
-
22:
|
|
722
|
-
24:
|
|
729
|
+
22: d,
|
|
730
|
+
24: f,
|
|
723
731
|
25: p,
|
|
724
732
|
26: m,
|
|
725
733
|
27: h,
|
|
@@ -749,15 +757,15 @@ var y = (function() {
|
|
|
749
757
|
47: [2, 48],
|
|
750
758
|
48: [2, 49]
|
|
751
759
|
},
|
|
752
|
-
parseError: /* @__PURE__ */
|
|
760
|
+
parseError: /* @__PURE__ */ u(function(e, t) {
|
|
753
761
|
if (t.recoverable) this.trace(e);
|
|
754
762
|
else {
|
|
755
763
|
var n = Error(e);
|
|
756
764
|
throw n.hash = t, n;
|
|
757
765
|
}
|
|
758
766
|
}, "parseError"),
|
|
759
|
-
parse: /* @__PURE__ */
|
|
760
|
-
var t = this, n = [0], r = [], i = [null], a = [], o = this.table, s = "", c = 0, l = 0,
|
|
767
|
+
parse: /* @__PURE__ */ u(function(e) {
|
|
768
|
+
var t = this, n = [0], r = [], i = [null], a = [], o = this.table, s = "", c = 0, l = 0, d = 0, f = 2, p = 1, m = a.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
|
|
761
769
|
for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
|
|
762
770
|
h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
|
|
763
771
|
var v = h.yylloc;
|
|
@@ -767,16 +775,16 @@ var y = (function() {
|
|
|
767
775
|
function b(e) {
|
|
768
776
|
n.length -= 2 * e, i.length -= e, a.length -= e;
|
|
769
777
|
}
|
|
770
|
-
|
|
778
|
+
u(b, "popStack");
|
|
771
779
|
function x() {
|
|
772
780
|
var e = r.pop() || h.lex() || p;
|
|
773
781
|
return typeof e != "number" && (e instanceof Array && (r = e, e = r.pop()), e = t.symbols_[e] || e), e;
|
|
774
782
|
}
|
|
775
|
-
|
|
783
|
+
u(x, "lex");
|
|
776
784
|
for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
|
|
777
785
|
if (w = n[n.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = o[w] && o[w][S]), T === void 0 || !T.length || !T[0]) {
|
|
778
786
|
var M = "";
|
|
779
|
-
for (O in j = [], o[w]) this.terminals_[O] && O >
|
|
787
|
+
for (O in j = [], o[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
|
|
780
788
|
M = h.showPosition ? "Parse error on line " + (c + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (c + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
|
|
781
789
|
text: h.match,
|
|
782
790
|
token: this.terminals_[S] || S,
|
|
@@ -788,7 +796,7 @@ var y = (function() {
|
|
|
788
796
|
if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
|
|
789
797
|
switch (T[0]) {
|
|
790
798
|
case 1:
|
|
791
|
-
n.push(S), i.push(h.yytext), a.push(h.yylloc), n.push(T[1]), S = null, C ? (S = C, C = null) : (l = h.yyleng, s = h.yytext, c = h.yylineno, v = h.yylloc,
|
|
799
|
+
n.push(S), i.push(h.yytext), a.push(h.yylloc), n.push(T[1]), S = null, C ? (S = C, C = null) : (l = h.yyleng, s = h.yytext, c = h.yylineno, v = h.yylloc, d > 0 && d--);
|
|
792
800
|
break;
|
|
793
801
|
case 2:
|
|
794
802
|
if (k = this.productions_[T[1]][1], D.$ = i[i.length - k], D._$ = {
|
|
@@ -816,11 +824,11 @@ var y = (function() {
|
|
|
816
824
|
N.lexer = /* @__PURE__ */ (function() {
|
|
817
825
|
return {
|
|
818
826
|
EOF: 1,
|
|
819
|
-
parseError: /* @__PURE__ */
|
|
827
|
+
parseError: /* @__PURE__ */ u(function(e, t) {
|
|
820
828
|
if (this.yy.parser) this.yy.parser.parseError(e, t);
|
|
821
829
|
else throw Error(e);
|
|
822
830
|
}, "parseError"),
|
|
823
|
-
setInput: /* @__PURE__ */
|
|
831
|
+
setInput: /* @__PURE__ */ u(function(e, t) {
|
|
824
832
|
return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
825
833
|
first_line: 1,
|
|
826
834
|
first_column: 0,
|
|
@@ -828,11 +836,11 @@ var y = (function() {
|
|
|
828
836
|
last_column: 0
|
|
829
837
|
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
830
838
|
}, "setInput"),
|
|
831
|
-
input: /* @__PURE__ */
|
|
839
|
+
input: /* @__PURE__ */ u(function() {
|
|
832
840
|
var e = this._input[0];
|
|
833
841
|
return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
|
|
834
842
|
}, "input"),
|
|
835
|
-
unput: /* @__PURE__ */
|
|
843
|
+
unput: /* @__PURE__ */ u(function(e) {
|
|
836
844
|
var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
|
|
837
845
|
this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
|
|
838
846
|
var r = this.match.split(/(?:\r\n?|\n)/g);
|
|
@@ -845,10 +853,10 @@ var y = (function() {
|
|
|
845
853
|
last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
|
|
846
854
|
}, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
|
|
847
855
|
}, "unput"),
|
|
848
|
-
more: /* @__PURE__ */
|
|
856
|
+
more: /* @__PURE__ */ u(function() {
|
|
849
857
|
return this._more = !0, this;
|
|
850
858
|
}, "more"),
|
|
851
|
-
reject: /* @__PURE__ */
|
|
859
|
+
reject: /* @__PURE__ */ u(function() {
|
|
852
860
|
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
853
861
|
else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
|
|
854
862
|
text: "",
|
|
@@ -857,22 +865,22 @@ var y = (function() {
|
|
|
857
865
|
});
|
|
858
866
|
return this;
|
|
859
867
|
}, "reject"),
|
|
860
|
-
less: /* @__PURE__ */
|
|
868
|
+
less: /* @__PURE__ */ u(function(e) {
|
|
861
869
|
this.unput(this.match.slice(e));
|
|
862
870
|
}, "less"),
|
|
863
|
-
pastInput: /* @__PURE__ */
|
|
871
|
+
pastInput: /* @__PURE__ */ u(function() {
|
|
864
872
|
var e = this.matched.substr(0, this.matched.length - this.match.length);
|
|
865
873
|
return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
|
|
866
874
|
}, "pastInput"),
|
|
867
|
-
upcomingInput: /* @__PURE__ */
|
|
875
|
+
upcomingInput: /* @__PURE__ */ u(function() {
|
|
868
876
|
var e = this.match;
|
|
869
877
|
return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
870
878
|
}, "upcomingInput"),
|
|
871
|
-
showPosition: /* @__PURE__ */
|
|
879
|
+
showPosition: /* @__PURE__ */ u(function() {
|
|
872
880
|
var e = this.pastInput(), t = Array(e.length + 1).join("-");
|
|
873
881
|
return e + this.upcomingInput() + "\n" + t + "^";
|
|
874
882
|
}, "showPosition"),
|
|
875
|
-
test_match: /* @__PURE__ */
|
|
883
|
+
test_match: /* @__PURE__ */ u(function(e, t) {
|
|
876
884
|
var n, r, i;
|
|
877
885
|
if (this.options.backtrack_lexer && (i = {
|
|
878
886
|
yylineno: this.yylineno,
|
|
@@ -905,7 +913,7 @@ var y = (function() {
|
|
|
905
913
|
}
|
|
906
914
|
return !1;
|
|
907
915
|
}, "test_match"),
|
|
908
|
-
next: /* @__PURE__ */
|
|
916
|
+
next: /* @__PURE__ */ u(function() {
|
|
909
917
|
if (this.done) return this.EOF;
|
|
910
918
|
this._input || (this.done = !0);
|
|
911
919
|
var e, t, n, r;
|
|
@@ -927,29 +935,29 @@ var y = (function() {
|
|
|
927
935
|
line: this.yylineno
|
|
928
936
|
});
|
|
929
937
|
}, "next"),
|
|
930
|
-
lex: /* @__PURE__ */
|
|
938
|
+
lex: /* @__PURE__ */ u(function() {
|
|
931
939
|
return this.next() || this.lex();
|
|
932
940
|
}, "lex"),
|
|
933
|
-
begin: /* @__PURE__ */
|
|
941
|
+
begin: /* @__PURE__ */ u(function(e) {
|
|
934
942
|
this.conditionStack.push(e);
|
|
935
943
|
}, "begin"),
|
|
936
|
-
popState: /* @__PURE__ */
|
|
944
|
+
popState: /* @__PURE__ */ u(function() {
|
|
937
945
|
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
938
946
|
}, "popState"),
|
|
939
|
-
_currentRules: /* @__PURE__ */
|
|
947
|
+
_currentRules: /* @__PURE__ */ u(function() {
|
|
940
948
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
941
949
|
}, "_currentRules"),
|
|
942
|
-
topState: /* @__PURE__ */
|
|
950
|
+
topState: /* @__PURE__ */ u(function(e) {
|
|
943
951
|
return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
|
|
944
952
|
}, "topState"),
|
|
945
|
-
pushState: /* @__PURE__ */
|
|
953
|
+
pushState: /* @__PURE__ */ u(function(e) {
|
|
946
954
|
this.begin(e);
|
|
947
955
|
}, "pushState"),
|
|
948
|
-
stateStackSize: /* @__PURE__ */
|
|
956
|
+
stateStackSize: /* @__PURE__ */ u(function() {
|
|
949
957
|
return this.conditionStack.length;
|
|
950
958
|
}, "stateStackSize"),
|
|
951
959
|
options: { "case-insensitive": !0 },
|
|
952
|
-
performAction: /* @__PURE__ */
|
|
960
|
+
performAction: /* @__PURE__ */ u(function(e, t, n, r) {
|
|
953
961
|
function i() {
|
|
954
962
|
let n = t.yytext.indexOf("%%");
|
|
955
963
|
if (n === 0) return !1;
|
|
@@ -959,7 +967,7 @@ var y = (function() {
|
|
|
959
967
|
}
|
|
960
968
|
return !0;
|
|
961
969
|
}
|
|
962
|
-
switch (
|
|
970
|
+
switch (u(i, "processId"), n) {
|
|
963
971
|
case 0: return 38;
|
|
964
972
|
case 1: return 40;
|
|
965
973
|
case 2: return 39;
|
|
@@ -1345,99 +1353,58 @@ var y = (function() {
|
|
|
1345
1353
|
function P() {
|
|
1346
1354
|
this.yy = {};
|
|
1347
1355
|
}
|
|
1348
|
-
return
|
|
1356
|
+
return u(P, "Parser"), P.prototype = N, N.Parser = P, new P();
|
|
1349
1357
|
})();
|
|
1350
|
-
|
|
1351
|
-
var
|
|
1352
|
-
if (
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
e.info("REF0:"), e.info("Drawing state diagram (v2)", n);
|
|
1362
|
-
let { securityLevel: a, state: o, layout: s } = u();
|
|
1363
|
-
i.db.extract(i.db.getRootDocV2());
|
|
1364
|
-
let c = i.db.getData(), l = _(n, a);
|
|
1365
|
-
c.type = i.type, c.layoutAlgorithm = s, c.nodeSpacing = o?.nodeSpacing || 50, c.rankSpacing = o?.rankSpacing || 50, c.markers = u().look === "neo" ? ["barbNeo"] : ["barb"], c.diagramId = n, await h(c, l);
|
|
1366
|
-
try {
|
|
1367
|
-
(typeof i.db.getLinks == "function" ? i.db.getLinks() : /* @__PURE__ */ new Map()).forEach((t, n) => {
|
|
1368
|
-
let r = typeof n == "string" ? n : typeof n?.id == "string" ? n.id : "", i = c.nodes.find((e) => e.id === r);
|
|
1369
|
-
if (!r) {
|
|
1370
|
-
e.warn("⚠️ Invalid or missing stateId from key:", JSON.stringify(n));
|
|
1371
|
-
return;
|
|
1372
|
-
}
|
|
1373
|
-
let a = l.node()?.querySelectorAll("g.node, g.rough-node"), o;
|
|
1374
|
-
if (a?.forEach((e) => {
|
|
1375
|
-
let t = e.textContent?.trim();
|
|
1376
|
-
(e.id === i?.domId || t === r) && (o = e);
|
|
1377
|
-
}), !o) {
|
|
1378
|
-
e.warn("⚠️ Could not find node matching text:", r);
|
|
1379
|
-
return;
|
|
1380
|
-
}
|
|
1381
|
-
let s = o.parentNode;
|
|
1382
|
-
if (!s) {
|
|
1383
|
-
e.warn("⚠️ Node has no parent, cannot wrap:", r);
|
|
1384
|
-
return;
|
|
1385
|
-
}
|
|
1386
|
-
let u = document.createElementNS("http://www.w3.org/2000/svg", "a"), d = t.url.replace(/^"+|"+$/g, "");
|
|
1387
|
-
if (u.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", d), u.setAttribute("target", "_blank"), t.tooltip) {
|
|
1388
|
-
let e = t.tooltip.replace(/^"+|"+$/g, "");
|
|
1389
|
-
u.setAttribute("title", e), o.setAttribute("title", e);
|
|
1390
|
-
}
|
|
1391
|
-
s.replaceChild(u, o), u.appendChild(o), e.info("🔗 Wrapped node in <a> tag for:", r, t.url);
|
|
1392
|
-
});
|
|
1393
|
-
} catch (t) {
|
|
1394
|
-
e.error("❌ Error injecting clickable links:", t);
|
|
1395
|
-
}
|
|
1396
|
-
p.insertTitle(l, "statediagramTitleText", o?.titleTopMargin ?? 25, i.db.getDiagramTitle()), v(l, 8, z, o?.useMaxWidth ?? !0);
|
|
1397
|
-
}, "draw"),
|
|
1398
|
-
getDir: G
|
|
1399
|
-
}, K = /* @__PURE__ */ new Map(), q = 0;
|
|
1400
|
-
function J(e = "", t = 0, n = "", r = U) {
|
|
1401
|
-
return `${fe}-${e}${n !== null && n.length > 0 ? `${r}${n}` : ""}-${t}`;
|
|
1358
|
+
w.parser = w;
|
|
1359
|
+
var T = w, E = "TB", D = "TB", O = "dir", k = "state", A = "root", j = "relation", M = "classDef", N = "style", P = "applyClass", F = "default", ee = "divider", te = "fill:none", ne = "fill: #333", re = "c", ie = "markdown", ae = "normal", I = "rect", L = "rectWithTitle", oe = "stateStart", se = "stateEnd", R = "divider", ce = "roundedWithTitle", le = "note", ue = "noteGroup", z = "statediagram", de = `${z}-state`, B = "transition", fe = "note", pe = `${B} note-edge`, me = `${z}-${fe}`, he = `${z}-cluster`, ge = `${z}-cluster-alt`, V = "parent", H = "note", _e = "state", U = "----", ve = `${U}${H}`, ye = `${U}${V}`, W = /* @__PURE__ */ new Map(), G = 0, be = 0, K = /* @__PURE__ */ new Map(), xe = /* @__PURE__ */ u((e, t, n, r) => {
|
|
1360
|
+
if (e === R && n?.id !== void 0 && K.has(n.id)) {
|
|
1361
|
+
let e = K.get(n.id);
|
|
1362
|
+
return K.set(t, e), e;
|
|
1363
|
+
}
|
|
1364
|
+
let i = be++, a = r ? void 0 : i;
|
|
1365
|
+
return K.set(t, a), a;
|
|
1366
|
+
}, "colorSlotFor");
|
|
1367
|
+
function q(e = "", t = 0, n = "", r = U) {
|
|
1368
|
+
return `${_e}-${e}${n !== null && n.length > 0 ? `${r}${n}` : ""}-${t}`;
|
|
1402
1369
|
}
|
|
1403
|
-
|
|
1404
|
-
var
|
|
1405
|
-
|
|
1406
|
-
switch (
|
|
1407
|
-
case
|
|
1408
|
-
|
|
1370
|
+
u(q, "stateDomId");
|
|
1371
|
+
var Se = /* @__PURE__ */ u((e, t, n, r, i, o, c, l) => {
|
|
1372
|
+
d.trace("items", t), t.forEach((t) => {
|
|
1373
|
+
switch (t.stmt) {
|
|
1374
|
+
case k:
|
|
1375
|
+
X(e, t, n, r, i, o, c, l);
|
|
1409
1376
|
break;
|
|
1410
|
-
case
|
|
1411
|
-
|
|
1377
|
+
case F:
|
|
1378
|
+
X(e, t, n, r, i, o, c, l);
|
|
1412
1379
|
break;
|
|
1413
|
-
case
|
|
1414
|
-
|
|
1415
|
-
let
|
|
1416
|
-
id: "edge" +
|
|
1417
|
-
start:
|
|
1418
|
-
end:
|
|
1380
|
+
case j: {
|
|
1381
|
+
X(e, t.state1, n, r, i, o, c, l), X(e, t.state2, n, r, i, o, c, l);
|
|
1382
|
+
let u = c === "neo", d = {
|
|
1383
|
+
id: "edge" + G,
|
|
1384
|
+
start: t.state1.id,
|
|
1385
|
+
end: t.state2.id,
|
|
1419
1386
|
arrowhead: "normal",
|
|
1420
|
-
arrowTypeEnd:
|
|
1421
|
-
style:
|
|
1387
|
+
arrowTypeEnd: u ? "arrow_barb_neo" : "arrow_barb",
|
|
1388
|
+
style: te,
|
|
1422
1389
|
labelStyle: "",
|
|
1423
|
-
label: s.sanitizeText(
|
|
1424
|
-
arrowheadStyle:
|
|
1425
|
-
labelpos:
|
|
1426
|
-
labelType:
|
|
1427
|
-
thickness:
|
|
1390
|
+
label: s.sanitizeText(t.description ?? "", a()),
|
|
1391
|
+
arrowheadStyle: ne,
|
|
1392
|
+
labelpos: re,
|
|
1393
|
+
labelType: ie,
|
|
1394
|
+
thickness: ae,
|
|
1428
1395
|
classes: B,
|
|
1429
1396
|
look: c
|
|
1430
1397
|
};
|
|
1431
|
-
|
|
1398
|
+
i.push(d), G++;
|
|
1432
1399
|
}
|
|
1433
1400
|
}
|
|
1434
1401
|
});
|
|
1435
|
-
}, "setupDoc"),
|
|
1402
|
+
}, "setupDoc"), Ce = /* @__PURE__ */ u((e, t = D) => {
|
|
1436
1403
|
let n = t;
|
|
1437
1404
|
if (e.doc) for (let t of e.doc) t.stmt === "dir" && (n = t.value);
|
|
1438
1405
|
return n;
|
|
1439
1406
|
}, "getDir");
|
|
1440
|
-
function
|
|
1407
|
+
function J(e, t, n) {
|
|
1441
1408
|
if (!t.id || t.id === "</join></fork>" || t.id === "</choice>") return;
|
|
1442
1409
|
t.cssClasses && (Array.isArray(t.cssCompiledStyles) || (t.cssCompiledStyles = []), t.cssClasses.split(" ").forEach((e) => {
|
|
1443
1410
|
let r = n.get(e);
|
|
@@ -1446,99 +1413,149 @@ function Y(e, t, n) {
|
|
|
1446
1413
|
let r = e.find((e) => e.id === t.id);
|
|
1447
1414
|
r ? Object.assign(r, t) : e.push(t);
|
|
1448
1415
|
}
|
|
1449
|
-
|
|
1450
|
-
function
|
|
1416
|
+
u(J, "insertOrUpdateNode");
|
|
1417
|
+
function we(e) {
|
|
1451
1418
|
return e?.classes?.join(" ") ?? "";
|
|
1452
1419
|
}
|
|
1453
|
-
|
|
1454
|
-
function
|
|
1420
|
+
u(we, "getClassesFromDbInfo");
|
|
1421
|
+
function Y(e) {
|
|
1455
1422
|
return e?.styles ?? [];
|
|
1456
1423
|
}
|
|
1457
|
-
|
|
1458
|
-
var
|
|
1459
|
-
let
|
|
1460
|
-
if (
|
|
1461
|
-
let
|
|
1462
|
-
|
|
1463
|
-
id:
|
|
1464
|
-
shape:
|
|
1465
|
-
description: s.sanitizeText(
|
|
1466
|
-
cssClasses: `${p} ${
|
|
1424
|
+
u(Y, "getStylesFromDbInfo");
|
|
1425
|
+
var X = /* @__PURE__ */ u((e, t, n, r, i, o, c, l) => {
|
|
1426
|
+
let u = t.id, f = n.get(u), p = we(f), m = Y(f), h = a(), g = p.trim() !== "" || m.length > 0;
|
|
1427
|
+
if (d.info("dataFetcher parsedItem", t, f, m), u !== "root") {
|
|
1428
|
+
let n = I;
|
|
1429
|
+
t.start === !0 ? n = oe : t.start === !1 && (n = se), t.type !== F && (n = t.type), W.get(u) || W.set(u, {
|
|
1430
|
+
id: u,
|
|
1431
|
+
shape: n,
|
|
1432
|
+
description: s.sanitizeText(u, h),
|
|
1433
|
+
cssClasses: `${p} ${de}`,
|
|
1467
1434
|
cssStyles: m
|
|
1468
1435
|
});
|
|
1469
|
-
let
|
|
1470
|
-
|
|
1436
|
+
let a = W.get(u);
|
|
1437
|
+
t.description && (Array.isArray(a.description) ? (a.shape = L, a.description.push(t.description)) : a.description?.length && a.description.length > 0 ? (a.shape = L, a.description = a.description === u ? [t.description] : [a.description, t.description]) : (a.shape = I, a.description = t.description), a.description = s.sanitizeTextOrArray(a.description, h)), a.description?.length === 1 && a.shape === L && (a.shape = a.type === "group" ? ce : I), !a.type && t.doc && (d.info("Setting cluster for XCX", u, Ce(t)), a.type = "group", a.isGroup = !0, a.dir = Ce(t), a.shape = t.type === ee ? R : ce, a.colorIndex = xe(a.shape, u, e, g), a.cssClasses = `${a.cssClasses} ${he} ${o ? ge : ""}`);
|
|
1471
1438
|
let f = {
|
|
1472
1439
|
labelStyle: "",
|
|
1473
|
-
shape:
|
|
1474
|
-
label:
|
|
1475
|
-
cssClasses:
|
|
1440
|
+
shape: a.shape,
|
|
1441
|
+
label: a.description,
|
|
1442
|
+
cssClasses: a.cssClasses,
|
|
1476
1443
|
cssCompiledStyles: [],
|
|
1477
|
-
cssStyles:
|
|
1478
|
-
id:
|
|
1479
|
-
dir:
|
|
1480
|
-
domId:
|
|
1481
|
-
type:
|
|
1482
|
-
isGroup:
|
|
1444
|
+
cssStyles: a.cssStyles,
|
|
1445
|
+
id: u,
|
|
1446
|
+
dir: a.dir,
|
|
1447
|
+
domId: q(u, G),
|
|
1448
|
+
type: a.type,
|
|
1449
|
+
isGroup: a.type === "group",
|
|
1450
|
+
colorIndex: a.colorIndex,
|
|
1483
1451
|
padding: 8,
|
|
1484
1452
|
rx: 10,
|
|
1485
1453
|
ry: 10,
|
|
1486
1454
|
look: c,
|
|
1487
1455
|
labelType: "markdown"
|
|
1488
1456
|
};
|
|
1489
|
-
if (f.shape === R && (f.label = ""),
|
|
1457
|
+
if (f.shape === R && (f.label = ""), e && e.id !== "root" && (d.trace("Setting node ", u, " to be child of its parent ", e.id), f.parentId = e.id), f.centerLabel = !0, t.note) {
|
|
1490
1458
|
let e = {
|
|
1491
1459
|
labelStyle: "",
|
|
1492
|
-
shape:
|
|
1493
|
-
label:
|
|
1460
|
+
shape: le,
|
|
1461
|
+
label: t.note.text,
|
|
1494
1462
|
labelType: "markdown",
|
|
1495
|
-
cssClasses:
|
|
1463
|
+
cssClasses: me,
|
|
1496
1464
|
cssStyles: [],
|
|
1497
1465
|
cssCompiledStyles: [],
|
|
1498
|
-
id:
|
|
1499
|
-
domId:
|
|
1500
|
-
type:
|
|
1501
|
-
isGroup:
|
|
1466
|
+
id: u + ve + "-" + G,
|
|
1467
|
+
domId: q(u, G, H),
|
|
1468
|
+
type: "node",
|
|
1469
|
+
isGroup: !1,
|
|
1502
1470
|
padding: h.flowchart?.padding,
|
|
1503
1471
|
look: c,
|
|
1504
|
-
position:
|
|
1505
|
-
},
|
|
1472
|
+
position: t.note.position
|
|
1473
|
+
}, n = u + ye, o = {
|
|
1506
1474
|
labelStyle: "",
|
|
1507
|
-
shape:
|
|
1508
|
-
label:
|
|
1509
|
-
cssClasses:
|
|
1475
|
+
shape: ue,
|
|
1476
|
+
label: t.note.text,
|
|
1477
|
+
cssClasses: a.cssClasses,
|
|
1510
1478
|
cssStyles: [],
|
|
1511
|
-
id:
|
|
1512
|
-
domId:
|
|
1479
|
+
id: u + ye,
|
|
1480
|
+
domId: q(u, G, V),
|
|
1513
1481
|
type: "group",
|
|
1514
1482
|
isGroup: !0,
|
|
1515
1483
|
padding: 16,
|
|
1516
1484
|
look: c,
|
|
1517
|
-
position:
|
|
1485
|
+
position: t.note.position
|
|
1518
1486
|
};
|
|
1519
|
-
|
|
1520
|
-
let
|
|
1521
|
-
|
|
1522
|
-
id:
|
|
1523
|
-
start:
|
|
1524
|
-
end:
|
|
1487
|
+
G++, o.id = n, e.parentId = n, J(r, o, l), J(r, e, l), J(r, f, l);
|
|
1488
|
+
let s = u, d = e.id;
|
|
1489
|
+
t.note.position === "left of" && (s = e.id, d = u), i.push({
|
|
1490
|
+
id: s + "-" + d,
|
|
1491
|
+
start: s,
|
|
1492
|
+
end: d,
|
|
1525
1493
|
arrowhead: "none",
|
|
1526
1494
|
arrowTypeEnd: "",
|
|
1527
|
-
style:
|
|
1495
|
+
style: te,
|
|
1528
1496
|
labelStyle: "",
|
|
1529
|
-
classes:
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1497
|
+
classes: pe,
|
|
1498
|
+
pattern: "dashed",
|
|
1499
|
+
arrowheadStyle: ne,
|
|
1500
|
+
labelpos: re,
|
|
1501
|
+
labelType: ie,
|
|
1502
|
+
thickness: ae,
|
|
1534
1503
|
look: c
|
|
1535
1504
|
});
|
|
1536
|
-
} else
|
|
1505
|
+
} else J(r, f, l);
|
|
1537
1506
|
}
|
|
1538
|
-
|
|
1539
|
-
}, "dataFetcher"),
|
|
1540
|
-
|
|
1541
|
-
}, "reset"),
|
|
1507
|
+
t.doc && (d.trace("Adding nodes children "), Se(t, t.doc, n, r, i, !o, c, l));
|
|
1508
|
+
}, "dataFetcher"), Te = /* @__PURE__ */ u(() => {
|
|
1509
|
+
W.clear(), G = 0, be = 0, K.clear();
|
|
1510
|
+
}, "reset"), Ee = /* @__PURE__ */ u((e, t = D) => {
|
|
1511
|
+
if (!e.doc) return t;
|
|
1512
|
+
let n = t;
|
|
1513
|
+
for (let t of e.doc) t.stmt === "dir" && (n = t.value);
|
|
1514
|
+
return n;
|
|
1515
|
+
}, "getDir"), De = {
|
|
1516
|
+
getClasses: /* @__PURE__ */ u(function(e, t) {
|
|
1517
|
+
return t.db.getClasses();
|
|
1518
|
+
}, "getClasses"),
|
|
1519
|
+
draw: /* @__PURE__ */ u(async function(e, t, n, r) {
|
|
1520
|
+
d.info("REF0:"), d.info("Drawing state diagram (v2)", t);
|
|
1521
|
+
let { securityLevel: i, state: o, layout: s } = a();
|
|
1522
|
+
r.db.extract(r.db.getRootDocV2());
|
|
1523
|
+
let c = r.db.getData(), l = S(t, i);
|
|
1524
|
+
c.type = r.type, c.layoutAlgorithm = b(s), c.nodeSpacing = o?.nodeSpacing || 50, c.rankSpacing = o?.rankSpacing || 50, c.markers = a().look === "neo" ? ["barbNeo"] : ["barb"], c.diagramId = t, await y(c, l);
|
|
1525
|
+
try {
|
|
1526
|
+
(typeof r.db.getLinks == "function" ? r.db.getLinks() : /* @__PURE__ */ new Map()).forEach((e, t) => {
|
|
1527
|
+
let n = typeof t == "string" ? t : typeof t?.id == "string" ? t.id : "", r = c.nodes.find((e) => e.id === n);
|
|
1528
|
+
if (!n) {
|
|
1529
|
+
d.warn("⚠️ Invalid or missing stateId from key:", JSON.stringify(t));
|
|
1530
|
+
return;
|
|
1531
|
+
}
|
|
1532
|
+
let i = l.node()?.querySelectorAll("g.node, g.rough-node"), a;
|
|
1533
|
+
if (i?.forEach((e) => {
|
|
1534
|
+
let t = e.textContent?.trim();
|
|
1535
|
+
(e.id === r?.domId || t === n) && (a = e);
|
|
1536
|
+
}), !a) {
|
|
1537
|
+
d.warn("⚠️ Could not find node matching text:", n);
|
|
1538
|
+
return;
|
|
1539
|
+
}
|
|
1540
|
+
let o = a.parentNode;
|
|
1541
|
+
if (!o) {
|
|
1542
|
+
d.warn("⚠️ Node has no parent, cannot wrap:", n);
|
|
1543
|
+
return;
|
|
1544
|
+
}
|
|
1545
|
+
let s = document.createElementNS("http://www.w3.org/2000/svg", "a"), u = e.url.replace(/^"+|"+$/g, "");
|
|
1546
|
+
if (s.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", u), s.setAttribute("target", "_blank"), e.tooltip) {
|
|
1547
|
+
let t = e.tooltip.replace(/^"+|"+$/g, "");
|
|
1548
|
+
s.setAttribute("title", t), a.setAttribute("title", t);
|
|
1549
|
+
}
|
|
1550
|
+
o.replaceChild(s, a), s.appendChild(a), d.info("🔗 Wrapped node in <a> tag for:", n, e.url);
|
|
1551
|
+
});
|
|
1552
|
+
} catch (e) {
|
|
1553
|
+
d.error("❌ Error injecting clickable links:", e);
|
|
1554
|
+
}
|
|
1555
|
+
p.insertTitle(l, "statediagramTitleText", o?.titleTopMargin ?? 25, r.db.getDiagramTitle()), C(l, 8, z, o?.useMaxWidth ?? !0);
|
|
1556
|
+
}, "draw"),
|
|
1557
|
+
getDir: Ee
|
|
1558
|
+
}, Z = {
|
|
1542
1559
|
START_NODE: "[*]",
|
|
1543
1560
|
START_TYPE: "start",
|
|
1544
1561
|
END_NODE: "[*]",
|
|
@@ -1547,16 +1564,16 @@ var Z = /* @__PURE__ */ f((t, n, r, i, a, o, c, l) => {
|
|
|
1547
1564
|
FILL_KEYWORD: "fill",
|
|
1548
1565
|
BG_FILL: "bgFill",
|
|
1549
1566
|
STYLECLASS_SEP: ","
|
|
1550
|
-
},
|
|
1567
|
+
}, Oe = /* @__PURE__ */ u(() => /* @__PURE__ */ new Map(), "newClassesList"), Q = /* @__PURE__ */ u(() => ({
|
|
1551
1568
|
relations: [],
|
|
1552
1569
|
states: /* @__PURE__ */ new Map(),
|
|
1553
1570
|
documents: {}
|
|
1554
|
-
}), "newDoc"), $ = /* @__PURE__ */
|
|
1555
|
-
constructor(
|
|
1556
|
-
this.version =
|
|
1571
|
+
}), "newDoc"), $ = /* @__PURE__ */ u((e) => JSON.parse(JSON.stringify(e)), "clone"), ke = class {
|
|
1572
|
+
constructor(i) {
|
|
1573
|
+
this.version = i, this.nodes = [], this.edges = [], this.rootDoc = [], this.classes = Oe(), this.documents = { root: Q() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.dividerCnt = 0, this.links = /* @__PURE__ */ new Map(), this.funs = [], this.getAccTitle = l, this.setAccTitle = n, this.getAccDescription = r, this.setAccDescription = t, this.setDiagramTitle = o, this.getDiagramTitle = e, this.clear(), this.setRootDoc = this.setRootDoc.bind(this), this.getDividerId = this.getDividerId.bind(this), this.setDirection = this.setDirection.bind(this), this.trimColon = this.trimColon.bind(this), this.bindFunctions = this.bindFunctions.bind(this);
|
|
1557
1574
|
}
|
|
1558
1575
|
static {
|
|
1559
|
-
|
|
1576
|
+
u(this, "StateDB");
|
|
1560
1577
|
}
|
|
1561
1578
|
static {
|
|
1562
1579
|
this.relationType = {
|
|
@@ -1569,25 +1586,25 @@ var Z = /* @__PURE__ */ f((t, n, r, i, a, o, c, l) => {
|
|
|
1569
1586
|
extract(e) {
|
|
1570
1587
|
this.clear(!0);
|
|
1571
1588
|
for (let t of Array.isArray(e) ? e : e.doc) switch (t.stmt) {
|
|
1572
|
-
case
|
|
1589
|
+
case k:
|
|
1573
1590
|
this.addState(t.id.trim(), t.type, t.doc, t.description, t.note);
|
|
1574
1591
|
break;
|
|
1575
|
-
case
|
|
1592
|
+
case j:
|
|
1576
1593
|
this.addRelation(t.state1, t.state2, t.description);
|
|
1577
1594
|
break;
|
|
1578
|
-
case
|
|
1595
|
+
case M:
|
|
1579
1596
|
this.addStyleClass(t.id.trim(), t.classes);
|
|
1580
1597
|
break;
|
|
1581
|
-
case
|
|
1598
|
+
case N:
|
|
1582
1599
|
this.handleStyleDef(t);
|
|
1583
1600
|
break;
|
|
1584
|
-
case
|
|
1601
|
+
case P:
|
|
1585
1602
|
this.setCssClass(t.id.trim(), t.styleClass);
|
|
1586
1603
|
break;
|
|
1587
1604
|
case "click": this.addLink(t.id, t.url, t.tooltip);
|
|
1588
1605
|
}
|
|
1589
|
-
let t = this.getStates(), n =
|
|
1590
|
-
|
|
1606
|
+
let t = this.getStates(), n = a();
|
|
1607
|
+
Te(), X(void 0, this.getRootDocV2(), t, this.nodes, this.edges, !0, n.look, this.classes);
|
|
1591
1608
|
for (let e of this.nodes) if (Array.isArray(e.label)) {
|
|
1592
1609
|
if (e.description = e.label.slice(1), e.isGroup && e.description.length > 0) throw Error(`Group nodes can only have label. Remove the additional description for node [${e.id}]`);
|
|
1593
1610
|
e.label = e.label[0];
|
|
@@ -1604,23 +1621,23 @@ var Z = /* @__PURE__ */ f((t, n, r, i, a, o, c, l) => {
|
|
|
1604
1621
|
t && (t.styles = n.map((e) => e.replace(/;/g, "")?.trim()));
|
|
1605
1622
|
}
|
|
1606
1623
|
}
|
|
1607
|
-
setRootDoc(
|
|
1608
|
-
|
|
1624
|
+
setRootDoc(e) {
|
|
1625
|
+
d.info("Setting root doc", e), this.rootDoc = e, this.version === 1 ? this.extract(e) : this.extract(this.getRootDocV2());
|
|
1609
1626
|
}
|
|
1610
1627
|
docTranslator(e, t, n) {
|
|
1611
|
-
if (t.stmt ===
|
|
1628
|
+
if (t.stmt === j) {
|
|
1612
1629
|
this.docTranslator(e, t.state1, !0), this.docTranslator(e, t.state2, !1);
|
|
1613
1630
|
return;
|
|
1614
1631
|
}
|
|
1615
|
-
if (t.stmt ===
|
|
1632
|
+
if (t.stmt === k && (t.id === Z.START_NODE ? (t.id = e.id + (n ? "_start" : "_end"), t.start = n) : t.id = t.id.trim()), t.stmt !== A && t.stmt !== k || !t.doc) return;
|
|
1616
1633
|
let r = [], i = [];
|
|
1617
|
-
for (let e of t.doc) if (e.type ===
|
|
1634
|
+
for (let e of t.doc) if (e.type === ee) {
|
|
1618
1635
|
let t = $(e);
|
|
1619
1636
|
t.doc = $(i), r.push(t), i = [];
|
|
1620
1637
|
} else i.push(e);
|
|
1621
1638
|
if (r.length > 0 && i.length > 0) {
|
|
1622
1639
|
let e = {
|
|
1623
|
-
stmt:
|
|
1640
|
+
stmt: k,
|
|
1624
1641
|
id: m(),
|
|
1625
1642
|
type: "divider",
|
|
1626
1643
|
doc: $(i)
|
|
@@ -1631,44 +1648,44 @@ var Z = /* @__PURE__ */ f((t, n, r, i, a, o, c, l) => {
|
|
|
1631
1648
|
}
|
|
1632
1649
|
getRootDocV2() {
|
|
1633
1650
|
return this.docTranslator({
|
|
1634
|
-
id:
|
|
1635
|
-
stmt:
|
|
1651
|
+
id: A,
|
|
1652
|
+
stmt: A
|
|
1636
1653
|
}, {
|
|
1637
|
-
id:
|
|
1638
|
-
stmt:
|
|
1654
|
+
id: A,
|
|
1655
|
+
stmt: A,
|
|
1639
1656
|
doc: this.rootDoc
|
|
1640
1657
|
}, !0), {
|
|
1641
|
-
id:
|
|
1658
|
+
id: A,
|
|
1642
1659
|
doc: this.rootDoc
|
|
1643
1660
|
};
|
|
1644
1661
|
}
|
|
1645
|
-
addState(
|
|
1646
|
-
let
|
|
1647
|
-
if (!this.currentDocument.states.has(
|
|
1648
|
-
stmt:
|
|
1649
|
-
id:
|
|
1662
|
+
addState(e, t = F, n = void 0, r = void 0, i = void 0, o = void 0, c = void 0, l = void 0) {
|
|
1663
|
+
let u = e?.trim();
|
|
1664
|
+
if (!this.currentDocument.states.has(u)) d.info("Adding state ", u, r), this.currentDocument.states.set(u, {
|
|
1665
|
+
stmt: k,
|
|
1666
|
+
id: u,
|
|
1650
1667
|
descriptions: [],
|
|
1651
|
-
type:
|
|
1652
|
-
doc:
|
|
1653
|
-
note:
|
|
1668
|
+
type: t,
|
|
1669
|
+
doc: n,
|
|
1670
|
+
note: i,
|
|
1654
1671
|
classes: [],
|
|
1655
1672
|
styles: [],
|
|
1656
1673
|
textStyles: []
|
|
1657
1674
|
});
|
|
1658
1675
|
else {
|
|
1659
|
-
let e = this.currentDocument.states.get(
|
|
1660
|
-
if (!e) throw Error(`State not found: ${
|
|
1661
|
-
e.doc ||=
|
|
1676
|
+
let e = this.currentDocument.states.get(u);
|
|
1677
|
+
if (!e) throw Error(`State not found: ${u}`);
|
|
1678
|
+
e.doc ||= n, e.type ||= t;
|
|
1662
1679
|
}
|
|
1663
|
-
if (
|
|
1664
|
-
let e = this.currentDocument.states.get(
|
|
1665
|
-
if (!e) throw Error(`State not found: ${
|
|
1666
|
-
e.note =
|
|
1680
|
+
if (r && (d.info("Setting state description", u, r), (Array.isArray(r) ? r : [r]).forEach((e) => this.addDescription(u, e.trim()))), i) {
|
|
1681
|
+
let e = this.currentDocument.states.get(u);
|
|
1682
|
+
if (!e) throw Error(`State not found: ${u}`);
|
|
1683
|
+
e.note = i, e.note.text = s.sanitizeText(e.note.text, a());
|
|
1667
1684
|
}
|
|
1668
|
-
o && (
|
|
1685
|
+
o && (d.info("Setting state classes", u, o), (Array.isArray(o) ? o : [o]).forEach((e) => this.setCssClass(u, e.trim()))), c && (d.info("Setting state styles", u, c), (Array.isArray(c) ? c : [c]).forEach((e) => this.setStyle(u, e.trim()))), l && (d.info("Setting state styles", u, c), (Array.isArray(l) ? l : [l]).forEach((e) => this.setTextStyle(u, e.trim())));
|
|
1669
1686
|
}
|
|
1670
1687
|
clear(e) {
|
|
1671
|
-
this.nodes = [], this.edges = [], this.funs = [this.setupToolTips.bind(this)], this.documents = { root:
|
|
1688
|
+
this.nodes = [], this.edges = [], this.funs = [this.setupToolTips.bind(this)], this.documents = { root: Q() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.classes = Oe(), e || (this.links = /* @__PURE__ */ new Map(), i());
|
|
1672
1689
|
}
|
|
1673
1690
|
getState(e) {
|
|
1674
1691
|
return this.currentDocument.states.get(e);
|
|
@@ -1677,54 +1694,54 @@ var Z = /* @__PURE__ */ f((t, n, r, i, a, o, c, l) => {
|
|
|
1677
1694
|
return this.currentDocument.states;
|
|
1678
1695
|
}
|
|
1679
1696
|
logDocuments() {
|
|
1680
|
-
|
|
1697
|
+
d.info("Documents = ", this.documents);
|
|
1681
1698
|
}
|
|
1682
1699
|
getRelations() {
|
|
1683
1700
|
return this.currentDocument.relations;
|
|
1684
1701
|
}
|
|
1685
|
-
addLink(t, n
|
|
1686
|
-
this.links.set(
|
|
1687
|
-
url:
|
|
1688
|
-
tooltip:
|
|
1689
|
-
}),
|
|
1702
|
+
addLink(e, t, n) {
|
|
1703
|
+
this.links.set(e, {
|
|
1704
|
+
url: t,
|
|
1705
|
+
tooltip: n
|
|
1706
|
+
}), d.warn("Adding link", e, t, n);
|
|
1690
1707
|
}
|
|
1691
1708
|
getLinks() {
|
|
1692
1709
|
return this.links;
|
|
1693
1710
|
}
|
|
1694
1711
|
startIdIfNeeded(e = "") {
|
|
1695
|
-
return e ===
|
|
1712
|
+
return e === Z.START_NODE ? (this.startEndCount++, `${Z.START_TYPE}${this.startEndCount}`) : e;
|
|
1696
1713
|
}
|
|
1697
|
-
startTypeIfNeeded(e = "", t =
|
|
1698
|
-
return e ===
|
|
1714
|
+
startTypeIfNeeded(e = "", t = F) {
|
|
1715
|
+
return e === Z.START_NODE ? Z.START_TYPE : t;
|
|
1699
1716
|
}
|
|
1700
1717
|
endIdIfNeeded(e = "") {
|
|
1701
|
-
return e ===
|
|
1718
|
+
return e === Z.END_NODE ? (this.startEndCount++, `${Z.END_TYPE}${this.startEndCount}`) : e;
|
|
1702
1719
|
}
|
|
1703
|
-
endTypeIfNeeded(e = "", t =
|
|
1704
|
-
return e ===
|
|
1720
|
+
endTypeIfNeeded(e = "", t = F) {
|
|
1721
|
+
return e === Z.END_NODE ? Z.END_TYPE : t;
|
|
1705
1722
|
}
|
|
1706
1723
|
addRelationObjs(e, t, n = "") {
|
|
1707
|
-
let r = this.startIdIfNeeded(e.id.trim()), i = this.startTypeIfNeeded(e.id.trim(), e.type),
|
|
1708
|
-
this.addState(r, i, e.doc, e.description, e.note, e.classes, e.styles, e.textStyles), this.addState(
|
|
1724
|
+
let r = this.startIdIfNeeded(e.id.trim()), i = this.startTypeIfNeeded(e.id.trim(), e.type), o = this.startIdIfNeeded(t.id.trim()), c = this.startTypeIfNeeded(t.id.trim(), t.type);
|
|
1725
|
+
this.addState(r, i, e.doc, e.description, e.note, e.classes, e.styles, e.textStyles), this.addState(o, c, t.doc, t.description, t.note, t.classes, t.styles, t.textStyles), this.currentDocument.relations.push({
|
|
1709
1726
|
id1: r,
|
|
1710
|
-
id2:
|
|
1711
|
-
relationTitle: s.sanitizeText(n,
|
|
1727
|
+
id2: o,
|
|
1728
|
+
relationTitle: s.sanitizeText(n, a())
|
|
1712
1729
|
});
|
|
1713
1730
|
}
|
|
1714
1731
|
addRelation(e, t, n) {
|
|
1715
1732
|
if (typeof e == "object" && typeof t == "object") this.addRelationObjs(e, t, n);
|
|
1716
1733
|
else if (typeof e == "string" && typeof t == "string") {
|
|
1717
|
-
let r = this.startIdIfNeeded(e.trim()), i = this.startTypeIfNeeded(e),
|
|
1718
|
-
this.addState(r, i), this.addState(
|
|
1734
|
+
let r = this.startIdIfNeeded(e.trim()), i = this.startTypeIfNeeded(e), o = this.endIdIfNeeded(t.trim()), c = this.endTypeIfNeeded(t);
|
|
1735
|
+
this.addState(r, i), this.addState(o, c), this.currentDocument.relations.push({
|
|
1719
1736
|
id1: r,
|
|
1720
|
-
id2:
|
|
1721
|
-
relationTitle: n ? s.sanitizeText(n,
|
|
1737
|
+
id2: o,
|
|
1738
|
+
relationTitle: n ? s.sanitizeText(n, a()) : void 0
|
|
1722
1739
|
});
|
|
1723
1740
|
}
|
|
1724
1741
|
}
|
|
1725
1742
|
addDescription(e, t) {
|
|
1726
1743
|
let n = this.currentDocument.states.get(e), r = t.startsWith(":") ? t.replace(":", "").trim() : t;
|
|
1727
|
-
n?.descriptions?.push(s.sanitizeText(r,
|
|
1744
|
+
n?.descriptions?.push(s.sanitizeText(r, a()));
|
|
1728
1745
|
}
|
|
1729
1746
|
cleanupLabel(e) {
|
|
1730
1747
|
return e.startsWith(":") ? e.slice(2).trim() : e.trim();
|
|
@@ -1739,10 +1756,10 @@ var Z = /* @__PURE__ */ f((t, n, r, i, a, o, c, l) => {
|
|
|
1739
1756
|
textStyles: []
|
|
1740
1757
|
});
|
|
1741
1758
|
let n = this.classes.get(e);
|
|
1742
|
-
t && n && t.split(
|
|
1759
|
+
t && n && t.split(Z.STYLECLASS_SEP).forEach((e) => {
|
|
1743
1760
|
let t = e.replace(/([^;]*);/, "$1").trim();
|
|
1744
|
-
if (RegExp(
|
|
1745
|
-
let e = t.replace(
|
|
1761
|
+
if (RegExp(Z.COLOR_KEYWORD).exec(e)) {
|
|
1762
|
+
let e = t.replace(Z.FILL_KEYWORD, Z.BG_FILL).replace(Z.COLOR_KEYWORD, Z.FILL_KEYWORD);
|
|
1746
1763
|
n.textStyles.push(e);
|
|
1747
1764
|
}
|
|
1748
1765
|
n.styles.push(t);
|
|
@@ -1752,14 +1769,14 @@ var Z = /* @__PURE__ */ f((t, n, r, i, a, o, c, l) => {
|
|
|
1752
1769
|
return this.classes;
|
|
1753
1770
|
}
|
|
1754
1771
|
setupToolTips(e) {
|
|
1755
|
-
let
|
|
1756
|
-
|
|
1757
|
-
let
|
|
1758
|
-
if (
|
|
1759
|
-
let
|
|
1760
|
-
|
|
1772
|
+
let t = x();
|
|
1773
|
+
f(e).select("svg").selectAll("g.node, g.rough-node").on("mouseover", (e) => {
|
|
1774
|
+
let n = f(e.currentTarget), r = n.attr("title");
|
|
1775
|
+
if (r === null) return;
|
|
1776
|
+
let i = e.currentTarget?.getBoundingClientRect();
|
|
1777
|
+
t.transition().duration(200).style("opacity", ".9"), t.style("left", window.scrollX + i.left + (i.right - i.left) / 2 + "px").style("top", window.scrollY + i.bottom + "px"), t.html(c.sanitize(r)), n.classed("hover", !0);
|
|
1761
1778
|
}).on("mouseout", (e) => {
|
|
1762
|
-
|
|
1779
|
+
t.transition().duration(500).style("opacity", 0), f(e.currentTarget).classed("hover", !1);
|
|
1763
1780
|
});
|
|
1764
1781
|
}
|
|
1765
1782
|
setCssClass(e, t) {
|
|
@@ -1784,15 +1801,15 @@ var Z = /* @__PURE__ */ f((t, n, r, i, a, o, c, l) => {
|
|
|
1784
1801
|
});
|
|
1785
1802
|
}
|
|
1786
1803
|
getDirectionStatement() {
|
|
1787
|
-
return this.rootDoc.find((e) => e.stmt ===
|
|
1804
|
+
return this.rootDoc.find((e) => e.stmt === O);
|
|
1788
1805
|
}
|
|
1789
1806
|
getDirection() {
|
|
1790
|
-
return this.getDirectionStatement()?.value ??
|
|
1807
|
+
return this.getDirectionStatement()?.value ?? E;
|
|
1791
1808
|
}
|
|
1792
1809
|
setDirection(e) {
|
|
1793
1810
|
let t = this.getDirectionStatement();
|
|
1794
1811
|
t ? t.value = e : this.rootDoc.unshift({
|
|
1795
|
-
stmt:
|
|
1812
|
+
stmt: O,
|
|
1796
1813
|
value: e
|
|
1797
1814
|
});
|
|
1798
1815
|
}
|
|
@@ -1800,19 +1817,95 @@ var Z = /* @__PURE__ */ f((t, n, r, i, a, o, c, l) => {
|
|
|
1800
1817
|
return e.startsWith(":") ? e.slice(1).trim() : e.trim();
|
|
1801
1818
|
}
|
|
1802
1819
|
getData() {
|
|
1803
|
-
let e =
|
|
1820
|
+
let e = a();
|
|
1821
|
+
for (let t of this.nodes) t.wrappingWidth ??= e.state?.wrappingWidth, t.isGroup || (t.minWidth ??= e.state?.minNodeWidth);
|
|
1804
1822
|
return {
|
|
1805
1823
|
nodes: this.nodes,
|
|
1806
1824
|
edges: this.edges,
|
|
1807
1825
|
other: {},
|
|
1808
1826
|
config: e,
|
|
1809
|
-
direction:
|
|
1827
|
+
direction: Ee(this.getRootDocV2())
|
|
1810
1828
|
};
|
|
1811
1829
|
}
|
|
1812
1830
|
getConfig() {
|
|
1813
|
-
return
|
|
1831
|
+
return a().state;
|
|
1832
|
+
}
|
|
1833
|
+
}, Ae = /* @__PURE__ */ u((e) => {
|
|
1834
|
+
let { theme: t, bkgColorArray: n, borderColorArray: r } = e;
|
|
1835
|
+
if (!g(t, r)) return "";
|
|
1836
|
+
let i = _(e.look), a = v(n), o = "";
|
|
1837
|
+
for (let e = 0; e < h(r); e++) {
|
|
1838
|
+
let t = r[e], s = a ? `fill: ${n[e % n.length]};` : "", c = `[data-look="${i}"][data-color-id="color-${e}"]`;
|
|
1839
|
+
o += `
|
|
1840
|
+
|
|
1841
|
+
/* The title strip: \`rect.outer\` spans the whole composite and \`rect.inner\` covers
|
|
1842
|
+
the body, so what stays visible of \`outer\` is the band behind the label. */
|
|
1843
|
+
${c}.statediagram-cluster rect.outer {
|
|
1844
|
+
stroke: ${t};
|
|
1845
|
+
${s}
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1848
|
+
${c}.statediagram-cluster rect.inner {
|
|
1849
|
+
stroke: ${t};
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
/* Concurrency regions. Siblings of one composite share a slot, so a divided composite
|
|
1853
|
+
reads as one thing split into parts rather than as several composites. */
|
|
1854
|
+
${c}.statediagram-cluster rect.divider {
|
|
1855
|
+
stroke: ${t};
|
|
1856
|
+
${s}
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
|
+
/* handDrawn draws the same container as roughjs shapes rather than plain rects, so it
|
|
1860
|
+
needs its own rules. \`roundedWithTitle\` and \`divider\` name those groups \`outer\`,
|
|
1861
|
+
\`inner\` and \`divider\` to match the classic branch, which is what lets these
|
|
1862
|
+
discriminate -- a bare \`.statediagram-cluster path\` rule reached the body as well and
|
|
1863
|
+
tinted the whole composite, losing \`compositeBackground\` and diverging from what
|
|
1864
|
+
classic and neo do.
|
|
1865
|
+
|
|
1866
|
+
roughjs emits two paths per shape and marks them: the filled shape carries
|
|
1867
|
+
\`stroke="none"\` and the sketched outline carries \`fill="none"\`. Splitting on that is
|
|
1868
|
+
what keeps \`fill\` off the outline -- a rough outline is open squiggles, not a closed
|
|
1869
|
+
region, so filling it produces smears -- and keeps \`stroke\` off the fill shape, which
|
|
1870
|
+
would otherwise gain an edge it was drawn without. */
|
|
1871
|
+
${c}.statediagram-cluster .outer path[stroke='none'] {
|
|
1872
|
+
${s}
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1875
|
+
${c}.statediagram-cluster .outer path[fill='none'] {
|
|
1876
|
+
stroke: ${t};
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
/* No \`.inner\` rule on purpose. The body shape is left entirely alone under handDrawn,
|
|
1880
|
+
where a rect's \`inner\` counterpart cannot be recoloured safely: roughjs draws a
|
|
1881
|
+
hachure fill as *stroked* lines, so its fill paths carry \`fill="none"\` exactly like
|
|
1882
|
+
the outline and no selector separates them. An \`.inner\` stroke rule therefore
|
|
1883
|
+
repainted the hatching of every alt composite in the palette colour instead of
|
|
1884
|
+
leaving it on \`altBackground\`. The container still reads as palette-coloured: the
|
|
1885
|
+
\`outer\` shape spans the whole composite, so its outline already frames the body. */
|
|
1886
|
+
|
|
1887
|
+
/* Regions split the same way, which is why \`divider\` fills solid rather than taking
|
|
1888
|
+
roughjs's default hachure -- see the note on that call. Hatched, both of its paths
|
|
1889
|
+
carried \`fill="none"\` and these two rules degenerated: the tint matched nothing and
|
|
1890
|
+
the border rule repainted the hatching. */
|
|
1891
|
+
${c}.statediagram-cluster .divider path[stroke='none'] {
|
|
1892
|
+
${s}
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
${c}.statediagram-cluster .divider path[fill='none'] {
|
|
1896
|
+
stroke: ${t};
|
|
1897
|
+
}
|
|
1898
|
+
`;
|
|
1814
1899
|
}
|
|
1815
|
-
|
|
1900
|
+
return o;
|
|
1901
|
+
}, "genColor"), je = {
|
|
1902
|
+
parser: T,
|
|
1903
|
+
get db() {
|
|
1904
|
+
return new ke(2);
|
|
1905
|
+
},
|
|
1906
|
+
renderer: De,
|
|
1907
|
+
styles: /* @__PURE__ */ u((e) => `
|
|
1908
|
+
${Ae(e)}
|
|
1816
1909
|
defs [id$="-barbEnd"] {
|
|
1817
1910
|
fill: ${e.transitionColor};
|
|
1818
1911
|
stroke: ${e.transitionColor};
|
|
@@ -2037,6 +2130,10 @@ g.stateGroup line {
|
|
|
2037
2130
|
ry: ${e.radius}px;
|
|
2038
2131
|
filter: ${e.dropShadow ? e.dropShadow.replace("url(#drop-shadow)", `url(${e.svgId}-drop-shadow)`) : "none"}
|
|
2039
2132
|
}
|
|
2040
|
-
`, "getStyles")
|
|
2133
|
+
`, "getStyles"),
|
|
2134
|
+
init: /* @__PURE__ */ u((e) => {
|
|
2135
|
+
e.state ||= {}, e.state.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
|
|
2136
|
+
}, "init")
|
|
2137
|
+
};
|
|
2041
2138
|
//#endregion
|
|
2042
|
-
export {
|
|
2139
|
+
export { je as diagram };
|