@foblex/flow 18.1.2 → 18.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +80 -34
- 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 +9 -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 +51 -28
- 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 +34 -11
- 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 +86 -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/index.mjs +2 -1
- 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-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 +12 -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 +15 -6
- 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 +21 -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 +8290 -6296
- 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 -8
- package/esm2022/f-storage/features/listen-data-changed/listen-data-changes.mjs +0 -25
- 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 -5
- 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
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { inject, Injectable } from '@angular/core';
|
|
3
|
+
import { AttachResizeConnectionDragHandlersToNodeRequest } from './attach-resize-connection-drag-handlers-to-node-request';
|
|
4
|
+
import { FExecutionRegister, FMediator } from '@foblex/mediator';
|
|
5
|
+
import { FComponentsStore } from '../../../../f-storage';
|
|
6
|
+
import { ResizeNodeConnectionBothSidesHandler, ResizeNodeConnectionSourceHandler, ResizeNodeConnectionTargetHandler, } from '../../resize-node-handler';
|
|
7
|
+
import { GetNormalizedElementRectRequest } from '../../../../domain';
|
|
8
|
+
import { DragHandlerInjector } from '../../../infrastructure';
|
|
9
|
+
import { CalculateResizeLimitsRequest } from '../../calculate-resize-limits';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
let AttachResizeConnectionDragHandlersToNode = class AttachResizeConnectionDragHandlersToNode {
|
|
12
|
+
_store = inject(FComponentsStore);
|
|
13
|
+
_mediator = inject(FMediator);
|
|
14
|
+
_dragInjector = inject(DragHandlerInjector);
|
|
15
|
+
handle({ handler, nodeOrGroup }) {
|
|
16
|
+
const softParents = this._readSoftParents(nodeOrGroup);
|
|
17
|
+
const involvedNodes = [nodeOrGroup, ...softParents];
|
|
18
|
+
const involvedSourceIds = this._collectSourceConnectorIds(involvedNodes);
|
|
19
|
+
const involvedTargetIds = this._collectTargetConnectorIds(involvedNodes);
|
|
20
|
+
const connectionHandlerPool = new Map();
|
|
21
|
+
handler.setNodeConnectionHandlers(this._buildConnectionHandlersForNode(nodeOrGroup, involvedSourceIds, involvedTargetIds, connectionHandlerPool));
|
|
22
|
+
handler.setSoftParentConnectionHandlers(softParents.map((parent) => this._buildConnectionHandlersForNode(parent, involvedSourceIds, involvedTargetIds, connectionHandlerPool)));
|
|
23
|
+
}
|
|
24
|
+
_readSoftParents(nodeOrGroup) {
|
|
25
|
+
const baselineRect = this._mediator.execute(new GetNormalizedElementRectRequest(nodeOrGroup.hostElement));
|
|
26
|
+
const constraints = this._mediator.execute(new CalculateResizeLimitsRequest(nodeOrGroup, baselineRect));
|
|
27
|
+
return constraints.limits.softLimits.map((x) => x.nodeOrGroup);
|
|
28
|
+
}
|
|
29
|
+
_collectSourceConnectorIds(nodes) {
|
|
30
|
+
const nodeIds = new Set(nodes.map((x) => x.fId()));
|
|
31
|
+
return new Set(this._store.outputs
|
|
32
|
+
.getAll()
|
|
33
|
+
.filter((x) => nodeIds.has(x.fNodeId))
|
|
34
|
+
.map((x) => x.fId()));
|
|
35
|
+
}
|
|
36
|
+
_collectTargetConnectorIds(nodes) {
|
|
37
|
+
const nodeIds = new Set(nodes.map((x) => x.fId()));
|
|
38
|
+
return new Set(this._store.inputs
|
|
39
|
+
.getAll()
|
|
40
|
+
.filter((x) => nodeIds.has(x.fNodeId))
|
|
41
|
+
.map((x) => x.fId()));
|
|
42
|
+
}
|
|
43
|
+
_buildConnectionHandlersForNode(nodeOrGroup, involvedSourceIds, involvedTargetIds, connectionHandlerPool) {
|
|
44
|
+
const outputs = this._store.outputs.getAll().filter((x) => x.fNodeId === nodeOrGroup.fId());
|
|
45
|
+
const inputs = this._store.inputs.getAll().filter((x) => x.fNodeId === nodeOrGroup.fId());
|
|
46
|
+
if (!outputs.length && !inputs.length) {
|
|
47
|
+
return { source: [], target: [] };
|
|
48
|
+
}
|
|
49
|
+
const outputIds = new Set(outputs.map((x) => x.fId()));
|
|
50
|
+
const inputIds = new Set(inputs.map((x) => x.fId()));
|
|
51
|
+
const result = { source: [], target: [] };
|
|
52
|
+
for (const connection of this._store.connections.getAll()) {
|
|
53
|
+
const isSource = outputIds.has(connection.fOutputId());
|
|
54
|
+
const isTarget = inputIds.has(connection.fInputId());
|
|
55
|
+
if (!isSource && !isTarget) {
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
const connectionHandler = connectionHandlerPool.get(connection.fId()) ??
|
|
59
|
+
this._createConnectionHandler(connection, involvedSourceIds, involvedTargetIds);
|
|
60
|
+
connectionHandlerPool.set(connection.fId(), connectionHandler);
|
|
61
|
+
if (isSource) {
|
|
62
|
+
const sourceConnector = this._store.outputs.require(connection.fOutputId());
|
|
63
|
+
result.source.push({
|
|
64
|
+
handler: connectionHandler,
|
|
65
|
+
connector: sourceConnector,
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
if (isTarget) {
|
|
69
|
+
const targetConnector = this._store.inputs.require(connection.fInputId());
|
|
70
|
+
result.target.push({
|
|
71
|
+
handler: connectionHandler,
|
|
72
|
+
connector: targetConnector,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return result;
|
|
77
|
+
}
|
|
78
|
+
_createConnectionHandler(connection, involvedSourceIds, involvedTargetIds) {
|
|
79
|
+
const isSource = involvedSourceIds.has(connection.fOutputId());
|
|
80
|
+
const isTarget = involvedTargetIds.has(connection.fInputId());
|
|
81
|
+
const result = isSource && isTarget
|
|
82
|
+
? this._dragInjector.createInstance(ResizeNodeConnectionBothSidesHandler)
|
|
83
|
+
: isSource
|
|
84
|
+
? this._dragInjector.createInstance(ResizeNodeConnectionSourceHandler)
|
|
85
|
+
: this._dragInjector.createInstance(ResizeNodeConnectionTargetHandler);
|
|
86
|
+
result.initialize(connection);
|
|
87
|
+
return result;
|
|
88
|
+
}
|
|
89
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AttachResizeConnectionDragHandlersToNode, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
90
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AttachResizeConnectionDragHandlersToNode });
|
|
91
|
+
};
|
|
92
|
+
AttachResizeConnectionDragHandlersToNode = __decorate([
|
|
93
|
+
FExecutionRegister(AttachResizeConnectionDragHandlersToNodeRequest)
|
|
94
|
+
], AttachResizeConnectionDragHandlersToNode);
|
|
95
|
+
export { AttachResizeConnectionDragHandlersToNode };
|
|
96
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AttachResizeConnectionDragHandlersToNode, decorators: [{
|
|
97
|
+
type: Injectable
|
|
98
|
+
}] });
|
|
99
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXR0YWNoLXJlc2l6ZS1jb25uZWN0aW9uLWRyYWctaGFuZGxlcnMtdG8tbm9kZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZi1kcmFnZ2FibGUvcmVzaXplLW5vZGUvcmVzaXplLXByZXBhcmF0aW9uL2F0dGFjaC1yZXNpemUtY29ubmVjdGlvbi1kcmFnLWhhbmRsZXJzLXRvLW5vZGUvYXR0YWNoLXJlc2l6ZS1jb25uZWN0aW9uLWRyYWctaGFuZGxlcnMtdG8tbm9kZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDbkQsT0FBTyxFQUFFLCtDQUErQyxFQUFFLE1BQU0sMERBQTBELENBQUM7QUFDM0gsT0FBTyxFQUFFLGtCQUFrQixFQUFFLFNBQVMsRUFBYyxNQUFNLGtCQUFrQixDQUF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lhbGl6ZShjb25uZWN0aW9uKTtcblxuICAgIHJldHVybiByZXN1bHQ7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './attach-resize-connection-drag-handlers-to-node';
|
|
2
|
+
export * from './attach-resize-connection-drag-handlers-to-node-request';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2YtZHJhZ2dhYmxlL3Jlc2l6ZS1ub2RlL3Jlc2l6ZS1wcmVwYXJhdGlvbi9hdHRhY2gtcmVzaXplLWNvbm5lY3Rpb24tZHJhZy1oYW5kbGVycy10by1ub2RlL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsa0RBQWtELENBQUM7QUFFakUsY0FBYywwREFBMEQsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vYXR0YWNoLXJlc2l6ZS1jb25uZWN0aW9uLWRyYWctaGFuZGxlcnMtdG8tbm9kZSc7XG5cbmV4cG9ydCAqIGZyb20gJy4vYXR0YWNoLXJlc2l6ZS1jb25uZWN0aW9uLWRyYWctaGFuZGxlcnMtdG8tbm9kZS1yZXF1ZXN0JztcbiJdfQ==
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * from './resize-node-preparation';
|
|
2
|
+
export * from './resize-node-preparation-request';
|
|
3
|
+
export * from './attach-resize-connection-drag-handlers-to-node';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2YtZHJhZ2dhYmxlL3Jlc2l6ZS1ub2RlL3Jlc2l6ZS1wcmVwYXJhdGlvbi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDJCQUEyQixDQUFDO0FBRTFDLGNBQWMsbUNBQW1DLENBQUM7QUFFbEQsY0FBYyxrREFBa0QsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vcmVzaXplLW5vZGUtcHJlcGFyYXRpb24nO1xuXG5leHBvcnQgKiBmcm9tICcuL3Jlc2l6ZS1ub2RlLXByZXBhcmF0aW9uLXJlcXVlc3QnO1xuXG5leHBvcnQgKiBmcm9tICcuL2F0dGFjaC1yZXNpemUtY29ubmVjdGlvbi1kcmFnLWhhbmRsZXJzLXRvLW5vZGUnO1xuIl19
|
package/esm2022/f-draggable/resize-node/resize-preparation/resize-node-preparation-request.mjs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export class ResizeNodePreparationRequest {
|
|
2
|
+
event;
|
|
3
|
+
fTrigger;
|
|
4
|
+
static fToken = Symbol('ResizeNodePreparationRequest');
|
|
5
|
+
constructor(event, fTrigger) {
|
|
6
|
+
this.event = event;
|
|
7
|
+
this.fTrigger = fTrigger;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzaXplLW5vZGUtcHJlcGFyYXRpb24tcmVxdWVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZi1kcmFnZ2FibGUvcmVzaXplLW5vZGUvcmVzaXplLXByZXBhcmF0aW9uL3Jlc2l6ZS1ub2RlLXByZXBhcmF0aW9uLXJlcXVlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBR0EsTUFBTSxPQUFPLDRCQUE0QjtJQUlyQjtJQUNBO0lBSmxCLE1BQU0sQ0FBVSxNQUFNLEdBQUcsTUFBTSxDQUFDLDhCQUE4QixDQUFDLENBQUM7SUFFaEUsWUFDa0IsS0FBb0IsRUFDcEIsUUFBdUI7UUFEdkIsVUFBSyxHQUFMLEtBQUssQ0FBZTtRQUNwQixhQUFRLEdBQVIsUUFBUSxDQUFlO0lBQ3RDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBGRXZlbnRUcmlnZ2VyIH0gZnJvbSAnLi4vLi4vLi4vZG9tYWluJztcbmltcG9ydCB7IElQb2ludGVyRXZlbnQgfSBmcm9tICcuLi8uLi8uLi9kcmFnLXRvb2xraXQnO1xuXG5leHBvcnQgY2xhc3MgUmVzaXplTm9kZVByZXBhcmF0aW9uUmVxdWVzdCB7XG4gIHN0YXRpYyByZWFkb25seSBmVG9rZW4gPSBTeW1ib2woJ1Jlc2l6ZU5vZGVQcmVwYXJhdGlvblJlcXVlc3QnKTtcblxuICBjb25zdHJ1Y3RvcihcbiAgICBwdWJsaWMgcmVhZG9ubHkgZXZlbnQ6IElQb2ludGVyRXZlbnQsXG4gICAgcHVibGljIHJlYWRvbmx5IGZUcmlnZ2VyOiBGRXZlbnRUcmlnZ2VyLFxuICApIHt9XG59XG4iXX0=
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { inject, Injectable } from '@angular/core';
|
|
3
|
+
import { ResizeNodePreparationRequest } from './resize-node-preparation-request';
|
|
4
|
+
import { Point } from '@foblex/2d';
|
|
5
|
+
import { FExecutionRegister, FMediator } from '@foblex/mediator';
|
|
6
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
7
|
+
import { FDraggableDataContext } from '../../f-draggable-data-context';
|
|
8
|
+
import { isValidEventTrigger, SelectAndUpdateNodeLayerRequest } from '../../../domain';
|
|
9
|
+
import { EFResizeHandleType } from '../../../f-node';
|
|
10
|
+
import { ResizeNodeHandler } from '../resize-node-handler';
|
|
11
|
+
import { getDataAttrValueFromClosestElementWithClass, isClosestElementHasClass, } from '@foblex/utils';
|
|
12
|
+
import { DragHandlerInjector } from '../../infrastructure';
|
|
13
|
+
import { AttachResizeConnectionDragHandlersToNodeRequest } from './attach-resize-connection-drag-handlers-to-node';
|
|
14
|
+
import * as i0 from "@angular/core";
|
|
15
|
+
let ResizeNodePreparation = class ResizeNodePreparation {
|
|
16
|
+
_mediator = inject(FMediator);
|
|
17
|
+
_store = inject(FComponentsStore);
|
|
18
|
+
_dragSession = inject(FDraggableDataContext);
|
|
19
|
+
_dragInjector = inject(DragHandlerInjector);
|
|
20
|
+
get _transform() {
|
|
21
|
+
return this._store.transform;
|
|
22
|
+
}
|
|
23
|
+
handle({ event, fTrigger }) {
|
|
24
|
+
if (!this._dragSession.isEmpty()) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
if (!this._isResizeHandle(event.targetElement)) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
if (!isValidEventTrigger(event.originalEvent, fTrigger)) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
const nodeOrGroup = this._findResizableNode(event.targetElement);
|
|
34
|
+
if (!nodeOrGroup) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
this._selectBeforeResize(nodeOrGroup);
|
|
38
|
+
const scale = this._transform.scale ?? 1;
|
|
39
|
+
this._dragSession.onPointerDownScale = scale;
|
|
40
|
+
this._dragSession.onPointerDownPosition = Point.fromPoint(event.getPosition())
|
|
41
|
+
.elementTransform(this._store.flowHost)
|
|
42
|
+
.div(scale);
|
|
43
|
+
const handler = this._dragInjector.createInstance(ResizeNodeHandler);
|
|
44
|
+
handler.initialize(nodeOrGroup, this._readResizeHandleType(event.targetElement));
|
|
45
|
+
this._mediator.execute(new AttachResizeConnectionDragHandlersToNodeRequest(handler, nodeOrGroup));
|
|
46
|
+
this._dragSession.draggableItems = [handler];
|
|
47
|
+
}
|
|
48
|
+
_isResizeHandle(target) {
|
|
49
|
+
return isClosestElementHasClass(target, '.f-resize-handle');
|
|
50
|
+
}
|
|
51
|
+
_findResizableNode(target) {
|
|
52
|
+
const nodeOrGroup = this._store.nodes.getAll().find((x) => x.isContains(target));
|
|
53
|
+
if (!nodeOrGroup) {
|
|
54
|
+
return undefined;
|
|
55
|
+
}
|
|
56
|
+
return nodeOrGroup.fDraggingDisabled() ? undefined : nodeOrGroup;
|
|
57
|
+
}
|
|
58
|
+
_selectBeforeResize(nodeOrGroup) {
|
|
59
|
+
queueMicrotask(() => {
|
|
60
|
+
this._mediator.execute(new SelectAndUpdateNodeLayerRequest(nodeOrGroup));
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
_readResizeHandleType(target) {
|
|
64
|
+
const key = getDataAttrValueFromClosestElementWithClass(target, 'fResizeHandleType', '.f-resize-handle');
|
|
65
|
+
return EFResizeHandleType[key];
|
|
66
|
+
}
|
|
67
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ResizeNodePreparation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
68
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ResizeNodePreparation });
|
|
69
|
+
};
|
|
70
|
+
ResizeNodePreparation = __decorate([
|
|
71
|
+
FExecutionRegister(ResizeNodePreparationRequest)
|
|
72
|
+
], ResizeNodePreparation);
|
|
73
|
+
export { ResizeNodePreparation };
|
|
74
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ResizeNodePreparation, decorators: [{
|
|
75
|
+
type: Injectable
|
|
76
|
+
}] });
|
|
77
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzaXplLW5vZGUtcHJlcGFyYXRpb24uanMiLCJzb3VyY2VSb290IjoiIi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Y29uc3Qgbm9kZU9yR3JvdXAgPSB0aGlzLl9zdG9yZS5ub2Rlcy5nZXRBbGwoKS5maW5kKCh4KSA9PiB4LmlzQ29udGFpbnModGFyZ2V0KSk7XG4gICAgaWYgKCFub2RlT3JHcm91cCkge1xuICAgICAgcmV0dXJuIHVuZGVmaW5lZDtcbiAgICB9XG5cbiAgICByZXR1cm4gbm9kZU9yR3JvdXAuZkRyYWdnaW5nRGlzYWJsZWQoKSA/IHVuZGVmaW5lZCA6IG5vZGVPckdyb3VwO1xuICB9XG5cbiAgcHJpdmF0ZSBfc2VsZWN0QmVmb3JlUmVzaXplKG5vZGVPckdyb3VwOiBGTm9kZUJhc2UpOiB2b2lkIHtcbiAgICBxdWV1ZU1pY3JvdGFzaygoKSA9PiB7XG4gICAgICB0aGlzLl9tZWRpYXRvci5leGVjdXRlPHZvaWQ+KG5ldyBTZWxlY3RBbmRVcGRhdGVOb2RlTGF5ZXJSZXF1ZXN0KG5vZGVPckdyb3VwKSk7XG4gICAgfSk7XG4gIH1cblxuICBwcml2YXRlIF9yZWFkUmVzaXplSGFuZGxlVHlwZSh0YXJnZXQ6IEhUTUxFbGVtZW50KTogRUZSZXNpemVIYW5kbGVUeXBlIHtcbiAgICBjb25zdCBrZXkgPSBnZXREYXRhQXR0clZhbHVlRnJvbUNsb3Nlc3RFbGVtZW50V2l0aENsYXNzKFxuICAgICAgdGFyZ2V0LFxuICAgICAgJ2ZSZXNpemVIYW5kbGVUeXBlJyxcbiAgICAgICcuZi1yZXNpemUtaGFuZGxlJyxcbiAgICApIGFzIGtleW9mIHR5cGVvZiBFRlJlc2l6ZUhhbmRsZVR5cGU7XG5cbiAgICByZXR1cm4gRUZSZXNpemVIYW5kbGVUeXBlW2tleV07XG4gIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export function calculateDifferenceAfterRotation(position, rotation, pivot) {
|
|
2
|
+
const { x: newX, y: newY } = calculatePositionAfterRotation(position, rotation, pivot);
|
|
3
|
+
const dx = newX - position.x;
|
|
4
|
+
const dy = newY - position.y;
|
|
5
|
+
return { x: dx, y: dy };
|
|
6
|
+
}
|
|
7
|
+
export function calculatePositionAfterRotation(position, rotation, pivot) {
|
|
8
|
+
const translatedX = position.x - pivot.x;
|
|
9
|
+
const translatedY = position.y - pivot.y;
|
|
10
|
+
const theta = (rotation * Math.PI) / 180;
|
|
11
|
+
const cosTheta = Math.cos(theta);
|
|
12
|
+
const sinTheta = Math.sin(theta);
|
|
13
|
+
const rotatedX = translatedX * cosTheta - translatedY * sinTheta;
|
|
14
|
+
const rotatedY = translatedX * sinTheta + translatedY * cosTheta;
|
|
15
|
+
const newX = rotatedX + pivot.x;
|
|
16
|
+
const newY = rotatedY + pivot.y;
|
|
17
|
+
return { x: newX, y: newY };
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FsY3VsYXRlLWRpZmZlcmVuY2UtYWZ0ZXItcm90YXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2YtZHJhZ2dhYmxlL3JvdGF0ZS1ub2RlL2NhbGN1bGF0ZS1kaWZmZXJlbmNlLWFmdGVyLXJvdGF0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sVUFBVSxnQ0FBZ0MsQ0FDOUMsUUFBa0MsRUFDbEMsUUFBZ0IsRUFDaEIsS0FBK0I7SUFFL0IsTUFBTSxFQUFFLENBQUMsRUFBRSxJQUFJLEVBQUUsQ0FBQyxFQUFFLElBQUksRUFBRSxHQUFHLDhCQUE4QixDQUFDLFFBQVEsRUFBRSxRQUFRLEVBQUUsS0FBSyxDQUFDLENBQUM7SUFFdkYsTUFBTSxFQUFFLEdBQUcsSUFBSSxHQUFHLFFBQVEsQ0FBQyxDQUFDLENBQUM7SUF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bnNsYXRlZFggKiBjb3NUaGV0YSAtIHRyYW5zbGF0ZWRZICogc2luVGhldGE7XG4gIGNvbnN0IHJvdGF0ZWRZID0gdHJhbnNsYXRlZFggKiBzaW5UaGV0YSArIHRyYW5zbGF0ZWRZICogY29zVGhldGE7XG5cbiAgY29uc3QgbmV3WCA9IHJvdGF0ZWRYICsgcGl2b3QueDtcbiAgY29uc3QgbmV3WSA9IHJvdGF0ZWRZICsgcGl2b3QueTtcblxuICByZXR1cm4geyB4OiBuZXdYLCB5OiBuZXdZIH07XG59XG4iXX0=
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export class FRotateNodeStartEventData {
|
|
2
|
+
fNodeId;
|
|
3
|
+
constructor(fNodeId) {
|
|
4
|
+
this.fNodeId = fNodeId;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1yb3RhdGUtbm9kZS1zdGFydC1ldmVudC1kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9mLWRyYWdnYWJsZS9yb3RhdGUtbm9kZS9mLXJvdGF0ZS1ub2RlLXN0YXJ0LWV2ZW50LWRhdGEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxPQUFPLHlCQUF5QjtJQUNSO0lBQTVCLFlBQTRCLE9BQWU7UUFBZixZQUFPLEdBQVAsT0FBTyxDQUFRO0lBQUcsQ0FBQztDQUNoRCIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjbGFzcyBGUm90YXRlTm9kZVN0YXJ0RXZlbnREYXRhIHtcbiAgY29uc3RydWN0b3IocHVibGljIHJlYWRvbmx5IGZOb2RlSWQ6IHN0cmluZykge31cbn1cbiJdfQ==
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './rotate-node-finalize';
|
|
2
|
+
export * from './rotate-node-preparation';
|
|
3
|
+
export * from './rotate-node-handler';
|
|
4
|
+
export * from './calculate-difference-after-rotation';
|
|
5
|
+
export * from './f-rotate-node-start-event-data';
|
|
6
|
+
export * from './is-rotate-node-handler';
|
|
7
|
+
export * from './providers';
|
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2YtZHJhZ2dhYmxlL3JvdGF0ZS1ub2RlL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsd0JBQXdCLENBQUM7QUFFdkMsY0FBYywyQkFBMkIsQ0FBQztBQUUxQyxjQUFjLHVCQUF1QixDQUFDO0FBRXRDLGNBQWMsdUNBQXVDLENBQUM7QUFFdEQsY0FBYyxrQ0FBa0MsQ0FBQztBQUVqRCxjQUFjLDBCQUEwQixDQUFDO0FBRXpDLGNBQWMsYUFBYSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9yb3RhdGUtbm9kZS1maW5hbGl6ZSc7XG5cbmV4cG9ydCAqIGZyb20gJy4vcm90YXRlLW5vZGUtcHJlcGFyYXRpb24nO1xuXG5leHBvcnQgKiBmcm9tICcuL3JvdGF0ZS1ub2RlLWhhbmRsZXInO1xuXG5leHBvcnQgKiBmcm9tICcuL2NhbGN1bGF0ZS1kaWZmZXJlbmNlLWFmdGVyLXJvdGF0aW9uJztcblxuZXhwb3J0ICogZnJvbSAnLi9mLXJvdGF0ZS1ub2RlLXN0YXJ0LWV2ZW50LWRhdGEnO1xuXG5leHBvcnQgKiBmcm9tICcuL2lzLXJvdGF0ZS1ub2RlLWhhbmRsZXInO1xuXG5leHBvcnQgKiBmcm9tICcuL3Byb3ZpZGVycyc7XG4iXX0=
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export const ROTATE_NODE_HANDLER_TYPE = 'node-rotate';
|
|
2
|
+
export const ROTATE_NODE_HANDLER_KIND = 'rotate-node';
|
|
3
|
+
export function isRotateNodeHandler(value) {
|
|
4
|
+
return (value.getEvent().kind === ROTATE_NODE_HANDLER_KIND ||
|
|
5
|
+
value.getEvent().fEventType === ROTATE_NODE_HANDLER_TYPE);
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXMtcm90YXRlLW5vZGUtaGFuZGxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZi1kcmFnZ2FibGUvcm90YXRlLW5vZGUvaXMtcm90YXRlLW5vZGUtaGFuZGxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFHQSxNQUFNLENBQUMsTUFBTSx3QkFBd0IsR0FBRyxhQUFhLENBQUM7QUFDdEQsTUFBTSxDQUFDLE1BQU0sd0JBQXdCLEdBQUcsYUFBYSxDQUFDO0FBRXRELE1BQU0sVUFBVSxtQkFBbUIsQ0FBQyxLQUErQjtJQUNqRSxPQUFPLENBQ0wsS0FBSyxDQUFDLFFBQVEsRUFBRSxDQUFDLElBQUksS0FBSyx3QkFBd0I7UUFDbEQsS0FBSyxDQUFDLFFBQVEsRUFBRSxDQUFDLFVBQVUsS0FBSyx3QkFBd0IsQ0FDekQsQ0FBQztBQUNKLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBEcmFnSGFuZGxlckJhc2UgfSBmcm9tICcuLi9pbmZyYXN0cnVjdHVyZSc7XG5pbXBvcnQgeyBSb3RhdGVOb2RlSGFuZGxlciB9IGZyb20gJy4vcm90YXRlLW5vZGUtaGFuZGxlcic7XG5cbmV4cG9ydCBjb25zdCBST1RBVEVfTk9ERV9IQU5ETEVSX1RZUEUgPSAnbm9kZS1yb3RhdGUnO1xuZXhwb3J0IGNvbnN0IFJPVEFURV9OT0RFX0hBTkRMRVJfS0lORCA9ICdyb3RhdGUtbm9kZSc7XG5cbmV4cG9ydCBmdW5jdGlvbiBpc1JvdGF0ZU5vZGVIYW5kbGVyKHZhbHVlOiBEcmFnSGFuZGxlckJhc2U8dW5rbm93bj4pOiB2YWx1ZSBpcyBSb3RhdGVOb2RlSGFuZGxlciB7XG4gIHJldHVybiAoXG4gICAgdmFsdWUuZ2V0RXZlbnQoKS5raW5kID09PSBST1RBVEVfTk9ERV9IQU5ETEVSX0tJTkQgfHxcbiAgICB2YWx1ZS5nZXRFdmVudCgpLmZFdmVudFR5cGUgPT09IFJPVEFURV9OT0RFX0hBTkRMRVJfVFlQRVxuICApO1xufVxuIl19
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { RotateNodeFinalize } from './rotate-node-finalize';
|
|
2
|
+
import { RotateNodePreparation } from './rotate-node-preparation';
|
|
3
|
+
export const NODE_ROTATE_PROVIDERS = [RotateNodeFinalize, RotateNodePreparation];
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvdmlkZXJzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9mLWRyYWdnYWJsZS9yb3RhdGUtbm9kZS9wcm92aWRlcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDNUQsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFFbEUsTUFBTSxDQUFDLE1BQU0scUJBQXFCLEdBQUcsQ0FBQyxrQkFBa0IsRUFBRSxxQkFBcUIsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgUm90YXRlTm9kZUZpbmFsaXplIH0gZnJvbSAnLi9yb3RhdGUtbm9kZS1maW5hbGl6ZSc7XG5pbXBvcnQgeyBSb3RhdGVOb2RlUHJlcGFyYXRpb24gfSBmcm9tICcuL3JvdGF0ZS1ub2RlLXByZXBhcmF0aW9uJztcblxuZXhwb3J0IGNvbnN0IE5PREVfUk9UQVRFX1BST1ZJREVSUyA9IFtSb3RhdGVOb2RlRmluYWxpemUsIFJvdGF0ZU5vZGVQcmVwYXJhdGlvbl07XG4iXX0=
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './rotate-node-finalize';
|
|
2
|
+
export * from './rotate-node-finalize-request';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2YtZHJhZ2dhYmxlL3JvdGF0ZS1ub2RlL3JvdGF0ZS1ub2RlLWZpbmFsaXplL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsd0JBQXdCLENBQUM7QUFFdkMsY0FBYyxnQ0FBZ0MsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vcm90YXRlLW5vZGUtZmluYWxpemUnO1xuXG5leHBvcnQgKiBmcm9tICcuL3JvdGF0ZS1ub2RlLWZpbmFsaXplLXJlcXVlc3QnO1xuIl19
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export class RotateNodeFinalizeRequest {
|
|
2
|
+
event;
|
|
3
|
+
static fToken = Symbol('RotateNodeFinalizeRequest');
|
|
4
|
+
constructor(event) {
|
|
5
|
+
this.event = event;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm90YXRlLW5vZGUtZmluYWxpemUtcmVxdWVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZi1kcmFnZ2FibGUvcm90YXRlLW5vZGUvcm90YXRlLW5vZGUtZmluYWxpemUvcm90YXRlLW5vZGUtZmluYWxpemUtcmVxdWVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxNQUFNLE9BQU8seUJBQXlCO0lBR1I7SUFGNUIsTUFBTSxDQUFVLE1BQU0sR0FBRyxNQUFNLENBQUMsMkJBQTJCLENBQUMsQ0FBQztJQUU3RCxZQUE0QixLQUFvQjtRQUFwQixVQUFLLEdBQUwsS0FBSyxDQUFlO0lBQUcsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IElQb2ludGVyRXZlbnQgfSBmcm9tICcuLi8uLi8uLi9kcmFnLXRvb2xraXQnO1xuXG5leHBvcnQgY2xhc3MgUm90YXRlTm9kZUZpbmFsaXplUmVxdWVzdCB7XG4gIHN0YXRpYyByZWFkb25seSBmVG9rZW4gPSBTeW1ib2woJ1JvdGF0ZU5vZGVGaW5hbGl6ZVJlcXVlc3QnKTtcblxuICBjb25zdHJ1Y3RvcihwdWJsaWMgcmVhZG9ubHkgZXZlbnQ6IElQb2ludGVyRXZlbnQpIHt9XG59XG4iXX0=
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { inject, Injectable } from '@angular/core';
|
|
3
|
+
import { RotateNodeFinalizeRequest } from './rotate-node-finalize-request';
|
|
4
|
+
import { FExecutionRegister } from '@foblex/mediator';
|
|
5
|
+
import { FDraggableDataContext } from '../../f-draggable-data-context';
|
|
6
|
+
import { isRotateNodeHandler } from '../is-rotate-node-handler';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
let RotateNodeFinalize = class RotateNodeFinalize {
|
|
9
|
+
_dragSession = inject(FDraggableDataContext);
|
|
10
|
+
handle(_request) {
|
|
11
|
+
if (!this._isValid()) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
this._dragSession.draggableItems.forEach((x) => {
|
|
15
|
+
x.onPointerUp?.();
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
_isValid() {
|
|
19
|
+
return this._dragSession.draggableItems.some((x) => isRotateNodeHandler(x));
|
|
20
|
+
}
|
|
21
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RotateNodeFinalize, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
22
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RotateNodeFinalize });
|
|
23
|
+
};
|
|
24
|
+
RotateNodeFinalize = __decorate([
|
|
25
|
+
FExecutionRegister(RotateNodeFinalizeRequest)
|
|
26
|
+
], RotateNodeFinalize);
|
|
27
|
+
export { RotateNodeFinalize };
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RotateNodeFinalize, decorators: [{
|
|
29
|
+
type: Injectable
|
|
30
|
+
}] });
|
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm90YXRlLW5vZGUtZmluYWxpemUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2YtZHJhZ2dhYmxlL3JvdGF0ZS1ub2RlL3JvdGF0ZS1ub2RlLWZpbmFsaXplL3JvdGF0ZS1ub2RlLWZpbmFsaXplLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsTUFB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ZXR1cm4gdGhpcy5fZHJhZ1Nlc3Npb24uZHJhZ2dhYmxlSXRlbXMuc29tZSgoeCkgPT4gaXNSb3RhdGVOb2RlSGFuZGxlcih4KSk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './rotate-node-handler';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2YtZHJhZ2dhYmxlL3JvdGF0ZS1ub2RlL3JvdGF0ZS1ub2RlLWhhbmRsZXIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyx1QkFBdUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vcm90YXRlLW5vZGUtaGFuZGxlcic7XG4iXX0=
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { PointExtensions } from '@foblex/2d';
|
|
2
|
+
import { DragHandlerBase } from '../../infrastructure';
|
|
3
|
+
import { FRotateNodeStartEventData } from '../f-rotate-node-start-event-data';
|
|
4
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
5
|
+
import { FMediator } from '@foblex/mediator';
|
|
6
|
+
import { FDraggableDataContext } from '../../f-draggable-data-context';
|
|
7
|
+
import { inject, Injectable } from '@angular/core';
|
|
8
|
+
import { GetNormalizedElementRectRequest } from '../../../domain';
|
|
9
|
+
import { calculateDifferenceAfterRotation } from '../calculate-difference-after-rotation';
|
|
10
|
+
import { ROTATE_NODE_HANDLER_KIND, ROTATE_NODE_HANDLER_TYPE } from '../is-rotate-node-handler';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export class RotateNodeHandler extends DragHandlerBase {
|
|
13
|
+
type = ROTATE_NODE_HANDLER_TYPE;
|
|
14
|
+
kind = ROTATE_NODE_HANDLER_KIND;
|
|
15
|
+
data() {
|
|
16
|
+
return new FRotateNodeStartEventData(this._nodeOrGroup.fId());
|
|
17
|
+
}
|
|
18
|
+
_store = inject(FComponentsStore);
|
|
19
|
+
_mediator = inject(FMediator);
|
|
20
|
+
_dragSession = inject(FDraggableDataContext);
|
|
21
|
+
_nodeOrGroup;
|
|
22
|
+
_sourceConnections;
|
|
23
|
+
_targetConnections;
|
|
24
|
+
_startRotation = 0;
|
|
25
|
+
_nodeRect;
|
|
26
|
+
_nodeCenter;
|
|
27
|
+
_pointerDownInFlow;
|
|
28
|
+
/**
|
|
29
|
+
* Difference between pointer angle and node rotation at pointer-down.
|
|
30
|
+
* This lets us keep rotation “locked” to the initial grab angle.
|
|
31
|
+
*/
|
|
32
|
+
_rotationOffsetDeg = 0;
|
|
33
|
+
get _transform() {
|
|
34
|
+
return this._store.transform;
|
|
35
|
+
}
|
|
36
|
+
initialize(nodeOrGroup, sourceConnections, targetConnections) {
|
|
37
|
+
this._nodeOrGroup = nodeOrGroup;
|
|
38
|
+
this._sourceConnections = sourceConnections;
|
|
39
|
+
this._targetConnections = targetConnections;
|
|
40
|
+
this._startRotation = this._nodeOrGroup._rotate;
|
|
41
|
+
}
|
|
42
|
+
prepareDragSequence() {
|
|
43
|
+
this._nodeRect = this._readNodeRect();
|
|
44
|
+
this._nodeCenter = this._nodeRect.gravityCenter;
|
|
45
|
+
this._pointerDownInFlow = this._calculatePointerDownInFlow();
|
|
46
|
+
const pointerAngleDeg = this._angleDeg(this._pointerDownInFlow);
|
|
47
|
+
// pointerAngle - nodeRotation => offset
|
|
48
|
+
this._rotationOffsetDeg = pointerAngleDeg - this._startRotation;
|
|
49
|
+
}
|
|
50
|
+
onPointerMove(delta) {
|
|
51
|
+
const pointerPos = PointExtensions.sum(this._pointerDownInFlow, delta);
|
|
52
|
+
const pointerAngleDeg = this._angleDeg(pointerPos);
|
|
53
|
+
const nextRotation = pointerAngleDeg - this._rotationOffsetDeg;
|
|
54
|
+
this._applyRotation(nextRotation);
|
|
55
|
+
const rotationDelta = nextRotation - this._startRotation;
|
|
56
|
+
for (const h of this._sourceConnections) {
|
|
57
|
+
h.connection.setSourceDelta(this._deltaAfterRotation(h.connector, rotationDelta));
|
|
58
|
+
}
|
|
59
|
+
for (const h of this._targetConnections) {
|
|
60
|
+
h.connection.setTargetDelta(this._deltaAfterRotation(h.connector, rotationDelta));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
onPointerUp() {
|
|
64
|
+
this._nodeOrGroup.rotate.set(this._nodeOrGroup._rotate);
|
|
65
|
+
this._nodeOrGroup.refresh();
|
|
66
|
+
}
|
|
67
|
+
_readNodeRect() {
|
|
68
|
+
return this._mediator.execute(new GetNormalizedElementRectRequest(this._nodeOrGroup.hostElement));
|
|
69
|
+
}
|
|
70
|
+
_calculatePointerDownInFlow() {
|
|
71
|
+
return PointExtensions.sub(this._dragSession.onPointerDownPosition, PointExtensions.sum(this._transform.position, this._transform.scaledPosition));
|
|
72
|
+
}
|
|
73
|
+
_angleDeg(p) {
|
|
74
|
+
return Math.atan2(p.y - this._nodeCenter.y, p.x - this._nodeCenter.x) * (180 / Math.PI);
|
|
75
|
+
}
|
|
76
|
+
_applyRotation(rotationDeg) {
|
|
77
|
+
this._nodeOrGroup.updateRotate(rotationDeg);
|
|
78
|
+
this._nodeOrGroup.redraw();
|
|
79
|
+
}
|
|
80
|
+
_deltaAfterRotation(connector, rotationDeltaDeg) {
|
|
81
|
+
return calculateDifferenceAfterRotation(connector, rotationDeltaDeg, this._nodeCenter);
|
|
82
|
+
}
|
|
83
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RotateNodeHandler, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
84
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RotateNodeHandler });
|
|
85
|
+
}
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RotateNodeHandler, decorators: [{
|
|
87
|
+
type: Injectable
|
|
88
|
+
}] });
|
|
89
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm90YXRlLW5vZGUtaGFuZGxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZi1kcmFnZ2FibGUvcm90YXRlLW5vZGUvcm90YXRlLW5vZGUtaGFuZGxlci9yb3RhdGUtbm9kZS1oYW5kbGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBa0MsZUFBZSxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBQzdFLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUN2RCxPQUFPLEVBQUUseUJBQXlCLEVBQUUsTUFBTSxtQ0FBbUMsQ0FBQztBQUM5RSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUN0RCxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDN0MsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sZ0NBQWdDLENBQUM7QUFDdkUsT0FBTyxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFHbkQsT0FBTyxFQUFFLCtCQUErQixFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDbEUsT0FBTyxFQUFFLGdDQUFnQyxFQUFFLE1BQU0sd0NBQXdDLENBQUM7QUFDMUYsT0FBTyxFQUFFLHdCQUF3QixFQUFFLHdCQUF3QixFQUFFLE1BQU0sMkJBQTJCLENBQUM7O0FBUS9GLE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from './rotate-node-preparation-request';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2YtZHJhZ2dhYmxlL3JvdGF0ZS1ub2RlL3JvdGF0ZS1ub2RlLXByZXBhcmF0aW9uL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsMkJBQTJCLENBQUM7QUFFMUMsY0FBYyxtQ0FBbUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vcm90YXRlLW5vZGUtcHJlcGFyYXRpb24nO1xuXG5leHBvcnQgKiBmcm9tICcuL3JvdGF0ZS1ub2RlLXByZXBhcmF0aW9uLXJlcXVlc3QnO1xuIl19
|
package/esm2022/f-draggable/rotate-node/rotate-node-preparation/rotate-node-preparation-request.mjs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export class RotateNodePreparationRequest {
|
|
2
|
+
event;
|
|
3
|
+
fTrigger;
|
|
4
|
+
static fToken = Symbol('RotateNodePreparationRequest');
|
|
5
|
+
constructor(event, fTrigger) {
|
|
6
|
+
this.event = event;
|
|
7
|
+
this.fTrigger = fTrigger;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm90YXRlLW5vZGUtcHJlcGFyYXRpb24tcmVxdWVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZi1kcmFnZ2FibGUvcm90YXRlLW5vZGUvcm90YXRlLW5vZGUtcHJlcGFyYXRpb24vcm90YXRlLW5vZGUtcHJlcGFyYXRpb24t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