@foblex/flow 18.1.1 → 18.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +71 -35
- package/domain/f-canvas/add-canvas-to-store/add-canvas-to-store-request.d.ts +2 -2
- package/domain/f-canvas/add-canvas-to-store/add-canvas-to-store.d.ts +12 -0
- package/domain/f-canvas/add-canvas-to-store/index.d.ts +1 -1
- package/domain/f-canvas/center-group-or-node/center-group-or-node.d.ts +17 -0
- package/domain/f-canvas/center-group-or-node/index.d.ts +1 -1
- package/domain/f-canvas/fit-to-flow/fit-to-flow-request.d.ts +2 -2
- package/domain/f-canvas/fit-to-flow/fit-to-flow.d.ts +17 -0
- package/domain/f-canvas/fit-to-flow/index.d.ts +1 -1
- package/domain/f-canvas/index.d.ts +0 -1
- package/domain/f-canvas/input-canvas-position/index.d.ts +1 -1
- package/domain/f-canvas/input-canvas-position/input-canvas-position-request.d.ts +2 -2
- package/domain/f-canvas/input-canvas-position/input-canvas-position.d.ts +13 -0
- package/domain/f-canvas/input-canvas-scale/index.d.ts +1 -1
- package/domain/f-canvas/input-canvas-scale/input-canvas-scale.d.ts +13 -0
- package/domain/f-canvas/providers.d.ts +11 -12
- package/domain/f-canvas/redraw-canvas-with-animation/index.d.ts +1 -1
- package/domain/f-canvas/redraw-canvas-with-animation/redraw-canvas-with-animation.d.ts +17 -0
- package/domain/f-canvas/remove-canvas-from-store/index.d.ts +1 -1
- package/domain/f-canvas/remove-canvas-from-store/remove-canvas-from-store.d.ts +12 -0
- package/domain/f-canvas/reset-scale/index.d.ts +1 -1
- package/domain/f-canvas/reset-scale/reset-scale.d.ts +13 -0
- package/domain/f-canvas/reset-scale-and-center/index.d.ts +1 -1
- package/domain/f-canvas/reset-scale-and-center/reset-scale-and-center-request.d.ts +1 -1
- package/domain/f-canvas/reset-scale-and-center/reset-scale-and-center.d.ts +17 -0
- package/domain/f-canvas/update-scale/index.d.ts +1 -1
- package/domain/f-canvas/update-scale/update-scale-request.d.ts +2 -2
- package/domain/f-canvas/update-scale/update-scale.d.ts +14 -0
- package/domain/f-connection/redraw-connections/redraw-connections.d.ts +17 -2
- package/domain/f-connectors/add-connector-to-store/add-connector-to-store.d.ts +2 -0
- package/domain/f-connectors/find-connectable-connector-using-priority-and-position/find-connectable-connector-using-priority-and-position.d.ts +30 -0
- package/domain/f-connectors/find-connectable-connector-using-priority-and-position/index.d.ts +2 -2
- package/domain/f-connectors/providers.d.ts +2 -2
- package/domain/f-connectors/remove-connector-from-store/remove-connector-from-store.d.ts +2 -0
- package/domain/f-draggable/add-dnd-to-store/add-dnd-to-store.d.ts +12 -0
- package/domain/f-draggable/add-dnd-to-store/index.d.ts +1 -1
- package/domain/f-draggable/initialize-drag-sequence/index.d.ts +1 -1
- package/domain/f-draggable/initialize-drag-sequence/initialize-drag-sequence.d.ts +12 -0
- package/domain/f-draggable/is-drag-started/is-drag-started.d.ts +1 -1
- package/domain/f-draggable/on-pointer-move/index.d.ts +1 -1
- package/domain/f-draggable/on-pointer-move/on-pointer-move.d.ts +19 -0
- package/domain/f-draggable/prepare-drag-sequence/index.d.ts +1 -1
- package/domain/f-draggable/prepare-drag-sequence/prepare-drag-sequence.d.ts +14 -0
- package/domain/f-draggable/providers.d.ts +6 -6
- package/domain/f-draggable/remove-dnd-from-store/index.d.ts +1 -1
- package/domain/f-draggable/remove-dnd-from-store/remove-dnd-from-store.d.ts +12 -0
- package/domain/f-flow/add-flow-to-store/add-flow-to-store.d.ts +12 -0
- package/domain/f-flow/add-flow-to-store/index.d.ts +1 -1
- package/domain/f-flow/get-flow/get-flow.d.ts +13 -0
- package/domain/f-flow/get-flow/index.d.ts +1 -1
- package/domain/f-flow/providers.d.ts +4 -4
- package/domain/f-flow/remove-flow-from-store/index.d.ts +1 -1
- package/domain/f-flow/remove-flow-from-store/remove-flow-from-store.d.ts +12 -0
- package/domain/f-node/add-node-to-store/add-node-to-store.d.ts +1 -0
- package/domain/f-node/calculate-nodes-bounding-box/calculate-nodes-bounding-box.d.ts +2 -2
- package/domain/f-node/calculate-nodes-bounding-box/index.d.ts +1 -1
- package/domain/f-node/calculate-nodes-bounding-box-normalized-position/calculate-nodes-bounding-box-normalized-position.d.ts +3 -1
- package/domain/f-node/calculate-nodes-bounding-box-normalized-position/index.d.ts +1 -1
- package/domain/f-node/get-child-node-ids/get-child-node-ids.d.ts +1 -1
- package/domain/f-node/get-child-node-ids/index.d.ts +1 -1
- package/domain/f-node/get-node-padding/get-node-padding.d.ts +8 -3
- package/domain/f-node/get-node-padding/index.d.ts +1 -1
- package/domain/f-node/get-parent-nodes/get-parent-nodes.d.ts +1 -1
- package/domain/f-node/get-parent-nodes/index.d.ts +1 -1
- package/domain/f-node/remove-node-from-store/remove-node-from-store.d.ts +1 -0
- package/domain/f-selection/calculate-selectable-items/calculate-selectable-items.d.ts +0 -1
- package/domain/f-selection/clear-selection/clear-selection.d.ts +12 -0
- package/domain/f-selection/clear-selection/index.d.ts +2 -2
- package/domain/f-selection/get-current-selection/get-current-selection.d.ts +16 -0
- package/domain/f-selection/get-current-selection/index.d.ts +2 -2
- package/domain/f-selection/index.d.ts +1 -1
- package/domain/f-selection/providers.d.ts +4 -4
- package/domain/f-selection/select-items/index.d.ts +2 -0
- package/domain/f-selection/select-items/select.d.ts +13 -0
- package/domain/f-zoom/set-zoom/set-zoom-request.d.ts +4 -4
- package/domain/f-zoom/set-zoom/set-zoom.d.ts +3 -0
- package/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups-request.d.ts +5 -0
- package/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.d.ts +15 -0
- package/domain/get-deep-children-nodes-and-groups/index.d.ts +2 -2
- package/domain/get-normalized-connector-rect/get-normalized-connector-rect-request.d.ts +3 -2
- package/domain/get-normalized-connector-rect/get-normalized-connector-rect.d.ts +26 -0
- package/domain/get-normalized-connector-rect/index.d.ts +1 -1
- package/domain/get-normalized-element-rect/get-normalized-element-rect.d.ts +22 -0
- package/domain/get-normalized-element-rect/index.d.ts +1 -1
- package/domain/get-normalized-point/get-normalized-point-request.d.ts +1 -1
- package/domain/get-normalized-point/get-normalized-point.d.ts +15 -0
- package/domain/get-normalized-point/index.d.ts +1 -1
- package/domain/index.d.ts +1 -2
- package/domain/minimap/f-minimap-state.d.ts +7 -0
- package/domain/minimap/index.d.ts +5 -0
- package/domain/minimap/minimap-calculate-view-rect/index.d.ts +2 -0
- package/domain/minimap/minimap-calculate-view-rect/minimap-calculate-view-rect-request.d.ts +3 -0
- package/domain/minimap/minimap-calculate-view-rect/minimap-calculate-view-rect.d.ts +10 -0
- package/domain/minimap/minimap-calculate-viewport/i-minimap-viewport.d.ts +5 -0
- package/domain/minimap/minimap-calculate-viewport/index.d.ts +3 -0
- package/domain/minimap/minimap-calculate-viewport/minimap-calculate-viewport-request.d.ts +6 -0
- package/domain/minimap/minimap-calculate-viewport/minimap-calculate-viewport.d.ts +17 -0
- package/domain/minimap/minimap-draw-nodes/index.d.ts +2 -0
- package/domain/minimap/minimap-draw-nodes/minimap-draw-nodes.d.ts +13 -0
- package/domain/minimap/providers.d.ts +4 -0
- package/domain/providers.d.ts +6 -7
- package/domain/sort-item-layers/sort-item-layers.d.ts +1 -1
- package/domain/sort-item-layers/sort-items-by-parent/index.d.ts +2 -2
- package/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent-request.d.ts +5 -0
- package/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.d.ts +20 -0
- package/domain/sort-item-layers/sort-node-layers-by-groups/index.d.ts +2 -2
- package/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.d.ts +24 -0
- package/esm2022/domain/f-canvas/add-canvas-to-store/add-canvas-to-store-request.mjs +4 -4
- package/esm2022/domain/f-canvas/add-canvas-to-store/add-canvas-to-store.mjs +25 -0
- package/esm2022/domain/f-canvas/add-canvas-to-store/index.mjs +2 -2
- package/esm2022/domain/f-canvas/center-group-or-node/center-group-or-node.mjs +46 -0
- package/esm2022/domain/f-canvas/center-group-or-node/index.mjs +2 -2
- package/esm2022/domain/f-canvas/fit-to-flow/fit-to-flow-request.mjs +1 -1
- package/esm2022/domain/f-canvas/fit-to-flow/fit-to-flow.mjs +58 -0
- package/esm2022/domain/f-canvas/fit-to-flow/index.mjs +2 -2
- package/esm2022/domain/f-canvas/index.mjs +1 -2
- package/esm2022/domain/f-canvas/input-canvas-position/index.mjs +2 -2
- package/esm2022/domain/f-canvas/input-canvas-position/input-canvas-position-request.mjs +1 -1
- package/esm2022/domain/f-canvas/input-canvas-position/input-canvas-position.mjs +36 -0
- package/esm2022/domain/f-canvas/input-canvas-scale/index.mjs +2 -2
- package/esm2022/domain/f-canvas/input-canvas-scale/input-canvas-scale.mjs +30 -0
- package/esm2022/domain/f-canvas/providers.mjs +21 -23
- package/esm2022/domain/f-canvas/redraw-canvas-with-animation/index.mjs +2 -2
- package/esm2022/domain/f-canvas/redraw-canvas-with-animation/redraw-canvas-with-animation.mjs +40 -0
- package/esm2022/domain/f-canvas/remove-canvas-from-store/index.mjs +2 -2
- package/esm2022/domain/f-canvas/remove-canvas-from-store/remove-canvas-from-store.mjs +25 -0
- package/esm2022/domain/f-canvas/reset-scale/index.mjs +2 -2
- package/esm2022/domain/f-canvas/reset-scale/reset-scale.mjs +30 -0
- package/esm2022/domain/f-canvas/reset-scale-and-center/index.mjs +2 -2
- package/esm2022/domain/f-canvas/reset-scale-and-center/reset-scale-and-center-request.mjs +1 -1
- package/esm2022/domain/f-canvas/reset-scale-and-center/reset-scale-and-center.mjs +50 -0
- package/esm2022/domain/f-canvas/update-scale/index.mjs +2 -2
- package/esm2022/domain/f-canvas/update-scale/update-scale-request.mjs +1 -1
- package/esm2022/domain/f-canvas/update-scale/update-scale.mjs +37 -0
- package/esm2022/domain/f-connection/add-connection-marker-to-store/add-connection-marker-to-store.mjs +2 -2
- package/esm2022/domain/f-connection/add-connection-to-store/add-connection-to-store.mjs +2 -2
- package/esm2022/domain/f-connection/redraw-connections/redraw-connections.mjs +173 -17
- package/esm2022/domain/f-connection/remove-connection-from-store/remove-connection-from-store.mjs +2 -2
- package/esm2022/domain/f-connection/remove-connection-marker-from-store/remove-connection-marker-from-store.mjs +2 -2
- package/esm2022/domain/f-connectors/add-connector-to-store/add-connector-to-store.mjs +13 -5
- package/esm2022/domain/f-connectors/find-connectable-connector-using-priority-and-position/find-connectable-connector-using-priority-and-position-request.mjs +10 -0
- package/esm2022/domain/f-connectors/find-connectable-connector-using-priority-and-position/find-connectable-connector-using-priority-and-position.mjs +98 -0
- package/esm2022/domain/f-connectors/find-connectable-connector-using-priority-and-position/index.mjs +3 -3
- package/esm2022/domain/f-connectors/get-connector-rect-reference/get-connector-rect-reference.mjs +1 -1
- package/esm2022/domain/f-connectors/providers.mjs +3 -3
- package/esm2022/domain/f-connectors/remove-connector-from-store/remove-connector-from-store.mjs +13 -5
- package/esm2022/domain/f-draggable/add-dnd-to-store/add-dnd-to-store.mjs +25 -0
- package/esm2022/domain/f-draggable/add-dnd-to-store/index.mjs +2 -2
- package/esm2022/domain/f-draggable/initialize-drag-sequence/index.mjs +2 -2
- package/esm2022/domain/f-draggable/initialize-drag-sequence/initialize-drag-sequence.mjs +25 -0
- package/esm2022/domain/f-draggable/is-drag-started/is-drag-started.mjs +2 -2
- package/esm2022/domain/f-draggable/on-pointer-move/index.mjs +2 -2
- package/esm2022/domain/f-draggable/on-pointer-move/on-pointer-move.mjs +46 -0
- package/esm2022/domain/f-draggable/prepare-drag-sequence/index.mjs +2 -2
- package/esm2022/domain/f-draggable/prepare-drag-sequence/prepare-drag-sequence.mjs +30 -0
- package/esm2022/domain/f-draggable/providers.mjs +11 -11
- package/esm2022/domain/f-draggable/remove-dnd-from-store/index.mjs +2 -2
- package/esm2022/domain/f-draggable/remove-dnd-from-store/remove-dnd-from-store.mjs +25 -0
- package/esm2022/domain/f-flow/add-flow-to-store/add-flow-to-store.mjs +25 -0
- package/esm2022/domain/f-flow/add-flow-to-store/index.mjs +2 -2
- package/esm2022/domain/f-flow/get-flow/get-flow.mjs +29 -0
- package/esm2022/domain/f-flow/get-flow/index.mjs +2 -2
- package/esm2022/domain/f-flow/providers.mjs +7 -7
- package/esm2022/domain/f-flow/remove-flow-from-store/index.mjs +2 -2
- package/esm2022/domain/f-flow/remove-flow-from-store/remove-flow-from-store.mjs +25 -0
- package/esm2022/domain/f-node/add-node-to-store/add-node-to-store.mjs +6 -3
- package/esm2022/domain/f-node/calculate-connectors-connectable-sides/calculate-connectable-side-by-connected-positions/calculate-connectable-side-by-connected-positions.mjs +1 -1
- package/esm2022/domain/f-node/calculate-nodes-bounding-box/calculate-nodes-bounding-box-request.mjs +4 -0
- package/esm2022/domain/f-node/calculate-nodes-bounding-box/calculate-nodes-bounding-box.mjs +3 -3
- package/esm2022/domain/f-node/calculate-nodes-bounding-box/index.mjs +2 -2
- package/esm2022/domain/f-node/calculate-nodes-bounding-box-normalized-position/calculate-nodes-bounding-box-normalized-position-request.mjs +8 -0
- package/esm2022/domain/f-node/calculate-nodes-bounding-box-normalized-position/calculate-nodes-bounding-box-normalized-position.mjs +17 -8
- package/esm2022/domain/f-node/calculate-nodes-bounding-box-normalized-position/index.mjs +2 -2
- package/esm2022/domain/f-node/fit-to-child-nodes-and-groups/fit-to-child-nodes-and-groups.mjs +2 -2
- package/esm2022/domain/f-node/get-child-node-ids/get-child-node-ids-request.mjs +8 -0
- package/esm2022/domain/f-node/get-child-node-ids/get-child-node-ids.mjs +2 -2
- package/esm2022/domain/f-node/get-child-node-ids/index.mjs +2 -2
- package/esm2022/domain/f-node/get-node-padding/get-node-padding-request.mjs +10 -0
- package/esm2022/domain/f-node/get-node-padding/get-node-padding.mjs +6 -4
- package/esm2022/domain/f-node/get-node-padding/index.mjs +2 -2
- package/esm2022/domain/f-node/get-parent-nodes/get-parent-nodes-request.mjs +8 -0
- package/esm2022/domain/f-node/get-parent-nodes/get-parent-nodes.mjs +2 -2
- package/esm2022/domain/f-node/get-parent-nodes/index.mjs +2 -2
- package/esm2022/domain/f-node/remove-node-from-store/remove-node-from-store.mjs +6 -3
- package/esm2022/domain/f-node/update-node-when-state-or-size-changed/update-node-when-state-or-size-changed.mjs +7 -6
- package/esm2022/domain/f-selection/calculate-selectable-items/calculate-selectable-items.mjs +3 -7
- package/esm2022/domain/f-selection/clear-selection/clear-selection-request.mjs +4 -0
- package/esm2022/domain/f-selection/clear-selection/clear-selection.mjs +27 -0
- package/esm2022/domain/f-selection/clear-selection/index.mjs +3 -3
- package/esm2022/domain/f-selection/get-current-selection/get-current-selection-request.mjs +4 -0
- package/esm2022/domain/f-selection/get-current-selection/get-current-selection.mjs +45 -0
- package/esm2022/domain/f-selection/get-current-selection/index.mjs +3 -3
- package/esm2022/domain/f-selection/index.mjs +2 -2
- package/esm2022/domain/f-selection/providers.mjs +7 -7
- package/esm2022/domain/f-selection/select-items/index.mjs +3 -0
- package/esm2022/domain/f-selection/select-items/select-request.mjs +12 -0
- package/esm2022/domain/f-selection/select-items/select.mjs +45 -0
- package/esm2022/domain/f-zoom/set-zoom/set-zoom-request.mjs +1 -1
- package/esm2022/domain/f-zoom/set-zoom/set-zoom.mjs +62 -4
- package/esm2022/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups-request.mjs +8 -0
- package/esm2022/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.mjs +38 -0
- package/esm2022/domain/get-deep-children-nodes-and-groups/index.mjs +3 -3
- package/esm2022/domain/get-normalized-connector-rect/get-normalized-connector-rect-request.mjs +4 -2
- package/esm2022/domain/get-normalized-connector-rect/get-normalized-connector-rect.mjs +71 -0
- package/esm2022/domain/get-normalized-connector-rect/index.mjs +2 -2
- package/esm2022/domain/get-normalized-element-rect/get-normalized-element-rect.mjs +60 -0
- package/esm2022/domain/get-normalized-element-rect/index.mjs +2 -2
- package/esm2022/domain/get-normalized-point/get-normalized-point-request.mjs +1 -1
- package/esm2022/domain/get-normalized-point/get-normalized-point.mjs +28 -0
- package/esm2022/domain/get-normalized-point/index.mjs +2 -2
- package/esm2022/domain/index.mjs +2 -3
- package/esm2022/domain/minimap/f-minimap-state.mjs +12 -0
- package/esm2022/domain/minimap/index.mjs +6 -0
- package/esm2022/domain/minimap/minimap-calculate-view-rect/index.mjs +3 -0
- package/esm2022/domain/minimap/minimap-calculate-view-rect/minimap-calculate-view-rect-request.mjs +4 -0
- package/esm2022/domain/minimap/minimap-calculate-view-rect/minimap-calculate-view-rect.mjs +32 -0
- package/esm2022/domain/minimap/minimap-calculate-viewport/i-minimap-viewport.mjs +2 -0
- package/esm2022/domain/minimap/minimap-calculate-viewport/index.mjs +4 -0
- package/esm2022/domain/minimap/minimap-calculate-viewport/minimap-calculate-viewport-request.mjs +10 -0
- package/esm2022/domain/minimap/minimap-calculate-viewport/minimap-calculate-viewport.mjs +62 -0
- package/esm2022/domain/minimap/minimap-draw-nodes/index.mjs +3 -0
- package/esm2022/domain/minimap/minimap-draw-nodes/minimap-draw-nodes-request.mjs +4 -0
- package/esm2022/domain/minimap/minimap-draw-nodes/minimap-draw-nodes.mjs +52 -0
- package/esm2022/domain/minimap/providers.mjs +9 -0
- package/esm2022/domain/providers.mjs +16 -14
- package/esm2022/domain/sort-item-layers/sort-item-layers.mjs +9 -5
- package/esm2022/domain/sort-item-layers/sort-items-by-parent/index.mjs +3 -3
- package/esm2022/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent-request.mjs +8 -0
- package/esm2022/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.mjs +124 -0
- package/esm2022/domain/sort-item-layers/sort-node-layers-by-groups/index.mjs +3 -3
- package/esm2022/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers-request.mjs +4 -0
- package/esm2022/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.mjs +65 -0
- package/esm2022/f-cache/config/f-cache-options.mjs +20 -0
- package/esm2022/f-cache/config/index.mjs +2 -0
- package/esm2022/f-cache/features/f-cache-connectors/index.mjs +3 -0
- package/esm2022/f-cache/features/f-cache-connectors/register-connector/index.mjs +3 -0
- package/esm2022/f-cache/features/f-cache-connectors/register-connector/register-connector-request.mjs +14 -0
- package/esm2022/f-cache/features/f-cache-connectors/register-connector/register-connector.mjs +51 -0
- package/esm2022/f-cache/features/f-cache-connectors/unregister-connector/index.mjs +3 -0
- package/esm2022/f-cache/features/f-cache-connectors/unregister-connector/unregister-connector-request.mjs +10 -0
- package/esm2022/f-cache/features/f-cache-connectors/unregister-connector/unregister-connector.mjs +49 -0
- package/esm2022/f-cache/features/f-cache-nodes/index.mjs +4 -0
- package/esm2022/f-cache/features/f-cache-nodes/invalidate-node/index.mjs +3 -0
- package/esm2022/f-cache/features/f-cache-nodes/invalidate-node/invalidate-node-request.mjs +10 -0
- package/esm2022/f-cache/features/f-cache-nodes/invalidate-node/invalidate-node.mjs +41 -0
- package/esm2022/f-cache/features/f-cache-nodes/register-node/index.mjs +3 -0
- package/esm2022/f-cache/features/f-cache-nodes/register-node/register-node-request.mjs +12 -0
- package/esm2022/f-cache/features/f-cache-nodes/register-node/register-node.mjs +30 -0
- package/esm2022/f-cache/features/f-cache-nodes/unregister-node/index.mjs +3 -0
- package/esm2022/f-cache/features/f-cache-nodes/unregister-node/unregister-node-request.mjs +8 -0
- package/esm2022/f-cache/features/f-cache-nodes/unregister-node/unregister-node.mjs +43 -0
- package/esm2022/f-cache/features/f-cache-rects/get-cached-rect/get-cached-rect-request.mjs +8 -0
- package/esm2022/f-cache/features/f-cache-rects/get-cached-rect/get-cached-rect.mjs +38 -0
- package/esm2022/f-cache/features/f-cache-rects/get-cached-rect/index.mjs +3 -0
- package/esm2022/f-cache/features/f-cache-rects/index.mjs +5 -0
- package/esm2022/f-cache/features/f-cache-rects/set-connector-rect/index.mjs +3 -0
- package/esm2022/f-cache/features/f-cache-rects/set-connector-rect/set-connector-rect-request.mjs +12 -0
- package/esm2022/f-cache/features/f-cache-rects/set-connector-rect/set-connector-rect.mjs +33 -0
- package/esm2022/f-cache/features/f-cache-rects/set-node-rect/index.mjs +3 -0
- package/esm2022/f-cache/features/f-cache-rects/set-node-rect/set-node-rect-request.mjs +10 -0
- package/esm2022/f-cache/features/f-cache-rects/set-node-rect/set-node-rect.mjs +64 -0
- package/esm2022/f-cache/features/f-cache-rects/update-rect-by-element/index.mjs +3 -0
- package/esm2022/f-cache/features/f-cache-rects/update-rect-by-element/update-rect-by-element-request.mjs +10 -0
- package/esm2022/f-cache/features/f-cache-rects/update-rect-by-element/update-rect-by-element.mjs +42 -0
- package/esm2022/f-cache/features/index.mjs +4 -0
- package/esm2022/f-cache/index.mjs +5 -0
- package/esm2022/f-cache/model/f-cache-connector-key.mjs +6 -0
- package/esm2022/f-cache/model/f-cache-connector.mjs +17 -0
- package/esm2022/f-cache/model/f-cache-node.mjs +13 -0
- package/esm2022/f-cache/model/f-cache.mjs +15 -0
- package/esm2022/f-cache/model/i-f-cache-node-ref.mjs +2 -0
- package/esm2022/f-cache/model/index.mjs +6 -0
- package/esm2022/f-cache/providers.mjs +15 -0
- package/esm2022/f-canvas/f-canvas.component.mjs +14 -7
- package/esm2022/f-connection/f-connection/f-connection.component.mjs +3 -3
- package/esm2022/f-connection/f-connection-for-create/f-connection-for-create.component.mjs +3 -3
- package/esm2022/f-connection/f-snap-connection/f-snap-connection.component.mjs +3 -3
- package/esm2022/f-connection-v2/components/connection-content/f-connection-content.mjs +3 -3
- package/esm2022/f-connection-v2/components/connection-content/utils/polyline-content-place.mjs +3 -3
- package/esm2022/f-connection-v2/components/connection-waypoints/f-connection-waypoints.mjs +3 -3
- package/esm2022/f-connection-worker/features/calculate-connection-worker-connector-rect/calculate-connection-worker-connector-rect-request.mjs +10 -0
- package/esm2022/f-connection-worker/features/calculate-connection-worker-connector-rect/calculate-connection-worker-connector-rect.mjs +31 -0
- package/esm2022/f-connection-worker/features/calculate-connection-worker-connector-rect/index.mjs +3 -0
- package/esm2022/f-connection-worker/features/calculate-connection-worker-payload-item/calculate-connection-worker-payload-item-request.mjs +10 -0
- package/esm2022/f-connection-worker/features/calculate-connection-worker-payload-item/calculate-connection-worker-payload-item.mjs +45 -0
- package/esm2022/f-connection-worker/features/calculate-connection-worker-payload-item/index.mjs +3 -0
- package/esm2022/f-connection-worker/features/calculate-connections-using-connection-worker/calculate-connections-using-connection-worker-request.mjs +10 -0
- package/esm2022/f-connection-worker/features/calculate-connections-using-connection-worker/calculate-connections-using-connection-worker.mjs +41 -0
- package/esm2022/f-connection-worker/features/calculate-connections-using-connection-worker/index.mjs +3 -0
- package/esm2022/f-connection-worker/features/connection-worker-run/connection-worker-run-request.mjs +8 -0
- package/esm2022/f-connection-worker/features/connection-worker-run/connection-worker-run.mjs +59 -0
- package/esm2022/f-connection-worker/features/connection-worker-run/index.mjs +3 -0
- package/esm2022/f-connection-worker/features/disable-connection-worker/disable-connection-worker-request.mjs +8 -0
- package/esm2022/f-connection-worker/features/disable-connection-worker/disable-connection-worker.mjs +25 -0
- package/esm2022/f-connection-worker/features/disable-connection-worker/index.mjs +3 -0
- package/esm2022/f-connection-worker/features/ensure-connection-worker/ensure-connection-worker-request.mjs +4 -0
- package/esm2022/f-connection-worker/features/ensure-connection-worker/ensure-connection-worker.mjs +61 -0
- package/esm2022/f-connection-worker/features/ensure-connection-worker/index.mjs +3 -0
- package/esm2022/f-connection-worker/features/handle-connection-worker-message/handle-connection-worker-message-request.mjs +8 -0
- package/esm2022/f-connection-worker/features/handle-connection-worker-message/handle-connection-worker-message.mjs +34 -0
- package/esm2022/f-connection-worker/features/handle-connection-worker-message/index.mjs +3 -0
- package/esm2022/f-connection-worker/features/index.mjs +13 -0
- package/esm2022/f-connection-worker/features/is-connection-worker-enabled/index.mjs +3 -0
- package/esm2022/f-connection-worker/features/is-connection-worker-enabled/is-connection-worker-enabled-request.mjs +4 -0
- package/esm2022/f-connection-worker/features/is-connection-worker-enabled/is-connection-worker-enabled.mjs +34 -0
- package/esm2022/f-connection-worker/features/reset-connection-worker-runtime/index.mjs +3 -0
- package/esm2022/f-connection-worker/features/reset-connection-worker-runtime/reset-connection-worker-runtime-request.mjs +8 -0
- package/esm2022/f-connection-worker/features/reset-connection-worker-runtime/reset-connection-worker-runtime.mjs +22 -0
- package/esm2022/f-connection-worker/features/resolve-connection-worker-connectors/index.mjs +3 -0
- package/esm2022/f-connection-worker/features/resolve-connection-worker-connectors/resolve-connection-worker-connectors-request.mjs +8 -0
- package/esm2022/f-connection-worker/features/resolve-connection-worker-connectors/resolve-connection-worker-connectors.mjs +27 -0
- package/esm2022/f-connection-worker/features/resolve-connection-worker-context/index.mjs +3 -0
- package/esm2022/f-connection-worker/features/resolve-connection-worker-context/resolve-connection-worker-context-request.mjs +10 -0
- package/esm2022/f-connection-worker/features/resolve-connection-worker-context/resolve-connection-worker-context.mjs +36 -0
- package/esm2022/f-connection-worker/features/should-use-connection-worker/index.mjs +3 -0
- package/esm2022/f-connection-worker/features/should-use-connection-worker/should-use-connection-worker-request.mjs +8 -0
- package/esm2022/f-connection-worker/features/should-use-connection-worker/should-use-connection-worker.mjs +22 -0
- package/esm2022/f-connection-worker/index.mjs +4 -0
- package/esm2022/f-connection-worker/model/f-connection-worker.mjs +23 -0
- package/esm2022/f-connection-worker/model/i-f-connection-worker-rect.mjs +2 -0
- package/esm2022/f-connection-worker/model/i-f-connection-worker-request-item.mjs +2 -0
- package/esm2022/f-connection-worker/model/i-f-connection-worker-response.mjs +2 -0
- package/esm2022/f-connection-worker/model/i-f-connection-worker-result-item.mjs +2 -0
- package/esm2022/f-connection-worker/model/index.mjs +7 -0
- package/esm2022/f-connection-worker/model/t-f-connection-worker-pending-request.mjs +2 -0
- package/esm2022/f-connection-worker/providers.mjs +18 -0
- package/esm2022/f-draggable/connection/drag-connection-waypoint/drag-connection-waypoint-preparation/drag-connection-waypoint-preparation.mjs +2 -2
- package/esm2022/f-draggable/connection/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.mjs +2 -2
- package/esm2022/f-draggable/domain/detect-connections-under-drag-node/detect-connections-under-drag-node.mjs +2 -2
- package/esm2022/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect-request.mjs +8 -0
- package/esm2022/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.mjs +67 -0
- package/esm2022/f-draggable/domain/get-normalized-parent-node-rect/index.mjs +3 -3
- package/esm2022/f-draggable/domain/is-array-has-parent-node/index.mjs +3 -3
- package/esm2022/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node-request.mjs +10 -0
- package/esm2022/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.mjs +26 -0
- package/esm2022/f-draggable/domain/providers.mjs +5 -5
- package/esm2022/f-draggable/drag-external-item/constraints/external-rect-constraint.mjs +46 -0
- package/esm2022/f-draggable/drag-external-item/constraints/index.mjs +2 -0
- package/esm2022/f-draggable/drag-external-item/drag-external-item-create-placeholder/drag-external-item-create-placeholder-request.mjs +8 -0
- package/esm2022/f-draggable/drag-external-item/drag-external-item-create-placeholder/drag-external-item-create-placeholder.mjs +42 -0
- package/esm2022/f-draggable/drag-external-item/drag-external-item-create-placeholder/index.mjs +3 -0
- package/esm2022/f-draggable/drag-external-item/drag-external-item-create-preview/drag-external-item-create-preview-request.mjs +8 -0
- package/esm2022/f-draggable/drag-external-item/drag-external-item-create-preview/drag-external-item-create-preview.mjs +53 -0
- package/esm2022/f-draggable/drag-external-item/drag-external-item-create-preview/index.mjs +3 -0
- package/esm2022/f-draggable/drag-external-item/drag-external-item-finalize/drag-external-item-finalize-request.mjs +8 -0
- package/esm2022/f-draggable/drag-external-item/drag-external-item-finalize/drag-external-item-finalize.mjs +75 -0
- package/esm2022/f-draggable/drag-external-item/drag-external-item-finalize/index.mjs +3 -0
- package/esm2022/f-draggable/drag-external-item/drag-external-item-handler/drag-external-item-handler.mjs +206 -0
- package/esm2022/f-draggable/drag-external-item/drag-external-item-handler/index.mjs +2 -0
- package/esm2022/f-draggable/drag-external-item/drag-external-item-preparation/drag-external-item-preparation-request.mjs +10 -0
- package/esm2022/f-draggable/drag-external-item/drag-external-item-preparation/drag-external-item-preparation.mjs +55 -0
- package/esm2022/f-draggable/drag-external-item/drag-external-item-preparation/index.mjs +3 -0
- package/esm2022/f-draggable/drag-external-item/f-create-node-event.mjs +35 -0
- package/esm2022/f-draggable/drag-external-item/f-drag-external-item-start-event-data.mjs +7 -0
- package/esm2022/f-draggable/drag-external-item/i-drag-external-item-drag-result.mjs +2 -0
- package/esm2022/f-draggable/drag-external-item/index.mjs +13 -0
- package/esm2022/f-draggable/drag-external-item/is-drag-external-item-handler.mjs +7 -0
- package/esm2022/f-draggable/drag-external-item/prevent-default-is-external-item/index.mjs +3 -0
- package/esm2022/f-draggable/drag-external-item/prevent-default-is-external-item/prevent-default-is-external-item-request.mjs +8 -0
- package/esm2022/f-draggable/drag-external-item/prevent-default-is-external-item/prevent-default-is-external-item.mjs +38 -0
- package/esm2022/f-draggable/drag-external-item/providers.mjs +13 -0
- package/esm2022/f-draggable/drag-minimap/calculate-flow-point-from-minimap-point/calculate-flow-point-from-minimap-point-request.mjs +14 -0
- package/esm2022/f-draggable/drag-minimap/calculate-flow-point-from-minimap-point/calculate-flow-point-from-minimap-point.mjs +39 -0
- package/esm2022/f-draggable/drag-minimap/calculate-flow-point-from-minimap-point/index.mjs +3 -0
- package/esm2022/f-draggable/drag-minimap/drag-minimap-finalize/drag-minimap-finalize-request.mjs +8 -0
- package/esm2022/f-draggable/drag-minimap/drag-minimap-finalize/drag-minimap-finalize.mjs +30 -0
- package/esm2022/f-draggable/drag-minimap/drag-minimap-finalize/index.mjs +3 -0
- package/esm2022/f-draggable/drag-minimap/drag-minimap-handler/drag-minimap-handler.mjs +52 -0
- package/esm2022/f-draggable/drag-minimap/drag-minimap-handler/index.mjs +2 -0
- package/esm2022/f-draggable/drag-minimap/drag-minimap-preparation/drag-minimap-preparation-request.mjs +8 -0
- package/esm2022/f-draggable/drag-minimap/drag-minimap-preparation/drag-minimap-preparation.mjs +68 -0
- package/esm2022/f-draggable/drag-minimap/drag-minimap-preparation/index.mjs +3 -0
- package/esm2022/f-draggable/drag-minimap/index.mjs +7 -0
- package/esm2022/f-draggable/drag-minimap/is-drag-minimap-handler.mjs +7 -0
- package/esm2022/f-draggable/drag-minimap/providers.mjs +9 -0
- package/esm2022/f-draggable/drag-node/attach-drag-node-handler-from-selection/attach-drag-node-handler-from-selection.mjs +1 -1
- package/esm2022/f-draggable/drag-node/attach-drag-node-handler-from-selection/attach-soft-parent-connection-drag-handlers-to-node/attach-soft-parent-connection-drag-handlers-to-node-request.mjs +18 -0
- package/esm2022/f-draggable/drag-node/attach-drag-node-handler-from-selection/attach-soft-parent-connection-drag-handlers-to-node/attach-soft-parent-connection-drag-handlers-to-node.mjs +95 -0
- package/esm2022/f-draggable/drag-node/attach-drag-node-handler-from-selection/attach-soft-parent-connection-drag-handlers-to-node/index.mjs +3 -0
- package/esm2022/f-draggable/drag-node/attach-drag-node-handler-from-selection/create-drag-node-handler/create-drag-node-handler.mjs +23 -4
- package/esm2022/f-draggable/drag-node/attach-drag-node-handler-from-selection/index.mjs +2 -1
- package/esm2022/f-draggable/drag-node/attach-drag-node-handler-from-selection/providers.mjs +3 -1
- package/esm2022/f-draggable/drag-node/drag-node-dependent-connection-handlers/drag-node-connection-handler-base.mjs +7 -1
- package/esm2022/f-draggable/drag-node/drag-node-finalize/drag-node-finalize.mjs +3 -3
- package/esm2022/f-draggable/drag-node/drag-node-handler/drag-node-handler.mjs +5 -4
- package/esm2022/f-draggable/drag-node/drag-node-handler/drag-node-item-handler.mjs +49 -5
- package/esm2022/f-draggable/drag-node/drag-node-handler/i-soft-parent-connection-handlers.mjs +2 -0
- package/esm2022/f-draggable/drag-node/drag-node-handler/index.mjs +2 -1
- package/esm2022/f-draggable/drag-node/index.mjs +2 -1
- package/esm2022/f-draggable/drag-node/is-drag-node-handler.mjs +7 -0
- package/esm2022/f-draggable/drop-to-group/drop-to-group-handler/drop-to-group-handler.mjs +11 -9
- package/esm2022/f-draggable/drop-to-group/drop-to-group-preparation/drop-to-group-preparation.mjs +4 -15
- package/esm2022/f-draggable/f-draggable-base.mjs +1 -1
- package/esm2022/f-draggable/f-draggable.directive.mjs +16 -29
- package/esm2022/f-draggable/index.mjs +5 -4
- package/esm2022/f-draggable/infrastructure/drag-handler-injector.mjs +16 -1
- package/esm2022/f-draggable/pinch-to-zoom/index.mjs +3 -3
- package/esm2022/f-draggable/pinch-to-zoom/pinch-to-zoom-finalize/index.mjs +3 -0
- package/esm2022/f-draggable/pinch-to-zoom/pinch-to-zoom-finalize/pinch-to-zoom-finalize-request.mjs +8 -0
- package/esm2022/f-draggable/pinch-to-zoom/pinch-to-zoom-finalize/pinch-to-zoom-finalize.mjs +31 -0
- package/esm2022/f-draggable/pinch-to-zoom/pinch-to-zoom-preparation/index.mjs +3 -0
- package/esm2022/f-draggable/pinch-to-zoom/pinch-to-zoom-preparation/pinch-to-zoom-preparation-request.mjs +8 -0
- package/esm2022/f-draggable/pinch-to-zoom/pinch-to-zoom-preparation/pinch-to-zoom-preparation.mjs +47 -0
- package/esm2022/f-draggable/pinch-to-zoom/providers.mjs +3 -3
- package/esm2022/f-draggable/providers.mjs +7 -7
- package/esm2022/f-draggable/resize-node/apply-child-resize-constraints/apply-child-resize-constraints-request.mjs +10 -0
- package/esm2022/f-draggable/resize-node/apply-child-resize-constraints/apply-child-resize-constraints.mjs +57 -0
- package/esm2022/f-draggable/resize-node/apply-child-resize-constraints/index.mjs +3 -0
- package/esm2022/f-draggable/resize-node/apply-parent-resize-constraints/apply-parent-resize-constraints-request.mjs +10 -0
- package/esm2022/f-draggable/resize-node/apply-parent-resize-constraints/apply-parent-resize-constraints.mjs +150 -0
- package/esm2022/f-draggable/resize-node/apply-parent-resize-constraints/index.mjs +3 -0
- package/esm2022/f-draggable/resize-node/calculate-changed-rect-from-difference/calculate-changed-rect-from-difference-request.mjs +14 -0
- package/esm2022/f-draggable/resize-node/calculate-changed-rect-from-difference/calculate-changed-rect-from-difference.mjs +55 -0
- package/esm2022/f-draggable/resize-node/calculate-changed-rect-from-difference/index.mjs +3 -0
- package/esm2022/f-draggable/resize-node/calculate-direct-children-union-rect/calculate-direct-children-union-rect-request.mjs +10 -0
- package/esm2022/f-draggable/resize-node/calculate-direct-children-union-rect/calculate-direct-children-union-rect.mjs +38 -0
- package/esm2022/f-draggable/resize-node/calculate-direct-children-union-rect/index.mjs +3 -0
- package/esm2022/f-draggable/resize-node/calculate-resize-limits/calculate-resize-limits-request.mjs +10 -0
- package/esm2022/f-draggable/resize-node/calculate-resize-limits/calculate-resize-limits.mjs +69 -0
- package/esm2022/f-draggable/resize-node/calculate-resize-limits/index.mjs +3 -0
- package/esm2022/f-draggable/resize-node/constraint/i-resize-constraint.mjs +2 -0
- package/esm2022/f-draggable/resize-node/constraint/i-resize-limit.mjs +2 -0
- package/esm2022/f-draggable/resize-node/constraint/i-resize-limits.mjs +2 -0
- package/esm2022/f-draggable/resize-node/constraint/i-resize-overflow.mjs +2 -0
- package/esm2022/f-draggable/resize-node/constraint/index.mjs +6 -0
- package/esm2022/f-draggable/resize-node/constraint/resize-direction.mjs +12 -0
- package/esm2022/f-draggable/resize-node/f-resize-node-start-event-data.mjs +7 -0
- package/esm2022/f-draggable/resize-node/index.mjs +13 -0
- package/esm2022/f-draggable/resize-node/is-resize-node-handler.mjs +7 -0
- package/esm2022/f-draggable/resize-node/providers.mjs +19 -0
- package/esm2022/f-draggable/resize-node/resize-node-finalize/index.mjs +3 -0
- package/esm2022/f-draggable/resize-node/resize-node-finalize/resize-node-finalize-request.mjs +8 -0
- package/esm2022/f-draggable/resize-node/resize-node-finalize/resize-node-finalize.mjs +29 -0
- package/esm2022/f-draggable/resize-node/resize-node-handler/i-resize-node-connection-handlers.mjs +2 -0
- package/esm2022/f-draggable/resize-node/resize-node-handler/index.mjs +4 -0
- package/esm2022/f-draggable/resize-node/resize-node-handler/resize-node-dependent-connection-handlers/index.mjs +5 -0
- package/esm2022/f-draggable/resize-node/resize-node-handler/resize-node-dependent-connection-handlers/resize-node-connection-both-sides-handler.mjs +31 -0
- package/esm2022/f-draggable/resize-node/resize-node-handler/resize-node-dependent-connection-handlers/resize-node-connection-handler-base.mjs +53 -0
- package/esm2022/f-draggable/resize-node/resize-node-handler/resize-node-dependent-connection-handlers/resize-node-connection-source-handler.mjs +15 -0
- package/esm2022/f-draggable/resize-node/resize-node-handler/resize-node-dependent-connection-handlers/resize-node-connection-target-handler.mjs +15 -0
- package/esm2022/f-draggable/resize-node/resize-node-handler/resize-node-handler.mjs +116 -0
- package/esm2022/f-draggable/resize-node/resize-preparation/attach-resize-connection-drag-handlers-to-node/attach-resize-connection-drag-handlers-to-node-request.mjs +10 -0
- package/esm2022/f-draggable/resize-node/resize-preparation/attach-resize-connection-drag-handlers-to-node/attach-resize-connection-drag-handlers-to-node.mjs +99 -0
- package/esm2022/f-draggable/resize-node/resize-preparation/attach-resize-connection-drag-handlers-to-node/index.mjs +3 -0
- package/esm2022/f-draggable/resize-node/resize-preparation/index.mjs +4 -0
- package/esm2022/f-draggable/resize-node/resize-preparation/resize-node-preparation-request.mjs +10 -0
- package/esm2022/f-draggable/resize-node/resize-preparation/resize-node-preparation.mjs +77 -0
- package/esm2022/f-draggable/rotate-node/calculate-difference-after-rotation.mjs +19 -0
- package/esm2022/f-draggable/rotate-node/f-rotate-node-start-event-data.mjs +7 -0
- package/esm2022/f-draggable/rotate-node/index.mjs +8 -0
- package/esm2022/f-draggable/rotate-node/is-rotate-node-handler.mjs +7 -0
- package/esm2022/f-draggable/rotate-node/providers.mjs +4 -0
- package/esm2022/f-draggable/rotate-node/rotate-node-finalize/index.mjs +3 -0
- package/esm2022/f-draggable/rotate-node/rotate-node-finalize/rotate-node-finalize-request.mjs +8 -0
- package/esm2022/f-draggable/rotate-node/rotate-node-finalize/rotate-node-finalize.mjs +31 -0
- package/esm2022/f-draggable/rotate-node/rotate-node-handler/index.mjs +2 -0
- package/esm2022/f-draggable/rotate-node/rotate-node-handler/rotate-node-handler.mjs +89 -0
- package/esm2022/f-draggable/rotate-node/rotate-node-preparation/index.mjs +3 -0
- package/esm2022/f-draggable/rotate-node/rotate-node-preparation/rotate-node-preparation-request.mjs +10 -0
- package/esm2022/f-draggable/rotate-node/rotate-node-preparation/rotate-node-preparation.mjs +99 -0
- package/esm2022/f-draggable/selection-area/selection-area-handler/selection-area-handler.mjs +2 -2
- package/esm2022/f-external-item/f-external-item-base.mjs +5 -2
- package/esm2022/f-external-item/f-external-item-placeholder.mjs +26 -0
- package/esm2022/f-external-item/f-external-item-preview.mjs +26 -0
- package/esm2022/f-external-item/f-external-item.mjs +63 -0
- package/esm2022/f-external-item/f-external-item.service.mjs +37 -11
- package/esm2022/f-external-item/index.mjs +4 -6
- package/esm2022/f-external-item/is-external-item.mjs +6 -3
- package/esm2022/f-external-item/providers.mjs +3 -5
- package/esm2022/f-flow/f-flow-base.mjs +2 -2
- package/esm2022/f-flow/f-flow.component.mjs +47 -27
- package/esm2022/f-flow.module.mjs +24 -20
- package/esm2022/f-magnetic-lines/f-magnetic-lines.mjs +4 -4
- package/esm2022/f-magnetic-rects/f-magnetic-rects.mjs +4 -4
- package/esm2022/f-minimap/f-minimap-base.mjs +12 -0
- package/esm2022/f-minimap/f-minimap-canvas.directive.mjs +12 -8
- package/esm2022/f-minimap/f-minimap-flow.directive.mjs +7 -6
- package/esm2022/f-minimap/f-minimap-view.directive.mjs +5 -4
- package/esm2022/f-minimap/f-minimap.component.mjs +25 -16
- package/esm2022/f-minimap/index.mjs +2 -2
- package/esm2022/f-node/f-group.directive.mjs +4 -1
- package/esm2022/f-node/f-node.directive.mjs +4 -1
- package/esm2022/f-storage/f-components-store.mjs +19 -7
- package/esm2022/f-storage/features/emit-connections-changes/emit-connections-changes-request.mjs +4 -0
- package/esm2022/f-storage/features/emit-connections-changes/emit-connections-changes.mjs +22 -0
- package/esm2022/f-storage/features/emit-connections-changes/index.mjs +3 -0
- package/esm2022/f-storage/features/index.mjs +4 -4
- package/esm2022/f-storage/features/listen-connections-changes/index.mjs +3 -0
- package/esm2022/f-storage/features/listen-connections-changes/listen-connections-changes-request.mjs +8 -0
- package/esm2022/f-storage/features/listen-connections-changes/listen-connections-changes.mjs +25 -0
- package/esm2022/f-storage/features/listen-nodes-changes/index.mjs +3 -0
- package/esm2022/f-storage/features/listen-nodes-changes/listen-nodes-changes-request.mjs +4 -0
- package/esm2022/f-storage/features/listen-nodes-changes/listen-nodes-changes.mjs +23 -0
- package/esm2022/f-storage/features/listen-transform-changes/listen-transform-changes.mjs +3 -3
- package/esm2022/f-storage/providers.mjs +6 -6
- package/esm2022/f-virtual/f-virtual-for.mjs +56 -0
- package/esm2022/f-virtual/index.mjs +3 -0
- package/esm2022/f-virtual/providers.mjs +3 -0
- package/esm2022/f-zoom/f-zoom.directive.mjs +17 -9
- package/esm2022/public-api.mjs +4 -1
- package/esm2022/reactivity/after-next-paint.mjs +27 -0
- package/esm2022/reactivity/f-channel-hub.mjs +5 -2
- package/esm2022/reactivity/index.mjs +2 -1
- package/esm2022/reactivity/notify-on-start.mjs +17 -5
- package/esm2022/reactivity/take-one.mjs +7 -3
- package/esm2022/utils/calculate-pointer-in-flow.mjs +6 -3
- package/f-cache/config/f-cache-options.d.ts +6 -0
- package/f-cache/config/index.d.ts +1 -0
- package/f-cache/features/f-cache-connectors/index.d.ts +2 -0
- package/f-cache/features/f-cache-connectors/register-connector/index.d.ts +2 -0
- package/f-cache/features/f-cache-connectors/register-connector/register-connector-request.d.ts +8 -0
- package/f-cache/features/f-cache-connectors/register-connector/register-connector.d.ts +12 -0
- package/f-cache/features/f-cache-connectors/unregister-connector/index.d.ts +2 -0
- package/f-cache/features/f-cache-connectors/unregister-connector/unregister-connector-request.d.ts +6 -0
- package/f-cache/features/f-cache-connectors/unregister-connector/unregister-connector.d.ts +12 -0
- package/f-cache/features/f-cache-nodes/index.d.ts +3 -0
- package/f-cache/features/f-cache-nodes/invalidate-node/index.d.ts +2 -0
- package/f-cache/features/f-cache-nodes/invalidate-node/invalidate-node-request.d.ts +6 -0
- package/f-cache/features/f-cache-nodes/invalidate-node/invalidate-node.d.ts +10 -0
- package/f-cache/features/f-cache-nodes/register-node/index.d.ts +2 -0
- package/f-cache/features/f-cache-nodes/register-node/register-node-request.d.ts +8 -0
- package/f-cache/features/f-cache-nodes/register-node/register-node.d.ts +10 -0
- package/f-cache/features/f-cache-nodes/unregister-node/index.d.ts +2 -0
- package/f-cache/features/f-cache-nodes/unregister-node/unregister-node-request.d.ts +5 -0
- package/f-cache/features/f-cache-nodes/unregister-node/unregister-node.d.ts +11 -0
- package/f-cache/features/f-cache-rects/get-cached-rect/get-cached-rect-request.d.ts +5 -0
- package/f-cache/features/f-cache-rects/get-cached-rect/get-cached-rect.d.ts +11 -0
- package/f-cache/features/f-cache-rects/get-cached-rect/index.d.ts +2 -0
- package/f-cache/features/f-cache-rects/index.d.ts +4 -0
- package/f-cache/features/f-cache-rects/set-connector-rect/index.d.ts +2 -0
- package/f-cache/features/f-cache-rects/set-connector-rect/set-connector-rect-request.d.ts +8 -0
- package/f-cache/features/f-cache-rects/set-connector-rect/set-connector-rect.d.ts +10 -0
- package/f-cache/features/f-cache-rects/set-node-rect/index.d.ts +2 -0
- package/f-cache/features/f-cache-rects/set-node-rect/set-node-rect-request.d.ts +7 -0
- package/f-cache/features/f-cache-rects/set-node-rect/set-node-rect.d.ts +11 -0
- package/f-cache/features/f-cache-rects/update-rect-by-element/index.d.ts +2 -0
- package/f-cache/features/f-cache-rects/update-rect-by-element/update-rect-by-element-request.d.ts +7 -0
- package/f-cache/features/f-cache-rects/update-rect-by-element/update-rect-by-element.d.ts +10 -0
- package/f-cache/features/index.d.ts +3 -0
- package/f-cache/index.d.ts +4 -0
- package/f-cache/model/f-cache-connector-key.d.ts +4 -0
- package/f-cache/model/f-cache-connector.d.ts +11 -0
- package/f-cache/model/f-cache-node.d.ts +9 -0
- package/f-cache/model/f-cache.d.ts +12 -0
- package/f-cache/model/i-f-cache-node-ref.d.ts +6 -0
- package/f-cache/model/index.d.ts +5 -0
- package/f-cache/providers.d.ts +3 -0
- package/f-canvas/f-canvas.component.d.ts +1 -0
- package/f-connection-worker/features/calculate-connection-worker-connector-rect/calculate-connection-worker-connector-rect-request.d.ts +8 -0
- package/f-connection-worker/features/calculate-connection-worker-connector-rect/calculate-connection-worker-connector-rect.d.ts +12 -0
- package/f-connection-worker/features/calculate-connection-worker-connector-rect/index.d.ts +2 -0
- package/f-connection-worker/features/calculate-connection-worker-payload-item/calculate-connection-worker-payload-item-request.d.ts +8 -0
- package/f-connection-worker/features/calculate-connection-worker-payload-item/calculate-connection-worker-payload-item.d.ts +10 -0
- package/f-connection-worker/features/calculate-connection-worker-payload-item/index.d.ts +2 -0
- package/f-connection-worker/features/calculate-connections-using-connection-worker/calculate-connections-using-connection-worker-request.d.ts +8 -0
- package/f-connection-worker/features/calculate-connections-using-connection-worker/calculate-connections-using-connection-worker.d.ts +12 -0
- package/f-connection-worker/features/calculate-connections-using-connection-worker/index.d.ts +2 -0
- package/f-connection-worker/features/connection-worker-run/connection-worker-run-request.d.ts +6 -0
- package/f-connection-worker/features/connection-worker-run/connection-worker-run.d.ts +12 -0
- package/f-connection-worker/features/connection-worker-run/index.d.ts +2 -0
- package/f-connection-worker/features/disable-connection-worker/disable-connection-worker-request.d.ts +5 -0
- package/f-connection-worker/features/disable-connection-worker/disable-connection-worker.d.ts +10 -0
- package/f-connection-worker/features/disable-connection-worker/index.d.ts +2 -0
- package/f-connection-worker/features/ensure-connection-worker/ensure-connection-worker-request.d.ts +3 -0
- package/f-connection-worker/features/ensure-connection-worker/ensure-connection-worker.d.ts +13 -0
- package/f-connection-worker/features/ensure-connection-worker/index.d.ts +2 -0
- package/f-connection-worker/features/handle-connection-worker-message/handle-connection-worker-message-request.d.ts +6 -0
- package/f-connection-worker/features/handle-connection-worker-message/handle-connection-worker-message.d.ts +9 -0
- package/f-connection-worker/features/handle-connection-worker-message/index.d.ts +2 -0
- package/f-connection-worker/features/index.d.ts +12 -0
- package/f-connection-worker/features/is-connection-worker-enabled/index.d.ts +2 -0
- package/f-connection-worker/features/is-connection-worker-enabled/is-connection-worker-enabled-request.d.ts +3 -0
- package/f-connection-worker/features/is-connection-worker-enabled/is-connection-worker-enabled.d.ts +11 -0
- package/f-connection-worker/features/reset-connection-worker-runtime/index.d.ts +2 -0
- package/f-connection-worker/features/reset-connection-worker-runtime/reset-connection-worker-runtime-request.d.ts +5 -0
- package/f-connection-worker/features/reset-connection-worker-runtime/reset-connection-worker-runtime.d.ts +9 -0
- package/f-connection-worker/features/resolve-connection-worker-connectors/index.d.ts +2 -0
- package/f-connection-worker/features/resolve-connection-worker-connectors/resolve-connection-worker-connectors-request.d.ts +11 -0
- package/f-connection-worker/features/resolve-connection-worker-connectors/resolve-connection-worker-connectors.d.ts +9 -0
- package/f-connection-worker/features/resolve-connection-worker-context/index.d.ts +2 -0
- package/f-connection-worker/features/resolve-connection-worker-context/resolve-connection-worker-context-request.d.ts +13 -0
- package/f-connection-worker/features/resolve-connection-worker-context/resolve-connection-worker-context.d.ts +10 -0
- package/f-connection-worker/features/should-use-connection-worker/index.d.ts +2 -0
- package/f-connection-worker/features/should-use-connection-worker/should-use-connection-worker-request.d.ts +5 -0
- package/f-connection-worker/features/should-use-connection-worker/should-use-connection-worker.d.ts +9 -0
- package/f-connection-worker/index.d.ts +3 -0
- package/f-connection-worker/model/f-connection-worker.d.ts +12 -0
- package/f-connection-worker/model/i-f-connection-worker-rect.d.ts +6 -0
- package/f-connection-worker/model/i-f-connection-worker-request-item.d.ts +11 -0
- package/f-connection-worker/model/i-f-connection-worker-response.d.ts +6 -0
- package/f-connection-worker/model/i-f-connection-worker-result-item.d.ts +8 -0
- package/f-connection-worker/model/index.d.ts +6 -0
- package/f-connection-worker/model/t-f-connection-worker-pending-request.d.ts +5 -0
- package/f-connection-worker/providers.d.ts +3 -0
- package/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.d.ts +15 -0
- package/f-draggable/domain/get-normalized-parent-node-rect/index.d.ts +2 -2
- package/f-draggable/domain/is-array-has-parent-node/index.d.ts +2 -2
- package/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.d.ts +10 -0
- package/f-draggable/domain/providers.d.ts +3 -3
- package/f-draggable/drag-external-item/drag-external-item-create-placeholder/drag-external-item-create-placeholder-request.d.ts +6 -0
- package/f-draggable/drag-external-item/drag-external-item-create-placeholder/drag-external-item-create-placeholder.d.ts +13 -0
- package/f-draggable/drag-external-item/drag-external-item-create-placeholder/index.d.ts +2 -0
- package/f-draggable/drag-external-item/drag-external-item-create-preview/drag-external-item-create-preview-request.d.ts +6 -0
- package/f-draggable/drag-external-item/drag-external-item-create-preview/drag-external-item-create-preview.d.ts +14 -0
- package/f-draggable/drag-external-item/drag-external-item-create-preview/index.d.ts +2 -0
- package/f-draggable/drag-external-item/drag-external-item-finalize/drag-external-item-finalize-request.d.ts +6 -0
- package/f-draggable/drag-external-item/drag-external-item-finalize/drag-external-item-finalize.d.ts +21 -0
- package/f-draggable/drag-external-item/drag-external-item-finalize/index.d.ts +2 -0
- package/f-draggable/drag-external-item/drag-external-item-handler/drag-external-item-handler.d.ts +50 -0
- package/f-draggable/drag-external-item/drag-external-item-handler/index.d.ts +1 -0
- package/f-draggable/drag-external-item/drag-external-item-preparation/drag-external-item-preparation-request.d.ts +8 -0
- package/f-draggable/drag-external-item/drag-external-item-preparation/drag-external-item-preparation.d.ts +15 -0
- package/f-draggable/drag-external-item/drag-external-item-preparation/index.d.ts +2 -0
- package/f-draggable/drag-external-item/f-create-node-event.d.ts +18 -0
- package/f-draggable/drag-external-item/f-drag-external-item-start-event-data.d.ts +4 -0
- package/f-draggable/drag-external-item/i-drag-external-item-drag-result.d.ts +5 -0
- package/f-draggable/drag-external-item/index.d.ts +12 -0
- package/f-draggable/drag-external-item/is-drag-external-item-handler.d.ts +5 -0
- package/f-draggable/drag-external-item/prevent-default-is-external-item/index.d.ts +2 -0
- package/f-draggable/drag-external-item/prevent-default-is-external-item/prevent-default-is-external-item-request.d.ts +5 -0
- package/f-draggable/drag-external-item/prevent-default-is-external-item/prevent-default-is-external-item.d.ts +10 -0
- package/f-draggable/drag-external-item/providers.d.ts +6 -0
- package/f-draggable/drag-minimap/calculate-flow-point-from-minimap-point/calculate-flow-point-from-minimap-point-request.d.ts +10 -0
- package/f-draggable/drag-minimap/calculate-flow-point-from-minimap-point/calculate-flow-point-from-minimap-point.d.ts +16 -0
- package/f-draggable/drag-minimap/calculate-flow-point-from-minimap-point/index.d.ts +2 -0
- package/f-draggable/drag-minimap/drag-minimap-finalize/drag-minimap-finalize-request.d.ts +6 -0
- package/f-draggable/drag-minimap/drag-minimap-finalize/drag-minimap-finalize.d.ts +10 -0
- package/f-draggable/drag-minimap/drag-minimap-finalize/index.d.ts +2 -0
- package/f-draggable/drag-minimap/drag-minimap-handler/drag-minimap-handler.d.ts +23 -0
- package/f-draggable/drag-minimap/drag-minimap-handler/index.d.ts +1 -0
- package/f-draggable/drag-minimap/drag-minimap-preparation/drag-minimap-preparation-request.d.ts +6 -0
- package/f-draggable/drag-minimap/drag-minimap-preparation/drag-minimap-preparation.d.ts +16 -0
- package/f-draggable/drag-minimap/drag-minimap-preparation/index.d.ts +2 -0
- package/f-draggable/drag-minimap/index.d.ts +6 -0
- package/f-draggable/drag-minimap/is-drag-minimap-handler.d.ts +5 -0
- package/f-draggable/drag-minimap/providers.d.ts +4 -0
- package/f-draggable/drag-node/attach-drag-node-handler-from-selection/attach-soft-parent-connection-drag-handlers-to-node/attach-soft-parent-connection-drag-handlers-to-node-request.d.ts +19 -0
- package/f-draggable/drag-node/attach-drag-node-handler-from-selection/attach-soft-parent-connection-drag-handlers-to-node/attach-soft-parent-connection-drag-handlers-to-node.d.ts +15 -0
- package/f-draggable/drag-node/attach-drag-node-handler-from-selection/attach-soft-parent-connection-drag-handlers-to-node/index.d.ts +2 -0
- package/f-draggable/drag-node/attach-drag-node-handler-from-selection/create-drag-node-handler/create-drag-node-handler.d.ts +2 -0
- package/f-draggable/drag-node/attach-drag-node-handler-from-selection/index.d.ts +1 -0
- package/f-draggable/drag-node/attach-drag-node-handler-from-selection/providers.d.ts +2 -1
- package/f-draggable/drag-node/drag-node-dependent-connection-handlers/drag-node-connection-handler-base.d.ts +1 -0
- package/f-draggable/drag-node/drag-node-handler/drag-node-item-handler.d.ts +6 -0
- package/f-draggable/drag-node/drag-node-handler/i-soft-parent-connection-handlers.d.ts +12 -0
- package/f-draggable/drag-node/drag-node-handler/index.d.ts +1 -0
- package/f-draggable/drag-node/index.d.ts +1 -0
- package/f-draggable/drag-node/is-drag-node-handler.d.ts +5 -0
- package/f-draggable/drag-node/providers.d.ts +1 -1
- package/f-draggable/drop-to-group/drop-to-group-handler/drop-to-group-handler.d.ts +2 -3
- package/f-draggable/drop-to-group/drop-to-group-preparation/drop-to-group-preparation.d.ts +0 -3
- package/f-draggable/f-draggable-base.d.ts +1 -1
- package/f-draggable/f-draggable.directive.d.ts +2 -4
- package/f-draggable/index.d.ts +4 -3
- package/f-draggable/pinch-to-zoom/index.d.ts +2 -2
- package/f-draggable/pinch-to-zoom/providers.d.ts +2 -2
- package/f-draggable/providers.d.ts +1 -1
- package/f-draggable/resize-node/apply-parent-resize-constraints/apply-parent-resize-constraints-request.d.ts +8 -0
- package/f-draggable/resize-node/apply-parent-resize-constraints/apply-parent-resize-constraints.d.ts +37 -0
- package/f-draggable/resize-node/calculate-changed-rect-from-difference/calculate-changed-rect-from-difference.d.ts +11 -0
- package/f-draggable/resize-node/calculate-resize-limits/calculate-resize-limits-request.d.ts +8 -0
- package/f-draggable/resize-node/constraint/i-resize-constraint.d.ts +7 -0
- package/f-draggable/resize-node/constraint/i-resize-limit.d.ts +7 -0
- package/f-draggable/resize-node/constraint/i-resize-limits.d.ts +5 -0
- package/f-draggable/resize-node/constraint/index.d.ts +5 -0
- package/f-draggable/resize-node/f-resize-node-start-event-data.d.ts +4 -0
- package/f-draggable/resize-node/index.d.ts +12 -0
- package/f-draggable/resize-node/is-resize-node-handler.d.ts +5 -0
- package/f-draggable/resize-node/providers.d.ts +9 -0
- package/f-draggable/resize-node/resize-node-finalize/index.d.ts +2 -0
- package/f-draggable/resize-node/resize-node-finalize/resize-node-finalize-request.d.ts +6 -0
- package/f-draggable/resize-node/resize-node-finalize/resize-node-finalize.d.ts +10 -0
- package/f-draggable/resize-node/resize-node-handler/i-resize-node-connection-handlers.d.ts +10 -0
- package/f-draggable/resize-node/resize-node-handler/index.d.ts +3 -0
- package/f-draggable/resize-node/resize-node-handler/resize-node-dependent-connection-handlers/index.d.ts +4 -0
- package/f-draggable/resize-node/resize-node-handler/resize-node-dependent-connection-handlers/resize-node-connection-both-sides-handler.d.ts +12 -0
- package/f-draggable/resize-node/resize-node-handler/resize-node-dependent-connection-handlers/resize-node-connection-handler-base.d.ts +20 -0
- package/f-draggable/resize-node/resize-node-handler/resize-node-dependent-connection-handlers/resize-node-connection-source-handler.d.ts +8 -0
- package/f-draggable/resize-node/resize-node-handler/resize-node-dependent-connection-handlers/resize-node-connection-target-handler.d.ts +8 -0
- package/f-draggable/resize-node/resize-node-handler/resize-node-handler.d.ts +35 -0
- package/f-draggable/resize-node/resize-preparation/attach-resize-connection-drag-handlers-to-node/attach-resize-connection-drag-handlers-to-node-request.d.ts +8 -0
- package/f-draggable/resize-node/resize-preparation/attach-resize-connection-drag-handlers-to-node/attach-resize-connection-drag-handlers-to-node.d.ts +16 -0
- package/f-draggable/resize-node/resize-preparation/attach-resize-connection-drag-handlers-to-node/index.d.ts +2 -0
- package/f-draggable/resize-node/resize-preparation/index.d.ts +3 -0
- package/f-draggable/resize-node/resize-preparation/resize-node-preparation-request.d.ts +8 -0
- package/f-draggable/resize-node/resize-preparation/resize-node-preparation.d.ts +17 -0
- package/f-draggable/rotate-node/f-rotate-node-start-event-data.d.ts +4 -0
- package/f-draggable/rotate-node/index.d.ts +7 -0
- package/f-draggable/rotate-node/is-rotate-node-handler.d.ts +5 -0
- package/f-draggable/rotate-node/providers.d.ts +3 -0
- package/f-draggable/rotate-node/rotate-node-finalize/index.d.ts +2 -0
- package/f-draggable/rotate-node/rotate-node-finalize/rotate-node-finalize-request.d.ts +6 -0
- package/f-draggable/rotate-node/rotate-node-finalize/rotate-node-finalize.d.ts +10 -0
- package/f-draggable/rotate-node/rotate-node-handler/index.d.ts +1 -0
- package/f-draggable/rotate-node/rotate-node-handler/rotate-node-handler.d.ts +43 -0
- package/f-draggable/rotate-node/rotate-node-preparation/index.d.ts +2 -0
- package/f-draggable/rotate-node/rotate-node-preparation/rotate-node-preparation-request.d.ts +8 -0
- package/f-draggable/rotate-node/rotate-node-preparation/rotate-node-preparation.d.ts +18 -0
- package/f-external-item/f-external-item-base.d.ts +10 -10
- package/f-external-item/f-external-item-placeholder.d.ts +10 -0
- package/f-external-item/f-external-item-preview.d.ts +10 -0
- package/f-external-item/f-external-item.d.ts +23 -0
- package/f-external-item/f-external-item.service.d.ts +10 -3
- package/f-external-item/index.d.ts +3 -5
- package/f-external-item/is-external-item.d.ts +1 -1
- package/f-external-item/providers.d.ts +2 -2
- package/f-flow/f-flow-base.d.ts +2 -1
- package/f-flow/f-flow.component.d.ts +11 -7
- package/f-flow.module.d.ts +21 -20
- package/f-minimap/f-minimap-base.d.ts +10 -0
- package/f-minimap/f-minimap-canvas.directive.d.ts +3 -2
- package/f-minimap/f-minimap-flow.directive.d.ts +3 -3
- package/f-minimap/f-minimap-view.directive.d.ts +1 -1
- package/f-minimap/f-minimap.component.d.ts +10 -7
- package/f-minimap/index.d.ts +1 -1
- package/f-storage/f-components-store.d.ts +10 -4
- package/f-storage/features/emit-connections-changes/emit-connections-changes-request.d.ts +3 -0
- package/f-storage/features/emit-connections-changes/emit-connections-changes.d.ts +9 -0
- package/f-storage/features/emit-connections-changes/index.d.ts +2 -0
- package/f-storage/features/index.d.ts +3 -3
- package/f-storage/features/listen-connections-changes/index.d.ts +2 -0
- package/f-storage/features/listen-connections-changes/listen-connections-changes-request.d.ts +5 -0
- package/f-storage/features/listen-connections-changes/listen-connections-changes.d.ts +10 -0
- package/f-storage/features/listen-nodes-changes/index.d.ts +2 -0
- package/f-storage/features/listen-nodes-changes/listen-nodes-changes-request.d.ts +3 -0
- package/f-storage/features/listen-nodes-changes/listen-nodes-changes.d.ts +10 -0
- package/f-storage/features/listen-transform-changes/listen-transform-changes.d.ts +1 -1
- package/f-storage/providers.d.ts +3 -3
- package/f-virtual/f-virtual-for.d.ts +15 -0
- package/f-virtual/index.d.ts +2 -0
- package/f-virtual/providers.d.ts +2 -0
- package/f-zoom/f-zoom.directive.d.ts +1 -0
- package/fesm2022/foblex-flow.mjs +8266 -6285
- package/fesm2022/foblex-flow.mjs.map +1 -1
- package/package.json +8 -5
- package/public-api.d.ts +3 -0
- package/reactivity/after-next-paint.d.ts +2 -0
- package/reactivity/index.d.ts +1 -0
- package/utils/calculate-pointer-in-flow.d.ts +1 -3
- package/domain/drag-rect-cache.d.ts +0 -8
- package/domain/f-canvas/add-canvas-to-store/add-canvas-to-store.execution.d.ts +0 -12
- package/domain/f-canvas/center-group-or-node/center-group-or-node.execution.d.ts +0 -18
- package/domain/f-canvas/fit-to-flow/fit-to-flow.execution.d.ts +0 -17
- package/domain/f-canvas/get-canvas/get-canvas-request.d.ts +0 -3
- package/domain/f-canvas/get-canvas/get-canvas.execution.d.ts +0 -13
- package/domain/f-canvas/get-canvas/index.d.ts +0 -2
- package/domain/f-canvas/input-canvas-position/input-canvas-position.execution.d.ts +0 -12
- package/domain/f-canvas/input-canvas-scale/input-canvas-scale.execution.d.ts +0 -13
- package/domain/f-canvas/redraw-canvas-with-animation/redraw-canvas-with-animation.execution.d.ts +0 -17
- package/domain/f-canvas/remove-canvas-from-store/remove-canvas-from-store.execution.d.ts +0 -12
- package/domain/f-canvas/reset-scale/reset-scale.execution.d.ts +0 -13
- package/domain/f-canvas/reset-scale-and-center/reset-scale-and-center.execution.d.ts +0 -17
- package/domain/f-canvas/update-scale/update-scale.execution.d.ts +0 -14
- package/domain/f-connectors/find-connectable-connector-using-priority-and-position/find-connectable-connector-using-priority-and-position.execution.d.ts +0 -30
- package/domain/f-draggable/add-dnd-to-store/add-dnd-to-store.execution.d.ts +0 -12
- package/domain/f-draggable/initialize-drag-sequence/initialize-drag-sequence.execution.d.ts +0 -12
- package/domain/f-draggable/on-pointer-move/on-pointer-move.execution.d.ts +0 -19
- package/domain/f-draggable/prepare-drag-sequence/prepare-drag-sequence.execution.d.ts +0 -14
- package/domain/f-draggable/remove-dnd-from-store/remove-dnd-from-store.execution.d.ts +0 -12
- package/domain/f-flow/add-flow-to-store/add-flow-to-store.execution.d.ts +0 -12
- package/domain/f-flow/get-flow/get-flow.execution.d.ts +0 -13
- package/domain/f-flow/remove-flow-from-store/remove-flow-from-store.execution.d.ts +0 -12
- package/domain/f-selection/clear-selection/clear-selection.execution.d.ts +0 -12
- package/domain/f-selection/get-current-selection/get-current-selection.execution.d.ts +0 -16
- package/domain/f-selection/select/index.d.ts +0 -2
- package/domain/f-selection/select/select.execution.d.ts +0 -13
- package/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.execution.d.ts +0 -15
- package/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.request.d.ts +0 -5
- package/domain/get-element-rounded-rect/get-element-rounded-rect-request.d.ts +0 -5
- package/domain/get-element-rounded-rect/get-element-rounded-rect.execution.d.ts +0 -17
- package/domain/get-element-rounded-rect/index.d.ts +0 -2
- package/domain/get-normalized-connector-rect/get-normalized-connector-rect.execution.d.ts +0 -22
- package/domain/get-normalized-element-rect/get-normalized-element-rect.execution.d.ts +0 -22
- package/domain/get-normalized-point/get-normalized-point.execution.d.ts +0 -16
- package/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.execution.d.ts +0 -22
- package/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.request.d.ts +0 -5
- package/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.execution.d.ts +0 -24
- package/esm2022/domain/drag-rect-cache.mjs +0 -19
- package/esm2022/domain/f-canvas/add-canvas-to-store/add-canvas-to-store.execution.mjs +0 -25
- package/esm2022/domain/f-canvas/center-group-or-node/center-group-or-node.execution.mjs +0 -46
- package/esm2022/domain/f-canvas/fit-to-flow/fit-to-flow.execution.mjs +0 -58
- package/esm2022/domain/f-canvas/get-canvas/get-canvas-request.mjs +0 -4
- package/esm2022/domain/f-canvas/get-canvas/get-canvas.execution.mjs +0 -29
- package/esm2022/domain/f-canvas/get-canvas/index.mjs +0 -3
- package/esm2022/domain/f-canvas/input-canvas-position/input-canvas-position.execution.mjs +0 -35
- package/esm2022/domain/f-canvas/input-canvas-scale/input-canvas-scale.execution.mjs +0 -30
- package/esm2022/domain/f-canvas/redraw-canvas-with-animation/redraw-canvas-with-animation.execution.mjs +0 -40
- package/esm2022/domain/f-canvas/remove-canvas-from-store/remove-canvas-from-store.execution.mjs +0 -25
- package/esm2022/domain/f-canvas/reset-scale/reset-scale.execution.mjs +0 -30
- package/esm2022/domain/f-canvas/reset-scale-and-center/reset-scale-and-center.execution.mjs +0 -50
- package/esm2022/domain/f-canvas/update-scale/update-scale.execution.mjs +0 -36
- package/esm2022/domain/f-connectors/find-connectable-connector-using-priority-and-position/find-connectable-connector-using-priority-and-position.execution.mjs +0 -101
- package/esm2022/domain/f-connectors/find-connectable-connector-using-priority-and-position/find-connectable-connector-using-priority-and-position.request.mjs +0 -10
- package/esm2022/domain/f-draggable/add-dnd-to-store/add-dnd-to-store.execution.mjs +0 -25
- package/esm2022/domain/f-draggable/initialize-drag-sequence/initialize-drag-sequence.execution.mjs +0 -25
- package/esm2022/domain/f-draggable/on-pointer-move/on-pointer-move.execution.mjs +0 -46
- package/esm2022/domain/f-draggable/prepare-drag-sequence/prepare-drag-sequence.execution.mjs +0 -30
- package/esm2022/domain/f-draggable/remove-dnd-from-store/remove-dnd-from-store.execution.mjs +0 -25
- package/esm2022/domain/f-flow/add-flow-to-store/add-flow-to-store.execution.mjs +0 -25
- package/esm2022/domain/f-flow/get-flow/get-flow.execution.mjs +0 -29
- package/esm2022/domain/f-flow/remove-flow-from-store/remove-flow-from-store.execution.mjs +0 -25
- package/esm2022/domain/f-node/calculate-nodes-bounding-box/calculate-nodes-bounding-box.request.mjs +0 -4
- package/esm2022/domain/f-node/calculate-nodes-bounding-box-normalized-position/calculate-nodes-bounding-box-normalized-position.request.mjs +0 -8
- package/esm2022/domain/f-node/get-child-node-ids/get-child-node-ids.request.mjs +0 -8
- package/esm2022/domain/f-node/get-node-padding/get-node-padding.request.mjs +0 -10
- package/esm2022/domain/f-node/get-parent-nodes/get-parent-nodes.request.mjs +0 -8
- package/esm2022/domain/f-selection/clear-selection/clear-selection.execution.mjs +0 -27
- package/esm2022/domain/f-selection/clear-selection/clear-selection.request.mjs +0 -4
- package/esm2022/domain/f-selection/get-current-selection/get-current-selection.execution.mjs +0 -44
- package/esm2022/domain/f-selection/get-current-selection/get-current-selection.request.mjs +0 -4
- package/esm2022/domain/f-selection/select/index.mjs +0 -3
- package/esm2022/domain/f-selection/select/select.execution.mjs +0 -45
- package/esm2022/domain/f-selection/select/select.request.mjs +0 -12
- package/esm2022/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.execution.mjs +0 -36
- package/esm2022/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.request.mjs +0 -8
- package/esm2022/domain/get-element-rounded-rect/get-element-rounded-rect-request.mjs +0 -8
- package/esm2022/domain/get-element-rounded-rect/get-element-rounded-rect.execution.mjs +0 -36
- package/esm2022/domain/get-element-rounded-rect/index.mjs +0 -3
- package/esm2022/domain/get-normalized-connector-rect/get-normalized-connector-rect.execution.mjs +0 -54
- package/esm2022/domain/get-normalized-element-rect/get-normalized-element-rect.execution.mjs +0 -53
- package/esm2022/domain/get-normalized-point/get-normalized-point.execution.mjs +0 -56
- package/esm2022/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.execution.mjs +0 -61
- package/esm2022/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.request.mjs +0 -8
- package/esm2022/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.execution.mjs +0 -65
- package/esm2022/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.request.mjs +0 -4
- package/esm2022/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.execution.mjs +0 -67
- package/esm2022/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.request.mjs +0 -8
- package/esm2022/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.execution.mjs +0 -26
- package/esm2022/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.request.mjs +0 -10
- package/esm2022/f-draggable/f-node-resize/apply-child-resize-constraints/apply-child-resize-constraints-request.mjs +0 -10
- package/esm2022/f-draggable/f-node-resize/apply-child-resize-constraints/apply-child-resize-constraints.mjs +0 -57
- package/esm2022/f-draggable/f-node-resize/apply-child-resize-constraints/index.mjs +0 -3
- package/esm2022/f-draggable/f-node-resize/apply-parent-resize-constraints/apply-parent-resize-constraints-request.mjs +0 -10
- package/esm2022/f-draggable/f-node-resize/apply-parent-resize-constraints/apply-parent-resize-constraints.mjs +0 -147
- package/esm2022/f-draggable/f-node-resize/apply-parent-resize-constraints/index.mjs +0 -3
- package/esm2022/f-draggable/f-node-resize/calculate-changed-rect-from-difference/calculate-changed-rect-from-difference-request.mjs +0 -14
- package/esm2022/f-draggable/f-node-resize/calculate-changed-rect-from-difference/calculate-changed-rect-from-difference.mjs +0 -55
- package/esm2022/f-draggable/f-node-resize/calculate-changed-rect-from-difference/index.mjs +0 -3
- package/esm2022/f-draggable/f-node-resize/calculate-direct-children-union-rect/calculate-direct-children-union-rect-request.mjs +0 -10
- package/esm2022/f-draggable/f-node-resize/calculate-direct-children-union-rect/calculate-direct-children-union-rect.mjs +0 -38
- package/esm2022/f-draggable/f-node-resize/calculate-direct-children-union-rect/index.mjs +0 -3
- package/esm2022/f-draggable/f-node-resize/calculate-resize-limits/calculate-resize-limits-request.mjs +0 -10
- package/esm2022/f-draggable/f-node-resize/calculate-resize-limits/calculate-resize-limits.mjs +0 -69
- package/esm2022/f-draggable/f-node-resize/calculate-resize-limits/index.mjs +0 -3
- package/esm2022/f-draggable/f-node-resize/constraint/i-resize-constraint.mjs +0 -2
- package/esm2022/f-draggable/f-node-resize/constraint/i-resize-limit.mjs +0 -2
- package/esm2022/f-draggable/f-node-resize/constraint/i-resize-limits.mjs +0 -2
- package/esm2022/f-draggable/f-node-resize/constraint/i-resize-overflow.mjs +0 -2
- package/esm2022/f-draggable/f-node-resize/constraint/index.mjs +0 -5
- package/esm2022/f-draggable/f-node-resize/i-node-resize-event-data.mjs +0 -2
- package/esm2022/f-draggable/f-node-resize/index.mjs +0 -13
- package/esm2022/f-draggable/f-node-resize/node-resize.drag-handler.mjs +0 -66
- package/esm2022/f-draggable/f-node-resize/providers.mjs +0 -17
- package/esm2022/f-draggable/f-node-resize/resize-direction.mjs +0 -12
- package/esm2022/f-draggable/f-node-resize/resize-finalize/index.mjs +0 -3
- package/esm2022/f-draggable/f-node-resize/resize-finalize/node-resize-finalize-request.mjs +0 -8
- package/esm2022/f-draggable/f-node-resize/resize-finalize/node-resize-finalize.mjs +0 -29
- package/esm2022/f-draggable/f-node-resize/resize-preparation/index.mjs +0 -3
- package/esm2022/f-draggable/f-node-resize/resize-preparation/node-resize-preparation-request.mjs +0 -10
- package/esm2022/f-draggable/f-node-resize/resize-preparation/node-resize-preparation.mjs +0 -69
- package/esm2022/f-draggable/f-node-rotate/calculate-difference-after-rotation.mjs +0 -19
- package/esm2022/f-draggable/f-node-rotate/f-node-rotate.drag-handler.mjs +0 -75
- package/esm2022/f-draggable/f-node-rotate/i-node-rotate-event-data.mjs +0 -2
- package/esm2022/f-draggable/f-node-rotate/index.mjs +0 -6
- package/esm2022/f-draggable/f-node-rotate/providers.mjs +0 -7
- package/esm2022/f-draggable/f-node-rotate/rotate-finalize/f-node-rotate-finalize.execution.mjs +0 -32
- package/esm2022/f-draggable/f-node-rotate/rotate-finalize/f-node-rotate-finalize.request.mjs +0 -8
- package/esm2022/f-draggable/f-node-rotate/rotate-finalize/index.mjs +0 -3
- package/esm2022/f-draggable/f-node-rotate/rotate-preparation/f-node-rotate-preparation.execution.mjs +0 -94
- package/esm2022/f-draggable/f-node-rotate/rotate-preparation/f-node-rotate-preparation.request.mjs +0 -10
- package/esm2022/f-draggable/f-node-rotate/rotate-preparation/index.mjs +0 -3
- package/esm2022/f-draggable/i-f-drag-and-drop-plugin.mjs +0 -4
- package/esm2022/f-draggable/pinch-to-zoom/finalize/index.mjs +0 -3
- package/esm2022/f-draggable/pinch-to-zoom/finalize/pinch-to-zoom-finalize-request.mjs +0 -8
- package/esm2022/f-draggable/pinch-to-zoom/finalize/pinch-to-zoom-finalize.mjs +0 -31
- package/esm2022/f-draggable/pinch-to-zoom/preparation/index.mjs +0 -3
- package/esm2022/f-draggable/pinch-to-zoom/preparation/pinch-to-zoom-preparation-request.mjs +0 -8
- package/esm2022/f-draggable/pinch-to-zoom/preparation/pinch-to-zoom-preparation.mjs +0 -47
- package/esm2022/f-external-item/domain/constraint/external-rect-constraint.mjs +0 -44
- package/esm2022/f-external-item/domain/constraint/index.mjs +0 -2
- package/esm2022/f-external-item/domain/create-placeholder/f-external-item-create-placeholder.execution.mjs +0 -41
- package/esm2022/f-external-item/domain/create-placeholder/f-external-item-create-placeholder.request.mjs +0 -8
- package/esm2022/f-external-item/domain/create-placeholder/index.mjs +0 -3
- package/esm2022/f-external-item/domain/create-preview/f-external-item-create-preview.execution.mjs +0 -52
- package/esm2022/f-external-item/domain/create-preview/f-external-item-create-preview.request.mjs +0 -8
- package/esm2022/f-external-item/domain/create-preview/index.mjs +0 -3
- package/esm2022/f-external-item/domain/f-create-node.event.mjs +0 -13
- package/esm2022/f-external-item/domain/f-external-item.drag-handler.mjs +0 -104
- package/esm2022/f-external-item/domain/finalize/f-external-item-finalize.execution.mjs +0 -75
- package/esm2022/f-external-item/domain/finalize/f-external-item-finalize.request.mjs +0 -8
- package/esm2022/f-external-item/domain/finalize/index.mjs +0 -3
- package/esm2022/f-external-item/domain/i-f-external-item-drag-result.mjs +0 -2
- package/esm2022/f-external-item/domain/index.mjs +0 -11
- package/esm2022/f-external-item/domain/preparation/f-external-item-preparation.execution.mjs +0 -56
- package/esm2022/f-external-item/domain/preparation/f-external-item-preparation.request.mjs +0 -10
- package/esm2022/f-external-item/domain/preparation/index.mjs +0 -3
- package/esm2022/f-external-item/domain/prevent-default-is-external-item/index.mjs +0 -3
- package/esm2022/f-external-item/domain/prevent-default-is-external-item/prevent-default-is-external-item.execution.mjs +0 -37
- package/esm2022/f-external-item/domain/prevent-default-is-external-item/prevent-default-is-external-item.request.mjs +0 -8
- package/esm2022/f-external-item/domain/providers.mjs +0 -13
- package/esm2022/f-external-item/f-external-item-placeholder.directive.mjs +0 -26
- package/esm2022/f-external-item/f-external-item-preview.directive.mjs +0 -26
- package/esm2022/f-external-item/f-external-item-token.mjs +0 -3
- package/esm2022/f-external-item/f-external-item.directive.mjs +0 -59
- package/esm2022/f-minimap/domain/calculate-flow-point-from-minimap-point/calculate-flow-point-from-minimap-point.execution.mjs +0 -39
- package/esm2022/f-minimap/domain/calculate-flow-point-from-minimap-point/calculate-flow-point-from-minimap-point.request.mjs +0 -14
- package/esm2022/f-minimap/domain/calculate-flow-point-from-minimap-point/index.mjs +0 -3
- package/esm2022/f-minimap/domain/f-minimap-data.mjs +0 -12
- package/esm2022/f-minimap/domain/f-minimap.drag-handler.mjs +0 -45
- package/esm2022/f-minimap/domain/index.mjs +0 -10
- package/esm2022/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/i-f-minimap-scale-and-view-box.mjs +0 -2
- package/esm2022/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/index.mjs +0 -4
- package/esm2022/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/minimap-calculate-svg-scale-and-view-box.execution.mjs +0 -73
- package/esm2022/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/minimap-calculate-svg-scale-and-view-box.request.mjs +0 -10
- package/esm2022/f-minimap/domain/minimap-calculate-view-box/index.mjs +0 -3
- package/esm2022/f-minimap/domain/minimap-calculate-view-box/minimap-calculate-view-box.execution.mjs +0 -42
- package/esm2022/f-minimap/domain/minimap-calculate-view-box/minimap-calculate-view-box.request.mjs +0 -4
- package/esm2022/f-minimap/domain/minimap-drag-finalize/index.mjs +0 -4
- package/esm2022/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.execution.mjs +0 -32
- package/esm2022/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.request.mjs +0 -8
- package/esm2022/f-minimap/domain/minimap-drag-finalize/providers.mjs +0 -5
- package/esm2022/f-minimap/domain/minimap-drag-preparation/index.mjs +0 -4
- package/esm2022/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.execution.mjs +0 -54
- package/esm2022/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.request.mjs +0 -10
- package/esm2022/f-minimap/domain/minimap-drag-preparation/providers.mjs +0 -5
- package/esm2022/f-minimap/domain/minimap-draw-nodes/index.mjs +0 -3
- package/esm2022/f-minimap/domain/minimap-draw-nodes/minimap-draw-nodes.execution.mjs +0 -70
- package/esm2022/f-minimap/domain/minimap-draw-nodes/minimap-draw-nodes.request.mjs +0 -4
- package/esm2022/f-minimap/domain/providers.mjs +0 -15
- package/esm2022/f-storage/features/listen-count-changes/index.mjs +0 -3
- package/esm2022/f-storage/features/listen-count-changes/listen-count-changes-request.mjs +0 -4
- package/esm2022/f-storage/features/listen-count-changes/listen-count-changes.mjs +0 -23
- package/esm2022/f-storage/features/listen-data-changed/index.mjs +0 -3
- package/esm2022/f-storage/features/listen-data-changed/listen-data-changes-request.mjs +0 -4
- package/esm2022/f-storage/features/listen-data-changed/listen-data-changes.mjs +0 -23
- package/esm2022/f-storage/features/notify-data-changed/index.mjs +0 -3
- package/esm2022/f-storage/features/notify-data-changed/notify-data-changed-request.mjs +0 -4
- package/esm2022/f-storage/features/notify-data-changed/notify-data-changed.mjs +0 -22
- package/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.execution.d.ts +0 -15
- package/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.execution.d.ts +0 -10
- package/f-draggable/f-node-resize/apply-parent-resize-constraints/apply-parent-resize-constraints-request.d.ts +0 -8
- package/f-draggable/f-node-resize/apply-parent-resize-constraints/apply-parent-resize-constraints.d.ts +0 -36
- package/f-draggable/f-node-resize/calculate-changed-rect-from-difference/calculate-changed-rect-from-difference.d.ts +0 -11
- package/f-draggable/f-node-resize/calculate-resize-limits/calculate-resize-limits-request.d.ts +0 -8
- package/f-draggable/f-node-resize/constraint/i-resize-constraint.d.ts +0 -7
- package/f-draggable/f-node-resize/constraint/i-resize-limit.d.ts +0 -7
- package/f-draggable/f-node-resize/constraint/i-resize-limits.d.ts +0 -5
- package/f-draggable/f-node-resize/constraint/index.d.ts +0 -4
- package/f-draggable/f-node-resize/i-node-resize-event-data.d.ts +0 -3
- package/f-draggable/f-node-resize/index.d.ts +0 -12
- package/f-draggable/f-node-resize/node-resize.drag-handler.d.ts +0 -29
- package/f-draggable/f-node-resize/providers.d.ts +0 -8
- package/f-draggable/f-node-resize/resize-finalize/index.d.ts +0 -2
- package/f-draggable/f-node-resize/resize-finalize/node-resize-finalize-request.d.ts +0 -6
- package/f-draggable/f-node-resize/resize-finalize/node-resize-finalize.d.ts +0 -10
- package/f-draggable/f-node-resize/resize-preparation/index.d.ts +0 -2
- package/f-draggable/f-node-resize/resize-preparation/node-resize-preparation-request.d.ts +0 -8
- package/f-draggable/f-node-resize/resize-preparation/node-resize-preparation.d.ts +0 -21
- package/f-draggable/f-node-rotate/f-node-rotate.drag-handler.d.ts +0 -39
- package/f-draggable/f-node-rotate/i-node-rotate-event-data.d.ts +0 -3
- package/f-draggable/f-node-rotate/index.d.ts +0 -5
- package/f-draggable/f-node-rotate/providers.d.ts +0 -3
- package/f-draggable/f-node-rotate/rotate-finalize/f-node-rotate-finalize.execution.d.ts +0 -10
- package/f-draggable/f-node-rotate/rotate-finalize/f-node-rotate-finalize.request.d.ts +0 -6
- package/f-draggable/f-node-rotate/rotate-finalize/index.d.ts +0 -2
- package/f-draggable/f-node-rotate/rotate-preparation/f-node-rotate-preparation.execution.d.ts +0 -23
- package/f-draggable/f-node-rotate/rotate-preparation/f-node-rotate-preparation.request.d.ts +0 -8
- package/f-draggable/f-node-rotate/rotate-preparation/index.d.ts +0 -2
- package/f-draggable/i-f-drag-and-drop-plugin.d.ts +0 -10
- package/f-external-item/domain/create-placeholder/f-external-item-create-placeholder.execution.d.ts +0 -13
- package/f-external-item/domain/create-placeholder/f-external-item-create-placeholder.request.d.ts +0 -6
- package/f-external-item/domain/create-placeholder/index.d.ts +0 -2
- package/f-external-item/domain/create-preview/f-external-item-create-preview.execution.d.ts +0 -14
- package/f-external-item/domain/create-preview/f-external-item-create-preview.request.d.ts +0 -6
- package/f-external-item/domain/create-preview/index.d.ts +0 -2
- package/f-external-item/domain/f-create-node.event.d.ts +0 -8
- package/f-external-item/domain/f-external-item.drag-handler.d.ts +0 -35
- package/f-external-item/domain/finalize/f-external-item-finalize.execution.d.ts +0 -22
- package/f-external-item/domain/finalize/f-external-item-finalize.request.d.ts +0 -6
- package/f-external-item/domain/finalize/index.d.ts +0 -2
- package/f-external-item/domain/i-f-external-item-drag-result.d.ts +0 -5
- package/f-external-item/domain/index.d.ts +0 -10
- package/f-external-item/domain/preparation/f-external-item-preparation.execution.d.ts +0 -18
- package/f-external-item/domain/preparation/f-external-item-preparation.request.d.ts +0 -8
- package/f-external-item/domain/preparation/index.d.ts +0 -2
- package/f-external-item/domain/prevent-default-is-external-item/index.d.ts +0 -2
- package/f-external-item/domain/prevent-default-is-external-item/prevent-default-is-external-item.execution.d.ts +0 -10
- package/f-external-item/domain/prevent-default-is-external-item/prevent-default-is-external-item.request.d.ts +0 -5
- package/f-external-item/domain/providers.d.ts +0 -6
- package/f-external-item/f-external-item-placeholder.directive.d.ts +0 -10
- package/f-external-item/f-external-item-preview.directive.d.ts +0 -10
- package/f-external-item/f-external-item-token.d.ts +0 -3
- package/f-external-item/f-external-item.directive.d.ts +0 -20
- package/f-minimap/domain/calculate-flow-point-from-minimap-point/calculate-flow-point-from-minimap-point.execution.d.ts +0 -16
- package/f-minimap/domain/calculate-flow-point-from-minimap-point/calculate-flow-point-from-minimap-point.request.d.ts +0 -10
- package/f-minimap/domain/calculate-flow-point-from-minimap-point/index.d.ts +0 -2
- package/f-minimap/domain/f-minimap-data.d.ts +0 -7
- package/f-minimap/domain/f-minimap.drag-handler.d.ts +0 -22
- package/f-minimap/domain/index.d.ts +0 -9
- package/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/i-f-minimap-scale-and-view-box.d.ts +0 -5
- package/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/index.d.ts +0 -3
- package/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/minimap-calculate-svg-scale-and-view-box.execution.d.ts +0 -22
- package/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/minimap-calculate-svg-scale-and-view-box.request.d.ts +0 -6
- package/f-minimap/domain/minimap-calculate-view-box/index.d.ts +0 -2
- package/f-minimap/domain/minimap-calculate-view-box/minimap-calculate-view-box.execution.d.ts +0 -14
- package/f-minimap/domain/minimap-calculate-view-box/minimap-calculate-view-box.request.d.ts +0 -3
- package/f-minimap/domain/minimap-drag-finalize/index.d.ts +0 -3
- package/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.execution.d.ts +0 -10
- package/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.request.d.ts +0 -6
- package/f-minimap/domain/minimap-drag-finalize/providers.d.ts +0 -2
- package/f-minimap/domain/minimap-drag-preparation/index.d.ts +0 -3
- package/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.execution.d.ts +0 -15
- package/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.request.d.ts +0 -8
- package/f-minimap/domain/minimap-drag-preparation/providers.d.ts +0 -2
- package/f-minimap/domain/minimap-draw-nodes/index.d.ts +0 -2
- package/f-minimap/domain/minimap-draw-nodes/minimap-draw-nodes.execution.d.ts +0 -19
- package/f-minimap/domain/providers.d.ts +0 -5
- package/f-storage/features/listen-count-changes/index.d.ts +0 -2
- package/f-storage/features/listen-count-changes/listen-count-changes-request.d.ts +0 -3
- package/f-storage/features/listen-count-changes/listen-count-changes.d.ts +0 -10
- package/f-storage/features/listen-data-changed/index.d.ts +0 -2
- package/f-storage/features/listen-data-changed/listen-data-changes-request.d.ts +0 -3
- package/f-storage/features/listen-data-changed/listen-data-changes.d.ts +0 -10
- package/f-storage/features/notify-data-changed/index.d.ts +0 -2
- package/f-storage/features/notify-data-changed/notify-data-changed-request.d.ts +0 -3
- package/f-storage/features/notify-data-changed/notify-data-changed.d.ts +0 -9
- /package/domain/f-connectors/find-connectable-connector-using-priority-and-position/{find-connectable-connector-using-priority-and-position.request.d.ts → find-connectable-connector-using-priority-and-position-request.d.ts} +0 -0
- /package/domain/f-node/calculate-nodes-bounding-box/{calculate-nodes-bounding-box.request.d.ts → calculate-nodes-bounding-box-request.d.ts} +0 -0
- /package/domain/f-node/calculate-nodes-bounding-box-normalized-position/{calculate-nodes-bounding-box-normalized-position.request.d.ts → calculate-nodes-bounding-box-normalized-position-request.d.ts} +0 -0
- /package/domain/f-node/get-child-node-ids/{get-child-node-ids.request.d.ts → get-child-node-ids-request.d.ts} +0 -0
- /package/domain/f-node/get-node-padding/{get-node-padding.request.d.ts → get-node-padding-request.d.ts} +0 -0
- /package/domain/f-node/get-parent-nodes/{get-parent-nodes.request.d.ts → get-parent-nodes-request.d.ts} +0 -0
- /package/domain/f-selection/clear-selection/{clear-selection.request.d.ts → clear-selection-request.d.ts} +0 -0
- /package/domain/f-selection/get-current-selection/{get-current-selection.request.d.ts → get-current-selection-request.d.ts} +0 -0
- /package/domain/f-selection/{select/select.request.d.ts → select-items/select-request.d.ts} +0 -0
- /package/{f-minimap/domain/minimap-draw-nodes/minimap-draw-nodes.request.d.ts → domain/minimap/minimap-draw-nodes/minimap-draw-nodes-request.d.ts} +0 -0
- /package/domain/sort-item-layers/sort-node-layers-by-groups/{sort-node-layers.request.d.ts → sort-node-layers-request.d.ts} +0 -0
- /package/f-draggable/domain/get-normalized-parent-node-rect/{get-normalized-parent-node-rect.request.d.ts → get-normalized-parent-node-rect-request.d.ts} +0 -0
- /package/f-draggable/domain/is-array-has-parent-node/{is-array-has-parent-node.request.d.ts → is-array-has-parent-node-request.d.ts} +0 -0
- /package/{f-external-item/domain/constraint → f-draggable/drag-external-item/constraints}/external-rect-constraint.d.ts +0 -0
- /package/{f-external-item/domain/constraint → f-draggable/drag-external-item/constraints}/index.d.ts +0 -0
- /package/f-draggable/pinch-to-zoom/{finalize → pinch-to-zoom-finalize}/index.d.ts +0 -0
- /package/f-draggable/pinch-to-zoom/{finalize → pinch-to-zoom-finalize}/pinch-to-zoom-finalize-request.d.ts +0 -0
- /package/f-draggable/pinch-to-zoom/{finalize → pinch-to-zoom-finalize}/pinch-to-zoom-finalize.d.ts +0 -0
- /package/f-draggable/pinch-to-zoom/{preparation → pinch-to-zoom-preparation}/index.d.ts +0 -0
- /package/f-draggable/pinch-to-zoom/{preparation → pinch-to-zoom-preparation}/pinch-to-zoom-preparation-request.d.ts +0 -0
- /package/f-draggable/pinch-to-zoom/{preparation → pinch-to-zoom-preparation}/pinch-to-zoom-preparation.d.ts +0 -0
- /package/f-draggable/{f-node-resize → resize-node}/apply-child-resize-constraints/apply-child-resize-constraints-request.d.ts +0 -0
- /package/f-draggable/{f-node-resize → resize-node}/apply-child-resize-constraints/apply-child-resize-constraints.d.ts +0 -0
- /package/f-draggable/{f-node-resize → resize-node}/apply-child-resize-constraints/index.d.ts +0 -0
- /package/f-draggable/{f-node-resize → resize-node}/apply-parent-resize-constraints/index.d.ts +0 -0
- /package/f-draggable/{f-node-resize → resize-node}/calculate-changed-rect-from-difference/calculate-changed-rect-from-difference-request.d.ts +0 -0
- /package/f-draggable/{f-node-resize → resize-node}/calculate-changed-rect-from-difference/index.d.ts +0 -0
- /package/f-draggable/{f-node-resize → resize-node}/calculate-direct-children-union-rect/calculate-direct-children-union-rect-request.d.ts +0 -0
- /package/f-draggable/{f-node-resize → resize-node}/calculate-direct-children-union-rect/calculate-direct-children-union-rect.d.ts +0 -0
- /package/f-draggable/{f-node-resize → resize-node}/calculate-direct-children-union-rect/index.d.ts +0 -0
- /package/f-draggable/{f-node-resize → resize-node}/calculate-resize-limits/calculate-resize-limits.d.ts +0 -0
- /package/f-draggable/{f-node-resize → resize-node}/calculate-resize-limits/index.d.ts +0 -0
- /package/f-draggable/{f-node-resize → resize-node}/constraint/i-resize-overflow.d.ts +0 -0
- /package/f-draggable/{f-node-resize → resize-node/constraint}/resize-direction.d.ts +0 -0
- /package/f-draggable/{f-node-rotate → rotate-node}/calculate-difference-after-rotation.d.ts +0 -0
package/esm2022/f-draggable/pinch-to-zoom/pinch-to-zoom-preparation/pinch-to-zoom-preparation.mjs
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { inject, Injectable } from '@angular/core';
|
|
3
|
+
import { PinchToZoomPreparationRequest } from './pinch-to-zoom-preparation-request';
|
|
4
|
+
import { FExecutionRegister } from '@foblex/mediator';
|
|
5
|
+
import { FDraggableDataContext } from '../../f-draggable-data-context';
|
|
6
|
+
import { Point } from '@foblex/2d';
|
|
7
|
+
import { FComponentsStore, INSTANCES } from '../../../f-storage';
|
|
8
|
+
import { PinchToZoomHandler } from '../handler';
|
|
9
|
+
import { DragHandlerInjector } from '../../infrastructure';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
let PinchToZoomPreparation = class PinchToZoomPreparation {
|
|
12
|
+
_dragInjector = inject(DragHandlerInjector);
|
|
13
|
+
_store = inject(FComponentsStore);
|
|
14
|
+
_dragSession = inject(FDraggableDataContext);
|
|
15
|
+
handle({ event }) {
|
|
16
|
+
if (!this._canStart(event)) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
this._dragSession.onPointerDownScale = 1;
|
|
20
|
+
this._dragSession.onPointerDownPosition = new Point();
|
|
21
|
+
this._dragSession.draggableItems = [this._getHandler(event)];
|
|
22
|
+
}
|
|
23
|
+
_canStart(event) {
|
|
24
|
+
return (this._dragSession.isEmpty() &&
|
|
25
|
+
event.touches?.length === 2 &&
|
|
26
|
+
!event.isEventInLockedContext &&
|
|
27
|
+
this._hasZoomComponent());
|
|
28
|
+
}
|
|
29
|
+
_hasZoomComponent() {
|
|
30
|
+
return this._store.instances.has(INSTANCES.ZOOM);
|
|
31
|
+
}
|
|
32
|
+
_getHandler(event) {
|
|
33
|
+
const handler = this._dragInjector.get(PinchToZoomHandler);
|
|
34
|
+
handler.initialize(event.touches);
|
|
35
|
+
return handler;
|
|
36
|
+
}
|
|
37
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PinchToZoomPreparation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
38
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PinchToZoomPreparation });
|
|
39
|
+
};
|
|
40
|
+
PinchToZoomPreparation = __decorate([
|
|
41
|
+
FExecutionRegister(PinchToZoomPreparationRequest)
|
|
42
|
+
], PinchToZoomPreparation);
|
|
43
|
+
export { PinchToZoomPreparation };
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PinchToZoomPreparation, decorators: [{
|
|
45
|
+
type: Injectable
|
|
46
|
+
}] });
|
|
47
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGluY2gtdG8tem9vbS1wcmVwYXJhdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZi1kcmFnZ2FibGUvcGluY2gtdG8tem9vbS9waW5jaC10by16b29tLXByZXBhcm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YW5kbGVyLmluaXRpYWxpemUoZXZlbnQudG91Y2hlcyk7XG5cbiAgICByZXR1cm4gaGFuZGxlcjtcbiAgfVxufVxuIl19
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PinchToZoomPreparation } from './preparation';
|
|
2
|
-
import { PinchToZoomFinalize } from './finalize';
|
|
1
|
+
import { PinchToZoomPreparation } from './pinch-to-zoom-preparation';
|
|
2
|
+
import { PinchToZoomFinalize } from './pinch-to-zoom-finalize';
|
|
3
3
|
export const PINCH_TO_ZOOM_PROVIDERS = [PinchToZoomPreparation, PinchToZoomFinalize];
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvdmlkZXJzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9mLWRyYWdnYWJsZS9waW5jaC10by16b29tL3Byb3ZpZGVycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUNyRSxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUUvRCxNQUFNLENBQUMsTUFBTSx1QkFBdUIsR0FBRyxDQUFDLHNCQUFzQixFQUFFLG1CQUFtQixDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBQaW5jaFRvWm9vbVByZXBhcmF0aW9uIH0gZnJvbSAnLi9waW5jaC10by16b29tLXByZXBhcmF0aW9uJztcbmltcG9ydCB7IFBpbmNoVG9ab29tRmluYWxpemUgfSBmcm9tICcuL3BpbmNoLXRvLXpvb20tZmluYWxpemUnO1xuXG5leHBvcnQgY29uc3QgUElOQ0hfVE9fWk9PTV9QUk9WSURFUlMgPSBbUGluY2hUb1pvb21QcmVwYXJhdGlvbiwgUGluY2hUb1pvb21GaW5hbGl6ZV07XG4iXX0=
|
|
@@ -2,26 +2,26 @@ import { DRAG_CANVAS_PROVIDERS } from './drag-canvas';
|
|
|
2
2
|
import { DRAG_CONNECTIONS_PROVIDERS } from './connection';
|
|
3
3
|
import { DRAG_SELECT_BY_POINTER_PROVIDERS } from './select-by-pointer';
|
|
4
4
|
import { NODE_PROVIDERS } from './drag-node';
|
|
5
|
-
import { NODE_RESIZE_PROVIDERS } from './
|
|
6
|
-
import { F_MINIMAP_DRAG_AND_DROP_PROVIDERS } from '../f-minimap/domain/providers';
|
|
7
|
-
import { F_EXTERNAL_ITEM_DRAG_AND_DROP_PROVIDERS } from '../f-external-item';
|
|
5
|
+
import { NODE_RESIZE_PROVIDERS } from './resize-node';
|
|
8
6
|
import { DRAG_AND_DROP_COMMON_PROVIDERS } from './domain';
|
|
9
7
|
import { DRAG_DROP_TO_GROUP_PROVIDERS } from './drop-to-group';
|
|
10
|
-
import { NODE_ROTATE_PROVIDERS } from './
|
|
8
|
+
import { NODE_ROTATE_PROVIDERS } from './rotate-node';
|
|
11
9
|
import { PINCH_TO_ZOOM_PROVIDERS } from './pinch-to-zoom';
|
|
12
10
|
import { DRAG_SELECTION_AREA_PROVIDERS } from './selection-area';
|
|
11
|
+
import { DRAG_EXTERNAL_ITEM_PROVIDERS } from './drag-external-item';
|
|
12
|
+
import { DRAG_MINIMAP_PROVIDERS } from './drag-minimap';
|
|
13
13
|
export const F_DRAGGABLE_PROVIDERS = [
|
|
14
14
|
...DRAG_CANVAS_PROVIDERS,
|
|
15
15
|
...DRAG_CONNECTIONS_PROVIDERS,
|
|
16
16
|
...DRAG_AND_DROP_COMMON_PROVIDERS,
|
|
17
17
|
...DRAG_SELECT_BY_POINTER_PROVIDERS,
|
|
18
|
-
...
|
|
18
|
+
...DRAG_EXTERNAL_ITEM_PROVIDERS,
|
|
19
|
+
...DRAG_MINIMAP_PROVIDERS,
|
|
19
20
|
...NODE_PROVIDERS,
|
|
20
21
|
...DRAG_DROP_TO_GROUP_PROVIDERS,
|
|
21
22
|
...NODE_RESIZE_PROVIDERS,
|
|
22
23
|
...NODE_ROTATE_PROVIDERS,
|
|
23
24
|
...DRAG_SELECTION_AREA_PROVIDERS,
|
|
24
|
-
...F_MINIMAP_DRAG_AND_DROP_PROVIDERS,
|
|
25
25
|
...PINCH_TO_ZOOM_PROVIDERS,
|
|
26
26
|
];
|
|
27
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvdmlkZXJzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9mLWRyYWdnYWJsZS9wcm92aWRlcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3RELE9BQU8sRUFBRSwwQkFBMEIsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUMxRCxPQUFPLEVBQUUsZ0NBQWdDLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUN2RSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sYUFBYSxDQUFDO0FBQzdDLE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN0RCxPQUFPLEVBQUUsOEJBQThCLEVBQUUsTUFBTSxVQUFVLENBQUM7QUFDMUQsT0FBTyxFQUFFLDRCQUE0QixFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0QsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3RELE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQzFELE9BQU8sRUFBRSw2QkFBNk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class ApplyChildResizeConstraintsRequest {
|
|
2
|
+
rect;
|
|
3
|
+
childrenBounds;
|
|
4
|
+
static fToken = Symbol('ApplyChildResizeConstraintsRequest');
|
|
5
|
+
constructor(rect, childrenBounds) {
|
|
6
|
+
this.rect = rect;
|
|
7
|
+
this.childrenBounds = childrenBounds;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwbHktY2hpbGQtcmVzaXplLWNvbnN0cmFpbnRzLXJlcXVlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2YtZHJhZ2dhYmxlL3Jlc2l6ZS1ub2RlL2FwcGx5LWNoaWxkLXJlc2l6ZS1jb25zdHJhaW50cy9hcHBseS1jaGlsZC1yZXNpemUtY29uc3RyYWludHMtcmVxdWVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxNQUFNLE9BQU8sa0NBQWtDO0lBSTNCO0lBQ0E7SUFKbEIsTUFBTSxDQUFVLE1BQU0sR0FBRyxNQUFNLENBQUMsb0NBQW9DLENBQUMsQ0FBQztJQUV0RSxZQUNrQixJQUFXLEVBQ1gsY0FBNEI7UUFENUIsU0FBSSxHQUFKLElBQUksQ0FBTztRQUNYLG1CQUFjLEdBQWQsY0FBYyxDQUFjO0lBQzNDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJUmVjdCB9IGZyb20gJ0Bmb2JsZXgvMmQnO1xuXG5leHBvcnQgY2xhc3MgQXBwbHlDaGlsZFJlc2l6ZUNvbnN0cmFpbnRzUmVxdWVzdCB7XG4gIHN0YXRpYyByZWFkb25seSBmVG9rZW4gPSBTeW1ib2woJ0FwcGx5Q2hpbGRSZXNpemVDb25zdHJhaW50c1JlcXVlc3QnKTtcblxuICBjb25zdHJ1Y3RvcihcbiAgICBwdWJsaWMgcmVhZG9ubHkgcmVjdDogSVJlY3QsXG4gICAgcHVibGljIHJlYWRvbmx5IGNoaWxkcmVuQm91bmRzOiBJUmVjdCB8IG51bGwsXG4gICkge31cbn1cbiJdfQ==
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import { ApplyChildResizeConstraintsRequest } from './apply-child-resize-constraints-request';
|
|
4
|
+
import { FExecutionRegister } from '@foblex/mediator';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
let ApplyChildResizeConstraints = class ApplyChildResizeConstraints {
|
|
7
|
+
handle({ rect, childrenBounds }) {
|
|
8
|
+
if (!childrenBounds) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
this._apply(rect, childrenBounds);
|
|
12
|
+
}
|
|
13
|
+
_apply(rect, restrictionsRect) {
|
|
14
|
+
this._restrictLeft(rect, restrictionsRect);
|
|
15
|
+
this._restrictTop(rect, restrictionsRect);
|
|
16
|
+
this._restrictRight(rect, restrictionsRect);
|
|
17
|
+
this._restrictBottom(rect, restrictionsRect);
|
|
18
|
+
rect.width = Math.max(0, rect.width);
|
|
19
|
+
rect.height = Math.max(0, rect.height);
|
|
20
|
+
}
|
|
21
|
+
_restrictLeft(rect, restrictions) {
|
|
22
|
+
const delta = rect.x - restrictions.x;
|
|
23
|
+
if (delta > 0) {
|
|
24
|
+
rect.x -= delta;
|
|
25
|
+
rect.width += delta;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
_restrictTop(rect, restrictions) {
|
|
29
|
+
const delta = rect.y - restrictions.y;
|
|
30
|
+
if (delta > 0) {
|
|
31
|
+
rect.y -= delta;
|
|
32
|
+
rect.height += delta;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
_restrictRight(rect, restrictions) {
|
|
36
|
+
const maxRight = restrictions.x + restrictions.width;
|
|
37
|
+
if (rect.x + rect.width <= maxRight) {
|
|
38
|
+
rect.width = maxRight - rect.x;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
_restrictBottom(rect, restrictions) {
|
|
42
|
+
const maxBottom = restrictions.y + restrictions.height;
|
|
43
|
+
if (rect.y + rect.height <= maxBottom) {
|
|
44
|
+
rect.height = maxBottom - rect.y;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApplyChildResizeConstraints, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
48
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApplyChildResizeConstraints });
|
|
49
|
+
};
|
|
50
|
+
ApplyChildResizeConstraints = __decorate([
|
|
51
|
+
FExecutionRegister(ApplyChildResizeConstraintsRequest)
|
|
52
|
+
], ApplyChildResizeConstraints);
|
|
53
|
+
export { ApplyChildResizeConstraints };
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApplyChildResizeConstraints, decorators: [{
|
|
55
|
+
type: Injectable
|
|
56
|
+
}] });
|
|
57
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwbHktY2hpbGQtcmVzaXplLWNvbnN0cmFpbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9mLWRyYWdnYWJsZS9yZXNpemUtbm9kZS9hcHBseS1jaGlsZC1yZXNpemUtY29uc3RyYWludHMvYXBwbHktY2hpbGQtcmVzaXplLWNvbnN0cmFpbnRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUF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3Rpb25zOiBJUmVjdCk6IHZvaWQge1xuICAgIGNvbnN0IG1heFJpZ2h0ID0gcmVzdHJpY3Rpb25zLnggKyByZXN0cmljdGlvbnMud2lkdGg7XG4gICAgaWYgKHJlY3QueCArIHJlY3Qud2lkdGggPD0gbWF4UmlnaHQpIHtcbiAgICAgIHJlY3Qud2lkdGggPSBtYXhSaWdodCAtIHJlY3QueDtcbiAgICB9XG4gIH1cblxuICBwcml2YXRlIF9yZXN0cmljdEJvdHRvbShyZWN0OiBJUmVjdCwgcmVzdHJpY3Rpb25zOiBJUmVjdCk6IHZvaWQge1xuICAgIGNvbnN0IG1heEJvdHRvbSA9IHJlc3RyaWN0aW9ucy55ICsgcmVzdHJpY3Rpb25zLmhlaWdodDtcbiAgICBpZiAocmVjdC55ICsgcmVjdC5oZWlnaHQgPD0gbWF4Qm90dG9tKSB7XG4gICAgICByZWN0LmhlaWdodCA9IG1heEJvdHRvbSAtIHJlY3QueTtcbiAgICB9XG4gIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './apply-child-resize-constraints';
|
|
2
|
+
export * from './apply-child-resize-constraints-request';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2YtZHJhZ2dhYmxlL3Jlc2l6ZS1ub2RlL2FwcGx5LWNoaWxkLXJlc2l6ZS1jb25zdHJhaW50cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGtDQUFrQyxDQUFDO0FBRWpELGNBQWMsMENBQTBDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2FwcGx5LWNoaWxkLXJlc2l6ZS1jb25zdHJhaW50cyc7XG5cbmV4cG9ydCAqIGZyb20gJy4vYXBwbHktY2hpbGQtcmVzaXplLWNvbnN0cmFpbnRzLXJlcXVlc3QnO1xuIl19
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export class ApplyParentResizeConstraintsRequest {
|
|
2
|
+
rect;
|
|
3
|
+
limits;
|
|
4
|
+
static fToken = Symbol('ApplyParentResizeConstraintsRequest');
|
|
5
|
+
constructor(rect, limits) {
|
|
6
|
+
this.rect = rect;
|
|
7
|
+
this.limits = limits;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwbHktcGFyZW50LXJlc2l6ZS1jb25zdHJhaW50cy1yZXF1ZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9mLWRyYWdnYWJsZS9yZXNpemUtbm9kZS9hcHBseS1wYXJlbnQtcmVzaXplLWNvbnN0cmFpbnRzL2FwcGx5LXBhcmVudC1yZXNpemUtY29uc3RyYWludHMtcmVxdWVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFHQSxNQUFNLE9BQU8sbUNBQW1DO0lBSXJDO0lBQ0E7SUFKVCxNQUFNLENBQVUsTUFBTSxHQUFHLE1BQU0sQ0FBQyxxQ0FBcUMsQ0FBQyxDQUFDO0lBRXZFLFlBQ1MsSUFBVyxFQUNYLE1BQXFCO1FBRHJCLFNBQUksR0FBSixJQUFJLENBQU87UUFDWCxXQUFNLEdBQU4sTUFBTSxDQUFlO0lBQzNCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJUmVjdCB9IGZyb20gJ0Bmb2JsZXgvMmQnO1xuaW1wb3J0IHsgSVJlc2l6ZUxpbWl0cyB9IGZyb20gJy4uL2NvbnN0cmFpbnQnO1xuXG5leHBvcnQgY2xhc3MgQXBwbHlQYXJlbnRSZXNpemVDb25zdHJhaW50c1JlcXVlc3Qge1xuICBzdGF0aWMgcmVhZG9ubHkgZlRva2VuID0gU3ltYm9sKCdBcHBseVBhcmVudFJlc2l6ZUNvbnN0cmFpbnRzUmVxdWVzdCcpO1xuXG4gIGNvbnN0cnVjdG9yKFxuICAgIHB1YmxpYyByZWN0OiBJUmVjdCxcbiAgICBwdWJsaWMgbGltaXRzOiBJUmVzaXplTGltaXRzLFxuICApIHt9XG59XG4iXX0=
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { inject, Injectable } from '@angular/core';
|
|
3
|
+
import { ApplyParentResizeConstraintsRequest } from './apply-parent-resize-constraints-request';
|
|
4
|
+
import { FExecutionRegister, FMediator } from '@foblex/mediator';
|
|
5
|
+
import { SetFCacheNodeRectRequest } from '../../../f-cache';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Resize constraints behavior:
|
|
9
|
+
* - SOFT (parents): if the child hits the innerRect, a NEW parent rect is calculated
|
|
10
|
+
* from the original boundingRect and applied via updatePosition/Size/redraw.
|
|
11
|
+
* The original boundingRect/innerRect are never mutated.
|
|
12
|
+
* - HARD (child): the child rect is clamped to stay within the hard.innerRect.
|
|
13
|
+
*/
|
|
14
|
+
let ApplyParentResizeConstraints = class ApplyParentResizeConstraints {
|
|
15
|
+
_mediator = inject(FMediator);
|
|
16
|
+
/** Entry point: applies soft and hard resize constraints. */
|
|
17
|
+
handle({ rect, limits }) {
|
|
18
|
+
this._applyResizeConstraints(rect, limits);
|
|
19
|
+
}
|
|
20
|
+
// ──────────────────────────────────────────────────────────────────────────────
|
|
21
|
+
// Top–level orchestration
|
|
22
|
+
// ──────────────────────────────────────────────────────────────────────────────
|
|
23
|
+
_applyResizeConstraints(childRect, limits) {
|
|
24
|
+
if (!limits) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
// 1) Clone child rect and pre-clamp it by hard limit (calculation only).
|
|
28
|
+
const childForCalc = this._clampedCopyForCalculation(childRect, limits);
|
|
29
|
+
// 2) Apply SOFT expansions for all parent limits based on the clamped child.
|
|
30
|
+
this._applySoftParentExpansions(childForCalc, limits.softLimits);
|
|
31
|
+
// 3) Final HARD clamp on the real child rect.
|
|
32
|
+
if (limits.hardLimit) {
|
|
33
|
+
this._clampRectToInner(childRect, limits.hardLimit.innerRect);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
// ──────────────────────────────────────────────────────────────────────────────
|
|
37
|
+
// Hard-limit stage
|
|
38
|
+
// ──────────────────────────────────────────────────────────────────────────────
|
|
39
|
+
/** Returns a copy of the child rect pre-clamped to the hard innerRect if it exists. */
|
|
40
|
+
_clampedCopyForCalculation(rect, limits) {
|
|
41
|
+
const copy = { ...rect };
|
|
42
|
+
if (limits.hardLimit) {
|
|
43
|
+
this._clampRectToInner(copy, limits.hardLimit.innerRect);
|
|
44
|
+
}
|
|
45
|
+
return copy;
|
|
46
|
+
}
|
|
47
|
+
/** Clamps the rect inside the given innerRect. Mutates the rect directly. */
|
|
48
|
+
_clampRectToInner(rect, inner) {
|
|
49
|
+
// Left
|
|
50
|
+
if (rect.x < inner.x) {
|
|
51
|
+
const diff = inner.x - rect.x;
|
|
52
|
+
rect.x += diff;
|
|
53
|
+
rect.width -= diff;
|
|
54
|
+
}
|
|
55
|
+
// Top
|
|
56
|
+
if (rect.y < inner.y) {
|
|
57
|
+
const diff = inner.y - rect.y;
|
|
58
|
+
rect.y += diff;
|
|
59
|
+
rect.height -= diff;
|
|
60
|
+
}
|
|
61
|
+
// Right
|
|
62
|
+
const rightMax = inner.x + inner.width;
|
|
63
|
+
if (rect.x + rect.width > rightMax) {
|
|
64
|
+
rect.width = rightMax - rect.x;
|
|
65
|
+
}
|
|
66
|
+
// Bottom
|
|
67
|
+
const bottomMax = inner.y + inner.height;
|
|
68
|
+
if (rect.y + rect.height > bottomMax) {
|
|
69
|
+
rect.height = bottomMax - rect.y;
|
|
70
|
+
}
|
|
71
|
+
// Ensure non-negative sizes
|
|
72
|
+
rect.width = Math.max(0, rect.width);
|
|
73
|
+
rect.height = Math.max(0, rect.height);
|
|
74
|
+
}
|
|
75
|
+
// ──────────────────────────────────────────────────────────────────────────────
|
|
76
|
+
// Soft-limit stage
|
|
77
|
+
// ──────────────────────────────────────────────────────────────────────────────
|
|
78
|
+
/** Iterates over all soft limits and applies expansion if overflow is detected. */
|
|
79
|
+
_applySoftParentExpansions(childForCalc, softLimits) {
|
|
80
|
+
if (!softLimits?.length) {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
for (const limit of softLimits) {
|
|
84
|
+
this._expandParentFromOriginalIfOverflow(childForCalc, limit);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* If the child overflows the parent's innerRect, calculate a new parent rect
|
|
89
|
+
* based on the original boundingRect and apply it. Otherwise, reset to original.
|
|
90
|
+
*/
|
|
91
|
+
_expandParentFromOriginalIfOverflow(child, limit) {
|
|
92
|
+
const inner = limit.innerRect; // detector only
|
|
93
|
+
const original = limit.boundingRect; // parent's original rect
|
|
94
|
+
const overflow = this._computeOverflow(inner, child);
|
|
95
|
+
if (!this._hasOverflow(overflow)) {
|
|
96
|
+
this._applyParentRect(limit, original);
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
const nextParent = this._buildExpandedParentRect(original, overflow);
|
|
100
|
+
this._applyParentRect(limit, nextParent);
|
|
101
|
+
}
|
|
102
|
+
/** Returns true if any overflow exists. */
|
|
103
|
+
_hasOverflow(o) {
|
|
104
|
+
return !!(o.left || o.top || o.right || o.bottom);
|
|
105
|
+
}
|
|
106
|
+
/** Computes overflow values for each side relative to innerRect. */
|
|
107
|
+
_computeOverflow(inner, child) {
|
|
108
|
+
const left = Math.max(0, inner.x - child.x);
|
|
109
|
+
const top = Math.max(0, inner.y - child.y);
|
|
110
|
+
const right = Math.max(0, child.x + child.width - (inner.x + inner.width));
|
|
111
|
+
const bottom = Math.max(0, child.y + child.height - (inner.y + inner.height));
|
|
112
|
+
return { left, top, right, bottom };
|
|
113
|
+
}
|
|
114
|
+
/** Builds new parent rect from original rect and overflow values. */
|
|
115
|
+
_buildExpandedParentRect(original, o) {
|
|
116
|
+
const parent = { ...original };
|
|
117
|
+
if (o.left) {
|
|
118
|
+
parent.x = original.x - o.left;
|
|
119
|
+
parent.width = original.width + o.left;
|
|
120
|
+
}
|
|
121
|
+
if (o.top) {
|
|
122
|
+
parent.y = original.y - o.top;
|
|
123
|
+
parent.height = original.height + o.top;
|
|
124
|
+
}
|
|
125
|
+
if (o.right) {
|
|
126
|
+
parent.width = (parent.width ?? original.width) + o.right;
|
|
127
|
+
}
|
|
128
|
+
if (o.bottom) {
|
|
129
|
+
parent.height = (parent.height ?? original.height) + o.bottom;
|
|
130
|
+
}
|
|
131
|
+
return parent;
|
|
132
|
+
}
|
|
133
|
+
/** Applies the calculated parent rect to the node/group. */
|
|
134
|
+
_applyParentRect(limit, rect) {
|
|
135
|
+
limit.nodeOrGroup.updatePosition(rect);
|
|
136
|
+
limit.nodeOrGroup.updateSize(rect);
|
|
137
|
+
this._mediator.execute(new SetFCacheNodeRectRequest(limit.nodeOrGroup.fId(), rect));
|
|
138
|
+
limit.nodeOrGroup.redraw();
|
|
139
|
+
}
|
|
140
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApplyParentResizeConstraints, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
141
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApplyParentResizeConstraints });
|
|
142
|
+
};
|
|
143
|
+
ApplyParentResizeConstraints = __decorate([
|
|
144
|
+
FExecutionRegister(ApplyParentResizeConstraintsRequest)
|
|
145
|
+
], ApplyParentResizeConstraints);
|
|
146
|
+
export { ApplyParentResizeConstraints };
|
|
147
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApplyParentResizeConstraints, decorators: [{
|
|
148
|
+
type: Injectable
|
|
149
|
+
}] });
|
|
150
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwbHktcGFyZW50LXJlc2l6ZS1jb25zdHJhaW50cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZi1kcmFnZ2FibGUvcmVzaXplLW5vZGUvYXBwbHktcGFyZW50LXJlc2l6ZS1jb25zdHJhaW50cy9hcHBseS1wYXJlbnQtcmVzaXplLWNvbnN0cmFpbnRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNuRCxPQUFPLEVBQUUsbUNBQW1DLEVBQUUsTUFBTSwyQ0FBMkMsQ0FBQztBQUVoRyxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsU0FBUyxFQUFjLE1BQU0sa0JBQWtCLENBQUM7QUFFN0UsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sa0JBQWtCLENBQUM7O0FBRTVEOzs7Ozs7R0FNRztBQUdJLElBQU0sNEJBQTRCLEdBQWxDLE1BQU0sNEJBQTRCO0lBSXRCLFNBQVMsR0FBRyxNQUFNLENBQUMsU0FBUyxDQUFDLENBQUM7SUFFL0MsNkRBQTZEO0lBQ3RELE1BQU0sQ0FBQyxFQUFFLElBQUksRUFBRSxNQUFNLEVBQXVDO1FBQ2pFLElBQUksQ0FBQyx1QkFBdUIsQ0FBQyxJQUFJLEVBQUUsTUFBTSxDQUFDLENBQUM7SUFDN0MsQ0FBQztJQUVELGlGQUFpRjtJQUNqRiwwQkFBMEI7SUFDMUIsa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biAgICB9XG5cbiAgICAvLyBUb3BcbiAgICBpZiAocmVjdC55IDwgaW5uZXIueSkge1xuICAgICAgY29uc3QgZGlmZiA9IGlubmVyLnkgLSByZWN0Lnk7XG4gICAgICByZWN0LnkgKz0gZGlmZjtcbiAgICAgIHJlY3QuaGVpZ2h0IC09IGRpZmY7XG4gICAgfVxuXG4gICAgLy8gUmlnaHRcbiAgICBjb25zdCByaWdodE1heCA9IGlubmVyLnggKyBpbm5lci53aWR0aDtcbiAgICBpZiAocmVjdC54ICsgcmVjdC53aWR0aCA+IHJpZ2h0TWF4KSB7XG4gICAgICByZWN0LndpZHRoID0gcmlnaHRNYXggLSByZWN0Lng7XG4gICAgfVxuXG4gICAgLy8gQm90dG9tXG4gICAgY29uc3QgYm90dG9tTWF4ID0gaW5uZXIueSArIGlubmVyLmhlaWdodDtcbiAgICBpZiAocmVjdC55ICsgcmVjdC5oZWlnaHQgPiBib3R0b21NYXgpIHtcbiAgICAgIHJlY3QuaGVpZ2h0ID0gYm90dG9tTWF4IC0gcmVjdC55O1xuICAgIH1cblxuICAgIC8vIEVuc3VyZSBub24tbmVnYXRpdmUgc2l6ZXNcbiAgICByZWN0LndpZHRoID0gTWF0aC5tYXgoMCwgcmVjdC53aWR0aCk7XG4gICAgcmVjdC5oZWlnaHQgPSBNYXRoLm1heCgwLCByZWN0LmhlaWdodCk7XG4gIH1cblxuICAvLyDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIBcbiAgLy8gU29mdC1saW1pdCBzdGFnZVxuICAvLyDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIBcblxuICAvKiogSXRlcmF0ZXMgb3ZlciBhbGwgc29mdCBsaW1pdHMgYW5kIGFwcGxpZXMgZXhwYW5zaW9uIGlmIG92ZXJmbG93IGlzIGRldGVjdGVkLiAqL1xuICBwcml2YXRlIF9hcHBseVNvZnRQYXJlbnRFeHBhbnNpb25zKGNoaWxkRm9yQ2FsYzogSVJlY3QsIHNvZnRMaW1pdHM6IElSZXNpemVMaW1pdFtdKTogdm9pZCB7XG4gICAgaWYgKCFzb2Z0TGltaXRzPy5sZW5ndGgpIHtcbiAgICAgIHJldHVybjtcbiAgICB9XG4gICAgZm9yIChjb25zdCBsaW1pdCBvZiBzb2Z0TGltaXRzKSB7XG4gICAgICB0aGlzLl9leHBhbmRQYXJlbnRGcm9tT3JpZ2luYWxJZk92ZXJmbG93KGNoaWxkRm9yQ2FsYywgbGltaXQpO1xuICAgIH1cbiAgfVxuXG4gIC8qKlxuICAgKiBJZiB0aGUgY2hpbGQgb3ZlcmZsb3dzIHRoZSBwYXJlbnQncyBpbm5lclJlY3QsIGNhbGN1bGF0ZSBhIG5ldyBwYXJlbnQgcmVjdFxuICAgKiBiYXNlZCBvbiB0aGUgb3JpZ2luYWwgYm91bmRpbmdSZWN0IGFuZCBhcHBseSBpdC4gT3RoZXJ3aXNlLCByZXNldCB0byBvcmlnaW5hbC5cbiAgICovXG4gIHByaXZhdGUgX2V4cGFuZFBhcmVudEZyb21PcmlnaW5hbElmT3ZlcmZsb3coY2hpbGQ6IElSZWN0LCBsaW1pdDogSVJlc2l6ZUxpbWl0KTogdm9pZCB7XG4gICAgY29uc3QgaW5uZXIg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G4gICAgfVxuXG4gICAgcmV0dXJuIHBhcmVudDtcbiAgfVxuXG4gIC8qKiBBcHBsaWVzIHRoZSBjYWxjdWxhdGVkIHBhcmVudCByZWN0IHRvIHRoZSBub2RlL2dyb3VwLiAqL1xuICBwcml2YXRlIF9hcHBseVBhcmVudFJlY3QobGltaXQ6IElSZXNpemVMaW1pdCwgcmVjdDogSVJlY3QpOiB2b2lkIHtcbiAgICBsaW1pdC5ub2RlT3JHcm91cC51cGRhdGVQb3NpdGlvbihyZWN0KTtcbiAgICBsaW1pdC5ub2RlT3JHcm91cC51cGRhdGVTaXplKHJlY3QpO1xuICAgIHRoaXMuX21lZGlhdG9yLmV4ZWN1dGUobmV3IFNldEZDYWNoZU5vZGVSZWN0UmVxdWVzdChsaW1pdC5ub2RlT3JHcm91cC5mSWQoKSwgcmVjdCkpO1xuICAgIGxpbWl0Lm5vZGVPckdyb3VwLnJlZHJhdygpO1xuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './apply-parent-resize-constraints';
|
|
2
|
+
export * from './apply-parent-resize-constraints-request';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2YtZHJhZ2dhYmxlL3Jlc2l6ZS1ub2RlL2FwcGx5LXBhcmVudC1yZXNpemUtY29uc3RyYWludHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxtQ0FBbUMsQ0FBQztBQUVsRCxjQUFjLDJDQUEyQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9hcHBseS1wYXJlbnQtcmVzaXplLWNvbnN0cmFpbnRzJztcblxuZXhwb3J0ICogZnJvbSAnLi9hcHBseS1wYXJlbnQtcmVzaXplLWNvbnN0cmFpbnRzLXJlcXVlc3QnO1xuIl19
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export class CalculateChangedRectFromDifferenceRequest {
|
|
2
|
+
originalRect;
|
|
3
|
+
difference;
|
|
4
|
+
handleType;
|
|
5
|
+
minimumSize;
|
|
6
|
+
static fToken = Symbol('CalculateChangedRectFromDifferenceRequest');
|
|
7
|
+
constructor(originalRect, difference, handleType, minimumSize) {
|
|
8
|
+
this.originalRect = originalRect;
|
|
9
|
+
this.difference = difference;
|
|
10
|
+
this.handleType = handleType;
|
|
11
|
+
this.minimumSize = minimumSize;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FsY3VsYXRlLWNoYW5nZWQtcmVjdC1mcm9tLWRpZmZlcmVuY2UtcmVxdWVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZi1kcmFnZ2FibGUvcmVzaXplLW5vZGUvY2FsY3VsYXRlLWNoYW5nZWQtcmVjdC1mcm9tLWRpZmZlcmVuY2UvY2FsY3VsYXRlLWNoYW5nZWQtcmVjdC1mcm9tLWRpZmZlcmVuY2UtcmVxdWVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFHQSxNQUFNLE9BQU8seUNBQXlDO0lBSWxDO0lBQ0E7SUFDQTtJQUNBO0lBTmxCLE1BQU0sQ0FBVSxNQUFNLEdBQUcsTUFBTSxDQUFDLDJDQUEyQyxDQUFDLENBQUM7SUFFN0UsWUFDa0IsWUFBbUIsRUFDbkIsVUFBa0IsRUFDbEIsVUFBOEIsRUFDOUIsV0FBa0I7UUFIbEIsaUJBQVksR0FBWixZQUFZLENBQU87UUFDbkIsZUFBVSxHQUFWLFVBQVUsQ0FBUTtRQUNsQixlQUFVLEdBQVYsVUFBVSxDQUFvQjtRQUM5QixnQkFBVyxHQUFYLFdBQVcsQ0FBTztJQUNqQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSVBvaW50LCBJUmVjdCwgSVNpemUgfSBmcm9tICdAZm9ibGV4LzJkJztcbmltcG9ydCB7IEVGUmVzaXplSGFuZGxlVHlwZSB9IGZyb20gJy4uLy4uLy4uL2Ytbm9kZSc7XG5cbmV4cG9ydCBjbGFzcyBDYWxjdWxhdGVDaGFuZ2VkUmVjdEZyb21EaWZmZXJlbmNlUmVxdWVzdCB7XG4gIHN0YXRpYyByZWFkb25seSBmVG9rZW4gPSBTeW1ib2woJ0NhbGN1bGF0ZUNoYW5nZWRSZWN0RnJvbURpZmZlcmVuY2VSZXF1ZXN0Jyk7XG5cbiAgY29uc3RydWN0b3IoXG4gICAgcHVibGljIHJlYWRvbmx5IG9yaWdpbmFsUmVjdDogSVJlY3QsXG4gICAgcHVibGljIHJlYWRvbmx5IGRpZmZlcmVuY2U6IElQb2ludCxcbiAgICBwdWJsaWMgcmVhZG9ubHkgaGFuZGxlVHlwZTogRUZSZXNpemVIYW5kbGVUeXBlLFxuICAgIHB1YmxpYyByZWFkb25seSBtaW5pbXVtU2l6ZTogSVNpemUsXG4gICkge31cbn1cbiJdfQ==
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import { CalculateChangedRectFromDifferenceRequest } from './calculate-changed-rect-from-difference-request';
|
|
4
|
+
import { RectExtensions } from '@foblex/2d';
|
|
5
|
+
import { FExecutionRegister } from '@foblex/mediator';
|
|
6
|
+
import { RESIZE_DIRECTIONS } from '../constraint';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
let CalculateChangedRectFromDifference = class CalculateChangedRectFromDifference {
|
|
9
|
+
handle({ originalRect, difference, handleType, minimumSize, }) {
|
|
10
|
+
const changedRect = this._changeSizeInRect(originalRect, difference, RESIZE_DIRECTIONS[handleType], minimumSize);
|
|
11
|
+
return this._changePosition(originalRect, difference, RESIZE_DIRECTIONS[handleType], changedRect);
|
|
12
|
+
}
|
|
13
|
+
_changeSizeInRect(originalRect, difference, direction, minimumSize) {
|
|
14
|
+
let w = originalRect.width + direction.x * difference.x;
|
|
15
|
+
let h = originalRect.height + direction.y * difference.y;
|
|
16
|
+
let rx = 0;
|
|
17
|
+
let ry = 0;
|
|
18
|
+
if (w < 0) {
|
|
19
|
+
rx = w;
|
|
20
|
+
w = Math.abs(w);
|
|
21
|
+
}
|
|
22
|
+
if (w < minimumSize.width) {
|
|
23
|
+
if (direction.x === -1) {
|
|
24
|
+
rx += w - minimumSize.width;
|
|
25
|
+
}
|
|
26
|
+
w = minimumSize.width;
|
|
27
|
+
}
|
|
28
|
+
if (h < 0) {
|
|
29
|
+
ry = h;
|
|
30
|
+
h = Math.abs(h);
|
|
31
|
+
}
|
|
32
|
+
if (h < minimumSize.height) {
|
|
33
|
+
if (direction.y === -1) {
|
|
34
|
+
ry += h - minimumSize.height;
|
|
35
|
+
}
|
|
36
|
+
h = minimumSize.height;
|
|
37
|
+
}
|
|
38
|
+
return RectExtensions.initialize(rx, ry, w, h);
|
|
39
|
+
}
|
|
40
|
+
_changePosition(originalRect, difference, direction, changedRect) {
|
|
41
|
+
const x = originalRect.x + (direction.x === -1 ? difference.x : 0) + changedRect.x;
|
|
42
|
+
const y = originalRect.y + (direction.y === -1 ? difference.y : 0) + changedRect.y;
|
|
43
|
+
return RectExtensions.initialize(x, y, changedRect.width, changedRect.height);
|
|
44
|
+
}
|
|
45
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CalculateChangedRectFromDifference, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
46
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CalculateChangedRectFromDifference });
|
|
47
|
+
};
|
|
48
|
+
CalculateChangedRectFromDifference = __decorate([
|
|
49
|
+
FExecutionRegister(CalculateChangedRectFromDifferenceRequest)
|
|
50
|
+
], CalculateChangedRectFromDifference);
|
|
51
|
+
export { CalculateChangedRectFromDifference };
|
|
52
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CalculateChangedRectFromDifference, decorators: [{
|
|
53
|
+
type: Injectable
|
|
54
|
+
}] });
|
|
55
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FsY3VsYXRlLWNoYW5nZWQtcmVjdC1mcm9tLWRpZmZlcmVuY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2YtZHJhZ2dhYmxlL3Jlc2l6ZS1ub2RlL2NhbGN1bGF0ZS1jaGFuZ2VkLXJlY3QtZnJvbS1kaWZmZXJlbmNlL2NhbGN1bGF0ZS1jaGFuZ2VkLXJlY3QtZnJvbS1kaWZmZXJlbmNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBRSx5Q0FBeUMsRUFBRSxNQUFNLGtEQUFrRCxDQUFDO0FBQzdHLE9BQU8sRUFBd0IsY0FBYyxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBQ2xFLE9BQU8sRUFBRSxrQkFBa0IsRUFBYyxNQUFNLGtCQUFrQixDQUFDO0FBQ2xFLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFJM0MsSUFBTSxrQ0FBa0MsR0FBeEMsTUFBTSxrQ0FBa0M7SUFJdEMsTUFBTSxDQUFDLEVBQ1osWUFBWSxFQUNaL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bmNlLnkgOiAwKSArIGNoYW5nZWRSZWN0Lnk7XG5cbiAgICByZXR1cm4gUmVjdEV4dGVuc2lvbnMuaW5pdGlhbGl6ZSh4LCB5LCBjaGFuZ2VkUmVjdC53aWR0aCwgY2hhbmdlZFJlY3QuaGVpZ2h0KTtcbiAgfVxufVxuIl19
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './calculate-changed-rect-from-difference';
|
|
2
|
+
export * from './calculate-changed-rect-from-difference-request';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2YtZHJhZ2dhYmxlL3Jlc2l6ZS1ub2RlL2NhbGN1bGF0ZS1jaGFuZ2VkLXJlY3QtZnJvbS1kaWZmZXJlbmNlL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsMENBQTBDLENBQUM7QUFFekQsY0FBYyxrREFBa0QsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vY2FsY3VsYXRlLWNoYW5nZWQtcmVjdC1mcm9tLWRpZmZlcmVuY2UnO1xuXG5leHBvcnQgKiBmcm9tICcuL2NhbGN1bGF0ZS1jaGFuZ2VkLXJlY3QtZnJvbS1kaWZmZXJlbmNlLXJlcXVlc3QnO1xuIl19
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export class CalculateDirectChildrenUnionRectRequest {
|
|
2
|
+
nodeOrGroup;
|
|
3
|
+
paddings;
|
|
4
|
+
static fToken = Symbol('CalculateDirectChildrenUnionRectRequest');
|
|
5
|
+
constructor(nodeOrGroup, paddings) {
|
|
6
|
+
this.nodeOrGroup = nodeOrGroup;
|
|
7
|
+
this.paddings = paddings;
|
|
8
|
+
}
|
|
9
|
+
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XJdLFxuICApIHt9XG59XG4iXX0=
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { inject, Injectable } from '@angular/core';
|
|
3
|
+
import { CalculateDirectChildrenUnionRectRequest } from './calculate-direct-children-union-rect-request';
|
|
4
|
+
import { RectExtensions } from '@foblex/2d';
|
|
5
|
+
import { FExecutionRegister, FMediator } from '@foblex/mediator';
|
|
6
|
+
import { GetNormalizedElementRectRequest } from '../../../domain';
|
|
7
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
let CalculateDirectChildrenUnionRect = class CalculateDirectChildrenUnionRect {
|
|
10
|
+
_mediator = inject(FMediator);
|
|
11
|
+
_store = inject(FComponentsStore);
|
|
12
|
+
get _allNodesAndGroups() {
|
|
13
|
+
return this._store.nodes.getAll();
|
|
14
|
+
}
|
|
15
|
+
handle({ nodeOrGroup, paddings }) {
|
|
16
|
+
const childNodeRect = RectExtensions.union(this._calculateDirectChildren(nodeOrGroup.fId()).map((x) => this._normalizeRect(x)));
|
|
17
|
+
return childNodeRect ? this._concatRectWithParentPadding(childNodeRect, paddings) : null;
|
|
18
|
+
}
|
|
19
|
+
_calculateDirectChildren(nodeOrGroupId) {
|
|
20
|
+
return this._allNodesAndGroups.filter((x) => x.fParentId() === nodeOrGroupId);
|
|
21
|
+
}
|
|
22
|
+
_normalizeRect(nodeOrGroup) {
|
|
23
|
+
return this._mediator.execute(new GetNormalizedElementRectRequest(nodeOrGroup.hostElement));
|
|
24
|
+
}
|
|
25
|
+
_concatRectWithParentPadding(rect, padding) {
|
|
26
|
+
return RectExtensions.initialize(rect.x - padding[0], rect.y - padding[1], rect.width + padding[0] + padding[2], rect.height + +padding[1] + padding[3]);
|
|
27
|
+
}
|
|
28
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CalculateDirectChildrenUnionRect, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
29
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CalculateDirectChildrenUnionRect });
|
|
30
|
+
};
|
|
31
|
+
CalculateDirectChildrenUnionRect = __decorate([
|
|
32
|
+
FExecutionRegister(CalculateDirectChildrenUnionRectRequest)
|
|
33
|
+
], CalculateDirectChildrenUnionRect);
|
|
34
|
+
export { CalculateDirectChildrenUnionRect };
|
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CalculateDirectChildrenUnionRect, decorators: [{
|
|
36
|
+
type: Injectable
|
|
37
|
+
}] });
|
|
38
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FsY3VsYXRlLWRpcmVjdC1jaGlsZHJlbi11bmlvbi1yZWN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9mLWRyYWdnYWJsZS9yZXNpemUtbm9kZS9jYWxjdWxhdGUtZGlyZWN0LWNoaWxkcmVuLXVuaW9uLXJlY3QvY2FsY3VsYXRlLWRpcmVjdC1jaGlsZHJlbi11bmlvbi1yZWN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNuRCxPQUFPLEVBQUUsdUNBQXVDLEVBQUUsTUFBTSxnREFBZ0QsQ0FBQztBQUN6RyxPQUFPLEVBQVMsY0FBYyxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBQ25ELE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxTQUFTLEVBQWMsTUFBTSxrQkFBa0IsQ0FBQztBQUU3RSxPQUFPLEVBQUUsK0JBQStCLEVBQUUsTUFBTS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JdLFxuICAgICAgcmVjdC5oZWlnaHQgKyArcGFkZGluZ1sxXSArIHBhZGRpbmdbM10sXG4gICAgKTtcbiAgfVxufVxuIl19
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './calculate-direct-children-union-rect';
|
|
2
|
+
export * from './calculate-direct-children-union-rect-request';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2YtZHJhZ2dhYmxlL3Jlc2l6ZS1ub2RlL2NhbGN1bGF0ZS1kaXJlY3QtY2hpbGRyZW4tdW5pb24tcmVjdC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHdDQUF3QyxDQUFDO0FBRXZELGNBQWMsZ0RBQWdELENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NhbGN1bGF0ZS1kaXJlY3QtY2hpbGRyZW4tdW5pb24tcmVjdCc7XG5cbmV4cG9ydCAqIGZyb20gJy4vY2FsY3VsYXRlLWRpcmVjdC1jaGlsZHJlbi11bmlvbi1yZWN0LXJlcXVlc3QnO1xuIl19
|
package/esm2022/f-draggable/resize-node/calculate-resize-limits/calculate-resize-limits-request.mjs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export class CalculateResizeLimitsRequest {
|
|
2
|
+
nodeOrGroup;
|
|
3
|
+
rect;
|
|
4
|
+
static fToken = Symbol('CalculateResizeLimitsRequest');
|
|
5
|
+
constructor(nodeOrGroup, rect) {
|
|
6
|
+
this.nodeOrGroup = nodeOrGroup;
|
|
7
|
+
this.rect = rect;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlI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