@foblex/flow 17.1.1 → 17.2.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/domain/f-connection/redraw-connections/redraw-connections.execution.d.ts +7 -7
- package/domain/f-connectors/find-input-at-position/find-input-at-position.execution.d.ts +3 -2
- 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-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 +2 -1
- 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/get-current-selection/i-current-selection.d.ts +3 -3
- 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 +42 -37
- package/esm2022/domain/f-connectors/find-input-at-position/find-input-at-position.execution.mjs +13 -10
- 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 +4 -4
- 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 +10 -3
- 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/get-current-selection/get-current-selection.execution.mjs +4 -4
- package/esm2022/domain/f-selection/get-current-selection/i-current-selection.mjs +1 -1
- 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/domain/f-drag-started-event.mjs +9 -0
- package/esm2022/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.execution.mjs +3 -3
- package/esm2022/f-draggable/domain/index.mjs +2 -1
- package/esm2022/f-draggable/domain/is-connection-under-node/is-connection-under-node.execution.mjs +2 -2
- package/esm2022/f-draggable/f-canvas/f-canvas.drag-handler.mjs +19 -0
- package/esm2022/f-draggable/f-canvas/index.mjs +5 -0
- package/esm2022/f-draggable/f-canvas/move-finalize/f-canvas-move-finalize.execution.mjs +29 -0
- package/esm2022/f-draggable/f-canvas/move-finalize/f-canvas-move-finalize.request.mjs +7 -0
- package/esm2022/f-draggable/f-canvas/move-finalize/index.mjs +3 -0
- package/esm2022/f-draggable/f-canvas/move-preparation/f-canvas-move-preparation.execution.mjs +53 -0
- package/esm2022/f-draggable/f-canvas/move-preparation/f-canvas-move-preparation.request.mjs +7 -0
- package/esm2022/f-draggable/f-canvas/move-preparation/index.mjs +3 -0
- package/esm2022/f-draggable/f-canvas/providers.mjs +7 -0
- package/esm2022/f-draggable/f-connection/f-create-connection/create-finalize/f-create-connection-finalize.execution.mjs +61 -0
- package/esm2022/f-draggable/f-connection/f-create-connection/create-finalize/f-create-connection-finalize.request.mjs +7 -0
- package/esm2022/f-draggable/f-connection/f-create-connection/create-finalize/index.mjs +3 -0
- package/esm2022/f-draggable/f-connection/f-create-connection/create-preparation/drag-handler-preparation/f-create-connection-drag-handler-preparation.execution.mjs +40 -0
- package/esm2022/f-draggable/f-connection/f-create-connection/create-preparation/drag-handler-preparation/f-create-connection-drag-handler-preparation.request.mjs +9 -0
- package/esm2022/f-draggable/f-connection/f-create-connection/create-preparation/drag-handler-preparation/index.mjs +3 -0
- package/esm2022/f-draggable/f-connection/f-create-connection/create-preparation/f-create-connection-preparation.execution.mjs +48 -0
- package/esm2022/f-draggable/f-connection/f-create-connection/create-preparation/f-create-connection-preparation.request.mjs +9 -0
- package/esm2022/f-draggable/f-connection/f-create-connection/create-preparation/from-outlet-preparation/f-create-connection-from-outlet-preparation.execution.mjs +54 -0
- package/esm2022/f-draggable/f-connection/f-create-connection/create-preparation/from-outlet-preparation/f-create-connection-from-outlet-preparation.request.mjs +9 -0
- package/esm2022/f-draggable/f-connection/f-create-connection/create-preparation/from-outlet-preparation/index.mjs +3 -0
- package/esm2022/f-draggable/f-connection/f-create-connection/create-preparation/from-output-preparation/f-create-connection-from-output-preparation.execution.mjs +49 -0
- package/esm2022/f-draggable/f-connection/f-create-connection/create-preparation/from-output-preparation/f-create-connection-from-output-preparation.request.mjs +9 -0
- package/esm2022/f-draggable/f-connection/f-create-connection/create-preparation/from-output-preparation/index.mjs +3 -0
- package/esm2022/f-draggable/f-connection/f-create-connection/create-preparation/index.mjs +6 -0
- package/esm2022/f-draggable/f-connection/f-create-connection/f-create-connection.drag-handler.mjs +95 -0
- package/esm2022/f-draggable/f-connection/f-create-connection/f-create-connection.event.mjs +11 -0
- package/esm2022/f-draggable/f-connection/f-create-connection/get-first-connectable-output/get-first-connectable-output.execution.mjs +47 -0
- package/esm2022/f-draggable/f-connection/f-create-connection/get-first-connectable-output/get-first-connectable-output.request.mjs +7 -0
- package/esm2022/f-draggable/f-connection/f-create-connection/get-first-connectable-output/index.mjs +3 -0
- package/esm2022/f-draggable/f-connection/f-create-connection/i-f-create-connection-drag-result.mjs +2 -0
- package/esm2022/f-draggable/f-connection/f-create-connection/index.mjs +7 -0
- package/esm2022/f-draggable/f-connection/f-reassign-connection/f-reassign-connection.drag-handler.mjs +105 -0
- package/esm2022/f-draggable/f-connection/f-reassign-connection/f-reassign-connection.event.mjs +15 -0
- package/esm2022/f-draggable/f-connection/f-reassign-connection/i-f-reassign-connection-drag-result.mjs +2 -0
- package/esm2022/f-draggable/f-connection/f-reassign-connection/index.mjs +6 -0
- package/esm2022/f-draggable/f-connection/f-reassign-connection/reassign-connection-finalize/f-reassign-connection-finalize.execution.mjs +63 -0
- package/esm2022/f-draggable/f-connection/f-reassign-connection/reassign-connection-finalize/f-reassign-connection-finalize.request.mjs +7 -0
- package/esm2022/f-draggable/f-connection/f-reassign-connection/reassign-connection-finalize/index.mjs +3 -0
- package/esm2022/f-draggable/f-connection/f-reassign-connection/reassign-connection-preparation/f-reassign-connection-preparation.execution.mjs +72 -0
- package/esm2022/f-draggable/f-connection/f-reassign-connection/reassign-connection-preparation/f-reassign-connection-preparation.request.mjs +9 -0
- package/esm2022/f-draggable/f-connection/f-reassign-connection/reassign-connection-preparation/index.mjs +3 -0
- package/esm2022/f-draggable/f-connection/index.mjs +4 -0
- package/esm2022/f-draggable/f-connection/providers.mjs +13 -0
- package/esm2022/f-draggable/f-drag-handler/f-drag-handler-result.mjs +20 -0
- package/esm2022/f-draggable/f-drag-handler/i-f-drag-handler.mjs +2 -0
- package/esm2022/f-draggable/f-drag-handler/index.mjs +3 -0
- 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 +68 -32
- package/esm2022/f-draggable/f-injector.mjs +19 -0
- package/esm2022/f-draggable/f-selection-change-event.mjs +8 -8
- package/esm2022/f-draggable/f-single-select/f-single-select.execution.mjs +137 -0
- package/esm2022/f-draggable/f-single-select/f-single-select.request.mjs +9 -0
- package/esm2022/f-draggable/f-single-select/index.mjs +4 -0
- package/esm2022/f-draggable/f-single-select/providers.mjs +5 -0
- package/esm2022/f-draggable/index.mjs +6 -6
- 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 +6 -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-drag-to-parent.drag-handler.mjs +2 -1
- 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 +13 -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 +41 -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 +52 -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/providers.mjs +4 -4
- package/esm2022/f-external-item/domain/create-placeholder/f-external-item-create-placeholder.execution.mjs +41 -0
- package/esm2022/f-external-item/domain/create-placeholder/f-external-item-create-placeholder.request.mjs +7 -0
- package/esm2022/f-external-item/domain/create-placeholder/index.mjs +3 -0
- package/esm2022/f-external-item/domain/create-preview/f-external-item-create-preview.execution.mjs +52 -0
- package/esm2022/f-external-item/domain/create-preview/f-external-item-create-preview.request.mjs +7 -0
- package/esm2022/f-external-item/domain/create-preview/index.mjs +3 -0
- package/esm2022/f-external-item/domain/f-external-item.drag-handler.mjs +71 -0
- package/esm2022/f-external-item/domain/finalize/f-external-item-finalize.execution.mjs +62 -0
- package/esm2022/f-external-item/domain/finalize/f-external-item-finalize.request.mjs +7 -0
- package/esm2022/f-external-item/domain/finalize/index.mjs +3 -0
- package/esm2022/f-external-item/domain/i-f-external-item-drag-result.mjs +2 -0
- package/esm2022/f-external-item/domain/index.mjs +7 -4
- package/esm2022/f-external-item/domain/preparation/f-external-item-preparation.execution.mjs +47 -0
- package/esm2022/f-external-item/domain/preparation/f-external-item-preparation.request.mjs +7 -0
- package/esm2022/f-external-item/domain/preparation/index.mjs +3 -0
- package/esm2022/f-external-item/domain/providers.mjs +9 -5
- package/esm2022/f-external-item/f-external-item-base.mjs +2 -3
- package/esm2022/f-external-item/f-external-item-placeholder.directive.mjs +26 -0
- package/esm2022/f-external-item/f-external-item-preview.directive.mjs +26 -0
- package/esm2022/f-external-item/f-external-item-token.mjs +3 -0
- package/esm2022/f-external-item/f-external-item.directive.mjs +25 -17
- package/esm2022/f-external-item/f-external-item.service.mjs +6 -6
- package/esm2022/f-external-item/index.mjs +6 -4
- package/esm2022/f-flow/f-flow.component.mjs +15 -15
- package/esm2022/f-flow.module.mjs +13 -17
- package/esm2022/f-minimap/domain/f-minimap.drag-handler.mjs +3 -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 +33 -29
- package/esm2022/f-selection-area/f-selection-area.component.mjs +11 -6
- package/esm2022/f-zoom/f-zoom.directive.mjs +7 -1
- 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-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/domain/f-drag-started-event.d.ts +5 -0
- package/f-draggable/domain/index.d.ts +1 -0
- package/f-draggable/f-canvas/f-canvas.drag-handler.d.ts +10 -0
- package/f-draggable/f-canvas/index.d.ts +4 -0
- package/f-draggable/f-canvas/move-finalize/f-canvas-move-finalize.execution.d.ts +10 -0
- package/f-draggable/{single-select/single-select.request.d.ts → f-canvas/move-finalize/f-canvas-move-finalize.request.d.ts} +1 -1
- package/f-draggable/f-canvas/move-finalize/index.d.ts +2 -0
- package/f-draggable/f-canvas/move-preparation/f-canvas-move-preparation.execution.d.ts +15 -0
- package/f-draggable/{canvas/canvas-move-preparation/canvas-move-preparation.request.d.ts → f-canvas/move-preparation/f-canvas-move-preparation.request.d.ts} +1 -1
- package/f-draggable/f-canvas/move-preparation/index.d.ts +2 -0
- package/f-draggable/f-canvas/providers.d.ts +3 -0
- package/f-draggable/f-connection/f-create-connection/create-finalize/f-create-connection-finalize.execution.d.ts +19 -0
- package/f-draggable/f-connection/f-create-connection/create-finalize/f-create-connection-finalize.request.d.ts +5 -0
- package/f-draggable/f-connection/f-create-connection/create-finalize/index.d.ts +2 -0
- package/f-draggable/f-connection/f-create-connection/create-preparation/drag-handler-preparation/f-create-connection-drag-handler-preparation.execution.d.ts +12 -0
- package/f-draggable/f-connection/f-create-connection/create-preparation/drag-handler-preparation/f-create-connection-drag-handler-preparation.request.d.ts +7 -0
- package/f-draggable/f-connection/f-create-connection/create-preparation/drag-handler-preparation/index.d.ts +2 -0
- package/f-draggable/f-connection/f-create-connection/create-preparation/f-create-connection-preparation.execution.d.ts +15 -0
- package/f-draggable/f-connection/f-create-connection/create-preparation/f-create-connection-preparation.request.d.ts +7 -0
- package/f-draggable/f-connection/f-create-connection/create-preparation/from-outlet-preparation/f-create-connection-from-outlet-preparation.execution.d.ts +14 -0
- package/f-draggable/f-connection/f-create-connection/create-preparation/from-outlet-preparation/f-create-connection-from-outlet-preparation.request.d.ts +7 -0
- package/f-draggable/f-connection/f-create-connection/create-preparation/from-outlet-preparation/index.d.ts +2 -0
- package/f-draggable/f-connection/f-create-connection/create-preparation/from-output-preparation/f-create-connection-from-output-preparation.execution.d.ts +14 -0
- package/f-draggable/f-connection/f-create-connection/create-preparation/from-output-preparation/f-create-connection-from-output-preparation.request.d.ts +7 -0
- package/f-draggable/f-connection/f-create-connection/create-preparation/from-output-preparation/index.d.ts +2 -0
- package/f-draggable/f-connection/f-create-connection/create-preparation/index.d.ts +5 -0
- package/f-draggable/f-connection/f-create-connection/f-create-connection.drag-handler.d.ts +27 -0
- package/f-draggable/f-connection/f-create-connection/get-first-connectable-output/get-first-connectable-output.execution.d.ts +16 -0
- package/f-draggable/f-connection/f-create-connection/get-first-connectable-output/get-first-connectable-output.request.d.ts +5 -0
- package/f-draggable/f-connection/f-create-connection/get-first-connectable-output/index.d.ts +2 -0
- package/f-draggable/{connections/i-create-reassign-connection-drag-data.d.ts → f-connection/f-create-connection/i-f-create-connection-drag-result.d.ts} +2 -2
- package/f-draggable/f-connection/f-create-connection/index.d.ts +6 -0
- package/f-draggable/{connections/reassign-connection/reassign-connection.drag-handler.d.ts → f-connection/f-reassign-connection/f-reassign-connection.drag-handler.d.ts} +7 -9
- package/f-draggable/f-connection/f-reassign-connection/i-f-reassign-connection-drag-result.d.ts +8 -0
- package/f-draggable/{connections/reassign-connection → f-connection/f-reassign-connection}/index.d.ts +2 -1
- package/f-draggable/f-connection/f-reassign-connection/reassign-connection-finalize/f-reassign-connection-finalize.execution.d.ts +20 -0
- package/f-draggable/{connections/create-connection/create-connection-preparation/create-connection-preparation.request.d.ts → f-connection/f-reassign-connection/reassign-connection-finalize/f-reassign-connection-finalize.request.d.ts} +1 -1
- package/f-draggable/f-connection/f-reassign-connection/reassign-connection-finalize/index.d.ts +2 -0
- package/f-draggable/{connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.execution.d.ts → f-connection/f-reassign-connection/reassign-connection-preparation/f-reassign-connection-preparation.execution.d.ts} +5 -5
- package/f-draggable/f-connection/f-reassign-connection/reassign-connection-preparation/f-reassign-connection-preparation.request.d.ts +7 -0
- package/f-draggable/f-connection/f-reassign-connection/reassign-connection-preparation/index.d.ts +2 -0
- package/f-draggable/f-connection/index.d.ts +3 -0
- package/f-draggable/f-connection/providers.d.ts +3 -0
- package/f-draggable/f-drag-handler/f-drag-handler-result.d.ts +9 -0
- package/f-draggable/{i-draggable-item.d.ts → f-drag-handler/i-f-drag-handler.d.ts} +3 -2
- package/f-draggable/f-drag-handler/index.d.ts +2 -0
- package/f-draggable/f-draggable-base.d.ts +6 -3
- package/f-draggable/f-draggable-data-context.d.ts +4 -4
- package/f-draggable/f-draggable.directive.d.ts +19 -5
- package/f-draggable/f-injector.d.ts +8 -0
- package/f-draggable/f-selection-change-event.d.ts +4 -4
- package/f-draggable/f-single-select/f-single-select.execution.d.ts +62 -0
- package/f-draggable/f-single-select/f-single-select.request.d.ts +7 -0
- package/f-draggable/f-single-select/index.d.ts +3 -0
- package/f-draggable/f-single-select/providers.d.ts +2 -0
- package/f-draggable/index.d.ts +5 -5
- 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 +5 -5
- 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-drag-to-parent.drag-handler.d.ts +3 -2
- package/f-draggable/node/node-move-finalize/node-move-finalize.execution.d.ts +2 -0
- package/f-draggable/node/node.drag-handler.d.ts +9 -11
- 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 +16 -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 +20 -14
- 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-external-item/domain/create-placeholder/f-external-item-create-placeholder.execution.d.ts +13 -0
- package/f-external-item/domain/create-placeholder/f-external-item-create-placeholder.request.d.ts +5 -0
- package/f-external-item/domain/create-placeholder/index.d.ts +2 -0
- package/f-external-item/domain/create-preview/f-external-item-create-preview.execution.d.ts +14 -0
- package/f-external-item/domain/create-preview/f-external-item-create-preview.request.d.ts +5 -0
- package/f-external-item/domain/create-preview/index.d.ts +2 -0
- package/f-external-item/domain/f-external-item.drag-handler.d.ts +24 -0
- package/f-external-item/domain/finalize/f-external-item-finalize.execution.d.ts +21 -0
- package/{f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.request.d.ts → f-external-item/domain/finalize/f-external-item-finalize.request.d.ts} +1 -1
- package/f-external-item/domain/finalize/index.d.ts +2 -0
- package/f-external-item/domain/i-f-external-item-drag-result.d.ts +5 -0
- package/f-external-item/domain/index.d.ts +6 -3
- package/f-external-item/domain/preparation/f-external-item-preparation.execution.d.ts +15 -0
- package/{f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.request.d.ts → f-external-item/domain/preparation/f-external-item-preparation.request.d.ts} +1 -1
- package/f-external-item/domain/preparation/index.d.ts +2 -0
- package/f-external-item/domain/providers.d.ts +5 -1
- package/f-external-item/f-external-item-base.d.ts +4 -2
- package/f-external-item/f-external-item-placeholder.directive.d.ts +10 -0
- package/f-external-item/f-external-item-preview.directive.d.ts +10 -0
- package/f-external-item/f-external-item-token.d.ts +3 -0
- package/f-external-item/f-external-item.directive.d.ts +9 -6
- package/f-external-item/f-external-item.service.d.ts +1 -1
- package/f-external-item/index.d.ts +5 -3
- package/f-flow.module.d.ts +14 -15
- package/f-minimap/domain/f-minimap.drag-handler.d.ts +3 -2
- 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-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 +10 -8
- package/f-selection-area/f-selection-area.component.d.ts +3 -1
- package/f-storage/providers.d.ts +1 -1
- package/f-zoom/f-zoom.directive.d.ts +3 -0
- package/fesm2022/foblex-flow.mjs +2492 -2273
- 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 +3 -3
- 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/canvas/canvas-move-finalize/canvas-move-finalize.execution.mjs +0 -29
- package/esm2022/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.request.mjs +0 -7
- package/esm2022/f-draggable/canvas/canvas-move-finalize/index.mjs +0 -3
- package/esm2022/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.execution.mjs +0 -55
- package/esm2022/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.request.mjs +0 -7
- package/esm2022/f-draggable/canvas/canvas-move-preparation/index.mjs +0 -3
- package/esm2022/f-draggable/canvas/canvas.drag-handler.mjs +0 -19
- package/esm2022/f-draggable/canvas/index.mjs +0 -5
- package/esm2022/f-draggable/canvas/providers.mjs +0 -7
- package/esm2022/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.execution.mjs +0 -68
- package/esm2022/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.request.mjs +0 -7
- package/esm2022/f-draggable/connections/create-connection/create-connection-finalize/index.mjs +0 -3
- 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-outlet-preparation/create-connection-from-outlet-preparation.execution.mjs +0 -56
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/create-connection-from-outlet-preparation.request.mjs +0 -7
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/index.mjs +0 -3
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.execution.mjs +0 -41
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.request.mjs +0 -7
- 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/create-connection-preparation/create-connection-from-output-preparation/index.mjs +0 -4
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.execution.mjs +0 -52
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.request.mjs +0 -7
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/index.mjs +0 -6
- package/esm2022/f-draggable/connections/create-connection/create-connection.drag-handler.mjs +0 -89
- package/esm2022/f-draggable/connections/create-connection/f-create-connection.event.mjs +0 -11
- package/esm2022/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.execution.mjs +0 -44
- package/esm2022/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.request.mjs +0 -7
- 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/connections/create-connection/get-can-be-connected-output-by-outlet/index.mjs +0 -4
- package/esm2022/f-draggable/connections/create-connection/index.mjs +0 -6
- package/esm2022/f-draggable/connections/i-create-reassign-connection-drag-data.mjs +0 -2
- package/esm2022/f-draggable/connections/index.mjs +0 -5
- package/esm2022/f-draggable/connections/providers.mjs +0 -15
- package/esm2022/f-draggable/connections/reassign-connection/f-reassign-connection.event.mjs +0 -15
- package/esm2022/f-draggable/connections/reassign-connection/index.mjs +0 -5
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/index.mjs +0 -3
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.execution.mjs +0 -64
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.request.mjs +0 -7
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-preparation/index.mjs +0 -3
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.execution.mjs +0 -72
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.request.mjs +0 -7
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.mjs +0 -102
- package/esm2022/f-draggable/i-draggable-item.mjs +0 -2
- 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-draggable/single-select/index.mjs +0 -4
- package/esm2022/f-draggable/single-select/providers.mjs +0 -5
- package/esm2022/f-draggable/single-select/single-select.execution.mjs +0 -106
- package/esm2022/f-draggable/single-select/single-select.request.mjs +0 -7
- package/esm2022/f-external-item/domain/external-item-finalize/external-item-finalize.execution.mjs +0 -68
- package/esm2022/f-external-item/domain/external-item-finalize/external-item-finalize.request.mjs +0 -7
- package/esm2022/f-external-item/domain/external-item-finalize/index.mjs +0 -4
- package/esm2022/f-external-item/domain/external-item-finalize/providers.mjs +0 -5
- package/esm2022/f-external-item/domain/external-item-preparation/external-item-preparation.execution.mjs +0 -47
- package/esm2022/f-external-item/domain/external-item-preparation/external-item-preparation.request.mjs +0 -7
- package/esm2022/f-external-item/domain/external-item-preparation/external-item-preparation.validator.mjs +0 -30
- package/esm2022/f-external-item/domain/external-item-preparation/index.mjs +0 -5
- package/esm2022/f-external-item/domain/external-item-preparation/providers.mjs +0 -7
- package/esm2022/f-external-item/domain/external-item.drag-handler.mjs +0 -39
- package/esm2022/f-external-item/providers.mjs +0 -5
- 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/canvas/canvas-move-finalize/canvas-move-finalize.execution.d.ts +0 -10
- package/f-draggable/canvas/canvas-move-finalize/index.d.ts +0 -2
- package/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.execution.d.ts +0 -15
- package/f-draggable/canvas/canvas-move-preparation/index.d.ts +0 -2
- package/f-draggable/canvas/canvas.drag-handler.d.ts +0 -11
- package/f-draggable/canvas/index.d.ts +0 -4
- package/f-draggable/canvas/providers.d.ts +0 -3
- package/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.execution.d.ts +0 -23
- package/f-draggable/connections/create-connection/create-connection-finalize/index.d.ts +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-outlet-preparation/create-connection-from-outlet-preparation.execution.d.ts +0 -14
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/create-connection-from-outlet-preparation.request.d.ts +0 -5
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/index.d.ts +0 -2
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.execution.d.ts +0 -14
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.request.d.ts +0 -5
- 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/create-connection-preparation/create-connection-from-output-preparation/index.d.ts +0 -3
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.execution.d.ts +0 -16
- package/f-draggable/connections/create-connection/create-connection-preparation/index.d.ts +0 -5
- package/f-draggable/connections/create-connection/create-connection.drag-handler.d.ts +0 -28
- package/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.execution.d.ts +0 -16
- package/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.request.d.ts +0 -5
- 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/connections/create-connection/get-can-be-connected-output-by-outlet/index.d.ts +0 -3
- package/f-draggable/connections/create-connection/index.d.ts +0 -5
- package/f-draggable/connections/index.d.ts +0 -4
- package/f-draggable/connections/providers.d.ts +0 -3
- package/f-draggable/connections/reassign-connection/reassign-connection-finalize/index.d.ts +0 -2
- package/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.execution.d.ts +0 -20
- package/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.request.d.ts +0 -5
- package/f-draggable/connections/reassign-connection/reassign-connection-preparation/index.d.ts +0 -2
- package/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.request.d.ts +0 -5
- 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-draggable/single-select/index.d.ts +0 -3
- package/f-draggable/single-select/providers.d.ts +0 -2
- package/f-draggable/single-select/single-select.execution.d.ts +0 -28
- package/f-external-item/domain/external-item-finalize/external-item-finalize.execution.d.ts +0 -24
- package/f-external-item/domain/external-item-finalize/external-item-finalize.request.d.ts +0 -5
- package/f-external-item/domain/external-item-finalize/index.d.ts +0 -3
- package/f-external-item/domain/external-item-finalize/providers.d.ts +0 -2
- package/f-external-item/domain/external-item-preparation/external-item-preparation.execution.d.ts +0 -19
- package/f-external-item/domain/external-item-preparation/external-item-preparation.request.d.ts +0 -5
- package/f-external-item/domain/external-item-preparation/external-item-preparation.validator.d.ts +0 -12
- package/f-external-item/domain/external-item-preparation/index.d.ts +0 -4
- package/f-external-item/domain/external-item-preparation/providers.d.ts +0 -3
- package/f-external-item/domain/external-item.drag-handler.d.ts +0 -17
- package/f-external-item/providers.d.ts +0 -2
- 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
- /package/f-draggable/{connections/create-connection → f-connection/f-create-connection}/f-create-connection.event.d.ts +0 -0
- /package/f-draggable/{connections/reassign-connection → f-connection/f-reassign-connection}/f-reassign-connection.event.d.ts +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { RedrawConnectionsRequest } from './redraw-connections-request';
|
|
2
|
-
import {
|
|
3
|
-
import { FMediator, IExecution } from '@foblex/mediator';
|
|
2
|
+
import { IExecution } from '@foblex/mediator';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class RedrawConnectionsExecution implements IExecution<RedrawConnectionsRequest, void> {
|
|
6
|
-
private
|
|
7
|
-
private
|
|
8
|
-
constructor(fComponentsStore: FComponentsStore, fMediator: FMediator);
|
|
5
|
+
private _fMediator;
|
|
6
|
+
private _fComponentsStore;
|
|
9
7
|
handle(request: RedrawConnectionsRequest): void;
|
|
8
|
+
private _getOutput;
|
|
9
|
+
private _getInput;
|
|
10
10
|
private _resetConnectors;
|
|
11
11
|
private _setupConnection;
|
|
12
|
-
private
|
|
13
|
-
private
|
|
12
|
+
private _getLine;
|
|
13
|
+
private _setMarkers;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<RedrawConnectionsExecution, never>;
|
|
15
15
|
static ɵprov: i0.ɵɵInjectableDeclaration<RedrawConnectionsExecution>;
|
|
16
16
|
}
|
|
@@ -5,14 +5,15 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class FindInputAtPositionExecution implements IExecution<FindInputAtPositionRequest, FConnectorBase | undefined> {
|
|
6
6
|
private _fMediator;
|
|
7
7
|
private _fComponentsStore;
|
|
8
|
-
private _fDraggableDataContext;
|
|
9
8
|
private _fBrowser;
|
|
9
|
+
private get _transform();
|
|
10
|
+
private get _fHost();
|
|
10
11
|
private get _fNodes();
|
|
11
12
|
private get _fSnapConnection();
|
|
12
13
|
handle(payload: FindInputAtPositionRequest): FConnectorBase | undefined;
|
|
13
14
|
private _findInputsAtPosition;
|
|
14
15
|
private _getConnectableInputsAtPosition;
|
|
15
|
-
private
|
|
16
|
+
private _getPointInFlow;
|
|
16
17
|
private _calculateClosetInput;
|
|
17
18
|
private _isValidClosestInput;
|
|
18
19
|
private _getFirstConnectableInputOfNodeAtPosition;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FNodeOutletBase, FNodeOutputBase } from '../../../f-connectors';
|
|
2
2
|
export declare class GetAllCanBeConnectedInputsAndRectsRequest {
|
|
3
|
-
|
|
4
|
-
constructor(
|
|
3
|
+
fOutputOrOutlet: FNodeOutputBase | FNodeOutletBase;
|
|
4
|
+
constructor(fOutputOrOutlet: FNodeOutputBase | FNodeOutletBase);
|
|
5
5
|
}
|
|
@@ -6,6 +6,7 @@ export declare class EndDragSequenceExecution implements IExecution<EndDragSeque
|
|
|
6
6
|
private get _hostElement();
|
|
7
7
|
private _fDraggableDataContext;
|
|
8
8
|
handle(request: EndDragSequenceRequest): void;
|
|
9
|
+
private _emitDragEnded;
|
|
9
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<EndDragSequenceExecution, never>;
|
|
10
11
|
static ɵprov: i0.ɵɵInjectableDeclaration<EndDragSequenceExecution>;
|
|
11
12
|
}
|
|
@@ -7,4 +7,4 @@ import { InitializeDragSequenceExecution } from './initialize-drag-sequence';
|
|
|
7
7
|
import { OnPointerMoveExecution } from './on-pointer-move';
|
|
8
8
|
import { IsDragStartedExecution } from './is-drag-started';
|
|
9
9
|
import { StartDragSequenceExecution } from './start-drag-sequence';
|
|
10
|
-
export declare const F_DRAGGABLE_FEATURES: (typeof
|
|
10
|
+
export declare const F_DRAGGABLE_FEATURES: (typeof PrepareDragSequenceExecution | typeof StartDragSequenceExecution | typeof InitializeDragSequenceExecution | typeof OnPointerMoveExecution | typeof EndDragSequenceExecution | typeof EmitSelectionChangeEventExecution | typeof AddDndToStoreExecution | typeof IsDragStartedExecution | typeof RemoveDndFromStoreExecution)[];
|
|
@@ -4,9 +4,10 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class StartDragSequenceExecution implements IExecution<StartDragSequenceRequest, void> {
|
|
5
5
|
private _fMediator;
|
|
6
6
|
private _fComponentsStore;
|
|
7
|
-
private get _hostElement();
|
|
8
7
|
private _fDraggableDataContext;
|
|
8
|
+
private get _hostElement();
|
|
9
9
|
handle(request: StartDragSequenceRequest): void;
|
|
10
|
+
private _emitDragStarted;
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<StartDragSequenceExecution, never>;
|
|
11
12
|
static ɵprov: i0.ɵɵInjectableDeclaration<StartDragSequenceExecution>;
|
|
12
13
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type FEventTrigger = (event: TriggerEvent) => boolean;
|
|
2
|
+
export type TriggerEvent = MouseEvent | TouchEvent | WheelEvent;
|
|
3
|
+
export declare function isValidEventTrigger(event: TriggerEvent, fTrigger: FEventTrigger): boolean;
|
|
4
|
+
export declare function defaultEventTrigger(event: TriggerEvent): boolean;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { ClearSelectionRequest } from './clear-selection.request';
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
|
-
import { FDraggableDataContext } from '../../../f-draggable';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class ClearSelectionExecution implements IExecution<ClearSelectionRequest, void> {
|
|
6
|
-
private
|
|
7
|
-
constructor(fDraggableDataContext: FDraggableDataContext);
|
|
5
|
+
private _fDraggableDataContext;
|
|
8
6
|
handle(request: ClearSelectionRequest): void;
|
|
9
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<ClearSelectionExecution, never>;
|
|
10
8
|
static ɵprov: i0.ɵɵInjectableDeclaration<ClearSelectionExecution>;
|
package/domain/f-selection/get-can-be-selected-items/get-can-be-selected-items.execution.d.ts
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ICanBeSelectedElementAndRect } from './i-can-be-selected-element-and-rect';
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
|
-
import { FDraggableDataContext } from '../../../f-draggable';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class GetCanBeSelectedItemsExecution implements IExecution<void,
|
|
6
|
-
private fDraggableDataContext;
|
|
4
|
+
export declare class GetCanBeSelectedItemsExecution implements IExecution<void, ICanBeSelectedElementAndRect[]> {
|
|
7
5
|
private _fMediator;
|
|
8
6
|
private _fComponentsStore;
|
|
7
|
+
private _fDraggableDataContext;
|
|
9
8
|
private get fNodes();
|
|
10
9
|
private get fConnections();
|
|
11
10
|
private get transform();
|
|
12
|
-
|
|
13
|
-
handle(): ICanBeSelected[];
|
|
11
|
+
handle(): ICanBeSelectedElementAndRect[];
|
|
14
12
|
private getNodesWithRects;
|
|
15
13
|
private getConnectionsWithRects;
|
|
16
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<GetCanBeSelectedItemsExecution, never>;
|
|
@@ -4,4 +4,4 @@ import { SelectExecution } from './select';
|
|
|
4
4
|
import { SelectAllExecution } from './select-all';
|
|
5
5
|
import { SelectAndUpdateNodeLayerExecution } from './select-and-update-node-layer';
|
|
6
6
|
import { GetCanBeSelectedItemsExecution } from './get-can-be-selected-items';
|
|
7
|
-
export declare const F_SELECTION_FEATURES: (typeof
|
|
7
|
+
export declare const F_SELECTION_FEATURES: (typeof SelectAndUpdateNodeLayerExecution | typeof SelectAllExecution | typeof SelectExecution | typeof GetCurrentSelectionExecution | typeof GetCanBeSelectedItemsExecution | typeof ClearSelectionExecution)[];
|
package/domain/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export * from './sort-item-layers';
|
|
|
16
16
|
export * from './update-item-and-children-layers';
|
|
17
17
|
export * from './create-dom-element';
|
|
18
18
|
export * from './css-cls';
|
|
19
|
+
export * from './f-event-trigger';
|
|
19
20
|
export * from './i-f-action-trigger';
|
|
20
21
|
export * from './i-map';
|
|
21
22
|
export * from './is-mobile';
|
package/domain/providers.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ import { GetNormalizedPointExecution } from './get-normalized-point';
|
|
|
4
4
|
import { SortItemLayersExecution, SortItemsByParentExecution, SortNodeLayersExecution } from './sort-item-layers';
|
|
5
5
|
import { GetDeepChildrenNodesAndGroupsExecution } from './get-deep-children-nodes-and-groups';
|
|
6
6
|
import { GetElementRoundedRectExecution } from './get-element-rounded-rect';
|
|
7
|
-
export declare const COMMON_PROVIDERS: (typeof import("./f-canvas").AddCanvasToStoreExecution | typeof import("./f-canvas").CenterGroupOrNodeExecution | typeof import("./f-canvas").FitToFlowExecution | typeof import("./f-canvas").InputCanvasPositionExecution | typeof import("./f-canvas").InputCanvasScaleExecution | typeof import("./f-canvas").RedrawCanvasWithAnimationExecution | typeof import("./f-canvas").ResetScaleAndCenterExecution | typeof import("./f-canvas").UpdateScaleExecution | typeof import("./f-connection").AddConnectionForCreateToStoreExecution | typeof import("./f-connection").AddConnectionMarkerToStoreExecution | typeof import("./f-connection").AddConnectionToStoreExecution | typeof import("./f-connection").AddSnapConnectionToStoreExecution | typeof import("./f-connection").CreateConnectionMarkersExecution | typeof import("./f-connection").CalculateConnectionLineByBehaviorExecution | typeof import("./f-connection").
|
|
7
|
+
export declare const COMMON_PROVIDERS: (typeof import("./f-draggable").OnPointerMoveExecution | typeof import("./f-selection").SelectAndUpdateNodeLayerExecution | typeof import("./f-selection").SelectExecution | typeof import("./f-canvas").AddCanvasToStoreExecution | typeof import("./f-canvas").CenterGroupOrNodeExecution | typeof import("./f-canvas").FitToFlowExecution | typeof import("./f-canvas").InputCanvasPositionExecution | typeof import("./f-canvas").InputCanvasScaleExecution | typeof import("./f-canvas").RedrawCanvasWithAnimationExecution | typeof import("./f-canvas").ResetScaleAndCenterExecution | typeof import("./f-canvas").UpdateScaleExecution | typeof import("./f-connection").AddConnectionForCreateToStoreExecution | typeof import("./f-connection").AddConnectionMarkerToStoreExecution | typeof import("./f-connection").AddConnectionToStoreExecution | typeof import("./f-connection").AddSnapConnectionToStoreExecution | typeof import("./f-connection").CreateConnectionMarkersExecution | typeof import("./f-connection").CalculateConnectionLineByBehaviorExecution | typeof import("./f-connection").RemoveConnectionFromStoreExecution | typeof import("./f-connection").RemoveConnectionMarkerFromStoreExecution | typeof import("./f-background").AddBackgroundToStoreExecution | typeof import("./f-background").AddPatternToBackgroundExecution | typeof import("./f-background").RemoveBackgroundFromStoreExecution | typeof import("./f-background").SetBackgroundTransformExecution | typeof import("./f-connectors").AddInputToStoreExecution | typeof import("./f-connectors").AddOutletToStoreExecution | typeof import("./f-connectors").AddOutputToStoreExecution | typeof import("./f-connectors").CalculateClosestInputExecution | typeof import("./f-connectors").FindInputAtPositionExecution | typeof import("./f-connectors").GetAllCanBeConnectedInputsAndRectsExecution | typeof import("./f-connectors").GetConnectorAndRectExecution | typeof import("./f-connectors").MarkAllCanBeConnectedInputsExecution | typeof import("./f-connectors").RemoveInputFromStoreExecution | typeof import("./f-connectors").RemoveOutletFromStoreExecution | typeof import("./f-connectors").RemoveOutputFromStoreExecution | typeof import("./f-connectors").UnmarkAllCanBeConnectedInputsExecution | typeof import("./f-draggable").AddDndToStoreExecution | typeof import("./f-flow").AddFlowToStoreExecution | typeof import("./f-flow").GetFlowStateNodesExecution | typeof import("./f-line-alignment").AddLineAlignmentToStoreExecution | typeof import("./f-node").AddNodeToStoreExecution | typeof import("./f-node").CalculateNodesBoundingBoxNormalizedPositionExecution | typeof import("./f-node").GetNodePaddingExecution | typeof import("./f-node").GetParentNodesExecution | typeof import("./f-node").UpdateNodeWhenStateOrSizeChangedExecution | typeof import("./f-node").RemoveNodeFromStoreExecution | typeof GetElementRoundedRectExecution | typeof import("./f-zoom").AddZoomToStoreExecution | typeof import("./f-zoom").SetZoomExecution | typeof GetDeepChildrenNodesAndGroupsExecution | typeof GetNormalizedElementRectExecution | typeof GetNormalizedPointExecution | typeof SortItemLayersExecution | typeof SortItemsByParentExecution | typeof SortNodeLayersExecution | typeof UpdateItemAndChildrenLayersExecution | typeof MoveFrontElementsBeforeTargetElementExecution)[];
|
|
@@ -8,12 +8,12 @@ export declare class SortItemsByParentExecution implements IExecution<SortItemsB
|
|
|
8
8
|
private fMediator;
|
|
9
9
|
private fBrowser;
|
|
10
10
|
private fItemsContainer;
|
|
11
|
-
private get
|
|
11
|
+
private get _fItemElements();
|
|
12
12
|
constructor(fComponentsStore: FComponentsStore, fMediator: FMediator, fBrowser: BrowserService);
|
|
13
13
|
handle(request: SortItemsByParentRequest): void;
|
|
14
|
-
private
|
|
15
|
-
private
|
|
16
|
-
private
|
|
14
|
+
private _getItemsOfContainer;
|
|
15
|
+
private _getSortedChildrenItems;
|
|
16
|
+
private _getChildrenItems;
|
|
17
17
|
private moveChildrenItems;
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<SortItemsByParentExecution, never>;
|
|
19
19
|
static ɵprov: i0.ɵɵInjectableDeclaration<SortItemsByParentExecution>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ISelectable } from '../../mixins';
|
|
2
2
|
export declare class UpdateItemAndChildrenLayersRequest {
|
|
3
|
-
item:
|
|
3
|
+
item: ISelectable;
|
|
4
4
|
itemContainer: HTMLElement;
|
|
5
|
-
constructor(item:
|
|
5
|
+
constructor(item: ISelectable, itemContainer: HTMLElement);
|
|
6
6
|
}
|
|
@@ -18,7 +18,7 @@ let CenterGroupOrNodeExecution = class CenterGroupOrNodeExecution {
|
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
20
|
this.toCenter(this.getNodeRect(fNode), this.getFlowRect(), fNode.position);
|
|
21
|
-
this._fMediator.
|
|
21
|
+
this._fMediator.execute(new RedrawCanvasWithAnimationRequest(request.animated));
|
|
22
22
|
}
|
|
23
23
|
toCenter(fNodeRect, fFlowRect, position) {
|
|
24
24
|
this.transform.scaledPosition = PointExtensions.initialize();
|
|
@@ -43,4 +43,4 @@ export { CenterGroupOrNodeExecution };
|
|
|
43
43
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: CenterGroupOrNodeExecution, decorators: [{
|
|
44
44
|
type: Injectable
|
|
45
45
|
}] });
|
|
46
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
46
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJma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nQpOiB2b2lkIHtcbiAgICB0aGlzLnRyYW5zZm9ybS5zY2FsZWRQb3NpdGlvbiA9IFBvaW50RXh0ZW5zaW9ucy5pbml0aWFsaXplKCk7XG4gICAgdGhpcy50cmFuc2Zvcm0ucG9zaXRpb24gPSBQb2ludEV4dGVuc2lvbnMuaW5pdGlhbGl6ZShcbiAgICAgIChmRmxvd1JlY3Qud2lkdGggLSBmTm9kZVJlY3Qud2lkdGgpIC8gMiAtIHBvc2l0aW9uLnggKiB0aGlzLnRyYW5zZm9ybS5zY2FsZSxcbiAgICAgIChmRmxvd1JlY3QuaGVpZ2h0IC0gZk5vZGVSZWN0LmhlaWdodCkgLyAyIC0gcG9zaXRpb24ueSAqIHRoaXMudHJhbnNmb3JtLnNjYWxlXG4gICAgKTtcbiAgfVxuXG4gIHByaXZhdGUgZ2V0Tm9kZShpZDogc3RyaW5nKTogRk5vZGVCYXNlIHwgdW5kZWZpbmVkIHtcbiAgICByZXR1cm4gdGhpcy5fZkNvbXBvbmVudHNTdG9yZS5mTm9kZXMuZmluZCgoeCkgPT4geC5mSWQgPT09IGlkKTtcbiAgfVxuXG4gIHByaXZhdGUgZ2V0Tm9kZVJlY3QoZk5vZGU6IEZOb2RlQmFzZSk6IElSZWN0IHtcbiAgICByZXR1cm4gUmVjdEV4dGVuc2lvbnMuZnJvbUVsZW1lbnQoZk5vZGUuaG9zdEVsZW1lbnQpO1xuICB9XG5cbiAgcHJpdmF0ZSBnZXRGbG93UmVjdCgpOiBJUmVjdCB7XG4gICAgcmV0dXJuIFJlY3RFeHRlbnNpb25zLmZyb21FbGVtZW50KHRoaXMuX2ZDb21wb25lbnRzU3RvcmUuZkZsb3chLmhvc3RFbGVtZW50KTtcbiAgfVxufVxuIl19
|
|
@@ -13,12 +13,12 @@ let FitToFlowExecution = class FitToFlowExecution {
|
|
|
13
13
|
}
|
|
14
14
|
_fMediator = inject(FMediator);
|
|
15
15
|
handle(request) {
|
|
16
|
-
const fNodesRect = this._fMediator.
|
|
16
|
+
const fNodesRect = this._fMediator.execute(new CalculateNodesBoundingBoxRequest()) || RectExtensions.initialize();
|
|
17
17
|
if (fNodesRect.width === 0 || fNodesRect.height === 0) {
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
20
|
this.fitToParent(fNodesRect, RectExtensions.fromElement(this._fComponentsStore.fFlow.hostElement), this._fComponentsStore.fNodes.map((x) => x.position), request.toCenter);
|
|
21
|
-
this._fMediator.
|
|
21
|
+
this._fMediator.execute(new RedrawCanvasWithAnimationRequest(request.animated));
|
|
22
22
|
}
|
|
23
23
|
fitToParent(rect, parentRect, points, toCenter) {
|
|
24
24
|
this.transform.scaledPosition = PointExtensions.initialize();
|
|
@@ -48,4 +48,4 @@ export { FitToFlowExecution };
|
|
|
48
48
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: FitToFlowExecution, decorators: [{
|
|
49
49
|
type: Injectable
|
|
50
50
|
}] });
|
|
51
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
51
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZml0LXRvLWZsb3cuZXhlY3V0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9kb21haW4vZi1jYW52YXMvZml0LXRvLWZsb3cvZml0LXRvLWZsb3cuZXhlY3V0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNuRCxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUN6RCxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsU0FBUyxFQUFjLE1BQU0sa0JBQWtCLENBQUM7QUFDN0UsT0FBTyxFQUFr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-13,12 +13,12 @@ let ResetScaleAndCenterExecution = class ResetScaleAndCenterExecution {
|
|
|
13
13
|
}
|
|
14
14
|
_fMediator = inject(FMediator);
|
|
15
15
|
handle(request) {
|
|
16
|
-
const fNodesRect = this._fMediator.
|
|
16
|
+
const fNodesRect = this._fMediator.execute(new CalculateNodesBoundingBoxRequest()) || RectExtensions.initialize();
|
|
17
17
|
if (fNodesRect.width === 0 || fNodesRect.height === 0) {
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
20
|
this.oneToOneCentering(fNodesRect, RectExtensions.fromElement(this._fComponentsStore.fFlow.hostElement), this._fComponentsStore.fNodes.map((x) => x.position));
|
|
21
|
-
this._fMediator.
|
|
21
|
+
this._fMediator.execute(new RedrawCanvasWithAnimationRequest(request.animated));
|
|
22
22
|
}
|
|
23
23
|
oneToOneCentering(rect, parentRect, points) {
|
|
24
24
|
this.transform.scaledPosition = PointExtensions.initialize();
|
|
@@ -43,4 +43,4 @@ export { ResetScaleAndCenterExecution };
|
|
|
43
43
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: ResetScaleAndCenterExecution, decorators: [{
|
|
44
44
|
type: Injectable
|
|
45
45
|
}] });
|
|
46
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
46
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzZXQtc2NhbGUtYW5kLWNlbnRlci5leGVjdXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RvbWFpbi9mLWNhbnZhcy9yZXNldC1zY2FsZS1hbmQtY2VudGVyL3Jlc2V0LXNjYWxlLWFuZC1jZW50ZXIuZXhlY3V0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLFVBQVUsR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biAgICBjb25zdCBuZXdZID0gKHBhcmVudFJlY3QuaGVpZ2h0IC0gcmVjdC5oZWlnaHQgLyB0aGlzLnRyYW5zZm9ybS5zY2FsZSkgLyAyIC0gdGhpcy50cmFuc2Zvcm0ucG9zaXRpb24ueTtcblxuICAgIHRoaXMudHJhbnNmb3JtLnNjYWxlID0gMTtcbiAgICB0aGlzLnRyYW5zZm9ybS5wb3NpdGlvbiA9IFBvaW50RXh0ZW5zaW9ucy5pbml0aWFsaXplKG5ld1gsIG5ld1kpO1xuICB9XG5cbiAgcHJpdmF0ZSBnZXRaZXJvUG9zaXRpb25XaXRob3V0U2NhbGUocG9pbnRzOiBJUG9pbnRbXSk6IElQb2ludCB7XG4gICAgY29uc3QgeFBvaW50ID0gcG9pbnRzLmxlbmd0aCA/IE1hdGgubWluKC4uLnBvaW50cy5tYXAoKHBvaW50KSA9PiBwb2ludC54KSkgOiAwO1xuICAgIGNvbnN0IHlQb2ludCA9IHBvaW50cy5sZW5ndGggPyBNYXRoLm1pbiguLi5wb2ludHMubWFwKChwb2ludCkgPT4gcG9pbnQueSkpIDogMDtcbiAgICByZXR1cm4gUG9pbnRFeHRlbnNpb25zLmluaXRpYWxpemUoeFBvaW50LCB5UG9pbnQpXG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,56 +1,61 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
2
|
+
import { inject, Injectable } from '@angular/core';
|
|
3
3
|
import { RedrawConnectionsRequest } from './redraw-connections-request';
|
|
4
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
4
5
|
import { CalculateConnectionLineByBehaviorRequest } from '../calculate-connection-line-by-behavior';
|
|
5
|
-
import { FExecutionRegister } from '@foblex/mediator';
|
|
6
|
+
import { FExecutionRegister, FMediator } from '@foblex/mediator';
|
|
6
7
|
import { GetNormalizedElementRectRequest } from '../../get-normalized-element-rect';
|
|
7
8
|
import { CreateConnectionMarkersRequest } from '../create-connection-markers';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "../../../f-storage";
|
|
10
|
-
import * as i2 from "@foblex/mediator";
|
|
11
10
|
let RedrawConnectionsExecution = class RedrawConnectionsExecution {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
constructor(fComponentsStore, fMediator) {
|
|
15
|
-
this.fComponentsStore = fComponentsStore;
|
|
16
|
-
this.fMediator = fMediator;
|
|
17
|
-
}
|
|
11
|
+
_fMediator = inject(FMediator);
|
|
12
|
+
_fComponentsStore = inject(FComponentsStore);
|
|
18
13
|
handle(request) {
|
|
19
14
|
this._resetConnectors();
|
|
20
|
-
if (this.
|
|
21
|
-
this.
|
|
15
|
+
if (this._fComponentsStore.fTempConnection) {
|
|
16
|
+
this._setMarkers(this._fComponentsStore.fTempConnection);
|
|
22
17
|
}
|
|
23
|
-
if (this.
|
|
24
|
-
this.
|
|
18
|
+
if (this._fComponentsStore.fSnapConnection) {
|
|
19
|
+
this._setMarkers(this._fComponentsStore.fSnapConnection);
|
|
25
20
|
}
|
|
26
|
-
this.
|
|
27
|
-
|
|
28
|
-
const input = this.fComponentsStore.fInputs.find((x) => x.fId === connection.fInputId);
|
|
29
|
-
if (output && input) {
|
|
30
|
-
this._setupConnection(output, input, connection);
|
|
31
|
-
}
|
|
21
|
+
this._fComponentsStore.fConnections.forEach((x) => {
|
|
22
|
+
this._setupConnection(this._getOutput(x.fOutputId), this._getInput(x.fInputId), x);
|
|
32
23
|
});
|
|
33
24
|
}
|
|
25
|
+
_getOutput(id) {
|
|
26
|
+
const result = this._fComponentsStore.fOutputs.find((x) => x.fId === id);
|
|
27
|
+
if (!result) {
|
|
28
|
+
throw new Error(`Output with id ${id} not found`);
|
|
29
|
+
}
|
|
30
|
+
return result;
|
|
31
|
+
}
|
|
32
|
+
_getInput(id) {
|
|
33
|
+
const result = this._fComponentsStore.fInputs.find((x) => x.fId === id);
|
|
34
|
+
if (!result) {
|
|
35
|
+
throw new Error(`Input with id ${id} not found`);
|
|
36
|
+
}
|
|
37
|
+
return result;
|
|
38
|
+
}
|
|
34
39
|
_resetConnectors() {
|
|
35
|
-
this.
|
|
36
|
-
this.
|
|
40
|
+
this._fComponentsStore.fOutputs.forEach((x) => x.resetConnected());
|
|
41
|
+
this._fComponentsStore.fInputs.forEach((x) => x.resetConnected());
|
|
37
42
|
}
|
|
38
|
-
_setupConnection(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
const line = this.
|
|
42
|
-
this.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
_setupConnection(fOutput, fInput, fConnection) {
|
|
44
|
+
fOutput.setConnected(fInput);
|
|
45
|
+
fInput.setConnected(fOutput);
|
|
46
|
+
const line = this._getLine(fOutput, fInput, fConnection);
|
|
47
|
+
this._setMarkers(fConnection);
|
|
48
|
+
fConnection.setLine(line.point1, fOutput.fConnectableSide, line.point2, fInput.fConnectableSide);
|
|
49
|
+
fConnection.initialize();
|
|
50
|
+
fConnection.isSelected() ? fConnection.markAsSelected() : null;
|
|
46
51
|
}
|
|
47
|
-
|
|
48
|
-
return this.
|
|
52
|
+
_getLine(output, input, connection) {
|
|
53
|
+
return this._fMediator.execute(new CalculateConnectionLineByBehaviorRequest(this._fMediator.execute(new GetNormalizedElementRectRequest(output.hostElement, true)), this._fMediator.execute(new GetNormalizedElementRectRequest(input.hostElement, true)), connection.fBehavior, output.fConnectableSide, input.fConnectableSide));
|
|
49
54
|
}
|
|
50
|
-
|
|
51
|
-
this.
|
|
55
|
+
_setMarkers(connection) {
|
|
56
|
+
this._fMediator.execute(new CreateConnectionMarkersRequest(connection));
|
|
52
57
|
}
|
|
53
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: RedrawConnectionsExecution, deps: [
|
|
58
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: RedrawConnectionsExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
54
59
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: RedrawConnectionsExecution });
|
|
55
60
|
};
|
|
56
61
|
RedrawConnectionsExecution = __decorate([
|
|
@@ -59,5 +64,5 @@ RedrawConnectionsExecution = __decorate([
|
|
|
59
64
|
export { RedrawConnectionsExecution };
|
|
60
65
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: RedrawConnectionsExecution, decorators: [{
|
|
61
66
|
type: Injectable
|
|
62
|
-
}]
|
|
63
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
67
|
+
}] });
|
|
68
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVkcmF3LWNvbm5lY3Rpb25zLmV4ZWN1dGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZG9tYWluL2YtY29ubmVjdGlvbi9yZWRyYXctY29ubmVjdGlvbnMvcmVkcmF3LWNvbm5lY3Rpb25zLmV4ZWN1dGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQ0EsT0FBTyxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDbkQsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sOEJBQThCLENBQUM7QUFDeEUsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFDdEQsT0FBTyxFQUFFLHdDQUF3QyxFQUFFLE1BQU0sMENBQTBDLENBQUM7QUFHcEcsT0FBTyxFQUFFLGtCQUFrQixFQUFFLFNBQVMsRUFBYyxNQUFNLGtCQUFrQixDQUFDO0FBQzdFLE9BQU8sRUFBRSwrQkFBK0Is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