@emuanalytics/flow-rdf-ui 4.2.1 → 4.3.1
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 +13 -10
- package/dist/components/animation/animation.component.mjs +3 -2
- package/dist/components/autocomplete/autocomplete.component.mjs +21 -20
- package/dist/components/avatar/avatar.component.mjs +10 -12
- 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 +15 -14
- package/dist/components/busy-overlay/busy-overlay.component.mjs +3 -0
- package/dist/components/button/button.component.mjs +7 -3
- package/dist/components/button/button.styles.mjs +5 -5
- package/dist/components/button-group/button-group.component.mjs +1 -0
- package/dist/components/calendar/calendar.component.mjs +29 -6
- package/dist/components/card/card.component.mjs +5 -4
- package/dist/components/carousel/carousel.component.mjs +45 -42
- package/dist/components/carousel-item/carousel-item.component.mjs +2 -0
- package/dist/components/chart/chart.component.mjs +5 -4
- package/dist/components/chart/chartjs-plugins/luxon.adapter.mjs +78 -0
- package/dist/components/chart/chartjs-plugins/plugin.flow-ui-colors.mjs +1 -1
- package/dist/components/chart/chartjs-support.mjs +2 -0
- package/dist/components/checkbox/checkbox.component.mjs +21 -18
- package/dist/components/checkbox-group/checkbox-group.component.mjs +3 -0
- package/dist/components/color-mapper/color-mapper.component.mjs +27 -6
- package/dist/components/color-picker/color-picker.component.mjs +79 -71
- package/dist/components/color-picker/color-picker.styles.mjs +4 -2
- package/dist/components/color-stop/color-stop.component.mjs +19 -2
- package/dist/components/date-time-picker/date-time-picker.component.mjs +35 -29
- 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 +68 -0
- package/dist/components/dialog/dialog.component.mjs +5 -1
- package/dist/components/divider/divider.component.mjs +1 -0
- package/dist/components/drawer/drawer.component.mjs +22 -19
- 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 +10 -2
- package/dist/components/icon/icon.component.mjs +1 -0
- package/dist/components/icon/library.mjs +7 -4
- 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 +21 -11
- package/dist/components/list/list.component.mjs +1 -0
- package/dist/components/list-item/list-item.component.mjs +34 -17
- 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 +5 -6
- 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 +14 -8
- package/dist/components/popup/popup.component.mjs +12 -11
- package/dist/components/progress-bar/progress-bar.component.mjs +3 -2
- package/dist/components/progress-ring/progress-ring.component.mjs +1 -0
- package/dist/components/query-builder/converters/javascript-filter-converter.mjs +0 -4
- package/dist/components/query-builder/converters/map-layer-filter-converter.mjs +0 -4
- package/dist/components/query-builder/query-builder.component.mjs +42 -15
- package/dist/components/radio/radio.component.mjs +10 -7
- package/dist/components/radio-group/radio-group.component.mjs +4 -1
- package/dist/components/range/range.component.mjs +4 -0
- package/dist/components/resize-observer/resize-observer.component.mjs +2 -1
- package/dist/components/scroll-view/scroll-view.component.mjs +1 -0
- package/dist/components/scroll-view/scroll-view.styles.mjs +20 -7
- package/dist/components/select/select.component.mjs +19 -21
- 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/split-view-toggle-button/split-view-toggle-button.styles.mjs +3 -3
- package/dist/components/stepper/stepper.component.mjs +3 -2
- package/dist/components/stepper-panel/stepper-panel.component.mjs +4 -3
- package/dist/components/switch/switch.component.mjs +9 -8
- package/dist/components/tab/tab.component.mjs +21 -17
- package/dist/components/tab-group/tab-group.component.mjs +218 -44
- 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 +13 -12
- package/dist/components/textarea/textarea.component.mjs +11 -4
- 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 +5 -2
- 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 +7890 -1741
- 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 +13296 -3667
- package/dist/index.d.ts +13296 -3667
- 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/internal/form.mjs +1 -1
- package/dist/internal/on-off-converter.mjs +21 -0
- package/dist/package.json.mjs +1 -1
- package/dist/utilities/register-components.mjs +77 -142
- package/dist/vscode.html-custom-data.json +426 -156
- package/package.json +35 -40
- package/themes/dark.css +7 -5
- package/themes/dark.styles.js +7 -5
- package/themes/light.css +7 -5
- package/themes/light.styles.js +7 -5
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { DiagramEventName } from '../runtime/touch-events-state.mjs';
|
|
2
|
+
import { DiagramInputController } from './input-controller.mjs';
|
|
3
|
+
|
|
4
|
+
const ZOOM_TRIGGER_DELTA = 40;
|
|
5
|
+
class MobileZoomingController extends DiagramInputController {
|
|
6
|
+
constructor(host, getRuntime) {
|
|
7
|
+
super(host, getRuntime);
|
|
8
|
+
this.touchCache = [];
|
|
9
|
+
/** Whether the pinch zoom is active. It stays active until the fingers lift. */
|
|
10
|
+
this.isZoomingActive = false;
|
|
11
|
+
this.listen("touchstart", (event) => this.onTouchStart(event), { passive: false });
|
|
12
|
+
this.listen("touchend", (event) => this.onTouchEnd(event), { passive: false });
|
|
13
|
+
this.listen("touchmove", (event) => this.onTouchMove(event), { passive: false });
|
|
14
|
+
this.listen("touchcancel", (event) => this.onTouchEnd(event), { passive: false });
|
|
15
|
+
}
|
|
16
|
+
destroy() {
|
|
17
|
+
const touchState = this.getRuntime()?.touchEventsState;
|
|
18
|
+
if (this.isZoomingActive && touchState?.zoomingHandled()) {
|
|
19
|
+
touchState.clearCurrentEvent();
|
|
20
|
+
}
|
|
21
|
+
this.reset();
|
|
22
|
+
}
|
|
23
|
+
onTouchStart(event) {
|
|
24
|
+
if (event.touches.length === event.changedTouches.length) {
|
|
25
|
+
this.touchCache = [];
|
|
26
|
+
}
|
|
27
|
+
for (const touch of Array.from(event.changedTouches)) {
|
|
28
|
+
this.touchCache.push(touch);
|
|
29
|
+
}
|
|
30
|
+
if (this.touchCache.length === 2) {
|
|
31
|
+
this.lastDistance = this.computeDistance();
|
|
32
|
+
this.initialDistance = this.lastDistance;
|
|
33
|
+
this.isZoomingActive = false;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
onTouchEnd(event) {
|
|
37
|
+
for (const touch of Array.from(event.changedTouches)) {
|
|
38
|
+
this.removeTouchFromCache(touch);
|
|
39
|
+
}
|
|
40
|
+
if (this.touchCache.length < 2) {
|
|
41
|
+
const touchState = this.getRuntime()?.touchEventsState;
|
|
42
|
+
if (this.isZoomingActive && touchState?.zoomingHandled()) {
|
|
43
|
+
touchState.clearCurrentEvent();
|
|
44
|
+
}
|
|
45
|
+
this.reset();
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
onTouchMove(event) {
|
|
49
|
+
for (const touch of Array.from(event.changedTouches)) {
|
|
50
|
+
this.updateTouchInCache(touch);
|
|
51
|
+
}
|
|
52
|
+
if (this.touchCache.length !== 2 || this.lastDistance === void 0 || this.initialDistance === void 0) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
const active = this.runtimeWithCore;
|
|
56
|
+
if (!active) {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
const { runtime, flowCore } = active;
|
|
60
|
+
const currentDistance = this.computeDistance();
|
|
61
|
+
const delta = Math.abs(currentDistance - this.initialDistance);
|
|
62
|
+
if (!this.isZoomingActive) {
|
|
63
|
+
if (delta > ZOOM_TRIGGER_DELTA) {
|
|
64
|
+
this.isZoomingActive = true;
|
|
65
|
+
runtime.touchEventsState.setCurrentEvent(DiagramEventName.Zooming);
|
|
66
|
+
} else {
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
const centerX = (this.touchCache[0].clientX + this.touchCache[1].clientX) / 2;
|
|
71
|
+
const centerY = (this.touchCache[0].clientY + this.touchCache[1].clientY) / 2;
|
|
72
|
+
const distanceRatio = currentDistance / this.lastDistance;
|
|
73
|
+
const step = flowCore.config.zoom.step;
|
|
74
|
+
const zoomFactor = Math.min(Math.max(1 - step, distanceRatio), 1 + step);
|
|
75
|
+
this.lastDistance = currentDistance;
|
|
76
|
+
const router = runtime.inputEventsRouter;
|
|
77
|
+
router.emit({
|
|
78
|
+
...router.getBaseEvent(event),
|
|
79
|
+
name: "zoom",
|
|
80
|
+
centerPoint: { x: centerX, y: centerY },
|
|
81
|
+
zoomFactor
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
reset() {
|
|
85
|
+
this.lastDistance = void 0;
|
|
86
|
+
this.initialDistance = void 0;
|
|
87
|
+
this.isZoomingActive = false;
|
|
88
|
+
this.touchCache = [];
|
|
89
|
+
}
|
|
90
|
+
removeTouchFromCache(touch) {
|
|
91
|
+
const index = this.touchCache.findIndex((cachedTouch) => cachedTouch.identifier === touch.identifier);
|
|
92
|
+
if (index !== -1) {
|
|
93
|
+
this.touchCache.splice(index, 1);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
computeDistance() {
|
|
97
|
+
return Math.hypot(
|
|
98
|
+
this.touchCache[0].clientX - this.touchCache[1].clientX,
|
|
99
|
+
this.touchCache[0].clientY - this.touchCache[1].clientY
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
updateTouchInCache(touch) {
|
|
103
|
+
const index = this.touchCache.findIndex((cachedTouch) => cachedTouch.identifier === touch.identifier);
|
|
104
|
+
if (index !== -1) {
|
|
105
|
+
this.touchCache[index] = touch;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export { MobileZoomingController };
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { MOVE_THRESHOLD } from '../../diagram-core/input-events/handlers/pointer-move-selection/pointer-move-selection.handler.mjs';
|
|
2
|
+
import { DiagramEventName } from '../runtime/touch-events-state.mjs';
|
|
3
|
+
import { DiagramInputController } from './input-controller.mjs';
|
|
4
|
+
import { NgDiagramMath } from '../../diagram-core/math/ng-diagram-math.mjs';
|
|
5
|
+
|
|
6
|
+
const TAKEOVER_GESTURES = /* @__PURE__ */ new Set([
|
|
7
|
+
DiagramEventName.BoxSelection,
|
|
8
|
+
DiagramEventName.Panning,
|
|
9
|
+
DiagramEventName.Zooming,
|
|
10
|
+
DiagramEventName.ContextMenu
|
|
11
|
+
]);
|
|
12
|
+
class ObjectSelectionController extends DiagramInputController {
|
|
13
|
+
constructor(host, getRuntime, targetType, getTarget = () => void 0) {
|
|
14
|
+
super(host, getRuntime);
|
|
15
|
+
this.pendingToggleOff = null;
|
|
16
|
+
this.onPointerUp = (event) => {
|
|
17
|
+
document.removeEventListener("pointerup", this.onPointerUp);
|
|
18
|
+
const pending = this.pendingToggleOff;
|
|
19
|
+
this.clearPendingToggleOff();
|
|
20
|
+
const active = this.runtimeWithCore;
|
|
21
|
+
if (!active) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
if (pending && this.isTapRelease(pending, event, active.flowCore)) {
|
|
25
|
+
void active.flowCore.commandHandler.emit("deselect", { nodeIds: pending.nodeIds, edgeIds: pending.edgeIds });
|
|
26
|
+
}
|
|
27
|
+
const router = active.runtime.inputEventsRouter;
|
|
28
|
+
router.emit({
|
|
29
|
+
...router.getBaseEvent(event),
|
|
30
|
+
name: "select",
|
|
31
|
+
phase: "end",
|
|
32
|
+
target: this.getTarget(),
|
|
33
|
+
targetType: this.targetType,
|
|
34
|
+
lastInputPoint: { x: event.clientX, y: event.clientY }
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
this.onPendingPointerMove = (event) => {
|
|
38
|
+
const pending = this.pendingToggleOff;
|
|
39
|
+
if (!pending || event.pointerId !== pending.pointerId) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
const distance = NgDiagramMath.distanceBetweenPoints(pending.startPoint, { x: event.clientX, y: event.clientY });
|
|
43
|
+
if (distance >= MOVE_THRESHOLD) {
|
|
44
|
+
pending.isTap = false;
|
|
45
|
+
document.removeEventListener("pointermove", this.onPendingPointerMove);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
this.onPendingPointerCancel = (event) => {
|
|
49
|
+
if (this.pendingToggleOff && event.pointerId === this.pendingToggleOff.pointerId) {
|
|
50
|
+
this.pendingToggleOff.isTap = false;
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
this.targetType = targetType;
|
|
54
|
+
this.getTarget = getTarget;
|
|
55
|
+
this.listen("pointerdown", (event) => this.onPointerDown(event));
|
|
56
|
+
}
|
|
57
|
+
destroy() {
|
|
58
|
+
document.removeEventListener("pointerup", this.onPointerUp);
|
|
59
|
+
this.clearPendingToggleOff();
|
|
60
|
+
}
|
|
61
|
+
onPointerDown(event) {
|
|
62
|
+
const active = this.runtimeWithCore;
|
|
63
|
+
if (!active || !this.shouldHandle(event)) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
event.selectHandled = true;
|
|
67
|
+
this.clearPendingToggleOff();
|
|
68
|
+
if (active.runtime.selectionMode === "toggle") {
|
|
69
|
+
this.toggleOnPress(event, active.flowCore);
|
|
70
|
+
} else {
|
|
71
|
+
const router = active.runtime.inputEventsRouter;
|
|
72
|
+
router.emit({
|
|
73
|
+
...router.getBaseEvent(event),
|
|
74
|
+
name: "select",
|
|
75
|
+
phase: "start",
|
|
76
|
+
target: this.getTarget(),
|
|
77
|
+
targetType: this.targetType,
|
|
78
|
+
lastInputPoint: { x: event.clientX, y: event.clientY }
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
document.addEventListener("pointerup", this.onPointerUp);
|
|
82
|
+
}
|
|
83
|
+
/** Toggle mode: adds an unselected target, clears on the background, defers a selected target to the release. */
|
|
84
|
+
toggleOnPress(event, flowCore) {
|
|
85
|
+
const target = this.targetType === "diagram" ? void 0 : this.getTarget();
|
|
86
|
+
if (!target) {
|
|
87
|
+
void flowCore.commandHandler.emit("deselectAll");
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
const ids = this.targetType === "node" ? { nodeIds: [target.id] } : { edgeIds: [target.id] };
|
|
91
|
+
const current = this.targetType === "node" ? flowCore.modelLookup.nodesMap.get(target.id) : flowCore.modelLookup.edgesMap.get(target.id);
|
|
92
|
+
if (!(current ?? target).selected) {
|
|
93
|
+
void flowCore.commandHandler.emit("select", { ...ids, multiSelection: true });
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
if (event.rotateHandled || event.linkingHandled) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
const pending = {
|
|
100
|
+
pointerId: event.pointerId,
|
|
101
|
+
startPoint: { x: event.clientX, y: event.clientY },
|
|
102
|
+
...ids,
|
|
103
|
+
isTap: true,
|
|
104
|
+
unsubscribe: () => void 0
|
|
105
|
+
};
|
|
106
|
+
pending.unsubscribe = this.getRuntime().touchEventsState.currentEvent.subscribe((gesture) => {
|
|
107
|
+
if (TAKEOVER_GESTURES.has(gesture)) {
|
|
108
|
+
pending.isTap = false;
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
this.pendingToggleOff = pending;
|
|
112
|
+
document.addEventListener("pointermove", this.onPendingPointerMove);
|
|
113
|
+
document.addEventListener("pointercancel", this.onPendingPointerCancel);
|
|
114
|
+
}
|
|
115
|
+
isTapRelease(pending, event, flowCore) {
|
|
116
|
+
if (!pending.isTap || event.pointerId !== pending.pointerId) {
|
|
117
|
+
return false;
|
|
118
|
+
}
|
|
119
|
+
const distance = NgDiagramMath.distanceBetweenPoints(pending.startPoint, { x: event.clientX, y: event.clientY });
|
|
120
|
+
if (distance >= MOVE_THRESHOLD || flowCore.actionStateManager.dragging?.movementStarted) {
|
|
121
|
+
return false;
|
|
122
|
+
}
|
|
123
|
+
return !TAKEOVER_GESTURES.has(this.getRuntime()?.touchEventsState.currentEvent.value ?? null);
|
|
124
|
+
}
|
|
125
|
+
clearPendingToggleOff() {
|
|
126
|
+
if (!this.pendingToggleOff) {
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
this.pendingToggleOff.unsubscribe();
|
|
130
|
+
this.pendingToggleOff = null;
|
|
131
|
+
document.removeEventListener("pointermove", this.onPendingPointerMove);
|
|
132
|
+
document.removeEventListener("pointercancel", this.onPendingPointerCancel);
|
|
133
|
+
}
|
|
134
|
+
shouldHandle(event) {
|
|
135
|
+
const active = this.runtimeWithCore;
|
|
136
|
+
if (!active.runtime.inputEventsRouter.eventGuards.withPrimaryButton(event)) {
|
|
137
|
+
return false;
|
|
138
|
+
}
|
|
139
|
+
if (event.boxSelectionHandled || event.selectHandled) {
|
|
140
|
+
return false;
|
|
141
|
+
}
|
|
142
|
+
if (event.relinkHandled) {
|
|
143
|
+
return false;
|
|
144
|
+
}
|
|
145
|
+
if (event.linkingHandled && !active.flowCore.config.linking.selectNodeOnPortPress) {
|
|
146
|
+
return false;
|
|
147
|
+
}
|
|
148
|
+
return true;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export { ObjectSelectionController };
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { mayCarryPaletteItem, readPaletteDropData, paletteDragRegistry, deepElementFromPoint, closestComposed } from '../runtime/palette-drag.mjs';
|
|
2
|
+
import { DiagramInputController } from './input-controller.mjs';
|
|
3
|
+
|
|
4
|
+
const PALETTE_DROP_JSON_PARSE_ERROR = (dataString, error) => `[flow-ui-diagram] Failed to parse palette drop data as JSON.
|
|
5
|
+
|
|
6
|
+
Received data: "${dataString}"
|
|
7
|
+
Error: ${error instanceof Error ? error.message : String(error)}
|
|
8
|
+
|
|
9
|
+
This typically happens with a custom drag source. \`flow-ui-diagram-palette-item\` serializes its item correctly.
|
|
10
|
+
A custom drag source must put the JSON of a palette item into the DataTransfer, for example
|
|
11
|
+
\`event.dataTransfer.setData('text/plain', JSON.stringify({ type: 'task', data: { label: 'Task' } }))\`.
|
|
12
|
+
|
|
13
|
+
The drop was ignored.`;
|
|
14
|
+
const PALETTE_DROP_NOT_NODE_WARNING = () => `[flow-ui-diagram] Ignored a drop that isn't a palette item: its data isn't the JSON of a palette item object.
|
|
15
|
+
|
|
16
|
+
Drag a \`flow-ui-diagram-palette-item\`, or put the JSON of a palette item into the DataTransfer.`;
|
|
17
|
+
const paletteDropHosts = /* @__PURE__ */ new WeakSet();
|
|
18
|
+
class PaletteDropController extends DiagramInputController {
|
|
19
|
+
constructor(host, getRuntime) {
|
|
20
|
+
super(host, getRuntime);
|
|
21
|
+
this.onDragOver = (event) => {
|
|
22
|
+
if (!this.runtimeWithCore || !mayCarryPaletteItem(event.dataTransfer)) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
event.preventDefault();
|
|
26
|
+
if (event.dataTransfer) {
|
|
27
|
+
event.dataTransfer.dropEffect = "copy";
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
this.onDrop = (event) => {
|
|
31
|
+
if (event.paletteDropHandled || !this.runtimeWithCore || !mayCarryPaletteItem(event.dataTransfer)) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
event.preventDefault();
|
|
35
|
+
event.paletteDropHandled = true;
|
|
36
|
+
const dataString = readPaletteDropData(event.dataTransfer);
|
|
37
|
+
if (!dataString) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
let data;
|
|
41
|
+
try {
|
|
42
|
+
data = JSON.parse(dataString);
|
|
43
|
+
} catch (error) {
|
|
44
|
+
if (paletteDragRegistry.current?.kind === "html") {
|
|
45
|
+
console.error(PALETTE_DROP_JSON_PARSE_ERROR(dataString, error));
|
|
46
|
+
} else {
|
|
47
|
+
console.warn(PALETTE_DROP_NOT_NODE_WARNING());
|
|
48
|
+
}
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
if (!isPlainObject(data)) {
|
|
52
|
+
console.warn(PALETTE_DROP_NOT_NODE_WARNING());
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
this.emitDrop(event, data, event.clientX, event.clientY);
|
|
56
|
+
};
|
|
57
|
+
this.onTouchEnd = (event) => {
|
|
58
|
+
const drag = paletteDragRegistry.current;
|
|
59
|
+
const touch = event.changedTouches[0];
|
|
60
|
+
if (!drag || drag.kind !== "touch" || !touch || !this.runtimeWithCore) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
const target = deepElementFromPoint(touch.clientX, touch.clientY);
|
|
64
|
+
if (!target || closestComposed(target, (element) => paletteDropHosts.has(element)) !== this.host) {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
this.emitDrop(event, JSON.parse(JSON.stringify(drag.item)), touch.clientX, touch.clientY);
|
|
68
|
+
if (event.cancelable) {
|
|
69
|
+
event.preventDefault();
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
paletteDropHosts.add(host);
|
|
73
|
+
this.listen("dragover", this.onDragOver);
|
|
74
|
+
this.listen("drop", this.onDrop);
|
|
75
|
+
}
|
|
76
|
+
hostConnected() {
|
|
77
|
+
document.addEventListener("touchend", this.onTouchEnd, { passive: false });
|
|
78
|
+
}
|
|
79
|
+
hostDisconnected() {
|
|
80
|
+
document.removeEventListener("touchend", this.onTouchEnd);
|
|
81
|
+
}
|
|
82
|
+
emitDrop(event, data, x, y) {
|
|
83
|
+
const { runtime } = this.runtimeWithCore;
|
|
84
|
+
const router = runtime.inputEventsRouter;
|
|
85
|
+
router.emit({ ...router.getBaseEvent(event), name: "paletteDrop", data, lastInputPoint: { x, y } });
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
function isPlainObject(value) {
|
|
89
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export { PaletteDropController };
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { shouldDiscardEvent } from '../runtime/dom-input-events-router.mjs';
|
|
2
|
+
import { DiagramInputController } from './input-controller.mjs';
|
|
3
|
+
|
|
4
|
+
class PanningController extends DiagramInputController {
|
|
5
|
+
constructor(host, getRuntime) {
|
|
6
|
+
super(host, getRuntime);
|
|
7
|
+
this.unregisterInteractionCleanup = null;
|
|
8
|
+
this.gestureActive = false;
|
|
9
|
+
this.onPointerUp = (event) => {
|
|
10
|
+
const runtime = this.getRuntime();
|
|
11
|
+
if (!runtime || !runtime.inputEventsRouter.eventGuards.withPrimaryButton(event)) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
event.preventDefault();
|
|
15
|
+
event.stopPropagation();
|
|
16
|
+
this.finishPanning(event);
|
|
17
|
+
};
|
|
18
|
+
this.onPointerMove = (event) => {
|
|
19
|
+
if (event.zoomingHandled) {
|
|
20
|
+
this.finishPanning(event);
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
event.preventDefault();
|
|
24
|
+
event.stopPropagation();
|
|
25
|
+
const router = this.getRuntime()?.inputEventsRouter;
|
|
26
|
+
if (!router) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
router.emit({
|
|
30
|
+
...router.getBaseEvent(event),
|
|
31
|
+
name: "panning",
|
|
32
|
+
phase: "continue",
|
|
33
|
+
target: void 0,
|
|
34
|
+
targetType: "diagram",
|
|
35
|
+
lastInputPoint: { x: event.clientX, y: event.clientY }
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
this.listen("pointerdown", (event) => this.onPointerDown(event));
|
|
39
|
+
this.listen("wheel", (event) => this.onWheel(event));
|
|
40
|
+
}
|
|
41
|
+
destroy() {
|
|
42
|
+
const wasMidGesture = this.gestureActive;
|
|
43
|
+
this.removeListeners();
|
|
44
|
+
const runtime = this.getRuntime();
|
|
45
|
+
if (wasMidGesture && runtime?.isInitialized.value) {
|
|
46
|
+
runtime.flowCore.value?.actionStateManager.clearPanning();
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
onPointerDown(event) {
|
|
50
|
+
if (event.pointerType === "touch") {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
if (this.gestureActive) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
const active = this.runtimeWithCore;
|
|
57
|
+
if (!active) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
const { runtime, flowCore } = active;
|
|
61
|
+
const router = runtime.inputEventsRouter;
|
|
62
|
+
if (!router.eventGuards.withPrimaryButton(event) || !this.shouldHandle(event)) {
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
this.toggleGrabbingCursor(true);
|
|
66
|
+
event.preventDefault();
|
|
67
|
+
event.stopPropagation();
|
|
68
|
+
router.emit({
|
|
69
|
+
...router.getBaseEvent(event),
|
|
70
|
+
name: "panning",
|
|
71
|
+
phase: "start",
|
|
72
|
+
target: void 0,
|
|
73
|
+
targetType: "diagram",
|
|
74
|
+
lastInputPoint: { x: event.clientX, y: event.clientY }
|
|
75
|
+
});
|
|
76
|
+
this.gestureActive = true;
|
|
77
|
+
document.addEventListener("pointermove", this.onPointerMove);
|
|
78
|
+
document.addEventListener("pointerup", this.onPointerUp);
|
|
79
|
+
this.unregisterInteractionCleanup = flowCore.registerInteractionCleanup(() => this.removeListeners());
|
|
80
|
+
}
|
|
81
|
+
onWheel(event) {
|
|
82
|
+
const runtime = this.getRuntime();
|
|
83
|
+
if (!runtime || !this.shouldHandleWheel(event)) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
event.preventDefault();
|
|
87
|
+
event.stopPropagation();
|
|
88
|
+
let { deltaX, deltaY } = event;
|
|
89
|
+
if (event.shiftKey && deltaX === 0 && deltaY !== 0) {
|
|
90
|
+
deltaX = deltaY;
|
|
91
|
+
deltaY = 0;
|
|
92
|
+
}
|
|
93
|
+
const router = runtime.inputEventsRouter;
|
|
94
|
+
router.emit({
|
|
95
|
+
...router.getBaseEvent(event),
|
|
96
|
+
name: "wheelPanning",
|
|
97
|
+
deltaX,
|
|
98
|
+
deltaY
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
removeListeners() {
|
|
102
|
+
this.gestureActive = false;
|
|
103
|
+
this.unregisterInteractionCleanup?.();
|
|
104
|
+
this.unregisterInteractionCleanup = null;
|
|
105
|
+
document.removeEventListener("pointermove", this.onPointerMove);
|
|
106
|
+
document.removeEventListener("pointerup", this.onPointerUp);
|
|
107
|
+
this.toggleGrabbingCursor(false);
|
|
108
|
+
}
|
|
109
|
+
finishPanning(event) {
|
|
110
|
+
this.removeListeners();
|
|
111
|
+
const router = this.getRuntime()?.inputEventsRouter;
|
|
112
|
+
if (!router) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
router.emit({
|
|
116
|
+
...router.getBaseEvent(event),
|
|
117
|
+
name: "panning",
|
|
118
|
+
phase: "end",
|
|
119
|
+
target: void 0,
|
|
120
|
+
targetType: "diagram",
|
|
121
|
+
lastInputPoint: { x: event.clientX, y: event.clientY }
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
shouldHandle(event) {
|
|
125
|
+
const viewportPanningEnabled = this.getRuntime()?.config.value?.viewportPanningEnabled;
|
|
126
|
+
if (!viewportPanningEnabled || shouldDiscardEvent(event, "pan")) {
|
|
127
|
+
return false;
|
|
128
|
+
}
|
|
129
|
+
return !(event.moveSelectionHandled || event.zoomingHandled || event.linkingHandled || event.relinkHandled || event.rotateHandled || event.boxSelectionHandled);
|
|
130
|
+
}
|
|
131
|
+
shouldHandleWheel(event) {
|
|
132
|
+
const active = this.runtimeWithCore;
|
|
133
|
+
const viewportPanningEnabled = active?.runtime.config.value?.viewportPanningEnabled;
|
|
134
|
+
if (!active || !viewportPanningEnabled || event.zoomingHandled || shouldDiscardEvent(event, "pan")) {
|
|
135
|
+
return false;
|
|
136
|
+
}
|
|
137
|
+
if (active.flowCore.actionStateManager.isPanning()) {
|
|
138
|
+
return true;
|
|
139
|
+
}
|
|
140
|
+
return !active.runtime.inputEventsRouter.eventGuards.withPrimaryModifier(event) && !event.ctrlKey;
|
|
141
|
+
}
|
|
142
|
+
toggleGrabbingCursor(isGrabbing) {
|
|
143
|
+
this.host.classList.toggle("panning", isGrabbing);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export { PanningController };
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { shouldDiscardEvent } from '../runtime/dom-input-events-router.mjs';
|
|
2
|
+
import { DiagramEventName } from '../runtime/touch-events-state.mjs';
|
|
3
|
+
import { DiagramInputController } from './input-controller.mjs';
|
|
4
|
+
import { NgDiagramMath } from '../../diagram-core/math/ng-diagram-math.mjs';
|
|
5
|
+
import { FPS_60 } from '../../diagram-core/utils/constants.mjs';
|
|
6
|
+
|
|
7
|
+
class PointerMoveSelectionController extends DiagramInputController {
|
|
8
|
+
constructor(host, getRuntime, getNode) {
|
|
9
|
+
super(host, getRuntime);
|
|
10
|
+
this.edgePanningInterval = null;
|
|
11
|
+
this.cachedDiagramRect = null;
|
|
12
|
+
this.unregisterInteractionCleanup = null;
|
|
13
|
+
this.gestureActive = false;
|
|
14
|
+
// The last point this gesture produced: a takeover end must not use the triggering event's coordinates (they
|
|
15
|
+
// may belong to a different finger)
|
|
16
|
+
this.lastGesturePoint = null;
|
|
17
|
+
this.onPointerUp = (event) => {
|
|
18
|
+
const runtime = this.getRuntime();
|
|
19
|
+
if (!runtime || !runtime.inputEventsRouter.eventGuards.withPrimaryButton(event)) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
this.finishDragging(event);
|
|
23
|
+
};
|
|
24
|
+
this.onPointerMove = (event) => {
|
|
25
|
+
const active = this.runtimeWithCore;
|
|
26
|
+
if (!active) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
const { runtime, flowCore } = active;
|
|
30
|
+
const touchState = runtime.touchEventsState;
|
|
31
|
+
if (event.zoomingHandled || touchState.boxSelectionHandled() || touchState.panningHandled() || touchState.zoomingHandled() || touchState.contextMenuHandled()) {
|
|
32
|
+
this.finishDragging(event, this.lastGesturePoint);
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
const node = this.getNode();
|
|
36
|
+
if (!node) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
this.lastGesturePoint = { x: event.clientX, y: event.clientY };
|
|
40
|
+
const router = runtime.inputEventsRouter;
|
|
41
|
+
const {
|
|
42
|
+
selectionMoving: { edgePanningThreshold, edgePanningEnabled, edgePanningForce },
|
|
43
|
+
viewportPanningEnabled
|
|
44
|
+
} = flowCore.config;
|
|
45
|
+
let panningForce = null;
|
|
46
|
+
if (viewportPanningEnabled && edgePanningEnabled) {
|
|
47
|
+
panningForce = NgDiagramMath.calculateEdgePanningForce(
|
|
48
|
+
this.cachedDiagramRect || runtime.getDiagramRect(),
|
|
49
|
+
{ x: event.clientX, y: event.clientY },
|
|
50
|
+
edgePanningThreshold,
|
|
51
|
+
edgePanningForce
|
|
52
|
+
);
|
|
53
|
+
if (panningForce) {
|
|
54
|
+
this.startEdgePanning(event.clientX, event.clientY, panningForce);
|
|
55
|
+
} else {
|
|
56
|
+
this.stopEdgePanning();
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
router.emit({
|
|
60
|
+
...router.getBaseEvent(event),
|
|
61
|
+
name: "pointerMoveSelection",
|
|
62
|
+
phase: "continue",
|
|
63
|
+
target: node,
|
|
64
|
+
targetType: "node",
|
|
65
|
+
lastInputPoint: { x: event.clientX, y: event.clientY },
|
|
66
|
+
panningForce
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
this.getNode = getNode;
|
|
70
|
+
this.listen("pointerdown", (event) => this.onPointerDown(event));
|
|
71
|
+
}
|
|
72
|
+
destroy() {
|
|
73
|
+
const wasMidGesture = this.gestureActive;
|
|
74
|
+
this.removeListeners();
|
|
75
|
+
const runtime = this.getRuntime();
|
|
76
|
+
const flowCore = runtime?.flowCore.value;
|
|
77
|
+
if (wasMidGesture && runtime?.isInitialized.value && flowCore) {
|
|
78
|
+
void flowCore.cancelActiveInteraction().then((cancelled) => {
|
|
79
|
+
if (!cancelled && !flowCore.isCancellingInteraction()) {
|
|
80
|
+
flowCore.actionStateManager.clearDragging();
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
onPointerDown(event) {
|
|
86
|
+
if (this.gestureActive) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
const active = this.runtimeWithCore;
|
|
90
|
+
if (!active || !this.shouldHandle(event)) {
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
const { runtime, flowCore } = active;
|
|
94
|
+
const router = runtime.inputEventsRouter;
|
|
95
|
+
if (!router.eventGuards.withPrimaryButton(event)) {
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
const node = this.getNode();
|
|
99
|
+
if (!node) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
this.gestureActive = true;
|
|
103
|
+
this.lastGesturePoint = { x: event.clientX, y: event.clientY };
|
|
104
|
+
runtime.touchEventsState.setCurrentEvent(DiagramEventName.Move);
|
|
105
|
+
this.cachedDiagramRect = runtime.getDiagramRect();
|
|
106
|
+
event.moveSelectionHandled = true;
|
|
107
|
+
router.emit({
|
|
108
|
+
...router.getBaseEvent(event),
|
|
109
|
+
name: "pointerMoveSelection",
|
|
110
|
+
phase: "start",
|
|
111
|
+
target: node,
|
|
112
|
+
targetType: "node",
|
|
113
|
+
lastInputPoint: { x: event.clientX, y: event.clientY },
|
|
114
|
+
currentDiagramEdge: null
|
|
115
|
+
});
|
|
116
|
+
document.addEventListener("pointermove", this.onPointerMove);
|
|
117
|
+
document.addEventListener("pointerup", this.onPointerUp);
|
|
118
|
+
this.unregisterInteractionCleanup = flowCore.registerInteractionCleanup(() => this.removeListeners());
|
|
119
|
+
}
|
|
120
|
+
removeListeners() {
|
|
121
|
+
this.unregisterInteractionCleanup?.();
|
|
122
|
+
this.unregisterInteractionCleanup = null;
|
|
123
|
+
document.removeEventListener("pointermove", this.onPointerMove);
|
|
124
|
+
document.removeEventListener("pointerup", this.onPointerUp);
|
|
125
|
+
this.stopEdgePanning();
|
|
126
|
+
this.cachedDiagramRect = null;
|
|
127
|
+
if (this.gestureActive) {
|
|
128
|
+
this.gestureActive = false;
|
|
129
|
+
const touchState = this.getRuntime()?.touchEventsState;
|
|
130
|
+
if (touchState?.moveHandled()) {
|
|
131
|
+
touchState.clearCurrentEvent();
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
finishDragging(event, lastPoint = null) {
|
|
136
|
+
const node = this.getNode();
|
|
137
|
+
if (!node) {
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
this.removeListeners();
|
|
141
|
+
const router = this.getRuntime()?.inputEventsRouter;
|
|
142
|
+
if (!router) {
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
router.emit({
|
|
146
|
+
...router.getBaseEvent(event),
|
|
147
|
+
name: "pointerMoveSelection",
|
|
148
|
+
phase: "end",
|
|
149
|
+
target: node,
|
|
150
|
+
targetType: "node",
|
|
151
|
+
lastInputPoint: lastPoint ?? { x: event.clientX, y: event.clientY },
|
|
152
|
+
currentDiagramEdge: null
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
shouldHandle(event) {
|
|
156
|
+
const { runtime, flowCore } = this.runtimeWithCore;
|
|
157
|
+
const isDraggable = flowCore.config.nodeDraggingEnabled && (this.getNode()?.draggable ?? true);
|
|
158
|
+
if (!isDraggable || shouldDiscardEvent(event, "drag")) {
|
|
159
|
+
return false;
|
|
160
|
+
}
|
|
161
|
+
const touchState = runtime.touchEventsState;
|
|
162
|
+
return !(event.zoomingHandled || event.linkingHandled || event.rotateHandled || event.boxSelectionHandled || touchState.panningHandled() || touchState.zoomingHandled());
|
|
163
|
+
}
|
|
164
|
+
startEdgePanning(x, y, panningForce) {
|
|
165
|
+
this.stopEdgePanning();
|
|
166
|
+
this.edgePanningInterval = setInterval(() => {
|
|
167
|
+
const node = this.getNode();
|
|
168
|
+
const router = this.getRuntime()?.inputEventsRouter;
|
|
169
|
+
if (!node || !router) {
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
router.emit({
|
|
173
|
+
...router.getBaseEvent({}),
|
|
174
|
+
name: "pointerMoveSelection",
|
|
175
|
+
phase: "continue",
|
|
176
|
+
target: node,
|
|
177
|
+
targetType: "node",
|
|
178
|
+
lastInputPoint: { x, y },
|
|
179
|
+
panningForce
|
|
180
|
+
});
|
|
181
|
+
}, FPS_60);
|
|
182
|
+
}
|
|
183
|
+
stopEdgePanning() {
|
|
184
|
+
if (this.edgePanningInterval != null) {
|
|
185
|
+
clearInterval(this.edgePanningInterval);
|
|
186
|
+
this.edgePanningInterval = null;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export { PointerMoveSelectionController };
|