@foblex/flow 17.6.0 → 17.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/domain/f-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 +4 -1
- 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 +5 -0
- package/domain/f-connectors/find-connectable-connector-using-priority-and-position/find-connectable-connector-using-priority-and-position.execution.d.ts +5 -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 +6 -1
- package/domain/f-connectors/get-connector-and-rect/get-connector-and-rect.execution.d.ts +4 -1
- package/domain/f-connectors/i-closest-connector.d.ts +3 -0
- package/domain/f-connectors/mark-connectable-connectors/mark-connectable-connectors.execution.d.ts +3 -0
- 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/unmark-connectable-connectors.execution.d.ts +3 -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 +3 -0
- package/domain/f-flow/providers.d.ts +5 -0
- 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/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 +6 -3
- 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 +6 -1
- package/esm2022/domain/f-connectors/find-connectable-connector-using-priority-and-position/find-connectable-connector-using-priority-and-position.execution.mjs +6 -1
- 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 +8 -3
- 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 +1 -1
- package/esm2022/domain/f-connectors/mark-connectable-connectors/mark-connectable-connectors.execution.mjs +4 -1
- package/esm2022/domain/f-connectors/providers.mjs +4 -1
- 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/unmark-connectable-connectors.execution.mjs +4 -1
- 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 +6 -3
- package/esm2022/domain/f-flow/get-flow-state/get-flow-state-nodes/get-flow-state-nodes.execution.mjs +12 -12
- 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 +6 -3
- 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 +7 -3
- 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 +12 -7
- package/esm2022/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.execution.mjs +13 -8
- 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 +10 -6
- package/esm2022/drag-toolkit/drag-and-drop-base.mjs +55 -1
- package/esm2022/f-canvas/f-canvas.component.mjs +67 -20
- package/esm2022/f-zoom/f-zoom.directive.mjs +8 -2
- package/f-canvas/f-canvas.component.d.ts +51 -3
- package/f-connection/providers.d.ts +1 -1
- package/f-draggable/f-connection/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/providers.d.ts +1 -1
- package/f-external-item/domain/providers.d.ts +1 -1
- package/f-minimap/providers.d.ts +1 -1
- package/f-node/providers.d.ts +2 -2
- package/f-storage/providers.d.ts +1 -1
- package/f-zoom/f-zoom.directive.d.ts +1 -0
- package/fesm2022/foblex-flow.mjs +756 -259
- package/fesm2022/foblex-flow.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { IExecution } from '@foblex/mediator';
|
|
2
2
|
import { AddDndToStoreRequest } from './add-dnd-to-store-request';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that adds a drag and drop directive to the FComponentsStore.
|
|
6
|
+
*/
|
|
4
7
|
export declare class AddDndToStoreExecution implements IExecution<AddDndToStoreRequest, void> {
|
|
5
|
-
private
|
|
8
|
+
private readonly _store;
|
|
6
9
|
handle(request: AddDndToStoreRequest): void;
|
|
7
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<AddDndToStoreExecution, never>;
|
|
8
11
|
static ɵprov: i0.ɵɵInjectableDeclaration<AddDndToStoreExecution>;
|
package/domain/f-draggable/emit-selection-change-event/emit-selection-change-event.execution.d.ts
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { IExecution } from '@foblex/mediator';
|
|
2
2
|
import { EmitSelectionChangeEventRequest } from './emit-selection-change-event-request';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that emits a selection change event when the selection changes.
|
|
6
|
+
* It retrieves the current selection and emits it through the FSelectionChangeEvent.
|
|
7
|
+
*/
|
|
4
8
|
export declare class EmitSelectionChangeEventExecution implements IExecution<EmitSelectionChangeEventRequest, void> {
|
|
5
|
-
private
|
|
6
|
-
private
|
|
9
|
+
private readonly _mediator;
|
|
10
|
+
private readonly _store;
|
|
7
11
|
private get _fSelectionChange();
|
|
8
|
-
private _fDraggableDataContext;
|
|
12
|
+
private readonly _fDraggableDataContext;
|
|
9
13
|
handle(request: EmitSelectionChangeEventRequest): void;
|
|
10
14
|
private _getSelection;
|
|
11
15
|
private _emitSelectionChange;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { IExecution } from '@foblex/mediator';
|
|
2
2
|
import { EndDragSequenceRequest } from './end-drag-sequence-request';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that handles the end of a drag sequence.
|
|
6
|
+
*/
|
|
4
7
|
export declare class EndDragSequenceExecution implements IExecution<EndDragSequenceRequest, void> {
|
|
5
|
-
private
|
|
8
|
+
private readonly _store;
|
|
6
9
|
private get _hostElement();
|
|
7
10
|
private _fDraggableDataContext;
|
|
8
11
|
handle(request: EndDragSequenceRequest): void;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { IExecution } from '@foblex/mediator';
|
|
2
2
|
import { InitializeDragSequenceRequest } from './initialize-drag-sequence-request';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that initializes the drag sequence by resetting the FDraggableDataContext.
|
|
6
|
+
*/
|
|
4
7
|
export declare class InitializeDragSequenceExecution implements IExecution<InitializeDragSequenceRequest, void> {
|
|
5
8
|
private _fDraggableDataContext;
|
|
6
9
|
handle(request: InitializeDragSequenceRequest): void;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { IExecution } from '@foblex/mediator';
|
|
2
2
|
import { IsDragStartedRequest } from './is-drag-started-request';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that checks if a drag operation has started.
|
|
6
|
+
*/
|
|
4
7
|
export declare class IsDragStartedExecution implements IExecution<IsDragStartedRequest, boolean> {
|
|
5
|
-
private
|
|
8
|
+
private readonly _store;
|
|
6
9
|
handle(request: IsDragStartedRequest): boolean;
|
|
7
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<IsDragStartedExecution, never>;
|
|
8
11
|
static ɵprov: i0.ɵɵInjectableDeclaration<IsDragStartedExecution>;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { IExecution } from '@foblex/mediator';
|
|
2
2
|
import { OnPointerMoveRequest } from './on-pointer-move-request';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that handles pointer move events during a drag operation.
|
|
6
|
+
* It calculates the difference between the current pointer position and the position
|
|
7
|
+
* when the drag started, and updates the draggable items accordingly.
|
|
8
|
+
*/
|
|
4
9
|
export declare class OnPointerMoveExecution implements IExecution<OnPointerMoveRequest, void> {
|
|
5
|
-
private readonly
|
|
10
|
+
private readonly _store;
|
|
6
11
|
private get _hostElement();
|
|
7
12
|
private readonly _fDraggableDataContext;
|
|
8
13
|
handle(request: OnPointerMoveRequest): void;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { IExecution } from '@foblex/mediator';
|
|
2
2
|
import { PrepareDragSequenceRequest } from './prepare-drag-sequence-request';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that prepares the drag sequence by invoking the prepareDragSequence method on each draggable item.
|
|
6
|
+
*/
|
|
4
7
|
export declare class PrepareDragSequenceExecution implements IExecution<PrepareDragSequenceRequest, void> {
|
|
5
|
-
private
|
|
8
|
+
private readonly _mediator;
|
|
6
9
|
private _fDraggableDataContext;
|
|
7
10
|
handle(request: PrepareDragSequenceRequest): void;
|
|
8
11
|
private _callPrepareDragSequence;
|
|
@@ -7,4 +7,7 @@ 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
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Collection of all FDraggable feature executions.
|
|
12
|
+
*/
|
|
13
|
+
export declare const F_DRAGGABLE_FEATURES: (typeof AddDndToStoreExecution | typeof EmitSelectionChangeEventExecution | typeof EndDragSequenceExecution | typeof OnPointerMoveExecution | typeof InitializeDragSequenceExecution | typeof PrepareDragSequenceExecution | typeof IsDragStartedExecution | typeof StartDragSequenceExecution | typeof RemoveDndFromStoreExecution)[];
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { IExecution } from '@foblex/mediator';
|
|
2
2
|
import { RemoveDndFromStoreRequest } from './remove-dnd-from-store-request';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that removes the drag and drop directive from the FComponentsStore.
|
|
6
|
+
*/
|
|
4
7
|
export declare class RemoveDndFromStoreExecution implements IExecution<RemoveDndFromStoreRequest, void> {
|
|
5
|
-
private
|
|
8
|
+
private readonly _store;
|
|
6
9
|
handle(request: RemoveDndFromStoreRequest): void;
|
|
7
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<RemoveDndFromStoreExecution, never>;
|
|
8
11
|
static ɵprov: i0.ɵɵInjectableDeclaration<RemoveDndFromStoreExecution>;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { IExecution } from '@foblex/mediator';
|
|
2
2
|
import { StartDragSequenceRequest } from './start-drag-sequence-request';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that starts the drag sequence by adding a dragging class to the host element
|
|
6
|
+
*/
|
|
4
7
|
export declare class StartDragSequenceExecution implements IExecution<StartDragSequenceRequest, void> {
|
|
5
|
-
private
|
|
6
|
-
private
|
|
8
|
+
private readonly _mediator;
|
|
9
|
+
private readonly _store;
|
|
7
10
|
private _fDraggableDataContext;
|
|
8
11
|
private get _hostElement();
|
|
9
12
|
handle(request: StartDragSequenceRequest): void;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { IExecution } from '@foblex/mediator';
|
|
2
2
|
import { AddFlowToStoreRequest } from './add-flow-to-store-request';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that adds a Flow to the FComponentsStore.
|
|
6
|
+
*/
|
|
4
7
|
export declare class AddFlowToStoreExecution implements IExecution<AddFlowToStoreRequest, void> {
|
|
5
|
-
private
|
|
8
|
+
private readonly _store;
|
|
6
9
|
handle(request: AddFlowToStoreRequest): void;
|
|
7
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<AddFlowToStoreExecution, never>;
|
|
8
11
|
static ɵprov: i0.ɵɵInjectableDeclaration<AddFlowToStoreExecution>;
|
|
@@ -2,8 +2,11 @@ import { IExecution } from '@foblex/mediator';
|
|
|
2
2
|
import { GetFlowRequest } from './get-flow-request';
|
|
3
3
|
import { FFlowBase } from '../../../f-flow';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Execution that retrieves the current Flow from the FComponentsStore.
|
|
7
|
+
*/
|
|
5
8
|
export declare class GetFlowExecution implements IExecution<GetFlowRequest, FFlowBase> {
|
|
6
|
-
private
|
|
9
|
+
private readonly _store;
|
|
7
10
|
handle(request: GetFlowRequest): FFlowBase;
|
|
8
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<GetFlowExecution, never>;
|
|
9
12
|
static ɵprov: i0.ɵɵInjectableDeclaration<GetFlowExecution>;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { GetFlowHostElementRequest } from './get-flow-host-element.request';
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that retrieves the Flow host element from the FComponentsStore.
|
|
6
|
+
*/
|
|
4
7
|
export declare class GetFlowHostElementExecution implements IExecution<GetFlowHostElementRequest, HTMLElement> {
|
|
5
|
-
private
|
|
8
|
+
private readonly _store;
|
|
6
9
|
handle(): HTMLElement;
|
|
7
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<GetFlowHostElementExecution, never>;
|
|
8
11
|
static ɵprov: i0.ɵɵInjectableDeclaration<GetFlowHostElementExecution>;
|
|
@@ -2,8 +2,11 @@ import { GetFlowStateConnectionsRequest } from './get-flow-state-connections-req
|
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import { IFFlowStateConnection } from '../i-f-flow-state-connection';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Execution that retrieves the current Flow state connections from the FComponentsStore.
|
|
7
|
+
*/
|
|
5
8
|
export declare class GetFlowStateConnectionsExecution implements IExecution<GetFlowStateConnectionsRequest, IFFlowStateConnection[]> {
|
|
6
|
-
private
|
|
9
|
+
private readonly _store;
|
|
7
10
|
handle(request: GetFlowStateConnectionsRequest): IFFlowStateConnection[];
|
|
8
11
|
private _mapToConnectionState;
|
|
9
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<GetFlowStateConnectionsExecution, never>;
|
package/domain/f-flow/get-flow-state/get-flow-state-nodes/get-flow-state-nodes.execution.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { GetFlowStateNodesRequest } from './get-flow-state-nodes-request';
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import { IFFlowStateNode } from '../i-f-flow-state-node';
|
|
4
|
-
import { FComponentsStore } from '../../../../f-storage';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Execution that retrieves the state of Flow nodes, including their position, size, inputs, outputs, and selection status.
|
|
7
|
+
*/
|
|
6
8
|
export declare class GetFlowStateNodesExecution implements IExecution<GetFlowStateNodesRequest, IFFlowStateNode[]> {
|
|
7
|
-
private
|
|
8
|
-
constructor(fComponentsStore: FComponentsStore);
|
|
9
|
+
private readonly _store;
|
|
9
10
|
handle(request: GetFlowStateNodesRequest): IFFlowStateNode[];
|
|
10
11
|
private _getOutputs;
|
|
11
12
|
private _getInputs;
|
|
@@ -2,9 +2,12 @@ import { GetFlowStateRequest } from './get-flow-state.request';
|
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import { IFFlowState } from './i-f-flow-state';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Execution that retrieves the current state of the Flow, including its position, scale, nodes, groups, and connections.
|
|
7
|
+
*/
|
|
5
8
|
export declare class GetFlowStateExecution implements IExecution<GetFlowStateRequest, IFFlowState> {
|
|
6
|
-
private
|
|
7
|
-
private
|
|
9
|
+
private readonly _mediator;
|
|
10
|
+
private readonly _store;
|
|
8
11
|
handle(payload: GetFlowStateRequest): IFFlowState;
|
|
9
12
|
private _getCanvasPosition;
|
|
10
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<GetFlowStateExecution, never>;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { GetFlowStateExecution } from './get-flow-state.execution';
|
|
2
2
|
import { GetFlowStateNodesExecution } from './get-flow-state-nodes';
|
|
3
3
|
import { GetFlowStateConnectionsExecution } from './get-flow-state-connections';
|
|
4
|
+
/**
|
|
5
|
+
* Providers for retrieving the current Flow state, including nodes, groups, and connections.
|
|
6
|
+
*/
|
|
4
7
|
export declare const GET_FLOW_STATE_PROVIDERS: (typeof GetFlowStateExecution | typeof GetFlowStateNodesExecution | typeof GetFlowStateConnectionsExecution)[];
|
|
@@ -2,4 +2,9 @@ import { GetFlowHostElementExecution } from './get-flow-host-element';
|
|
|
2
2
|
import { AddFlowToStoreExecution } from './add-flow-to-store';
|
|
3
3
|
import { RemoveFlowFromStoreExecution } from './remove-flow-from-store';
|
|
4
4
|
import { GetFlowExecution } from './get-flow';
|
|
5
|
+
/**
|
|
6
|
+
* Providers for managing the Flow in the FComponentsStore.
|
|
7
|
+
* This includes adding, retrieving, and removing the Flow,
|
|
8
|
+
* as well as getting the Flow host element and its state.
|
|
9
|
+
*/
|
|
5
10
|
export declare const F_FLOW_FEATURES: (typeof AddFlowToStoreExecution | typeof GetFlowExecution | typeof GetFlowHostElementExecution | typeof import("./get-flow-state").GetFlowStateExecution | typeof import("./get-flow-state").GetFlowStateNodesExecution | typeof import("./get-flow-state").GetFlowStateConnectionsExecution | typeof RemoveFlowFromStoreExecution)[];
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { IExecution } from '@foblex/mediator';
|
|
2
2
|
import { RemoveFlowFromStoreRequest } from './remove-flow-from-store-request';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that removes a Flow from the FComponentsStore.
|
|
6
|
+
*/
|
|
4
7
|
export declare class RemoveFlowFromStoreExecution implements IExecution<RemoveFlowFromStoreRequest, void> {
|
|
5
|
-
private
|
|
8
|
+
private readonly _store;
|
|
6
9
|
handle(request: RemoveFlowFromStoreRequest): void;
|
|
7
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<RemoveFlowFromStoreExecution, never>;
|
|
8
11
|
static ɵprov: i0.ɵɵInjectableDeclaration<RemoveFlowFromStoreExecution>;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { IExecution } from '@foblex/mediator';
|
|
2
2
|
import { AddLineAlignmentToStoreRequest } from './add-line-alignment-to-store-request';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that adds a line alignment to the FComponentsStore.
|
|
6
|
+
*/
|
|
4
7
|
export declare class AddLineAlignmentToStoreExecution implements IExecution<AddLineAlignmentToStoreRequest, void> {
|
|
5
|
-
private
|
|
8
|
+
private readonly _store;
|
|
6
9
|
handle(request: AddLineAlignmentToStoreRequest): void;
|
|
7
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<AddLineAlignmentToStoreExecution, never>;
|
|
8
11
|
static ɵprov: i0.ɵɵInjectableDeclaration<AddLineAlignmentToStoreExecution>;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import { AddLineAlignmentToStoreExecution } from './add-line-alignment-to-store';
|
|
2
2
|
import { RemoveLineAlignmentFromStoreExecution } from './remove-line-alignment-from-store';
|
|
3
|
+
/**
|
|
4
|
+
* Collection of all FLineAlignment feature executions.
|
|
5
|
+
* These executions handle the addition and removal of line alignments
|
|
6
|
+
* in the FComponentsStore.
|
|
7
|
+
*/
|
|
3
8
|
export declare const F_LINE_ALIGNMENT_FEATURES: (typeof AddLineAlignmentToStoreExecution | typeof RemoveLineAlignmentFromStoreExecution)[];
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { IExecution } from '@foblex/mediator';
|
|
2
2
|
import { RemoveLineAlignmentFromStoreRequest } from './remove-line-alignment-from-store-request';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that removes a line alignment from the FComponentsStore.
|
|
6
|
+
*/
|
|
4
7
|
export declare class RemoveLineAlignmentFromStoreExecution implements IExecution<RemoveLineAlignmentFromStoreRequest, void> {
|
|
5
|
-
private
|
|
8
|
+
private readonly _store;
|
|
6
9
|
handle(request: RemoveLineAlignmentFromStoreRequest): void;
|
|
7
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<RemoveLineAlignmentFromStoreExecution, never>;
|
|
8
11
|
static ɵprov: i0.ɵɵInjectableDeclaration<RemoveLineAlignmentFromStoreExecution>;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { IExecution } from '@foblex/mediator';
|
|
2
2
|
import { AddNodeToStoreRequest } from './add-node-to-store-request';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that adds a Node to the FComponentsStore.
|
|
6
|
+
*/
|
|
4
7
|
export declare class AddNodeToStoreExecution implements IExecution<AddNodeToStoreRequest, void> {
|
|
5
|
-
private
|
|
8
|
+
private readonly _store;
|
|
6
9
|
handle(request: AddNodeToStoreRequest): void;
|
|
7
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<AddNodeToStoreExecution, never>;
|
|
8
11
|
static ɵprov: i0.ɵɵInjectableDeclaration<AddNodeToStoreExecution>;
|
package/domain/f-node/calculate-input-connections/calculate-input-connections.execution.d.ts
CHANGED
|
@@ -2,8 +2,11 @@ import { IExecution } from '@foblex/mediator';
|
|
|
2
2
|
import { CalculateInputConnectionsRequest } from './calculate-input-connections-request';
|
|
3
3
|
import { FConnectionBase } from '../../../f-connection';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Execution that calculates input connections for a given FNode.
|
|
7
|
+
*/
|
|
5
8
|
export declare class CalculateInputConnectionsExecution implements IExecution<CalculateInputConnectionsRequest, FConnectionBase[]> {
|
|
6
|
-
private readonly
|
|
9
|
+
private readonly _store;
|
|
7
10
|
handle(request: CalculateInputConnectionsRequest): FConnectionBase[];
|
|
8
11
|
private _calculateConnectors;
|
|
9
12
|
private _calculateConnections;
|
package/domain/f-node/calculate-nodes-bounding-box/calculate-nodes-bounding-box.execution.d.ts
CHANGED
|
@@ -2,8 +2,12 @@ import { IRect } from '@foblex/2d';
|
|
|
2
2
|
import { CalculateNodesBoundingBoxRequest } from './calculate-nodes-bounding-box.request';
|
|
3
3
|
import { IExecution } from '@foblex/mediator';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Execution that calculates the bounding box of all nodes in the FComponentsStore.
|
|
7
|
+
* It retrieves the rectangles of each node's host element and computes their union.
|
|
8
|
+
*/
|
|
5
9
|
export declare class CalculateNodesBoundingBoxExecution implements IExecution<CalculateNodesBoundingBoxRequest, IRect | null> {
|
|
6
|
-
private
|
|
10
|
+
private readonly _store;
|
|
7
11
|
handle(request: CalculateNodesBoundingBoxRequest): IRect | null;
|
|
8
12
|
private _getNodesRects;
|
|
9
13
|
private _getElementRect;
|
|
@@ -2,8 +2,13 @@ import { IRect } from '@foblex/2d';
|
|
|
2
2
|
import { CalculateNodesBoundingBoxNormalizedPositionRequest } from './calculate-nodes-bounding-box-normalized-position.request';
|
|
3
3
|
import { IExecution } from '@foblex/mediator';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Execution that calculates the bounding box of all nodes in the FComponentsStore
|
|
7
|
+
* and returns their normalized positions.
|
|
8
|
+
* It retrieves the rectangles of each node's host element and computes their union.
|
|
9
|
+
*/
|
|
5
10
|
export declare class CalculateNodesBoundingBoxNormalizedPositionExecution implements IExecution<CalculateNodesBoundingBoxNormalizedPositionRequest, IRect | null> {
|
|
6
|
-
private
|
|
11
|
+
private readonly _store;
|
|
7
12
|
handle(request: CalculateNodesBoundingBoxNormalizedPositionRequest): IRect | null;
|
|
8
13
|
private _getNodesRects;
|
|
9
14
|
private _getElementRect;
|
package/domain/f-node/calculate-output-connections/calculate-output-connections.execution.d.ts
CHANGED
|
@@ -2,8 +2,11 @@ import { IExecution } from '@foblex/mediator';
|
|
|
2
2
|
import { CalculateOutputConnectionsRequest } from './calculate-output-connections-request';
|
|
3
3
|
import { FConnectionBase } from '../../../f-connection';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Execution that calculates output connections for a given FNode.
|
|
7
|
+
*/
|
|
5
8
|
export declare class CalculateOutputConnectionsExecution implements IExecution<CalculateOutputConnectionsRequest, FConnectionBase[]> {
|
|
6
|
-
private readonly
|
|
9
|
+
private readonly _store;
|
|
7
10
|
handle(request: CalculateOutputConnectionsRequest): FConnectionBase[];
|
|
8
11
|
private _calculateConnectors;
|
|
9
12
|
private _calculateConnections;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { GetNodePaddingRequest } from './get-node-padding.request';
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that retrieves the padding data of a Node.
|
|
6
|
+
* If the Node does not include padding, it returns [0, 0, 0, 0].
|
|
7
|
+
*/
|
|
4
8
|
export declare class GetNodePaddingExecution implements IExecution<GetNodePaddingRequest, [number, number, number, number]> {
|
|
5
9
|
private readonly _browser;
|
|
6
10
|
handle(request: GetNodePaddingRequest): [number, number, number, number];
|
|
@@ -2,8 +2,11 @@ import { IExecution } from '@foblex/mediator';
|
|
|
2
2
|
import { GetNodesRequest } from './get-nodes-request';
|
|
3
3
|
import { FNodeBase } from '../../../f-node';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Execution that retrieves all nodes from the FComponentsStore.
|
|
7
|
+
*/
|
|
5
8
|
export declare class GetNodesExecution implements IExecution<GetNodesRequest, FNodeBase[]> {
|
|
6
|
-
private
|
|
9
|
+
private readonly _store;
|
|
7
10
|
handle(request: GetNodesRequest): FNodeBase[];
|
|
8
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<GetNodesExecution, never>;
|
|
9
12
|
static ɵprov: i0.ɵɵInjectableDeclaration<GetNodesExecution>;
|
|
@@ -2,8 +2,11 @@ import { GetParentNodesRequest } from './get-parent-nodes.request';
|
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import { FNodeBase } from '../../../f-node';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Execution that retrieves all parent nodes of a given node from the FComponentsStore.
|
|
7
|
+
*/
|
|
5
8
|
export declare class GetParentNodesExecution implements IExecution<GetParentNodesRequest, FNodeBase[]> {
|
|
6
|
-
private
|
|
9
|
+
private readonly _store;
|
|
7
10
|
handle(request: GetParentNodesRequest): FNodeBase[];
|
|
8
11
|
private _getParentNodes;
|
|
9
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<GetParentNodesExecution, never>;
|
|
@@ -8,4 +8,7 @@ import { GetNodePaddingExecution } from './get-node-padding';
|
|
|
8
8
|
import { GetParentNodesExecution } from './get-parent-nodes';
|
|
9
9
|
import { CalculateInputConnectionsExecution } from './calculate-input-connections';
|
|
10
10
|
import { CalculateOutputConnectionsExecution } from './calculate-output-connections';
|
|
11
|
+
/**
|
|
12
|
+
* This file exports all the node-related executions that can be used in the F-Flow domain.
|
|
13
|
+
*/
|
|
11
14
|
export declare const F_NODE_FEATURES: (typeof AddNodeToStoreExecution | typeof CalculateInputConnectionsExecution | typeof CalculateNodesBoundingBoxExecution | typeof CalculateNodesBoundingBoxNormalizedPositionExecution | typeof CalculateOutputConnectionsExecution | typeof GetNodePaddingExecution | typeof GetNodesExecution | typeof GetParentNodesExecution | typeof UpdateNodeWhenStateOrSizeChangedExecution | typeof RemoveNodeFromStoreExecution)[];
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { IExecution } from '@foblex/mediator';
|
|
2
2
|
import { RemoveNodeFromStoreRequest } from './remove-node-from-store-request';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Execution that removes a node from the FComponentsStore.
|
|
6
|
+
*/
|
|
4
7
|
export declare class RemoveNodeFromStoreExecution implements IExecution<RemoveNodeFromStoreRequest, void> {
|
|
5
|
-
private
|
|
8
|
+
private readonly _store;
|
|
6
9
|
handle(request: RemoveNodeFromStoreRequest): void;
|
|
7
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<RemoveNodeFromStoreExecution, never>;
|
|
8
11
|
static ɵprov: i0.ɵɵInjectableDeclaration<RemoveNodeFromStoreExecution>;
|
|
@@ -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)[];
|