@foblex/flow 17.5.9 → 17.6.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/css-cls.d.ts +1 -1
- package/domain/f-background/add-background-to-store/add-background-to-store.execution.d.ts +4 -1
- package/domain/f-background/add-pattern-to-background/add-pattern-to-background.execution.d.ts +4 -1
- package/domain/f-background/providers.d.ts +4 -0
- package/domain/f-background/remove-background-from-store/remove-background-from-store.execution.d.ts +4 -1
- package/domain/f-background/set-background-transform/set-background-transform.execution.d.ts +4 -1
- package/domain/f-canvas/add-canvas-to-store/add-canvas-to-store.execution.d.ts +4 -1
- package/domain/f-canvas/center-group-or-node/center-group-or-node.execution.d.ts +4 -1
- package/domain/f-canvas/fit-to-flow/fit-to-flow.execution.d.ts +4 -1
- package/domain/f-canvas/get-canvas/get-canvas.execution.d.ts +4 -1
- package/domain/f-canvas/input-canvas-position/input-canvas-position.execution.d.ts +4 -1
- package/domain/f-canvas/input-canvas-scale/input-canvas-scale.execution.d.ts +5 -1
- package/domain/f-canvas/providers.d.ts +3 -0
- package/domain/f-canvas/redraw-canvas-with-animation/redraw-canvas-with-animation.execution.d.ts +6 -1
- package/domain/f-canvas/remove-canvas-from-store/remove-canvas-from-store.execution.d.ts +4 -1
- package/domain/f-canvas/reset-scale/reset-scale.execution.d.ts +4 -1
- package/domain/f-canvas/reset-scale-and-center/reset-scale-and-center.execution.d.ts +4 -1
- package/domain/f-canvas/update-scale/update-scale.execution.d.ts +5 -1
- package/domain/f-connection/add-connection-for-create-to-store/add-connection-for-create-to-store.execution.d.ts +4 -1
- package/domain/f-connection/add-connection-marker-to-store/add-connection-marker-to-store.execution.d.ts +4 -1
- package/domain/f-connection/add-connection-to-store/add-connection-to-store.execution.d.ts +4 -1
- package/domain/f-connection/add-snap-connection-to-store/add-snap-connection-to-store.execution.d.ts +4 -1
- package/domain/f-connection/calculate-connection-line-by-behavior/calculate-connection-line-by-behavior.execution.d.ts +3 -0
- package/domain/f-connection/calculate-connection-line-by-behavior/fixed-center-behavior.d.ts +5 -0
- package/domain/f-connection/calculate-connection-line-by-behavior/fixed-outbound-behavior.d.ts +5 -0
- package/domain/f-connection/calculate-connection-line-by-behavior/floating-behavior.d.ts +5 -0
- package/domain/f-connection/create-connection-markers/create-connection-markers.execution.d.ts +5 -5
- package/domain/f-connection/providers.d.ts +3 -0
- package/domain/f-connection/redraw-connections/redraw-connections.execution.d.ts +6 -1
- package/domain/f-connection/remove-connection-for-create-from-store/remove-connection-for-create-from-store.execution.d.ts +4 -1
- package/domain/f-connection/remove-connection-from-store/remove-connection-from-store.execution.d.ts +4 -1
- package/domain/f-connection/remove-connection-marker-from-store/remove-connection-marker-from-store.execution.d.ts +4 -1
- package/domain/f-connection/remove-snap-connection-from-store/remove-snap-connection-from-store.execution.d.ts +4 -1
- package/domain/f-connectors/add-input-to-store/add-input-to-store.execution.d.ts +4 -1
- package/domain/f-connectors/add-outlet-to-store/add-outlet-to-store.execution.d.ts +3 -0
- package/domain/f-connectors/add-output-to-store/add-output-to-store.execution.d.ts +3 -0
- package/domain/f-connectors/find-closest-connector/find-closest-connector.execution.d.ts +16 -0
- package/domain/f-connectors/find-closest-connector/find-closest-connector.request.d.ts +8 -0
- package/domain/f-connectors/find-closest-connector/index.d.ts +2 -0
- package/domain/f-connectors/find-connectable-connector-using-priority-and-position/find-connectable-connector-using-priority-and-position.execution.d.ts +30 -0
- package/domain/f-connectors/find-connectable-connector-using-priority-and-position/find-connectable-connector-using-priority-and-position.request.d.ts +8 -0
- package/domain/f-connectors/find-connectable-connector-using-priority-and-position/index.d.ts +2 -0
- package/domain/f-connectors/get-all-can-be-connected-inputs-and-rects/get-all-can-be-connected-inputs-and-rects.execution.d.ts +4 -1
- package/domain/f-connectors/get-all-can-be-connected-source-connectors-and-rects/get-all-can-be-connected-source-connectors-and-rects.execution.d.ts +18 -0
- package/domain/f-connectors/get-all-can-be-connected-source-connectors-and-rects/get-all-can-be-connected-source-connectors-and-rects.request.d.ts +6 -0
- package/domain/f-connectors/get-all-can-be-connected-source-connectors-and-rects/index.d.ts +2 -0
- package/domain/f-connectors/get-connector-and-rect/get-connector-and-rect.execution.d.ts +4 -1
- package/domain/f-connectors/{i-closest-input.d.ts → i-closest-connector.d.ts} +4 -1
- package/domain/f-connectors/index.d.ts +6 -5
- package/domain/f-connectors/mark-connectable-connectors/index.d.ts +2 -0
- package/domain/f-connectors/mark-connectable-connectors/mark-connectable-connectors.execution.d.ts +13 -0
- package/domain/f-connectors/mark-connectable-connectors/mark-connectable-connectors.request.d.ts +6 -0
- package/domain/f-connectors/providers.d.ts +6 -5
- package/domain/f-connectors/remove-input-from-store/remove-input-from-store.execution.d.ts +4 -1
- package/domain/f-connectors/remove-outlet-from-store/remove-outlet-from-store.execution.d.ts +4 -1
- package/domain/f-connectors/remove-output-from-store/remove-output-from-store.execution.d.ts +4 -1
- package/domain/f-connectors/unmark-connectable-connectors/index.d.ts +2 -0
- package/domain/f-connectors/unmark-connectable-connectors/unmark-connectable-connectors.execution.d.ts +13 -0
- package/domain/f-connectors/unmark-connectable-connectors/unmark-connectable-connectors.request.d.ts +6 -0
- package/domain/f-draggable/add-dnd-to-store/add-dnd-to-store.execution.d.ts +4 -1
- package/domain/f-draggable/emit-selection-change-event/emit-selection-change-event.execution.d.ts +7 -3
- package/domain/f-draggable/end-drag-sequence/end-drag-sequence.execution.d.ts +4 -1
- package/domain/f-draggable/initialize-drag-sequence/initialize-drag-sequence.execution.d.ts +3 -0
- package/domain/f-draggable/is-drag-started/is-drag-started.execution.d.ts +4 -1
- package/domain/f-draggable/on-pointer-move/on-pointer-move.execution.d.ts +6 -1
- package/domain/f-draggable/prepare-drag-sequence/prepare-drag-sequence.execution.d.ts +4 -1
- package/domain/f-draggable/providers.d.ts +4 -1
- package/domain/f-draggable/remove-dnd-from-store/remove-dnd-from-store.execution.d.ts +4 -1
- package/domain/f-draggable/start-drag-sequence/start-drag-sequence.execution.d.ts +5 -2
- package/domain/f-flow/add-flow-to-store/add-flow-to-store.execution.d.ts +4 -1
- package/domain/f-flow/get-flow/get-flow.execution.d.ts +4 -1
- package/domain/f-flow/get-flow-host-element/get-flow-host-element.execution.d.ts +4 -1
- package/domain/f-flow/get-flow-state/get-flow-state-connections/get-flow-state-connections.execution.d.ts +4 -1
- package/domain/f-flow/get-flow-state/get-flow-state-nodes/get-flow-state-nodes.execution.d.ts +4 -3
- package/domain/f-flow/get-flow-state/get-flow-state.execution.d.ts +5 -2
- package/domain/f-flow/get-flow-state/providers.d.ts +4 -1
- package/domain/f-flow/providers.d.ts +6 -1
- package/domain/f-flow/remove-flow-from-store/remove-flow-from-store.execution.d.ts +4 -1
- package/domain/f-line-alignment/add-line-alignment-to-store/add-line-alignment-to-store.execution.d.ts +4 -1
- package/domain/f-line-alignment/providers.d.ts +5 -0
- package/domain/f-line-alignment/remove-line-alignment-from-store/remove-line-alignment-from-store.execution.d.ts +4 -1
- package/domain/f-node/add-node-to-store/add-node-to-store.execution.d.ts +4 -1
- package/domain/f-node/calculate-input-connections/calculate-input-connections.execution.d.ts +4 -1
- package/domain/f-node/calculate-nodes-bounding-box/calculate-nodes-bounding-box.execution.d.ts +5 -1
- package/domain/f-node/calculate-nodes-bounding-box-normalized-position/calculate-nodes-bounding-box-normalized-position.execution.d.ts +6 -1
- package/domain/f-node/calculate-output-connections/calculate-output-connections.execution.d.ts +4 -1
- package/domain/f-node/get-node-padding/get-node-padding.execution.d.ts +4 -0
- package/domain/f-node/get-nodes/get-nodes.execution.d.ts +4 -1
- package/domain/f-node/get-parent-nodes/get-parent-nodes.execution.d.ts +4 -1
- package/domain/f-node/providers.d.ts +3 -0
- package/domain/f-node/remove-node-from-store/remove-node-from-store.execution.d.ts +4 -1
- package/domain/f-node/update-node-when-state-or-size-changed/update-node-when-state-or-size-changed.execution.d.ts +28 -1
- package/domain/f-selection/clear-selection/clear-selection.execution.d.ts +3 -0
- package/domain/f-selection/get-can-be-selected-items/get-can-be-selected-items.execution.d.ts +14 -2
- package/domain/f-selection/get-current-selection/get-current-selection.execution.d.ts +3 -0
- package/domain/f-selection/providers.d.ts +3 -0
- package/domain/f-selection/select/select.execution.d.ts +4 -1
- package/domain/f-selection/select-all/select-all.execution.d.ts +5 -1
- package/domain/f-selection/select-and-update-node-layer/select-and-update-node-layer.execution.d.ts +7 -5
- package/domain/f-zoom/add-zoom-to-store/add-zoom-to-store.execution.d.ts +4 -1
- package/domain/f-zoom/providers.d.ts +5 -0
- package/domain/f-zoom/remove-zoom-from-store/remove-zoom-from-store.execution.d.ts +4 -1
- package/domain/f-zoom/reset-zoom/reset-zoom.execution.d.ts +4 -1
- package/domain/f-zoom/set-zoom/set-zoom.execution.d.ts +6 -2
- package/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.execution.d.ts +5 -1
- package/domain/get-element-rounded-rect/get-element-rounded-rect.execution.d.ts +5 -1
- package/domain/get-normalized-connector-rect/get-normalized-connector-rect.execution.d.ts +7 -2
- package/domain/get-normalized-element-rect/get-normalized-element-rect.execution.d.ts +7 -2
- package/domain/get-normalized-point/get-normalized-point.execution.d.ts +6 -1
- package/domain/providers.d.ts +7 -1
- package/domain/sort-item-layers/sort-item-layers.execution.d.ts +9 -2
- package/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.execution.d.ts +8 -3
- package/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.execution.d.ts +8 -3
- package/domain/update-item-and-children-layers/move-front-elements-before-target-element/move-front-elements-before-target-element.execution.d.ts +4 -0
- package/domain/update-item-and-children-layers/update-item-and-children-layers.execution.d.ts +6 -2
- package/drag-toolkit/drag-and-drop-base.d.ts +60 -0
- package/esm2022/domain/css-cls.mjs +2 -2
- package/esm2022/domain/f-background/add-background-to-store/add-background-to-store.execution.mjs +6 -3
- package/esm2022/domain/f-background/add-pattern-to-background/add-pattern-to-background.execution.mjs +7 -4
- package/esm2022/domain/f-background/providers.mjs +5 -1
- package/esm2022/domain/f-background/remove-background-from-store/remove-background-from-store.execution.mjs +6 -3
- package/esm2022/domain/f-background/set-background-transform/set-background-transform.execution.mjs +6 -3
- package/esm2022/domain/f-canvas/add-canvas-to-store/add-canvas-to-store.execution.mjs +6 -3
- package/esm2022/domain/f-canvas/center-group-or-node/center-group-or-node.execution.mjs +8 -5
- package/esm2022/domain/f-canvas/fit-to-flow/fit-to-flow.execution.mjs +7 -4
- package/esm2022/domain/f-canvas/get-canvas/get-canvas.execution.mjs +6 -3
- package/esm2022/domain/f-canvas/input-canvas-position/input-canvas-position.execution.mjs +6 -3
- package/esm2022/domain/f-canvas/input-canvas-scale/input-canvas-scale.execution.mjs +7 -3
- package/esm2022/domain/f-canvas/providers.mjs +4 -1
- package/esm2022/domain/f-canvas/redraw-canvas-with-animation/redraw-canvas-with-animation.execution.mjs +13 -8
- package/esm2022/domain/f-canvas/remove-canvas-from-store/remove-canvas-from-store.execution.mjs +6 -3
- package/esm2022/domain/f-canvas/reset-scale/reset-scale.execution.mjs +6 -3
- package/esm2022/domain/f-canvas/reset-scale-and-center/reset-scale-and-center.execution.mjs +7 -4
- package/esm2022/domain/f-canvas/update-scale/update-scale.execution.mjs +7 -3
- package/esm2022/domain/f-connection/add-connection-for-create-to-store/add-connection-for-create-to-store.execution.mjs +6 -3
- package/esm2022/domain/f-connection/add-connection-marker-to-store/add-connection-marker-to-store.execution.mjs +6 -3
- package/esm2022/domain/f-connection/add-connection-to-store/add-connection-to-store.execution.mjs +7 -4
- package/esm2022/domain/f-connection/add-snap-connection-to-store/add-snap-connection-to-store.execution.mjs +6 -3
- package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/calculate-connection-line-by-behavior.execution.mjs +4 -1
- package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/fixed-center-behavior.mjs +6 -1
- package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/fixed-outbound-behavior.mjs +6 -1
- package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/floating-behavior.mjs +6 -1
- package/esm2022/domain/f-connection/create-connection-markers/create-connection-markers.execution.mjs +20 -18
- package/esm2022/domain/f-connection/providers.mjs +4 -1
- package/esm2022/domain/f-connection/redraw-connections/redraw-connections.execution.mjs +16 -11
- package/esm2022/domain/f-connection/remove-connection-for-create-from-store/remove-connection-for-create-from-store.execution.mjs +6 -3
- package/esm2022/domain/f-connection/remove-connection-from-store/remove-connection-from-store.execution.mjs +8 -5
- package/esm2022/domain/f-connection/remove-connection-marker-from-store/remove-connection-marker-from-store.execution.mjs +6 -3
- package/esm2022/domain/f-connection/remove-snap-connection-from-store/remove-snap-connection-from-store.execution.mjs +6 -3
- package/esm2022/domain/f-connectors/add-input-to-store/add-input-to-store.execution.mjs +6 -3
- package/esm2022/domain/f-connectors/add-outlet-to-store/add-outlet-to-store.execution.mjs +4 -1
- package/esm2022/domain/f-connectors/add-output-to-store/add-output-to-store.execution.mjs +4 -1
- package/esm2022/domain/f-connectors/find-closest-connector/find-closest-connector.execution.mjs +47 -0
- package/esm2022/domain/f-connectors/find-closest-connector/find-closest-connector.request.mjs +10 -0
- package/esm2022/domain/f-connectors/{find-input-at-position → find-closest-connector}/index.mjs +3 -3
- package/esm2022/domain/f-connectors/find-connectable-connector-using-priority-and-position/find-connectable-connector-using-priority-and-position.execution.mjs +98 -0
- package/esm2022/domain/f-connectors/find-connectable-connector-using-priority-and-position/find-connectable-connector-using-priority-and-position.request.mjs +10 -0
- package/esm2022/domain/f-connectors/find-connectable-connector-using-priority-and-position/index.mjs +3 -0
- package/esm2022/domain/f-connectors/get-all-can-be-connected-inputs-and-rects/get-all-can-be-connected-inputs-and-rects.execution.mjs +6 -3
- package/esm2022/domain/f-connectors/get-all-can-be-connected-source-connectors-and-rects/get-all-can-be-connected-source-connectors-and-rects.execution.mjs +43 -0
- package/esm2022/domain/f-connectors/get-all-can-be-connected-source-connectors-and-rects/get-all-can-be-connected-source-connectors-and-rects.request.mjs +8 -0
- package/esm2022/domain/f-connectors/get-all-can-be-connected-source-connectors-and-rects/index.mjs +3 -0
- package/esm2022/domain/f-connectors/get-connector-and-rect/get-connector-and-rect.execution.mjs +6 -3
- package/esm2022/domain/f-connectors/i-closest-connector.mjs +2 -0
- package/esm2022/domain/f-connectors/index.mjs +7 -6
- package/esm2022/domain/f-connectors/mark-connectable-connectors/index.mjs +3 -0
- package/esm2022/domain/f-connectors/mark-connectable-connectors/mark-connectable-connectors.execution.mjs +30 -0
- package/esm2022/domain/f-connectors/mark-connectable-connectors/mark-connectable-connectors.request.mjs +8 -0
- package/esm2022/domain/f-connectors/providers.mjs +14 -9
- package/esm2022/domain/f-connectors/remove-input-from-store/remove-input-from-store.execution.mjs +6 -3
- package/esm2022/domain/f-connectors/remove-outlet-from-store/remove-outlet-from-store.execution.mjs +6 -3
- package/esm2022/domain/f-connectors/remove-output-from-store/remove-output-from-store.execution.mjs +6 -3
- package/esm2022/domain/f-connectors/unmark-connectable-connectors/index.mjs +3 -0
- package/esm2022/domain/f-connectors/unmark-connectable-connectors/unmark-connectable-connectors.execution.mjs +30 -0
- package/esm2022/domain/f-connectors/unmark-connectable-connectors/unmark-connectable-connectors.request.mjs +8 -0
- package/esm2022/domain/f-draggable/add-dnd-to-store/add-dnd-to-store.execution.mjs +6 -3
- package/esm2022/domain/f-draggable/emit-selection-change-event/emit-selection-change-event.execution.mjs +10 -6
- package/esm2022/domain/f-draggable/end-drag-sequence/end-drag-sequence.execution.mjs +7 -4
- package/esm2022/domain/f-draggable/initialize-drag-sequence/initialize-drag-sequence.execution.mjs +4 -1
- package/esm2022/domain/f-draggable/is-drag-started/is-drag-started.execution.mjs +6 -3
- package/esm2022/domain/f-draggable/on-pointer-move/on-pointer-move.execution.mjs +8 -3
- package/esm2022/domain/f-draggable/prepare-drag-sequence/prepare-drag-sequence.execution.mjs +6 -3
- package/esm2022/domain/f-draggable/providers.mjs +4 -1
- package/esm2022/domain/f-draggable/remove-dnd-from-store/remove-dnd-from-store.execution.mjs +6 -3
- package/esm2022/domain/f-draggable/start-drag-sequence/start-drag-sequence.execution.mjs +9 -6
- package/esm2022/domain/f-flow/add-flow-to-store/add-flow-to-store.execution.mjs +6 -3
- package/esm2022/domain/f-flow/get-flow/get-flow.execution.mjs +6 -3
- package/esm2022/domain/f-flow/get-flow-host-element/get-flow-host-element.execution.mjs +6 -3
- package/esm2022/domain/f-flow/get-flow-state/get-flow-state-connections/get-flow-state-connections.execution.mjs +7 -4
- package/esm2022/domain/f-flow/get-flow-state/get-flow-state-nodes/get-flow-state-nodes.execution.mjs +13 -13
- package/esm2022/domain/f-flow/get-flow-state/get-flow-state.execution.mjs +11 -8
- package/esm2022/domain/f-flow/get-flow-state/providers.mjs +4 -1
- package/esm2022/domain/f-flow/providers.mjs +6 -1
- package/esm2022/domain/f-flow/remove-flow-from-store/remove-flow-from-store.execution.mjs +6 -3
- package/esm2022/domain/f-line-alignment/add-line-alignment-to-store/add-line-alignment-to-store.execution.mjs +6 -3
- package/esm2022/domain/f-line-alignment/providers.mjs +6 -1
- package/esm2022/domain/f-line-alignment/remove-line-alignment-from-store/remove-line-alignment-from-store.execution.mjs +6 -3
- package/esm2022/domain/f-node/add-node-to-store/add-node-to-store.execution.mjs +6 -3
- package/esm2022/domain/f-node/calculate-input-connections/calculate-input-connections.execution.mjs +7 -4
- package/esm2022/domain/f-node/calculate-nodes-bounding-box/calculate-nodes-bounding-box.execution.mjs +7 -3
- package/esm2022/domain/f-node/calculate-nodes-bounding-box-normalized-position/calculate-nodes-bounding-box-normalized-position.execution.mjs +8 -3
- package/esm2022/domain/f-node/calculate-output-connections/calculate-output-connections.execution.mjs +7 -4
- package/esm2022/domain/f-node/get-node-padding/get-node-padding.execution.mjs +5 -1
- package/esm2022/domain/f-node/get-nodes/get-nodes.execution.mjs +6 -3
- package/esm2022/domain/f-node/get-parent-nodes/get-parent-nodes.execution.mjs +9 -6
- package/esm2022/domain/f-node/providers.mjs +4 -1
- package/esm2022/domain/f-node/remove-node-from-store/remove-node-from-store.execution.mjs +6 -3
- package/esm2022/domain/f-node/update-node-when-state-or-size-changed/update-node-when-state-or-size-changed.execution.mjs +30 -3
- package/esm2022/domain/f-selection/clear-selection/clear-selection.execution.mjs +4 -1
- package/esm2022/domain/f-selection/get-can-be-selected-items/get-can-be-selected-items.execution.mjs +20 -8
- package/esm2022/domain/f-selection/get-current-selection/get-current-selection.execution.mjs +4 -1
- package/esm2022/domain/f-selection/providers.mjs +4 -1
- package/esm2022/domain/f-selection/select/select.execution.mjs +7 -4
- package/esm2022/domain/f-selection/select-all/select-all.execution.mjs +8 -4
- package/esm2022/domain/f-selection/select-and-update-node-layer/select-and-update-node-layer.execution.mjs +17 -17
- package/esm2022/domain/f-zoom/add-zoom-to-store/add-zoom-to-store.execution.mjs +6 -3
- package/esm2022/domain/f-zoom/providers.mjs +6 -1
- package/esm2022/domain/f-zoom/remove-zoom-from-store/remove-zoom-from-store.execution.mjs +6 -3
- package/esm2022/domain/f-zoom/reset-zoom/reset-zoom.execution.mjs +6 -3
- package/esm2022/domain/f-zoom/set-zoom/set-zoom.execution.mjs +11 -7
- package/esm2022/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.execution.mjs +8 -4
- package/esm2022/domain/get-element-rounded-rect/get-element-rounded-rect.execution.mjs +8 -4
- package/esm2022/domain/get-normalized-connector-rect/get-normalized-connector-rect.execution.mjs +11 -6
- package/esm2022/domain/get-normalized-element-rect/get-normalized-element-rect.execution.mjs +10 -5
- package/esm2022/domain/get-normalized-point/get-normalized-point.execution.mjs +9 -4
- package/esm2022/domain/providers.mjs +7 -1
- package/esm2022/domain/sort-item-layers/sort-item-layers.execution.mjs +15 -8
- package/esm2022/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.execution.mjs +13 -8
- package/esm2022/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.execution.mjs +14 -9
- package/esm2022/domain/update-item-and-children-layers/move-front-elements-before-target-element/move-front-elements-before-target-element.execution.mjs +5 -1
- package/esm2022/domain/update-item-and-children-layers/update-item-and-children-layers.execution.mjs +12 -8
- package/esm2022/drag-toolkit/drag-and-drop-base.mjs +55 -1
- package/esm2022/f-canvas/f-canvas.component.mjs +67 -20
- package/esm2022/f-connection/common/domain/f-bezier.path-builder.mjs +7 -2
- package/esm2022/f-connection/common/domain/f-segment.path-builder.mjs +3 -2
- package/esm2022/f-connection/common/domain/f-straight.path-builder.mjs +2 -2
- package/esm2022/f-connection/common/f-connection-base.mjs +16 -12
- package/esm2022/f-connection/common/f-connection-text/f-connection-text-path.directive.mjs +2 -2
- package/esm2022/f-connection/common/f-connection-text/f-connection-text.component.mjs +2 -2
- package/esm2022/f-connection/common/f-gradient/f-connection-gradient.component.mjs +4 -4
- package/esm2022/f-connection/common/f-path/f-connection-path.component.mjs +8 -8
- package/esm2022/f-connection/common/f-selection/f-connection-selection.component.mjs +2 -2
- package/esm2022/f-connection/common/i-has-connection-color.mjs +1 -1
- package/esm2022/f-connection/common/i-has-connection-from-to.mjs +1 -1
- package/esm2022/f-connection/f-connection/f-connection.component.mjs +23 -52
- package/esm2022/f-connection/f-connection-builder/i-f-connection-builder-response.mjs +1 -1
- package/esm2022/f-connection/f-connection-for-create/f-connection-for-create.component.mjs +21 -48
- package/esm2022/f-connection/f-snap-connection/f-snap-connection.component.mjs +21 -48
- package/esm2022/f-connectors/f-node-input/f-node-input.directive.mjs +2 -2
- package/esm2022/f-connectors/f-node-outlet/f-node-outlet.directive.mjs +2 -2
- package/esm2022/f-connectors/f-node-output/f-node-output.directive.mjs +2 -2
- package/esm2022/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.execution.mjs +2 -2
- package/esm2022/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.execution.mjs +3 -3
- package/esm2022/f-draggable/domain/is-connection-under-node/is-connection-under-node.execution.mjs +6 -6
- package/esm2022/f-draggable/f-connection/f-create-connection/create-finalize/f-create-connection-finalize.execution.mjs +3 -3
- package/esm2022/f-draggable/f-connection/f-create-connection/f-create-connection.drag-handler.mjs +5 -5
- package/esm2022/f-draggable/f-connection/f-reassign-connection/f-reassign-connection.drag-handler.mjs +41 -73
- package/esm2022/f-draggable/f-connection/f-reassign-connection/f-reassign-connection.event.mjs +18 -12
- package/esm2022/f-draggable/f-connection/f-reassign-connection/f-reassign-source.drag-handler.mjs +83 -0
- package/esm2022/f-draggable/f-connection/f-reassign-connection/f-reassign-target.drag-handler.mjs +82 -0
- package/esm2022/f-draggable/f-connection/f-reassign-connection/i-f-reassign-connection-drag-result.mjs +1 -1
- package/esm2022/f-draggable/f-connection/f-reassign-connection/i-f-reassign-handler.mjs +8 -0
- package/esm2022/f-draggable/f-connection/f-reassign-connection/index.mjs +5 -1
- package/esm2022/f-draggable/f-connection/f-reassign-connection/reassign-finalize/f-reassign-connection-finalize.execution.mjs +27 -21
- package/esm2022/f-draggable/f-connection/f-reassign-connection/reassign-preparation/f-reassign-connection-preparation.execution.mjs +8 -11
- package/esm2022/f-draggable/f-connection/f-reassign-connection/reassign-preparation/index.mjs +2 -1
- package/esm2022/f-draggable/f-connection/f-reassign-connection/reassign-preparation/is-pointer-inside-start-or-end-drag-handles.mjs +17 -0
- package/esm2022/f-draggable/f-drop-to-group/drop-to-group-finalize/f-node-drop-to-group-finalize.execution.mjs +3 -3
- package/esm2022/f-draggable/f-node-move/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.mjs +4 -4
- package/esm2022/f-draggable/f-node-move/create-move-nodes-drag-model-from-selection/domain/put-input-connection-handlers-to-array/put-input-connection-handlers-to-array.execution.mjs +2 -2
- package/esm2022/f-draggable/f-node-move/create-move-nodes-drag-model-from-selection/domain/put-output-connection-handlers-to-array/put-output-connection-handlers-to-array.execution.mjs +2 -2
- package/esm2022/f-draggable/f-node-move/f-summary-node-move.drag-handler.mjs +2 -2
- package/esm2022/f-draggable/f-node-move/move-finalize/f-node-move-finalize.execution.mjs +2 -2
- package/esm2022/f-draggable/f-node-resize/f-node-resize.drag-handler.mjs +2 -2
- package/esm2022/f-draggable/f-node-resize/get-normalized-children-nodes-rect/get-normalized-children-nodes-rect.execution.mjs +2 -2
- package/esm2022/f-draggable/f-node-rotate/f-node-rotate.drag-handler.mjs +2 -2
- package/esm2022/f-draggable/f-single-select/f-single-select.execution.mjs +2 -2
- package/esm2022/f-external-item/domain/finalize/f-external-item-finalize.execution.mjs +2 -2
- package/esm2022/f-flow/f-flow.component.mjs +3 -3
- package/esm2022/f-minimap/domain/f-minimap.drag-handler.mjs +1 -1
- package/esm2022/f-minimap/f-minimap-canvas.directive.mjs +3 -4
- package/esm2022/f-minimap/f-minimap-flow.directive.mjs +7 -9
- package/esm2022/f-minimap/f-minimap-view.directive.mjs +3 -3
- package/esm2022/f-minimap/f-minimap.component.mjs +19 -30
- package/esm2022/f-node/f-group.directive.mjs +6 -9
- package/esm2022/f-node/f-node-base.mjs +1 -1
- package/esm2022/f-node/f-node.directive.mjs +6 -9
- package/esm2022/f-zoom/f-zoom.directive.mjs +8 -2
- package/esm2022/mixins/change-selection/change-selection.mjs +3 -2
- package/esm2022/mixins/change-selection/i-selectable.mjs +1 -1
- package/f-canvas/f-canvas.component.d.ts +49 -1
- package/f-connection/common/f-connection-base.d.ts +15 -12
- package/f-connection/common/i-has-connection-color.d.ts +3 -2
- package/f-connection/common/i-has-connection-from-to.d.ts +2 -1
- package/f-connection/f-connection/f-connection.component.d.ts +17 -15
- package/f-connection/f-connection-builder/i-f-connection-builder-response.d.ts +1 -0
- package/f-connection/f-connection-for-create/f-connection-for-create.component.d.ts +16 -15
- package/f-connection/f-snap-connection/f-snap-connection.component.d.ts +16 -15
- package/f-connection/providers.d.ts +1 -1
- package/f-draggable/domain/is-connection-under-node/is-connection-under-node.execution.d.ts +2 -2
- package/f-draggable/f-connection/f-reassign-connection/f-reassign-connection.drag-handler.d.ts +11 -17
- package/f-draggable/f-connection/f-reassign-connection/f-reassign-connection.event.d.ts +9 -6
- package/f-draggable/f-connection/f-reassign-connection/f-reassign-source.drag-handler.d.ts +27 -0
- package/f-draggable/f-connection/f-reassign-connection/f-reassign-target.drag-handler.d.ts +28 -0
- package/f-draggable/f-connection/f-reassign-connection/i-f-reassign-connection-drag-result.d.ts +4 -2
- package/f-draggable/f-connection/f-reassign-connection/i-f-reassign-handler.d.ts +12 -0
- package/f-draggable/f-connection/f-reassign-connection/index.d.ts +4 -0
- package/f-draggable/f-connection/f-reassign-connection/reassign-finalize/f-reassign-connection-finalize.execution.d.ts +6 -6
- package/f-draggable/f-connection/f-reassign-connection/reassign-preparation/f-reassign-connection-preparation.execution.d.ts +0 -1
- package/f-draggable/f-connection/f-reassign-connection/reassign-preparation/index.d.ts +1 -0
- package/f-draggable/f-connection/f-reassign-connection/reassign-preparation/is-pointer-inside-start-or-end-drag-handles.d.ts +5 -0
- package/f-draggable/f-connection/providers.d.ts +1 -1
- package/f-draggable/f-drop-to-group/providers.d.ts +1 -1
- package/f-draggable/f-node-move/create-move-nodes-drag-model-from-selection/providers.d.ts +1 -1
- package/f-draggable/f-node-move/providers.d.ts +1 -1
- package/f-draggable/f-node-resize/providers.d.ts +1 -1
- package/f-draggable/providers.d.ts +1 -1
- package/f-flow/f-flow.component.d.ts +1 -1
- package/f-minimap/domain/providers.d.ts +1 -1
- package/f-minimap/f-minimap-canvas.directive.d.ts +1 -1
- package/f-minimap/f-minimap-flow.directive.d.ts +4 -4
- package/f-minimap/f-minimap-view.directive.d.ts +1 -1
- package/f-minimap/f-minimap.component.d.ts +8 -8
- package/f-node/f-group.directive.d.ts +2 -2
- package/f-node/f-node-base.d.ts +2 -2
- package/f-node/f-node.directive.d.ts +2 -2
- package/f-node/providers.d.ts +1 -1
- package/f-selection-area/domain/providers.d.ts +1 -1
- package/f-storage/providers.d.ts +1 -1
- package/f-zoom/f-zoom.directive.d.ts +1 -0
- package/fesm2022/foblex-flow.mjs +1331 -732
- package/fesm2022/foblex-flow.mjs.map +1 -1
- package/mixins/change-selection/i-selectable.d.ts +2 -1
- package/package.json +1 -1
- package/domain/f-connectors/calculate-closest-input/calculate-closest-input.execution.d.ts +0 -11
- package/domain/f-connectors/calculate-closest-input/calculate-closest-input.request.d.ts +0 -8
- package/domain/f-connectors/calculate-closest-input/index.d.ts +0 -2
- package/domain/f-connectors/find-input-at-position/find-input-at-position.execution.d.ts +0 -25
- package/domain/f-connectors/find-input-at-position/find-input-at-position.request.d.ts +0 -9
- package/domain/f-connectors/find-input-at-position/index.d.ts +0 -2
- package/domain/f-connectors/mark-all-can-be-connected-inputs/index.d.ts +0 -2
- package/domain/f-connectors/mark-all-can-be-connected-inputs/mark-all-can-be-connected-inputs.execution.d.ts +0 -10
- package/domain/f-connectors/mark-all-can-be-connected-inputs/mark-all-can-be-connected-inputs.request.d.ts +0 -6
- package/domain/f-connectors/unmark-all-can-be-connected-inputs/index.d.ts +0 -2
- package/domain/f-connectors/unmark-all-can-be-connected-inputs/unmark-all-can-be-connected-inputs.execution.d.ts +0 -10
- package/domain/f-connectors/unmark-all-can-be-connected-inputs/unmark-all-can-be-connected-inputs.request.d.ts +0 -6
- package/esm2022/domain/f-connectors/calculate-closest-input/calculate-closest-input.execution.mjs +0 -42
- package/esm2022/domain/f-connectors/calculate-closest-input/calculate-closest-input.request.mjs +0 -10
- package/esm2022/domain/f-connectors/calculate-closest-input/index.mjs +0 -3
- package/esm2022/domain/f-connectors/find-input-at-position/find-input-at-position.execution.mjs +0 -92
- package/esm2022/domain/f-connectors/find-input-at-position/find-input-at-position.request.mjs +0 -12
- package/esm2022/domain/f-connectors/i-closest-input.mjs +0 -2
- package/esm2022/domain/f-connectors/mark-all-can-be-connected-inputs/index.mjs +0 -3
- package/esm2022/domain/f-connectors/mark-all-can-be-connected-inputs/mark-all-can-be-connected-inputs.execution.mjs +0 -27
- package/esm2022/domain/f-connectors/mark-all-can-be-connected-inputs/mark-all-can-be-connected-inputs.request.mjs +0 -8
- package/esm2022/domain/f-connectors/unmark-all-can-be-connected-inputs/index.mjs +0 -3
- package/esm2022/domain/f-connectors/unmark-all-can-be-connected-inputs/unmark-all-can-be-connected-inputs.execution.mjs +0 -27
- package/esm2022/domain/f-connectors/unmark-all-can-be-connected-inputs/unmark-all-can-be-connected-inputs.request.mjs +0 -8
|
@@ -1,11 +1,38 @@
|
|
|
1
1
|
import { IExecution } from '@foblex/mediator';
|
|
2
2
|
import { UpdateNodeWhenStateOrSizeChangedRequest } from './update-node-when-state-or-size-changed-request';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that updates a node's connectors when its state or size changes.
|
|
6
|
+
*/
|
|
4
7
|
export declare class UpdateNodeWhenStateOrSizeChangedExecution implements IExecution<UpdateNodeWhenStateOrSizeChangedRequest, void> {
|
|
5
|
-
private readonly
|
|
8
|
+
private readonly _mediator;
|
|
9
|
+
/**
|
|
10
|
+
* Handles the request to update the node's connectors based on state or size changes.
|
|
11
|
+
* It listens for resize events and recalculates the connectable sides of the connectors.
|
|
12
|
+
* @param request
|
|
13
|
+
*/
|
|
6
14
|
handle(request: UpdateNodeWhenStateOrSizeChangedRequest): void;
|
|
15
|
+
/**
|
|
16
|
+
* Calculates the connectable side for each connector based on its position relative to the node host.
|
|
17
|
+
* @param fConnectors
|
|
18
|
+
* @param fNodeHost
|
|
19
|
+
* @private
|
|
20
|
+
*/
|
|
7
21
|
private _calculateConnectorsConnectableSide;
|
|
22
|
+
/**
|
|
23
|
+
* Calculates the connectable side of a connector based on its user-defined side or its position relative to the node host.
|
|
24
|
+
* @param fConnector
|
|
25
|
+
* @param fNodeHost
|
|
26
|
+
* @returns {EFConnectableSide}
|
|
27
|
+
* @private
|
|
28
|
+
*/
|
|
8
29
|
private _calculateConnectorConnectableSide;
|
|
30
|
+
/**
|
|
31
|
+
* Determines the side of the connector relative to the node host based on the minimum distance.
|
|
32
|
+
* @param fConnectorHost
|
|
33
|
+
* @param fNodeHost
|
|
34
|
+
* @private
|
|
35
|
+
*/
|
|
9
36
|
private _getSideByDelta;
|
|
10
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<UpdateNodeWhenStateOrSizeChangedExecution, never>;
|
|
11
38
|
static ɵprov: i0.ɵɵInjectableDeclaration<UpdateNodeWhenStateOrSizeChangedExecution>;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { ClearSelectionRequest } from './clear-selection.request';
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that clears the selection of items in the FDraggableDataContext.
|
|
6
|
+
*/
|
|
4
7
|
export declare class ClearSelectionExecution implements IExecution<ClearSelectionRequest, void> {
|
|
5
8
|
private _fDraggableDataContext;
|
|
6
9
|
handle(request: ClearSelectionRequest): void;
|
package/domain/f-selection/get-can-be-selected-items/get-can-be-selected-items.execution.d.ts
CHANGED
|
@@ -1,15 +1,27 @@
|
|
|
1
1
|
import { ICanBeSelectedElementAndRect } from './i-can-be-selected-element-and-rect';
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that retrieves elements that can be selected in the Flow, along with their bounding rectangles.
|
|
6
|
+
* It filters out elements that are already selected in the FDraggableDataContext.
|
|
7
|
+
*/
|
|
4
8
|
export declare class GetCanBeSelectedItemsExecution implements IExecution<void, ICanBeSelectedElementAndRect[]> {
|
|
5
|
-
private
|
|
6
|
-
private
|
|
9
|
+
private readonly _mediator;
|
|
10
|
+
private readonly _store;
|
|
7
11
|
private _fDraggableDataContext;
|
|
8
12
|
private get fNodes();
|
|
9
13
|
private get fConnections();
|
|
10
14
|
private get transform();
|
|
11
15
|
handle(): ICanBeSelectedElementAndRect[];
|
|
16
|
+
/**
|
|
17
|
+
* Retrieves nodes with their bounding rectangles that can be selected.
|
|
18
|
+
* @private
|
|
19
|
+
*/
|
|
12
20
|
private getNodesWithRects;
|
|
21
|
+
/**
|
|
22
|
+
* Retrieves connections with their bounding rectangles that can be selected.
|
|
23
|
+
* @private
|
|
24
|
+
*/
|
|
13
25
|
private getConnectionsWithRects;
|
|
14
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<GetCanBeSelectedItemsExecution, never>;
|
|
15
27
|
static ɵprov: i0.ɵɵInjectableDeclaration<GetCanBeSelectedItemsExecution>;
|
|
@@ -2,6 +2,9 @@ import { GetCurrentSelectionRequest } from './get-current-selection.request';
|
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import { ICurrentSelection } from './i-current-selection';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Execution that retrieves the current selection of items in the FDraggableDataContext.
|
|
7
|
+
*/
|
|
5
8
|
export declare class GetCurrentSelectionExecution implements IExecution<GetCurrentSelectionRequest, ICurrentSelection> {
|
|
6
9
|
private _fDraggableDataContext;
|
|
7
10
|
handle(): ICurrentSelection;
|
|
@@ -4,4 +4,7 @@ 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
|
+
/**
|
|
8
|
+
* This module provides a collection of executions related to selection features in the FFlow domain.
|
|
9
|
+
*/
|
|
7
10
|
export declare const F_SELECTION_FEATURES: (typeof ClearSelectionExecution | typeof GetCanBeSelectedItemsExecution | typeof GetCurrentSelectionExecution | typeof SelectExecution | typeof SelectAllExecution | typeof SelectAndUpdateNodeLayerExecution)[];
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { SelectRequest } from './select.request';
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that handles the selection of nodes and connections in the FFlow.
|
|
6
|
+
*/
|
|
4
7
|
export declare class SelectExecution implements IExecution<SelectRequest, void> {
|
|
5
8
|
private readonly _fDraggableDataContext;
|
|
6
|
-
private readonly
|
|
9
|
+
private readonly _store;
|
|
7
10
|
handle(request: SelectRequest): void;
|
|
8
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectExecution, never>;
|
|
9
12
|
static ɵprov: i0.ɵɵInjectableDeclaration<SelectExecution>;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { SelectAllRequest } from './select-all.request';
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that selects all components in the FComponentsStore.
|
|
6
|
+
* It marks all nodes and connections as selected and updates the selected items in the FDraggableDataContext.
|
|
7
|
+
*/
|
|
4
8
|
export declare class SelectAllExecution implements IExecution<SelectAllRequest, void> {
|
|
5
9
|
private _fDraggableDataContext;
|
|
6
|
-
private
|
|
10
|
+
private readonly _store;
|
|
7
11
|
handle(request: SelectAllRequest): void;
|
|
8
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectAllExecution, never>;
|
|
9
13
|
static ɵprov: i0.ɵɵInjectableDeclaration<SelectAllExecution>;
|
package/domain/f-selection/select-and-update-node-layer/select-and-update-node-layer.execution.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { IHandler } from '@foblex/mediator';
|
|
2
|
-
import { FMediator } from '@foblex/mediator';
|
|
3
2
|
import { SelectAndUpdateNodeLayerRequest } from './select-and-update-node-layer.request';
|
|
4
|
-
import { FDraggableDataContext } from '../../../f-draggable';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that selects a node and updates its layer along with its children.
|
|
6
|
+
* It checks if the node is already selected, and if not, it marks it as selected
|
|
7
|
+
* and updates the layers of the node and its children.
|
|
8
|
+
*/
|
|
6
9
|
export declare class SelectAndUpdateNodeLayerExecution implements IHandler<SelectAndUpdateNodeLayerRequest, void> {
|
|
7
|
-
private
|
|
8
|
-
private
|
|
9
|
-
constructor(fDraggableDataContext: FDraggableDataContext, fMediator: FMediator);
|
|
10
|
+
private readonly _fDraggableDataContext;
|
|
11
|
+
private readonly _mediator;
|
|
10
12
|
handle(request: SelectAndUpdateNodeLayerRequest): void;
|
|
11
13
|
private selectNodeIfNotSelected;
|
|
12
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectAndUpdateNodeLayerExecution, never>;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { IExecution } from '@foblex/mediator';
|
|
2
2
|
import { AddZoomToStoreRequest } from './add-zoom-to-store-request';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that adds a Zoom to the FComponentsStore.
|
|
6
|
+
*/
|
|
4
7
|
export declare class AddZoomToStoreExecution implements IExecution<AddZoomToStoreRequest, void> {
|
|
5
|
-
private
|
|
8
|
+
private readonly _store;
|
|
6
9
|
handle(request: AddZoomToStoreRequest): void;
|
|
7
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<AddZoomToStoreExecution, never>;
|
|
8
11
|
static ɵprov: i0.ɵɵInjectableDeclaration<AddZoomToStoreExecution>;
|
|
@@ -2,4 +2,9 @@ import { AddZoomToStoreExecution } from './add-zoom-to-store';
|
|
|
2
2
|
import { RemoveZoomFromStoreExecution } from './remove-zoom-from-store';
|
|
3
3
|
import { SetZoomExecution } from './set-zoom';
|
|
4
4
|
import { ResetZoomExecution } from './reset-zoom';
|
|
5
|
+
/**
|
|
6
|
+
* Collection of all FZoom feature executions.
|
|
7
|
+
* These executions handle the addition, removal, and resetting of zoom levels
|
|
8
|
+
* in the FComponentsStore.
|
|
9
|
+
*/
|
|
5
10
|
export declare const F_ZOOM_FEATURES: (typeof AddZoomToStoreExecution | typeof RemoveZoomFromStoreExecution | typeof ResetZoomExecution | typeof SetZoomExecution)[];
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { IExecution } from '@foblex/mediator';
|
|
2
2
|
import { RemoveZoomFromStoreRequest } from './remove-zoom-from-store-request';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that removes a Zoom from the FComponentsStore.
|
|
6
|
+
*/
|
|
4
7
|
export declare class RemoveZoomFromStoreExecution implements IExecution<RemoveZoomFromStoreRequest, void> {
|
|
5
|
-
private
|
|
8
|
+
private readonly _store;
|
|
6
9
|
handle(request: RemoveZoomFromStoreRequest): void;
|
|
7
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<RemoveZoomFromStoreExecution, never>;
|
|
8
11
|
static ɵprov: i0.ɵɵInjectableDeclaration<RemoveZoomFromStoreExecution>;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { IExecution } from '@foblex/mediator';
|
|
2
2
|
import { ResetZoomRequest } from './reset-zoom-request';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that resets the zoom level of the FCanvas.
|
|
6
|
+
*/
|
|
4
7
|
export declare class ResetZoomExecution implements IExecution<ResetZoomRequest, void> {
|
|
5
|
-
private
|
|
8
|
+
private readonly _store;
|
|
6
9
|
private get _fCanvas();
|
|
7
10
|
handle(request: ResetZoomRequest): void;
|
|
8
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<ResetZoomExecution, never>;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { IExecution } from '@foblex/mediator';
|
|
2
2
|
import { SetZoomRequest } from './set-zoom-request';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that sets the zoom level of the FCanvas based on the provided request.
|
|
6
|
+
* It adjusts the zoom level by a specified step and direction, ensuring it stays within defined limits.
|
|
7
|
+
*/
|
|
4
8
|
export declare class SetZoomExecution implements IExecution<SetZoomRequest, void> {
|
|
5
|
-
private
|
|
6
|
-
private
|
|
9
|
+
private readonly _mediator;
|
|
10
|
+
private readonly _store;
|
|
7
11
|
private get _fHost();
|
|
8
12
|
private get _fCanvas();
|
|
9
13
|
private get _fZoomComponent();
|
package/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.execution.d.ts
CHANGED
|
@@ -2,8 +2,12 @@ import { GetDeepChildrenNodesAndGroupsRequest } from './get-deep-children-nodes-
|
|
|
2
2
|
import { FNodeBase } from '../../f-node';
|
|
3
3
|
import { IExecution } from '@foblex/mediator';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Execution that retrieves all deep children nodes and groups from the FComponentsStore.
|
|
7
|
+
* It traverses the node hierarchy to find all descendants of a given node.
|
|
8
|
+
*/
|
|
5
9
|
export declare class GetDeepChildrenNodesAndGroupsExecution implements IExecution<GetDeepChildrenNodesAndGroupsRequest, FNodeBase[]> {
|
|
6
|
-
private readonly
|
|
10
|
+
private readonly _store;
|
|
7
11
|
handle(request: GetDeepChildrenNodesAndGroupsRequest): FNodeBase[];
|
|
8
12
|
private _getChildrenNodes;
|
|
9
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<GetDeepChildrenNodesAndGroupsExecution, never>;
|
|
@@ -2,8 +2,12 @@ import { GetElementRoundedRectRequest } from './get-element-rounded-rect-request
|
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import { RoundedRect } from '@foblex/2d';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Execution that retrieves the rectangle of an element with its border-radius.
|
|
7
|
+
* It calculates the rectangle based on the element's dimensions and its computed style.
|
|
8
|
+
*/
|
|
5
9
|
export declare class GetElementRoundedRectExecution implements IExecution<GetElementRoundedRectRequest, RoundedRect> {
|
|
6
|
-
private
|
|
10
|
+
private readonly _browser;
|
|
7
11
|
handle(request: GetElementRoundedRectRequest): RoundedRect;
|
|
8
12
|
private _getRoundedRect;
|
|
9
13
|
private _getComputedStyle;
|
|
@@ -2,9 +2,14 @@ import { GetNormalizedConnectorRectRequest } from './get-normalized-connector-re
|
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import { IRoundedRect } from '@foblex/2d';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Execution that retrieves the normalized rectangle of a connector.
|
|
7
|
+
* It calculates the rectangle based on the element's position and size,
|
|
8
|
+
* adjusting for the canvas transformation and element offsets.
|
|
9
|
+
*/
|
|
5
10
|
export declare class GetNormalizedConnectorRectExecution implements IExecution<GetNormalizedConnectorRectRequest, IRoundedRect> {
|
|
6
|
-
private readonly
|
|
7
|
-
private readonly
|
|
11
|
+
private readonly _store;
|
|
12
|
+
private readonly _mediator;
|
|
8
13
|
private get _transform();
|
|
9
14
|
handle(request: GetNormalizedConnectorRectRequest): IRoundedRect;
|
|
10
15
|
private _getElementRoundedRect;
|
|
@@ -2,9 +2,14 @@ import { GetNormalizedElementRectRequest } from './get-normalized-element-rect-r
|
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import { IRect } from '@foblex/2d';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Execution that retrieves the normalized rectangle of an element.
|
|
7
|
+
* It calculates the rectangle based on the element's position and size,
|
|
8
|
+
* adjusting for the canvas transformation and element offsets.
|
|
9
|
+
*/
|
|
5
10
|
export declare class GetNormalizedElementRectExecution implements IExecution<GetNormalizedElementRectRequest, IRect> {
|
|
6
|
-
private readonly
|
|
7
|
-
private readonly
|
|
11
|
+
private readonly _store;
|
|
12
|
+
private readonly _mediator;
|
|
8
13
|
private get _transform();
|
|
9
14
|
handle(request: GetNormalizedElementRectRequest): IRect;
|
|
10
15
|
private _getElementRoundedRect;
|
|
@@ -2,8 +2,13 @@ import { IPoint } from '@foblex/2d';
|
|
|
2
2
|
import { GetNormalizedPointRequest } from './get-normalized-point-request';
|
|
3
3
|
import { IExecution } from '@foblex/mediator';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Execution that retrieves the normalized point of a position.
|
|
7
|
+
* It calculates the point based on the position's transformation
|
|
8
|
+
* and the canvas transformation.
|
|
9
|
+
*/
|
|
5
10
|
export declare class GetNormalizedPointExecution implements IExecution<GetNormalizedPointRequest, IPoint> {
|
|
6
|
-
private readonly
|
|
11
|
+
private readonly _store;
|
|
7
12
|
private get _transform();
|
|
8
13
|
handle(request: GetNormalizedPointRequest): IPoint;
|
|
9
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<GetNormalizedPointExecution, never>;
|
package/domain/providers.d.ts
CHANGED
|
@@ -4,4 +4,10 @@ import { GetNormalizedPointExecution } from './get-normalized-point';
|
|
|
4
4
|
import { GetDeepChildrenNodesAndGroupsExecution } from './get-deep-children-nodes-and-groups';
|
|
5
5
|
import { GetElementRoundedRectExecution } from './get-element-rounded-rect';
|
|
6
6
|
import { GetNormalizedConnectorRectExecution } from "./get-normalized-connector-rect";
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* This module provides a collection of common providers for the FFlow domain.
|
|
9
|
+
* It includes features related to canvas, connections, background, connectors,
|
|
10
|
+
* draggable elements, flow, line alignment, nodes, selection, zoom,
|
|
11
|
+
* and various utility executions.
|
|
12
|
+
*/
|
|
13
|
+
export declare const COMMON_PROVIDERS: (typeof GetElementRoundedRectExecution | typeof import("./f-background").AddBackgroundToStoreExecution | typeof import("./f-background").AddPatternToBackgroundExecution | typeof import("./f-background").RemoveBackgroundFromStoreExecution | typeof import("./f-background").SetBackgroundTransformExecution | 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 GetNormalizedPointExecution | typeof GetNormalizedConnectorRectExecution | typeof import("./f-connection").RemoveConnectionFromStoreExecution | typeof import("./f-connection").RemoveConnectionMarkerFromStoreExecution | typeof import("./f-connectors").AddInputToStoreExecution | typeof import("./f-connectors").AddOutletToStoreExecution | typeof import("./f-connectors").AddOutputToStoreExecution | typeof import("./f-connectors").FindConnectableConnectorUsingPriorityAndPositionExecution | typeof import("./f-connectors").FindClosestConnectorExecution | typeof import("./f-connectors").GetConnectorAndRectExecution | typeof import("./f-connectors").GetAllCanBeConnectedInputsAndRectsExecution | typeof import("./f-connectors").GetAllCanBeConnectedSourceConnectorsAndRectsExecution | typeof import("./f-connectors").MarkConnectableConnectorsExecution | typeof import("./f-connectors").RemoveInputFromStoreExecution | typeof import("./f-connectors").RemoveOutletFromStoreExecution | typeof import("./f-connectors").RemoveOutputFromStoreExecution | typeof import("./f-connectors").UnmarkConnectableConnectorsExecution | typeof import("./f-draggable").AddDndToStoreExecution | typeof GetNormalizedElementRectExecution | typeof import("./f-selection").SelectExecution | typeof MoveFrontElementsBeforeTargetElementExecution | typeof GetDeepChildrenNodesAndGroupsExecution | typeof UpdateItemAndChildrenLayersExecution | typeof import("./f-selection").SelectAndUpdateNodeLayerExecution | typeof import("./f-draggable").OnPointerMoveExecution | 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").CalculateInputConnectionsExecution | typeof import("./f-node").CalculateNodesBoundingBoxNormalizedPositionExecution | typeof import("./f-node").CalculateOutputConnectionsExecution | typeof import("./f-node").GetNodePaddingExecution | typeof import("./f-node").GetParentNodesExecution | typeof import("./f-node").UpdateNodeWhenStateOrSizeChangedExecution | typeof import("./f-node").RemoveNodeFromStoreExecution | typeof import("./f-zoom").AddZoomToStoreExecution | typeof import("./f-zoom").SetZoomExecution)[];
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { SortItemLayersRequest } from './sort-item-layers.request';
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that sorts item layers in the FCanvas by their parent nodes.
|
|
6
|
+
* This execution is registered to handle SortItemLayersRequest and
|
|
7
|
+
* ensures that items are sorted correctly within their parent nodes.
|
|
8
|
+
* It first sorts items by their parent nodes in the groups container,
|
|
9
|
+
* then sorts the node layers, and finally sorts items by their parent nodes in the nodes container.
|
|
10
|
+
*/
|
|
4
11
|
export declare class SortItemLayersExecution implements IExecution<SortItemLayersRequest, void> {
|
|
5
|
-
private readonly
|
|
6
|
-
private readonly
|
|
12
|
+
private readonly _store;
|
|
13
|
+
private readonly _mediator;
|
|
7
14
|
private get _fCanvas();
|
|
8
15
|
handle(request: SortItemLayersRequest): void;
|
|
9
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<SortItemLayersExecution, never>;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { SortItemsByParentRequest } from './sort-items-by-parent.request';
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that sorts items by their parent nodes in the FItemsContainer.
|
|
6
|
+
* It retrieves all items within the container, sorts their children based on their current order,
|
|
7
|
+
* and moves them to maintain the correct hierarchy.
|
|
8
|
+
*/
|
|
4
9
|
export declare class SortItemsByParentExecution implements IExecution<SortItemsByParentRequest, void> {
|
|
5
|
-
private readonly
|
|
6
|
-
private readonly
|
|
7
|
-
private readonly
|
|
10
|
+
private readonly _store;
|
|
11
|
+
private readonly _mediator;
|
|
12
|
+
private readonly _browser;
|
|
8
13
|
private _fItemsContainer;
|
|
9
14
|
private get _fItemElements();
|
|
10
15
|
handle(request: SortItemsByParentRequest): void;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { SortNodeLayersRequest } from './sort-node-layers.request';
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that sorts node layers by their parent nodes in the FCanvas.
|
|
6
|
+
* It retrieves all groups, sorts their children nodes based on their current order,
|
|
7
|
+
* and moves them to maintain the correct hierarchy.
|
|
8
|
+
*/
|
|
4
9
|
export declare class SortNodeLayersExecution implements IExecution<SortNodeLayersRequest, void> {
|
|
5
|
-
private readonly
|
|
6
|
-
private readonly
|
|
7
|
-
private readonly
|
|
10
|
+
private readonly _store;
|
|
11
|
+
private readonly _mediator;
|
|
12
|
+
private readonly _browser;
|
|
8
13
|
private get _fCanvas();
|
|
9
14
|
private get _fGroupsContainer();
|
|
10
15
|
private get _fNodesContainer();
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { MoveFrontElementsBeforeTargetElementRequest } from './move-front-elements-before-target-element.request';
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that moves elements in the FItemsContainer before a target element.
|
|
6
|
+
* It removes elements that should not be in front and inserts them before the target element.
|
|
7
|
+
*/
|
|
4
8
|
export declare class MoveFrontElementsBeforeTargetElementExecution implements IExecution<MoveFrontElementsBeforeTargetElementRequest, void> {
|
|
5
9
|
handle(request: MoveFrontElementsBeforeTargetElementRequest): void;
|
|
6
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<MoveFrontElementsBeforeTargetElementExecution, never>;
|
package/domain/update-item-and-children-layers/update-item-and-children-layers.execution.d.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { UpdateItemAndChildrenLayersRequest } from './update-item-and-children-layers.request';
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that updates the layers of an item and its children in the FCanvas.
|
|
6
|
+
* It handles different item containers (groups, nodes, connections) and updates their layers accordingly.
|
|
7
|
+
*/
|
|
4
8
|
export declare class UpdateItemAndChildrenLayersExecution implements IExecution<UpdateItemAndChildrenLayersRequest, void> {
|
|
5
|
-
private readonly
|
|
6
|
-
private readonly
|
|
9
|
+
private readonly _store;
|
|
10
|
+
private readonly _mediator;
|
|
7
11
|
private get _fCanvas();
|
|
8
12
|
private get _fGroupsContainer();
|
|
9
13
|
private get _fNodesContainer();
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { ICanRunOutsideAngular } from './i-can-run-outside-angular';
|
|
2
2
|
import { IPointerEvent } from './pointer-events';
|
|
3
3
|
export declare const MOUSE_EVENT_IGNORE_TIME = 800;
|
|
4
|
+
/**
|
|
5
|
+
* Base class for implementing drag and drop functionality.
|
|
6
|
+
* It handles mouse and touch events, manages the drag start sequence,
|
|
7
|
+
* and provides abstract methods for derived classes to implement specific behaviors.
|
|
8
|
+
*/
|
|
4
9
|
export declare abstract class DragAndDropBase {
|
|
5
10
|
protected ngZone: ICanRunOutsideAngular | undefined;
|
|
6
11
|
abstract hostElement: HTMLElement;
|
|
@@ -19,14 +24,69 @@ export declare abstract class DragAndDropBase {
|
|
|
19
24
|
private moveHandler;
|
|
20
25
|
private pointerDownElement;
|
|
21
26
|
protected constructor(ngZone: ICanRunOutsideAngular | undefined);
|
|
27
|
+
/**
|
|
28
|
+
* Handles the mouse down event to initiate the drag sequence.
|
|
29
|
+
* It checks if the event is synthetic or fake, and if the drag is already started.
|
|
30
|
+
* If not, it sets up the drag start sequence by adding necessary event listeners.
|
|
31
|
+
* @param event - The mouse event that triggered the drag.
|
|
32
|
+
*/
|
|
22
33
|
private onMouseDown;
|
|
34
|
+
/**
|
|
35
|
+
* Handles the touch down event to initiate the drag sequence.
|
|
36
|
+
* It checks if the event is synthetic or fake, and if the drag is already started.
|
|
37
|
+
* If not, it sets up the drag start sequence by adding necessary event listeners.
|
|
38
|
+
* @param event - The touch event that triggered the drag.
|
|
39
|
+
*/
|
|
23
40
|
private onTouchDown;
|
|
41
|
+
/**
|
|
42
|
+
* Handles the select start event.
|
|
43
|
+
* This method is called when the user starts selecting text or elements.
|
|
44
|
+
* It prevents the default behavior and calls the onSelect method to handle the selection.
|
|
45
|
+
* @param event - The event that triggered the select start.
|
|
46
|
+
*/
|
|
24
47
|
private onSelectStart;
|
|
48
|
+
/**
|
|
49
|
+
* Handles the mouse move event during the drag sequence.
|
|
50
|
+
* It checks if the drag sequence should start and calls the move handler accordingly.
|
|
51
|
+
* @param event - The mouse event that triggered the move.
|
|
52
|
+
*/
|
|
25
53
|
private onMouseMove;
|
|
54
|
+
/**
|
|
55
|
+
* Handles the touch move event during the drag sequence.
|
|
56
|
+
* It checks if the drag sequence should start and calls the move handler accordingly.
|
|
57
|
+
* @param event - The touch event that triggered the move.
|
|
58
|
+
*/
|
|
26
59
|
private onTouchMove;
|
|
60
|
+
/**
|
|
61
|
+
* Checks if the drag sequence should start based on the pointer position.
|
|
62
|
+
* It compares the current pointer position with the initial drag start position
|
|
63
|
+
* and checks if the distance exceeds the drag start threshold.
|
|
64
|
+
* If the threshold is exceeded and the delay has passed,
|
|
65
|
+
* it prepares the drag sequence and sets the move handler to onPointerMove.
|
|
66
|
+
* @param event - The pointer event that triggered the check.
|
|
67
|
+
*/
|
|
27
68
|
private checkDragSequenceToStart;
|
|
69
|
+
/**
|
|
70
|
+
* Prepares the drag sequence by setting up necessary event listeners
|
|
71
|
+
* and initializing any required state for the drag operation.
|
|
72
|
+
* This method should be implemented by derived classes to define specific drag behavior.
|
|
73
|
+
* @param event - The pointer event that triggered the preparation.
|
|
74
|
+
*/
|
|
28
75
|
protected abstract prepareDragSequence(event: IPointerEvent): void;
|
|
76
|
+
/**
|
|
77
|
+
* Handles the pointer up event at the end of the drag sequence.
|
|
78
|
+
* It checks if the drag has started and calls the onPointerUp method.
|
|
79
|
+
* It also ends the drag sequence by resetting the state and removing event listeners.
|
|
80
|
+
* This method is called when the user releases the mouse button or lifts their finger from the touch screen.
|
|
81
|
+
* @param event - The pointer event that triggered the up action.
|
|
82
|
+
*/
|
|
29
83
|
private onPointerUpEvent;
|
|
84
|
+
/**
|
|
85
|
+
* Ends the drag sequence by resetting the state and removing event listeners.
|
|
86
|
+
* It sets the isDragStarted flag to false, clears the pointerDownElement,
|
|
87
|
+
* and resets the moveHandler to checkDragSequenceToStart.
|
|
88
|
+
* It also removes all mouse and touch event listeners that were added during the drag sequence.
|
|
89
|
+
*/
|
|
30
90
|
private endDragSequence;
|
|
31
91
|
protected abstract finalizeDragSequence(): void;
|
|
32
92
|
protected abstract onSelect(event: Event): void;
|
|
@@ -8,10 +8,10 @@ export const F_CSS_CLASS = {
|
|
|
8
8
|
OUTPUT_NOT_CONNECTABLE: 'f-node-output-not-connectable',
|
|
9
9
|
INPUT_CONNECTED: 'f-node-input-connected',
|
|
10
10
|
INPUT_NOT_CONNECTABLE: 'f-node-input-not-connectable',
|
|
11
|
-
|
|
11
|
+
CONNECTABLE: 'f-connector-connectable',
|
|
12
12
|
},
|
|
13
13
|
CONNECTION: {
|
|
14
14
|
DRAG_HANDLE: 'f-connection-drag-handle',
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3NzLWNscy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZG9tYWluL2Nzcy1jbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLE1BQU0sV0FBVyxHQUFHO0lBRXpCLGFBQWEsRUFBRTtRQUViLFFBQVEsRUFBRSxZQUFZO1FBRXRCLG9CQUFvQixFQUFFLHdCQUF3QjtLQUMvQztJQUVELFNBQVMsRUFBRTtRQUVULGdCQUFnQixFQUFFLHlCQUF5QjtRQUUzQyxzQkFBc0IsRUFBRSwrQkFBK0I7UUFFdkQsZUFBZSxFQUFFLHdCQUF3QjtRQUV6QyxxQkFBcUIsRUFBRSw4QkFBOEI7UUFFckQsV0FBVyxFQUFFLHlCQUF5QjtLQUN2QztJQUVELFVBQVUsRUFBRTtRQUVWLFdBQVcsRUFBRSwwQkFBMEI7S0FDeEM7Q0FDRixDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNvbnN0IEZfQ1NTX0NMQVNTID0ge1xuXG4gIERSQUdfQU5EX0RST1A6IHtcblxuICAgIERSQUdHSU5HOiAnZi1kcmFnZ2luZycsXG5cbiAgICBDT05ORUNUSU9OU19EUkFHR0lORzogJ2YtY29ubmVjdGlvbnMtZHJhZ2dpbmcnLFxuICB9LFxuXG4gIENPTk5FQ1RPUjoge1xuXG4gICAgT1VUUFVUX0NPTk5FQ1RFRDogJ2Ytbm9kZS1vdXRwdXQtY29ubmVjdGVkJyxcblxuICAgIE9VVFBVVF9OT1RfQ09OTkVDVEFCTEU6ICdmLW5vZGUtb3V0cHV0LW5vdC1jb25uZWN0YWJsZScsXG5cbiAgICBJTlBVVF9DT05ORUNURUQ6ICdmLW5vZGUtaW5wdXQtY29ubmVjdGVkJyxcblxuICAgIElOUFVUX05PVF9DT05ORUNUQUJMRTogJ2Ytbm9kZS1pbnB1dC1ub3QtY29ubmVjdGFibGUnLFxuXG4gICAgQ09OTkVDVEFCTEU6ICdmLWNvbm5lY3Rvci1jb25uZWN0YWJsZScsXG4gIH0sXG5cbiAgQ09OTkVDVElPTjoge1xuXG4gICAgRFJBR19IQU5ETEU6ICdmLWNvbm5lY3Rpb24tZHJhZy1oYW5kbGUnLFxuICB9XG59XG4iXX0=
|
package/esm2022/domain/f-background/add-background-to-store/add-background-to-store.execution.mjs
CHANGED
|
@@ -4,10 +4,13 @@ import { FExecutionRegister } from '@foblex/mediator';
|
|
|
4
4
|
import { AddBackgroundToStoreRequest } from './add-background-to-store-request';
|
|
5
5
|
import { FComponentsStore } from '../../../f-storage';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Execution that adds a background to the FComponentsStore.
|
|
9
|
+
*/
|
|
7
10
|
let AddBackgroundToStoreExecution = class AddBackgroundToStoreExecution {
|
|
8
|
-
|
|
11
|
+
_store = inject(FComponentsStore);
|
|
9
12
|
handle(request) {
|
|
10
|
-
this.
|
|
13
|
+
this._store.fBackground = request.fBackground;
|
|
11
14
|
}
|
|
12
15
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AddBackgroundToStoreExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13
16
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AddBackgroundToStoreExecution });
|
|
@@ -19,4 +22,4 @@ export { AddBackgroundToStoreExecution };
|
|
|
19
22
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AddBackgroundToStoreExecution, decorators: [{
|
|
20
23
|
type: Injectable
|
|
21
24
|
}] });
|
|
22
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRkLWJhY2tncm91bmQtdG8tc3RvcmUuZXhlY3V0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9kb21haW4vZi1iYWNrZ3JvdW5kL2FkZC1iYWNrZ3JvdW5kLXRvLXN0b3JlL2FkZC1iYWNrZ3JvdW5kLXRvLXN0b3JlLmV4ZWN1dGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFL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ncm91bmQgdG8gdGhlIEZDb21wb25lbnRzU3RvcmUuXG4gKi9cbkBJbmplY3RhYmxlKClcbkBGRXhlY3V0aW9uUmVnaXN0ZXIoQWRkQmFja2dyb3VuZFRvU3RvcmVSZXF1ZXN0KVxuZXhwb3J0IGNsYXNzIEFkZEJhY2tncm91bmRUb1N0b3JlRXhlY3V0aW9uIGltcGxlbWVudHMgSUV4ZWN1dGlvbjxBZGRCYWNrZ3JvdW5kVG9TdG9yZVJlcXVlc3QsIHZvaWQ+IHtcblxuICBwcml2YXRlIHJlYWRvbmx5IF9zdG9yZSA9IGluamVjdChGQ29tcG9uZW50c1N0b3JlKTtcblxuICBwdWJsaWMgaGFuZGxlKHJlcXVlc3Q6IEFkZEJhY2tncm91bmRUb1N0b3JlUmVxdWVzdCk6IHZvaWQge1xuICAgIHRoaXMuX3N0b3JlLmZCYWNrZ3JvdW5kID0gcmVxdWVzdC5mQmFja2dyb3VuZDtcbiAgfVxufVxuIl19
|
|
@@ -8,11 +8,14 @@ import { FComponentsStore } from '../../../f-storage';
|
|
|
8
8
|
import { BrowserService } from '@foblex/platform';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
let uniqueId = 0;
|
|
11
|
+
/**
|
|
12
|
+
* Execution that adds a pattern to the background in the FComponentsStore.
|
|
13
|
+
*/
|
|
11
14
|
let AddPatternToBackgroundExecution = class AddPatternToBackgroundExecution {
|
|
12
|
-
|
|
15
|
+
_store = inject(FComponentsStore);
|
|
13
16
|
_fBrowser = inject(BrowserService);
|
|
14
17
|
get _fBackground() {
|
|
15
|
-
return this.
|
|
18
|
+
return this._store.fBackground;
|
|
16
19
|
}
|
|
17
20
|
handle(request) {
|
|
18
21
|
const children = request.fPattern?.hostElement.getElementsByTagName('pattern') || [];
|
|
@@ -28,7 +31,7 @@ let AddPatternToBackgroundExecution = class AddPatternToBackgroundExecution {
|
|
|
28
31
|
rect.setAttribute('width', '100%');
|
|
29
32
|
rect.setAttribute('height', '100%');
|
|
30
33
|
this._fBackground.hostElement.firstChild?.appendChild(rect);
|
|
31
|
-
const transform = this.
|
|
34
|
+
const transform = this._store.fCanvas?.transform || TransformModelExtensions.default();
|
|
32
35
|
request.fPattern?.setTransform(transform);
|
|
33
36
|
}
|
|
34
37
|
}
|
|
@@ -42,4 +45,4 @@ export { AddPatternToBackgroundExecution };
|
|
|
42
45
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AddPatternToBackgroundExecution, decorators: [{
|
|
43
46
|
type: Injectable
|
|
44
47
|
}] });
|
|
45
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
48
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRkLXBhdHRlcm4tdG8tYmFja2dyb3VuZC5leGVjdXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RvbWFpbi9mLWJhY2tncm91bmQvYWRkLXBhdHRlcm4tdG8tYmFja2dyb3VuZC9hZGQtcGF0dGVybi10by1iYWNrZ3JvdW5kLmV4ZWN1dGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sWUFBWSxDQUFDO0FBQ3RELE9BQU8sRUFBRSw2QkFBNkIsRUFBRSxNQUFNLHFDQUFxQyxDQUFDO0FBQ3BGLE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ25ELE9BQU8sRUFBRSxrQkFBa0IsRUFBYyxNQUFNLGtCQUFrQixDQUFDO0FBQ2xFLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQ25ELE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0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