@foblex/flow 18.1.1 → 18.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +71 -35
- package/domain/f-canvas/add-canvas-to-store/add-canvas-to-store-request.d.ts +2 -2
- package/domain/f-canvas/add-canvas-to-store/add-canvas-to-store.d.ts +12 -0
- package/domain/f-canvas/add-canvas-to-store/index.d.ts +1 -1
- package/domain/f-canvas/center-group-or-node/center-group-or-node.d.ts +17 -0
- package/domain/f-canvas/center-group-or-node/index.d.ts +1 -1
- package/domain/f-canvas/fit-to-flow/fit-to-flow-request.d.ts +2 -2
- package/domain/f-canvas/fit-to-flow/fit-to-flow.d.ts +17 -0
- package/domain/f-canvas/fit-to-flow/index.d.ts +1 -1
- package/domain/f-canvas/index.d.ts +0 -1
- package/domain/f-canvas/input-canvas-position/index.d.ts +1 -1
- package/domain/f-canvas/input-canvas-position/input-canvas-position-request.d.ts +2 -2
- package/domain/f-canvas/input-canvas-position/input-canvas-position.d.ts +13 -0
- package/domain/f-canvas/input-canvas-scale/index.d.ts +1 -1
- package/domain/f-canvas/input-canvas-scale/input-canvas-scale.d.ts +13 -0
- package/domain/f-canvas/providers.d.ts +11 -12
- package/domain/f-canvas/redraw-canvas-with-animation/index.d.ts +1 -1
- package/domain/f-canvas/redraw-canvas-with-animation/redraw-canvas-with-animation.d.ts +17 -0
- package/domain/f-canvas/remove-canvas-from-store/index.d.ts +1 -1
- package/domain/f-canvas/remove-canvas-from-store/remove-canvas-from-store.d.ts +12 -0
- package/domain/f-canvas/reset-scale/index.d.ts +1 -1
- package/domain/f-canvas/reset-scale/reset-scale.d.ts +13 -0
- package/domain/f-canvas/reset-scale-and-center/index.d.ts +1 -1
- package/domain/f-canvas/reset-scale-and-center/reset-scale-and-center-request.d.ts +1 -1
- package/domain/f-canvas/reset-scale-and-center/reset-scale-and-center.d.ts +17 -0
- package/domain/f-canvas/update-scale/index.d.ts +1 -1
- package/domain/f-canvas/update-scale/update-scale-request.d.ts +2 -2
- package/domain/f-canvas/update-scale/update-scale.d.ts +14 -0
- package/domain/f-connection/redraw-connections/redraw-connections.d.ts +17 -2
- package/domain/f-connectors/add-connector-to-store/add-connector-to-store.d.ts +2 -0
- package/domain/f-connectors/find-connectable-connector-using-priority-and-position/find-connectable-connector-using-priority-and-position.d.ts +30 -0
- package/domain/f-connectors/find-connectable-connector-using-priority-and-position/index.d.ts +2 -2
- package/domain/f-connectors/providers.d.ts +2 -2
- package/domain/f-connectors/remove-connector-from-store/remove-connector-from-store.d.ts +2 -0
- package/domain/f-draggable/add-dnd-to-store/add-dnd-to-store.d.ts +12 -0
- package/domain/f-draggable/add-dnd-to-store/index.d.ts +1 -1
- package/domain/f-draggable/initialize-drag-sequence/index.d.ts +1 -1
- package/domain/f-draggable/initialize-drag-sequence/initialize-drag-sequence.d.ts +12 -0
- package/domain/f-draggable/is-drag-started/is-drag-started.d.ts +1 -1
- package/domain/f-draggable/on-pointer-move/index.d.ts +1 -1
- package/domain/f-draggable/on-pointer-move/on-pointer-move.d.ts +19 -0
- package/domain/f-draggable/prepare-drag-sequence/index.d.ts +1 -1
- package/domain/f-draggable/prepare-drag-sequence/prepare-drag-sequence.d.ts +14 -0
- package/domain/f-draggable/providers.d.ts +6 -6
- package/domain/f-draggable/remove-dnd-from-store/index.d.ts +1 -1
- package/domain/f-draggable/remove-dnd-from-store/remove-dnd-from-store.d.ts +12 -0
- package/domain/f-flow/add-flow-to-store/add-flow-to-store.d.ts +12 -0
- package/domain/f-flow/add-flow-to-store/index.d.ts +1 -1
- package/domain/f-flow/get-flow/get-flow.d.ts +13 -0
- package/domain/f-flow/get-flow/index.d.ts +1 -1
- package/domain/f-flow/providers.d.ts +4 -4
- package/domain/f-flow/remove-flow-from-store/index.d.ts +1 -1
- package/domain/f-flow/remove-flow-from-store/remove-flow-from-store.d.ts +12 -0
- package/domain/f-node/add-node-to-store/add-node-to-store.d.ts +1 -0
- package/domain/f-node/calculate-nodes-bounding-box/calculate-nodes-bounding-box.d.ts +2 -2
- package/domain/f-node/calculate-nodes-bounding-box/index.d.ts +1 -1
- package/domain/f-node/calculate-nodes-bounding-box-normalized-position/calculate-nodes-bounding-box-normalized-position.d.ts +3 -1
- package/domain/f-node/calculate-nodes-bounding-box-normalized-position/index.d.ts +1 -1
- package/domain/f-node/get-child-node-ids/get-child-node-ids.d.ts +1 -1
- package/domain/f-node/get-child-node-ids/index.d.ts +1 -1
- package/domain/f-node/get-node-padding/get-node-padding.d.ts +8 -3
- package/domain/f-node/get-node-padding/index.d.ts +1 -1
- package/domain/f-node/get-parent-nodes/get-parent-nodes.d.ts +1 -1
- package/domain/f-node/get-parent-nodes/index.d.ts +1 -1
- package/domain/f-node/remove-node-from-store/remove-node-from-store.d.ts +1 -0
- package/domain/f-selection/calculate-selectable-items/calculate-selectable-items.d.ts +0 -1
- package/domain/f-selection/clear-selection/clear-selection.d.ts +12 -0
- package/domain/f-selection/clear-selection/index.d.ts +2 -2
- package/domain/f-selection/get-current-selection/get-current-selection.d.ts +16 -0
- package/domain/f-selection/get-current-selection/index.d.ts +2 -2
- package/domain/f-selection/index.d.ts +1 -1
- package/domain/f-selection/providers.d.ts +4 -4
- package/domain/f-selection/select-items/index.d.ts +2 -0
- package/domain/f-selection/select-items/select.d.ts +13 -0
- package/domain/f-zoom/set-zoom/set-zoom-request.d.ts +4 -4
- package/domain/f-zoom/set-zoom/set-zoom.d.ts +3 -0
- package/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups-request.d.ts +5 -0
- package/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.d.ts +15 -0
- package/domain/get-deep-children-nodes-and-groups/index.d.ts +2 -2
- package/domain/get-normalized-connector-rect/get-normalized-connector-rect-request.d.ts +3 -2
- package/domain/get-normalized-connector-rect/get-normalized-connector-rect.d.ts +26 -0
- package/domain/get-normalized-connector-rect/index.d.ts +1 -1
- package/domain/get-normalized-element-rect/get-normalized-element-rect.d.ts +22 -0
- package/domain/get-normalized-element-rect/index.d.ts +1 -1
- package/domain/get-normalized-point/get-normalized-point-request.d.ts +1 -1
- package/domain/get-normalized-point/get-normalized-point.d.ts +15 -0
- package/domain/get-normalized-point/index.d.ts +1 -1
- package/domain/index.d.ts +1 -2
- package/domain/minimap/f-minimap-state.d.ts +7 -0
- package/domain/minimap/index.d.ts +5 -0
- package/domain/minimap/minimap-calculate-view-rect/index.d.ts +2 -0
- package/domain/minimap/minimap-calculate-view-rect/minimap-calculate-view-rect-request.d.ts +3 -0
- package/domain/minimap/minimap-calculate-view-rect/minimap-calculate-view-rect.d.ts +10 -0
- package/domain/minimap/minimap-calculate-viewport/i-minimap-viewport.d.ts +5 -0
- package/domain/minimap/minimap-calculate-viewport/index.d.ts +3 -0
- package/domain/minimap/minimap-calculate-viewport/minimap-calculate-viewport-request.d.ts +6 -0
- package/domain/minimap/minimap-calculate-viewport/minimap-calculate-viewport.d.ts +17 -0
- package/domain/minimap/minimap-draw-nodes/index.d.ts +2 -0
- package/domain/minimap/minimap-draw-nodes/minimap-draw-nodes.d.ts +13 -0
- package/domain/minimap/providers.d.ts +4 -0
- package/domain/providers.d.ts +6 -7
- package/domain/sort-item-layers/sort-item-layers.d.ts +1 -1
- package/domain/sort-item-layers/sort-items-by-parent/index.d.ts +2 -2
- package/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent-request.d.ts +5 -0
- package/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.d.ts +20 -0
- package/domain/sort-item-layers/sort-node-layers-by-groups/index.d.ts +2 -2
- package/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.d.ts +24 -0
- package/esm2022/domain/f-canvas/add-canvas-to-store/add-canvas-to-store-request.mjs +4 -4
- package/esm2022/domain/f-canvas/add-canvas-to-store/add-canvas-to-store.mjs +25 -0
- package/esm2022/domain/f-canvas/add-canvas-to-store/index.mjs +2 -2
- package/esm2022/domain/f-canvas/center-group-or-node/center-group-or-node.mjs +46 -0
- package/esm2022/domain/f-canvas/center-group-or-node/index.mjs +2 -2
- package/esm2022/domain/f-canvas/fit-to-flow/fit-to-flow-request.mjs +1 -1
- package/esm2022/domain/f-canvas/fit-to-flow/fit-to-flow.mjs +58 -0
- package/esm2022/domain/f-canvas/fit-to-flow/index.mjs +2 -2
- package/esm2022/domain/f-canvas/index.mjs +1 -2
- package/esm2022/domain/f-canvas/input-canvas-position/index.mjs +2 -2
- package/esm2022/domain/f-canvas/input-canvas-position/input-canvas-position-request.mjs +1 -1
- package/esm2022/domain/f-canvas/input-canvas-position/input-canvas-position.mjs +36 -0
- package/esm2022/domain/f-canvas/input-canvas-scale/index.mjs +2 -2
- package/esm2022/domain/f-canvas/input-canvas-scale/input-canvas-scale.mjs +30 -0
- package/esm2022/domain/f-canvas/providers.mjs +21 -23
- package/esm2022/domain/f-canvas/redraw-canvas-with-animation/index.mjs +2 -2
- package/esm2022/domain/f-canvas/redraw-canvas-with-animation/redraw-canvas-with-animation.mjs +40 -0
- package/esm2022/domain/f-canvas/remove-canvas-from-store/index.mjs +2 -2
- package/esm2022/domain/f-canvas/remove-canvas-from-store/remove-canvas-from-store.mjs +25 -0
- package/esm2022/domain/f-canvas/reset-scale/index.mjs +2 -2
- package/esm2022/domain/f-canvas/reset-scale/reset-scale.mjs +30 -0
- package/esm2022/domain/f-canvas/reset-scale-and-center/index.mjs +2 -2
- package/esm2022/domain/f-canvas/reset-scale-and-center/reset-scale-and-center-request.mjs +1 -1
- package/esm2022/domain/f-canvas/reset-scale-and-center/reset-scale-and-center.mjs +50 -0
- package/esm2022/domain/f-canvas/update-scale/index.mjs +2 -2
- package/esm2022/domain/f-canvas/update-scale/update-scale-request.mjs +1 -1
- package/esm2022/domain/f-canvas/update-scale/update-scale.mjs +37 -0
- package/esm2022/domain/f-connection/add-connection-marker-to-store/add-connection-marker-to-store.mjs +2 -2
- package/esm2022/domain/f-connection/add-connection-to-store/add-connection-to-store.mjs +2 -2
- package/esm2022/domain/f-connection/redraw-connections/redraw-connections.mjs +173 -17
- package/esm2022/domain/f-connection/remove-connection-from-store/remove-connection-from-store.mjs +2 -2
- package/esm2022/domain/f-connection/remove-connection-marker-from-store/remove-connection-marker-from-store.mjs +2 -2
- package/esm2022/domain/f-connectors/add-connector-to-store/add-connector-to-store.mjs +13 -5
- package/esm2022/domain/f-connectors/find-connectable-connector-using-priority-and-position/find-connectable-connector-using-priority-and-position-request.mjs +10 -0
- package/esm2022/domain/f-connectors/find-connectable-connector-using-priority-and-position/find-connectable-connector-using-priority-and-position.mjs +98 -0
- package/esm2022/domain/f-connectors/find-connectable-connector-using-priority-and-position/index.mjs +3 -3
- package/esm2022/domain/f-connectors/get-connector-rect-reference/get-connector-rect-reference.mjs +1 -1
- package/esm2022/domain/f-connectors/providers.mjs +3 -3
- package/esm2022/domain/f-connectors/remove-connector-from-store/remove-connector-from-store.mjs +13 -5
- package/esm2022/domain/f-draggable/add-dnd-to-store/add-dnd-to-store.mjs +25 -0
- package/esm2022/domain/f-draggable/add-dnd-to-store/index.mjs +2 -2
- package/esm2022/domain/f-draggable/initialize-drag-sequence/index.mjs +2 -2
- package/esm2022/domain/f-draggable/initialize-drag-sequence/initialize-drag-sequence.mjs +25 -0
- package/esm2022/domain/f-draggable/is-drag-started/is-drag-started.mjs +2 -2
- package/esm2022/domain/f-draggable/on-pointer-move/index.mjs +2 -2
- package/esm2022/domain/f-draggable/on-pointer-move/on-pointer-move.mjs +46 -0
- package/esm2022/domain/f-draggable/prepare-drag-sequence/index.mjs +2 -2
- package/esm2022/domain/f-draggable/prepare-drag-sequence/prepare-drag-sequence.mjs +30 -0
- package/esm2022/domain/f-draggable/providers.mjs +11 -11
- package/esm2022/domain/f-draggable/remove-dnd-from-store/index.mjs +2 -2
- package/esm2022/domain/f-draggable/remove-dnd-from-store/remove-dnd-from-store.mjs +25 -0
- package/esm2022/domain/f-flow/add-flow-to-store/add-flow-to-store.mjs +25 -0
- package/esm2022/domain/f-flow/add-flow-to-store/index.mjs +2 -2
- package/esm2022/domain/f-flow/get-flow/get-flow.mjs +29 -0
- package/esm2022/domain/f-flow/get-flow/index.mjs +2 -2
- package/esm2022/domain/f-flow/providers.mjs +7 -7
- package/esm2022/domain/f-flow/remove-flow-from-store/index.mjs +2 -2
- package/esm2022/domain/f-flow/remove-flow-from-store/remove-flow-from-store.mjs +25 -0
- package/esm2022/domain/f-node/add-node-to-store/add-node-to-store.mjs +6 -3
- package/esm2022/domain/f-node/calculate-connectors-connectable-sides/calculate-connectable-side-by-connected-positions/calculate-connectable-side-by-connected-positions.mjs +1 -1
- package/esm2022/domain/f-node/calculate-nodes-bounding-box/calculate-nodes-bounding-box-request.mjs +4 -0
- package/esm2022/domain/f-node/calculate-nodes-bounding-box/calculate-nodes-bounding-box.mjs +3 -3
- package/esm2022/domain/f-node/calculate-nodes-bounding-box/index.mjs +2 -2
- package/esm2022/domain/f-node/calculate-nodes-bounding-box-normalized-position/calculate-nodes-bounding-box-normalized-position-request.mjs +8 -0
- package/esm2022/domain/f-node/calculate-nodes-bounding-box-normalized-position/calculate-nodes-bounding-box-normalized-position.mjs +17 -8
- package/esm2022/domain/f-node/calculate-nodes-bounding-box-normalized-position/index.mjs +2 -2
- package/esm2022/domain/f-node/fit-to-child-nodes-and-groups/fit-to-child-nodes-and-groups.mjs +2 -2
- package/esm2022/domain/f-node/get-child-node-ids/get-child-node-ids-request.mjs +8 -0
- package/esm2022/domain/f-node/get-child-node-ids/get-child-node-ids.mjs +2 -2
- package/esm2022/domain/f-node/get-child-node-ids/index.mjs +2 -2
- package/esm2022/domain/f-node/get-node-padding/get-node-padding-request.mjs +10 -0
- package/esm2022/domain/f-node/get-node-padding/get-node-padding.mjs +6 -4
- package/esm2022/domain/f-node/get-node-padding/index.mjs +2 -2
- package/esm2022/domain/f-node/get-parent-nodes/get-parent-nodes-request.mjs +8 -0
- package/esm2022/domain/f-node/get-parent-nodes/get-parent-nodes.mjs +2 -2
- package/esm2022/domain/f-node/get-parent-nodes/index.mjs +2 -2
- package/esm2022/domain/f-node/remove-node-from-store/remove-node-from-store.mjs +6 -3
- package/esm2022/domain/f-node/update-node-when-state-or-size-changed/update-node-when-state-or-size-changed.mjs +7 -6
- package/esm2022/domain/f-selection/calculate-selectable-items/calculate-selectable-items.mjs +3 -7
- package/esm2022/domain/f-selection/clear-selection/clear-selection-request.mjs +4 -0
- package/esm2022/domain/f-selection/clear-selection/clear-selection.mjs +27 -0
- package/esm2022/domain/f-selection/clear-selection/index.mjs +3 -3
- package/esm2022/domain/f-selection/get-current-selection/get-current-selection-request.mjs +4 -0
- package/esm2022/domain/f-selection/get-current-selection/get-current-selection.mjs +45 -0
- package/esm2022/domain/f-selection/get-current-selection/index.mjs +3 -3
- package/esm2022/domain/f-selection/index.mjs +2 -2
- package/esm2022/domain/f-selection/providers.mjs +7 -7
- package/esm2022/domain/f-selection/select-items/index.mjs +3 -0
- package/esm2022/domain/f-selection/select-items/select-request.mjs +12 -0
- package/esm2022/domain/f-selection/select-items/select.mjs +45 -0
- package/esm2022/domain/f-zoom/set-zoom/set-zoom-request.mjs +1 -1
- package/esm2022/domain/f-zoom/set-zoom/set-zoom.mjs +62 -4
- package/esm2022/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups-request.mjs +8 -0
- package/esm2022/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.mjs +38 -0
- package/esm2022/domain/get-deep-children-nodes-and-groups/index.mjs +3 -3
- package/esm2022/domain/get-normalized-connector-rect/get-normalized-connector-rect-request.mjs +4 -2
- package/esm2022/domain/get-normalized-connector-rect/get-normalized-connector-rect.mjs +71 -0
- package/esm2022/domain/get-normalized-connector-rect/index.mjs +2 -2
- package/esm2022/domain/get-normalized-element-rect/get-normalized-element-rect.mjs +60 -0
- package/esm2022/domain/get-normalized-element-rect/index.mjs +2 -2
- package/esm2022/domain/get-normalized-point/get-normalized-point-request.mjs +1 -1
- package/esm2022/domain/get-normalized-point/get-normalized-point.mjs +28 -0
- package/esm2022/domain/get-normalized-point/index.mjs +2 -2
- package/esm2022/domain/index.mjs +2 -3
- package/esm2022/domain/minimap/f-minimap-state.mjs +12 -0
- package/esm2022/domain/minimap/index.mjs +6 -0
- package/esm2022/domain/minimap/minimap-calculate-view-rect/index.mjs +3 -0
- package/esm2022/domain/minimap/minimap-calculate-view-rect/minimap-calculate-view-rect-request.mjs +4 -0
- package/esm2022/domain/minimap/minimap-calculate-view-rect/minimap-calculate-view-rect.mjs +32 -0
- package/esm2022/domain/minimap/minimap-calculate-viewport/i-minimap-viewport.mjs +2 -0
- package/esm2022/domain/minimap/minimap-calculate-viewport/index.mjs +4 -0
- package/esm2022/domain/minimap/minimap-calculate-viewport/minimap-calculate-viewport-request.mjs +10 -0
- package/esm2022/domain/minimap/minimap-calculate-viewport/minimap-calculate-viewport.mjs +62 -0
- package/esm2022/domain/minimap/minimap-draw-nodes/index.mjs +3 -0
- package/esm2022/domain/minimap/minimap-draw-nodes/minimap-draw-nodes-request.mjs +4 -0
- package/esm2022/domain/minimap/minimap-draw-nodes/minimap-draw-nodes.mjs +52 -0
- package/esm2022/domain/minimap/providers.mjs +9 -0
- package/esm2022/domain/providers.mjs +16 -14
- package/esm2022/domain/sort-item-layers/sort-item-layers.mjs +9 -5
- package/esm2022/domain/sort-item-layers/sort-items-by-parent/index.mjs +3 -3
- package/esm2022/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent-request.mjs +8 -0
- package/esm2022/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.mjs +124 -0
- package/esm2022/domain/sort-item-layers/sort-node-layers-by-groups/index.mjs +3 -3
- package/esm2022/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers-request.mjs +4 -0
- package/esm2022/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.mjs +65 -0
- package/esm2022/f-cache/config/f-cache-options.mjs +20 -0
- package/esm2022/f-cache/config/index.mjs +2 -0
- package/esm2022/f-cache/features/f-cache-connectors/index.mjs +3 -0
- package/esm2022/f-cache/features/f-cache-connectors/register-connector/index.mjs +3 -0
- package/esm2022/f-cache/features/f-cache-connectors/register-connector/register-connector-request.mjs +14 -0
- package/esm2022/f-cache/features/f-cache-connectors/register-connector/register-connector.mjs +51 -0
- package/esm2022/f-cache/features/f-cache-connectors/unregister-connector/index.mjs +3 -0
- package/esm2022/f-cache/features/f-cache-connectors/unregister-connector/unregister-connector-request.mjs +10 -0
- package/esm2022/f-cache/features/f-cache-connectors/unregister-connector/unregister-connector.mjs +49 -0
- package/esm2022/f-cache/features/f-cache-nodes/index.mjs +4 -0
- package/esm2022/f-cache/features/f-cache-nodes/invalidate-node/index.mjs +3 -0
- package/esm2022/f-cache/features/f-cache-nodes/invalidate-node/invalidate-node-request.mjs +10 -0
- package/esm2022/f-cache/features/f-cache-nodes/invalidate-node/invalidate-node.mjs +41 -0
- package/esm2022/f-cache/features/f-cache-nodes/register-node/index.mjs +3 -0
- package/esm2022/f-cache/features/f-cache-nodes/register-node/register-node-request.mjs +12 -0
- package/esm2022/f-cache/features/f-cache-nodes/register-node/register-node.mjs +30 -0
- package/esm2022/f-cache/features/f-cache-nodes/unregister-node/index.mjs +3 -0
- package/esm2022/f-cache/features/f-cache-nodes/unregister-node/unregister-node-request.mjs +8 -0
- package/esm2022/f-cache/features/f-cache-nodes/unregister-node/unregister-node.mjs +43 -0
- package/esm2022/f-cache/features/f-cache-rects/get-cached-rect/get-cached-rect-request.mjs +8 -0
- package/esm2022/f-cache/features/f-cache-rects/get-cached-rect/get-cached-rect.mjs +38 -0
- package/esm2022/f-cache/features/f-cache-rects/get-cached-rect/index.mjs +3 -0
- package/esm2022/f-cache/features/f-cache-rects/index.mjs +5 -0
- package/esm2022/f-cache/features/f-cache-rects/set-connector-rect/index.mjs +3 -0
- package/esm2022/f-cache/features/f-cache-rects/set-connector-rect/set-connector-rect-request.mjs +12 -0
- package/esm2022/f-cache/features/f-cache-rects/set-connector-rect/set-connector-rect.mjs +33 -0
- package/esm2022/f-cache/features/f-cache-rects/set-node-rect/index.mjs +3 -0
- package/esm2022/f-cache/features/f-cache-rects/set-node-rect/set-node-rect-request.mjs +10 -0
- package/esm2022/f-cache/features/f-cache-rects/set-node-rect/set-node-rect.mjs +64 -0
- package/esm2022/f-cache/features/f-cache-rects/update-rect-by-element/index.mjs +3 -0
- package/esm2022/f-cache/features/f-cache-rects/update-rect-by-element/update-rect-by-element-request.mjs +10 -0
- package/esm2022/f-cache/features/f-cache-rects/update-rect-by-element/update-rect-by-element.mjs +42 -0
- package/esm2022/f-cache/features/index.mjs +4 -0
- package/esm2022/f-cache/index.mjs +5 -0
- package/esm2022/f-cache/model/f-cache-connector-key.mjs +6 -0
- package/esm2022/f-cache/model/f-cache-connector.mjs +17 -0
- package/esm2022/f-cache/model/f-cache-node.mjs +13 -0
- package/esm2022/f-cache/model/f-cache.mjs +15 -0
- package/esm2022/f-cache/model/i-f-cache-node-ref.mjs +2 -0
- package/esm2022/f-cache/model/index.mjs +6 -0
- package/esm2022/f-cache/providers.mjs +15 -0
- package/esm2022/f-canvas/f-canvas.component.mjs +14 -7
- package/esm2022/f-connection/f-connection/f-connection.component.mjs +3 -3
- package/esm2022/f-connection/f-connection-for-create/f-connection-for-create.component.mjs +3 -3
- package/esm2022/f-connection/f-snap-connection/f-snap-connection.component.mjs +3 -3
- package/esm2022/f-connection-v2/components/connection-content/f-connection-content.mjs +3 -3
- package/esm2022/f-connection-v2/components/connection-content/utils/polyline-content-place.mjs +3 -3
- package/esm2022/f-connection-v2/components/connection-waypoints/f-connection-waypoints.mjs +3 -3
- package/esm2022/f-connection-worker/features/calculate-connection-worker-connector-rect/calculate-connection-worker-connector-rect-request.mjs +10 -0
- package/esm2022/f-connection-worker/features/calculate-connection-worker-connector-rect/calculate-connection-worker-connector-rect.mjs +31 -0
- package/esm2022/f-connection-worker/features/calculate-connection-worker-connector-rect/index.mjs +3 -0
- package/esm2022/f-connection-worker/features/calculate-connection-worker-payload-item/calculate-connection-worker-payload-item-request.mjs +10 -0
- package/esm2022/f-connection-worker/features/calculate-connection-worker-payload-item/calculate-connection-worker-payload-item.mjs +45 -0
- package/esm2022/f-connection-worker/features/calculate-connection-worker-payload-item/index.mjs +3 -0
- package/esm2022/f-connection-worker/features/calculate-connections-using-connection-worker/calculate-connections-using-connection-worker-request.mjs +10 -0
- package/esm2022/f-connection-worker/features/calculate-connections-using-connection-worker/calculate-connections-using-connection-worker.mjs +41 -0
- package/esm2022/f-connection-worker/features/calculate-connections-using-connection-worker/index.mjs +3 -0
- package/esm2022/f-connection-worker/features/connection-worker-run/connection-worker-run-request.mjs +8 -0
- package/esm2022/f-connection-worker/features/connection-worker-run/connection-worker-run.mjs +59 -0
- package/esm2022/f-connection-worker/features/connection-worker-run/index.mjs +3 -0
- package/esm2022/f-connection-worker/features/disable-connection-worker/disable-connection-worker-request.mjs +8 -0
- package/esm2022/f-connection-worker/features/disable-connection-worker/disable-connection-worker.mjs +25 -0
- package/esm2022/f-connection-worker/features/disable-connection-worker/index.mjs +3 -0
- package/esm2022/f-connection-worker/features/ensure-connection-worker/ensure-connection-worker-request.mjs +4 -0
- package/esm2022/f-connection-worker/features/ensure-connection-worker/ensure-connection-worker.mjs +61 -0
- package/esm2022/f-connection-worker/features/ensure-connection-worker/index.mjs +3 -0
- package/esm2022/f-connection-worker/features/handle-connection-worker-message/handle-connection-worker-message-request.mjs +8 -0
- package/esm2022/f-connection-worker/features/handle-connection-worker-message/handle-connection-worker-message.mjs +34 -0
- package/esm2022/f-connection-worker/features/handle-connection-worker-message/index.mjs +3 -0
- package/esm2022/f-connection-worker/features/index.mjs +13 -0
- package/esm2022/f-connection-worker/features/is-connection-worker-enabled/index.mjs +3 -0
- package/esm2022/f-connection-worker/features/is-connection-worker-enabled/is-connection-worker-enabled-request.mjs +4 -0
- package/esm2022/f-connection-worker/features/is-connection-worker-enabled/is-connection-worker-enabled.mjs +34 -0
- package/esm2022/f-connection-worker/features/reset-connection-worker-runtime/index.mjs +3 -0
- package/esm2022/f-connection-worker/features/reset-connection-worker-runtime/reset-connection-worker-runtime-request.mjs +8 -0
- package/esm2022/f-connection-worker/features/reset-connection-worker-runtime/reset-connection-worker-runtime.mjs +22 -0
- package/esm2022/f-connection-worker/features/resolve-connection-worker-connectors/index.mjs +3 -0
- package/esm2022/f-connection-worker/features/resolve-connection-worker-connectors/resolve-connection-worker-connectors-request.mjs +8 -0
- package/esm2022/f-connection-worker/features/resolve-connection-worker-connectors/resolve-connection-worker-connectors.mjs +27 -0
- package/esm2022/f-connection-worker/features/resolve-connection-worker-context/index.mjs +3 -0
- package/esm2022/f-connection-worker/features/resolve-connection-worker-context/resolve-connection-worker-context-request.mjs +10 -0
- package/esm2022/f-connection-worker/features/resolve-connection-worker-context/resolve-connection-worker-context.mjs +36 -0
- package/esm2022/f-connection-worker/features/should-use-connection-worker/index.mjs +3 -0
- package/esm2022/f-connection-worker/features/should-use-connection-worker/should-use-connection-worker-request.mjs +8 -0
- package/esm2022/f-connection-worker/features/should-use-connection-worker/should-use-connection-worker.mjs +22 -0
- package/esm2022/f-connection-worker/index.mjs +4 -0
- package/esm2022/f-connection-worker/model/f-connection-worker.mjs +23 -0
- package/esm2022/f-connection-worker/model/i-f-connection-worker-rect.mjs +2 -0
- package/esm2022/f-connection-worker/model/i-f-connection-worker-request-item.mjs +2 -0
- package/esm2022/f-connection-worker/model/i-f-connection-worker-response.mjs +2 -0
- package/esm2022/f-connection-worker/model/i-f-connection-worker-result-item.mjs +2 -0
- package/esm2022/f-connection-worker/model/index.mjs +7 -0
- package/esm2022/f-connection-worker/model/t-f-connection-worker-pending-request.mjs +2 -0
- package/esm2022/f-connection-worker/providers.mjs +18 -0
- package/esm2022/f-draggable/connection/drag-connection-waypoint/drag-connection-waypoint-preparation/drag-connection-waypoint-preparation.mjs +2 -2
- package/esm2022/f-draggable/connection/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.mjs +2 -2
- package/esm2022/f-draggable/domain/detect-connections-under-drag-node/detect-connections-under-drag-node.mjs +2 -2
- package/esm2022/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect-request.mjs +8 -0
- package/esm2022/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.mjs +67 -0
- package/esm2022/f-draggable/domain/get-normalized-parent-node-rect/index.mjs +3 -3
- package/esm2022/f-draggable/domain/is-array-has-parent-node/index.mjs +3 -3
- package/esm2022/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node-request.mjs +10 -0
- package/esm2022/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.mjs +26 -0
- package/esm2022/f-draggable/domain/providers.mjs +5 -5
- package/esm2022/f-draggable/drag-external-item/constraints/external-rect-constraint.mjs +46 -0
- package/esm2022/f-draggable/drag-external-item/constraints/index.mjs +2 -0
- package/esm2022/f-draggable/drag-external-item/drag-external-item-create-placeholder/drag-external-item-create-placeholder-request.mjs +8 -0
- package/esm2022/f-draggable/drag-external-item/drag-external-item-create-placeholder/drag-external-item-create-placeholder.mjs +42 -0
- package/esm2022/f-draggable/drag-external-item/drag-external-item-create-placeholder/index.mjs +3 -0
- package/esm2022/f-draggable/drag-external-item/drag-external-item-create-preview/drag-external-item-create-preview-request.mjs +8 -0
- package/esm2022/f-draggable/drag-external-item/drag-external-item-create-preview/drag-external-item-create-preview.mjs +53 -0
- package/esm2022/f-draggable/drag-external-item/drag-external-item-create-preview/index.mjs +3 -0
- package/esm2022/f-draggable/drag-external-item/drag-external-item-finalize/drag-external-item-finalize-request.mjs +8 -0
- package/esm2022/f-draggable/drag-external-item/drag-external-item-finalize/drag-external-item-finalize.mjs +75 -0
- package/esm2022/f-draggable/drag-external-item/drag-external-item-finalize/index.mjs +3 -0
- package/esm2022/f-draggable/drag-external-item/drag-external-item-handler/drag-external-item-handler.mjs +206 -0
- package/esm2022/f-draggable/drag-external-item/drag-external-item-handler/index.mjs +2 -0
- package/esm2022/f-draggable/drag-external-item/drag-external-item-preparation/drag-external-item-preparation-request.mjs +10 -0
- package/esm2022/f-draggable/drag-external-item/drag-external-item-preparation/drag-external-item-preparation.mjs +55 -0
- package/esm2022/f-draggable/drag-external-item/drag-external-item-preparation/index.mjs +3 -0
- package/esm2022/f-draggable/drag-external-item/f-create-node-event.mjs +35 -0
- package/esm2022/f-draggable/drag-external-item/f-drag-external-item-start-event-data.mjs +7 -0
- package/esm2022/f-draggable/drag-external-item/i-drag-external-item-drag-result.mjs +2 -0
- package/esm2022/f-draggable/drag-external-item/index.mjs +13 -0
- package/esm2022/f-draggable/drag-external-item/is-drag-external-item-handler.mjs +7 -0
- package/esm2022/f-draggable/drag-external-item/prevent-default-is-external-item/index.mjs +3 -0
- package/esm2022/f-draggable/drag-external-item/prevent-default-is-external-item/prevent-default-is-external-item-request.mjs +8 -0
- package/esm2022/f-draggable/drag-external-item/prevent-default-is-external-item/prevent-default-is-external-item.mjs +38 -0
- package/esm2022/f-draggable/drag-external-item/providers.mjs +13 -0
- package/esm2022/f-draggable/drag-minimap/calculate-flow-point-from-minimap-point/calculate-flow-point-from-minimap-point-request.mjs +14 -0
- package/esm2022/f-draggable/drag-minimap/calculate-flow-point-from-minimap-point/calculate-flow-point-from-minimap-point.mjs +39 -0
- package/esm2022/f-draggable/drag-minimap/calculate-flow-point-from-minimap-point/index.mjs +3 -0
- package/esm2022/f-draggable/drag-minimap/drag-minimap-finalize/drag-minimap-finalize-request.mjs +8 -0
- package/esm2022/f-draggable/drag-minimap/drag-minimap-finalize/drag-minimap-finalize.mjs +30 -0
- package/esm2022/f-draggable/drag-minimap/drag-minimap-finalize/index.mjs +3 -0
- package/esm2022/f-draggable/drag-minimap/drag-minimap-handler/drag-minimap-handler.mjs +52 -0
- package/esm2022/f-draggable/drag-minimap/drag-minimap-handler/index.mjs +2 -0
- package/esm2022/f-draggable/drag-minimap/drag-minimap-preparation/drag-minimap-preparation-request.mjs +8 -0
- package/esm2022/f-draggable/drag-minimap/drag-minimap-preparation/drag-minimap-preparation.mjs +68 -0
- package/esm2022/f-draggable/drag-minimap/drag-minimap-preparation/index.mjs +3 -0
- package/esm2022/f-draggable/drag-minimap/index.mjs +7 -0
- package/esm2022/f-draggable/drag-minimap/is-drag-minimap-handler.mjs +7 -0
- package/esm2022/f-draggable/drag-minimap/providers.mjs +9 -0
- package/esm2022/f-draggable/drag-node/attach-drag-node-handler-from-selection/attach-drag-node-handler-from-selection.mjs +1 -1
- package/esm2022/f-draggable/drag-node/attach-drag-node-handler-from-selection/attach-soft-parent-connection-drag-handlers-to-node/attach-soft-parent-connection-drag-handlers-to-node-request.mjs +18 -0
- package/esm2022/f-draggable/drag-node/attach-drag-node-handler-from-selection/attach-soft-parent-connection-drag-handlers-to-node/attach-soft-parent-connection-drag-handlers-to-node.mjs +95 -0
- package/esm2022/f-draggable/drag-node/attach-drag-node-handler-from-selection/attach-soft-parent-connection-drag-handlers-to-node/index.mjs +3 -0
- package/esm2022/f-draggable/drag-node/attach-drag-node-handler-from-selection/create-drag-node-handler/create-drag-node-handler.mjs +23 -4
- package/esm2022/f-draggable/drag-node/attach-drag-node-handler-from-selection/index.mjs +2 -1
- package/esm2022/f-draggable/drag-node/attach-drag-node-handler-from-selection/providers.mjs +3 -1
- package/esm2022/f-draggable/drag-node/drag-node-dependent-connection-handlers/drag-node-connection-handler-base.mjs +7 -1
- package/esm2022/f-draggable/drag-node/drag-node-finalize/drag-node-finalize.mjs +3 -3
- package/esm2022/f-draggable/drag-node/drag-node-handler/drag-node-handler.mjs +5 -4
- package/esm2022/f-draggable/drag-node/drag-node-handler/drag-node-item-handler.mjs +49 -5
- package/esm2022/f-draggable/drag-node/drag-node-handler/i-soft-parent-connection-handlers.mjs +2 -0
- package/esm2022/f-draggable/drag-node/drag-node-handler/index.mjs +2 -1
- package/esm2022/f-draggable/drag-node/index.mjs +2 -1
- package/esm2022/f-draggable/drag-node/is-drag-node-handler.mjs +7 -0
- package/esm2022/f-draggable/drop-to-group/drop-to-group-handler/drop-to-group-handler.mjs +11 -9
- package/esm2022/f-draggable/drop-to-group/drop-to-group-preparation/drop-to-group-preparation.mjs +4 -15
- package/esm2022/f-draggable/f-draggable-base.mjs +1 -1
- package/esm2022/f-draggable/f-draggable.directive.mjs +16 -29
- package/esm2022/f-draggable/index.mjs +5 -4
- package/esm2022/f-draggable/infrastructure/drag-handler-injector.mjs +16 -1
- package/esm2022/f-draggable/pinch-to-zoom/index.mjs +3 -3
- package/esm2022/f-draggable/pinch-to-zoom/pinch-to-zoom-finalize/index.mjs +3 -0
- package/esm2022/f-draggable/pinch-to-zoom/pinch-to-zoom-finalize/pinch-to-zoom-finalize-request.mjs +8 -0
- package/esm2022/f-draggable/pinch-to-zoom/pinch-to-zoom-finalize/pinch-to-zoom-finalize.mjs +31 -0
- package/esm2022/f-draggable/pinch-to-zoom/pinch-to-zoom-preparation/index.mjs +3 -0
- package/esm2022/f-draggable/pinch-to-zoom/pinch-to-zoom-preparation/pinch-to-zoom-preparation-request.mjs +8 -0
- package/esm2022/f-draggable/pinch-to-zoom/pinch-to-zoom-preparation/pinch-to-zoom-preparation.mjs +47 -0
- package/esm2022/f-draggable/pinch-to-zoom/providers.mjs +3 -3
- package/esm2022/f-draggable/providers.mjs +7 -7
- package/esm2022/f-draggable/resize-node/apply-child-resize-constraints/apply-child-resize-constraints-request.mjs +10 -0
- package/esm2022/f-draggable/resize-node/apply-child-resize-constraints/apply-child-resize-constraints.mjs +57 -0
- package/esm2022/f-draggable/resize-node/apply-child-resize-constraints/index.mjs +3 -0
- package/esm2022/f-draggable/resize-node/apply-parent-resize-constraints/apply-parent-resize-constraints-request.mjs +10 -0
- package/esm2022/f-draggable/resize-node/apply-parent-resize-constraints/apply-parent-resize-constraints.mjs +150 -0
- package/esm2022/f-draggable/resize-node/apply-parent-resize-constraints/index.mjs +3 -0
- package/esm2022/f-draggable/resize-node/calculate-changed-rect-from-difference/calculate-changed-rect-from-difference-request.mjs +14 -0
- package/esm2022/f-draggable/resize-node/calculate-changed-rect-from-difference/calculate-changed-rect-from-difference.mjs +55 -0
- package/esm2022/f-draggable/resize-node/calculate-changed-rect-from-difference/index.mjs +3 -0
- package/esm2022/f-draggable/resize-node/calculate-direct-children-union-rect/calculate-direct-children-union-rect-request.mjs +10 -0
- package/esm2022/f-draggable/resize-node/calculate-direct-children-union-rect/calculate-direct-children-union-rect.mjs +38 -0
- package/esm2022/f-draggable/resize-node/calculate-direct-children-union-rect/index.mjs +3 -0
- package/esm2022/f-draggable/resize-node/calculate-resize-limits/calculate-resize-limits-request.mjs +10 -0
- package/esm2022/f-draggable/resize-node/calculate-resize-limits/calculate-resize-limits.mjs +69 -0
- package/esm2022/f-draggable/resize-node/calculate-resize-limits/index.mjs +3 -0
- package/esm2022/f-draggable/resize-node/constraint/i-resize-constraint.mjs +2 -0
- package/esm2022/f-draggable/resize-node/constraint/i-resize-limit.mjs +2 -0
- package/esm2022/f-draggable/resize-node/constraint/i-resize-limits.mjs +2 -0
- package/esm2022/f-draggable/resize-node/constraint/i-resize-overflow.mjs +2 -0
- package/esm2022/f-draggable/resize-node/constraint/index.mjs +6 -0
- package/esm2022/f-draggable/resize-node/constraint/resize-direction.mjs +12 -0
- package/esm2022/f-draggable/resize-node/f-resize-node-start-event-data.mjs +7 -0
- package/esm2022/f-draggable/resize-node/index.mjs +13 -0
- package/esm2022/f-draggable/resize-node/is-resize-node-handler.mjs +7 -0
- package/esm2022/f-draggable/resize-node/providers.mjs +19 -0
- package/esm2022/f-draggable/resize-node/resize-node-finalize/index.mjs +3 -0
- package/esm2022/f-draggable/resize-node/resize-node-finalize/resize-node-finalize-request.mjs +8 -0
- package/esm2022/f-draggable/resize-node/resize-node-finalize/resize-node-finalize.mjs +29 -0
- package/esm2022/f-draggable/resize-node/resize-node-handler/i-resize-node-connection-handlers.mjs +2 -0
- package/esm2022/f-draggable/resize-node/resize-node-handler/index.mjs +4 -0
- package/esm2022/f-draggable/resize-node/resize-node-handler/resize-node-dependent-connection-handlers/index.mjs +5 -0
- package/esm2022/f-draggable/resize-node/resize-node-handler/resize-node-dependent-connection-handlers/resize-node-connection-both-sides-handler.mjs +31 -0
- package/esm2022/f-draggable/resize-node/resize-node-handler/resize-node-dependent-connection-handlers/resize-node-connection-handler-base.mjs +53 -0
- package/esm2022/f-draggable/resize-node/resize-node-handler/resize-node-dependent-connection-handlers/resize-node-connection-source-handler.mjs +15 -0
- package/esm2022/f-draggable/resize-node/resize-node-handler/resize-node-dependent-connection-handlers/resize-node-connection-target-handler.mjs +15 -0
- package/esm2022/f-draggable/resize-node/resize-node-handler/resize-node-handler.mjs +116 -0
- package/esm2022/f-draggable/resize-node/resize-preparation/attach-resize-connection-drag-handlers-to-node/attach-resize-connection-drag-handlers-to-node-request.mjs +10 -0
- package/esm2022/f-draggable/resize-node/resize-preparation/attach-resize-connection-drag-handlers-to-node/attach-resize-connection-drag-handlers-to-node.mjs +99 -0
- package/esm2022/f-draggable/resize-node/resize-preparation/attach-resize-connection-drag-handlers-to-node/index.mjs +3 -0
- package/esm2022/f-draggable/resize-node/resize-preparation/index.mjs +4 -0
- package/esm2022/f-draggable/resize-node/resize-preparation/resize-node-preparation-request.mjs +10 -0
- package/esm2022/f-draggable/resize-node/resize-preparation/resize-node-preparation.mjs +77 -0
- package/esm2022/f-draggable/rotate-node/calculate-difference-after-rotation.mjs +19 -0
- package/esm2022/f-draggable/rotate-node/f-rotate-node-start-event-data.mjs +7 -0
- package/esm2022/f-draggable/rotate-node/index.mjs +8 -0
- package/esm2022/f-draggable/rotate-node/is-rotate-node-handler.mjs +7 -0
- package/esm2022/f-draggable/rotate-node/providers.mjs +4 -0
- package/esm2022/f-draggable/rotate-node/rotate-node-finalize/index.mjs +3 -0
- package/esm2022/f-draggable/rotate-node/rotate-node-finalize/rotate-node-finalize-request.mjs +8 -0
- package/esm2022/f-draggable/rotate-node/rotate-node-finalize/rotate-node-finalize.mjs +31 -0
- package/esm2022/f-draggable/rotate-node/rotate-node-handler/index.mjs +2 -0
- package/esm2022/f-draggable/rotate-node/rotate-node-handler/rotate-node-handler.mjs +89 -0
- package/esm2022/f-draggable/rotate-node/rotate-node-preparation/index.mjs +3 -0
- package/esm2022/f-draggable/rotate-node/rotate-node-preparation/rotate-node-preparation-request.mjs +10 -0
- package/esm2022/f-draggable/rotate-node/rotate-node-preparation/rotate-node-preparation.mjs +99 -0
- package/esm2022/f-draggable/selection-area/selection-area-handler/selection-area-handler.mjs +2 -2
- package/esm2022/f-external-item/f-external-item-base.mjs +5 -2
- package/esm2022/f-external-item/f-external-item-placeholder.mjs +26 -0
- package/esm2022/f-external-item/f-external-item-preview.mjs +26 -0
- package/esm2022/f-external-item/f-external-item.mjs +63 -0
- package/esm2022/f-external-item/f-external-item.service.mjs +37 -11
- package/esm2022/f-external-item/index.mjs +4 -6
- package/esm2022/f-external-item/is-external-item.mjs +6 -3
- package/esm2022/f-external-item/providers.mjs +3 -5
- package/esm2022/f-flow/f-flow-base.mjs +2 -2
- package/esm2022/f-flow/f-flow.component.mjs +47 -27
- package/esm2022/f-flow.module.mjs +24 -20
- package/esm2022/f-magnetic-lines/f-magnetic-lines.mjs +4 -4
- package/esm2022/f-magnetic-rects/f-magnetic-rects.mjs +4 -4
- package/esm2022/f-minimap/f-minimap-base.mjs +12 -0
- package/esm2022/f-minimap/f-minimap-canvas.directive.mjs +12 -8
- package/esm2022/f-minimap/f-minimap-flow.directive.mjs +7 -6
- package/esm2022/f-minimap/f-minimap-view.directive.mjs +5 -4
- package/esm2022/f-minimap/f-minimap.component.mjs +25 -16
- package/esm2022/f-minimap/index.mjs +2 -2
- package/esm2022/f-node/f-group.directive.mjs +4 -1
- package/esm2022/f-node/f-node.directive.mjs +4 -1
- package/esm2022/f-storage/f-components-store.mjs +19 -7
- package/esm2022/f-storage/features/emit-connections-changes/emit-connections-changes-request.mjs +4 -0
- package/esm2022/f-storage/features/emit-connections-changes/emit-connections-changes.mjs +22 -0
- package/esm2022/f-storage/features/emit-connections-changes/index.mjs +3 -0
- package/esm2022/f-storage/features/index.mjs +4 -4
- package/esm2022/f-storage/features/listen-connections-changes/index.mjs +3 -0
- package/esm2022/f-storage/features/listen-connections-changes/listen-connections-changes-request.mjs +8 -0
- package/esm2022/f-storage/features/listen-connections-changes/listen-connections-changes.mjs +25 -0
- package/esm2022/f-storage/features/listen-nodes-changes/index.mjs +3 -0
- package/esm2022/f-storage/features/listen-nodes-changes/listen-nodes-changes-request.mjs +4 -0
- package/esm2022/f-storage/features/listen-nodes-changes/listen-nodes-changes.mjs +23 -0
- package/esm2022/f-storage/features/listen-transform-changes/listen-transform-changes.mjs +3 -3
- package/esm2022/f-storage/providers.mjs +6 -6
- package/esm2022/f-virtual/f-virtual-for.mjs +56 -0
- package/esm2022/f-virtual/index.mjs +3 -0
- package/esm2022/f-virtual/providers.mjs +3 -0
- package/esm2022/f-zoom/f-zoom.directive.mjs +17 -9
- package/esm2022/public-api.mjs +4 -1
- package/esm2022/reactivity/after-next-paint.mjs +27 -0
- package/esm2022/reactivity/f-channel-hub.mjs +5 -2
- package/esm2022/reactivity/index.mjs +2 -1
- package/esm2022/reactivity/notify-on-start.mjs +17 -5
- package/esm2022/reactivity/take-one.mjs +7 -3
- package/esm2022/utils/calculate-pointer-in-flow.mjs +6 -3
- package/f-cache/config/f-cache-options.d.ts +6 -0
- package/f-cache/config/index.d.ts +1 -0
- package/f-cache/features/f-cache-connectors/index.d.ts +2 -0
- package/f-cache/features/f-cache-connectors/register-connector/index.d.ts +2 -0
- package/f-cache/features/f-cache-connectors/register-connector/register-connector-request.d.ts +8 -0
- package/f-cache/features/f-cache-connectors/register-connector/register-connector.d.ts +12 -0
- package/f-cache/features/f-cache-connectors/unregister-connector/index.d.ts +2 -0
- package/f-cache/features/f-cache-connectors/unregister-connector/unregister-connector-request.d.ts +6 -0
- package/f-cache/features/f-cache-connectors/unregister-connector/unregister-connector.d.ts +12 -0
- package/f-cache/features/f-cache-nodes/index.d.ts +3 -0
- package/f-cache/features/f-cache-nodes/invalidate-node/index.d.ts +2 -0
- package/f-cache/features/f-cache-nodes/invalidate-node/invalidate-node-request.d.ts +6 -0
- package/f-cache/features/f-cache-nodes/invalidate-node/invalidate-node.d.ts +10 -0
- package/f-cache/features/f-cache-nodes/register-node/index.d.ts +2 -0
- package/f-cache/features/f-cache-nodes/register-node/register-node-request.d.ts +8 -0
- package/f-cache/features/f-cache-nodes/register-node/register-node.d.ts +10 -0
- package/f-cache/features/f-cache-nodes/unregister-node/index.d.ts +2 -0
- package/f-cache/features/f-cache-nodes/unregister-node/unregister-node-request.d.ts +5 -0
- package/f-cache/features/f-cache-nodes/unregister-node/unregister-node.d.ts +11 -0
- package/f-cache/features/f-cache-rects/get-cached-rect/get-cached-rect-request.d.ts +5 -0
- package/f-cache/features/f-cache-rects/get-cached-rect/get-cached-rect.d.ts +11 -0
- package/f-cache/features/f-cache-rects/get-cached-rect/index.d.ts +2 -0
- package/f-cache/features/f-cache-rects/index.d.ts +4 -0
- package/f-cache/features/f-cache-rects/set-connector-rect/index.d.ts +2 -0
- package/f-cache/features/f-cache-rects/set-connector-rect/set-connector-rect-request.d.ts +8 -0
- package/f-cache/features/f-cache-rects/set-connector-rect/set-connector-rect.d.ts +10 -0
- package/f-cache/features/f-cache-rects/set-node-rect/index.d.ts +2 -0
- package/f-cache/features/f-cache-rects/set-node-rect/set-node-rect-request.d.ts +7 -0
- package/f-cache/features/f-cache-rects/set-node-rect/set-node-rect.d.ts +11 -0
- package/f-cache/features/f-cache-rects/update-rect-by-element/index.d.ts +2 -0
- package/f-cache/features/f-cache-rects/update-rect-by-element/update-rect-by-element-request.d.ts +7 -0
- package/f-cache/features/f-cache-rects/update-rect-by-element/update-rect-by-element.d.ts +10 -0
- package/f-cache/features/index.d.ts +3 -0
- package/f-cache/index.d.ts +4 -0
- package/f-cache/model/f-cache-connector-key.d.ts +4 -0
- package/f-cache/model/f-cache-connector.d.ts +11 -0
- package/f-cache/model/f-cache-node.d.ts +9 -0
- package/f-cache/model/f-cache.d.ts +12 -0
- package/f-cache/model/i-f-cache-node-ref.d.ts +6 -0
- package/f-cache/model/index.d.ts +5 -0
- package/f-cache/providers.d.ts +3 -0
- package/f-canvas/f-canvas.component.d.ts +1 -0
- package/f-connection-worker/features/calculate-connection-worker-connector-rect/calculate-connection-worker-connector-rect-request.d.ts +8 -0
- package/f-connection-worker/features/calculate-connection-worker-connector-rect/calculate-connection-worker-connector-rect.d.ts +12 -0
- package/f-connection-worker/features/calculate-connection-worker-connector-rect/index.d.ts +2 -0
- package/f-connection-worker/features/calculate-connection-worker-payload-item/calculate-connection-worker-payload-item-request.d.ts +8 -0
- package/f-connection-worker/features/calculate-connection-worker-payload-item/calculate-connection-worker-payload-item.d.ts +10 -0
- package/f-connection-worker/features/calculate-connection-worker-payload-item/index.d.ts +2 -0
- package/f-connection-worker/features/calculate-connections-using-connection-worker/calculate-connections-using-connection-worker-request.d.ts +8 -0
- package/f-connection-worker/features/calculate-connections-using-connection-worker/calculate-connections-using-connection-worker.d.ts +12 -0
- package/f-connection-worker/features/calculate-connections-using-connection-worker/index.d.ts +2 -0
- package/f-connection-worker/features/connection-worker-run/connection-worker-run-request.d.ts +6 -0
- package/f-connection-worker/features/connection-worker-run/connection-worker-run.d.ts +12 -0
- package/f-connection-worker/features/connection-worker-run/index.d.ts +2 -0
- package/f-connection-worker/features/disable-connection-worker/disable-connection-worker-request.d.ts +5 -0
- package/f-connection-worker/features/disable-connection-worker/disable-connection-worker.d.ts +10 -0
- package/f-connection-worker/features/disable-connection-worker/index.d.ts +2 -0
- package/f-connection-worker/features/ensure-connection-worker/ensure-connection-worker-request.d.ts +3 -0
- package/f-connection-worker/features/ensure-connection-worker/ensure-connection-worker.d.ts +13 -0
- package/f-connection-worker/features/ensure-connection-worker/index.d.ts +2 -0
- package/f-connection-worker/features/handle-connection-worker-message/handle-connection-worker-message-request.d.ts +6 -0
- package/f-connection-worker/features/handle-connection-worker-message/handle-connection-worker-message.d.ts +9 -0
- package/f-connection-worker/features/handle-connection-worker-message/index.d.ts +2 -0
- package/f-connection-worker/features/index.d.ts +12 -0
- package/f-connection-worker/features/is-connection-worker-enabled/index.d.ts +2 -0
- package/f-connection-worker/features/is-connection-worker-enabled/is-connection-worker-enabled-request.d.ts +3 -0
- package/f-connection-worker/features/is-connection-worker-enabled/is-connection-worker-enabled.d.ts +11 -0
- package/f-connection-worker/features/reset-connection-worker-runtime/index.d.ts +2 -0
- package/f-connection-worker/features/reset-connection-worker-runtime/reset-connection-worker-runtime-request.d.ts +5 -0
- package/f-connection-worker/features/reset-connection-worker-runtime/reset-connection-worker-runtime.d.ts +9 -0
- package/f-connection-worker/features/resolve-connection-worker-connectors/index.d.ts +2 -0
- package/f-connection-worker/features/resolve-connection-worker-connectors/resolve-connection-worker-connectors-request.d.ts +11 -0
- package/f-connection-worker/features/resolve-connection-worker-connectors/resolve-connection-worker-connectors.d.ts +9 -0
- package/f-connection-worker/features/resolve-connection-worker-context/index.d.ts +2 -0
- package/f-connection-worker/features/resolve-connection-worker-context/resolve-connection-worker-context-request.d.ts +13 -0
- package/f-connection-worker/features/resolve-connection-worker-context/resolve-connection-worker-context.d.ts +10 -0
- package/f-connection-worker/features/should-use-connection-worker/index.d.ts +2 -0
- package/f-connection-worker/features/should-use-connection-worker/should-use-connection-worker-request.d.ts +5 -0
- package/f-connection-worker/features/should-use-connection-worker/should-use-connection-worker.d.ts +9 -0
- package/f-connection-worker/index.d.ts +3 -0
- package/f-connection-worker/model/f-connection-worker.d.ts +12 -0
- package/f-connection-worker/model/i-f-connection-worker-rect.d.ts +6 -0
- package/f-connection-worker/model/i-f-connection-worker-request-item.d.ts +11 -0
- package/f-connection-worker/model/i-f-connection-worker-response.d.ts +6 -0
- package/f-connection-worker/model/i-f-connection-worker-result-item.d.ts +8 -0
- package/f-connection-worker/model/index.d.ts +6 -0
- package/f-connection-worker/model/t-f-connection-worker-pending-request.d.ts +5 -0
- package/f-connection-worker/providers.d.ts +3 -0
- package/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.d.ts +15 -0
- package/f-draggable/domain/get-normalized-parent-node-rect/index.d.ts +2 -2
- package/f-draggable/domain/is-array-has-parent-node/index.d.ts +2 -2
- package/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.d.ts +10 -0
- package/f-draggable/domain/providers.d.ts +3 -3
- package/f-draggable/drag-external-item/drag-external-item-create-placeholder/drag-external-item-create-placeholder-request.d.ts +6 -0
- package/f-draggable/drag-external-item/drag-external-item-create-placeholder/drag-external-item-create-placeholder.d.ts +13 -0
- package/f-draggable/drag-external-item/drag-external-item-create-placeholder/index.d.ts +2 -0
- package/f-draggable/drag-external-item/drag-external-item-create-preview/drag-external-item-create-preview-request.d.ts +6 -0
- package/f-draggable/drag-external-item/drag-external-item-create-preview/drag-external-item-create-preview.d.ts +14 -0
- package/f-draggable/drag-external-item/drag-external-item-create-preview/index.d.ts +2 -0
- package/f-draggable/drag-external-item/drag-external-item-finalize/drag-external-item-finalize-request.d.ts +6 -0
- package/f-draggable/drag-external-item/drag-external-item-finalize/drag-external-item-finalize.d.ts +21 -0
- package/f-draggable/drag-external-item/drag-external-item-finalize/index.d.ts +2 -0
- package/f-draggable/drag-external-item/drag-external-item-handler/drag-external-item-handler.d.ts +50 -0
- package/f-draggable/drag-external-item/drag-external-item-handler/index.d.ts +1 -0
- package/f-draggable/drag-external-item/drag-external-item-preparation/drag-external-item-preparation-request.d.ts +8 -0
- package/f-draggable/drag-external-item/drag-external-item-preparation/drag-external-item-preparation.d.ts +15 -0
- package/f-draggable/drag-external-item/drag-external-item-preparation/index.d.ts +2 -0
- package/f-draggable/drag-external-item/f-create-node-event.d.ts +18 -0
- package/f-draggable/drag-external-item/f-drag-external-item-start-event-data.d.ts +4 -0
- package/f-draggable/drag-external-item/i-drag-external-item-drag-result.d.ts +5 -0
- package/f-draggable/drag-external-item/index.d.ts +12 -0
- package/f-draggable/drag-external-item/is-drag-external-item-handler.d.ts +5 -0
- package/f-draggable/drag-external-item/prevent-default-is-external-item/index.d.ts +2 -0
- package/f-draggable/drag-external-item/prevent-default-is-external-item/prevent-default-is-external-item-request.d.ts +5 -0
- package/f-draggable/drag-external-item/prevent-default-is-external-item/prevent-default-is-external-item.d.ts +10 -0
- package/f-draggable/drag-external-item/providers.d.ts +6 -0
- package/f-draggable/drag-minimap/calculate-flow-point-from-minimap-point/calculate-flow-point-from-minimap-point-request.d.ts +10 -0
- package/f-draggable/drag-minimap/calculate-flow-point-from-minimap-point/calculate-flow-point-from-minimap-point.d.ts +16 -0
- package/f-draggable/drag-minimap/calculate-flow-point-from-minimap-point/index.d.ts +2 -0
- package/f-draggable/drag-minimap/drag-minimap-finalize/drag-minimap-finalize-request.d.ts +6 -0
- package/f-draggable/drag-minimap/drag-minimap-finalize/drag-minimap-finalize.d.ts +10 -0
- package/f-draggable/drag-minimap/drag-minimap-finalize/index.d.ts +2 -0
- package/f-draggable/drag-minimap/drag-minimap-handler/drag-minimap-handler.d.ts +23 -0
- package/f-draggable/drag-minimap/drag-minimap-handler/index.d.ts +1 -0
- package/f-draggable/drag-minimap/drag-minimap-preparation/drag-minimap-preparation-request.d.ts +6 -0
- package/f-draggable/drag-minimap/drag-minimap-preparation/drag-minimap-preparation.d.ts +16 -0
- package/f-draggable/drag-minimap/drag-minimap-preparation/index.d.ts +2 -0
- package/f-draggable/drag-minimap/index.d.ts +6 -0
- package/f-draggable/drag-minimap/is-drag-minimap-handler.d.ts +5 -0
- package/f-draggable/drag-minimap/providers.d.ts +4 -0
- package/f-draggable/drag-node/attach-drag-node-handler-from-selection/attach-soft-parent-connection-drag-handlers-to-node/attach-soft-parent-connection-drag-handlers-to-node-request.d.ts +19 -0
- package/f-draggable/drag-node/attach-drag-node-handler-from-selection/attach-soft-parent-connection-drag-handlers-to-node/attach-soft-parent-connection-drag-handlers-to-node.d.ts +15 -0
- package/f-draggable/drag-node/attach-drag-node-handler-from-selection/attach-soft-parent-connection-drag-handlers-to-node/index.d.ts +2 -0
- package/f-draggable/drag-node/attach-drag-node-handler-from-selection/create-drag-node-handler/create-drag-node-handler.d.ts +2 -0
- package/f-draggable/drag-node/attach-drag-node-handler-from-selection/index.d.ts +1 -0
- package/f-draggable/drag-node/attach-drag-node-handler-from-selection/providers.d.ts +2 -1
- package/f-draggable/drag-node/drag-node-dependent-connection-handlers/drag-node-connection-handler-base.d.ts +1 -0
- package/f-draggable/drag-node/drag-node-handler/drag-node-item-handler.d.ts +6 -0
- package/f-draggable/drag-node/drag-node-handler/i-soft-parent-connection-handlers.d.ts +12 -0
- package/f-draggable/drag-node/drag-node-handler/index.d.ts +1 -0
- package/f-draggable/drag-node/index.d.ts +1 -0
- package/f-draggable/drag-node/is-drag-node-handler.d.ts +5 -0
- package/f-draggable/drag-node/providers.d.ts +1 -1
- package/f-draggable/drop-to-group/drop-to-group-handler/drop-to-group-handler.d.ts +2 -3
- package/f-draggable/drop-to-group/drop-to-group-preparation/drop-to-group-preparation.d.ts +0 -3
- package/f-draggable/f-draggable-base.d.ts +1 -1
- package/f-draggable/f-draggable.directive.d.ts +2 -4
- package/f-draggable/index.d.ts +4 -3
- package/f-draggable/pinch-to-zoom/index.d.ts +2 -2
- package/f-draggable/pinch-to-zoom/providers.d.ts +2 -2
- package/f-draggable/providers.d.ts +1 -1
- package/f-draggable/resize-node/apply-parent-resize-constraints/apply-parent-resize-constraints-request.d.ts +8 -0
- package/f-draggable/resize-node/apply-parent-resize-constraints/apply-parent-resize-constraints.d.ts +37 -0
- package/f-draggable/resize-node/calculate-changed-rect-from-difference/calculate-changed-rect-from-difference.d.ts +11 -0
- package/f-draggable/resize-node/calculate-resize-limits/calculate-resize-limits-request.d.ts +8 -0
- package/f-draggable/resize-node/constraint/i-resize-constraint.d.ts +7 -0
- package/f-draggable/resize-node/constraint/i-resize-limit.d.ts +7 -0
- package/f-draggable/resize-node/constraint/i-resize-limits.d.ts +5 -0
- package/f-draggable/resize-node/constraint/index.d.ts +5 -0
- package/f-draggable/resize-node/f-resize-node-start-event-data.d.ts +4 -0
- package/f-draggable/resize-node/index.d.ts +12 -0
- package/f-draggable/resize-node/is-resize-node-handler.d.ts +5 -0
- package/f-draggable/resize-node/providers.d.ts +9 -0
- package/f-draggable/resize-node/resize-node-finalize/index.d.ts +2 -0
- package/f-draggable/resize-node/resize-node-finalize/resize-node-finalize-request.d.ts +6 -0
- package/f-draggable/resize-node/resize-node-finalize/resize-node-finalize.d.ts +10 -0
- package/f-draggable/resize-node/resize-node-handler/i-resize-node-connection-handlers.d.ts +10 -0
- package/f-draggable/resize-node/resize-node-handler/index.d.ts +3 -0
- package/f-draggable/resize-node/resize-node-handler/resize-node-dependent-connection-handlers/index.d.ts +4 -0
- package/f-draggable/resize-node/resize-node-handler/resize-node-dependent-connection-handlers/resize-node-connection-both-sides-handler.d.ts +12 -0
- package/f-draggable/resize-node/resize-node-handler/resize-node-dependent-connection-handlers/resize-node-connection-handler-base.d.ts +20 -0
- package/f-draggable/resize-node/resize-node-handler/resize-node-dependent-connection-handlers/resize-node-connection-source-handler.d.ts +8 -0
- package/f-draggable/resize-node/resize-node-handler/resize-node-dependent-connection-handlers/resize-node-connection-target-handler.d.ts +8 -0
- package/f-draggable/resize-node/resize-node-handler/resize-node-handler.d.ts +35 -0
- package/f-draggable/resize-node/resize-preparation/attach-resize-connection-drag-handlers-to-node/attach-resize-connection-drag-handlers-to-node-request.d.ts +8 -0
- package/f-draggable/resize-node/resize-preparation/attach-resize-connection-drag-handlers-to-node/attach-resize-connection-drag-handlers-to-node.d.ts +16 -0
- package/f-draggable/resize-node/resize-preparation/attach-resize-connection-drag-handlers-to-node/index.d.ts +2 -0
- package/f-draggable/resize-node/resize-preparation/index.d.ts +3 -0
- package/f-draggable/resize-node/resize-preparation/resize-node-preparation-request.d.ts +8 -0
- package/f-draggable/resize-node/resize-preparation/resize-node-preparation.d.ts +17 -0
- package/f-draggable/rotate-node/f-rotate-node-start-event-data.d.ts +4 -0
- package/f-draggable/rotate-node/index.d.ts +7 -0
- package/f-draggable/rotate-node/is-rotate-node-handler.d.ts +5 -0
- package/f-draggable/rotate-node/providers.d.ts +3 -0
- package/f-draggable/rotate-node/rotate-node-finalize/index.d.ts +2 -0
- package/f-draggable/rotate-node/rotate-node-finalize/rotate-node-finalize-request.d.ts +6 -0
- package/f-draggable/rotate-node/rotate-node-finalize/rotate-node-finalize.d.ts +10 -0
- package/f-draggable/rotate-node/rotate-node-handler/index.d.ts +1 -0
- package/f-draggable/rotate-node/rotate-node-handler/rotate-node-handler.d.ts +43 -0
- package/f-draggable/rotate-node/rotate-node-preparation/index.d.ts +2 -0
- package/f-draggable/rotate-node/rotate-node-preparation/rotate-node-preparation-request.d.ts +8 -0
- package/f-draggable/rotate-node/rotate-node-preparation/rotate-node-preparation.d.ts +18 -0
- package/f-external-item/f-external-item-base.d.ts +10 -10
- package/f-external-item/f-external-item-placeholder.d.ts +10 -0
- package/f-external-item/f-external-item-preview.d.ts +10 -0
- package/f-external-item/f-external-item.d.ts +23 -0
- package/f-external-item/f-external-item.service.d.ts +10 -3
- package/f-external-item/index.d.ts +3 -5
- package/f-external-item/is-external-item.d.ts +1 -1
- package/f-external-item/providers.d.ts +2 -2
- package/f-flow/f-flow-base.d.ts +2 -1
- package/f-flow/f-flow.component.d.ts +11 -7
- package/f-flow.module.d.ts +21 -20
- package/f-minimap/f-minimap-base.d.ts +10 -0
- package/f-minimap/f-minimap-canvas.directive.d.ts +3 -2
- package/f-minimap/f-minimap-flow.directive.d.ts +3 -3
- package/f-minimap/f-minimap-view.directive.d.ts +1 -1
- package/f-minimap/f-minimap.component.d.ts +10 -7
- package/f-minimap/index.d.ts +1 -1
- package/f-storage/f-components-store.d.ts +10 -4
- package/f-storage/features/emit-connections-changes/emit-connections-changes-request.d.ts +3 -0
- package/f-storage/features/emit-connections-changes/emit-connections-changes.d.ts +9 -0
- package/f-storage/features/emit-connections-changes/index.d.ts +2 -0
- package/f-storage/features/index.d.ts +3 -3
- package/f-storage/features/listen-connections-changes/index.d.ts +2 -0
- package/f-storage/features/listen-connections-changes/listen-connections-changes-request.d.ts +5 -0
- package/f-storage/features/listen-connections-changes/listen-connections-changes.d.ts +10 -0
- package/f-storage/features/listen-nodes-changes/index.d.ts +2 -0
- package/f-storage/features/listen-nodes-changes/listen-nodes-changes-request.d.ts +3 -0
- package/f-storage/features/listen-nodes-changes/listen-nodes-changes.d.ts +10 -0
- package/f-storage/features/listen-transform-changes/listen-transform-changes.d.ts +1 -1
- package/f-storage/providers.d.ts +3 -3
- package/f-virtual/f-virtual-for.d.ts +15 -0
- package/f-virtual/index.d.ts +2 -0
- package/f-virtual/providers.d.ts +2 -0
- package/f-zoom/f-zoom.directive.d.ts +1 -0
- package/fesm2022/foblex-flow.mjs +8266 -6285
- package/fesm2022/foblex-flow.mjs.map +1 -1
- package/package.json +8 -5
- package/public-api.d.ts +3 -0
- package/reactivity/after-next-paint.d.ts +2 -0
- package/reactivity/index.d.ts +1 -0
- package/utils/calculate-pointer-in-flow.d.ts +1 -3
- package/domain/drag-rect-cache.d.ts +0 -8
- package/domain/f-canvas/add-canvas-to-store/add-canvas-to-store.execution.d.ts +0 -12
- package/domain/f-canvas/center-group-or-node/center-group-or-node.execution.d.ts +0 -18
- package/domain/f-canvas/fit-to-flow/fit-to-flow.execution.d.ts +0 -17
- package/domain/f-canvas/get-canvas/get-canvas-request.d.ts +0 -3
- package/domain/f-canvas/get-canvas/get-canvas.execution.d.ts +0 -13
- package/domain/f-canvas/get-canvas/index.d.ts +0 -2
- package/domain/f-canvas/input-canvas-position/input-canvas-position.execution.d.ts +0 -12
- package/domain/f-canvas/input-canvas-scale/input-canvas-scale.execution.d.ts +0 -13
- package/domain/f-canvas/redraw-canvas-with-animation/redraw-canvas-with-animation.execution.d.ts +0 -17
- package/domain/f-canvas/remove-canvas-from-store/remove-canvas-from-store.execution.d.ts +0 -12
- package/domain/f-canvas/reset-scale/reset-scale.execution.d.ts +0 -13
- package/domain/f-canvas/reset-scale-and-center/reset-scale-and-center.execution.d.ts +0 -17
- package/domain/f-canvas/update-scale/update-scale.execution.d.ts +0 -14
- package/domain/f-connectors/find-connectable-connector-using-priority-and-position/find-connectable-connector-using-priority-and-position.execution.d.ts +0 -30
- package/domain/f-draggable/add-dnd-to-store/add-dnd-to-store.execution.d.ts +0 -12
- package/domain/f-draggable/initialize-drag-sequence/initialize-drag-sequence.execution.d.ts +0 -12
- package/domain/f-draggable/on-pointer-move/on-pointer-move.execution.d.ts +0 -19
- package/domain/f-draggable/prepare-drag-sequence/prepare-drag-sequence.execution.d.ts +0 -14
- package/domain/f-draggable/remove-dnd-from-store/remove-dnd-from-store.execution.d.ts +0 -12
- package/domain/f-flow/add-flow-to-store/add-flow-to-store.execution.d.ts +0 -12
- package/domain/f-flow/get-flow/get-flow.execution.d.ts +0 -13
- package/domain/f-flow/remove-flow-from-store/remove-flow-from-store.execution.d.ts +0 -12
- package/domain/f-selection/clear-selection/clear-selection.execution.d.ts +0 -12
- package/domain/f-selection/get-current-selection/get-current-selection.execution.d.ts +0 -16
- package/domain/f-selection/select/index.d.ts +0 -2
- package/domain/f-selection/select/select.execution.d.ts +0 -13
- package/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.execution.d.ts +0 -15
- package/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.request.d.ts +0 -5
- package/domain/get-element-rounded-rect/get-element-rounded-rect-request.d.ts +0 -5
- package/domain/get-element-rounded-rect/get-element-rounded-rect.execution.d.ts +0 -17
- package/domain/get-element-rounded-rect/index.d.ts +0 -2
- package/domain/get-normalized-connector-rect/get-normalized-connector-rect.execution.d.ts +0 -22
- package/domain/get-normalized-element-rect/get-normalized-element-rect.execution.d.ts +0 -22
- package/domain/get-normalized-point/get-normalized-point.execution.d.ts +0 -16
- package/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.execution.d.ts +0 -22
- package/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.request.d.ts +0 -5
- package/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.execution.d.ts +0 -24
- package/esm2022/domain/drag-rect-cache.mjs +0 -19
- package/esm2022/domain/f-canvas/add-canvas-to-store/add-canvas-to-store.execution.mjs +0 -25
- package/esm2022/domain/f-canvas/center-group-or-node/center-group-or-node.execution.mjs +0 -46
- package/esm2022/domain/f-canvas/fit-to-flow/fit-to-flow.execution.mjs +0 -58
- package/esm2022/domain/f-canvas/get-canvas/get-canvas-request.mjs +0 -4
- package/esm2022/domain/f-canvas/get-canvas/get-canvas.execution.mjs +0 -29
- package/esm2022/domain/f-canvas/get-canvas/index.mjs +0 -3
- package/esm2022/domain/f-canvas/input-canvas-position/input-canvas-position.execution.mjs +0 -35
- package/esm2022/domain/f-canvas/input-canvas-scale/input-canvas-scale.execution.mjs +0 -30
- package/esm2022/domain/f-canvas/redraw-canvas-with-animation/redraw-canvas-with-animation.execution.mjs +0 -40
- package/esm2022/domain/f-canvas/remove-canvas-from-store/remove-canvas-from-store.execution.mjs +0 -25
- package/esm2022/domain/f-canvas/reset-scale/reset-scale.execution.mjs +0 -30
- package/esm2022/domain/f-canvas/reset-scale-and-center/reset-scale-and-center.execution.mjs +0 -50
- package/esm2022/domain/f-canvas/update-scale/update-scale.execution.mjs +0 -36
- package/esm2022/domain/f-connectors/find-connectable-connector-using-priority-and-position/find-connectable-connector-using-priority-and-position.execution.mjs +0 -101
- package/esm2022/domain/f-connectors/find-connectable-connector-using-priority-and-position/find-connectable-connector-using-priority-and-position.request.mjs +0 -10
- package/esm2022/domain/f-draggable/add-dnd-to-store/add-dnd-to-store.execution.mjs +0 -25
- package/esm2022/domain/f-draggable/initialize-drag-sequence/initialize-drag-sequence.execution.mjs +0 -25
- package/esm2022/domain/f-draggable/on-pointer-move/on-pointer-move.execution.mjs +0 -46
- package/esm2022/domain/f-draggable/prepare-drag-sequence/prepare-drag-sequence.execution.mjs +0 -30
- package/esm2022/domain/f-draggable/remove-dnd-from-store/remove-dnd-from-store.execution.mjs +0 -25
- package/esm2022/domain/f-flow/add-flow-to-store/add-flow-to-store.execution.mjs +0 -25
- package/esm2022/domain/f-flow/get-flow/get-flow.execution.mjs +0 -29
- package/esm2022/domain/f-flow/remove-flow-from-store/remove-flow-from-store.execution.mjs +0 -25
- package/esm2022/domain/f-node/calculate-nodes-bounding-box/calculate-nodes-bounding-box.request.mjs +0 -4
- package/esm2022/domain/f-node/calculate-nodes-bounding-box-normalized-position/calculate-nodes-bounding-box-normalized-position.request.mjs +0 -8
- package/esm2022/domain/f-node/get-child-node-ids/get-child-node-ids.request.mjs +0 -8
- package/esm2022/domain/f-node/get-node-padding/get-node-padding.request.mjs +0 -10
- package/esm2022/domain/f-node/get-parent-nodes/get-parent-nodes.request.mjs +0 -8
- package/esm2022/domain/f-selection/clear-selection/clear-selection.execution.mjs +0 -27
- package/esm2022/domain/f-selection/clear-selection/clear-selection.request.mjs +0 -4
- package/esm2022/domain/f-selection/get-current-selection/get-current-selection.execution.mjs +0 -44
- package/esm2022/domain/f-selection/get-current-selection/get-current-selection.request.mjs +0 -4
- package/esm2022/domain/f-selection/select/index.mjs +0 -3
- package/esm2022/domain/f-selection/select/select.execution.mjs +0 -45
- package/esm2022/domain/f-selection/select/select.request.mjs +0 -12
- package/esm2022/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.execution.mjs +0 -36
- package/esm2022/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.request.mjs +0 -8
- package/esm2022/domain/get-element-rounded-rect/get-element-rounded-rect-request.mjs +0 -8
- package/esm2022/domain/get-element-rounded-rect/get-element-rounded-rect.execution.mjs +0 -36
- package/esm2022/domain/get-element-rounded-rect/index.mjs +0 -3
- package/esm2022/domain/get-normalized-connector-rect/get-normalized-connector-rect.execution.mjs +0 -54
- package/esm2022/domain/get-normalized-element-rect/get-normalized-element-rect.execution.mjs +0 -53
- package/esm2022/domain/get-normalized-point/get-normalized-point.execution.mjs +0 -56
- package/esm2022/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.execution.mjs +0 -61
- package/esm2022/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.request.mjs +0 -8
- package/esm2022/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.execution.mjs +0 -65
- package/esm2022/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.request.mjs +0 -4
- package/esm2022/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.execution.mjs +0 -67
- package/esm2022/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.request.mjs +0 -8
- package/esm2022/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.execution.mjs +0 -26
- package/esm2022/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.request.mjs +0 -10
- package/esm2022/f-draggable/f-node-resize/apply-child-resize-constraints/apply-child-resize-constraints-request.mjs +0 -10
- package/esm2022/f-draggable/f-node-resize/apply-child-resize-constraints/apply-child-resize-constraints.mjs +0 -57
- package/esm2022/f-draggable/f-node-resize/apply-child-resize-constraints/index.mjs +0 -3
- package/esm2022/f-draggable/f-node-resize/apply-parent-resize-constraints/apply-parent-resize-constraints-request.mjs +0 -10
- package/esm2022/f-draggable/f-node-resize/apply-parent-resize-constraints/apply-parent-resize-constraints.mjs +0 -147
- package/esm2022/f-draggable/f-node-resize/apply-parent-resize-constraints/index.mjs +0 -3
- package/esm2022/f-draggable/f-node-resize/calculate-changed-rect-from-difference/calculate-changed-rect-from-difference-request.mjs +0 -14
- package/esm2022/f-draggable/f-node-resize/calculate-changed-rect-from-difference/calculate-changed-rect-from-difference.mjs +0 -55
- package/esm2022/f-draggable/f-node-resize/calculate-changed-rect-from-difference/index.mjs +0 -3
- package/esm2022/f-draggable/f-node-resize/calculate-direct-children-union-rect/calculate-direct-children-union-rect-request.mjs +0 -10
- package/esm2022/f-draggable/f-node-resize/calculate-direct-children-union-rect/calculate-direct-children-union-rect.mjs +0 -38
- package/esm2022/f-draggable/f-node-resize/calculate-direct-children-union-rect/index.mjs +0 -3
- package/esm2022/f-draggable/f-node-resize/calculate-resize-limits/calculate-resize-limits-request.mjs +0 -10
- package/esm2022/f-draggable/f-node-resize/calculate-resize-limits/calculate-resize-limits.mjs +0 -69
- package/esm2022/f-draggable/f-node-resize/calculate-resize-limits/index.mjs +0 -3
- package/esm2022/f-draggable/f-node-resize/constraint/i-resize-constraint.mjs +0 -2
- package/esm2022/f-draggable/f-node-resize/constraint/i-resize-limit.mjs +0 -2
- package/esm2022/f-draggable/f-node-resize/constraint/i-resize-limits.mjs +0 -2
- package/esm2022/f-draggable/f-node-resize/constraint/i-resize-overflow.mjs +0 -2
- package/esm2022/f-draggable/f-node-resize/constraint/index.mjs +0 -5
- package/esm2022/f-draggable/f-node-resize/i-node-resize-event-data.mjs +0 -2
- package/esm2022/f-draggable/f-node-resize/index.mjs +0 -13
- package/esm2022/f-draggable/f-node-resize/node-resize.drag-handler.mjs +0 -66
- package/esm2022/f-draggable/f-node-resize/providers.mjs +0 -17
- package/esm2022/f-draggable/f-node-resize/resize-direction.mjs +0 -12
- package/esm2022/f-draggable/f-node-resize/resize-finalize/index.mjs +0 -3
- package/esm2022/f-draggable/f-node-resize/resize-finalize/node-resize-finalize-request.mjs +0 -8
- package/esm2022/f-draggable/f-node-resize/resize-finalize/node-resize-finalize.mjs +0 -29
- package/esm2022/f-draggable/f-node-resize/resize-preparation/index.mjs +0 -3
- package/esm2022/f-draggable/f-node-resize/resize-preparation/node-resize-preparation-request.mjs +0 -10
- package/esm2022/f-draggable/f-node-resize/resize-preparation/node-resize-preparation.mjs +0 -69
- package/esm2022/f-draggable/f-node-rotate/calculate-difference-after-rotation.mjs +0 -19
- package/esm2022/f-draggable/f-node-rotate/f-node-rotate.drag-handler.mjs +0 -75
- package/esm2022/f-draggable/f-node-rotate/i-node-rotate-event-data.mjs +0 -2
- package/esm2022/f-draggable/f-node-rotate/index.mjs +0 -6
- package/esm2022/f-draggable/f-node-rotate/providers.mjs +0 -7
- package/esm2022/f-draggable/f-node-rotate/rotate-finalize/f-node-rotate-finalize.execution.mjs +0 -32
- package/esm2022/f-draggable/f-node-rotate/rotate-finalize/f-node-rotate-finalize.request.mjs +0 -8
- package/esm2022/f-draggable/f-node-rotate/rotate-finalize/index.mjs +0 -3
- package/esm2022/f-draggable/f-node-rotate/rotate-preparation/f-node-rotate-preparation.execution.mjs +0 -94
- package/esm2022/f-draggable/f-node-rotate/rotate-preparation/f-node-rotate-preparation.request.mjs +0 -10
- package/esm2022/f-draggable/f-node-rotate/rotate-preparation/index.mjs +0 -3
- package/esm2022/f-draggable/i-f-drag-and-drop-plugin.mjs +0 -4
- package/esm2022/f-draggable/pinch-to-zoom/finalize/index.mjs +0 -3
- package/esm2022/f-draggable/pinch-to-zoom/finalize/pinch-to-zoom-finalize-request.mjs +0 -8
- package/esm2022/f-draggable/pinch-to-zoom/finalize/pinch-to-zoom-finalize.mjs +0 -31
- package/esm2022/f-draggable/pinch-to-zoom/preparation/index.mjs +0 -3
- package/esm2022/f-draggable/pinch-to-zoom/preparation/pinch-to-zoom-preparation-request.mjs +0 -8
- package/esm2022/f-draggable/pinch-to-zoom/preparation/pinch-to-zoom-preparation.mjs +0 -47
- package/esm2022/f-external-item/domain/constraint/external-rect-constraint.mjs +0 -44
- package/esm2022/f-external-item/domain/constraint/index.mjs +0 -2
- package/esm2022/f-external-item/domain/create-placeholder/f-external-item-create-placeholder.execution.mjs +0 -41
- package/esm2022/f-external-item/domain/create-placeholder/f-external-item-create-placeholder.request.mjs +0 -8
- package/esm2022/f-external-item/domain/create-placeholder/index.mjs +0 -3
- package/esm2022/f-external-item/domain/create-preview/f-external-item-create-preview.execution.mjs +0 -52
- package/esm2022/f-external-item/domain/create-preview/f-external-item-create-preview.request.mjs +0 -8
- package/esm2022/f-external-item/domain/create-preview/index.mjs +0 -3
- package/esm2022/f-external-item/domain/f-create-node.event.mjs +0 -13
- package/esm2022/f-external-item/domain/f-external-item.drag-handler.mjs +0 -104
- package/esm2022/f-external-item/domain/finalize/f-external-item-finalize.execution.mjs +0 -75
- package/esm2022/f-external-item/domain/finalize/f-external-item-finalize.request.mjs +0 -8
- package/esm2022/f-external-item/domain/finalize/index.mjs +0 -3
- package/esm2022/f-external-item/domain/i-f-external-item-drag-result.mjs +0 -2
- package/esm2022/f-external-item/domain/index.mjs +0 -11
- package/esm2022/f-external-item/domain/preparation/f-external-item-preparation.execution.mjs +0 -56
- package/esm2022/f-external-item/domain/preparation/f-external-item-preparation.request.mjs +0 -10
- package/esm2022/f-external-item/domain/preparation/index.mjs +0 -3
- package/esm2022/f-external-item/domain/prevent-default-is-external-item/index.mjs +0 -3
- package/esm2022/f-external-item/domain/prevent-default-is-external-item/prevent-default-is-external-item.execution.mjs +0 -37
- package/esm2022/f-external-item/domain/prevent-default-is-external-item/prevent-default-is-external-item.request.mjs +0 -8
- package/esm2022/f-external-item/domain/providers.mjs +0 -13
- package/esm2022/f-external-item/f-external-item-placeholder.directive.mjs +0 -26
- package/esm2022/f-external-item/f-external-item-preview.directive.mjs +0 -26
- package/esm2022/f-external-item/f-external-item-token.mjs +0 -3
- package/esm2022/f-external-item/f-external-item.directive.mjs +0 -59
- package/esm2022/f-minimap/domain/calculate-flow-point-from-minimap-point/calculate-flow-point-from-minimap-point.execution.mjs +0 -39
- package/esm2022/f-minimap/domain/calculate-flow-point-from-minimap-point/calculate-flow-point-from-minimap-point.request.mjs +0 -14
- package/esm2022/f-minimap/domain/calculate-flow-point-from-minimap-point/index.mjs +0 -3
- package/esm2022/f-minimap/domain/f-minimap-data.mjs +0 -12
- package/esm2022/f-minimap/domain/f-minimap.drag-handler.mjs +0 -45
- package/esm2022/f-minimap/domain/index.mjs +0 -10
- package/esm2022/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/i-f-minimap-scale-and-view-box.mjs +0 -2
- package/esm2022/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/index.mjs +0 -4
- package/esm2022/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/minimap-calculate-svg-scale-and-view-box.execution.mjs +0 -73
- package/esm2022/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/minimap-calculate-svg-scale-and-view-box.request.mjs +0 -10
- package/esm2022/f-minimap/domain/minimap-calculate-view-box/index.mjs +0 -3
- package/esm2022/f-minimap/domain/minimap-calculate-view-box/minimap-calculate-view-box.execution.mjs +0 -42
- package/esm2022/f-minimap/domain/minimap-calculate-view-box/minimap-calculate-view-box.request.mjs +0 -4
- package/esm2022/f-minimap/domain/minimap-drag-finalize/index.mjs +0 -4
- package/esm2022/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.execution.mjs +0 -32
- package/esm2022/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.request.mjs +0 -8
- package/esm2022/f-minimap/domain/minimap-drag-finalize/providers.mjs +0 -5
- package/esm2022/f-minimap/domain/minimap-drag-preparation/index.mjs +0 -4
- package/esm2022/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.execution.mjs +0 -54
- package/esm2022/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.request.mjs +0 -10
- package/esm2022/f-minimap/domain/minimap-drag-preparation/providers.mjs +0 -5
- package/esm2022/f-minimap/domain/minimap-draw-nodes/index.mjs +0 -3
- package/esm2022/f-minimap/domain/minimap-draw-nodes/minimap-draw-nodes.execution.mjs +0 -70
- package/esm2022/f-minimap/domain/minimap-draw-nodes/minimap-draw-nodes.request.mjs +0 -4
- package/esm2022/f-minimap/domain/providers.mjs +0 -15
- package/esm2022/f-storage/features/listen-count-changes/index.mjs +0 -3
- package/esm2022/f-storage/features/listen-count-changes/listen-count-changes-request.mjs +0 -4
- package/esm2022/f-storage/features/listen-count-changes/listen-count-changes.mjs +0 -23
- package/esm2022/f-storage/features/listen-data-changed/index.mjs +0 -3
- package/esm2022/f-storage/features/listen-data-changed/listen-data-changes-request.mjs +0 -4
- package/esm2022/f-storage/features/listen-data-changed/listen-data-changes.mjs +0 -23
- package/esm2022/f-storage/features/notify-data-changed/index.mjs +0 -3
- package/esm2022/f-storage/features/notify-data-changed/notify-data-changed-request.mjs +0 -4
- package/esm2022/f-storage/features/notify-data-changed/notify-data-changed.mjs +0 -22
- package/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.execution.d.ts +0 -15
- package/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.execution.d.ts +0 -10
- package/f-draggable/f-node-resize/apply-parent-resize-constraints/apply-parent-resize-constraints-request.d.ts +0 -8
- package/f-draggable/f-node-resize/apply-parent-resize-constraints/apply-parent-resize-constraints.d.ts +0 -36
- package/f-draggable/f-node-resize/calculate-changed-rect-from-difference/calculate-changed-rect-from-difference.d.ts +0 -11
- package/f-draggable/f-node-resize/calculate-resize-limits/calculate-resize-limits-request.d.ts +0 -8
- package/f-draggable/f-node-resize/constraint/i-resize-constraint.d.ts +0 -7
- package/f-draggable/f-node-resize/constraint/i-resize-limit.d.ts +0 -7
- package/f-draggable/f-node-resize/constraint/i-resize-limits.d.ts +0 -5
- package/f-draggable/f-node-resize/constraint/index.d.ts +0 -4
- package/f-draggable/f-node-resize/i-node-resize-event-data.d.ts +0 -3
- package/f-draggable/f-node-resize/index.d.ts +0 -12
- package/f-draggable/f-node-resize/node-resize.drag-handler.d.ts +0 -29
- package/f-draggable/f-node-resize/providers.d.ts +0 -8
- package/f-draggable/f-node-resize/resize-finalize/index.d.ts +0 -2
- package/f-draggable/f-node-resize/resize-finalize/node-resize-finalize-request.d.ts +0 -6
- package/f-draggable/f-node-resize/resize-finalize/node-resize-finalize.d.ts +0 -10
- package/f-draggable/f-node-resize/resize-preparation/index.d.ts +0 -2
- package/f-draggable/f-node-resize/resize-preparation/node-resize-preparation-request.d.ts +0 -8
- package/f-draggable/f-node-resize/resize-preparation/node-resize-preparation.d.ts +0 -21
- package/f-draggable/f-node-rotate/f-node-rotate.drag-handler.d.ts +0 -39
- package/f-draggable/f-node-rotate/i-node-rotate-event-data.d.ts +0 -3
- package/f-draggable/f-node-rotate/index.d.ts +0 -5
- package/f-draggable/f-node-rotate/providers.d.ts +0 -3
- package/f-draggable/f-node-rotate/rotate-finalize/f-node-rotate-finalize.execution.d.ts +0 -10
- package/f-draggable/f-node-rotate/rotate-finalize/f-node-rotate-finalize.request.d.ts +0 -6
- package/f-draggable/f-node-rotate/rotate-finalize/index.d.ts +0 -2
- package/f-draggable/f-node-rotate/rotate-preparation/f-node-rotate-preparation.execution.d.ts +0 -23
- package/f-draggable/f-node-rotate/rotate-preparation/f-node-rotate-preparation.request.d.ts +0 -8
- package/f-draggable/f-node-rotate/rotate-preparation/index.d.ts +0 -2
- package/f-draggable/i-f-drag-and-drop-plugin.d.ts +0 -10
- package/f-external-item/domain/create-placeholder/f-external-item-create-placeholder.execution.d.ts +0 -13
- package/f-external-item/domain/create-placeholder/f-external-item-create-placeholder.request.d.ts +0 -6
- package/f-external-item/domain/create-placeholder/index.d.ts +0 -2
- package/f-external-item/domain/create-preview/f-external-item-create-preview.execution.d.ts +0 -14
- package/f-external-item/domain/create-preview/f-external-item-create-preview.request.d.ts +0 -6
- package/f-external-item/domain/create-preview/index.d.ts +0 -2
- package/f-external-item/domain/f-create-node.event.d.ts +0 -8
- package/f-external-item/domain/f-external-item.drag-handler.d.ts +0 -35
- package/f-external-item/domain/finalize/f-external-item-finalize.execution.d.ts +0 -22
- package/f-external-item/domain/finalize/f-external-item-finalize.request.d.ts +0 -6
- package/f-external-item/domain/finalize/index.d.ts +0 -2
- package/f-external-item/domain/i-f-external-item-drag-result.d.ts +0 -5
- package/f-external-item/domain/index.d.ts +0 -10
- package/f-external-item/domain/preparation/f-external-item-preparation.execution.d.ts +0 -18
- package/f-external-item/domain/preparation/f-external-item-preparation.request.d.ts +0 -8
- package/f-external-item/domain/preparation/index.d.ts +0 -2
- package/f-external-item/domain/prevent-default-is-external-item/index.d.ts +0 -2
- package/f-external-item/domain/prevent-default-is-external-item/prevent-default-is-external-item.execution.d.ts +0 -10
- package/f-external-item/domain/prevent-default-is-external-item/prevent-default-is-external-item.request.d.ts +0 -5
- package/f-external-item/domain/providers.d.ts +0 -6
- package/f-external-item/f-external-item-placeholder.directive.d.ts +0 -10
- package/f-external-item/f-external-item-preview.directive.d.ts +0 -10
- package/f-external-item/f-external-item-token.d.ts +0 -3
- package/f-external-item/f-external-item.directive.d.ts +0 -20
- package/f-minimap/domain/calculate-flow-point-from-minimap-point/calculate-flow-point-from-minimap-point.execution.d.ts +0 -16
- package/f-minimap/domain/calculate-flow-point-from-minimap-point/calculate-flow-point-from-minimap-point.request.d.ts +0 -10
- package/f-minimap/domain/calculate-flow-point-from-minimap-point/index.d.ts +0 -2
- package/f-minimap/domain/f-minimap-data.d.ts +0 -7
- package/f-minimap/domain/f-minimap.drag-handler.d.ts +0 -22
- package/f-minimap/domain/index.d.ts +0 -9
- package/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/i-f-minimap-scale-and-view-box.d.ts +0 -5
- package/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/index.d.ts +0 -3
- package/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/minimap-calculate-svg-scale-and-view-box.execution.d.ts +0 -22
- package/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/minimap-calculate-svg-scale-and-view-box.request.d.ts +0 -6
- package/f-minimap/domain/minimap-calculate-view-box/index.d.ts +0 -2
- package/f-minimap/domain/minimap-calculate-view-box/minimap-calculate-view-box.execution.d.ts +0 -14
- package/f-minimap/domain/minimap-calculate-view-box/minimap-calculate-view-box.request.d.ts +0 -3
- package/f-minimap/domain/minimap-drag-finalize/index.d.ts +0 -3
- package/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.execution.d.ts +0 -10
- package/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.request.d.ts +0 -6
- package/f-minimap/domain/minimap-drag-finalize/providers.d.ts +0 -2
- package/f-minimap/domain/minimap-drag-preparation/index.d.ts +0 -3
- package/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.execution.d.ts +0 -15
- package/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.request.d.ts +0 -8
- package/f-minimap/domain/minimap-drag-preparation/providers.d.ts +0 -2
- package/f-minimap/domain/minimap-draw-nodes/index.d.ts +0 -2
- package/f-minimap/domain/minimap-draw-nodes/minimap-draw-nodes.execution.d.ts +0 -19
- package/f-minimap/domain/providers.d.ts +0 -5
- package/f-storage/features/listen-count-changes/index.d.ts +0 -2
- package/f-storage/features/listen-count-changes/listen-count-changes-request.d.ts +0 -3
- package/f-storage/features/listen-count-changes/listen-count-changes.d.ts +0 -10
- package/f-storage/features/listen-data-changed/index.d.ts +0 -2
- package/f-storage/features/listen-data-changed/listen-data-changes-request.d.ts +0 -3
- package/f-storage/features/listen-data-changed/listen-data-changes.d.ts +0 -10
- package/f-storage/features/notify-data-changed/index.d.ts +0 -2
- package/f-storage/features/notify-data-changed/notify-data-changed-request.d.ts +0 -3
- package/f-storage/features/notify-data-changed/notify-data-changed.d.ts +0 -9
- /package/domain/f-connectors/find-connectable-connector-using-priority-and-position/{find-connectable-connector-using-priority-and-position.request.d.ts → find-connectable-connector-using-priority-and-position-request.d.ts} +0 -0
- /package/domain/f-node/calculate-nodes-bounding-box/{calculate-nodes-bounding-box.request.d.ts → calculate-nodes-bounding-box-request.d.ts} +0 -0
- /package/domain/f-node/calculate-nodes-bounding-box-normalized-position/{calculate-nodes-bounding-box-normalized-position.request.d.ts → calculate-nodes-bounding-box-normalized-position-request.d.ts} +0 -0
- /package/domain/f-node/get-child-node-ids/{get-child-node-ids.request.d.ts → get-child-node-ids-request.d.ts} +0 -0
- /package/domain/f-node/get-node-padding/{get-node-padding.request.d.ts → get-node-padding-request.d.ts} +0 -0
- /package/domain/f-node/get-parent-nodes/{get-parent-nodes.request.d.ts → get-parent-nodes-request.d.ts} +0 -0
- /package/domain/f-selection/clear-selection/{clear-selection.request.d.ts → clear-selection-request.d.ts} +0 -0
- /package/domain/f-selection/get-current-selection/{get-current-selection.request.d.ts → get-current-selection-request.d.ts} +0 -0
- /package/domain/f-selection/{select/select.request.d.ts → select-items/select-request.d.ts} +0 -0
- /package/{f-minimap/domain/minimap-draw-nodes/minimap-draw-nodes.request.d.ts → domain/minimap/minimap-draw-nodes/minimap-draw-nodes-request.d.ts} +0 -0
- /package/domain/sort-item-layers/sort-node-layers-by-groups/{sort-node-layers.request.d.ts → sort-node-layers-request.d.ts} +0 -0
- /package/f-draggable/domain/get-normalized-parent-node-rect/{get-normalized-parent-node-rect.request.d.ts → get-normalized-parent-node-rect-request.d.ts} +0 -0
- /package/f-draggable/domain/is-array-has-parent-node/{is-array-has-parent-node.request.d.ts → is-array-has-parent-node-request.d.ts} +0 -0
- /package/{f-external-item/domain/constraint → f-draggable/drag-external-item/constraints}/external-rect-constraint.d.ts +0 -0
- /package/{f-external-item/domain/constraint → f-draggable/drag-external-item/constraints}/index.d.ts +0 -0
- /package/f-draggable/pinch-to-zoom/{finalize → pinch-to-zoom-finalize}/index.d.ts +0 -0
- /package/f-draggable/pinch-to-zoom/{finalize → pinch-to-zoom-finalize}/pinch-to-zoom-finalize-request.d.ts +0 -0
- /package/f-draggable/pinch-to-zoom/{finalize → pinch-to-zoom-finalize}/pinch-to-zoom-finalize.d.ts +0 -0
- /package/f-draggable/pinch-to-zoom/{preparation → pinch-to-zoom-preparation}/index.d.ts +0 -0
- /package/f-draggable/pinch-to-zoom/{preparation → pinch-to-zoom-preparation}/pinch-to-zoom-preparation-request.d.ts +0 -0
- /package/f-draggable/pinch-to-zoom/{preparation → pinch-to-zoom-preparation}/pinch-to-zoom-preparation.d.ts +0 -0
- /package/f-draggable/{f-node-resize → resize-node}/apply-child-resize-constraints/apply-child-resize-constraints-request.d.ts +0 -0
- /package/f-draggable/{f-node-resize → resize-node}/apply-child-resize-constraints/apply-child-resize-constraints.d.ts +0 -0
- /package/f-draggable/{f-node-resize → resize-node}/apply-child-resize-constraints/index.d.ts +0 -0
- /package/f-draggable/{f-node-resize → resize-node}/apply-parent-resize-constraints/index.d.ts +0 -0
- /package/f-draggable/{f-node-resize → resize-node}/calculate-changed-rect-from-difference/calculate-changed-rect-from-difference-request.d.ts +0 -0
- /package/f-draggable/{f-node-resize → resize-node}/calculate-changed-rect-from-difference/index.d.ts +0 -0
- /package/f-draggable/{f-node-resize → resize-node}/calculate-direct-children-union-rect/calculate-direct-children-union-rect-request.d.ts +0 -0
- /package/f-draggable/{f-node-resize → resize-node}/calculate-direct-children-union-rect/calculate-direct-children-union-rect.d.ts +0 -0
- /package/f-draggable/{f-node-resize → resize-node}/calculate-direct-children-union-rect/index.d.ts +0 -0
- /package/f-draggable/{f-node-resize → resize-node}/calculate-resize-limits/calculate-resize-limits.d.ts +0 -0
- /package/f-draggable/{f-node-resize → resize-node}/calculate-resize-limits/index.d.ts +0 -0
- /package/f-draggable/{f-node-resize → resize-node}/constraint/i-resize-overflow.d.ts +0 -0
- /package/f-draggable/{f-node-resize → resize-node/constraint}/resize-direction.d.ts +0 -0
- /package/f-draggable/{f-node-rotate → rotate-node}/calculate-difference-after-rotation.d.ts +0 -0
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { SortNodeLayersRequest } from './sort-node-layers.request';
|
|
2
|
-
import { IExecution } from '@foblex/mediator';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Execution that sorts node layers by their parent nodes in the FCanvas.
|
|
6
|
-
* It retrieves all groups, sorts their children nodes based on their current order,
|
|
7
|
-
* and moves them to maintain the correct hierarchy.
|
|
8
|
-
*/
|
|
9
|
-
export declare class SortNodeLayersExecution implements IExecution<SortNodeLayersRequest, void> {
|
|
10
|
-
private readonly _store;
|
|
11
|
-
private readonly _mediator;
|
|
12
|
-
private readonly _browser;
|
|
13
|
-
private get _fCanvas();
|
|
14
|
-
private get _fGroupsContainer();
|
|
15
|
-
private get _fNodesContainer();
|
|
16
|
-
private get _fNodeElements();
|
|
17
|
-
handle(_request: SortNodeLayersRequest): void;
|
|
18
|
-
private _getGroups;
|
|
19
|
-
private _getSortedChildrenNodes;
|
|
20
|
-
private _getChildrenNodes;
|
|
21
|
-
private _moveChildrenNodes;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SortNodeLayersExecution, never>;
|
|
23
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SortNodeLayersExecution>;
|
|
24
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { RectExtensions } from '@foblex/2d';
|
|
2
|
-
export class DragRectCache {
|
|
3
|
-
static _cache = new WeakMap();
|
|
4
|
-
static fromElement(element) {
|
|
5
|
-
const rect = this._cache.get(element) || RectExtensions.fromElement(element);
|
|
6
|
-
this._cache.set(element, rect);
|
|
7
|
-
return rect;
|
|
8
|
-
}
|
|
9
|
-
static set(element) {
|
|
10
|
-
this._cache.set(element, RectExtensions.fromElement(element));
|
|
11
|
-
}
|
|
12
|
-
static invalidate(element) {
|
|
13
|
-
this._cache.delete(element);
|
|
14
|
-
}
|
|
15
|
-
static invalidateAll() {
|
|
16
|
-
this._cache = new WeakMap();
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJhZy1yZWN0LWNhY2hlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9kb21haW4vZHJhZy1yZWN0LWNhY2hlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBUyxjQUFjLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFFbkQsTUFBTSxPQUFPLGFBQWE7SUFDaEIsTUFBTSxDQUFDLE1BQU0sR0FBRyxJQUFJLE9BQU8sRUFBa0IsQ0FBQztJQUUvQyxNQUFNLENBQUMsV0FBVyxDQUFDLE9BQWlDO1FBQ3pELE1BQU0sSUFBSSxHQUFHLElBQUksQ0FBQyxNQUFNLENBQUMsR0FBRyxDQUFDLE9BQU8sQ0FBQyxJQUFJLGNBQWMsQ0FBQyxXQUFXLENBQUMsT0FBTyxDQUFDLENBQUM7UUFDN0UsSUFBSSxDQUFDLE1BQU0sQ0FBQyxHQUFHLENBQUMsT0FBTyxFQUFFLElBQUksQ0FBQyxD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XMuX2NhY2hlLnNldChlbGVtZW50LCBSZWN0RXh0ZW5zaW9ucy5mcm9tRWxlbWVudChlbGVtZW50KSk7XG4gIH1cblxuICBwdWJsaWMgc3RhdGljIGludmFsaWRhdGUoZWxlbWVudDogSFRNTEVsZW1lbnQgfCBTVkdFbGVtZW50KTogdm9pZCB7XG4gICAgdGhpcy5fY2FjaGUuZGVsZXRlKGVsZW1lbnQpO1xuICB9XG5cbiAgcHVibGljIHN0YXRpYyBpbnZhbGlkYXRlQWxsKCk6IHZvaWQge1xuICAgIHRoaXMuX2NhY2hlID0gbmV3IFdlYWtNYXA8RWxlbWVudCwgSVJlY3Q+KCk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
/**
|
|
8
|
-
* Execution that adds a canvas to the FComponentsStore.
|
|
9
|
-
*/
|
|
10
|
-
let AddCanvasToStoreExecution = class AddCanvasToStoreExecution {
|
|
11
|
-
_store = inject(FComponentsStore);
|
|
12
|
-
handle(request) {
|
|
13
|
-
this._store.fCanvas = request.fCanvas;
|
|
14
|
-
}
|
|
15
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AddCanvasToStoreExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AddCanvasToStoreExecution });
|
|
17
|
-
};
|
|
18
|
-
AddCanvasToStoreExecution = __decorate([
|
|
19
|
-
FExecutionRegister(AddCanvasToStoreRequest)
|
|
20
|
-
], AddCanvasToStoreExecution);
|
|
21
|
-
export { AddCanvasToStoreExecution };
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AddCanvasToStoreExecution, decorators: [{
|
|
23
|
-
type: Injectable
|
|
24
|
-
}] });
|
|
25
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRkLWNhbnZhcy10by1zdG9yZS5leGVjdXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RvbWFpbi9mLWNhbnZhcy9hZGQtY2FudmFzLXRvLXN0b3JlL2FkZC1jYW52YXMtdG8tc3RvcmUuZXhlY3V0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNuRCxPQUFPLEVBQUUsa0JBQWtCLEVBQWMsTUFBTSxrQkFBa0IsQ0FBQztBQUNsRSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQztBQUN4RSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQzs7QUFFdEQ7O0dBRUc7QUFHSSxJQUFNLHlCQUF5QixHQUEvQixNQUFNLHlCQUF5QjtJQUVuQixNQUFNLEdBQUcsTUFBTSxDQUFDLGdCQUFnQixDQUFDLENBQUM7SUFFNUMsTUFBTSxDQUFDLE9BQWdDO1FBQzVDLElBQUksQ0FBQyxNQUFNLENBQUMsT0FBTyxHQUFHLE9BQU8sQ0FBQyxPQUFPLENBQUM7SUFDeEMsQ0FBQzt3R0FOVSx5QkFBeUI7NEdBQXpCLHlCQUF5Qjs7QUFBekIseUJBQXlCO0lBRHJDLGtCQUFrQixDQUFDLHVCQUF1QixDQUFDO0dBQy9CLHlCQUF5QixDQU9yQzs7NEZBUFkseUJBQXlCO2tCQUZyQyxVQUFVIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgaW5qZWN0LCBJbmplY3RhYmxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBGRXhlY3V0aW9uUmVnaXN0ZXIsIElFeGVjdXRpb24gfSBmcm9tICdAZm9ibGV4L21lZGlhdG9yJztcbmltcG9ydCB7IEFkZENhbnZhc1RvU3RvcmVSZXF1ZXN0IH0gZnJvbSAnLi9hZGQtY2FudmFzLXRvLXN0b3JlLXJlcXVlc3QnO1xuaW1wb3J0IHsgRkNvbXBvbmVudHNTdG9yZSB9IGZyb20gJy4uLy4uLy4uL2Ytc3RvcmFnZSc7XG5cbi8qKlxuICogRXhlY3V0aW9uIHRoYXQgYWRkcyBhIGNhbnZhcyB0byB0aGUgRkNvbXBvbmVudHNTdG9yZS5cbiAqL1xuQEluamVjdGFibGUoKVxuQEZFeGVjdXRpb25SZWdpc3RlcihBZGRDYW52YXNUb1N0b3JlUmVxdWVzdClcbmV4cG9ydCBjbGFzcyBBZGRDYW52YXNUb1N0b3JlRXhlY3V0aW9uIGltcGxlbWVudHMgSUV4ZWN1dGlvbjxBZGRDYW52YXNUb1N0b3JlUmVxdWVzdCwgdm9pZD4ge1xuXG4gIHByaXZhdGUgcmVhZG9ubHkgX3N0b3JlID0gaW5qZWN0KEZDb21wb25lbnRzU3RvcmUpO1xuXG4gIHB1YmxpYyBoYW5kbGUocmVxdWVzdDogQWRkQ2FudmFzVG9TdG9yZVJlcXVlc3QpOiB2b2lkIHtcbiAgICB0aGlzLl9zdG9yZS5mQ2FudmFzID0gcmVxdWVzdC5mQ2FudmFzO1xuICB9XG59XG4iXX0=
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { inject, Injectable } from '@angular/core';
|
|
3
|
-
import { CenterGroupOrNodeRequest } from './center-group-or-node-request';
|
|
4
|
-
import { FExecutionRegister, FMediator } from '@foblex/mediator';
|
|
5
|
-
import { PointExtensions, RectExtensions } from '@foblex/2d';
|
|
6
|
-
import { FComponentsStore } from '../../../f-storage';
|
|
7
|
-
import { RedrawCanvasWithAnimationRequest } from '../../../domain';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* Execution that centers a group or a node inside the flow.
|
|
11
|
-
*/
|
|
12
|
-
let CenterGroupOrNodeExecution = class CenterGroupOrNodeExecution {
|
|
13
|
-
_store = inject(FComponentsStore);
|
|
14
|
-
_mediator = inject(FMediator);
|
|
15
|
-
get _transform() {
|
|
16
|
-
return this._store.transform;
|
|
17
|
-
}
|
|
18
|
-
handle({ id, animated }) {
|
|
19
|
-
const node = this._store.nodes.get(id);
|
|
20
|
-
if (!node) {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
this.toCenter(this._getNodeRect(node), this._getFlowRect(), node._position);
|
|
24
|
-
this._mediator.execute(new RedrawCanvasWithAnimationRequest(animated));
|
|
25
|
-
}
|
|
26
|
-
toCenter(fNodeRect, fFlowRect, position) {
|
|
27
|
-
this._transform.scaledPosition = PointExtensions.initialize();
|
|
28
|
-
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
|
-
}
|
|
30
|
-
_getNodeRect(fNode) {
|
|
31
|
-
return RectExtensions.fromElement(fNode.hostElement);
|
|
32
|
-
}
|
|
33
|
-
_getFlowRect() {
|
|
34
|
-
return RectExtensions.fromElement(this._store.flowHost);
|
|
35
|
-
}
|
|
36
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CenterGroupOrNodeExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
37
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CenterGroupOrNodeExecution });
|
|
38
|
-
};
|
|
39
|
-
CenterGroupOrNodeExecution = __decorate([
|
|
40
|
-
FExecutionRegister(CenterGroupOrNodeRequest)
|
|
41
|
-
], CenterGroupOrNodeExecution);
|
|
42
|
-
export { CenterGroupOrNodeExecution };
|
|
43
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CenterGroupOrNodeExecution, decorators: [{
|
|
44
|
-
type: Injectable
|
|
45
|
-
}] });
|
|
46
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2VudGVyLWdyb3VwLW9yLW5vZGUuZXhlY3V0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9kb21haW4vZi1jYW52YXMvY2VudGVyLWdyb3VwLW9yLW5vZGUvY2VudGVyLWdyb3VwLW9yLW5vZGUuZXhlY3V0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNuRCxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSxnQ0FBZ0MsQ0FBQztBQUMxRSxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsU0FBUyxFQUFjLE1BQU0sa0JBQWtCLENBQUM7QUFDN0UsT0FBTyxFQUFrQyxlQUFlLEVBQUUsY0FBYyxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBQzdGLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBRXRELE9BQU8sRUFBRSxnQ0FBZ0MsRUFBRSxNQUFNLGlCQUFpQixDQUFDOztBQUVuRTs7R0FFRztBQU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/core';
|
|
3
|
-
import { FitToFlowRequest } from './fit-to-flow-request';
|
|
4
|
-
import { FExecutionRegister, FMediator } from '@foblex/mediator';
|
|
5
|
-
import { PointExtensions, RectExtensions } from '@foblex/2d';
|
|
6
|
-
import { FComponentsStore } from '../../../f-storage';
|
|
7
|
-
import { CalculateNodesBoundingBoxRequest, RedrawCanvasWithAnimationRequest, } from '../../../domain';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* Fits all nodes and groups to the flow by scaling and positioning them
|
|
11
|
-
*/
|
|
12
|
-
let FitToFlowExecution = class FitToFlowExecution {
|
|
13
|
-
_store = inject(FComponentsStore);
|
|
14
|
-
get _transform() {
|
|
15
|
-
return this._store.transform;
|
|
16
|
-
}
|
|
17
|
-
_fMediator = inject(FMediator);
|
|
18
|
-
handle(request) {
|
|
19
|
-
const fNodesRect = this._fMediator.execute(new CalculateNodesBoundingBoxRequest()) ||
|
|
20
|
-
RectExtensions.initialize();
|
|
21
|
-
if (fNodesRect.width === 0 || fNodesRect.height === 0) {
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
this.fitToParent(fNodesRect, RectExtensions.fromElement(this._store.flowHost), this._store.nodes.getAll().map((x) => x._position), request.toCenter);
|
|
25
|
-
this._fMediator.execute(new RedrawCanvasWithAnimationRequest(request.animated));
|
|
26
|
-
}
|
|
27
|
-
fitToParent(rect, parentRect, points, toCenter) {
|
|
28
|
-
this._transform.scaledPosition = PointExtensions.initialize();
|
|
29
|
-
this._transform.position = this._getZeroPositionWithoutScale(points);
|
|
30
|
-
const itemsContainerWidth = rect.width / this._transform.scale + toCenter.x;
|
|
31
|
-
const itemsContainerHeight = rect.height / this._transform.scale + toCenter.y;
|
|
32
|
-
if (itemsContainerWidth > parentRect.width ||
|
|
33
|
-
itemsContainerHeight > parentRect.height ||
|
|
34
|
-
(itemsContainerWidth < parentRect.width && itemsContainerHeight < parentRect.height)) {
|
|
35
|
-
this._transform.scale = Math.min(parentRect.width / itemsContainerWidth, parentRect.height / itemsContainerHeight);
|
|
36
|
-
}
|
|
37
|
-
const newX = (parentRect.width - itemsContainerWidth * this._transform.scale) / 2 -
|
|
38
|
-
this._transform.position.x * this._transform.scale;
|
|
39
|
-
const newY = (parentRect.height - itemsContainerHeight * this._transform.scale) / 2 -
|
|
40
|
-
this._transform.position.y * this._transform.scale;
|
|
41
|
-
this._transform.position = PointExtensions.initialize(newX + (toCenter.x / 2) * this._transform.scale, newY + (toCenter.y / 2) * this._transform.scale);
|
|
42
|
-
}
|
|
43
|
-
_getZeroPositionWithoutScale(points) {
|
|
44
|
-
const xPoint = points.length ? Math.min(...points.map((point) => point.x)) : 0;
|
|
45
|
-
const yPoint = points.length ? Math.min(...points.map((point) => point.y)) : 0;
|
|
46
|
-
return PointExtensions.initialize(xPoint, yPoint);
|
|
47
|
-
}
|
|
48
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FitToFlowExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
49
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FitToFlowExecution });
|
|
50
|
-
};
|
|
51
|
-
FitToFlowExecution = __decorate([
|
|
52
|
-
FExecutionRegister(FitToFlowRequest)
|
|
53
|
-
], FitToFlowExecution);
|
|
54
|
-
export { FitToFlowExecution };
|
|
55
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FitToFlowExecution, decorators: [{
|
|
56
|
-
type: Injectable
|
|
57
|
-
}] });
|
|
58
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZml0LXRvLWZsb3cuZXhlY3V0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy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lbnRlci54IC8gMikgKiB0aGlzLl90cmFuc2Zvcm0uc2NhbGUsXG4gICAgICBuZXdZICsgKHRvQ2VudGVyLnkgLyAyKSAqIHRoaXMuX3RyYW5zZm9ybS5zY2FsZSxcbiAgICApO1xuICB9XG5cbiAgcHJpdmF0ZSBfZ2V0WmVyb1Bvc2l0aW9uV2l0aG91dFNjYWxlKHBvaW50czogSVBvaW50W10pOiBJUG9pbnQge1xuICAgIGNvbnN0IHhQb2ludCA9IHBvaW50cy5sZW5ndGggPyBNYXRoLm1pbiguLi5wb2ludHMubWFwKChwb2ludCkgPT4gcG9pbnQueCkpIDogMDtcbiAgICBjb25zdCB5UG9pbnQgPSBwb2ludHMubGVuZ3RoID8gTWF0aC5taW4oLi4ucG9pbnRzLm1hcCgocG9pbnQpID0+IHBvaW50LnkpKSA6IDA7XG5cbiAgICByZXR1cm4gUG9pbnRFeHRlbnNpb25zLmluaXRpYWxpemUoeFBvaW50LCB5UG9pbnQpO1xuICB9XG59XG4iXX0=
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export class GetCanvasRequest {
|
|
2
|
-
static fToken = Symbol('GetCanvasRequest');
|
|
3
|
-
}
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0LWNhbnZhcy1yZXF1ZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9kb21haW4vZi1jYW52YXMvZ2V0LWNhbnZhcy9nZXQtY2FudmFzLXJlcXVlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxPQUFPLGdCQUFnQjtJQUMzQixNQUFNLENBQVUsTUFBTSxHQUFHLE1BQU0sQ0FBQyxrQkFBa0IsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNsYXNzIEdldENhbnZhc1JlcXVlc3Qge1xuICBzdGF0aWMgcmVhZG9ubHkgZlRva2VuID0gU3ltYm9sKCdHZXRDYW52YXNSZXF1ZXN0Jyk7XG59XG4iXX0=
|
|
@@ -1,29 +0,0 @@
|
|
|
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
|
-
/**
|
|
8
|
-
* Execution that retrieves the canvas from the FComponentsStore.
|
|
9
|
-
*/
|
|
10
|
-
let GetCanvasExecution = class GetCanvasExecution {
|
|
11
|
-
_store = inject(FComponentsStore);
|
|
12
|
-
handle(request) {
|
|
13
|
-
const result = this._store.fCanvas;
|
|
14
|
-
if (!result) {
|
|
15
|
-
throw new Error(`Canvas not found in store`);
|
|
16
|
-
}
|
|
17
|
-
return result;
|
|
18
|
-
}
|
|
19
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: GetCanvasExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
20
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: GetCanvasExecution });
|
|
21
|
-
};
|
|
22
|
-
GetCanvasExecution = __decorate([
|
|
23
|
-
FExecutionRegister(GetCanvasRequest)
|
|
24
|
-
], GetCanvasExecution);
|
|
25
|
-
export { GetCanvasExecution };
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: GetCanvasExecution, decorators: [{
|
|
27
|
-
type: Injectable
|
|
28
|
-
}] });
|
|
29
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0LWNhbnZhcy5leGVjdXRp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sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RvbWFpbi9mLWNhbnZhcy9nZXQtY2FudmFzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsd0JBQXdCLENBQUM7QUFFdkMsY0FBYyxzQkFBc0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZ2V0LWNhbnZhcy5leGVjdXRpb24nO1xuXG5leHBvcnQgKiBmcm9tICcuL2dldC1jYW52YXMtcmVxdWVzdCc7XG4iXX0=
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { inject, Injectable } from '@angular/core';
|
|
3
|
-
import { InputCanvasPositionRequest } from './input-canvas-position-request';
|
|
4
|
-
import { FExecutionRegister } from '@foblex/mediator';
|
|
5
|
-
import { PointExtensions } from '@foblex/2d';
|
|
6
|
-
import { FComponentsStore } from '../../../f-storage';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* It updates the canvas position and redraws the canvas when the user set a new position using the input.
|
|
10
|
-
*/
|
|
11
|
-
let InputCanvasPositionExecution = class InputCanvasPositionExecution {
|
|
12
|
-
_store = inject(FComponentsStore);
|
|
13
|
-
handle(request) {
|
|
14
|
-
if (!request.position) {
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
const position = PointExtensions.sum(request.transform.position, request.transform.scaledPosition);
|
|
18
|
-
if (!PointExtensions.isEqual(position, request.position)) {
|
|
19
|
-
request.transform.position = request.position;
|
|
20
|
-
request.transform.scaledPosition = PointExtensions.initialize();
|
|
21
|
-
this._store.fCanvas?.redraw();
|
|
22
|
-
}
|
|
23
|
-
return void 0;
|
|
24
|
-
}
|
|
25
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputCanvasPositionExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
26
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputCanvasPositionExecution });
|
|
27
|
-
};
|
|
28
|
-
InputCanvasPositionExecution = __decorate([
|
|
29
|
-
FExecutionRegister(InputCanvasPositionRequest)
|
|
30
|
-
], InputCanvasPositionExecution);
|
|
31
|
-
export { InputCanvasPositionExecution };
|
|
32
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputCanvasPositionExecution, decorators: [{
|
|
33
|
-
type: Injectable
|
|
34
|
-
}] });
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtY2FudmFzLXBvc2l0aW9uLmV4ZWN1dGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZG9tYWluL2YtY2FudmFzL2lucHV0LWNhbnZhcy1wb3NpdGlvbi9pbnB1dC1jYW52YXMtcG9zaXRpb24uZXhlY3V0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNuRCxPQUFPLEVBQUUsMEJBQTBCLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUM3RSxPQUFPLEVBQUUsa0JBQWtCLEVBQWMsTUFBTSxrQkFBa0IsQ0FBQztBQUNsRSxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBQzdDLE9BQU8sRUFBRSxnQkFB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0LnRyYW5zZm9ybS5zY2FsZWRQb3NpdGlvbik7XG4gICAgaWYgKCFQb2ludEV4dGVuc2lvbnMuaXNFcXVhbChwb3NpdGlvbiwgcmVxdWVzdC5wb3NpdGlvbikpIHtcbiAgICAgIHJlcXVlc3QudHJhbnNmb3JtLnBvc2l0aW9uID0gcmVxdWVzdC5wb3NpdGlvbjtcbiAgICAgIHJlcXVlc3QudHJhbnNmb3JtLnNjYWxlZFBvc2l0aW9uID0gUG9pbnRFeHRlbnNpb25zLmluaXRpYWxpemUoKTtcbiAgICAgIHRoaXMuX3N0b3JlLmZDYW52YXM/LnJlZHJhdygpO1xuICAgIH1cblxuICAgIHJldHVybiB2b2lkIDA7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { inject, Injectable } from '@angular/core';
|
|
3
|
-
import { InputCanvasScaleRequest } from './input-canvas-scale-request';
|
|
4
|
-
import { FExecutionRegister } from '@foblex/mediator';
|
|
5
|
-
import { FComponentsStore } from '../../../f-storage';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Execution that handles the scaling of the input canvas.
|
|
9
|
-
* It updates the scale of the canvas transform and redraws the canvas when the user sets a new scale using the input.
|
|
10
|
-
*/
|
|
11
|
-
let InputCanvasScaleExecution = class InputCanvasScaleExecution {
|
|
12
|
-
_store = inject(FComponentsStore);
|
|
13
|
-
handle(request) {
|
|
14
|
-
if (!request.scale && request.scale !== 0) {
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
request.transform.scale = request.scale;
|
|
18
|
-
this._store.fCanvas?.redraw();
|
|
19
|
-
}
|
|
20
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputCanvasScaleExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
21
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputCanvasScaleExecution });
|
|
22
|
-
};
|
|
23
|
-
InputCanvasScaleExecution = __decorate([
|
|
24
|
-
FExecutionRegister(InputCanvasScaleRequest)
|
|
25
|
-
], InputCanvasScaleExecution);
|
|
26
|
-
export { InputCanvasScaleExecution };
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputCanvasScaleExecution, decorators: [{
|
|
28
|
-
type: Injectable
|
|
29
|
-
}] });
|
|
30
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtY2FudmFzLXNjYWxlLmV4ZWN1dGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZG9tYWluL2YtY2FudmFzL2lucHV0LWNhbnZhcy1zY2FsZS9pbnB1dC1jYW52YXMtc2NhbGUuZXhlY3V0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNuRCxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQztBQUN2RSxPQUFPLEVBQUUsa0JBQWtCLEVBQWMsTUFBTSxrQkFBa0IsQ0FBQztBQUNsRSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQzs7QUFDdEQ7OztHQUdHO0FBR0ksSUFBTSx5QkFBeUIsR0FBL0IsTUFBTSx5QkFBeUI7SUFFbkIsTUFBTSxHQUFHLE1BQU0sQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDO0lBRTVDLE1BQU0sQ0FBQyxPQUFnQztRQUM1QyxJQUFJLENBQUMsT0FBTyxD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ZXIoSW5wdXRDYW52YXNTY2FsZVJlcXVlc3QpXG5leHBvcnQgY2xhc3MgSW5wdXRDYW52YXNTY2FsZUV4ZWN1dGlvbiBpbXBsZW1lbnRzIElFeGVjdXRpb248SW5wdXRDYW52YXNTY2FsZVJlcXVlc3QsIHZvaWQ+IHtcblxuICBwcml2YXRlIHJlYWRvbmx5IF9zdG9yZSA9IGluamVjdChGQ29tcG9uZW50c1N0b3JlKTtcblxuICBwdWJsaWMgaGFuZGxlKHJlcXVlc3Q6IElucHV0Q2FudmFzU2NhbGVSZXF1ZXN0KTogdm9pZCB7XG4gICAgaWYgKCFyZXF1ZXN0LnNjYWxlICYmIHJlcXVlc3Quc2NhbGUgIT09IDApIHtcbiAgICAgIHJldHVybjtcbiAgICB9XG4gICAgcmVxdWVzdC50cmFuc2Zvcm0uc2NhbGUgPSByZXF1ZXN0LnNjYWxlO1xuICAgIHRoaXMuX3N0b3JlLmZDYW52YXM/LnJlZHJhdygpO1xuICB9XG59XG4iXX0=
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { inject, Injectable } from '@angular/core';
|
|
3
|
-
import { RedrawCanvasWithAnimationRequest } from './redraw-canvas-with-animation-request';
|
|
4
|
-
import { FExecutionRegister } from '@foblex/mediator';
|
|
5
|
-
import { FComponentsStore } from '../../../f-storage';
|
|
6
|
-
import { transitionEnd } from '../../transition-end';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* Execution that redraws the canvas with or without animation based on the request.
|
|
10
|
-
* If animated, it will redraw with animation and wait for the transition end to notify data change.
|
|
11
|
-
* If not animated, it will redraw immediately and notify data change.
|
|
12
|
-
*/
|
|
13
|
-
let RedrawCanvasWithAnimationExecution = class RedrawCanvasWithAnimationExecution {
|
|
14
|
-
_store = inject(FComponentsStore);
|
|
15
|
-
get _fCanvasElement() {
|
|
16
|
-
return this._store.fCanvas.hostElement;
|
|
17
|
-
}
|
|
18
|
-
handle(request) {
|
|
19
|
-
request.animated ? this._redrawWithAnimation() : this._redraw();
|
|
20
|
-
this._store.fCanvas.emitCanvasChangeEvent();
|
|
21
|
-
}
|
|
22
|
-
_redrawWithAnimation() {
|
|
23
|
-
this._store.fCanvas.redrawWithAnimation();
|
|
24
|
-
transitionEnd(this._fCanvasElement, () => this._store.dataChanged());
|
|
25
|
-
}
|
|
26
|
-
_redraw() {
|
|
27
|
-
this._store.fCanvas.redraw();
|
|
28
|
-
this._store.dataChanged();
|
|
29
|
-
}
|
|
30
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RedrawCanvasWithAnimationExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
31
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RedrawCanvasWithAnimationExecution });
|
|
32
|
-
};
|
|
33
|
-
RedrawCanvasWithAnimationExecution = __decorate([
|
|
34
|
-
FExecutionRegister(RedrawCanvasWithAnimationRequest)
|
|
35
|
-
], RedrawCanvasWithAnimationExecution);
|
|
36
|
-
export { RedrawCanvasWithAnimationExecution };
|
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RedrawCanvasWithAnimationExecution, decorators: [{
|
|
38
|
-
type: Injectable
|
|
39
|
-
}] });
|
|
40
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVkcmF3LWNhbnZhcy13aXRoLWFuaW1hdGlvbi5leGVjdXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RvbWFpbi9mLWNhbnZhcy9yZWRyYXctY2FudmFzLXdpdGgtYW5pbWF0aW9uL3JlZHJhdy1jYW52YXMtd2l0aC1hbmltYXRp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6IHZvaWQge1xuICAgIHRoaXMuX3N0b3JlLmZDYW52YXMhLnJlZHJhdygpO1xuICAgIHRoaXMuX3N0b3JlLmRhdGFDaGFuZ2VkKCk7XG4gIH1cbn1cbiJdfQ==
|
package/esm2022/domain/f-canvas/remove-canvas-from-store/remove-canvas-from-store.execution.mjs
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { inject, Injectable } from '@angular/core';
|
|
3
|
-
import { FExecutionRegister } from '@foblex/mediator';
|
|
4
|
-
import { RemoveCanvasFromStoreRequest } from './remove-canvas-from-store-request';
|
|
5
|
-
import { FComponentsStore } from '../../../f-storage';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Execution that removes the canvas from the FComponentsStore.
|
|
9
|
-
*/
|
|
10
|
-
let RemoveCanvasFromStoreExecution = class RemoveCanvasFromStoreExecution {
|
|
11
|
-
_store = inject(FComponentsStore);
|
|
12
|
-
handle(_request) {
|
|
13
|
-
this._store.fCanvas = undefined;
|
|
14
|
-
}
|
|
15
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RemoveCanvasFromStoreExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
16
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RemoveCanvasFromStoreExecution });
|
|
17
|
-
};
|
|
18
|
-
RemoveCanvasFromStoreExecution = __decorate([
|
|
19
|
-
FExecutionRegister(RemoveCanvasFromStoreRequest)
|
|
20
|
-
], RemoveCanvasFromStoreExecution);
|
|
21
|
-
export { RemoveCanvasFromStoreExecution };
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RemoveCanvasFromStoreExecution, decorators: [{
|
|
23
|
-
type: Injectable
|
|
24
|
-
}] });
|
|
25
|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9jb3JlJztcbmltcG9ydCB7IEZFeGVjdXRpb25SZWdpc3RlciwgSUV4ZWN1dGlvbiB9IGZyb20gJ0Bmb2JsZXgvbWVkaWF0b3InO1xuaW1wb3J0IHsgUmVtb3ZlQ2FudmFzRnJvbVN0b3JlUmVxdWVzdCB9IGZyb20gJy4vcmVtb3ZlLWNhbnZhcy1mcm9tLXN0b3JlLXJlcXVlc3QnO1xuaW1wb3J0IHsgRkNvbXBvbmVudHNTdG9yZSB9IGZyb20gJy4uLy4uLy4uL2Ytc3RvcmFnZSc7XG5cbi8qKlxuICogRXhlY3V0aW9uIHRoYXQgcmVtb3ZlcyB0aGUgY2FudmFzIGZyb20gdGhlIEZDb21wb25lbnRzU3RvcmUuXG4gKi9cbkBJbmplY3RhYmxlKClcbkBGRXhlY3V0aW9uUmVnaXN0ZXIoUmVtb3ZlQ2FudmFzRnJvbVN0b3JlUmVxdWVzdClcbmV4cG9ydCBjbGFzcyBSZW1vdmVDYW52YXNGcm9tU3RvcmVFeGVjdXRpb25cbiAgaW1wbGVtZW50cyBJRXhlY3V0aW9uPFJlbW92ZUNhbnZhc0Zyb21TdG9yZVJlcXVlc3QsIHZvaWQ+XG57XG4gIHByaXZhdGUgcmVhZG9ubHkgX3N0b3JlID0gaW5qZWN0KEZDb21wb25lbnRzU3RvcmUpO1xuXG4gIHB1YmxpYyBoYW5kbGUoX3JlcXVlc3Q6IFJlbW92ZUNhbnZhc0Zyb21TdG9yZVJlcXVlc3QpOiB2b2lkIHtcbiAgICB0aGlzLl9zdG9yZS5mQ2FudmFzID0gdW5kZWZpbmVkO1xuICB9XG59XG4iXX0=
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { inject, Injectable } from '@angular/core';
|
|
3
|
-
import { ResetScaleRequest } from './reset-scale-request';
|
|
4
|
-
import { FExecutionRegister } from '@foblex/mediator';
|
|
5
|
-
import { PointExtensions } from '@foblex/2d';
|
|
6
|
-
import { FComponentsStore } from '../../../f-storage';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* Execution that resets the scale of the canvas in the FComponentsStore.
|
|
10
|
-
*/
|
|
11
|
-
let ResetScaleExecution = class ResetScaleExecution {
|
|
12
|
-
_store = inject(FComponentsStore);
|
|
13
|
-
get transform() {
|
|
14
|
-
return this._store.fCanvas.transform;
|
|
15
|
-
}
|
|
16
|
-
handle(request) {
|
|
17
|
-
this.transform.scale = 1;
|
|
18
|
-
this.transform.scaledPosition = PointExtensions.initialize();
|
|
19
|
-
}
|
|
20
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ResetScaleExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
21
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ResetScaleExecution });
|
|
22
|
-
};
|
|
23
|
-
ResetScaleExecution = __decorate([
|
|
24
|
-
FExecutionRegister(ResetScaleRequest)
|
|
25
|
-
], ResetScaleExecution);
|
|
26
|
-
export { ResetScaleExecution };
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ResetScaleExecution, decorators: [{
|
|
28
|
-
type: Injectable
|
|
29
|
-
}] });
|
|
30
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzZXQtc2NhbGUuZXhlY3V0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9kb21haW4vZi1jYW52YXMvcmVzZXQtc2NhbGUvcmVzZXQtc2NhbGUuZXhlY3V0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLFVBQVUsRUFBR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reset-scale-and-center-request';
|
|
4
|
-
import { FExecutionRegister, FMediator } from '@foblex/mediator';
|
|
5
|
-
import { PointExtensions, RectExtensions } from '@foblex/2d';
|
|
6
|
-
import { CalculateNodesBoundingBoxRequest, RedrawCanvasWithAnimationRequest, } from '../../../domain';
|
|
7
|
-
import { FComponentsStore } from '../../../f-storage';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* Execution that resets the scale of the canvas and centers the nodes and groups inside the flow.
|
|
11
|
-
*/
|
|
12
|
-
let ResetScaleAndCenterExecution = class ResetScaleAndCenterExecution {
|
|
13
|
-
_fMediator = inject(FMediator);
|
|
14
|
-
_store = inject(FComponentsStore);
|
|
15
|
-
get _transform() {
|
|
16
|
-
return this._store.fCanvas.transform;
|
|
17
|
-
}
|
|
18
|
-
handle(request) {
|
|
19
|
-
const fNodesRect = this._fMediator.execute(new CalculateNodesBoundingBoxRequest()) ||
|
|
20
|
-
RectExtensions.initialize();
|
|
21
|
-
if (fNodesRect.width === 0 || fNodesRect.height === 0) {
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
this._oneToOneCentering(fNodesRect, RectExtensions.fromElement(this._store.flowHost), this._store.nodes.getAll().map((x) => x._position));
|
|
25
|
-
this._fMediator.execute(new RedrawCanvasWithAnimationRequest(request.animated));
|
|
26
|
-
}
|
|
27
|
-
_oneToOneCentering(rect, parentRect, points) {
|
|
28
|
-
this._transform.scaledPosition = PointExtensions.initialize();
|
|
29
|
-
this._transform.position = this._getZeroPositionWithoutScale(points);
|
|
30
|
-
const newX = (parentRect.width - rect.width / this._transform.scale) / 2 - this._transform.position.x;
|
|
31
|
-
const newY = (parentRect.height - rect.height / this._transform.scale) / 2 - this._transform.position.y;
|
|
32
|
-
this._transform.scale = 1;
|
|
33
|
-
this._transform.position = PointExtensions.initialize(newX, newY);
|
|
34
|
-
}
|
|
35
|
-
_getZeroPositionWithoutScale(points) {
|
|
36
|
-
const xPoint = points.length ? Math.min(...points.map((point) => point.x)) : 0;
|
|
37
|
-
const yPoint = points.length ? Math.min(...points.map((point) => point.y)) : 0;
|
|
38
|
-
return PointExtensions.initialize(xPoint, yPoint);
|
|
39
|
-
}
|
|
40
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ResetScaleAndCenterExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
41
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ResetScaleAndCenterExecution });
|
|
42
|
-
};
|
|
43
|
-
ResetScaleAndCenterExecution = __decorate([
|
|
44
|
-
FExecutionRegister(ResetScaleAndCenterRequest)
|
|
45
|
-
], ResetScaleAndCenterExecution);
|
|
46
|
-
export { ResetScaleAndCenterExecution };
|
|
47
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ResetScaleAndCenterExecution, decorators: [{
|
|
48
|
-
type: Injectable
|
|
49
|
-
}] });
|
|
50
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzZXQtc2NhbGUtYW5kLWNlbnRlci5leGVjdXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RvbWFpbi9mLWNhbnZhcy9yZXNldC1zY2FsZS1hbmQtY2VudGVyL3Jlc2V0LXNjYWxlLWFuZC1jZW50ZXIuZXhlY3V0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNuRCxPQUFPLEVBQUUsMEJBQTBCLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQztBQUM5RSxPQUFPLEVBQUUsa0JBQWt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iAtIHRoaXMuX3RyYW5zZm9ybS5wb3NpdGlvbi54O1xuICAgIGNvbnN0IG5ld1kgPVxuICAgICAgKHBhcmVudFJlY3QuaGVpZ2h0IC0gcmVjdC5oZWlnaHQgLyB0aGlzLl90cmFuc2Zvcm0uc2NhbGUpIC8gMiAtIHRoaXMuX3RyYW5zZm9ybS5wb3NpdGlvbi55O1xuXG4gICAgdGhpcy5fdHJhbnNmb3JtLnNjYWxlID0gMTtcbiAgICB0aGlzLl90cmFuc2Zvcm0ucG9zaXRpb24gPSBQb2ludEV4dGVuc2lvbnMuaW5pdGlhbGl6ZShuZXdYLCBuZXdZKTtcbiAgfVxuXG4gIHByaXZhdGUgX2dldFplcm9Qb3NpdGlvbldpdGhvdXRTY2FsZShwb2ludHM6IElQb2ludFtdKTogSVBvaW50IHtcbiAgICBjb25zdCB4UG9pbnQgPSBwb2ludHMubGVuZ3RoID8gTWF0aC5taW4oLi4ucG9pbnRzLm1hcCgocG9pbnQpID0+IHBvaW50LngpKSA6IDA7XG4gICAgY29uc3QgeVBvaW50ID0gcG9pbnRzLmxlbmd0aCA/IE1hdGgubWluKC4uLnBvaW50cy5tYXAoKHBvaW50KSA9PiBwb2ludC55KSkgOiAwO1xuXG4gICAgcmV0dXJuIFBvaW50RXh0ZW5zaW9ucy5pbml0aWFsaXplKHhQb2ludCwgeVBvaW50KTtcbiAgfVxufVxuIl19
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { inject, Injectable } from '@angular/core';
|
|
3
|
-
import { UpdateScaleRequest } from './update-scale-request';
|
|
4
|
-
import { FExecutionRegister } from '@foblex/mediator';
|
|
5
|
-
import { PointExtensions } from '@foblex/2d';
|
|
6
|
-
import { FComponentsStore } from '../../../f-storage';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* Execution that updates the scale of the canvas in the FComponentsStore.
|
|
10
|
-
* Occurs when the fZoom directive or User call the setScale method.
|
|
11
|
-
*/
|
|
12
|
-
let UpdateScaleExecution = class UpdateScaleExecution {
|
|
13
|
-
_store = inject(FComponentsStore);
|
|
14
|
-
get transform() {
|
|
15
|
-
return this._store.fCanvas.transform;
|
|
16
|
-
}
|
|
17
|
-
handle(request) {
|
|
18
|
-
if (request.scale !== this.transform.scale) {
|
|
19
|
-
const summaryPosition = PointExtensions.sum(this.transform.scaledPosition, this.transform.position);
|
|
20
|
-
const newX = request.toPosition.x - (request.toPosition.x - summaryPosition.x) * request.scale / this.transform.scale;
|
|
21
|
-
const newY = request.toPosition.y - (request.toPosition.y - summaryPosition.y) * request.scale / this.transform.scale;
|
|
22
|
-
this.transform.scale = request.scale;
|
|
23
|
-
this.transform.scaledPosition = PointExtensions.sub(PointExtensions.initialize(newX, newY), this.transform.position);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: UpdateScaleExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
27
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: UpdateScaleExecution });
|
|
28
|
-
};
|
|
29
|
-
UpdateScaleExecution = __decorate([
|
|
30
|
-
FExecutionRegister(UpdateScaleRequest)
|
|
31
|
-
], UpdateScaleExecution);
|
|
32
|
-
export { UpdateScaleExecution };
|
|
33
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: UpdateScaleExecution, decorators: [{
|
|
34
|
-
type: Injectable
|
|
35
|
-
}] });
|
|
36
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBkYXRlLXNjYWxlLmV4ZWN1dGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmx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