@emuanalytics/flow-rdf-ui 4.2.0 → 4.3.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/README.md +58 -0
- package/THIRD_PARTY_NOTICES.md +220 -0
- package/dist/components/alert/alert.component.mjs +3 -0
- package/dist/components/animation/animation.component.mjs +1 -0
- package/dist/components/autocomplete/autocomplete.component.mjs +38 -14
- package/dist/components/avatar/avatar.component.mjs +3 -0
- package/dist/components/badge/badge.component.mjs +1 -0
- package/dist/components/base-control/base-control.component.mjs +3 -0
- package/dist/components/breadcrumb/breadcrumb.component.mjs +3 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.component.mjs +1 -0
- package/dist/components/busy-overlay/busy-overlay.component.mjs +3 -0
- package/dist/components/button/button.component.mjs +4 -0
- package/dist/components/button-group/button-group.component.mjs +1 -0
- package/dist/components/calendar/calendar.component.mjs +6 -0
- package/dist/components/card/card.component.mjs +1 -0
- package/dist/components/carousel/carousel.component.mjs +3 -0
- package/dist/components/carousel-item/carousel-item.component.mjs +1 -0
- package/dist/components/chart/chart.component.mjs +1 -0
- package/dist/components/chart/chartjs-plugins/luxon.adapter.mjs +78 -0
- package/dist/components/chart/chartjs-support.mjs +2 -0
- package/dist/components/checkbox/checkbox.component.mjs +3 -0
- package/dist/components/checkbox-group/checkbox-group.component.mjs +3 -0
- package/dist/components/color-mapper/color-mapper.component.mjs +21 -0
- package/dist/components/color-picker/color-picker.component.mjs +8 -0
- package/dist/components/color-stop/color-stop.component.mjs +17 -0
- package/dist/components/date-time-picker/date-time-picker.component.mjs +6 -0
- package/dist/components/details/details.component.mjs +3 -0
- package/dist/components/diagram/diagram-panel.styles.mjs +44 -0
- package/dist/components/diagram/diagram-tokens.styles.mjs +148 -0
- package/dist/components/diagram/diagram.component.mjs +355 -0
- package/dist/components/diagram/diagram.mjs +5 -0
- package/dist/components/diagram/diagram.styles.mjs +95 -0
- package/dist/components/diagram-background/diagram-background.component.mjs +163 -0
- package/dist/components/diagram-background/diagram-background.mjs +5 -0
- package/dist/components/diagram-background/diagram-background.styles.mjs +58 -0
- package/dist/components/diagram-base-edge/diagram-base-edge.component.mjs +326 -0
- package/dist/components/diagram-base-edge/diagram-base-edge.mjs +5 -0
- package/dist/components/diagram-base-edge/diagram-base-edge.styles.mjs +147 -0
- package/dist/components/diagram-base-node/diagram-base-node.component.mjs +84 -0
- package/dist/components/diagram-base-node/diagram-base-node.mjs +5 -0
- package/dist/components/diagram-base-node/diagram-base-node.styles.mjs +37 -0
- package/dist/components/diagram-edge/diagram-edge.component.mjs +56 -0
- package/dist/components/diagram-edge/diagram-edge.mjs +5 -0
- package/dist/components/diagram-edge/diagram-edge.styles.mjs +37 -0
- package/dist/components/diagram-edge-label/diagram-edge-label.component.mjs +202 -0
- package/dist/components/diagram-edge-label/diagram-edge-label.mjs +5 -0
- package/dist/components/diagram-edge-label/diagram-edge-label.styles.mjs +54 -0
- package/dist/components/diagram-marker/diagram-marker.component.mjs +84 -0
- package/dist/components/diagram-marker/diagram-marker.mjs +5 -0
- package/dist/components/diagram-marker/diagram-marker.styles.mjs +9 -0
- package/dist/components/diagram-minimap/diagram-minimap.component.mjs +298 -0
- package/dist/components/diagram-minimap/diagram-minimap.mjs +5 -0
- package/dist/components/diagram-minimap/diagram-minimap.styles.mjs +83 -0
- package/dist/components/diagram-node/diagram-node-template.styles.mjs +36 -0
- package/dist/components/diagram-node/diagram-node.component.mjs +183 -0
- package/dist/components/diagram-node/diagram-node.mjs +6 -0
- package/dist/components/diagram-node/diagram-node.styles.mjs +29 -0
- package/dist/components/diagram-palette-item/diagram-palette-item.component.mjs +168 -0
- package/dist/components/diagram-palette-item/diagram-palette-item.mjs +5 -0
- package/dist/components/diagram-palette-item/diagram-palette-item.styles.mjs +20 -0
- package/dist/components/diagram-palette-item-preview/diagram-palette-item-preview.component.mjs +245 -0
- package/dist/components/diagram-palette-item-preview/diagram-palette-item-preview.mjs +6 -0
- package/dist/components/diagram-palette-item-preview/diagram-palette-item-preview.styles.mjs +41 -0
- package/dist/components/diagram-port/diagram-port.component.mjs +273 -0
- package/dist/components/diagram-port/diagram-port.mjs +5 -0
- package/dist/components/diagram-port/diagram-port.styles.mjs +116 -0
- package/dist/components/diagram-resize-adornment/diagram-resize-adornment.component.mjs +124 -0
- package/dist/components/diagram-resize-adornment/diagram-resize-adornment.mjs +5 -0
- package/dist/components/diagram-resize-adornment/diagram-resize-adornment.styles.mjs +136 -0
- package/dist/components/diagram-rotate-adornment/diagram-rotate-adornment.component.mjs +125 -0
- package/dist/components/diagram-rotate-adornment/diagram-rotate-adornment.mjs +5 -0
- package/dist/components/diagram-rotate-adornment/diagram-rotate-adornment.styles.mjs +65 -0
- package/dist/components/diagram-zoom-controls/diagram-zoom-controls.component.mjs +158 -0
- package/dist/components/diagram-zoom-controls/diagram-zoom-controls.mjs +5 -0
- package/dist/components/diagram-zoom-controls/diagram-zoom-controls.styles.mjs +66 -0
- package/dist/components/dialog/dialog.component.mjs +4 -0
- package/dist/components/divider/divider.component.mjs +1 -0
- package/dist/components/drawer/drawer.component.mjs +3 -0
- package/dist/components/dropdown/dropdown.component.mjs +2 -1
- package/dist/components/form-group/form-group.component.mjs +1 -0
- package/dist/components/gauge/gauge.component.mjs +6 -0
- package/dist/components/icon/icon.component.mjs +1 -0
- package/dist/components/icon/library.system.mjs +2 -0
- package/dist/components/icon-button/icon-button.component.mjs +5 -0
- package/dist/components/input/input.component.mjs +5 -0
- package/dist/components/list/list.component.mjs +1 -0
- package/dist/components/list-item/list-item.component.mjs +17 -0
- package/dist/components/map/map.component.mjs +3 -0
- package/dist/components/map/map.styles.mjs +10 -0
- package/dist/components/menu/menu.component.mjs +1 -0
- package/dist/components/menu-item/menu-item.component.mjs +3 -0
- package/dist/components/menu-label/menu-label.component.mjs +1 -0
- package/dist/components/mutation-observer/mutation-observer.component.mjs +1 -0
- package/dist/components/option/option.component.mjs +2 -1
- package/dist/components/panel/panel.component.mjs +85 -1
- package/dist/components/panel/panel.styles.mjs +29 -0
- package/dist/components/panel-header/panel-header.component.mjs +3 -0
- package/dist/components/popup/popup.component.mjs +1 -0
- package/dist/components/progress-bar/progress-bar.component.mjs +1 -0
- package/dist/components/progress-ring/progress-ring.component.mjs +1 -0
- package/dist/components/query-builder/query-builder.component.mjs +27 -0
- package/dist/components/radio/radio.component.mjs +3 -0
- package/dist/components/radio-group/radio-group.component.mjs +3 -0
- package/dist/components/range/range.component.mjs +9 -0
- package/dist/components/resize-observer/resize-observer.component.mjs +1 -0
- package/dist/components/scroll-view/scroll-view.component.mjs +1 -0
- package/dist/components/select/select.component.mjs +3 -5
- package/dist/components/split-view/split-view-layout-registry.mjs +44 -0
- package/dist/components/split-view/split-view-layout.mjs +607 -0
- package/dist/components/split-view/split-view.component.mjs +502 -468
- package/dist/components/split-view/split-view.styles.mjs +25 -0
- package/dist/components/split-view-divider/split-view-divider.component.mjs +2 -53
- package/dist/components/split-view-divider/split-view-divider.styles.mjs +28 -16
- package/dist/components/split-view-pane/split-view-pane.component.mjs +197 -18
- package/dist/components/split-view-pane/split-view-pane.styles.mjs +52 -0
- package/dist/components/split-view-toggle-button/split-view-toggle-button.component.mjs +5 -0
- package/dist/components/stepper/stepper.component.mjs +1 -0
- package/dist/components/stepper-panel/stepper-panel.component.mjs +1 -0
- package/dist/components/switch/switch.component.mjs +3 -0
- package/dist/components/tab/tab.component.mjs +4 -0
- package/dist/components/tab-group/tab-group.component.mjs +176 -6
- package/dist/components/tab-group/tab-group.styles.mjs +44 -0
- package/dist/components/tab-panel/tab-panel.component.mjs +1 -0
- package/dist/components/tag/tag.component.mjs +2 -1
- package/dist/components/textarea/textarea.component.mjs +1 -0
- package/dist/components/timer/ticker.mjs +7 -0
- package/dist/components/timer/timer.component.mjs +44 -3
- package/dist/components/timer/timer.styles.mjs +6 -2
- package/dist/components/tool-button/tool-button.component.mjs +4 -0
- package/dist/components/tool-button-group/tool-button-group.component.mjs +3 -0
- package/dist/components/tooltip/tooltip.component.mjs +3 -0
- package/dist/components/tree/tree.component.mjs +1 -0
- package/dist/components/tree-item/tree-item.component.mjs +5 -0
- package/dist/components/visually-hidden/visually-hidden.component.mjs +1 -0
- package/dist/custom-elements.json +11803 -5676
- package/dist/diagram/api/diagram-api-base.mjs +16 -0
- package/dist/diagram/api/diagram-api.mjs +399 -0
- package/dist/diagram/api/diagram-clipboard-api.mjs +52 -0
- package/dist/diagram/api/diagram-groups-api.mjs +46 -0
- package/dist/diagram/api/diagram-model-api.mjs +447 -0
- package/dist/diagram/api/diagram-nodes-api.mjs +61 -0
- package/dist/diagram/api/diagram-selection-api.mjs +56 -0
- package/dist/diagram/api/diagram-viewport-api.mjs +169 -0
- package/dist/diagram/api/emit-with-measurement-option.mjs +21 -0
- package/dist/diagram/input/box-selection-controller.mjs +104 -0
- package/dist/diagram/input/context-menu-controller.mjs +196 -0
- package/dist/diagram/input/cursor-position-tracker-controller.mjs +18 -0
- package/dist/diagram/input/input-controller.mjs +31 -0
- package/dist/diagram/input/keyboard-actions/moving-action.mjs +27 -0
- package/dist/diagram/input/keyboard-actions/panning-action.mjs +27 -0
- package/dist/diagram/input/keyboard-actions/paste-action.mjs +17 -0
- package/dist/diagram/input/keyboard-actions/zoom-action.mjs +30 -0
- package/dist/diagram/input/keyboard-inputs-controller.mjs +121 -0
- package/dist/diagram/input/linking-controller.mjs +127 -0
- package/dist/diagram/input/linking-events.mjs +61 -0
- package/dist/diagram/input/manual-linking.mjs +101 -0
- package/dist/diagram/input/mobile-box-selection-controller.mjs +133 -0
- package/dist/diagram/input/mobile-panning-controller.mjs +114 -0
- package/dist/diagram/input/mobile-zooming-controller.mjs +110 -0
- package/dist/diagram/input/object-selection-controller.mjs +152 -0
- package/dist/diagram/input/palette-drop-controller.mjs +92 -0
- package/dist/diagram/input/panning-controller.mjs +147 -0
- package/dist/diagram/input/pointer-move-selection-controller.mjs +191 -0
- package/dist/diagram/input/relinking-gesture.mjs +182 -0
- package/dist/diagram/input/resize-controller.mjs +122 -0
- package/dist/diagram/input/rotate-controller.mjs +126 -0
- package/dist/diagram/input/zooming-wheel-controller.mjs +55 -0
- package/dist/diagram/minimap/minimap-calculations.mjs +83 -0
- package/dist/diagram/minimap/minimap-navigation-controller.mjs +150 -0
- package/dist/diagram/minimap/minimap-node-cache.mjs +19 -0
- package/dist/diagram/minimap/minimap-strategies.mjs +44 -0
- package/dist/diagram/model/diagram-model-adapter.mjs +97 -0
- package/dist/diagram/model/initialize-model.mjs +31 -0
- package/dist/diagram/model/strip-runtime-properties.mjs +30 -0
- package/dist/diagram/runtime/attribute-converters.mjs +11 -0
- package/dist/diagram/runtime/batched-resize-observer.mjs +168 -0
- package/dist/diagram/runtime/box-selection-provider.mjs +9 -0
- package/dist/diagram/runtime/context.mjs +132 -0
- package/dist/diagram/runtime/contexts.mjs +8 -0
- package/dist/diagram/runtime/cursor-position-tracker.mjs +20 -0
- package/dist/diagram/runtime/default-edge-templates.mjs +21 -0
- package/dist/diagram/runtime/default-node-templates.mjs +20 -0
- package/dist/diagram/runtime/diagram-reference.mjs +126 -0
- package/dist/diagram/runtime/diagram-runtime.mjs +214 -0
- package/dist/diagram/runtime/dom-input-events-router.mjs +88 -0
- package/dist/diagram/runtime/environment.mjs +59 -0
- package/dist/diagram/runtime/event-bridge.mjs +31 -0
- package/dist/diagram/runtime/flow-offset.mjs +45 -0
- package/dist/diagram/runtime/group-highlighted.mjs +25 -0
- package/dist/diagram/runtime/hidden.mjs +147 -0
- package/dist/diagram/runtime/lit-renderer.mjs +33 -0
- package/dist/diagram/runtime/marker-registry.mjs +108 -0
- package/dist/diagram/runtime/middlewares.mjs +14 -0
- package/dist/diagram/runtime/model-owner.mjs +11 -0
- package/dist/diagram/runtime/node-selected.mjs +25 -0
- package/dist/diagram/runtime/observable.mjs +205 -0
- package/dist/diagram/runtime/palette-drag.mjs +56 -0
- package/dist/diagram/runtime/port-hover.mjs +27 -0
- package/dist/diagram/runtime/port-registry.mjs +87 -0
- package/dist/diagram/runtime/resize-processor.mjs +207 -0
- package/dist/diagram/runtime/template-resolver.mjs +98 -0
- package/dist/diagram/runtime/touch-events-state.mjs +52 -0
- package/dist/diagram/utilities.mjs +27 -0
- package/dist/diagram-core/action-state-manager/action-state-manager.mjs +238 -0
- package/dist/diagram-core/batch-processor/batch-processor.mjs +144 -0
- package/dist/diagram-core/command-handler/command-handler.mjs +62 -0
- package/dist/diagram-core/command-handler/commands/add-to-group.mjs +32 -0
- package/dist/diagram-core/command-handler/commands/add-update-delete.mjs +196 -0
- package/dist/diagram-core/command-handler/commands/centering.mjs +73 -0
- package/dist/diagram-core/command-handler/commands/copy-paste.mjs +223 -0
- package/dist/diagram-core/command-handler/commands/cut.mjs +9 -0
- package/dist/diagram-core/command-handler/commands/delete-selection.mjs +32 -0
- package/dist/diagram-core/command-handler/commands/detach-on-node-delete.mjs +77 -0
- package/dist/diagram-core/command-handler/commands/highlight-group.mjs +45 -0
- package/dist/diagram-core/command-handler/commands/index.mjs +88 -0
- package/dist/diagram-core/command-handler/commands/init.mjs +11 -0
- package/dist/diagram-core/command-handler/commands/linking/cancel-linking.mjs +26 -0
- package/dist/diagram-core/command-handler/commands/linking/finish-linking-to-position.mjs +33 -0
- package/dist/diagram-core/command-handler/commands/linking/finish-linking.mjs +108 -0
- package/dist/diagram-core/command-handler/commands/linking/finish-relinking.mjs +91 -0
- package/dist/diagram-core/command-handler/commands/linking/linking-gesture.mjs +13 -0
- package/dist/diagram-core/command-handler/commands/linking/move-temporary-edge.mjs +98 -0
- package/dist/diagram-core/command-handler/commands/linking/start-linking-from-position.mjs +23 -0
- package/dist/diagram-core/command-handler/commands/linking/start-linking.mjs +47 -0
- package/dist/diagram-core/command-handler/commands/linking/start-relinking.mjs +51 -0
- package/dist/diagram-core/command-handler/commands/linking/utils.mjs +103 -0
- package/dist/diagram-core/command-handler/commands/move-nodes-lifecycle.mjs +14 -0
- package/dist/diagram-core/command-handler/commands/move-viewport.mjs +48 -0
- package/dist/diagram-core/command-handler/commands/move.mjs +90 -0
- package/dist/diagram-core/command-handler/commands/remove-from-group.mjs +22 -0
- package/dist/diagram-core/command-handler/commands/resize-node-lifecycle.mjs +14 -0
- package/dist/diagram-core/command-handler/commands/resize-node.mjs +214 -0
- package/dist/diagram-core/command-handler/commands/rotate-node-lifecycle.mjs +14 -0
- package/dist/diagram-core/command-handler/commands/rotate-node.mjs +53 -0
- package/dist/diagram-core/command-handler/commands/selection.mjs +69 -0
- package/dist/diagram-core/command-handler/commands/z-order.mjs +125 -0
- package/dist/diagram-core/command-handler/commands/zoom-to-fit.mjs +118 -0
- package/dist/diagram-core/command-handler/commands/zoom.mjs +26 -0
- package/dist/diagram-core/edge-routing-manager/edge-routing-manager.mjs +253 -0
- package/dist/diagram-core/edge-routing-manager/resolve-label-position.mjs +13 -0
- package/dist/diagram-core/edge-routing-manager/routings/bezier/bezier-routing.mjs +73 -0
- package/dist/diagram-core/edge-routing-manager/routings/bezier/compute-bezier-path.mjs +24 -0
- package/dist/diagram-core/edge-routing-manager/routings/bezier/compute-bezier-point-at-distance.mjs +37 -0
- package/dist/diagram-core/edge-routing-manager/routings/bezier/compute-bezier-point-on-path.mjs +33 -0
- package/dist/diagram-core/edge-routing-manager/routings/bezier/compute-bezier-points.mjs +31 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/compute-orthogonal-path.mjs +56 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/compute-orthogonal-point-at-distance.mjs +12 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/compute-orthogonal-point-on-path.mjs +38 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/compute-orthogonal-points.mjs +26 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/orthogonal-routing.mjs +69 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/utils/get-offset-point.mjs +14 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/utils/pathpoints/get-pathpoints-from-bottom.mjs +104 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/utils/pathpoints/get-pathpoints-from-left.mjs +91 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/utils/pathpoints/get-pathpoints-from-right.mjs +88 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/utils/pathpoints/get-pathpoints-from-top.mjs +168 -0
- package/dist/diagram-core/edge-routing-manager/routings/orthogonal/utils/pathpoints/get-pathpoints.mjs +23 -0
- package/dist/diagram-core/edge-routing-manager/routings/polyline/compute-polyline-point-at-distance.mjs +12 -0
- package/dist/diagram-core/edge-routing-manager/routings/polyline/compute-polyline-point-on-path.mjs +41 -0
- package/dist/diagram-core/edge-routing-manager/routings/polyline/polyline-routing.mjs +81 -0
- package/dist/diagram-core/edge-routing-manager/utils/linear-segment-utils.mjs +27 -0
- package/dist/diagram-core/edge-routing-manager/utils/normalize-distance.mjs +6 -0
- package/dist/diagram-core/event-manager/event-manager.mjs +164 -0
- package/dist/diagram-core/flow-config/default-flow-config.mjs +143 -0
- package/dist/diagram-core/flow-core.mjs +541 -0
- package/dist/diagram-core/input-events/handlers/box-selection/box-selection.handler.mjs +69 -0
- package/dist/diagram-core/input-events/handlers/cancel-interaction/cancel-interaction.handler.mjs +9 -0
- package/dist/diagram-core/input-events/handlers/copy/copy.handler.mjs +9 -0
- package/dist/diagram-core/input-events/handlers/cut/cut.handler.mjs +9 -0
- package/dist/diagram-core/input-events/handlers/delete-selection/delete-selection.handler.mjs +9 -0
- package/dist/diagram-core/input-events/handlers/event-handler.mjs +29 -0
- package/dist/diagram-core/input-events/handlers/keyboard-move-selection/keyboard-move-selection.handler.mjs +130 -0
- package/dist/diagram-core/input-events/handlers/keyboard-panning/keyboard-panning.handler.mjs +31 -0
- package/dist/diagram-core/input-events/handlers/linking/linking.handler.mjs +77 -0
- package/dist/diagram-core/input-events/handlers/movable-selection.mjs +26 -0
- package/dist/diagram-core/input-events/handlers/palette-drop/palette-drop.handler.mjs +20 -0
- package/dist/diagram-core/input-events/handlers/panning/panning-handler-factory.mjs +8 -0
- package/dist/diagram-core/input-events/handlers/panning/panning.handler.mjs +41 -0
- package/dist/diagram-core/input-events/handlers/panning/virtualized-panning.handler.mjs +77 -0
- package/dist/diagram-core/input-events/handlers/paste/paste.handler.mjs +17 -0
- package/dist/diagram-core/input-events/handlers/pointer-move-selection/pointer-move-selection.handler.mjs +220 -0
- package/dist/diagram-core/input-events/handlers/redo/redo.handler.mjs +14 -0
- package/dist/diagram-core/input-events/handlers/relinking/relinking.handler.mjs +62 -0
- package/dist/diagram-core/input-events/handlers/resize/resize.handler.mjs +174 -0
- package/dist/diagram-core/input-events/handlers/rotate/rotate.handler.mjs +107 -0
- package/dist/diagram-core/input-events/handlers/select/select.handler.mjs +42 -0
- package/dist/diagram-core/input-events/handlers/select-all/select-all.handler.mjs +10 -0
- package/dist/diagram-core/input-events/handlers/undo/undo.handler.mjs +14 -0
- package/dist/diagram-core/input-events/handlers/wheel-panning/wheel-panning.handler.mjs +25 -0
- package/dist/diagram-core/input-events/handlers/zooming/zooming.handler.mjs +28 -0
- package/dist/diagram-core/input-events/input-events.router.mjs +75 -0
- package/dist/diagram-core/interaction-coordinator/interaction-coordinator.mjs +75 -0
- package/dist/diagram-core/label-batch-processor/label-batch-processor.mjs +19 -0
- package/dist/diagram-core/math/angle-between-points/angle-between-points.mjs +5 -0
- package/dist/diagram-core/math/angle-to-side/angle-to-side.mjs +27 -0
- package/dist/diagram-core/math/calculate-edge-panning-force/calculate-edge-panning-force.mjs +34 -0
- package/dist/diagram-core/math/clamp/clamp.mjs +5 -0
- package/dist/diagram-core/math/distance-between-points/distance-between-points.mjs +5 -0
- package/dist/diagram-core/math/ng-diagram-math.mjs +25 -0
- package/dist/diagram-core/math/normalize-angle/normalize-angle.mjs +5 -0
- package/dist/diagram-core/math/snap-angle/snap-angle.mjs +43 -0
- package/dist/diagram-core/math/snap-number/snap-number.mjs +3 -0
- package/dist/diagram-core/math/snap-point/snap-point.mjs +8 -0
- package/dist/diagram-core/math/subtract-points/subtract-points.mjs +5 -0
- package/dist/diagram-core/measurement-tracker/measurement-tracker.mjs +182 -0
- package/dist/diagram-core/middleware-manager/middleware-executor.mjs +246 -0
- package/dist/diagram-core/middleware-manager/middleware-manager.mjs +93 -0
- package/dist/diagram-core/middleware-manager/middlewares/edges-routing/edges-routing.mjs +149 -0
- package/dist/diagram-core/middleware-manager/middlewares/edges-routing/get-edge-points.mjs +93 -0
- package/dist/diagram-core/middleware-manager/middlewares/edges-routing/get-source-target-positions.mjs +90 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/clipboard-paste.emitter.mjs +34 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/diagram-init.emitter.mjs +190 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/edge-draw-ended.emitter.mjs +51 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/edge-drawn.emitter.mjs +35 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/edge-relink.emitter.mjs +58 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/group-membership-changed.emitter.mjs +49 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/node-drag-lifecycle.emitter.mjs +54 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/node-resize-lifecycle.emitter.mjs +44 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/node-rotate-lifecycle.emitter.mjs +44 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/palette-item-dropped.emitter.mjs +26 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/selection-changed.emitter.mjs +61 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/selection-gesture-ended.emitter.mjs +32 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/selection-moved.emitter.mjs +57 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/selection-removed.emitter.mjs +40 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/selection-rotated.emitter.mjs +33 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/size-changed.emitter.mjs +33 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/emitters/viewport-changed.emitter.mjs +19 -0
- package/dist/diagram-core/middleware-manager/middlewares/event-emitter/event-emitter.middleware.mjs +69 -0
- package/dist/diagram-core/middleware-manager/middlewares/hidden-computation/hidden-computation.mjs +66 -0
- package/dist/diagram-core/middleware-manager/middlewares/internal-id-assignment/internal-id-assignment.mjs +24 -0
- package/dist/diagram-core/middleware-manager/middlewares/logger/logger.mjs +18 -0
- package/dist/diagram-core/middleware-manager/middlewares/measured-bounds-assignment/is-node-fully-measured.mjs +20 -0
- package/dist/diagram-core/middleware-manager/middlewares/measured-bounds-assignment/measured-bounds-assignment.mjs +59 -0
- package/dist/diagram-core/middleware-manager/middlewares/measurement-tracking/measurement-tracking.middleware.mjs +55 -0
- package/dist/diagram-core/middleware-manager/middlewares/z-index-assignment/utils/assign-edges-z-index.mjs +12 -0
- package/dist/diagram-core/middleware-manager/middlewares/z-index-assignment/utils/assign-node-z-index.mjs +61 -0
- package/dist/diagram-core/middleware-manager/middlewares/z-index-assignment/utils/create-group-children-map.mjs +14 -0
- package/dist/diagram-core/middleware-manager/middlewares/z-index-assignment/utils/initialize-z-index.mjs +30 -0
- package/dist/diagram-core/middleware-manager/middlewares/z-index-assignment/utils/sort-children.mjs +36 -0
- package/dist/diagram-core/middleware-manager/middlewares/z-index-assignment/z-index-assignment.mjs +240 -0
- package/dist/diagram-core/middleware-manager/pass-settlement.mjs +68 -0
- package/dist/diagram-core/model-lookup/model-lookup.mjs +394 -0
- package/dist/diagram-core/port-batch-processor/port-batch-processor.mjs +20 -0
- package/dist/diagram-core/render-strategy/base-render-strategy.mjs +26 -0
- package/dist/diagram-core/render-strategy/direct/direct-render-strategy.mjs +33 -0
- package/dist/diagram-core/render-strategy/render-performance-logger.mjs +42 -0
- package/dist/diagram-core/render-strategy/virtualized/idle-render-scheduler.mjs +43 -0
- package/dist/diagram-core/render-strategy/virtualized/result-cache.mjs +63 -0
- package/dist/diagram-core/render-strategy/virtualized/viewport-utils.mjs +40 -0
- package/dist/diagram-core/render-strategy/virtualized/virtualized-render-strategy.mjs +91 -0
- package/dist/diagram-core/render-strategy/virtualized/visible-elements-resolver.mjs +120 -0
- package/dist/diagram-core/render-strategy/virtualized/zoom-tracker.mjs +38 -0
- package/dist/diagram-core/set.polyfill.mjs +24 -0
- package/dist/diagram-core/shortcut-manager/default-shortcuts.mjs +99 -0
- package/dist/diagram-core/shortcut-manager/shortcut-manager.mjs +140 -0
- package/dist/diagram-core/spatial-hash/collision-detection.mjs +74 -0
- package/dist/diagram-core/spatial-hash/spatial-hash.mjs +161 -0
- package/dist/diagram-core/spatial-hash/utils.mjs +92 -0
- package/dist/diagram-core/transaction-manager/transaction-context.mjs +40 -0
- package/dist/diagram-core/transaction-manager/transaction-manager.mjs +94 -0
- package/dist/diagram-core/transaction-manager/transaction.mjs +179 -0
- package/dist/diagram-core/types/edge.interface.mjs +3 -0
- package/dist/diagram-core/types/node.interface.mjs +3 -0
- package/dist/diagram-core/types/utils.mjs +3 -0
- package/dist/diagram-core/updater/init-updater/init-state.mjs +356 -0
- package/dist/diagram-core/updater/init-updater/init-updater.mjs +275 -0
- package/dist/diagram-core/updater/init-updater/late-arrival-queue.mjs +71 -0
- package/dist/diagram-core/updater/init-updater/stability-detector.mjs +63 -0
- package/dist/diagram-core/updater/internal-updater/internal-updater.mjs +166 -0
- package/dist/diagram-core/utils/change-generation.mjs +13 -0
- package/dist/diagram-core/utils/compute-floating-edge-side.mjs +35 -0
- package/dist/diagram-core/utils/constants.mjs +3 -0
- package/dist/diagram-core/utils/dangling-edges.mjs +89 -0
- package/dist/diagram-core/utils/deep-merge.mjs +22 -0
- package/dist/diagram-core/utils/dimensions.mjs +52 -0
- package/dist/diagram-core/utils/get-node-border-intersection.mjs +99 -0
- package/dist/diagram-core/utils/get-port-flow-position.mjs +55 -0
- package/dist/diagram-core/utils/group-size.mjs +32 -0
- package/dist/diagram-core/utils/is-group.mjs +5 -0
- package/dist/diagram-core/utils/measurement-validation.mjs +11 -0
- package/dist/diagram-core/utils/object-properties.mjs +22 -0
- package/dist/diagram-core/utils/rects-points-sizes.mjs +148 -0
- package/dist/diagram-core/utils/relinking.mjs +6 -0
- package/dist/diagram-core/utils/semaphore.mjs +43 -0
- package/dist/diagram-core/utils/snap-node-position.mjs +11 -0
- package/dist/diagram-core/utils/sort-nodes-by-z-index.mjs +22 -0
- package/dist/diagram-core/visibility/effective-visibility.mjs +28 -0
- package/dist/diagram-core/visibility/template-visibility-registry.mjs +87 -0
- package/dist/index.d.mts +13416 -3794
- package/dist/index.d.ts +13416 -3794
- package/dist/index.mjs +34 -0
- package/dist/internal/content-size.mjs +14 -0
- package/dist/internal/custom-boolean-converter.mjs +18 -0
- package/dist/internal/flow-ui-rdf-element.mjs +57 -5
- package/dist/package.json.mjs +1 -1
- package/dist/utilities/register-components.mjs +77 -142
- package/dist/vscode.html-custom-data.json +460 -187
- package/package.json +16 -8
- package/themes/dark.css +2 -0
- package/themes/dark.styles.js +2 -0
- package/themes/light.css +2 -0
- package/themes/light.styles.js +2 -0
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
import { render, html } from 'lit';
|
|
2
|
+
import { property, query } from 'lit/decorators.js';
|
|
3
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
4
|
+
import { guard } from 'lit/directives/guard.js';
|
|
5
|
+
import { repeat } from 'lit/directives/repeat.js';
|
|
6
|
+
import { DiagramApi } from '../../diagram/api/diagram-api.mjs';
|
|
7
|
+
import { ContextProvider } from '../../diagram/runtime/context.mjs';
|
|
8
|
+
import { diagramRuntimeContext } from '../../diagram/runtime/contexts.mjs';
|
|
9
|
+
import { DiagramRuntime } from '../../diagram/runtime/diagram-runtime.mjs';
|
|
10
|
+
import { bridgeDiagramEvents } from '../../diagram/runtime/event-bridge.mjs';
|
|
11
|
+
import { FlowOffset } from '../../diagram/runtime/flow-offset.mjs';
|
|
12
|
+
import { BoxSelectionController } from '../../diagram/input/box-selection-controller.mjs';
|
|
13
|
+
import { ContextMenuController } from '../../diagram/input/context-menu-controller.mjs';
|
|
14
|
+
import { CursorPositionTrackerController } from '../../diagram/input/cursor-position-tracker-controller.mjs';
|
|
15
|
+
import { KeyboardInputsController } from '../../diagram/input/keyboard-inputs-controller.mjs';
|
|
16
|
+
import { ManualLinkingController } from '../../diagram/input/manual-linking.mjs';
|
|
17
|
+
import { MobileBoxSelectionController } from '../../diagram/input/mobile-box-selection-controller.mjs';
|
|
18
|
+
import { MobilePanningController } from '../../diagram/input/mobile-panning-controller.mjs';
|
|
19
|
+
import { MobileZoomingController } from '../../diagram/input/mobile-zooming-controller.mjs';
|
|
20
|
+
import { PaletteDropController } from '../../diagram/input/palette-drop-controller.mjs';
|
|
21
|
+
import { RelinkingGestureController } from '../../diagram/input/relinking-gesture.mjs';
|
|
22
|
+
import { ObjectSelectionController } from '../../diagram/input/object-selection-controller.mjs';
|
|
23
|
+
import { PanningController } from '../../diagram/input/panning-controller.mjs';
|
|
24
|
+
import { ZoomingWheelController } from '../../diagram/input/zooming-wheel-controller.mjs';
|
|
25
|
+
import { createMiddlewares } from '../../diagram/runtime/middlewares.mjs';
|
|
26
|
+
import { DiagramObserver } from '../../diagram/runtime/observable.mjs';
|
|
27
|
+
import { defaultEdgeTemplate } from '../../diagram/runtime/default-edge-templates.mjs';
|
|
28
|
+
import { createNodeTemplateResolver, createEdgeTemplateResolver } from '../../diagram/runtime/template-resolver.mjs';
|
|
29
|
+
import customBooleanConverter from '../../internal/custom-boolean-converter.mjs';
|
|
30
|
+
import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
|
|
31
|
+
import FlowUiDiagramBaseEdge from '../diagram-base-edge/diagram-base-edge.component.mjs';
|
|
32
|
+
import FlowUiDiagramBaseNode from '../diagram-base-node/diagram-base-node.component.mjs';
|
|
33
|
+
import FlowUiDiagramEdge from '../diagram-edge/diagram-edge.component.mjs';
|
|
34
|
+
import FlowUiDiagramEdgeLabel from '../diagram-edge-label/diagram-edge-label.component.mjs';
|
|
35
|
+
import FlowUiDiagramNode from '../diagram-node/diagram-node.component.mjs';
|
|
36
|
+
import FlowUiDiagramResizeAdornment from '../diagram-resize-adornment/diagram-resize-adornment.component.mjs';
|
|
37
|
+
import styles from './diagram.styles.mjs';
|
|
38
|
+
|
|
39
|
+
var __defProp = Object.defineProperty;
|
|
40
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
41
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
42
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
43
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
44
|
+
if (decorator = decorators[i])
|
|
45
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
46
|
+
if (kind && result)
|
|
47
|
+
__defProp(target, key, result);
|
|
48
|
+
return result;
|
|
49
|
+
};
|
|
50
|
+
const DESTROYED_MODEL_WARNING = `[flow-ui-diagram] The diagram was removed from the document, which destroyed its model.
|
|
51
|
+
|
|
52
|
+
Set a new \`model\` to show the diagram again, for example \`initializeModel(JSON.parse(saved))\` with JSON saved by
|
|
53
|
+
\`api.model.toJSON()\` before the diagram was removed.`;
|
|
54
|
+
class FlowUiDiagram extends FlowRdfElement {
|
|
55
|
+
constructor() {
|
|
56
|
+
super();
|
|
57
|
+
this.middlewares = createMiddlewares((defaults) => defaults);
|
|
58
|
+
this.tabbable = true;
|
|
59
|
+
this.selectionMode = "default";
|
|
60
|
+
this.nodeTemplates = createNodeTemplateResolver();
|
|
61
|
+
this.edgeTemplates = createEdgeTemplateResolver(defaultEdgeTemplate);
|
|
62
|
+
this.runtime = new DiagramRuntime({
|
|
63
|
+
getFlowOffset: () => this.flowOffset.get(),
|
|
64
|
+
getViewportSize: () => {
|
|
65
|
+
const { width, height } = this.getBoundingClientRect();
|
|
66
|
+
return { width, height };
|
|
67
|
+
},
|
|
68
|
+
getClientRect: () => this.getBoundingClientRect(),
|
|
69
|
+
getSelectionMode: () => this.selectionMode
|
|
70
|
+
});
|
|
71
|
+
this._api = new DiagramApi(this.runtime);
|
|
72
|
+
this.runtime.api = this._api;
|
|
73
|
+
this.flowOffset = new FlowOffset(this, this.runtime.actionState);
|
|
74
|
+
new ContextProvider(this, { context: diagramRuntimeContext, initialValue: this.runtime });
|
|
75
|
+
this._initialized = new Promise((resolve) => this.resolveInitialized = resolve);
|
|
76
|
+
this.contentEl = document.createElement("div");
|
|
77
|
+
this.contentEl.setAttribute("slot", "content");
|
|
78
|
+
this.contentEl.classList.add("flow-ui-diagram-content");
|
|
79
|
+
new DiagramObserver(this, this.runtime.renderer.nodes);
|
|
80
|
+
new DiagramObserver(this, this.runtime.renderer.edges);
|
|
81
|
+
this.configController = new DiagramObserver(this, this.runtime.config);
|
|
82
|
+
this.isInitializedController = new DiagramObserver(this, this.runtime.isInitialized);
|
|
83
|
+
this.runtime.renderer.viewport.subscribe((viewport) => this.applyViewportTransform(viewport));
|
|
84
|
+
this.runtime.boxSelection.boundingBox.subscribe((box) => this.applyBoxSelection(box));
|
|
85
|
+
this.attachInputControllers();
|
|
86
|
+
this.runtime.on("diagramInit", () => this.resolveInitialized(this._api));
|
|
87
|
+
bridgeDiagramEvents(this.runtime, (name, detail) => {
|
|
88
|
+
this.dispatchEvent(new CustomEvent(name, { bubbles: true, composed: true, cancelable: false, detail }));
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* The diagram API. It is the same object for the element's lifetime. Note that most of its methods throw until the
|
|
93
|
+
* diagram has a model. To wait until the diagram is ready, use `initialized`.
|
|
94
|
+
*/
|
|
95
|
+
get api() {
|
|
96
|
+
return this._api;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* A promise that resolves to the diagram API when the diagram has been initialized for the first time: its
|
|
100
|
+
* content has been measured and `flow-ui-diagram-init` has been emitted. This is the safest way to retrieve the API
|
|
101
|
+
* before using it.
|
|
102
|
+
*/
|
|
103
|
+
get initialized() {
|
|
104
|
+
return this._initialized;
|
|
105
|
+
}
|
|
106
|
+
connectedCallback() {
|
|
107
|
+
super.connectedCallback();
|
|
108
|
+
if (this.contentEl.parentNode !== this) {
|
|
109
|
+
this.appendChild(this.contentEl);
|
|
110
|
+
}
|
|
111
|
+
this.startViewportSizeTracking();
|
|
112
|
+
if (this.model && this.model === this.destroyedModel) {
|
|
113
|
+
console.warn(DESTROYED_MODEL_WARNING);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
disconnectedCallback() {
|
|
117
|
+
super.disconnectedCallback();
|
|
118
|
+
this.stopViewportSizeTracking();
|
|
119
|
+
queueMicrotask(() => {
|
|
120
|
+
if (!this.isConnected && this.runtime.hasFlowCore) {
|
|
121
|
+
this.destroyedModel = this.initializedModel;
|
|
122
|
+
this.runtime.destroy();
|
|
123
|
+
this.flowOffset.reset();
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
willUpdate(changed) {
|
|
128
|
+
if (changed.has("nodeTemplateMap")) {
|
|
129
|
+
this.nodeTemplates.setMap(this.nodeTemplateMap);
|
|
130
|
+
this.runtime.nodeTemplateMap.set(this.nodeTemplateMap);
|
|
131
|
+
}
|
|
132
|
+
if (changed.has("edgeTemplateMap")) {
|
|
133
|
+
this.edgeTemplates.setMap(this.edgeTemplateMap);
|
|
134
|
+
}
|
|
135
|
+
if (this.model && this.model !== this.initializedModel && this.isConnected) {
|
|
136
|
+
this.initializeEngine(this.model);
|
|
137
|
+
} else if (!this.model && this.initializedModel) {
|
|
138
|
+
this.initializedModel = void 0;
|
|
139
|
+
this.runtime.destroy();
|
|
140
|
+
} else if (changed.has("config") && this.config && this.runtime.hasFlowCore) {
|
|
141
|
+
this.runtime.updateConfig(this.config);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
firstUpdated() {
|
|
145
|
+
this.applyViewportTransform(this.runtime.renderer.viewport.value);
|
|
146
|
+
this.applyBoxSelection(this.runtime.boxSelection.boundingBox.value);
|
|
147
|
+
}
|
|
148
|
+
updated(changed) {
|
|
149
|
+
if (changed.has("tabbable")) {
|
|
150
|
+
this.tabIndex = this.tabbable ? 0 : -1;
|
|
151
|
+
}
|
|
152
|
+
this.classList.toggle("pannable", this.configController.value?.viewportPanningEnabled ?? true);
|
|
153
|
+
render(this.renderContent(), this.contentEl);
|
|
154
|
+
}
|
|
155
|
+
render() {
|
|
156
|
+
const visible = this.isInitializedController.value ?? false;
|
|
157
|
+
return html`
|
|
158
|
+
<div part="background" class="diagram__background"><slot name="background"></slot></div>
|
|
159
|
+
<div part="canvas" class=${classMap({ diagram__canvas: true, "diagram__canvas--hidden": !visible })}>
|
|
160
|
+
<slot name="content"></slot>
|
|
161
|
+
</div>
|
|
162
|
+
<div
|
|
163
|
+
part="overlay"
|
|
164
|
+
class="diagram__overlay"
|
|
165
|
+
@pointerdown=${this.stopOverlayInput}
|
|
166
|
+
@touchstart=${this.stopOverlayInput}
|
|
167
|
+
@contextmenu=${this.ignoreOverlayContextMenu}
|
|
168
|
+
>
|
|
169
|
+
<slot name="overlay"></slot>
|
|
170
|
+
</div>
|
|
171
|
+
<div part="box-selection" class="diagram__box-selection" hidden></div>
|
|
172
|
+
`;
|
|
173
|
+
}
|
|
174
|
+
// Presses on overlay elements (minimap, zoom controls, toolbars) are theirs: the diagram's own pointer and touch
|
|
175
|
+
// controllers (panning, box selection, selection) listen on the host in the bubble phase, so stop them here.
|
|
176
|
+
// ngDiagram placed these elements outside the diagram. Capture-phase host listeners still run (the focus grab and
|
|
177
|
+
// the box-selection modifier flag, which nothing acts on without the bubble listener).
|
|
178
|
+
stopOverlayInput(event) {
|
|
179
|
+
event.stopPropagation();
|
|
180
|
+
}
|
|
181
|
+
// A right-click on an overlay element is not about the diagram content: no flow-ui-diagram-context-menu. The
|
|
182
|
+
// event still bubbles, so the page's own contextmenu listeners see it as before
|
|
183
|
+
ignoreOverlayContextMenu(event) {
|
|
184
|
+
event.contextMenuIgnored = true;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* The host input controllers, in ngDiagram's `hostDirectives` order. Each adds its host listeners in its
|
|
188
|
+
* constructor and several see the same event, coordinating through flags on it, so this order is load-bearing.
|
|
189
|
+
* The commented slots are where the controllers of later features go (see `src/diagram/README.md`).
|
|
190
|
+
*/
|
|
191
|
+
attachInputControllers() {
|
|
192
|
+
const runtime = () => this.runtime;
|
|
193
|
+
new BoxSelectionController(this, runtime);
|
|
194
|
+
new MobileBoxSelectionController(this, runtime);
|
|
195
|
+
new CursorPositionTrackerController(this, runtime);
|
|
196
|
+
new ZoomingWheelController(this, runtime);
|
|
197
|
+
new PanningController(this, runtime);
|
|
198
|
+
new MobilePanningController(this, runtime);
|
|
199
|
+
new MobileZoomingController(this, runtime);
|
|
200
|
+
new KeyboardInputsController(this, runtime);
|
|
201
|
+
new PaletteDropController(this, runtime);
|
|
202
|
+
new ObjectSelectionController(this, runtime, "diagram");
|
|
203
|
+
new ContextMenuController(this, runtime);
|
|
204
|
+
const relinkingGesture = new RelinkingGestureController(this, runtime);
|
|
205
|
+
this.runtime.relinkingGesture = relinkingGesture;
|
|
206
|
+
this.runtime.manualLinking = new ManualLinkingController(this, runtime);
|
|
207
|
+
this.runtime.actionState.subscribe((actionState) => this.classList.toggle("linking", !!actionState.linking));
|
|
208
|
+
relinkingGesture.active.subscribe((active) => this.classList.toggle("relinking", active));
|
|
209
|
+
}
|
|
210
|
+
initializeEngine(model) {
|
|
211
|
+
this.flowOffset.reset();
|
|
212
|
+
this.runtime.init({ model, middlewares: this.middlewares, config: this.config });
|
|
213
|
+
this.initializedModel = model;
|
|
214
|
+
this.destroyedModel = void 0;
|
|
215
|
+
}
|
|
216
|
+
// The content layer, rendered into the light-DOM `<div slot="content">`. Edges render beneath nodes. The
|
|
217
|
+
// renderer's edges include the temporary edge of a linking or relinking gesture. A node or edge is only
|
|
218
|
+
// re-rendered (and its template function called again) when the engine hands over a new object for it or the
|
|
219
|
+
// template map is replaced, so a change to one node costs one template call, not one per node.
|
|
220
|
+
renderContent() {
|
|
221
|
+
const nodes = this.runtime.renderer.nodes.value;
|
|
222
|
+
const edges = this.runtime.renderer.edges.value;
|
|
223
|
+
const { nodeTemplateMap, edgeTemplateMap } = this;
|
|
224
|
+
return html`
|
|
225
|
+
<div class="flow-ui-diagram-edges" style="position: absolute; inset: 0; pointer-events: none">
|
|
226
|
+
${repeat(
|
|
227
|
+
edges,
|
|
228
|
+
(edge) => edge._internalId ?? edge.id,
|
|
229
|
+
(edge) => guard(
|
|
230
|
+
[edge, edgeTemplateMap],
|
|
231
|
+
() => html`
|
|
232
|
+
<flow-ui-diagram-edge .edge=${edge}>${this.renderEdgeTemplate(edge)}</flow-ui-diagram-edge>
|
|
233
|
+
`
|
|
234
|
+
)
|
|
235
|
+
)}
|
|
236
|
+
</div>
|
|
237
|
+
<div class="flow-ui-diagram-nodes" style="position: absolute; inset: 0; pointer-events: none">
|
|
238
|
+
${repeat(
|
|
239
|
+
nodes,
|
|
240
|
+
(node) => node._internalId ?? node.id,
|
|
241
|
+
(node) => guard(
|
|
242
|
+
[node, nodeTemplateMap],
|
|
243
|
+
() => html`
|
|
244
|
+
<flow-ui-diagram-node .node=${node}>${this.renderNodeTemplate(node)}</flow-ui-diagram-node>
|
|
245
|
+
`
|
|
246
|
+
)
|
|
247
|
+
)}
|
|
248
|
+
</div>
|
|
249
|
+
`;
|
|
250
|
+
}
|
|
251
|
+
renderNodeTemplate(node) {
|
|
252
|
+
try {
|
|
253
|
+
return this.nodeTemplates.render(node.type, { node, selected: !!node.selected, api: this._api });
|
|
254
|
+
} catch (error) {
|
|
255
|
+
console.error(`[flow-ui-diagram] The template for node "${node.id}" threw an error.`, error);
|
|
256
|
+
return null;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
renderEdgeTemplate(edge) {
|
|
260
|
+
try {
|
|
261
|
+
return this.edgeTemplates.render(edge.type, { edge, selected: !!edge.selected, api: this._api });
|
|
262
|
+
} catch (error) {
|
|
263
|
+
console.error(`[flow-ui-diagram] The template for edge "${edge.id}" threw an error.`, error);
|
|
264
|
+
return null;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
applyViewportTransform({ x, y, scale }) {
|
|
268
|
+
if (this.canvas) {
|
|
269
|
+
this.canvas.style.transform = `translate(${x}px, ${y}px) scale(${scale})`;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
applyBoxSelection(box) {
|
|
273
|
+
const element = this.boxSelectionEl;
|
|
274
|
+
if (!element) {
|
|
275
|
+
return;
|
|
276
|
+
}
|
|
277
|
+
element.hidden = !box;
|
|
278
|
+
if (box) {
|
|
279
|
+
Object.assign(element.style, {
|
|
280
|
+
left: `${box.x}px`,
|
|
281
|
+
top: `${box.y}px`,
|
|
282
|
+
width: `${box.width}px`,
|
|
283
|
+
height: `${box.height}px`
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
startViewportSizeTracking() {
|
|
288
|
+
if (typeof ResizeObserver === "undefined" || this.viewportResizeObserver) {
|
|
289
|
+
return;
|
|
290
|
+
}
|
|
291
|
+
this.viewportResizeObserver = new ResizeObserver((entries) => {
|
|
292
|
+
const entry = entries[0];
|
|
293
|
+
if (entry) {
|
|
294
|
+
this.flowOffset.invalidate();
|
|
295
|
+
this.updateViewportSize(entry.contentRect.width, entry.contentRect.height);
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
this.viewportResizeObserver.observe(this);
|
|
299
|
+
}
|
|
300
|
+
stopViewportSizeTracking() {
|
|
301
|
+
this.viewportResizeObserver?.disconnect();
|
|
302
|
+
this.viewportResizeObserver = void 0;
|
|
303
|
+
}
|
|
304
|
+
updateViewportSize(width, height) {
|
|
305
|
+
const flowCore = this.runtime.flowCore.value;
|
|
306
|
+
if (!flowCore) {
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
309
|
+
const viewport = flowCore.getState().metadata.viewport;
|
|
310
|
+
if (viewport.width !== width || viewport.height !== height) {
|
|
311
|
+
void flowCore.applyUpdate({ metadataUpdate: { viewport: { ...viewport, width, height } } }, "updateViewportSize");
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
FlowUiDiagram.tagName = "flow-ui-diagram";
|
|
316
|
+
FlowUiDiagram.styles = styles;
|
|
317
|
+
// The node and edge wrappers, and the elements of the default node, group and edge templates
|
|
318
|
+
// (`src/diagram/runtime/default-*-templates.ts`). The base node registers the ports and the adornments it renders.
|
|
319
|
+
FlowUiDiagram.dependencies = [
|
|
320
|
+
FlowUiDiagramBaseEdge,
|
|
321
|
+
FlowUiDiagramBaseNode,
|
|
322
|
+
FlowUiDiagramEdge,
|
|
323
|
+
FlowUiDiagramEdgeLabel,
|
|
324
|
+
FlowUiDiagramNode,
|
|
325
|
+
FlowUiDiagramResizeAdornment
|
|
326
|
+
];
|
|
327
|
+
__decorateClass([
|
|
328
|
+
property({ attribute: false })
|
|
329
|
+
], FlowUiDiagram.prototype, "model", 2);
|
|
330
|
+
__decorateClass([
|
|
331
|
+
property({ attribute: false })
|
|
332
|
+
], FlowUiDiagram.prototype, "config", 2);
|
|
333
|
+
__decorateClass([
|
|
334
|
+
property({ attribute: false })
|
|
335
|
+
], FlowUiDiagram.prototype, "middlewares", 2);
|
|
336
|
+
__decorateClass([
|
|
337
|
+
property({ attribute: false })
|
|
338
|
+
], FlowUiDiagram.prototype, "nodeTemplateMap", 2);
|
|
339
|
+
__decorateClass([
|
|
340
|
+
property({ attribute: false })
|
|
341
|
+
], FlowUiDiagram.prototype, "edgeTemplateMap", 2);
|
|
342
|
+
__decorateClass([
|
|
343
|
+
property({ converter: customBooleanConverter })
|
|
344
|
+
], FlowUiDiagram.prototype, "tabbable", 2);
|
|
345
|
+
__decorateClass([
|
|
346
|
+
property({ attribute: "selection-mode", reflect: true })
|
|
347
|
+
], FlowUiDiagram.prototype, "selectionMode", 2);
|
|
348
|
+
__decorateClass([
|
|
349
|
+
query(".diagram__canvas")
|
|
350
|
+
], FlowUiDiagram.prototype, "canvas", 2);
|
|
351
|
+
__decorateClass([
|
|
352
|
+
query(".diagram__box-selection")
|
|
353
|
+
], FlowUiDiagram.prototype, "boxSelectionEl", 2);
|
|
354
|
+
|
|
355
|
+
export { FlowUiDiagram as default };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
import componentStyles from '../../styles/component.styles.mjs';
|
|
3
|
+
import tokens from './diagram-tokens.styles.mjs';
|
|
4
|
+
|
|
5
|
+
const styles = css`
|
|
6
|
+
${componentStyles}
|
|
7
|
+
${tokens}
|
|
8
|
+
|
|
9
|
+
:host {
|
|
10
|
+
display: block;
|
|
11
|
+
position: relative;
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 100%;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
background-color: var(--flow-ui-diagram-background-color);
|
|
16
|
+
color: var(--flow-ui-diagram-text-color);
|
|
17
|
+
font-family: var(--flow-ui-font-sans);
|
|
18
|
+
font-size: var(--flow-ui-font-size-small);
|
|
19
|
+
touch-action: none;
|
|
20
|
+
/* Prevent the iOS magnifier and context menu on the long press that starts a box selection */
|
|
21
|
+
-webkit-touch-callout: none;
|
|
22
|
+
-webkit-user-select: none;
|
|
23
|
+
user-select: none;
|
|
24
|
+
/* Own compositing layer, so pans and zooms don't repaint the page */
|
|
25
|
+
transform: translateZ(0);
|
|
26
|
+
-webkit-font-smoothing: antialiased;
|
|
27
|
+
outline: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:host(.pannable) {
|
|
31
|
+
cursor: grab;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:host(.pannable.panning) {
|
|
35
|
+
cursor: grabbing;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* Held at the host for a whole draw or relink: the pressed port or relink handle can go away mid-gesture */
|
|
39
|
+
:host(.linking),
|
|
40
|
+
:host(.relinking) {
|
|
41
|
+
cursor: grabbing;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.diagram__background {
|
|
45
|
+
position: absolute;
|
|
46
|
+
inset: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.diagram__overlay {
|
|
50
|
+
position: absolute;
|
|
51
|
+
inset: 0;
|
|
52
|
+
pointer-events: none;
|
|
53
|
+
cursor: default;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
::slotted([slot='overlay']) {
|
|
57
|
+
pointer-events: auto;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.diagram__canvas {
|
|
61
|
+
position: absolute;
|
|
62
|
+
top: 0;
|
|
63
|
+
left: 0;
|
|
64
|
+
width: 100%;
|
|
65
|
+
height: 100%;
|
|
66
|
+
overflow: visible;
|
|
67
|
+
transform-origin: 0 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.diagram__canvas--hidden {
|
|
71
|
+
visibility: hidden;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* Positioned in viewport coordinates (from the diagram's top-left corner), above the content and overlays */
|
|
75
|
+
.diagram__box-selection {
|
|
76
|
+
position: absolute;
|
|
77
|
+
box-sizing: border-box;
|
|
78
|
+
pointer-events: none;
|
|
79
|
+
background-color: var(--flow-ui-diagram-box-selection-background);
|
|
80
|
+
border: var(--flow-ui-diagram-box-selection-border-size) solid var(--flow-ui-diagram-box-selection-border-color);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.diagram__box-selection[hidden] {
|
|
84
|
+
display: none;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* The light-DOM content layer the diagram renders nodes and edges into */
|
|
88
|
+
::slotted([slot='content']) {
|
|
89
|
+
position: absolute;
|
|
90
|
+
inset: 0;
|
|
91
|
+
pointer-events: none;
|
|
92
|
+
}
|
|
93
|
+
`;
|
|
94
|
+
|
|
95
|
+
export { styles as default };
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { html, nothing, svg } from 'lit';
|
|
2
|
+
import { property, query } from 'lit/decorators.js';
|
|
3
|
+
import { ContextConsumer } from '../../diagram/runtime/context.mjs';
|
|
4
|
+
import { diagramRuntimeContext } from '../../diagram/runtime/contexts.mjs';
|
|
5
|
+
import { DiagramObserver } from '../../diagram/runtime/observable.mjs';
|
|
6
|
+
import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
|
|
7
|
+
import { HasSlotController } from '../../internal/slot.mjs';
|
|
8
|
+
import styles from './diagram-background.styles.mjs';
|
|
9
|
+
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
13
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
14
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
15
|
+
if (decorator = decorators[i])
|
|
16
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
17
|
+
if (kind && result)
|
|
18
|
+
__defProp(target, key, result);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
const PATTERN_ID = "flow-ui-diagram-background-pattern";
|
|
22
|
+
const DEFAULT_DOT_SPACING = 30;
|
|
23
|
+
const DEFAULT_CELL_SIZE = { width: 10, height: 10 };
|
|
24
|
+
const DEFAULT_MAJOR_LINES_FREQUENCY = { x: 5, y: 5 };
|
|
25
|
+
const DOTS_MIN_SCALE = 0.3;
|
|
26
|
+
class FlowUiDiagramBackground extends FlowRdfElement {
|
|
27
|
+
constructor() {
|
|
28
|
+
super();
|
|
29
|
+
this.type = "dots";
|
|
30
|
+
this.hasSlotController = new HasSlotController(this, "[default]");
|
|
31
|
+
this.configObserver = new DiagramObserver(this);
|
|
32
|
+
new ContextConsumer(this, {
|
|
33
|
+
context: diagramRuntimeContext,
|
|
34
|
+
callback: (runtime) => {
|
|
35
|
+
this.runtime = runtime;
|
|
36
|
+
this.configObserver.setSource(runtime.config);
|
|
37
|
+
this.subscribeViewport();
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
connectedCallback() {
|
|
42
|
+
super.connectedCallback();
|
|
43
|
+
if (!this.hasAttribute("slot") && this.parentElement?.localName === "flow-ui-diagram") {
|
|
44
|
+
this.setAttribute("slot", "background");
|
|
45
|
+
}
|
|
46
|
+
this.subscribeViewport();
|
|
47
|
+
}
|
|
48
|
+
disconnectedCallback() {
|
|
49
|
+
super.disconnectedCallback();
|
|
50
|
+
this.unsubscribeViewport?.();
|
|
51
|
+
this.unsubscribeViewport = void 0;
|
|
52
|
+
}
|
|
53
|
+
updated(_changed) {
|
|
54
|
+
this.applyViewport();
|
|
55
|
+
}
|
|
56
|
+
render() {
|
|
57
|
+
const hasCustom = this.hasSlotController.test("[default]");
|
|
58
|
+
return html`
|
|
59
|
+
<div part="custom" class="custom" ?hidden=${!hasCustom}><slot></slot></div>
|
|
60
|
+
${hasCustom ? nothing : this.type === "grid" ? this.renderGrid() : this.renderDots()}
|
|
61
|
+
`;
|
|
62
|
+
}
|
|
63
|
+
renderDots() {
|
|
64
|
+
return html`
|
|
65
|
+
<svg part="pattern" class="pattern pattern--dots" aria-hidden="true">
|
|
66
|
+
<pattern id=${PATTERN_ID} x="0" y="0" patternUnits="userSpaceOnUse">
|
|
67
|
+
<circle r="1" cx="1" cy="1"></circle>
|
|
68
|
+
</pattern>
|
|
69
|
+
<rect fill="url(#${PATTERN_ID})" x="0" y="0" width="100%" height="100%"></rect>
|
|
70
|
+
</svg>
|
|
71
|
+
`;
|
|
72
|
+
}
|
|
73
|
+
renderGrid() {
|
|
74
|
+
const { width, height } = this.gridPatternSize;
|
|
75
|
+
return html`
|
|
76
|
+
<svg part="pattern" class="pattern pattern--grid" aria-hidden="true">
|
|
77
|
+
<pattern id=${PATTERN_ID} x="0" y="0" width=${width} height=${height} patternUnits="userSpaceOnUse">
|
|
78
|
+
${this.gridLines().map(
|
|
79
|
+
(line) => svg`<line class=${line.major ? "major" : "minor"} x1=${line.x1} y1=${line.y1} x2=${line.x2} y2=${line.y2}></line>`
|
|
80
|
+
)}
|
|
81
|
+
</pattern>
|
|
82
|
+
<rect fill="url(#${PATTERN_ID})" x="0" y="0" width="100%" height="100%"></rect>
|
|
83
|
+
</svg>
|
|
84
|
+
`;
|
|
85
|
+
}
|
|
86
|
+
get dotSpacing() {
|
|
87
|
+
return this.configObserver.value?.background?.dotSpacing || DEFAULT_DOT_SPACING;
|
|
88
|
+
}
|
|
89
|
+
/** The smallest (minor) grid cell. */
|
|
90
|
+
get cellSize() {
|
|
91
|
+
return this.configObserver.value?.background?.cellSize ?? DEFAULT_CELL_SIZE;
|
|
92
|
+
}
|
|
93
|
+
/** How often major lines appear, in minor cells. */
|
|
94
|
+
get majorLinesFrequency() {
|
|
95
|
+
return this.configObserver.value?.background?.majorLinesFrequency ?? DEFAULT_MAJOR_LINES_FREQUENCY;
|
|
96
|
+
}
|
|
97
|
+
/** The grid pattern tile: one major cell. */
|
|
98
|
+
get gridPatternSize() {
|
|
99
|
+
const cell = this.cellSize;
|
|
100
|
+
const frequency = this.majorLinesFrequency;
|
|
101
|
+
return { width: cell.width * frequency.x, height: cell.height * frequency.y };
|
|
102
|
+
}
|
|
103
|
+
gridLines() {
|
|
104
|
+
const minor = this.cellSize;
|
|
105
|
+
const major = this.gridPatternSize;
|
|
106
|
+
const lines = [];
|
|
107
|
+
if (minor.width <= 0 || minor.height <= 0) {
|
|
108
|
+
return lines;
|
|
109
|
+
}
|
|
110
|
+
for (let x = 0; x <= major.width; x += minor.width) {
|
|
111
|
+
lines.push({ x1: x, y1: 0, x2: x, y2: major.height, major: x % major.width === 0 });
|
|
112
|
+
}
|
|
113
|
+
for (let y = 0; y <= major.height; y += minor.height) {
|
|
114
|
+
lines.push({ x1: 0, y1: y, x2: major.width, y2: y, major: y % major.height === 0 });
|
|
115
|
+
}
|
|
116
|
+
return lines;
|
|
117
|
+
}
|
|
118
|
+
subscribeViewport() {
|
|
119
|
+
if (!this.runtime || this.unsubscribeViewport || !this.isConnected) {
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
this.unsubscribeViewport = this.runtime.renderer.viewport.subscribe((viewport) => this.applyViewport(viewport));
|
|
123
|
+
this.applyViewport();
|
|
124
|
+
}
|
|
125
|
+
applyViewport(viewport = this.runtime?.renderer.viewport.value ?? { x: 0, y: 0, scale: 1 }) {
|
|
126
|
+
const { x, y } = viewport;
|
|
127
|
+
const scale = viewport.scale || 1;
|
|
128
|
+
this.style.setProperty("--flow-ui-diagram-viewport-x", `${x}px`);
|
|
129
|
+
this.style.setProperty("--flow-ui-diagram-viewport-y", `${y}px`);
|
|
130
|
+
this.style.setProperty("--flow-ui-diagram-viewport-scale", `${scale}`);
|
|
131
|
+
const pattern = this.pattern;
|
|
132
|
+
if (!pattern) {
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
if (this.type === "grid") {
|
|
136
|
+
const { width, height } = this.gridPatternSize;
|
|
137
|
+
const dx = width ? x % (width * scale) : 0;
|
|
138
|
+
const dy = height ? y % (height * scale) : 0;
|
|
139
|
+
pattern.setAttribute("patternTransform", `translate(${dx}, ${dy}) scale(${scale})`);
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
const spacing = this.dotSpacing;
|
|
143
|
+
const size = spacing * scale;
|
|
144
|
+
pattern.setAttribute("width", `${size || spacing}`);
|
|
145
|
+
pattern.setAttribute("height", `${size || spacing}`);
|
|
146
|
+
pattern.setAttribute("patternTransform", `translate(${size ? x % size : 0}, ${size ? y % size : 0})`);
|
|
147
|
+
pattern.setAttribute("fill-opacity", `${Math.max(0, Math.min(1, scale - 0.2))}`);
|
|
148
|
+
this.patternSvg?.classList.toggle("pattern--faded", scale <= DOTS_MIN_SCALE);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
FlowUiDiagramBackground.tagName = "flow-ui-diagram-background";
|
|
152
|
+
FlowUiDiagramBackground.styles = styles;
|
|
153
|
+
__decorateClass([
|
|
154
|
+
property({ reflect: true })
|
|
155
|
+
], FlowUiDiagramBackground.prototype, "type", 2);
|
|
156
|
+
__decorateClass([
|
|
157
|
+
query("pattern")
|
|
158
|
+
], FlowUiDiagramBackground.prototype, "pattern", 2);
|
|
159
|
+
__decorateClass([
|
|
160
|
+
query(".pattern")
|
|
161
|
+
], FlowUiDiagramBackground.prototype, "patternSvg", 2);
|
|
162
|
+
|
|
163
|
+
export { FlowUiDiagramBackground as default };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
import componentStyles from '../../styles/component.styles.mjs';
|
|
3
|
+
|
|
4
|
+
const styles = css`
|
|
5
|
+
${componentStyles}
|
|
6
|
+
|
|
7
|
+
:host {
|
|
8
|
+
display: block;
|
|
9
|
+
position: absolute;
|
|
10
|
+
inset: 0;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
pointer-events: none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.custom {
|
|
16
|
+
position: absolute;
|
|
17
|
+
inset: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.custom[hidden] {
|
|
21
|
+
display: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.pattern {
|
|
25
|
+
position: absolute;
|
|
26
|
+
top: 0;
|
|
27
|
+
left: 0;
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: 100%;
|
|
30
|
+
display: block;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.pattern--dots circle {
|
|
34
|
+
fill: var(--flow-ui-diagram-background-dot-color);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.pattern--faded circle {
|
|
38
|
+
fill: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.pattern--grid line {
|
|
42
|
+
vector-effect: non-scaling-stroke;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.pattern--grid line.minor {
|
|
46
|
+
stroke: var(--flow-ui-diagram-background-line-minor-color);
|
|
47
|
+
stroke-width: var(--flow-ui-diagram-background-line-minor-width);
|
|
48
|
+
opacity: var(--flow-ui-diagram-background-line-minor-opacity);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.pattern--grid line.major {
|
|
52
|
+
stroke: var(--flow-ui-diagram-background-line-major-color);
|
|
53
|
+
stroke-width: var(--flow-ui-diagram-background-line-major-width);
|
|
54
|
+
opacity: var(--flow-ui-diagram-background-line-major-opacity);
|
|
55
|
+
}
|
|
56
|
+
`;
|
|
57
|
+
|
|
58
|
+
export { styles as default };
|