@foblex/flow 17.0.0 → 17.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/domain/f-background/add-background-to-store/add-background-to-store-request.d.ts +5 -0
- package/domain/f-background/add-background-to-store/add-background-to-store.execution.d.ts +9 -0
- package/domain/f-background/add-background-to-store/index.d.ts +2 -0
- package/domain/f-background/index.d.ts +3 -0
- package/domain/f-background/providers.d.ts +4 -1
- package/domain/f-background/remove-background-from-store/index.d.ts +2 -0
- package/domain/f-background/remove-background-from-store/remove-background-from-store-request.d.ts +5 -0
- package/domain/f-background/remove-background-from-store/remove-background-from-store.execution.d.ts +9 -0
- package/domain/f-background/set-background-transform/index.d.ts +2 -0
- package/domain/f-background/set-background-transform/set-background-transform-request.d.ts +5 -0
- package/domain/f-background/set-background-transform/set-background-transform.execution.d.ts +9 -0
- package/domain/f-canvas/add-canvas-to-store/add-canvas-to-store-request.d.ts +5 -0
- package/domain/f-canvas/add-canvas-to-store/add-canvas-to-store.execution.d.ts +9 -0
- package/domain/f-canvas/add-canvas-to-store/index.d.ts +2 -0
- package/domain/f-canvas/center-group-or-node/center-group-or-node.execution.d.ts +2 -3
- package/domain/f-canvas/fit-to-flow/fit-to-flow.execution.d.ts +3 -5
- package/domain/f-canvas/get-canvas/get-canvas-request.d.ts +2 -0
- package/domain/f-canvas/get-canvas/get-canvas.execution.d.ts +10 -0
- package/domain/f-canvas/get-canvas/index.d.ts +2 -0
- package/domain/f-canvas/index.d.ts +4 -0
- package/domain/f-canvas/input-canvas-position/input-canvas-position.execution.d.ts +1 -3
- package/domain/f-canvas/input-canvas-scale/input-canvas-scale.execution.d.ts +1 -3
- package/domain/f-canvas/providers.d.ts +5 -1
- package/domain/f-canvas/redraw-canvas-with-animation/index.d.ts +2 -0
- package/domain/f-canvas/redraw-canvas-with-animation/redraw-canvas-with-animation-request.d.ts +4 -0
- package/domain/f-canvas/redraw-canvas-with-animation/redraw-canvas-with-animation.execution.d.ts +12 -0
- package/domain/f-canvas/remove-canvas-from-store/index.d.ts +2 -0
- package/domain/f-canvas/remove-canvas-from-store/remove-canvas-from-store-request.d.ts +2 -0
- package/domain/f-canvas/remove-canvas-from-store/remove-canvas-from-store.execution.d.ts +9 -0
- package/domain/f-canvas/reset-scale/reset-scale.execution.d.ts +1 -3
- package/domain/f-canvas/reset-scale-and-center/reset-scale-and-center.execution.d.ts +3 -5
- package/domain/f-canvas/update-scale/update-scale.execution.d.ts +1 -3
- package/domain/f-connection/add-connection-for-create-to-store/add-connection-for-create-to-store-request.d.ts +5 -0
- package/domain/f-connection/add-connection-for-create-to-store/add-connection-for-create-to-store.execution.d.ts +9 -0
- package/domain/f-connection/add-connection-for-create-to-store/index.d.ts +2 -0
- package/domain/f-connection/add-connection-marker-to-store/add-connection-marker-to-store-request.d.ts +5 -0
- package/domain/f-connection/add-connection-marker-to-store/add-connection-marker-to-store.execution.d.ts +9 -0
- package/domain/f-connection/add-connection-marker-to-store/index.d.ts +2 -0
- package/domain/f-connection/add-connection-to-store/add-connection-to-store.execution.d.ts +1 -3
- package/domain/f-connection/add-snap-connection-to-store/add-snap-connection-to-store-request.d.ts +5 -0
- package/domain/f-connection/add-snap-connection-to-store/add-snap-connection-to-store.execution.d.ts +9 -0
- package/domain/f-connection/add-snap-connection-to-store/index.d.ts +2 -0
- package/domain/{create-connection-markers → f-connection/create-connection-markers}/create-connection-markers-request.d.ts +1 -1
- package/domain/{create-connection-markers → f-connection/create-connection-markers}/create-connection-markers.execution.d.ts +2 -2
- package/domain/f-connection/index.d.ts +8 -0
- package/domain/f-connection/providers.d.ts +9 -1
- package/domain/{redraw-connections → f-connection/redraw-connections}/redraw-connections.execution.d.ts +1 -1
- package/domain/f-connection/remove-connection-for-create-from-store/index.d.ts +2 -0
- package/domain/f-connection/remove-connection-for-create-from-store/remove-connection-for-create-from-store-request.d.ts +2 -0
- package/domain/f-connection/remove-connection-for-create-from-store/remove-connection-for-create-from-store.execution.d.ts +9 -0
- package/domain/f-connection/remove-connection-from-store/remove-connection-from-store.execution.d.ts +2 -3
- package/domain/f-connection/remove-connection-marker-from-store/index.d.ts +2 -0
- package/domain/f-connection/remove-connection-marker-from-store/remove-connection-marker-from-store-request.d.ts +5 -0
- package/domain/f-connection/remove-connection-marker-from-store/remove-connection-marker-from-store.execution.d.ts +9 -0
- package/domain/f-connection/remove-snap-connection-from-store/index.d.ts +2 -0
- package/domain/f-connection/remove-snap-connection-from-store/remove-snap-connection-from-store-request.d.ts +2 -0
- package/domain/f-connection/remove-snap-connection-from-store/remove-snap-connection-from-store.execution.d.ts +9 -0
- package/domain/f-connectors/add-input-to-store/add-input-to-store-request.d.ts +5 -0
- package/domain/f-connectors/add-input-to-store/add-input-to-store.execution.d.ts +9 -0
- package/domain/f-connectors/add-input-to-store/index.d.ts +2 -0
- package/domain/f-connectors/add-outlet-to-store/add-outlet-to-store-request.d.ts +5 -0
- package/domain/f-connectors/add-outlet-to-store/add-outlet-to-store.execution.d.ts +9 -0
- package/domain/f-connectors/add-outlet-to-store/index.d.ts +2 -0
- package/domain/f-connectors/add-output-to-store/add-output-to-store-request.d.ts +5 -0
- package/domain/f-connectors/add-output-to-store/add-output-to-store.execution.d.ts +9 -0
- package/domain/f-connectors/add-output-to-store/index.d.ts +2 -0
- package/domain/f-connectors/index.d.ts +7 -0
- package/domain/f-connectors/providers.d.ts +7 -0
- package/domain/f-connectors/remove-input-from-store/index.d.ts +2 -0
- package/domain/f-connectors/remove-input-from-store/remove-input-from-store-request.d.ts +5 -0
- package/domain/f-connectors/remove-input-from-store/remove-input-from-store.execution.d.ts +9 -0
- package/domain/f-connectors/remove-outlet-from-store/index.d.ts +2 -0
- package/domain/f-connectors/remove-outlet-from-store/remove-outlet-from-store-request.d.ts +5 -0
- package/domain/f-connectors/remove-outlet-from-store/remove-outlet-from-store.execution.d.ts +9 -0
- package/domain/f-connectors/remove-output-from-store/index.d.ts +2 -0
- package/domain/f-connectors/remove-output-from-store/remove-output-from-store-request.d.ts +5 -0
- package/domain/f-connectors/remove-output-from-store/remove-output-from-store.execution.d.ts +9 -0
- package/domain/f-draggable/add-dnd-to-store/add-dnd-to-store-request.d.ts +5 -0
- package/domain/f-draggable/add-dnd-to-store/add-dnd-to-store.execution.d.ts +9 -0
- package/domain/f-draggable/add-dnd-to-store/index.d.ts +2 -0
- package/domain/f-draggable/emit-selection-change-event/emit-selection-change-event-request.d.ts +2 -0
- package/domain/f-draggable/emit-selection-change-event/emit-selection-change-event.execution.d.ts +12 -0
- package/domain/f-draggable/emit-selection-change-event/index.d.ts +2 -0
- package/domain/f-draggable/end-drag-sequence/end-drag-sequence-request.d.ts +2 -0
- package/domain/f-draggable/end-drag-sequence/end-drag-sequence.execution.d.ts +11 -0
- package/domain/f-draggable/end-drag-sequence/index.d.ts +2 -0
- package/domain/f-draggable/index.d.ts +10 -0
- package/domain/f-draggable/initialize-drag-sequence/index.d.ts +2 -0
- package/domain/f-draggable/initialize-drag-sequence/initialize-drag-sequence-request.d.ts +2 -0
- package/domain/f-draggable/initialize-drag-sequence/initialize-drag-sequence.execution.d.ts +9 -0
- package/domain/f-draggable/is-drag-started/index.d.ts +2 -0
- package/domain/f-draggable/is-drag-started/is-drag-started-request.d.ts +2 -0
- package/domain/f-draggable/is-drag-started/is-drag-started.execution.d.ts +9 -0
- package/domain/f-draggable/on-pointer-move/index.d.ts +2 -0
- package/domain/f-draggable/on-pointer-move/on-pointer-move-request.d.ts +5 -0
- package/domain/f-draggable/on-pointer-move/on-pointer-move.execution.d.ts +14 -0
- package/domain/f-draggable/prepare-drag-sequence/index.d.ts +2 -0
- package/domain/f-draggable/prepare-drag-sequence/prepare-drag-sequence-request.d.ts +2 -0
- package/domain/f-draggable/prepare-drag-sequence/prepare-drag-sequence.execution.d.ts +11 -0
- package/domain/f-draggable/providers.d.ts +10 -0
- package/domain/f-draggable/remove-dnd-from-store/index.d.ts +2 -0
- package/domain/f-draggable/remove-dnd-from-store/remove-dnd-from-store-request.d.ts +2 -0
- package/domain/f-draggable/remove-dnd-from-store/remove-dnd-from-store.execution.d.ts +9 -0
- package/domain/f-draggable/start-drag-sequence/index.d.ts +2 -0
- package/domain/f-draggable/start-drag-sequence/start-drag-sequence-request.d.ts +2 -0
- package/domain/f-draggable/start-drag-sequence/start-drag-sequence.execution.d.ts +12 -0
- package/domain/f-flow/add-flow-to-store/add-flow-to-store-request.d.ts +5 -0
- package/domain/f-flow/add-flow-to-store/add-flow-to-store.execution.d.ts +9 -0
- package/domain/f-flow/add-flow-to-store/index.d.ts +2 -0
- package/domain/f-flow/get-flow/get-flow-request.d.ts +2 -0
- package/domain/f-flow/get-flow/get-flow.execution.d.ts +10 -0
- package/domain/f-flow/get-flow/index.d.ts +2 -0
- package/domain/f-flow/get-flow-host-element/get-flow-host-element.execution.d.ts +9 -0
- package/domain/f-flow/get-flow-host-element/get-flow-host-element.request.d.ts +2 -0
- package/domain/f-flow/get-flow-host-element/index.d.ts +2 -0
- package/domain/f-flow/index.d.ts +5 -0
- package/domain/f-flow/providers.d.ts +5 -0
- package/domain/f-flow/remove-flow-from-store/index.d.ts +2 -0
- package/domain/f-flow/remove-flow-from-store/remove-flow-from-store-request.d.ts +2 -0
- package/domain/f-flow/remove-flow-from-store/remove-flow-from-store.execution.d.ts +9 -0
- package/domain/f-line-alignment/add-line-alignment-to-store/add-line-alignment-to-store-request.d.ts +5 -0
- package/domain/f-line-alignment/add-line-alignment-to-store/add-line-alignment-to-store.execution.d.ts +9 -0
- package/domain/f-line-alignment/add-line-alignment-to-store/index.d.ts +2 -0
- package/domain/f-line-alignment/index.d.ts +3 -0
- package/domain/f-line-alignment/providers.d.ts +3 -0
- package/domain/f-line-alignment/remove-line-alignment-from-store/index.d.ts +2 -0
- package/domain/f-line-alignment/remove-line-alignment-from-store/remove-line-alignment-from-store-request.d.ts +2 -0
- package/domain/f-line-alignment/remove-line-alignment-from-store/remove-line-alignment-from-store.execution.d.ts +9 -0
- package/domain/f-node/add-node-to-store/add-node-to-store-request.d.ts +5 -0
- package/domain/f-node/add-node-to-store/add-node-to-store.execution.d.ts +9 -0
- package/domain/f-node/add-node-to-store/index.d.ts +2 -0
- package/domain/f-node/calculate-nodes-bounding-box/calculate-nodes-bounding-box.execution.d.ts +12 -0
- package/domain/f-node/calculate-nodes-bounding-box/calculate-nodes-bounding-box.request.d.ts +2 -0
- package/domain/f-node/calculate-nodes-bounding-box/index.d.ts +2 -0
- package/domain/f-node/get-nodes/get-nodes-request.d.ts +2 -0
- package/domain/f-node/get-nodes/get-nodes.execution.d.ts +10 -0
- package/domain/f-node/get-nodes/index.d.ts +2 -0
- package/domain/f-node/index.d.ts +6 -0
- package/domain/f-node/providers.d.ts +6 -0
- package/domain/f-node/remove-node-from-store/index.d.ts +2 -0
- package/domain/f-node/remove-node-from-store/remove-node-from-store-request.d.ts +5 -0
- package/domain/f-node/remove-node-from-store/remove-node-from-store.execution.d.ts +9 -0
- package/domain/f-node/update-node-when-state-or-size-changed/index.d.ts +2 -0
- package/domain/f-node/update-node-when-state-or-size-changed/update-node-when-state-or-size-changed-request.d.ts +7 -0
- package/domain/f-node/update-node-when-state-or-size-changed/update-node-when-state-or-size-changed.execution.d.ts +10 -0
- package/domain/get-element-rect-in-flow/get-element-rect-in-flow.execution.d.ts +5 -6
- package/domain/get-flow-state/i-f-flow-state-connection.d.ts +1 -1
- package/domain/index.d.ts +7 -7
- package/domain/is-mobile.d.ts +1 -0
- package/domain/providers.d.ts +1 -7
- package/domain/transition-end.d.ts +1 -0
- package/esm2022/domain/f-background/add-background-to-store/add-background-to-store-request.mjs +6 -0
- package/esm2022/domain/f-background/add-background-to-store/add-background-to-store.execution.mjs +23 -0
- package/esm2022/domain/f-background/add-background-to-store/index.mjs +3 -0
- package/esm2022/domain/f-background/index.mjs +4 -1
- package/esm2022/domain/f-background/providers.mjs +8 -2
- package/esm2022/domain/f-background/remove-background-from-store/index.mjs +3 -0
- package/esm2022/domain/f-background/remove-background-from-store/remove-background-from-store-request.mjs +6 -0
- package/esm2022/domain/f-background/remove-background-from-store/remove-background-from-store.execution.mjs +23 -0
- package/esm2022/domain/f-background/set-background-transform/index.mjs +3 -0
- package/esm2022/domain/f-background/set-background-transform/set-background-transform-request.mjs +6 -0
- package/esm2022/domain/f-background/set-background-transform/set-background-transform.execution.mjs +23 -0
- package/esm2022/domain/f-canvas/add-canvas-to-store/add-canvas-to-store-request.mjs +6 -0
- package/esm2022/domain/f-canvas/add-canvas-to-store/add-canvas-to-store.execution.mjs +23 -0
- package/esm2022/domain/f-canvas/add-canvas-to-store/index.mjs +3 -0
- package/esm2022/domain/f-canvas/center-group-or-node/center-group-or-node.execution.mjs +15 -16
- package/esm2022/domain/f-canvas/fit-to-flow/fit-to-flow.execution.mjs +15 -18
- package/esm2022/domain/f-canvas/get-canvas/get-canvas-request.mjs +3 -0
- package/esm2022/domain/f-canvas/get-canvas/get-canvas.execution.mjs +27 -0
- package/esm2022/domain/f-canvas/get-canvas/index.mjs +3 -0
- package/esm2022/domain/f-canvas/index.mjs +5 -1
- package/esm2022/domain/f-canvas/input-canvas-position/input-canvas-position.execution.mjs +8 -8
- package/esm2022/domain/f-canvas/input-canvas-scale/input-canvas-scale.execution.mjs +8 -8
- package/esm2022/domain/f-canvas/providers.mjs +9 -1
- package/esm2022/domain/f-canvas/redraw-canvas-with-animation/index.mjs +3 -0
- package/esm2022/domain/f-canvas/redraw-canvas-with-animation/redraw-canvas-with-animation-request.mjs +6 -0
- package/esm2022/domain/f-canvas/redraw-canvas-with-animation/redraw-canvas-with-animation.execution.mjs +36 -0
- package/esm2022/domain/f-canvas/remove-canvas-from-store/index.mjs +3 -0
- package/esm2022/domain/f-canvas/remove-canvas-from-store/remove-canvas-from-store-request.mjs +3 -0
- package/esm2022/domain/f-canvas/remove-canvas-from-store/remove-canvas-from-store.execution.mjs +23 -0
- package/esm2022/domain/f-canvas/reset-scale/reset-scale.execution.mjs +9 -9
- package/esm2022/domain/f-canvas/reset-scale-and-center/reset-scale-and-center.execution.mjs +15 -18
- package/esm2022/domain/f-canvas/update-scale/update-scale.execution.mjs +9 -9
- package/esm2022/domain/f-connection/add-connection-for-create-to-store/add-connection-for-create-to-store-request.mjs +6 -0
- package/esm2022/domain/f-connection/add-connection-for-create-to-store/add-connection-for-create-to-store.execution.mjs +23 -0
- package/esm2022/domain/f-connection/add-connection-for-create-to-store/index.mjs +3 -0
- package/esm2022/domain/f-connection/add-connection-marker-to-store/add-connection-marker-to-store-request.mjs +6 -0
- package/esm2022/domain/f-connection/add-connection-marker-to-store/add-connection-marker-to-store.execution.mjs +23 -0
- package/esm2022/domain/f-connection/add-connection-marker-to-store/index.mjs +3 -0
- package/esm2022/domain/f-connection/add-connection-to-store/add-connection-to-store.execution.mjs +9 -9
- package/esm2022/domain/f-connection/add-snap-connection-to-store/add-snap-connection-to-store-request.mjs +6 -0
- package/esm2022/domain/f-connection/add-snap-connection-to-store/add-snap-connection-to-store.execution.mjs +23 -0
- package/esm2022/domain/f-connection/add-snap-connection-to-store/index.mjs +3 -0
- package/esm2022/domain/f-connection/create-connection-markers/create-connection-markers-request.mjs +6 -0
- package/esm2022/domain/f-connection/create-connection-markers/create-connection-markers.execution.mjs +60 -0
- package/esm2022/domain/f-connection/create-connection-markers/index.mjs +3 -0
- package/esm2022/domain/f-connection/get-all-can-be-connected-input-positions/get-all-can-be-connected-input-positions.execution.mjs +3 -3
- package/esm2022/domain/f-connection/index.mjs +9 -1
- package/esm2022/domain/f-connection/providers.mjs +18 -2
- package/esm2022/domain/f-connection/redraw-connections/index.mjs +3 -0
- package/esm2022/domain/f-connection/redraw-connections/redraw-connections-request.mjs +3 -0
- package/esm2022/domain/f-connection/redraw-connections/redraw-connections.execution.mjs +60 -0
- package/esm2022/domain/f-connection/remove-connection-for-create-from-store/index.mjs +3 -0
- package/esm2022/domain/f-connection/remove-connection-for-create-from-store/remove-connection-for-create-from-store-request.mjs +3 -0
- package/esm2022/domain/f-connection/remove-connection-for-create-from-store/remove-connection-for-create-from-store.execution.mjs +23 -0
- package/esm2022/domain/f-connection/remove-connection-from-store/remove-connection-from-store.execution.mjs +14 -11
- package/esm2022/domain/f-connection/remove-connection-marker-from-store/index.mjs +3 -0
- package/esm2022/domain/f-connection/remove-connection-marker-from-store/remove-connection-marker-from-store-request.mjs +6 -0
- package/esm2022/domain/f-connection/remove-connection-marker-from-store/remove-connection-marker-from-store.execution.mjs +23 -0
- package/esm2022/domain/f-connection/remove-snap-connection-from-store/index.mjs +3 -0
- package/esm2022/domain/f-connection/remove-snap-connection-from-store/remove-snap-connection-from-store-request.mjs +3 -0
- package/esm2022/domain/f-connection/remove-snap-connection-from-store/remove-snap-connection-from-store.execution.mjs +23 -0
- package/esm2022/domain/f-connectors/add-input-to-store/add-input-to-store-request.mjs +6 -0
- package/esm2022/domain/f-connectors/add-input-to-store/add-input-to-store.execution.mjs +23 -0
- package/esm2022/domain/f-connectors/add-input-to-store/index.mjs +3 -0
- package/esm2022/domain/f-connectors/add-outlet-to-store/add-outlet-to-store-request.mjs +6 -0
- package/esm2022/domain/f-connectors/add-outlet-to-store/add-outlet-to-store.execution.mjs +23 -0
- package/esm2022/domain/f-connectors/add-outlet-to-store/index.mjs +3 -0
- package/esm2022/domain/f-connectors/add-output-to-store/add-output-to-store-request.mjs +6 -0
- package/esm2022/domain/f-connectors/add-output-to-store/add-output-to-store.execution.mjs +23 -0
- package/esm2022/domain/f-connectors/add-output-to-store/index.mjs +3 -0
- package/esm2022/domain/f-connectors/index.mjs +8 -0
- package/esm2022/domain/f-connectors/providers.mjs +15 -0
- package/esm2022/domain/f-connectors/remove-input-from-store/index.mjs +3 -0
- package/esm2022/domain/f-connectors/remove-input-from-store/remove-input-from-store-request.mjs +6 -0
- package/esm2022/domain/f-connectors/remove-input-from-store/remove-input-from-store.execution.mjs +23 -0
- package/esm2022/domain/f-connectors/remove-outlet-from-store/index.mjs +3 -0
- package/esm2022/domain/f-connectors/remove-outlet-from-store/remove-outlet-from-store-request.mjs +6 -0
- package/esm2022/domain/f-connectors/remove-outlet-from-store/remove-outlet-from-store.execution.mjs +23 -0
- package/esm2022/domain/f-connectors/remove-output-from-store/index.mjs +3 -0
- package/esm2022/domain/f-connectors/remove-output-from-store/remove-output-from-store-request.mjs +6 -0
- package/esm2022/domain/f-connectors/remove-output-from-store/remove-output-from-store.execution.mjs +23 -0
- package/esm2022/domain/f-draggable/add-dnd-to-store/add-dnd-to-store-request.mjs +6 -0
- package/esm2022/domain/f-draggable/add-dnd-to-store/add-dnd-to-store.execution.mjs +23 -0
- package/esm2022/domain/f-draggable/add-dnd-to-store/index.mjs +3 -0
- package/esm2022/domain/f-draggable/emit-selection-change-event/emit-selection-change-event-request.mjs +3 -0
- package/esm2022/domain/f-draggable/emit-selection-change-event/emit-selection-change-event.execution.mjs +36 -0
- package/esm2022/domain/f-draggable/emit-selection-change-event/index.mjs +3 -0
- package/esm2022/domain/f-draggable/end-drag-sequence/end-drag-sequence-request.mjs +3 -0
- package/esm2022/domain/f-draggable/end-drag-sequence/end-drag-sequence.execution.mjs +29 -0
- package/esm2022/domain/f-draggable/end-drag-sequence/index.mjs +3 -0
- package/esm2022/domain/f-draggable/index.mjs +11 -0
- package/esm2022/domain/f-draggable/initialize-drag-sequence/index.mjs +3 -0
- package/esm2022/domain/f-draggable/initialize-drag-sequence/initialize-drag-sequence-request.mjs +3 -0
- package/esm2022/domain/f-draggable/initialize-drag-sequence/initialize-drag-sequence.execution.mjs +23 -0
- package/esm2022/domain/f-draggable/is-drag-started/index.mjs +3 -0
- package/esm2022/domain/f-draggable/is-drag-started/is-drag-started-request.mjs +3 -0
- package/esm2022/domain/f-draggable/is-drag-started/is-drag-started.execution.mjs +23 -0
- package/esm2022/domain/f-draggable/on-pointer-move/index.mjs +3 -0
- package/esm2022/domain/f-draggable/on-pointer-move/on-pointer-move-request.mjs +6 -0
- package/esm2022/domain/f-draggable/on-pointer-move/on-pointer-move.execution.mjs +42 -0
- package/esm2022/domain/f-draggable/prepare-drag-sequence/index.mjs +3 -0
- package/esm2022/domain/f-draggable/prepare-drag-sequence/prepare-drag-sequence-request.mjs +3 -0
- package/esm2022/domain/f-draggable/prepare-drag-sequence/prepare-drag-sequence.execution.mjs +31 -0
- package/esm2022/domain/f-draggable/providers.mjs +21 -0
- package/esm2022/domain/f-draggable/remove-dnd-from-store/index.mjs +3 -0
- package/esm2022/domain/f-draggable/remove-dnd-from-store/remove-dnd-from-store-request.mjs +3 -0
- package/esm2022/domain/f-draggable/remove-dnd-from-store/remove-dnd-from-store.execution.mjs +23 -0
- package/esm2022/domain/f-draggable/start-drag-sequence/index.mjs +3 -0
- package/esm2022/domain/f-draggable/start-drag-sequence/start-drag-sequence-request.mjs +3 -0
- package/esm2022/domain/f-draggable/start-drag-sequence/start-drag-sequence.execution.mjs +33 -0
- package/esm2022/domain/f-flow/add-flow-to-store/add-flow-to-store-request.mjs +6 -0
- package/esm2022/domain/f-flow/add-flow-to-store/add-flow-to-store.execution.mjs +23 -0
- package/esm2022/domain/f-flow/add-flow-to-store/index.mjs +3 -0
- package/esm2022/domain/f-flow/get-flow/get-flow-request.mjs +3 -0
- package/esm2022/domain/f-flow/get-flow/get-flow.execution.mjs +27 -0
- package/esm2022/domain/f-flow/get-flow/index.mjs +3 -0
- package/esm2022/domain/f-flow/get-flow-host-element/get-flow-host-element.execution.mjs +23 -0
- package/esm2022/domain/f-flow/get-flow-host-element/get-flow-host-element.request.mjs +3 -0
- package/esm2022/domain/f-flow/get-flow-host-element/index.mjs +3 -0
- package/esm2022/domain/f-flow/index.mjs +6 -0
- package/esm2022/domain/f-flow/providers.mjs +11 -0
- package/esm2022/domain/f-flow/remove-flow-from-store/index.mjs +3 -0
- package/esm2022/domain/f-flow/remove-flow-from-store/remove-flow-from-store-request.mjs +3 -0
- package/esm2022/domain/f-flow/remove-flow-from-store/remove-flow-from-store.execution.mjs +23 -0
- package/esm2022/domain/f-line-alignment/add-line-alignment-to-store/add-line-alignment-to-store-request.mjs +6 -0
- package/esm2022/domain/f-line-alignment/add-line-alignment-to-store/add-line-alignment-to-store.execution.mjs +23 -0
- package/esm2022/domain/f-line-alignment/add-line-alignment-to-store/index.mjs +3 -0
- package/esm2022/domain/f-line-alignment/index.mjs +4 -0
- package/esm2022/domain/f-line-alignment/providers.mjs +7 -0
- package/esm2022/domain/f-line-alignment/remove-line-alignment-from-store/index.mjs +3 -0
- package/esm2022/domain/f-line-alignment/remove-line-alignment-from-store/remove-line-alignment-from-store-request.mjs +3 -0
- package/esm2022/domain/f-line-alignment/remove-line-alignment-from-store/remove-line-alignment-from-store.execution.mjs +23 -0
- package/esm2022/domain/f-node/add-node-to-store/add-node-to-store-request.mjs +6 -0
- package/esm2022/domain/f-node/add-node-to-store/add-node-to-store.execution.mjs +23 -0
- package/esm2022/domain/f-node/add-node-to-store/index.mjs +3 -0
- package/esm2022/domain/f-node/calculate-nodes-bounding-box/calculate-nodes-bounding-box.execution.mjs +30 -0
- package/esm2022/domain/f-node/calculate-nodes-bounding-box/calculate-nodes-bounding-box.request.mjs +3 -0
- package/esm2022/domain/f-node/calculate-nodes-bounding-box/index.mjs +3 -0
- package/esm2022/domain/f-node/get-nodes/get-nodes-request.mjs +3 -0
- package/esm2022/domain/f-node/get-nodes/get-nodes.execution.mjs +23 -0
- package/esm2022/domain/f-node/get-nodes/index.mjs +3 -0
- package/esm2022/domain/f-node/index.mjs +7 -0
- package/esm2022/domain/f-node/providers.mjs +13 -0
- package/esm2022/domain/f-node/remove-node-from-store/index.mjs +3 -0
- package/esm2022/domain/f-node/remove-node-from-store/remove-node-from-store-request.mjs +6 -0
- package/esm2022/domain/f-node/remove-node-from-store/remove-node-from-store.execution.mjs +23 -0
- package/esm2022/domain/f-node/update-node-when-state-or-size-changed/index.mjs +3 -0
- package/esm2022/domain/f-node/update-node-when-state-or-size-changed/update-node-when-state-or-size-changed-request.mjs +7 -0
- package/esm2022/domain/f-node/update-node-when-state-or-size-changed/update-node-when-state-or-size-changed.execution.mjs +35 -0
- package/esm2022/domain/get-element-rect-in-flow/get-element-rect-in-flow.execution.mjs +19 -17
- package/esm2022/domain/get-flow-state/get-flow-state-nodes/get-flow-state-nodes.execution.mjs +3 -3
- package/esm2022/domain/get-flow-state/i-f-flow-state-connection.mjs +1 -1
- package/esm2022/domain/get-position-in-flow/get-position-in-flow.execution.mjs +2 -2
- package/esm2022/domain/index.mjs +8 -8
- package/esm2022/domain/is-connection-under-node/is-connection-under-node.execution.mjs +3 -4
- package/esm2022/domain/is-mobile.mjs +5 -0
- package/esm2022/domain/providers.mjs +11 -13
- package/esm2022/domain/transition-end.mjs +10 -0
- package/esm2022/f-backgroud/f-background-base.mjs +1 -1
- package/esm2022/f-backgroud/f-background.component.mjs +15 -20
- package/esm2022/f-backgroud/f-circle-pattern/f-circle-pattern.component.mjs +40 -46
- package/esm2022/f-backgroud/f-rect-pattern/f-rect-pattern.component.mjs +42 -56
- package/esm2022/f-canvas/f-canvas-base.mjs +1 -1
- package/esm2022/f-canvas/f-canvas.component.mjs +30 -40
- package/esm2022/f-connection/common/f-connection-base.mjs +1 -3
- package/esm2022/f-connection/common/f-connection-text/f-connection-text-path.directive.mjs +2 -2
- package/esm2022/f-connection/common/f-drag-handle/f-connection-drag-handle.component.mjs +3 -3
- package/esm2022/f-connection/common/i-has-connection-text.mjs +1 -1
- package/esm2022/f-connection/f-connection/f-connection.component.mjs +36 -90
- package/esm2022/f-connection/f-connection-builder/i-f-connection-factory-request.mjs +1 -1
- package/esm2022/f-connection/f-connection-for-create/f-connection-for-create.component.mjs +30 -65
- package/esm2022/f-connection/f-marker/f-marker.directive.mjs +10 -9
- package/esm2022/f-connection/f-snap-connection/f-snap-connection.component.mjs +30 -65
- package/esm2022/f-connectors/domain/calculate-connector-connectable-side/calculate-connector-connectable-side.handler.mjs +3 -3
- package/esm2022/f-connectors/f-connector-base.mjs +9 -6
- package/esm2022/f-connectors/f-node-input/f-node-input-base.mjs +1 -5
- package/esm2022/f-connectors/f-node-input/f-node-input.directive.mjs +33 -42
- package/esm2022/f-connectors/f-node-outlet/f-node-outlet-base.mjs +1 -2
- package/esm2022/f-connectors/f-node-outlet/f-node-outlet.directive.mjs +21 -33
- package/esm2022/f-connectors/f-node-output/f-node-output-base.mjs +1 -5
- package/esm2022/f-connectors/f-node-output/f-node-output.directive.mjs +33 -45
- package/esm2022/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.execution.mjs +2 -2
- package/esm2022/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.validator.mjs +4 -3
- package/esm2022/f-draggable/canvas/canvas.drag-handler.mjs +4 -4
- package/esm2022/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.execution.mjs +5 -5
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/create-connection-from-outlet-preparation.execution.mjs +3 -2
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.validator.mjs +3 -2
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.execution.mjs +3 -2
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.validator.mjs +3 -2
- package/esm2022/f-draggable/connections/create-connection/create-connection.drag-handler.mjs +8 -8
- package/esm2022/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.execution.mjs +3 -3
- package/esm2022/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.validator.mjs +3 -3
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.execution.mjs +4 -4
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.mjs +6 -6
- package/esm2022/f-draggable/f-draggable.directive.mjs +45 -95
- package/esm2022/f-draggable/i-draggable-item.mjs +1 -1
- package/esm2022/f-draggable/index.mjs +2 -1
- package/esm2022/f-draggable/node/connection-base-drag-handler.mjs +4 -4
- package/esm2022/f-draggable/node/connection-source.drag-handler.mjs +2 -2
- package/esm2022/f-draggable/node/connection-target.drag-handler.mjs +2 -2
- package/esm2022/f-draggable/node/connection.drag-handler.mjs +2 -2
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.mjs +8 -5
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-input-connection-handlers-to-array/put-input-connection-handlers-to-array.execution.mjs +2 -2
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-output-connection-handlers-to-array/put-output-connection-handlers-to-array.execution.mjs +2 -2
- package/esm2022/f-draggable/node/node-drag-to-parent-finalize/node-drag-to-parent-finalize.execution.mjs +4 -2
- package/esm2022/f-draggable/node/node-drag-to-parent-preparation/node-drag-to-parent-preparation.execution.mjs +4 -3
- package/esm2022/f-draggable/node/node-drag-to-parent.drag-handler.mjs +4 -4
- package/esm2022/f-draggable/node/node-move-finalize/node-move-finalize.execution.mjs +3 -3
- package/esm2022/f-draggable/node/node-move-preparation/node-move-preparation.execution.mjs +2 -2
- package/esm2022/f-draggable/node/node-move-preparation/node-move-preparation.validator.mjs +2 -2
- package/esm2022/f-draggable/node/node-resize-by-child.drag-handler.mjs +5 -3
- package/esm2022/f-draggable/node/node.drag-handler.mjs +3 -3
- package/esm2022/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.execution.mjs +2 -2
- package/esm2022/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.execution.mjs +3 -2
- package/esm2022/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.validator.mjs +3 -2
- package/esm2022/f-draggable/node-resize/node-resize.drag-handler.mjs +4 -4
- package/esm2022/f-draggable/providers.mjs +2 -2
- package/esm2022/f-draggable/single-select/single-select.execution.mjs +5 -2
- package/esm2022/f-external-item/domain/external-item-finalize/external-item-finalize.execution.mjs +2 -2
- package/esm2022/f-external-item/domain/external-item-preparation/external-item-preparation.validator.mjs +1 -1
- package/esm2022/f-external-item/domain/external-item.drag-handler.mjs +4 -4
- package/esm2022/f-external-item/domain/index.mjs +2 -1
- package/esm2022/f-external-item/domain/prevent-default-is-external-item/index.mjs +3 -0
- package/esm2022/f-external-item/domain/prevent-default-is-external-item/prevent-default-is-external-item.execution.mjs +36 -0
- package/esm2022/f-external-item/domain/prevent-default-is-external-item/prevent-default-is-external-item.request.mjs +6 -0
- package/esm2022/f-external-item/domain/providers.mjs +3 -1
- package/esm2022/f-flow/f-flow-base.mjs +1 -1
- package/esm2022/f-flow/f-flow.component.mjs +46 -49
- package/esm2022/f-line-alignment/f-line-alignment.component.mjs +21 -22
- package/esm2022/f-minimap/domain/f-minimap.drag-handler.mjs +4 -4
- package/esm2022/f-minimap/domain/index.mjs +4 -2
- package/esm2022/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/i-f-minimap-scale-and-view-box.mjs +2 -0
- package/esm2022/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/index.mjs +4 -0
- package/esm2022/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/minimap-calculate-svg-scale-and-view-box.execution.mjs +71 -0
- package/esm2022/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/minimap-calculate-svg-scale-and-view-box.request.mjs +7 -0
- package/esm2022/f-minimap/domain/minimap-calculate-view-box/index.mjs +3 -0
- package/esm2022/f-minimap/domain/minimap-calculate-view-box/minimap-calculate-view-box.execution.mjs +39 -0
- package/esm2022/f-minimap/domain/minimap-calculate-view-box/minimap-calculate-view-box.request.mjs +3 -0
- package/esm2022/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.execution.mjs +2 -2
- package/esm2022/f-minimap/domain/minimap-draw-nodes/index.mjs +3 -0
- package/esm2022/f-minimap/domain/minimap-draw-nodes/minimap-draw-nodes.execution.mjs +60 -0
- package/esm2022/f-minimap/domain/minimap-draw-nodes/minimap-draw-nodes.request.mjs +3 -0
- package/esm2022/f-minimap/domain/providers.mjs +7 -1
- package/esm2022/f-minimap/f-minimap-canvas.directive.mjs +17 -51
- package/esm2022/f-minimap/f-minimap-flow.directive.mjs +16 -60
- package/esm2022/f-minimap/f-minimap-view.directive.mjs +14 -25
- package/esm2022/f-minimap/f-minimap.component.mjs +28 -30
- package/esm2022/f-node/domain/index.mjs +1 -2
- package/esm2022/f-node/f-drag-handle/f-drag-handle.directive.mjs +8 -8
- package/esm2022/f-node/f-group.directive.mjs +18 -42
- package/esm2022/f-node/f-node-base.mjs +15 -3
- package/esm2022/f-node/f-node.directive.mjs +18 -42
- package/esm2022/f-node/f-resize-handle/f-resize-handle.directive.mjs +13 -16
- package/esm2022/f-node/index.mjs +1 -2
- package/esm2022/f-selection-area/domain/selection-area-finalize/selection-area-finalize.execution.mjs +2 -2
- package/esm2022/f-selection-area/domain/selection-area.drag-handle.mjs +6 -6
- package/esm2022/f-selection-area/f-selection-area.component.mjs +13 -13
- package/esm2022/f-storage/f-components-store.mjs +15 -20
- package/esm2022/f-storage/features/listen-components-data-changed/index.mjs +3 -0
- package/esm2022/f-storage/features/listen-components-data-changed/listen-data-changes-request.mjs +3 -0
- package/esm2022/f-storage/features/listen-components-data-changed/listen-data-changes.execution.mjs +25 -0
- package/esm2022/f-storage/features/listen-count-changes/index.mjs +3 -0
- package/esm2022/f-storage/features/listen-count-changes/listen-count-changes-request.mjs +3 -0
- package/esm2022/f-storage/features/listen-count-changes/listen-count-changes.execution.mjs +25 -0
- package/esm2022/f-storage/features/listen-transform-changes/index.mjs +3 -0
- package/esm2022/f-storage/features/listen-transform-changes/listen-transform-changes.execution.mjs +24 -0
- package/esm2022/f-storage/features/listen-transform-changes/listen-transform-changes.request.mjs +3 -0
- package/esm2022/f-storage/features/notify-data-changed/index.mjs +3 -0
- package/esm2022/f-storage/features/notify-data-changed/notify-data-changed-request.mjs +3 -0
- package/esm2022/f-storage/features/notify-data-changed/notify-data-changed.execution.mjs +23 -0
- package/esm2022/f-storage/features/notify-transform-changed/index.mjs +3 -0
- package/esm2022/f-storage/features/notify-transform-changed/notify-transform-changed.execution.mjs +23 -0
- package/esm2022/f-storage/features/notify-transform-changed/notify-transform-changed.request.mjs +3 -0
- package/esm2022/f-storage/index.mjs +7 -2
- package/esm2022/f-storage/providers.mjs +15 -0
- package/esm2022/f-zoom/f-zoom-base.mjs +51 -45
- package/esm2022/f-zoom/f-zoom.directive.mjs +11 -12
- package/esm2022/public-api.mjs +2 -2
- package/esm2022/reactivity/debounce-time.mjs +10 -0
- package/esm2022/reactivity/f-channel-hub.mjs +23 -0
- package/esm2022/reactivity/f-channel.mjs +16 -0
- package/esm2022/reactivity/f-resize-channel.mjs +28 -0
- package/esm2022/reactivity/index.mjs +7 -0
- package/esm2022/reactivity/notify-on-start.mjs +7 -0
- package/esm2022/reactivity/types.mjs +2 -0
- package/f-backgroud/f-background-base.d.ts +0 -1
- package/f-backgroud/f-background.component.d.ts +3 -8
- package/f-backgroud/f-circle-pattern/f-circle-pattern.component.d.ts +16 -17
- package/f-backgroud/f-rect-pattern/f-rect-pattern.component.d.ts +17 -20
- package/f-canvas/f-canvas-base.d.ts +0 -2
- package/f-canvas/f-canvas.component.d.ts +5 -11
- package/f-connection/common/f-connection-base.d.ts +3 -5
- package/f-connection/common/f-drag-handle/f-connection-drag-handle.component.d.ts +1 -1
- package/f-connection/common/i-has-connection-text.d.ts +1 -0
- package/f-connection/f-connection/f-connection.component.d.ts +17 -35
- package/f-connection/f-connection-builder/i-f-connection-factory-request.d.ts +1 -1
- package/f-connection/f-connection-for-create/f-connection-for-create.component.d.ts +13 -23
- package/f-connection/f-marker/f-marker.directive.d.ts +2 -3
- package/f-connection/f-snap-connection/f-snap-connection.component.d.ts +13 -23
- package/f-connection/providers.d.ts +1 -1
- package/f-connectors/f-connector-base.d.ts +7 -8
- package/f-connectors/f-node-input/f-node-input-base.d.ts +0 -1
- package/f-connectors/f-node-input/f-node-input.directive.d.ts +14 -16
- package/f-connectors/f-node-outlet/f-node-outlet-base.d.ts +0 -1
- package/f-connectors/f-node-outlet/f-node-outlet.directive.d.ts +9 -11
- package/f-connectors/f-node-output/f-node-output-base.d.ts +0 -1
- package/f-connectors/f-node-output/f-node-output.directive.d.ts +14 -16
- package/f-draggable/canvas/canvas.drag-handler.d.ts +3 -3
- package/f-draggable/connections/create-connection/create-connection.drag-handler.d.ts +3 -3
- package/f-draggable/connections/providers.d.ts +1 -1
- package/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.d.ts +3 -3
- package/f-draggable/f-draggable.directive.d.ts +6 -15
- package/f-draggable/i-draggable-item.d.ts +3 -3
- package/f-draggable/index.d.ts +1 -0
- package/f-draggable/node/connection-base-drag-handler.d.ts +2 -2
- package/f-draggable/node/connection-source.drag-handler.d.ts +1 -1
- package/f-draggable/node/connection-target.drag-handler.d.ts +1 -1
- package/f-draggable/node/connection.drag-handler.d.ts +1 -1
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.d.ts +1 -0
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/providers.d.ts +1 -1
- package/f-draggable/node/node-drag-to-parent.drag-handler.d.ts +2 -2
- package/f-draggable/node/node-resize-by-child.drag-handler.d.ts +3 -2
- package/f-draggable/node/node.drag-handler.d.ts +2 -2
- package/f-draggable/node/providers.d.ts +1 -1
- package/f-draggable/node-resize/node-resize.drag-handler.d.ts +3 -3
- package/f-draggable/providers.d.ts +1 -1
- package/f-draggable/single-select/single-select.execution.d.ts +1 -0
- package/f-external-item/domain/external-item.drag-handler.d.ts +3 -3
- package/f-external-item/domain/index.d.ts +1 -0
- package/f-external-item/domain/prevent-default-is-external-item/index.d.ts +2 -0
- package/f-external-item/domain/prevent-default-is-external-item/prevent-default-is-external-item.execution.d.ts +10 -0
- package/f-external-item/domain/prevent-default-is-external-item/prevent-default-is-external-item.request.d.ts +4 -0
- package/f-external-item/domain/providers.d.ts +2 -1
- package/f-flow/f-flow-base.d.ts +1 -1
- package/f-flow/f-flow.component.d.ts +11 -13
- package/f-line-alignment/f-line-alignment.component.d.ts +8 -10
- package/f-minimap/domain/f-minimap.drag-handler.d.ts +3 -3
- package/f-minimap/domain/index.d.ts +3 -1
- package/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/i-f-minimap-scale-and-view-box.d.ts +5 -0
- package/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/index.d.ts +3 -0
- package/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/minimap-calculate-svg-scale-and-view-box.execution.d.ts +22 -0
- package/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/minimap-calculate-svg-scale-and-view-box.request.d.ts +5 -0
- package/f-minimap/domain/minimap-calculate-view-box/index.d.ts +2 -0
- package/f-minimap/domain/minimap-calculate-view-box/minimap-calculate-view-box.execution.d.ts +14 -0
- package/f-minimap/domain/minimap-calculate-view-box/minimap-calculate-view-box.request.d.ts +2 -0
- package/f-minimap/domain/minimap-draw-nodes/index.d.ts +2 -0
- package/f-minimap/domain/minimap-draw-nodes/minimap-draw-nodes.execution.d.ts +18 -0
- package/f-minimap/domain/minimap-draw-nodes/minimap-draw-nodes.request.d.ts +2 -0
- package/f-minimap/domain/providers.d.ts +4 -1
- package/f-minimap/f-minimap-canvas.directive.d.ts +3 -15
- package/f-minimap/f-minimap-flow.directive.d.ts +4 -20
- package/f-minimap/f-minimap-view.directive.d.ts +4 -9
- package/f-minimap/f-minimap.component.d.ts +7 -10
- package/f-node/domain/index.d.ts +0 -1
- package/f-node/f-drag-handle/f-drag-handle.directive.d.ts +2 -3
- package/f-node/f-group.directive.d.ts +4 -11
- package/f-node/f-node-base.d.ts +6 -7
- package/f-node/f-node.directive.d.ts +4 -11
- package/f-node/f-resize-handle/f-resize-handle.directive.d.ts +4 -6
- package/f-node/index.d.ts +0 -1
- package/f-selection-area/domain/selection-area.drag-handle.d.ts +3 -3
- package/f-selection-area/f-selection-area.component.d.ts +3 -5
- package/f-storage/f-components-store.d.ts +7 -9
- package/f-storage/features/listen-components-data-changed/index.d.ts +2 -0
- package/f-storage/features/listen-components-data-changed/listen-data-changes-request.d.ts +2 -0
- package/f-storage/features/listen-components-data-changed/listen-data-changes.execution.d.ts +10 -0
- package/f-storage/features/listen-count-changes/index.d.ts +2 -0
- package/f-storage/features/listen-count-changes/listen-count-changes-request.d.ts +2 -0
- package/f-storage/features/listen-count-changes/listen-count-changes.execution.d.ts +10 -0
- package/f-storage/features/listen-transform-changes/index.d.ts +2 -0
- package/f-storage/features/listen-transform-changes/listen-transform-changes.execution.d.ts +10 -0
- package/f-storage/features/listen-transform-changes/listen-transform-changes.request.d.ts +2 -0
- package/f-storage/features/notify-data-changed/index.d.ts +2 -0
- package/f-storage/features/notify-data-changed/notify-data-changed-request.d.ts +2 -0
- package/f-storage/features/notify-data-changed/notify-data-changed.execution.d.ts +9 -0
- package/f-storage/features/notify-transform-changed/index.d.ts +2 -0
- package/f-storage/features/notify-transform-changed/notify-transform-changed.execution.d.ts +9 -0
- package/f-storage/features/notify-transform-changed/notify-transform-changed.request.d.ts +2 -0
- package/f-storage/index.d.ts +6 -1
- package/f-storage/providers.d.ts +7 -0
- package/f-zoom/f-zoom-base.d.ts +10 -11
- package/f-zoom/f-zoom.directive.d.ts +0 -2
- package/fesm2022/foblex-flow.mjs +5843 -4931
- package/fesm2022/foblex-flow.mjs.map +1 -1
- package/package.json +5 -6
- package/public-api.d.ts +1 -1
- package/reactivity/debounce-time.d.ts +2 -0
- package/reactivity/f-channel-hub.d.ts +10 -0
- package/reactivity/f-channel.d.ts +7 -0
- package/reactivity/f-resize-channel.d.ts +11 -0
- package/reactivity/index.d.ts +6 -0
- package/reactivity/notify-on-start.d.ts +2 -0
- package/reactivity/types.d.ts +2 -0
- package/domain/constants.d.ts +0 -1
- package/domain/emit-transform-changes/emit-transform-changes.execution.d.ts +0 -11
- package/domain/emit-transform-changes/emit-transform-changes.request.d.ts +0 -2
- package/domain/emit-transform-changes/index.d.ts +0 -2
- package/domain/get-nodes-rect/get-nodes-rect.execution.d.ts +0 -14
- package/domain/get-nodes-rect/get-nodes-rect.request.d.ts +0 -2
- package/domain/get-nodes-rect/index.d.ts +0 -2
- package/domain/show-connections-after-calculations/index.d.ts +0 -2
- package/domain/show-connections-after-calculations/show-connections-after-calculations-request.d.ts +0 -2
- package/domain/show-connections-after-calculations/show-connections-after-calculations.execution.d.ts +0 -11
- package/domain/subscribe-on-transform-changes/index.d.ts +0 -2
- package/domain/subscribe-on-transform-changes/subscribe-on-transform-changes.execution.d.ts +0 -13
- package/domain/subscribe-on-transform-changes/subscribe-on-transform-changes.request.d.ts +0 -2
- package/esm2022/domain/constants.mjs +0 -2
- package/esm2022/domain/create-connection-markers/create-connection-markers-request.mjs +0 -6
- package/esm2022/domain/create-connection-markers/create-connection-markers.execution.mjs +0 -60
- package/esm2022/domain/create-connection-markers/index.mjs +0 -3
- package/esm2022/domain/emit-transform-changes/emit-transform-changes.execution.mjs +0 -23
- package/esm2022/domain/emit-transform-changes/emit-transform-changes.request.mjs +0 -3
- package/esm2022/domain/emit-transform-changes/index.mjs +0 -3
- package/esm2022/domain/get-nodes-rect/get-nodes-rect.execution.mjs +0 -30
- package/esm2022/domain/get-nodes-rect/get-nodes-rect.request.mjs +0 -3
- package/esm2022/domain/get-nodes-rect/index.mjs +0 -3
- package/esm2022/domain/redraw-connections/index.mjs +0 -3
- package/esm2022/domain/redraw-connections/redraw-connections-request.mjs +0 -3
- package/esm2022/domain/redraw-connections/redraw-connections.execution.mjs +0 -62
- package/esm2022/domain/show-connections-after-calculations/index.mjs +0 -3
- package/esm2022/domain/show-connections-after-calculations/show-connections-after-calculations-request.mjs +0 -3
- package/esm2022/domain/show-connections-after-calculations/show-connections-after-calculations.execution.mjs +0 -25
- package/esm2022/domain/subscribe-on-transform-changes/index.mjs +0 -3
- package/esm2022/domain/subscribe-on-transform-changes/subscribe-on-transform-changes.execution.mjs +0 -25
- package/esm2022/domain/subscribe-on-transform-changes/subscribe-on-transform-changes.request.mjs +0 -3
- package/esm2022/f-minimap/domain/check-rect-is-finite.mjs +0 -8
- package/esm2022/f-node/domain/is-group.mjs +0 -4
- package/esm2022/f-node/f-resize-observer.mjs +0 -16
- package/esm2022/f-storage/f-transform-store.mjs +0 -14
- package/esm2022/i-has-state-changes.mjs +0 -2
- package/f-minimap/domain/check-rect-is-finite.d.ts +0 -2
- package/f-node/domain/is-group.d.ts +0 -1
- package/f-node/f-resize-observer.d.ts +0 -4
- package/f-storage/f-transform-store.d.ts +0 -7
- package/i-has-state-changes.d.ts +0 -4
- /package/domain/{create-connection-markers → f-connection/create-connection-markers}/index.d.ts +0 -0
- /package/domain/{redraw-connections → f-connection/redraw-connections}/index.d.ts +0 -0
- /package/domain/{redraw-connections → f-connection/redraw-connections}/redraw-connections-request.d.ts +0 -0
package/domain/index.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
export * from './create-connection-markers';
|
|
2
1
|
export * from './create-rounded-rect-from-element';
|
|
3
|
-
export * from './emit-transform-changes';
|
|
4
2
|
export * from './f-background';
|
|
5
3
|
export * from './f-canvas';
|
|
6
4
|
export * from './f-connection';
|
|
5
|
+
export * from './f-connectors';
|
|
6
|
+
export * from './f-draggable';
|
|
7
|
+
export * from './f-flow';
|
|
8
|
+
export * from './f-line-alignment';
|
|
9
|
+
export * from './f-node';
|
|
7
10
|
export * from './f-selection';
|
|
8
11
|
export * from './get-can-be-selected-items';
|
|
9
12
|
export * from './get-deep-children-nodes-and-groups';
|
|
@@ -11,15 +14,12 @@ export * from './get-connection-line';
|
|
|
11
14
|
export * from './get-element-rect-in-flow';
|
|
12
15
|
export * from './get-flow-state';
|
|
13
16
|
export * from './get-scaled-node-rects-with-flow-position';
|
|
14
|
-
export * from './get-nodes-rect';
|
|
15
17
|
export * from './get-position-in-flow';
|
|
16
18
|
export * from './is-connection-under-node';
|
|
17
|
-
export * from './redraw-connections';
|
|
18
|
-
export * from './show-connections-after-calculations';
|
|
19
19
|
export * from './sort-item-layers';
|
|
20
|
-
export * from './subscribe-on-transform-changes';
|
|
21
20
|
export * from './update-item-and-children-layers';
|
|
22
|
-
export * from './constants';
|
|
23
21
|
export * from './create-dom-element';
|
|
24
22
|
export * from './i-map';
|
|
23
|
+
export * from './is-mobile';
|
|
25
24
|
export * from './providers';
|
|
25
|
+
export * from './transition-end';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isMobile(): boolean;
|
package/domain/providers.d.ts
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import { GetConnectionLineExecution } from './get-connection-line';
|
|
2
|
-
import { RedrawConnectionsExecution } from './redraw-connections';
|
|
3
|
-
import { GetNodesRectExecution } from './get-nodes-rect';
|
|
4
2
|
import { GetElementRectInFlowExecution } from './get-element-rect-in-flow';
|
|
5
3
|
import { MoveFrontElementsBeforeTargetElementExecution, UpdateItemAndChildrenLayersExecution } from './update-item-and-children-layers';
|
|
6
4
|
import { GetPositionInFlowExecution } from './get-position-in-flow';
|
|
7
|
-
import { CreateConnectionMarkersExecution } from './create-connection-markers';
|
|
8
5
|
import { GetCanBeSelectedItemsExecution } from './get-can-be-selected-items';
|
|
9
6
|
import { IsConnectionUnderNodeExecution } from './is-connection-under-node';
|
|
10
7
|
import { GetScaledNodeRectsWithFlowPositionExecution } from './get-scaled-node-rects-with-flow-position';
|
|
11
|
-
import { EmitTransformChangesExecution } from './emit-transform-changes';
|
|
12
|
-
import { SubscribeOnTransformChangesExecution } from './subscribe-on-transform-changes';
|
|
13
8
|
import { SortItemLayersExecution, SortItemsByParentExecution, SortNodeLayersExecution } from './sort-item-layers';
|
|
14
9
|
import { GetDeepChildrenNodesAndGroupsExecution } from './get-deep-children-nodes-and-groups';
|
|
15
10
|
import { CreateRoundedRectFromElementExecution } from './create-rounded-rect-from-element';
|
|
16
|
-
import
|
|
17
|
-
export declare const COMMON_PROVIDERS: (typeof import("./f-canvas").CenterGroupOrNodeExecution | typeof import("./f-canvas").FitToFlowExecution | typeof import("./f-canvas").InputCanvasPositionExecution | typeof import("./f-canvas").InputCanvasScaleExecution | typeof import("./f-canvas").ResetScaleExecution | typeof import("./f-canvas").ResetScaleAndCenterExecution | typeof import("./f-canvas").UpdateScaleExecution | typeof import("./f-connection").AddConnectionToStoreExecution | typeof import("./f-connection").FindClosestInputUsingSnapThresholdExecution | typeof import("./f-connection").GetAllCanBeConnectedInputPositionsExecution | typeof import("./f-connection").GetConnectorWithRectExecution | typeof import("./f-connection").RemoveConnectionFromStoreExecution | typeof import("./f-background").AddPatternToBackgroundExecution | typeof CreateConnectionMarkersExecution | typeof CreateRoundedRectFromElementExecution | typeof EmitTransformChangesExecution | typeof import("./f-selection").ClearSelectionExecution | typeof import("./f-selection").GetSelectionExecution | typeof import("./f-selection").SelectExecution | typeof import("./f-selection").SelectAllExecution | typeof import("./f-selection").SelectAndUpdateNodeLayerExecution | typeof GetCanBeSelectedItemsExecution | typeof GetDeepChildrenNodesAndGroupsExecution | typeof GetConnectionLineExecution | typeof GetElementRectInFlowExecution | typeof import("./get-flow-state").GetFlowStateExecution | typeof import("./get-flow-state").GetFlowStateNodesExecution | typeof import("./get-flow-state").GetFlowStateConnectionsExecution | typeof GetScaledNodeRectsWithFlowPositionExecution | typeof GetNodesRectExecution | typeof GetPositionInFlowExecution | typeof IsConnectionUnderNodeExecution | typeof RedrawConnectionsExecution | typeof ShowConnectionsAfterCalculationsExecution | typeof SortItemLayersExecution | typeof SortItemsByParentExecution | typeof SortNodeLayersExecution | typeof SubscribeOnTransformChangesExecution | typeof UpdateItemAndChildrenLayersExecution | typeof MoveFrontElementsBeforeTargetElementExecution)[];
|
|
11
|
+
export declare const COMMON_PROVIDERS: (typeof CreateRoundedRectFromElementExecution | 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").FindClosestInputUsingSnapThresholdExecution | typeof import("./f-connection").GetAllCanBeConnectedInputPositionsExecution | typeof import("./f-connection").GetConnectorWithRectExecution | typeof import("./f-connection").RedrawConnectionsExecution | typeof import("./f-connection").RemoveConnectionFromStoreExecution | typeof import("./f-connection").RemoveConnectionMarkerFromStoreExecution | typeof import("./f-background").AddBackgroundToStoreExecution | typeof import("./f-background").AddPatternToBackgroundExecution | typeof import("./f-background").RemoveBackgroundFromStoreExecution | typeof import("./f-background").SetBackgroundTransformExecution | typeof import("./f-connectors").AddInputToStoreExecution | typeof import("./f-connectors").AddOutletToStoreExecution | typeof import("./f-connectors").AddOutputToStoreExecution | typeof import("./f-connectors").RemoveInputFromStoreExecution | typeof import("./f-connectors").RemoveOutletFromStoreExecution | typeof import("./f-connectors").RemoveOutputFromStoreExecution | typeof import("./f-draggable").AddDndToStoreExecution | typeof import("./f-draggable").OnPointerMoveExecution | typeof import("./f-flow").AddFlowToStoreExecution | typeof import("./f-line-alignment").AddLineAlignmentToStoreExecution | typeof import("./f-node").AddNodeToStoreExecution | typeof import("./f-node").UpdateNodeWhenStateOrSizeChangedExecution | typeof import("./f-node").RemoveNodeFromStoreExecution | typeof import("./f-selection").ClearSelectionExecution | typeof import("./f-selection").GetSelectionExecution | typeof import("./f-selection").SelectExecution | typeof import("./f-selection").SelectAllExecution | typeof import("./f-selection").SelectAndUpdateNodeLayerExecution | typeof GetCanBeSelectedItemsExecution | typeof GetDeepChildrenNodesAndGroupsExecution | typeof GetConnectionLineExecution | typeof GetElementRectInFlowExecution | typeof import("./get-flow-state").GetFlowStateExecution | typeof import("./get-flow-state").GetFlowStateNodesExecution | typeof import("./get-flow-state").GetFlowStateConnectionsExecution | typeof GetScaledNodeRectsWithFlowPositionExecution | typeof GetPositionInFlowExecution | typeof IsConnectionUnderNodeExecution | typeof SortItemLayersExecution | typeof SortItemsByParentExecution | typeof SortNodeLayersExecution | typeof UpdateItemAndChildrenLayersExecution | typeof MoveFrontElementsBeforeTargetElementExecution)[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function transitionEnd(element: HTMLElement, callback: (event: TransitionEvent) => void): void;
|
package/esm2022/domain/f-background/add-background-to-store/add-background-to-store-request.mjs
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export class AddBackgroundToStoreRequest {
|
|
2
|
+
constructor(fBackground) {
|
|
3
|
+
this.fBackground = fBackground;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRkLWJhY2tncm91bmQtdG8tc3RvcmUtcmVxdWVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZG9tYWluL2YtYmFja2dyb3VuZC9hZGQtYmFja2dyb3VuZC10by1zdG9yZS9hZGQtYmFja2dyb3VuZC10by1zdG9yZS1yZXF1ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE1BQU0sT0FBTywyQkFBMkI7SUFFcEMsWUFDVyxXQUE0QjtRQUE1QixnQkFBVyxHQUFYLFdBQVcsQ0FBaUI7SUFFdkMsQ0FBQztDQUNKIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRkJhY2tncm91bmRCYXNlIH0gZnJvbSAnLi4vLi4vLi4vZi1iYWNrZ3JvdWQnO1xuXG5leHBvcnQgY2xhc3MgQWRkQmFja2dyb3VuZFRvU3RvcmVSZXF1ZXN0IHtcblxuICAgIGNvbnN0cnVjdG9yKFxuICAgICAgICBwdWJsaWMgZkJhY2tncm91bmQ6IEZCYWNrZ3JvdW5kQmFzZVxuICAgICkge1xuICAgIH1cbn1cbiJdfQ==
|
package/esm2022/domain/f-background/add-background-to-store/add-background-to-store.execution.mjs
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { inject, Injectable } from '@angular/core';
|
|
3
|
+
import { FExecutionRegister } from '@foblex/mediator';
|
|
4
|
+
import { AddBackgroundToStoreRequest } from './add-background-to-store-request';
|
|
5
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export let AddBackgroundToStoreExecution = class AddBackgroundToStoreExecution {
|
|
8
|
+
constructor() {
|
|
9
|
+
this._fComponentsStore = inject(FComponentsStore);
|
|
10
|
+
}
|
|
11
|
+
handle(request) {
|
|
12
|
+
this._fComponentsStore.fBackground = request.fBackground;
|
|
13
|
+
}
|
|
14
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AddBackgroundToStoreExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
15
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AddBackgroundToStoreExecution }); }
|
|
16
|
+
};
|
|
17
|
+
AddBackgroundToStoreExecution = __decorate([
|
|
18
|
+
FExecutionRegister(AddBackgroundToStoreRequest)
|
|
19
|
+
], AddBackgroundToStoreExecution);
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AddBackgroundToStoreExecution, decorators: [{
|
|
21
|
+
type: Injectable
|
|
22
|
+
}] });
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRkLWJhY2tncm91bmQtdG8tc3RvcmUuZXhlY3V0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9kb21haW4vZi1iYWNrZ3JvdW5kL2FkZ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7XG5pbXBvcnQgeyBGQ29tcG9uZW50c1N0b3JlIH0gZnJvbSAnLi4vLi4vLi4vZi1zdG9yYWdlJztcblxuQEluamVjdGFibGUoKVxuQEZFeGVjdXRpb25SZWdpc3RlcihBZGRCYWNrZ3JvdW5kVG9TdG9yZVJlcXVlc3QpXG5leHBvcnQgY2xhc3MgQWRkQmFja2dyb3VuZFRvU3RvcmVFeGVjdXRpb24gaW1wbGVtZW50cyBJRXhlY3V0aW9uPEFkZEJhY2tncm91bmRUb1N0b3JlUmVxdWVzdCwgdm9pZD4ge1xuXG4gIHByaXZhdGUgX2ZDb21wb25lbnRzU3RvcmUgPSBpbmplY3QoRkNvbXBvbmVudHNTdG9yZSk7XG5cbiAgcHVibGljIGhhbmRsZShyZXF1ZXN0OiBBZGRCYWNrZ3JvdW5kVG9TdG9yZVJlcXVlc3QpOiB2b2lkIHtcbiAgICB0aGlzLl9mQ29tcG9uZW50c1N0b3JlLmZCYWNrZ3JvdW5kID0gcmVxdWVzdC5mQmFja2dyb3VuZDtcbiAgfVxufVxuIl19
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './add-background-to-store.execution';
|
|
2
|
+
export * from './add-background-to-store-request';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RvbWFpbi9mLWJhY2tncm91bmQvYWRkLWJhY2tncm91bmQtdG8tc3RvcmUvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxxQ0FBcUMsQ0FBQztBQUVwRCxjQUFjLG1DQUFtQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9hZGQtYmFja2dyb3VuZC10by1zdG9yZS5leGVjdXRpb24nO1xuXG5leHBvcnQgKiBmcm9tICcuL2FkZC1iYWNrZ3JvdW5kLXRvLXN0b3JlLXJlcXVlc3QnO1xuIl19
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export * from './add-background-to-store';
|
|
1
2
|
export * from './add-pattern-to-background';
|
|
3
|
+
export * from './remove-background-from-store';
|
|
4
|
+
export * from './set-background-transform';
|
|
2
5
|
export * from './providers';
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RvbWFpbi9mLWJhY2tncm91bmQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYywyQkFBMkIsQ0FBQztBQUUxQyxjQUFjLDZCQUE2QixDQUFDO0FBRTVDLGNBQWMsZ0NBQWdDLENBQUM7QUFFL0MsY0FBYyw0QkFBNEIsQ0FBQztBQUUzQyxjQUFjLGFBQWEsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vYWRkLWJhY2tncm91bmQtdG8tc3RvcmUnO1xuXG5leHBvcnQgKiBmcm9tICcuL2FkZC1wYXR0ZXJuLXRvLWJhY2tncm91bmQnO1xuXG5leHBvcnQgKiBmcm9tICcuL3JlbW92ZS1iYWNrZ3JvdW5kLWZyb20tc3RvcmUnO1xuXG5leHBvcnQgKiBmcm9tICcuL3NldC1iYWNrZ3JvdW5kLXRyYW5zZm9ybSc7XG5cbmV4cG9ydCAqIGZyb20gJy4vcHJvdmlkZXJzJztcbiJdfQ==
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { AddPatternToBackgroundExecution } from './add-pattern-to-background';
|
|
2
|
+
import { AddBackgroundToStoreExecution } from './add-background-to-store';
|
|
3
|
+
import { RemoveBackgroundFromStoreExecution } from './remove-background-from-store';
|
|
4
|
+
import { SetBackgroundTransformExecution } from './set-background-transform';
|
|
2
5
|
export const F_BACKGROUND_FEATURES = [
|
|
3
|
-
|
|
6
|
+
AddBackgroundToStoreExecution,
|
|
7
|
+
AddPatternToBackgroundExecution,
|
|
8
|
+
RemoveBackgroundFromStoreExecution,
|
|
9
|
+
SetBackgroundTransformExecution
|
|
4
10
|
];
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
11
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvdmlkZXJzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9kb21haW4vZi1iYWNrZ3JvdW5kL3Byb3ZpZGVycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsK0JBQStCLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUM5RSxPQUFPLEVBQUUsNkJBQTZCLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUMxRSxPQUFPLEVBQUUsa0NBQWtDLEVBQUUsTUFBTSxnQ0FBZ0MsQ0FBQztBQUNwRixPQUFPLEVBQUUsK0JBQStCLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQztBQUU3RSxNQUFNLENBQUMsTUFBTSxxQkFBcUIsR0FBRztJQUVuQyw2QkFBNkI7SUFFN0IsK0JBQStCO0lBRS9CLGtDQUFrQztJQUVsQywrQkFBK0I7Q0FDaEMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEFkZFBhdHRlcm5Ub0JhY2tncm91bmRFeGVjdXRpb24gfSBmcm9tICcuL2FkZC1wYXR0ZXJuLXRvLWJhY2tncm91bmQnO1xuaW1wb3J0IHsgQWRkQmFja2dyb3VuZFRvU3RvcmVFeGVjdXRpb24gfSBmcm9tICcuL2FkZC1iYWNrZ3JvdW5kLXRvLXN0b3JlJztcbmltcG9ydCB7IFJlbW92ZUJhY2tncm91bmRGcm9tU3RvcmVFeGVjdXRpb24gfSBmcm9tICcuL3JlbW92ZS1iYWNrZ3JvdW5kLWZyb20tc3RvcmUnO1xuaW1wb3J0IHsgU2V0QmFja2dyb3VuZFRyYW5zZm9ybUV4ZWN1dGlvbiB9IGZyb20gJy4vc2V0LWJhY2tncm91bmQtdHJhbnNmb3JtJztcblxuZXhwb3J0IGNvbnN0IEZfQkFDS0dST1VORF9GRUFUVVJFUyA9IFtcblxuICBBZGRCYWNrZ3JvdW5kVG9TdG9yZUV4ZWN1dGlvbixcblxuICBBZGRQYXR0ZXJuVG9CYWNrZ3JvdW5kRXhlY3V0aW9uLFxuXG4gIFJlbW92ZUJhY2tncm91bmRGcm9tU3RvcmVFeGVjdXRpb24sXG5cbiAgU2V0QmFja2dyb3VuZFRyYW5zZm9ybUV4ZWN1dGlvblxuXTtcbiJdfQ==
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './remove-background-from-store.execution';
|
|
2
|
+
export * from './remove-background-from-store-request';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RvbWFpbi9mLWJhY2tncm91bmQvcmVtb3ZlLWJhY2tncm91bmQtZnJvbS1zdG9yZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDBDQUEwQyxDQUFDO0FBRXpELGNBQWMsd0NBQXdDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3JlbW92ZS1iYWNrZ3JvdW5kLWZyb20tc3RvcmUuZXhlY3V0aW9uJztcblxuZXhwb3J0ICogZnJvbSAnLi9yZW1vdmUtYmFja2dyb3VuZC1mcm9tLXN0b3JlLXJlcXVlc3QnO1xuIl19
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export class RemoveBackgroundFromStoreRequest {
|
|
2
|
+
constructor(fConnection) {
|
|
3
|
+
this.fConnection = fConnection;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVtb3ZlLWJhY2tncm91bmQtZnJvbS1zdG9yZS1yZXF1ZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9kb21haW4vZi1iYWNrZ3JvdW5kL3JlbW92ZS1iYWNrZ3JvdW5kLWZyb20tc3RvcmUvcmVtb3ZlLWJhY2tncm91bmQtZnJvbS1zdG9yZS1yZXF1ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE1BQU0sT0FBTyxnQ0FBZ0M7SUFFM0MsWUFDUyxXQUE0QjtRQUE1QixnQkFBVyxHQUFYLFdBQVcsQ0FBaUI7SUFFckMsQ0FBQztDQUNGIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRkJhY2tncm91bmRCYXNlIH0gZnJvbSAnLi4vLi4vLi4vZi1iYWNrZ3JvdWQnO1xuXG5leHBvcnQgY2xhc3MgUmVtb3ZlQmFja2dyb3VuZEZyb21TdG9yZVJlcXVlc3Qge1xuXG4gIGNvbnN0cnVjdG9yKFxuICAgIHB1YmxpYyBmQ29ubmVjdGlvbjogRkJhY2tncm91bmRCYXNlXG4gICkge1xuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { inject, Injectable } from '@angular/core';
|
|
3
|
+
import { FExecutionRegister } from '@foblex/mediator';
|
|
4
|
+
import { RemoveBackgroundFromStoreRequest } from './remove-background-from-store-request';
|
|
5
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export let RemoveBackgroundFromStoreExecution = class RemoveBackgroundFromStoreExecution {
|
|
8
|
+
constructor() {
|
|
9
|
+
this._fComponentsStore = inject(FComponentsStore);
|
|
10
|
+
}
|
|
11
|
+
handle(request) {
|
|
12
|
+
this._fComponentsStore.fBackground = undefined;
|
|
13
|
+
}
|
|
14
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RemoveBackgroundFromStoreExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
15
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RemoveBackgroundFromStoreExecution }); }
|
|
16
|
+
};
|
|
17
|
+
RemoveBackgroundFromStoreExecution = __decorate([
|
|
18
|
+
FExecutionRegister(RemoveBackgroundFromStoreRequest)
|
|
19
|
+
], RemoveBackgroundFromStoreExecution);
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RemoveBackgroundFromStoreExecution, decorators: [{
|
|
21
|
+
type: Injectable
|
|
22
|
+
}] });
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVtb3ZlLWJhY2tncm91bmQtZnJvbS1zdG9yZS5leGVjdXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RvbWFpbi9mLWJhY2tncm91bmQvcmVtb3ZlLWJhY2tncm91bmQtZnJvbS1zdG9yZS9yZW1vdmUtYmFja2dyb3VuZC1mcm9tLXN0b3JlLmV4ZWN1dGlvbi50cyJdLCJuYW1l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dGFibGUoKVxuQEZFeGVjdXRpb25SZWdpc3RlcihSZW1vdmVCYWNrZ3JvdW5kRnJvbVN0b3JlUmVxdWVzdClcbmV4cG9ydCBjbGFzcyBSZW1vdmVCYWNrZ3JvdW5kRnJvbVN0b3JlRXhlY3V0aW9uIGltcGxlbWVudHMgSUV4ZWN1dGlvbjxSZW1vdmVCYWNrZ3JvdW5kRnJvbVN0b3JlUmVxdWVzdCwgdm9pZD4ge1xuXG4gIHByaXZhdGUgX2ZDb21wb25lbnRzU3RvcmUgPSBpbmplY3QoRkNvbXBvbmVudHNTdG9yZSk7XG5cbiAgcHVibGljIGhhbmRsZShyZXF1ZXN0OiBSZW1vdmVCYWNrZ3JvdW5kRnJvbVN0b3JlUmVxdWVzdCk6IHZvaWQge1xuICAgIHRoaXMuX2ZDb21wb25lbnRzU3RvcmUuZkJhY2tncm91bmQgPSB1bmRlZmluZWQ7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './set-background-transform.execution';
|
|
2
|
+
export * from './set-background-transform-request';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RvbWFpbi9mLWJhY2tncm91bmQvc2V0LWJhY2tncm91bmQtdHJhbnNmb3JtL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsc0NBQXNDLENBQUM7QUFFckQsY0FBYyxvQ0FBb0MsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vc2V0LWJhY2tncm91bmQtdHJhbnNmb3JtLmV4ZWN1dGlvbic7XG5cbmV4cG9ydCAqIGZyb20gJy4vc2V0LWJhY2tncm91bmQtdHJhbnNmb3JtLXJlcXVlc3QnO1xuIl19
|
package/esm2022/domain/f-background/set-background-transform/set-background-transform-request.mjs
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export class SetBackgroundTransformRequest {
|
|
2
|
+
constructor(fTransform) {
|
|
3
|
+
this.fTransform = fTransform;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2V0LWJhY2tncm91bmQtdHJhbnNmb3JtLXJlcXVlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RvbWFpbi9mLWJhY2tncm91bmQvc2V0LWJhY2tncm91bmQtdHJhbnNmb3JtL3NldC1iYWNrZ3JvdW5kLXRyYW5zZm9ybS1yZXF1ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE1BQU0sT0FBTyw2QkFBNkI7SUFFdEMsWUFDVyxVQUEyQjtRQUEzQixlQUFVLEdBQVYsVUFBVSxDQUFpQjtJQUV0QyxDQUFDO0NBQ0oiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJVHJhbnNmb3JtTW9kZWwgfSBmcm9tICdAZm9ibGV4LzJkJztcblxuZXhwb3J0IGNsYXNzIFNldEJhY2tncm91bmRUcmFuc2Zvcm1SZXF1ZXN0IHtcblxuICAgIGNvbnN0cnVjdG9yKFxuICAgICAgICBwdWJsaWMgZlRyYW5zZm9ybTogSVRyYW5zZm9ybU1vZGVsXG4gICAgKSB7XG4gICAgfVxufVxuIl19
|
package/esm2022/domain/f-background/set-background-transform/set-background-transform.execution.mjs
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { inject, Injectable } from '@angular/core';
|
|
3
|
+
import { FExecutionRegister } from '@foblex/mediator';
|
|
4
|
+
import { SetBackgroundTransformRequest } from './set-background-transform-request';
|
|
5
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export let SetBackgroundTransformExecution = class SetBackgroundTransformExecution {
|
|
8
|
+
constructor() {
|
|
9
|
+
this._fComponentsStore = inject(FComponentsStore);
|
|
10
|
+
}
|
|
11
|
+
handle(request) {
|
|
12
|
+
this._fComponentsStore.fBackground?.setTransform(request.fTransform);
|
|
13
|
+
}
|
|
14
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SetBackgroundTransformExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
15
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SetBackgroundTransformExecution }); }
|
|
16
|
+
};
|
|
17
|
+
SetBackgroundTransformExecution = __decorate([
|
|
18
|
+
FExecutionRegister(SetBackgroundTransformRequest)
|
|
19
|
+
], SetBackgroundTransformExecution);
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SetBackgroundTransformExecution, decorators: [{
|
|
21
|
+
type: Injectable
|
|
22
|
+
}] });
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2V0LWJhY2tncm91bmQtdHJhbnNmb3JtLmV4ZWN1dGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZG9tYWluL2YtYmFja2dyb3VuZC9zZXQtYmFja2dyb3VuZC10cmFuc2Zvcm0vc2V0LWJhY2tncm91bmQtdHJhbnNmb3JtLmV4ZWN1dGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLE1BQU0sRUF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hbnZhc0Jhc2UgfSBmcm9tICcuLi8uLi8uLi9mLWNhbnZhcyc7XG5cbmV4cG9ydCBjbGFzcyBBZGRDYW52YXNUb1N0b3JlUmVxdWVzdCB7XG5cbiAgY29uc3RydWN0b3IoXG4gICAgcHVibGljIGZDYW52YXM6IEZDYW52YXNCYXNlXG4gICkge1xuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { inject, Injectable } from '@angular/core';
|
|
3
|
+
import { FExecutionRegister } from '@foblex/mediator';
|
|
4
|
+
import { AddCanvasToStoreRequest } from './add-canvas-to-store-request';
|
|
5
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export let AddCanvasToStoreExecution = class AddCanvasToStoreExecution {
|
|
8
|
+
constructor() {
|
|
9
|
+
this._fComponentsStore = inject(FComponentsStore);
|
|
10
|
+
}
|
|
11
|
+
handle(request) {
|
|
12
|
+
this._fComponentsStore.fCanvas = request.fCanvas;
|
|
13
|
+
}
|
|
14
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AddCanvasToStoreExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
15
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AddCanvasToStoreExecution }); }
|
|
16
|
+
};
|
|
17
|
+
AddCanvasToStoreExecution = __decorate([
|
|
18
|
+
FExecutionRegister(AddCanvasToStoreRequest)
|
|
19
|
+
], AddCanvasToStoreExecution);
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AddCanvasToStoreExecution, decorators: [{
|
|
21
|
+
type: Injectable
|
|
22
|
+
}] });
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIj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SUV4ZWN1dGlvbiB9IGZyb20gJ0Bmb2JsZXgvbWVkaWF0b3InO1xuaW1wb3J0IHsgQWRkQ2FudmFzVG9TdG9yZVJlcXVlc3QgfSBmcm9tICcuL2FkZC1jYW52YXMtdG8tc3RvcmUtcmVxdWVzdCc7XG5pbXBvcnQgeyBGQ29tcG9uZW50c1N0b3JlIH0gZnJvbSAnLi4vLi4vLi4vZi1zdG9yYWdlJztcblxuQEluamVjdGFibGUoKVxuQEZFeGVjdXRpb25SZWdpc3RlcihBZGRDYW52YXNUb1N0b3JlUmVxdWVzdClcbmV4cG9ydCBjbGFzcyBBZGRDYW52YXNUb1N0b3JlRXhlY3V0aW9uIGltcGxlbWVudHMgSUV4ZWN1dGlvbjxBZGRDYW52YXNUb1N0b3JlUmVxdWVzdCwgdm9pZD4ge1xuXG4gIHByaXZhdGUgX2ZDb21wb25lbnRzU3RvcmUgPSBpbmplY3QoRkNvbXBvbmVudHNTdG9yZSk7XG5cbiAgcHVibGljIGhhbmRsZShyZXF1ZXN0OiBBZGRDYW52YXNUb1N0b3JlUmVxdWVzdCk6IHZvaWQge1xuICAgIHRoaXMuX2ZDb21wb25lbnRzU3RvcmUuZkNhbnZhcyA9IHJlcXVlc3QuZkNhbnZhcztcbiAgfVxufVxuIl19
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './add-canvas-to-store.execution';
|
|
2
|
+
export * from './add-canvas-to-store-request';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RvbWFpbi9mLWNhbnZhcy9hZGQtY2FudmFzLXRvLXN0b3JlL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsaUNBQWlDLENBQUM7QUFFaEQsY0FBYywrQkFBK0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vYWRkLWNhbnZhcy10by1zdG9yZS5leGVjdXRpb24nO1xuXG5leHBvcnQgKiBmcm9tICcuL2FkZC1jYW52YXMtdG8tc3RvcmUtcmVxdWVzdCc7XG4iXX0=
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
2
|
+
import { inject, Injectable } from '@angular/core';
|
|
3
3
|
import { CenterGroupOrNodeRequest } from './center-group-or-node-request';
|
|
4
|
-
import { FExecutionRegister } from '@foblex/mediator';
|
|
4
|
+
import { FExecutionRegister, FMediator } from '@foblex/mediator';
|
|
5
5
|
import { PointExtensions, RectExtensions } from '@foblex/2d';
|
|
6
|
-
import {
|
|
6
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
7
|
+
import { RedrawCanvasWithAnimationRequest } from '../../../domain';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "../../../f-storage";
|
|
9
9
|
export let CenterGroupOrNodeExecution = class CenterGroupOrNodeExecution {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
constructor() {
|
|
11
|
+
this._fComponentsStore = inject(FComponentsStore);
|
|
12
|
+
this._fMediator = inject(FMediator);
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
-
this.
|
|
14
|
+
get transform() {
|
|
15
|
+
return this._fComponentsStore.fCanvas.transform;
|
|
15
16
|
}
|
|
16
17
|
handle(request) {
|
|
17
18
|
const fNode = this.getNode(request.id);
|
|
@@ -19,24 +20,22 @@ export let CenterGroupOrNodeExecution = class CenterGroupOrNodeExecution {
|
|
|
19
20
|
return;
|
|
20
21
|
}
|
|
21
22
|
this.toCenter(this.getNodeRect(fNode), this.getFlowRect(), fNode.position);
|
|
22
|
-
|
|
23
|
-
this.fComponentsStore.fCanvas.emitCanvasChangeEvent();
|
|
24
|
-
setTimeout(() => this.fComponentsStore.componentDataChanged(), F_CANVAS_ANIMATION_DURATION);
|
|
23
|
+
this._fMediator.send(new RedrawCanvasWithAnimationRequest(request.animated));
|
|
25
24
|
}
|
|
26
25
|
toCenter(fNodeRect, fFlowRect, position) {
|
|
27
26
|
this.transform.scaledPosition = PointExtensions.initialize();
|
|
28
27
|
this.transform.position = PointExtensions.initialize((fFlowRect.width - fNodeRect.width) / 2 - position.x * this.transform.scale, (fFlowRect.height - fNodeRect.height) / 2 - position.y * this.transform.scale);
|
|
29
28
|
}
|
|
30
29
|
getNode(id) {
|
|
31
|
-
return this.
|
|
30
|
+
return this._fComponentsStore.fNodes.find((x) => x.fId === id);
|
|
32
31
|
}
|
|
33
32
|
getNodeRect(fNode) {
|
|
34
33
|
return RectExtensions.fromElement(fNode.hostElement);
|
|
35
34
|
}
|
|
36
35
|
getFlowRect() {
|
|
37
|
-
return RectExtensions.fromElement(this.
|
|
36
|
+
return RectExtensions.fromElement(this._fComponentsStore.fFlow.hostElement);
|
|
38
37
|
}
|
|
39
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CenterGroupOrNodeExecution, deps: [
|
|
38
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CenterGroupOrNodeExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
40
39
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CenterGroupOrNodeExecution }); }
|
|
41
40
|
};
|
|
42
41
|
CenterGroupOrNodeExecution = __decorate([
|
|
@@ -44,5 +43,5 @@ CenterGroupOrNodeExecution = __decorate([
|
|
|
44
43
|
], CenterGroupOrNodeExecution);
|
|
45
44
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CenterGroupOrNodeExecution, decorators: [{
|
|
46
45
|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1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
2
|
+
import { inject, Injectable } from '@angular/core';
|
|
3
3
|
import { FitToFlowRequest } from './fit-to-flow-request';
|
|
4
|
-
import { FExecutionRegister } from '@foblex/mediator';
|
|
4
|
+
import { FExecutionRegister, FMediator } from '@foblex/mediator';
|
|
5
5
|
import { PointExtensions, RectExtensions } from '@foblex/2d';
|
|
6
|
-
import {
|
|
6
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
7
|
+
import { CalculateNodesBoundingBoxRequest, RedrawCanvasWithAnimationRequest } from '../../../domain';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "../../../f-storage";
|
|
9
|
-
import * as i2 from "@foblex/mediator";
|
|
10
9
|
export let FitToFlowExecution = class FitToFlowExecution {
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
constructor() {
|
|
11
|
+
this._fComponentsStore = inject(FComponentsStore);
|
|
12
|
+
this._fMediator = inject(FMediator);
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
this.
|
|
16
|
-
this.fMediator = fMediator;
|
|
14
|
+
get transform() {
|
|
15
|
+
return this._fComponentsStore.fCanvas.transform;
|
|
17
16
|
}
|
|
18
17
|
handle(request) {
|
|
19
|
-
const fNodesRect = this.
|
|
18
|
+
const fNodesRect = this._fMediator.send(new CalculateNodesBoundingBoxRequest()) || RectExtensions.initialize();
|
|
20
19
|
if (fNodesRect.width === 0 || fNodesRect.height === 0) {
|
|
21
20
|
return;
|
|
22
21
|
}
|
|
23
|
-
this.fitToParent(fNodesRect, RectExtensions.fromElement(this.
|
|
24
|
-
|
|
25
|
-
this.fComponentsStore.fCanvas.emitCanvasChangeEvent();
|
|
26
|
-
setTimeout(() => this.fComponentsStore.componentDataChanged(), F_CANVAS_ANIMATION_DURATION);
|
|
22
|
+
this.fitToParent(fNodesRect, RectExtensions.fromElement(this._fComponentsStore.fFlow.hostElement), this._fComponentsStore.fNodes.map((x) => x.position), request.toCenter);
|
|
23
|
+
this._fMediator.send(new RedrawCanvasWithAnimationRequest(request.animated));
|
|
27
24
|
}
|
|
28
25
|
fitToParent(rect, parentRect, points, toCenter) {
|
|
29
26
|
this.transform.scaledPosition = PointExtensions.initialize();
|
|
@@ -43,7 +40,7 @@ export let FitToFlowExecution = class FitToFlowExecution {
|
|
|
43
40
|
const yPoint = points.length ? Math.min(...points.map((point) => point.y)) : 0;
|
|
44
41
|
return PointExtensions.initialize(xPoint, yPoint);
|
|
45
42
|
}
|
|
46
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FitToFlowExecution, deps: [
|
|
43
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FitToFlowExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
47
44
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FitToFlowExecution }); }
|
|
48
45
|
};
|
|
49
46
|
FitToFlowExecution = __decorate([
|
|
@@ -51,5 +48,5 @@ FitToFlowExecution = __decorate([
|
|
|
51
48
|
], FitToFlowExecution);
|
|
52
49
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FitToFlowExecution, decorators: [{
|
|
53
50
|
type: Injectable
|
|
54
|
-
}]
|
|
55
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
51
|
+
}] });
|
|
52
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZml0LXRvLWZsb3cuZXhlY3V0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9kb21haW4vZi1jYW52YXMvZml0LXRvLWZsb3cvZml0LXRvLWZ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G9pbnQgPSBwb2ludHMubGVuZ3RoID8gTWF0aC5taW4oLi4ucG9pbnRzLm1hcCgocG9pbnQpID0+IHBvaW50LngpKSA6IDA7XG4gICAgY29uc3QgeVBvaW50ID0gcG9pbnRzLmxlbmd0aCA/IE1hdGgubWluKC4uLnBvaW50cy5tYXAoKHBvaW50KSA9PiBwb2ludC55KSkgOiAwO1xuICAgIHJldHVybiBQb2ludEV4dGVuc2lvbnMuaW5pdGlhbGl6ZSh4UG9pbnQsIHlQb2ludClcbiAgfVxufVxuIl19
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export class GetCanvasRequest {
|
|
2
|
+
}
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0LWNhbnZhcy1yZXF1ZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9kb21haW4vZi1jYW52YXMvZ2V0LWNhbnZhcy9nZXQtY2FudmFzLXJlcXVlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxPQUFPLGdCQUFnQjtDQUU1QiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjbGFzcyBHZXRDYW52YXNSZXF1ZXN0IHtcblxufVxuIl19
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { inject, Injectable } from '@angular/core';
|
|
3
|
+
import { FExecutionRegister } from '@foblex/mediator';
|
|
4
|
+
import { GetCanvasRequest } from './get-canvas-request';
|
|
5
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export let GetCanvasExecution = class GetCanvasExecution {
|
|
8
|
+
constructor() {
|
|
9
|
+
this._fComponentsStore = inject(FComponentsStore);
|
|
10
|
+
}
|
|
11
|
+
handle(request) {
|
|
12
|
+
const result = this._fComponentsStore.fCanvas;
|
|
13
|
+
if (!result) {
|
|
14
|
+
throw new Error(`Canvas not found in store`);
|
|
15
|
+
}
|
|
16
|
+
return result;
|
|
17
|
+
}
|
|
18
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GetCanvasExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
19
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GetCanvasExecution }); }
|
|
20
|
+
};
|
|
21
|
+
GetCanvasExecution = __decorate([
|
|
22
|
+
FExecutionRegister(GetCanvasRequest)
|
|
23
|
+
], GetCanvasExecution);
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GetCanvasExecution, decorators: [{
|
|
25
|
+
type: Injectable
|
|
26
|
+
}] });
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0LWNhbnZhcy5leGVjdXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RvbWFpbi9mLWNhbnZhcy9nZXQtY2FudmFzL2dldC1jYW52YXMuZXhlY3V0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNuRCxPQUFPLEVBQUUsa0JBQWtCLEVBQWMsTUFBTSxrQkFBa0IsQ0FBQztBQUNsRSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUN4RCxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQz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eGVjdXRpb248R2V0Q2FudmFzUmVxdWVzdCwgRkNhbnZhc0Jhc2U+IHtcblxuICBwcml2YXRlIF9mQ29tcG9uZW50c1N0b3JlID0gaW5qZWN0KEZDb21wb25lbnRzU3RvcmUpO1xuXG4gIHB1YmxpYyBoYW5kbGUocmVxdWVzdDogR2V0Q2FudmFzUmVxdWVzdCk6IEZDYW52YXNCYXNlIHtcbiAgICBjb25zdCByZXN1bHQgPSB0aGlzLl9mQ29tcG9uZW50c1N0b3JlLmZDYW52YXM7XG4gICAgaWYgKCFyZXN1bHQpIHtcbiAgICAgIHRocm93IG5ldyBFcnJvcihgQ2FudmFzIG5vdCBmb3VuZCBpbiBzdG9yZWApO1xuICAgIH1cbiAgICByZXR1cm4gcmVzdWx0O1xuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './get-canvas.execution';
|
|
2
|
+
export * from './get-canvas-request';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RvbWFpbi9mLWNhbnZhcy9nZXQtY2FudmFzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsd0JBQXdCLENBQUM7QUFFdkMsY0FBYyxzQkFBc0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZ2V0LWNhbnZhcy5leGVjdXRpb24nO1xuXG5leHBvcnQgKiBmcm9tICcuL2dldC1jYW52YXMtcmVxdWVzdCc7XG4iXX0=
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
export * from './add-canvas-to-store';
|
|
1
2
|
export * from './center-group-or-node';
|
|
2
3
|
export * from './fit-to-flow';
|
|
4
|
+
export * from './get-canvas';
|
|
3
5
|
export * from './input-canvas-position';
|
|
4
6
|
export * from './input-canvas-scale';
|
|
7
|
+
export * from './redraw-canvas-with-animation';
|
|
8
|
+
export * from './remove-canvas-from-store';
|
|
5
9
|
export * from './reset-scale';
|
|
6
10
|
export * from './reset-scale-and-center';
|
|
7
11
|
export * from './update-scale';
|
|
8
12
|
export * from './providers';
|
|
9
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RvbWFpbi9mLWNhbnZhcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHVCQUF1QixDQUFDO0FBRXRDLGNBQWMsd0JBQXdCLENBQUM7QUFFdkMsY0FBYyxlQUFlLENBQUM7QUFFOUIsY0FBYyxjQUFjLENBQUM7QUFFN0IsY0FBYyx5QkFBeUIsQ0FBQztBQUV4QyxjQUFjLHNCQUFzQixDQUFDO0FBRXJDLGNBQWMsZ0NBQWdDLENBQUM7QUFFL0MsY0FBYyw0QkFBNEIsQ0FBQztBQUUzQyxjQUFjLGVBQWUsQ0FBQztBQUU5QixjQUFjLDBCQUEwQixDQUFDO0FBRXpDLGNBQWMsZ0JBQWdCLENBQUM7QUFFL0IsY0FBYyxhQUFhLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2FkZC1jYW52YXMtdG8tc3RvcmUnO1xuXG5leHBvcnQgKiBmcm9tICcuL2NlbnRlci1ncm91cC1vci1ub2RlJztcblxuZXhwb3J0ICogZnJvbSAnLi9maXQtdG8tZmxvdyc7XG5cbmV4cG9ydCAqIGZyb20gJy4vZ2V0LWNhbnZhcyc7XG5cbmV4cG9ydCAqIGZyb20gJy4vaW5wdXQtY2FudmFzLXBvc2l0aW9uJztcblxuZXhwb3J0ICogZnJvbSAnLi9pbnB1dC1jYW52YXMtc2NhbGUnO1xuXG5leHBvcnQgKiBmcm9tICcuL3JlZHJhdy1jYW52YXMtd2l0aC1hbmltYXRpb24nO1xuXG5leHBvcnQgKiBmcm9tICcuL3JlbW92ZS1jYW52YXMtZnJvbS1zdG9yZSc7XG5cbmV4cG9ydCAqIGZyb20gJy4vcmVzZXQtc2NhbGUnO1xuXG5leHBvcnQgKiBmcm9tICcuL3Jlc2V0LXNjYWxlLWFuZC1jZW50ZXInO1xuXG5leHBvcnQgKiBmcm9tICcuL3VwZGF0ZS1zY2FsZSc7XG5cbmV4cG9ydCAqIGZyb20gJy4vcHJvdmlkZXJzJztcbiJdfQ==
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
2
|
+
import { inject, Injectable } from '@angular/core';
|
|
3
3
|
import { InputCanvasPositionRequest } from './input-canvas-position-request';
|
|
4
4
|
import { FExecutionRegister } from '@foblex/mediator';
|
|
5
5
|
import { PointExtensions } from '@foblex/2d';
|
|
6
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "../../../f-storage";
|
|
8
8
|
export let InputCanvasPositionExecution = class InputCanvasPositionExecution {
|
|
9
|
-
constructor(
|
|
10
|
-
this.
|
|
9
|
+
constructor() {
|
|
10
|
+
this._fComponentsStore = inject(FComponentsStore);
|
|
11
11
|
}
|
|
12
12
|
handle(request) {
|
|
13
13
|
if (!request.position) {
|
|
@@ -17,10 +17,10 @@ export let InputCanvasPositionExecution = class InputCanvasPositionExecution {
|
|
|
17
17
|
if (!PointExtensions.isEqual(position, request.position)) {
|
|
18
18
|
request.transform.position = request.position;
|
|
19
19
|
request.transform.scaledPosition = PointExtensions.initialize();
|
|
20
|
-
this.
|
|
20
|
+
this._fComponentsStore.fCanvas?.redraw();
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InputCanvasPositionExecution, deps: [
|
|
23
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InputCanvasPositionExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
24
24
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InputCanvasPositionExecution }); }
|
|
25
25
|
};
|
|
26
26
|
InputCanvasPositionExecution = __decorate([
|
|
@@ -28,5 +28,5 @@ InputCanvasPositionExecution = __decorate([
|
|
|
28
28
|
], InputCanvasPositionExecution);
|
|
29
29
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InputCanvasPositionExecution, decorators: [{
|
|
30
30
|
type: Injectable
|
|
31
|
-
}]
|
|
32
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
31
|
+
}] });
|
|
32
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtY2FudmFzLXBvc2l0aW9uLmV4ZWN1dGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZG9tYWluL2YtY2FudmFzL2lucHV0LWNhbnZhcy1wb3NpdGlvbi9pbnB1dC1jYW52YXMtcG9zaXRpb24uZXhlY3V0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNuRCxPQUFPLEVBQUUsMEJBQTBCLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUM3R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