@foblex/flow 17.1.1 → 17.2.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/domain/f-connectors/get-all-can-be-connected-inputs-and-rects/get-all-can-be-connected-inputs-and-rects.request.d.ts +3 -3
- package/domain/f-connectors/providers.d.ts +1 -1
- package/domain/f-draggable/end-drag-sequence/end-drag-sequence.execution.d.ts +1 -0
- package/domain/f-draggable/providers.d.ts +1 -1
- package/domain/f-draggable/start-drag-sequence/start-drag-sequence.execution.d.ts +1 -0
- package/domain/f-event-trigger.d.ts +4 -0
- package/domain/f-selection/clear-selection/clear-selection.execution.d.ts +1 -3
- package/domain/f-selection/get-can-be-selected-items/get-can-be-selected-items.execution.d.ts +4 -6
- package/domain/f-selection/get-can-be-selected-items/i-can-be-selected-element-and-rect.d.ts +6 -0
- package/domain/f-selection/get-can-be-selected-items/index.d.ts +1 -1
- package/domain/f-selection/providers.d.ts +1 -1
- package/domain/index.d.ts +1 -0
- package/domain/providers.d.ts +1 -1
- package/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.execution.d.ts +4 -4
- package/domain/update-item-and-children-layers/update-item-and-children-layers.request.d.ts +3 -3
- package/esm2022/domain/f-canvas/center-group-or-node/center-group-or-node.execution.mjs +2 -2
- package/esm2022/domain/f-canvas/fit-to-flow/fit-to-flow.execution.mjs +3 -3
- package/esm2022/domain/f-canvas/reset-scale-and-center/reset-scale-and-center.execution.mjs +3 -3
- package/esm2022/domain/f-connection/redraw-connections/redraw-connections.execution.mjs +3 -3
- package/esm2022/domain/f-connectors/find-input-at-position/find-input-at-position.execution.mjs +2 -2
- package/esm2022/domain/f-connectors/get-all-can-be-connected-inputs-and-rects/get-all-can-be-connected-inputs-and-rects.execution.mjs +9 -9
- package/esm2022/domain/f-connectors/get-all-can-be-connected-inputs-and-rects/get-all-can-be-connected-inputs-and-rects.request.mjs +4 -4
- package/esm2022/domain/f-connectors/get-connector-and-rect/get-connector-and-rect.execution.mjs +2 -2
- package/esm2022/domain/f-draggable/emit-selection-change-event/emit-selection-change-event.execution.mjs +3 -3
- package/esm2022/domain/f-draggable/end-drag-sequence/end-drag-sequence.execution.mjs +5 -1
- package/esm2022/domain/f-draggable/prepare-drag-sequence/prepare-drag-sequence.execution.mjs +2 -2
- package/esm2022/domain/f-draggable/start-drag-sequence/start-drag-sequence.execution.mjs +6 -2
- package/esm2022/domain/f-event-trigger.mjs +7 -0
- package/esm2022/domain/f-flow/get-flow-state/get-flow-state.execution.mjs +4 -4
- package/esm2022/domain/f-node/update-node-when-state-or-size-changed/update-node-when-state-or-size-changed.execution.mjs +2 -2
- package/esm2022/domain/f-selection/clear-selection/clear-selection.execution.mjs +9 -12
- package/esm2022/domain/f-selection/get-can-be-selected-items/get-can-be-selected-items.execution.mjs +8 -11
- package/esm2022/domain/f-selection/get-can-be-selected-items/i-can-be-selected-element-and-rect.mjs +2 -0
- package/esm2022/domain/f-selection/get-can-be-selected-items/index.mjs +2 -2
- package/esm2022/domain/f-selection/select/select.execution.mjs +4 -4
- package/esm2022/domain/f-selection/select-all/select-all.execution.mjs +4 -4
- package/esm2022/domain/f-selection/select-and-update-node-layer/select-and-update-node-layer.execution.mjs +3 -3
- package/esm2022/domain/f-zoom/set-zoom/set-zoom.execution.mjs +1 -1
- package/esm2022/domain/get-normalized-element-rect/get-normalized-element-rect.execution.mjs +2 -2
- package/esm2022/domain/index.mjs +2 -1
- package/esm2022/domain/sort-item-layers/sort-item-layers.execution.mjs +4 -4
- package/esm2022/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.execution.mjs +14 -14
- package/esm2022/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.execution.mjs +2 -2
- package/esm2022/domain/update-item-and-children-layers/update-item-and-children-layers.execution.mjs +3 -3
- package/esm2022/domain/update-item-and-children-layers/update-item-and-children-layers.request.mjs +1 -1
- package/esm2022/f-backgroud/f-background.component.mjs +4 -4
- package/esm2022/f-canvas/f-canvas.component.mjs +13 -13
- package/esm2022/f-connection/common/f-connection-base.mjs +3 -3
- package/esm2022/f-connection/common/f-connection-text/f-connection-text-path.directive.mjs +4 -2
- package/esm2022/f-connection/common/f-connection-text/f-connection-text.component.mjs +2 -1
- package/esm2022/f-connection/f-connection/f-connection.component.mjs +4 -4
- package/esm2022/f-connection/f-connection-for-create/f-connection-for-create.component.mjs +4 -4
- package/esm2022/f-connection/f-marker/f-marker.directive.mjs +3 -3
- package/esm2022/f-connection/f-snap-connection/f-snap-connection.component.mjs +4 -4
- package/esm2022/f-connectors/f-node-input/f-node-input.directive.mjs +3 -3
- package/esm2022/f-connectors/f-node-outlet/f-node-outlet-base.mjs +1 -1
- package/esm2022/f-connectors/f-node-outlet/f-node-outlet.directive.mjs +3 -3
- package/esm2022/f-connectors/f-node-output/f-node-output-base.mjs +1 -1
- package/esm2022/f-connectors/f-node-output/f-node-output.directive.mjs +3 -3
- package/esm2022/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.execution.mjs +3 -3
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler-preparation/create-connection-drag-handler-preparation.execution.mjs +40 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler-preparation/create-connection-drag-handler-preparation.request.mjs +9 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler-preparation/index.mjs +3 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/create-connection-from-outlet-preparation.execution.mjs +36 -38
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/create-connection-from-outlet-preparation.request.mjs +4 -2
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.execution.mjs +31 -23
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.request.mjs +4 -2
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/index.mjs +1 -2
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.execution.mjs +8 -12
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.request.mjs +4 -2
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/index.mjs +2 -2
- package/esm2022/f-draggable/connections/create-connection/create-connection.drag-handler.mjs +15 -14
- package/esm2022/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.execution.mjs +27 -24
- package/esm2022/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.request.mjs +4 -4
- package/esm2022/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/index.mjs +1 -2
- package/esm2022/f-draggable/connections/providers.mjs +3 -5
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.execution.mjs +2 -2
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.execution.mjs +2 -2
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.request.mjs +4 -2
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.mjs +8 -7
- package/esm2022/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.execution.mjs +3 -3
- package/esm2022/f-draggable/domain/is-connection-under-node/is-connection-under-node.execution.mjs +2 -2
- package/esm2022/f-draggable/f-draggable-base.mjs +1 -1
- package/esm2022/f-draggable/f-draggable-data-context.mjs +1 -1
- package/esm2022/f-draggable/f-draggable.directive.mjs +55 -24
- package/esm2022/f-draggable/f-injector.mjs +19 -0
- package/esm2022/f-draggable/index.mjs +2 -1
- package/esm2022/f-draggable/node/connection-drag-handlers/base-connection.drag-handler.mjs +56 -0
- package/esm2022/f-draggable/node/connection-drag-handlers/index.mjs +5 -0
- package/esm2022/f-draggable/node/connection-drag-handlers/source-connection.drag-handler.mjs +11 -0
- package/esm2022/f-draggable/node/connection-drag-handlers/source-target-connection.drag-handler.mjs +22 -0
- package/esm2022/f-draggable/node/connection-drag-handlers/target-connection.drag-handler.mjs +11 -0
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.mjs +47 -45
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-common-node-move-limits/calculate-common-node-move-limits.execution.mjs +69 -0
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-common-node-move-limits/calculate-common-node-move-limits.request.mjs +7 -0
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-common-node-move-limits/index.mjs +3 -0
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-node-move-limits/calculate-node-move-limits.execution.mjs +49 -0
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-node-move-limits/calculate-node-move-limits.request.mjs +9 -0
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-node-move-limits/index.mjs +3 -0
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-input-connection-handlers-to-array/put-input-connection-handlers-to-array.execution.mjs +27 -35
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-input-connection-handlers-to-array/put-input-connection-handlers-to-array.request.mjs +4 -4
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-output-connection-handlers-to-array/put-output-connection-handlers-to-array.execution.mjs +33 -46
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-output-connection-handlers-to-array/put-output-connection-handlers-to-array.request.mjs +4 -4
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/i-node-move-limits-and-position.mjs +2 -0
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/i-node-move-limits.mjs +2 -0
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/index.mjs +5 -4
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/providers.mjs +5 -5
- package/esm2022/f-draggable/node/index.mjs +4 -6
- package/esm2022/f-draggable/node/line-alignment-preparation/line-alignment-preparation.execution.mjs +7 -18
- package/esm2022/f-draggable/node/line-alignment-preparation/line-alignment-preparation.request.mjs +7 -1
- package/esm2022/f-draggable/node/line-alignment.drag-handler.mjs +5 -4
- package/esm2022/f-draggable/node/node-drag-to-parent-finalize/node-drag-to-parent-finalize.execution.mjs +3 -3
- package/esm2022/f-draggable/node/node-drag-to-parent-preparation/index.mjs +1 -3
- package/esm2022/f-draggable/node/node-drag-to-parent-preparation/node-drag-to-parent-preparation.execution.mjs +13 -6
- package/esm2022/f-draggable/node/node-move-finalize/node-move-finalize.execution.mjs +13 -9
- package/esm2022/f-draggable/node/node-move-preparation/node-move-preparation.execution.mjs +5 -4
- package/esm2022/f-draggable/node/node.drag-handler.mjs +12 -29
- package/esm2022/f-draggable/node/point-bounds-limiter.mjs +41 -0
- package/esm2022/f-draggable/node/providers.mjs +3 -3
- package/esm2022/f-draggable/node/summary-node.drag-handler.mjs +36 -0
- package/esm2022/f-draggable/node-resize/apply-child-resize-restrictions/apply-child-resize-restrictions.execution.mjs +26 -22
- package/esm2022/f-draggable/node-resize/calculate-changed-size/calculate-changed-size.execution.mjs +1 -1
- package/esm2022/f-draggable/node-resize/get-node-resize-restrictions/get-node-resize-restrictions.execution.mjs +18 -18
- package/esm2022/f-draggable/node-resize/get-node-resize-restrictions/i-node-resize-restrictions.mjs +1 -1
- package/esm2022/f-draggable/node-resize/get-normalized-children-nodes-rect/get-normalized-children-nodes-rect.execution.mjs +3 -3
- package/esm2022/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.execution.mjs +8 -11
- package/esm2022/f-draggable/node-resize/node-resize-preparation/index.mjs +1 -3
- package/esm2022/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.execution.mjs +46 -34
- package/esm2022/f-draggable/node-resize/node-resize.drag-handler.mjs +47 -34
- package/esm2022/f-draggable/node-resize/providers.mjs +3 -3
- package/esm2022/f-draggable/node-resize/resize-direction.mjs +5 -1
- package/esm2022/f-draggable/single-select/single-select.execution.mjs +101 -70
- package/esm2022/f-draggable/single-select/single-select.request.mjs +4 -2
- package/esm2022/f-external-item/domain/external-item-finalize/external-item-finalize.execution.mjs +2 -2
- package/esm2022/f-external-item/domain/external-item-preparation/external-item-preparation.execution.mjs +27 -27
- package/esm2022/f-external-item/domain/external-item-preparation/index.mjs +1 -2
- package/esm2022/f-external-item/domain/external-item-preparation/providers.mjs +1 -3
- package/esm2022/f-external-item/domain/external-item.drag-handler.mjs +9 -8
- package/esm2022/f-flow/f-flow.component.mjs +15 -15
- package/esm2022/f-minimap/domain/f-minimap.drag-handler.mjs +2 -2
- package/esm2022/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/minimap-calculate-svg-scale-and-view-box.execution.mjs +2 -2
- package/esm2022/f-minimap/domain/minimap-drag-finalize/index.mjs +1 -2
- package/esm2022/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.execution.mjs +8 -1
- package/esm2022/f-minimap/domain/minimap-drag-finalize/providers.mjs +1 -3
- package/esm2022/f-minimap/domain/minimap-drag-preparation/index.mjs +1 -2
- package/esm2022/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.execution.mjs +10 -2
- package/esm2022/f-minimap/domain/minimap-drag-preparation/providers.mjs +1 -3
- package/esm2022/f-minimap/f-minimap-canvas.directive.mjs +2 -2
- package/esm2022/f-minimap/f-minimap-flow.directive.mjs +2 -2
- package/esm2022/f-minimap/f-minimap-view.directive.mjs +2 -2
- package/esm2022/f-minimap/f-minimap.component.mjs +4 -4
- package/esm2022/f-node/f-group.directive.mjs +16 -10
- package/esm2022/f-node/f-node-base.mjs +1 -1
- package/esm2022/f-node/f-node.directive.mjs +16 -10
- package/esm2022/f-node/f-resize-handle/e-f-resize-handle-type.mjs +6 -2
- package/esm2022/f-node/f-resize-handle/f-resize-handle.directive.mjs +3 -3
- package/esm2022/f-selection-area/domain/providers.mjs +5 -5
- package/esm2022/f-selection-area/domain/selection-area-finalize/index.mjs +1 -3
- package/esm2022/f-selection-area/domain/selection-area-finalize/selection-area-finalize.execution.mjs +14 -10
- package/esm2022/f-selection-area/domain/selection-area-preparation/index.mjs +1 -3
- package/esm2022/f-selection-area/domain/selection-area-preparation/selection-area-preparation.execution.mjs +25 -23
- package/esm2022/f-selection-area/domain/selection-area-preparation/selection-area-preparation.request.mjs +4 -2
- package/esm2022/f-selection-area/domain/selection-area.drag-handle.mjs +32 -29
- package/esm2022/f-selection-area/f-selection-area.component.mjs +11 -6
- package/esm2022/mixins/change-selection/change-selection.mjs +7 -7
- package/esm2022/mixins/change-selection/i-selectable.mjs +2 -0
- package/esm2022/mixins/change-selection/index.mjs +2 -2
- package/f-connection/common/f-connection-base.d.ts +5 -5
- package/f-connection/common/f-connection-text/f-connection-text-path.directive.d.ts +1 -0
- package/f-connection/providers.d.ts +1 -1
- package/f-connectors/f-node-outlet/f-node-outlet-base.d.ts +1 -0
- package/f-connectors/f-node-output/f-node-output-base.d.ts +1 -0
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler-preparation/create-connection-drag-handler-preparation.execution.d.ts +12 -0
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler-preparation/create-connection-drag-handler-preparation.request.d.ts +7 -0
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler-preparation/index.d.ts +2 -0
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/create-connection-from-outlet-preparation.execution.d.ts +6 -6
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/create-connection-from-outlet-preparation.request.d.ts +3 -1
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.execution.d.ts +6 -6
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.request.d.ts +3 -1
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/index.d.ts +0 -1
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.execution.d.ts +1 -2
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.request.d.ts +3 -1
- package/f-draggable/connections/create-connection/create-connection-preparation/index.d.ts +1 -1
- package/f-draggable/connections/create-connection/create-connection.drag-handler.d.ts +3 -5
- package/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.execution.d.ts +7 -7
- package/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.request.d.ts +2 -2
- package/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/index.d.ts +0 -1
- package/f-draggable/connections/providers.d.ts +2 -2
- package/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.request.d.ts +3 -1
- package/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.d.ts +2 -4
- package/f-draggable/f-draggable-base.d.ts +4 -1
- package/f-draggable/f-draggable-data-context.d.ts +2 -2
- package/f-draggable/f-draggable.directive.d.ts +16 -3
- package/f-draggable/f-injector.d.ts +8 -0
- package/f-draggable/index.d.ts +1 -0
- package/f-draggable/node/connection-drag-handlers/base-connection.drag-handler.d.ts +21 -0
- package/f-draggable/node/connection-drag-handlers/index.d.ts +4 -0
- package/f-draggable/node/connection-drag-handlers/source-connection.drag-handler.d.ts +7 -0
- package/f-draggable/node/connection-drag-handlers/source-target-connection.drag-handler.d.ts +10 -0
- package/f-draggable/node/connection-drag-handlers/target-connection.drag-handler.d.ts +7 -0
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.d.ts +14 -13
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-common-node-move-limits/calculate-common-node-move-limits.execution.d.ts +19 -0
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-common-node-move-limits/calculate-common-node-move-limits.request.d.ts +5 -0
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-common-node-move-limits/index.d.ts +2 -0
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-node-move-limits/calculate-node-move-limits.execution.d.ts +15 -0
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/{calculate-node-move-restrictions/calculate-node-move-restrictions.request.d.ts → calculate-node-move-limits/calculate-node-move-limits.request.d.ts} +1 -1
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-node-move-limits/index.d.ts +2 -0
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-input-connection-handlers-to-array/put-input-connection-handlers-to-array.execution.d.ts +5 -10
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-input-connection-handlers-to-array/put-input-connection-handlers-to-array.request.d.ts +4 -4
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-output-connection-handlers-to-array/put-output-connection-handlers-to-array.execution.d.ts +8 -13
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-output-connection-handlers-to-array/put-output-connection-handlers-to-array.request.d.ts +4 -4
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/i-node-move-limits-and-position.d.ts +5 -0
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/i-node-move-limits.d.ts +3 -0
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/index.d.ts +4 -3
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/providers.d.ts +3 -3
- package/f-draggable/node/index.d.ts +3 -5
- package/f-draggable/node/line-alignment-preparation/line-alignment-preparation.execution.d.ts +0 -2
- package/f-draggable/node/line-alignment-preparation/line-alignment-preparation.request.d.ts +5 -0
- package/f-draggable/node/line-alignment.drag-handler.d.ts +2 -3
- package/f-draggable/node/node-drag-to-parent-preparation/index.d.ts +0 -2
- package/f-draggable/node/node-drag-to-parent-preparation/node-drag-to-parent-preparation.execution.d.ts +1 -0
- package/f-draggable/node/node-move-finalize/node-move-finalize.execution.d.ts +2 -0
- package/f-draggable/node/node.drag-handler.d.ts +6 -9
- package/f-draggable/node/point-bounds-limiter.d.ts +15 -0
- package/f-draggable/node/providers.d.ts +2 -1
- package/f-draggable/node/summary-node.drag-handler.d.ts +14 -0
- package/f-draggable/node-resize/apply-child-resize-restrictions/apply-child-resize-restrictions.execution.d.ts +5 -5
- package/f-draggable/node-resize/get-node-resize-restrictions/get-node-resize-restrictions.execution.d.ts +5 -4
- package/f-draggable/node-resize/get-node-resize-restrictions/i-node-resize-restrictions.d.ts +3 -3
- package/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.execution.d.ts +1 -3
- package/f-draggable/node-resize/node-resize-preparation/index.d.ts +0 -2
- package/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.execution.d.ts +13 -11
- package/f-draggable/node-resize/node-resize.drag-handler.d.ts +16 -12
- package/f-draggable/node-resize/providers.d.ts +2 -1
- package/f-draggable/node-resize/resize-direction.d.ts +16 -0
- package/f-draggable/providers.d.ts +1 -1
- package/f-draggable/single-select/single-select.execution.d.ts +54 -20
- package/f-draggable/single-select/single-select.request.d.ts +3 -1
- package/f-external-item/domain/external-item-preparation/external-item-preparation.execution.d.ts +7 -11
- package/f-external-item/domain/external-item-preparation/index.d.ts +0 -1
- package/f-external-item/domain/external-item-preparation/providers.d.ts +1 -2
- package/f-external-item/domain/external-item.drag-handler.d.ts +2 -3
- package/f-external-item/domain/providers.d.ts +1 -1
- package/f-minimap/domain/minimap-drag-finalize/index.d.ts +0 -1
- package/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.execution.d.ts +1 -0
- package/f-minimap/domain/minimap-drag-finalize/providers.d.ts +1 -2
- package/f-minimap/domain/minimap-drag-preparation/index.d.ts +0 -1
- package/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.execution.d.ts +1 -0
- package/f-minimap/domain/minimap-drag-preparation/providers.d.ts +1 -2
- package/f-minimap/domain/providers.d.ts +1 -1
- package/f-node/f-node-base.d.ts +3 -3
- package/f-node/f-resize-handle/e-f-resize-handle-type.d.ts +6 -2
- package/f-node/providers.d.ts +1 -1
- package/f-selection-area/domain/providers.d.ts +3 -1
- package/f-selection-area/domain/selection-area-finalize/index.d.ts +0 -2
- package/f-selection-area/domain/selection-area-finalize/selection-area-finalize.execution.d.ts +2 -3
- package/f-selection-area/domain/selection-area-preparation/index.d.ts +0 -2
- package/f-selection-area/domain/selection-area-preparation/selection-area-preparation.execution.d.ts +6 -8
- package/f-selection-area/domain/selection-area-preparation/selection-area-preparation.request.d.ts +3 -1
- package/f-selection-area/domain/selection-area.drag-handle.d.ts +7 -6
- package/f-selection-area/f-selection-area.component.d.ts +3 -1
- package/f-storage/providers.d.ts +1 -1
- package/fesm2022/foblex-flow.mjs +1160 -1156
- package/fesm2022/foblex-flow.mjs.map +1 -1
- package/mixins/change-selection/change-selection.d.ts +2 -2
- package/mixins/change-selection/i-selectable.d.ts +10 -0
- package/mixins/change-selection/index.d.ts +1 -1
- package/package.json +2 -2
- package/domain/f-selection/get-can-be-selected-items/i-can-be-selected.d.ts +0 -6
- package/esm2022/domain/f-selection/get-can-be-selected-items/i-can-be-selected.mjs +0 -2
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/create-connection-drag-handler.execution.mjs +0 -47
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/create-connection-drag-handler.request.mjs +0 -9
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/index.mjs +0 -3
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.validator.mjs +0 -36
- package/esm2022/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.validator.mjs +0 -28
- package/esm2022/f-draggable/node/connection-base-drag-handler.mjs +0 -55
- package/esm2022/f-draggable/node/connection-source.drag-handler.mjs +0 -17
- package/esm2022/f-draggable/node/connection-target.drag-handler.mjs +0 -17
- package/esm2022/f-draggable/node/connection.drag-handler.mjs +0 -23
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-common-node-move-restrictions/calculate-common-node-move-restrictions.execution.mjs +0 -40
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-common-node-move-restrictions/calculate-common-node-move-restrictions.request.mjs +0 -7
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-common-node-move-restrictions/index.mjs +0 -3
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-node-move-restrictions/calculate-node-move-restrictions.execution.mjs +0 -42
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-node-move-restrictions/calculate-node-move-restrictions.request.mjs +0 -9
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-node-move-restrictions/index.mjs +0 -3
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/i-node-with-distance-restrictions.mjs +0 -2
- package/esm2022/f-draggable/node/node-drag-to-parent-preparation/node-drag-to-parent-preparation.validator.mjs +0 -26
- package/esm2022/f-draggable/node/node-drag-to-parent-preparation/providers.mjs +0 -7
- package/esm2022/f-draggable/node/node-resize-by-child.drag-handler.mjs +0 -16
- package/esm2022/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.validator.mjs +0 -44
- package/esm2022/f-draggable/node-resize/node-resize-preparation/providers.mjs +0 -7
- package/esm2022/f-external-item/domain/external-item-preparation/external-item-preparation.validator.mjs +0 -30
- package/esm2022/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.validator.mjs +0 -26
- package/esm2022/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.validator.mjs +0 -30
- package/esm2022/f-selection-area/domain/selection-area-finalize/providers.mjs +0 -7
- package/esm2022/f-selection-area/domain/selection-area-finalize/selection-area-finalize.validator.mjs +0 -26
- package/esm2022/f-selection-area/domain/selection-area-preparation/providers.mjs +0 -7
- package/esm2022/f-selection-area/domain/selection-area-preparation/selection-area-preparation.validator.mjs +0 -32
- package/esm2022/mixins/change-selection/i-can-change-selection.mjs +0 -2
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/create-connection-drag-handler.execution.d.ts +0 -17
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/create-connection-drag-handler.request.d.ts +0 -7
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/index.d.ts +0 -2
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.validator.d.ts +0 -14
- package/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.validator.d.ts +0 -12
- package/f-draggable/node/connection-base-drag-handler.d.ts +0 -24
- package/f-draggable/node/connection-source.drag-handler.d.ts +0 -11
- package/f-draggable/node/connection-target.drag-handler.d.ts +0 -11
- package/f-draggable/node/connection.drag-handler.d.ts +0 -14
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-common-node-move-restrictions/calculate-common-node-move-restrictions.execution.d.ts +0 -13
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-common-node-move-restrictions/calculate-common-node-move-restrictions.request.d.ts +0 -5
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-common-node-move-restrictions/index.d.ts +0 -2
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-node-move-restrictions/calculate-node-move-restrictions.execution.d.ts +0 -12
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-node-move-restrictions/index.d.ts +0 -2
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/i-node-with-distance-restrictions.d.ts +0 -6
- package/f-draggable/node/node-drag-to-parent-preparation/node-drag-to-parent-preparation.validator.d.ts +0 -11
- package/f-draggable/node/node-drag-to-parent-preparation/providers.d.ts +0 -3
- package/f-draggable/node/node-resize-by-child.drag-handler.d.ts +0 -11
- package/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.validator.d.ts +0 -17
- package/f-draggable/node-resize/node-resize-preparation/providers.d.ts +0 -3
- package/f-external-item/domain/external-item-preparation/external-item-preparation.validator.d.ts +0 -12
- package/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.validator.d.ts +0 -11
- package/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.validator.d.ts +0 -13
- package/f-selection-area/domain/selection-area-finalize/providers.d.ts +0 -3
- package/f-selection-area/domain/selection-area-finalize/selection-area-finalize.validator.d.ts +0 -11
- package/f-selection-area/domain/selection-area-preparation/providers.d.ts +0 -3
- package/f-selection-area/domain/selection-area-preparation/selection-area-preparation.validator.d.ts +0 -13
- package/mixins/change-selection/i-can-change-selection.d.ts +0 -10
|
@@ -1,53 +1,56 @@
|
|
|
1
|
-
import { Point, RectExtensions } from '@foblex/2d';
|
|
1
|
+
import { Point, PointExtensions, RectExtensions } from '@foblex/2d';
|
|
2
2
|
import { NotifyTransformChangedRequest } from '../../f-storage';
|
|
3
3
|
import { GetCanBeSelectedItemsRequest } from '../../domain';
|
|
4
4
|
export class SelectionAreaDragHandle {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
_fComponentsStore;
|
|
6
|
+
_fSelectionArea;
|
|
7
|
+
_fDraggableDataContext;
|
|
8
|
+
_fMediator;
|
|
9
9
|
_canBeSelected = [];
|
|
10
10
|
_selectedByMove = [];
|
|
11
|
-
get
|
|
12
|
-
return Point.fromPoint(this.
|
|
13
|
-
.add(this.
|
|
11
|
+
get _fCanvasPosition() {
|
|
12
|
+
return Point.fromPoint(this._fComponentsStore.fCanvas.transform.position)
|
|
13
|
+
.add(this._fComponentsStore.fCanvas.transform.scaledPosition);
|
|
14
14
|
}
|
|
15
|
-
constructor(
|
|
16
|
-
this.
|
|
17
|
-
this.
|
|
18
|
-
this.
|
|
19
|
-
this.
|
|
15
|
+
constructor(_fComponentsStore, _fSelectionArea, _fDraggableDataContext, _fMediator) {
|
|
16
|
+
this._fComponentsStore = _fComponentsStore;
|
|
17
|
+
this._fSelectionArea = _fSelectionArea;
|
|
18
|
+
this._fDraggableDataContext = _fDraggableDataContext;
|
|
19
|
+
this._fMediator = _fMediator;
|
|
20
20
|
}
|
|
21
21
|
prepareDragSequence() {
|
|
22
|
-
this._canBeSelected = this.
|
|
23
|
-
this.
|
|
24
|
-
this.
|
|
22
|
+
this._canBeSelected = this._fMediator.execute(new GetCanBeSelectedItemsRequest());
|
|
23
|
+
this._fSelectionArea.show();
|
|
24
|
+
this._fSelectionArea.draw(RectExtensions.initialize(this._fDraggableDataContext.onPointerDownPosition.x, this._fDraggableDataContext.onPointerDownPosition.y));
|
|
25
25
|
}
|
|
26
26
|
onPointerMove(difference) {
|
|
27
|
-
const currentPoint = Point.fromPoint(difference).add(this.
|
|
28
|
-
const
|
|
29
|
-
const y = Math.min(this.fDraggableDataContext.onPointerDownPosition.y, currentPoint.y);
|
|
27
|
+
const currentPoint = Point.fromPoint(difference).add(this._fDraggableDataContext.onPointerDownPosition);
|
|
28
|
+
const point = this._getMinimumPoint(this._fDraggableDataContext.onPointerDownPosition, currentPoint);
|
|
30
29
|
const width = Math.abs(difference.x);
|
|
31
30
|
const height = Math.abs(difference.y);
|
|
32
|
-
|
|
31
|
+
const fSelectionAreaRect = RectExtensions.initialize(point.x, point.y, width, height);
|
|
32
|
+
this._fSelectionArea.draw(fSelectionAreaRect);
|
|
33
33
|
this._selectedByMove = [];
|
|
34
34
|
this._canBeSelected.forEach((item) => {
|
|
35
|
-
item.element.
|
|
36
|
-
const
|
|
37
|
-
const isIntersect = RectExtensions.intersectionWithRect(
|
|
35
|
+
item.element.unmarkAsSelected();
|
|
36
|
+
const fItemRect = RectExtensions.addPoint(item.fRect, this._fCanvasPosition);
|
|
37
|
+
const isIntersect = RectExtensions.intersectionWithRect(fItemRect, fSelectionAreaRect);
|
|
38
38
|
if (isIntersect) {
|
|
39
|
-
item.element.
|
|
39
|
+
item.element.markAsSelected();
|
|
40
40
|
this._selectedByMove.push(item.element);
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
|
-
this.
|
|
43
|
+
this._fMediator.execute(new NotifyTransformChangedRequest());
|
|
44
|
+
}
|
|
45
|
+
_getMinimumPoint(point1, point2) {
|
|
46
|
+
return PointExtensions.initialize(Math.min(point1.x, point2.x), Math.min(point1.y, point2.y));
|
|
44
47
|
}
|
|
45
48
|
onPointerUp() {
|
|
46
|
-
this.
|
|
47
|
-
this.
|
|
49
|
+
this._fSelectionArea.hide();
|
|
50
|
+
this._fDraggableDataContext.selectedItems.push(...this._selectedByMove);
|
|
48
51
|
if (this._selectedByMove.length > 0) {
|
|
49
|
-
this.
|
|
52
|
+
this._fDraggableDataContext.isSelectedChanged = true;
|
|
50
53
|
}
|
|
51
54
|
}
|
|
52
55
|
}
|
|
53
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
56
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0aW9uLWFyZWEuZHJhZy1oYW5kbGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2Ytc2VsZWN0aW9uLWFyZWEvZG9tYWluL3NlbGVjdGlvbi1hcmVhLmRyYWctaGFuZGxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBVSxLQUFLLEVBQUUsZUFBZSxFQUFFLGNBQWMsRUFBRSxNQUFNLFlBQVksQ0FBQztBQUM1RSxPQUFPLEVBQW9CLDZCQUE2QixFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDbEYsT0FBTyxFQUFFLDRCQUE0QixFQUFnQyxNQUFNLGNBQWMsQ0FBQztBQU0xRixNQUFNLE9BQU8sd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nZWRSZXF1ZXN0KCkpO1xuICB9XG5cbiAgcHJpdmF0ZSBfZ2V0TWluaW11bVBvaW50KHBvaW50MTogSVBvaW50LCBwb2ludDI6IElQb2ludCk6IElQb2ludCB7XG4gICAgcmV0dXJuIFBvaW50RXh0ZW5zaW9ucy5pbml0aWFsaXplKFxuICAgICAgTWF0aC5taW4ocG9pbnQxLngsIHBvaW50Mi54KSxcbiAgICAgIE1hdGgubWluKHBvaW50MS55LCBwb2ludDIueSlcbiAgICApO1xuICB9XG5cbiAgcHVibGljIG9uUG9pbnRlclVwKCk6IHZvaWQge1xuICAgIHRoaXMuX2ZTZWxlY3Rpb25BcmVhLmhpZGUoKTtcbiAgICB0aGlzLl9mRHJhZ2dhYmxlRGF0YUNvbnRleHQuc2VsZWN0ZWRJdGVtcy5wdXNoKC4uLnRoaXMuX3NlbGVjdGVkQnlNb3ZlKTtcbiAgICBpZiAodGhpcy5fc2VsZWN0ZWRCeU1vdmUubGVuZ3RoID4gMCkge1xuICAgICAgdGhpcy5fZkRyYWdnYWJsZURhdGFDb250ZXh0LmlzU2VsZWN0ZWRDaGFuZ2VkID0gdHJ1ZTtcbiAgICB9XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, ElementRef, inject } from '@angular/core';
|
|
1
|
+
import { Component, ElementRef, inject, Input } from '@angular/core';
|
|
2
2
|
import { FSelectionAreaBase } from './f-selection-area-base';
|
|
3
3
|
import { F_DRAG_AND_DROP_PLUGIN } from '../f-draggable';
|
|
4
4
|
import { FMediator } from '@foblex/mediator';
|
|
@@ -7,6 +7,9 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
export class FSelectionAreaComponent extends FSelectionAreaBase {
|
|
8
8
|
_fMediator = inject(FMediator);
|
|
9
9
|
_elementReference = inject(ElementRef);
|
|
10
|
+
fTrigger = (event) => {
|
|
11
|
+
return event.shiftKey;
|
|
12
|
+
};
|
|
10
13
|
get hostElement() {
|
|
11
14
|
return this._elementReference.nativeElement;
|
|
12
15
|
}
|
|
@@ -27,13 +30,13 @@ export class FSelectionAreaComponent extends FSelectionAreaBase {
|
|
|
27
30
|
style.height = object.height + 'px';
|
|
28
31
|
}
|
|
29
32
|
onPointerDown(event) {
|
|
30
|
-
this._fMediator.
|
|
33
|
+
this._fMediator.execute(new SelectionAreaPreparationRequest(event, this, this.fTrigger));
|
|
31
34
|
}
|
|
32
35
|
onPointerUp(event) {
|
|
33
|
-
this._fMediator.
|
|
36
|
+
this._fMediator.execute(new SelectionAreaFinalizeRequest(event));
|
|
34
37
|
}
|
|
35
38
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: FSelectionAreaComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
36
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.4", type: FSelectionAreaComponent, selector: "f-selection-area", host: { classAttribute: "f-selection-area f-component" }, providers: [
|
|
39
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.4", type: FSelectionAreaComponent, selector: "f-selection-area", inputs: { fTrigger: "fTrigger" }, host: { classAttribute: "f-selection-area f-component" }, providers: [
|
|
37
40
|
{ provide: F_DRAG_AND_DROP_PLUGIN, useExisting: FSelectionAreaComponent },
|
|
38
41
|
], usesInheritance: true, ngImport: i0, template: ``, isInline: true, styles: [":host{position:absolute}\n"] });
|
|
39
42
|
}
|
|
@@ -44,5 +47,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
|
|
|
44
47
|
}, providers: [
|
|
45
48
|
{ provide: F_DRAG_AND_DROP_PLUGIN, useExisting: FSelectionAreaComponent },
|
|
46
49
|
], styles: [":host{position:absolute}\n"] }]
|
|
47
|
-
}]
|
|
48
|
-
|
|
50
|
+
}], propDecorators: { fTrigger: [{
|
|
51
|
+
type: Input
|
|
52
|
+
}] } });
|
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Lmhvc3RFbGVtZW50LnN0eWxlLmRpc3BsYXkgPSAnbm9uZSc7XG4gIH1cblxuICBwdWJsaWMgb3ZlcnJpZGUgc2hvdygpOiB2b2lkIHtcbiAgICB0aGlzLmhvc3RFbGVtZW50LnN0eWxlLmRpc3BsYXkgPSAnYmxvY2snO1xuICB9XG5cbiAgcHVibGljIG92ZXJyaWRlIGRyYXcob2JqZWN0OiBJUmVjdCk6IHZvaWQge1xuICAgIGNvbnN0IHN0eWxlID0gdGhpcy5ob3N0RWxlbWVudC5zdHlsZTtcbiAgICBzdHlsZS5sZWZ0ID0gb2JqZWN0LnggKyAncHgnO1xuICAgIHN0eWxlLnRvcCA9IG9iamVjdC55ICsgJ3B4JztcbiAgICBzdHlsZS53aWR0aCA9IG9iamVjdC53aWR0aCArICdweCc7XG4gICAgc3R5bGUuaGVpZ2h0ID0gb2JqZWN0LmhlaWdodCArICdweCc7XG4gIH1cblxuICBwdWJsaWMgb25Qb2ludGVyRG93bihldmVudDogSVBvaW50ZXJFdmVudCk6IHZvaWQge1xuICAgIHRoaXMuX2ZNZWRpYXRvci5leGVjdXRlKG5ldyBTZWxlY3Rpb25BcmVhUHJlcGFyYXRpb25SZXF1ZXN0KGV2ZW50LCB0aGlzLCB0aGlzLmZUcmlnZ2VyKSk7XG4gIH1cblxuICBwdWJsaWMgb25Qb2ludGVyVXAoZXZlbnQ6IElQb2ludGVyRXZlbnQpOiB2b2lkIHtcbiAgICB0aGlzLl9mTWVkaWF0b3IuZXhlY3V0ZShuZXcgU2VsZWN0aW9uQXJlYUZpbmFsaXplUmVxdWVzdChldmVudCkpO1xuICB9XG59XG4iXX0=
|
|
@@ -3,12 +3,12 @@ export function mixinChangeSelection(base) {
|
|
|
3
3
|
return class extends base {
|
|
4
4
|
fId = '';
|
|
5
5
|
fSelectionDisabled = false;
|
|
6
|
-
|
|
7
|
-
this.
|
|
6
|
+
unmarkAsSelected() {
|
|
7
|
+
this.unmarkChildrenAsSelected?.();
|
|
8
8
|
this.hostElement.classList.remove(F_SELECTED_CLASS);
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
this.
|
|
10
|
+
markAsSelected() {
|
|
11
|
+
this.markChildrenAsSelected?.();
|
|
12
12
|
if (!this.isSelected()) {
|
|
13
13
|
this.hostElement.classList.add(F_SELECTED_CLASS);
|
|
14
14
|
}
|
|
@@ -16,13 +16,13 @@ export function mixinChangeSelection(base) {
|
|
|
16
16
|
isSelected() {
|
|
17
17
|
return this.hostElement.classList.contains(F_SELECTED_CLASS);
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
markChildrenAsSelected() {
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
unmarkChildrenAsSelected() {
|
|
22
22
|
}
|
|
23
23
|
constructor(...args) {
|
|
24
24
|
super(...args);
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhbmdlLXNlbGVjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvbWl4aW5zL2NoYW5nZS1zZWxlY3Rpb24vY2hhbmdlLXNlbGVjdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJQSxNQUFNLENBQUMsTUFBTSxnQkFBZ0IsR0FBRyxZQUFZLENBQUM7QUFLN0MsTUFBTSxVQUFVLG9CQUFvQixDQUF5QyxJQUFPO0lBQ2xGLE9BQU8sS0FBTSxTQUFRLElBQUk7UUFFaEIsR0FBRyxHQUFXLEVBQUUsQ0FBQztRQUVqQixrQkFBa0IsR0FBWSxLQUFLLENBQUM7UUFFcEMsZ0JBQWdCO1lBQ3JCLElBQUksQ0FBQyx3QkFBd0IsRUFBRSxFQUFFLENBQUM7WUFDbEMsSUFBSSxD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from './change-selection';
|
|
2
|
-
export * from './i-
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
2
|
+
export * from './i-selectable';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL21peGlucy9jaGFuZ2Utc2VsZWN0aW9uL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsb0JBQW9CLENBQUM7QUFFbkMsY0FBYyxnQkFBZ0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vY2hhbmdlLXNlbGVjdGlvbic7XG5cbmV4cG9ydCAqIGZyb20gJy4vaS1zZWxlY3RhYmxlJztcbiJdfQ==
|
|
@@ -13,14 +13,14 @@ import { IConnectionText } from './f-connection-text';
|
|
|
13
13
|
import { EFConnectableSide } from '../../f-connectors';
|
|
14
14
|
import { FConnectionFactory } from '../f-connection-builder';
|
|
15
15
|
import { IHasHostElement } from '../../i-has-host-element';
|
|
16
|
-
import {
|
|
16
|
+
import { ISelectable, ICanChangeVisibility } from '../../mixins';
|
|
17
17
|
import * as i0 from "@angular/core";
|
|
18
|
-
declare const MIXIN_BASE: import("../../mixins").Constructor<
|
|
18
|
+
declare const MIXIN_BASE: import("../../mixins").Constructor<ISelectable> & import("../../mixins").AbstractConstructor<ISelectable> & import("../../mixins").Constructor<ICanChangeVisibility> & import("../../mixins").AbstractConstructor<ICanChangeVisibility> & {
|
|
19
19
|
new (hostElement: HTMLElement): {
|
|
20
20
|
hostElement: HTMLElement;
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
|
-
export declare abstract class FConnectionBase extends MIXIN_BASE implements IHasHostElement,
|
|
23
|
+
export declare abstract class FConnectionBase extends MIXIN_BASE implements IHasHostElement, ISelectable, ICanChangeVisibility, IHasConnectionColor, IHasConnectionFromTo, IHasConnectionText {
|
|
24
24
|
private cFactory;
|
|
25
25
|
abstract fId: string;
|
|
26
26
|
abstract fStartColor: string;
|
|
@@ -52,8 +52,8 @@ export declare abstract class FConnectionBase extends MIXIN_BASE implements IHas
|
|
|
52
52
|
setLine(source: IPoint, sourceSide: EFConnectableSide, target: IPoint, targetSide: EFConnectableSide): void;
|
|
53
53
|
private getPathResult;
|
|
54
54
|
private getTransform;
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
markChildrenAsSelected(): void;
|
|
56
|
+
unmarkChildrenAsSelected(): void;
|
|
57
57
|
redraw(): void;
|
|
58
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<FConnectionBase, never>;
|
|
59
59
|
static ɵdir: i0.ɵɵDirectiveDeclaration<FConnectionBase, never, never, {}, {}, never, never, false, never>;
|
|
@@ -15,6 +15,7 @@ export declare class FConnectionTextPathDirective implements IHasHostElement, On
|
|
|
15
15
|
constructor(elementReference: ElementRef<SVGTextPathElement>, base: IHasConnectionText & IHasConnectionFromTo, fBrowser: BrowserService);
|
|
16
16
|
ngOnInit(): void;
|
|
17
17
|
getBBox(): DOMRect;
|
|
18
|
+
redraw(): void;
|
|
18
19
|
private getFontStyles;
|
|
19
20
|
private getSymbolWidth;
|
|
20
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<FConnectionTextPathDirective, never>;
|
|
@@ -4,4 +4,4 @@ import { FConnectionCenterDirective } from './f-connection-center';
|
|
|
4
4
|
import { FConnectionForCreateComponent } from './f-connection-for-create';
|
|
5
5
|
import { FMarkerDirective } from './f-marker';
|
|
6
6
|
import { FSnapConnectionComponent } from './f-snap-connection';
|
|
7
|
-
export declare const F_CONNECTION_PROVIDERS: (typeof
|
|
7
|
+
export declare const F_CONNECTION_PROVIDERS: (typeof FConnectionTextPathDirective | typeof FConnectionTextComponent | typeof FSnapConnectionComponent | typeof FConnectionDragHandleComponent | typeof FConnectionSelectionComponent | typeof FConnectionCenterDirective | typeof FConnectionComponent | typeof FConnectionForCreateComponent | typeof FMarkerDirective | typeof FConnectionGradientComponent | typeof FConnectionPathComponent)[];
|
|
@@ -6,6 +6,7 @@ export declare abstract class FNodeOutletBase extends FConnectorBase {
|
|
|
6
6
|
abstract isConnectionFromOutlet: boolean;
|
|
7
7
|
private outputs;
|
|
8
8
|
get canBeConnected(): boolean;
|
|
9
|
+
abstract canBeConnectedInputs: string[];
|
|
9
10
|
setOutputs(outputs: FConnectorBase[]): void;
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<FNodeOutletBase, never>;
|
|
11
12
|
static ɵdir: i0.ɵɵDirectiveDeclaration<FNodeOutletBase, never, never, {}, {}, never, never, false, never>;
|
|
@@ -5,6 +5,7 @@ export declare const F_NODE_OUTPUT: InjectionToken<FNodeOutputBase>;
|
|
|
5
5
|
export declare abstract class FNodeOutputBase extends FConnectorBase {
|
|
6
6
|
abstract multiple: boolean;
|
|
7
7
|
get canBeConnected(): boolean;
|
|
8
|
+
abstract canBeConnectedInputs: string[];
|
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<FNodeOutputBase, never>;
|
|
9
10
|
static ɵdir: i0.ɵɵDirectiveDeclaration<FNodeOutputBase, never, never, {}, {}, never, never, false, never>;
|
|
10
11
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IHandler } from '@foblex/mediator';
|
|
2
|
+
import { CreateConnectionDragHandlerPreparationRequest } from './create-connection-drag-handler-preparation.request';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CreateConnectionDragHandlerPreparationExecution implements IHandler<CreateConnectionDragHandlerPreparationRequest, void> {
|
|
5
|
+
private _fComponentsStore;
|
|
6
|
+
private _fDraggableDataContext;
|
|
7
|
+
private get _fHost();
|
|
8
|
+
private get _transform();
|
|
9
|
+
handle(request: CreateConnectionDragHandlerPreparationRequest): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CreateConnectionDragHandlerPreparationExecution, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CreateConnectionDragHandlerPreparationExecution>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IPoint } from '@foblex/2d';
|
|
2
|
+
import { FNodeOutletBase, FNodeOutputBase } from '../../../../../f-connectors';
|
|
3
|
+
export declare class CreateConnectionDragHandlerPreparationRequest {
|
|
4
|
+
onPointerDownPosition: IPoint;
|
|
5
|
+
fOutputOrOutlet: FNodeOutputBase | FNodeOutletBase;
|
|
6
|
+
constructor(onPointerDownPosition: IPoint, fOutputOrOutlet: FNodeOutputBase | FNodeOutletBase);
|
|
7
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { IHandler } from '@foblex/mediator';
|
|
2
2
|
import { CreateConnectionFromOutletPreparationRequest } from './create-connection-from-outlet-preparation.request';
|
|
3
|
-
import { FComponentsStore } from '../../../../../f-storage';
|
|
4
|
-
import { FMediator } from '@foblex/mediator';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
6
4
|
export declare class CreateConnectionFromOutletPreparationExecution implements IHandler<CreateConnectionFromOutletPreparationRequest, void> {
|
|
7
|
-
private
|
|
8
|
-
private
|
|
9
|
-
constructor(fComponentsStore: FComponentsStore, fMediator: FMediator);
|
|
5
|
+
private _fMediator;
|
|
6
|
+
private _fComponentsStore;
|
|
10
7
|
handle(request: CreateConnectionFromOutletPreparationRequest): void;
|
|
11
|
-
private
|
|
8
|
+
private _getNodeOutlet;
|
|
9
|
+
private _getNodeOutputs;
|
|
10
|
+
private _createDragHandler;
|
|
11
|
+
private _getConnectableOutput;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<CreateConnectionFromOutletPreparationExecution, never>;
|
|
13
13
|
static ɵprov: i0.ɵɵInjectableDeclaration<CreateConnectionFromOutletPreparationExecution>;
|
|
14
14
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { IPointerEvent } from '@foblex/drag-toolkit';
|
|
2
|
+
import { FNodeBase } from '../../../../../f-node';
|
|
2
3
|
export declare class CreateConnectionFromOutletPreparationRequest {
|
|
3
4
|
event: IPointerEvent;
|
|
4
|
-
|
|
5
|
+
fNode: FNodeBase;
|
|
6
|
+
constructor(event: IPointerEvent, fNode: FNodeBase);
|
|
5
7
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { IHandler } from '@foblex/mediator';
|
|
2
2
|
import { CreateConnectionFromOutputPreparationRequest } from './create-connection-from-output-preparation.request';
|
|
3
|
-
import { FComponentsStore } from '../../../../../f-storage';
|
|
4
|
-
import { FMediator } from '@foblex/mediator';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
6
4
|
export declare class CreateConnectionFromOutputPreparationExecution implements IHandler<CreateConnectionFromOutputPreparationRequest, void> {
|
|
7
|
-
private
|
|
8
|
-
private
|
|
9
|
-
constructor(fComponentsStore: FComponentsStore, fMediator: FMediator);
|
|
5
|
+
private _fMediator;
|
|
6
|
+
private _fComponentsStore;
|
|
10
7
|
handle(request: CreateConnectionFromOutputPreparationRequest): void;
|
|
11
|
-
private
|
|
8
|
+
private _isValid;
|
|
9
|
+
private _isNodeOutput;
|
|
10
|
+
private _getNodeOutlets;
|
|
11
|
+
private _getOutput;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<CreateConnectionFromOutputPreparationExecution, never>;
|
|
13
13
|
static ɵprov: i0.ɵɵInjectableDeclaration<CreateConnectionFromOutputPreparationExecution>;
|
|
14
14
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { IPointerEvent } from '@foblex/drag-toolkit';
|
|
2
|
+
import { FNodeBase } from '../../../../../f-node';
|
|
2
3
|
export declare class CreateConnectionFromOutputPreparationRequest {
|
|
3
4
|
event: IPointerEvent;
|
|
4
|
-
|
|
5
|
+
fNode: FNodeBase;
|
|
6
|
+
constructor(event: IPointerEvent, fNode: FNodeBase);
|
|
5
7
|
}
|
|
@@ -5,12 +5,11 @@ export declare class CreateConnectionPreparationExecution implements IHandler<Cr
|
|
|
5
5
|
private _fMediator;
|
|
6
6
|
private _fComponentsStore;
|
|
7
7
|
private _fDraggableDataContext;
|
|
8
|
+
private _fNode;
|
|
8
9
|
handle(request: CreateConnectionPreparationRequest): void;
|
|
9
10
|
private _isValid;
|
|
10
11
|
private _getNode;
|
|
11
12
|
private _isValidConditions;
|
|
12
|
-
private _isNodeOutput;
|
|
13
|
-
private _getOutlets;
|
|
14
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<CreateConnectionPreparationExecution, never>;
|
|
15
14
|
static ɵprov: i0.ɵɵInjectableDeclaration<CreateConnectionPreparationExecution>;
|
|
16
15
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { IPointerEvent } from '@foblex/drag-toolkit';
|
|
2
|
+
import { FEventTrigger } from '../../../../domain';
|
|
2
3
|
export declare class CreateConnectionPreparationRequest {
|
|
3
4
|
event: IPointerEvent;
|
|
4
|
-
|
|
5
|
+
fTrigger: FEventTrigger;
|
|
6
|
+
constructor(event: IPointerEvent, fTrigger: FEventTrigger);
|
|
5
7
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './create-connection-drag-handler';
|
|
1
|
+
export * from './create-connection-drag-handler-preparation';
|
|
2
2
|
export * from './create-connection-from-outlet-preparation';
|
|
3
3
|
export * from './create-connection-from-output-preparation';
|
|
4
4
|
export * from './create-connection-preparation.execution';
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import { IDraggableItem } from '../../i-draggable-item';
|
|
2
|
-
import {
|
|
3
|
-
import { FMediator } from '@foblex/mediator';
|
|
2
|
+
import { FNodeOutletBase, FNodeOutputBase } from '../../../f-connectors';
|
|
4
3
|
import { IPoint } from '@foblex/2d';
|
|
5
|
-
import { FComponentsStore } from '../../../f-storage';
|
|
6
4
|
import { ICreateReassignConnectionDragData } from '../i-create-reassign-connection-drag-data';
|
|
7
5
|
export declare class CreateConnectionDragHandler implements IDraggableItem<ICreateReassignConnectionDragData> {
|
|
6
|
+
private _fOutputOrOutlet;
|
|
8
7
|
private _fMediator;
|
|
9
8
|
private _fComponentsStore;
|
|
10
|
-
private _fOutput;
|
|
11
9
|
private readonly _toConnectorRect;
|
|
12
10
|
private get _fConnection();
|
|
13
11
|
private get _fSnapConnection();
|
|
14
12
|
private _fOutputWithRect;
|
|
15
13
|
private _canBeConnectedInputs;
|
|
16
|
-
constructor(
|
|
14
|
+
constructor(_fOutputOrOutlet: FNodeOutputBase | FNodeOutletBase, _onPointerDownPosition: IPoint);
|
|
17
15
|
prepareDragSequence(): void;
|
|
18
16
|
private _getAndMarkCanBeConnectedInputs;
|
|
19
17
|
private _initializeSnapConnection;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { IHandler } from '@foblex/mediator';
|
|
2
|
-
import { FComponentsStore } from '../../../../f-storage';
|
|
3
2
|
import { FConnectorBase } from '../../../../f-connectors';
|
|
4
3
|
import { GetCanBeConnectedOutputByOutletRequest } from './get-can-be-connected-output-by-outlet.request';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class GetCanBeConnectedOutputByOutletExecution implements IHandler<GetCanBeConnectedOutputByOutletRequest, FConnectorBase | undefined> {
|
|
7
|
-
private
|
|
8
|
-
private get
|
|
9
|
-
private get
|
|
10
|
-
|
|
6
|
+
private _fComponentStore;
|
|
7
|
+
private get _fNodes();
|
|
8
|
+
private get _fOutputs();
|
|
9
|
+
private _fNode;
|
|
11
10
|
handle(request: GetCanBeConnectedOutputByOutletRequest): FConnectorBase | undefined;
|
|
12
|
-
private
|
|
13
|
-
private
|
|
11
|
+
private _isValid;
|
|
12
|
+
private _getNode;
|
|
13
|
+
private _getConnectableOutputs;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<GetCanBeConnectedOutputByOutletExecution, never>;
|
|
15
15
|
static ɵprov: i0.ɵɵInjectableDeclaration<GetCanBeConnectedOutputByOutletExecution>;
|
|
16
16
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateConnectionDragHandlerPreparationExecution, CreateConnectionFinalizeExecution, CreateConnectionFromOutletPreparationExecution, CreateConnectionFromOutputPreparationExecution, CreateConnectionPreparationExecution, GetCanBeConnectedOutputByOutletExecution } from './create-connection';
|
|
2
2
|
import { ReassignConnectionFinalizeExecution, ReassignConnectionPreparationExecution } from './reassign-connection';
|
|
3
|
-
export declare const CONNECTIONS_PROVIDERS: (typeof CreateConnectionFinalizeExecution | typeof
|
|
3
|
+
export declare const CONNECTIONS_PROVIDERS: (typeof CreateConnectionFinalizeExecution | typeof CreateConnectionDragHandlerPreparationExecution | typeof CreateConnectionFromOutletPreparationExecution | typeof GetCanBeConnectedOutputByOutletExecution | typeof CreateConnectionFromOutputPreparationExecution | typeof CreateConnectionPreparationExecution | typeof ReassignConnectionFinalizeExecution | typeof ReassignConnectionPreparationExecution)[];
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { IPointerEvent } from '@foblex/drag-toolkit';
|
|
2
|
+
import { FEventTrigger } from '../../../../domain';
|
|
2
3
|
export declare class ReassignConnectionPreparationRequest {
|
|
3
4
|
event: IPointerEvent;
|
|
4
|
-
|
|
5
|
+
fTrigger: FEventTrigger;
|
|
6
|
+
constructor(event: IPointerEvent, fTrigger: FEventTrigger);
|
|
5
7
|
}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { IDraggableItem } from '../../i-draggable-item';
|
|
2
2
|
import { FConnectionBase } from '../../../f-connection';
|
|
3
|
-
import { FMediator } from '@foblex/mediator';
|
|
4
3
|
import { IPoint } from '@foblex/2d';
|
|
5
|
-
import { FComponentsStore } from '../../../f-storage';
|
|
6
4
|
import { ICreateReassignConnectionDragData } from '../i-create-reassign-connection-drag-data';
|
|
7
5
|
export declare class ReassignConnectionDragHandler implements IDraggableItem<ICreateReassignConnectionDragData> {
|
|
6
|
+
private _fConnection;
|
|
8
7
|
private _fMediator;
|
|
9
8
|
private _fComponentsStore;
|
|
10
|
-
private _fConnection;
|
|
11
9
|
private readonly _toConnectorRect;
|
|
12
10
|
private get _fSnapConnection();
|
|
13
11
|
private _fOutputWithRect;
|
|
@@ -15,7 +13,7 @@ export declare class ReassignConnectionDragHandler implements IDraggableItem<ICr
|
|
|
15
13
|
private _canBeConnectedInputs;
|
|
16
14
|
private get _fOutput();
|
|
17
15
|
private get _fInput();
|
|
18
|
-
constructor(
|
|
16
|
+
constructor(_fConnection: FConnectionBase);
|
|
19
17
|
prepareDragSequence(): void;
|
|
20
18
|
private _getAndMarkCanBeConnectedInputs;
|
|
21
19
|
private _initializeSnapConnection;
|
|
@@ -9,13 +9,16 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
export declare abstract class FDraggableBase extends DragAndDropBase {
|
|
10
10
|
abstract fSelectionChange: EventEmitter<FSelectionChangeEvent>;
|
|
11
11
|
abstract fNodeIntersectedWithConnections: EventEmitter<FNodeIntersectedWithConnections>;
|
|
12
|
-
abstract
|
|
12
|
+
abstract fEmitOnNodeIntersect: boolean;
|
|
13
13
|
abstract fCreateNode: EventEmitter<FCreateNodeEvent>;
|
|
14
14
|
abstract fReassignConnection: EventEmitter<FReassignConnectionEvent>;
|
|
15
15
|
abstract fCreateConnection: EventEmitter<FCreateConnectionEvent>;
|
|
16
16
|
abstract fDropToGroup: EventEmitter<FDropToGroupEvent>;
|
|
17
17
|
abstract vCellSize: number;
|
|
18
18
|
abstract hCellSize: number;
|
|
19
|
+
abstract fCellSizeWhileDragging: boolean;
|
|
20
|
+
abstract fDragStarted: EventEmitter<void>;
|
|
21
|
+
abstract fDragEnded: EventEmitter<void>;
|
|
19
22
|
protected constructor(ngZone: ICanRunOutsideAngular | undefined);
|
|
20
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<FDraggableBase, never>;
|
|
21
24
|
static ɵdir: i0.ɵɵDirectiveDeclaration<FDraggableBase, never, never, {}, {}, never, never, false, never>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Point } from '@foblex/2d';
|
|
2
2
|
import { IDraggableItem } from './i-draggable-item';
|
|
3
|
-
import {
|
|
3
|
+
import { ISelectable } from '../mixins';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class FDraggableDataContext {
|
|
6
|
-
selectedItems:
|
|
6
|
+
selectedItems: ISelectable[];
|
|
7
7
|
isSelectedChanged: boolean;
|
|
8
8
|
onPointerDownScale: number;
|
|
9
9
|
onPointerDownPosition: Point;
|