@foblex/flow 16.0.5 → 17.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/domain/f-background/add-background-to-store/add-background-to-store-request.d.ts +5 -0
- package/domain/f-background/add-background-to-store/add-background-to-store.execution.d.ts +9 -0
- package/domain/f-background/add-background-to-store/index.d.ts +2 -0
- package/domain/f-background/index.d.ts +3 -0
- package/domain/f-background/providers.d.ts +4 -1
- package/domain/f-background/remove-background-from-store/index.d.ts +2 -0
- package/domain/f-background/remove-background-from-store/remove-background-from-store-request.d.ts +5 -0
- package/domain/f-background/remove-background-from-store/remove-background-from-store.execution.d.ts +9 -0
- package/domain/f-background/set-background-transform/index.d.ts +2 -0
- package/domain/f-background/set-background-transform/set-background-transform-request.d.ts +5 -0
- package/domain/f-background/set-background-transform/set-background-transform.execution.d.ts +9 -0
- package/domain/f-canvas/add-canvas-to-store/add-canvas-to-store-request.d.ts +5 -0
- package/domain/f-canvas/add-canvas-to-store/add-canvas-to-store.execution.d.ts +9 -0
- package/domain/f-canvas/add-canvas-to-store/index.d.ts +2 -0
- package/domain/f-canvas/center-group-or-node/center-group-or-node.execution.d.ts +2 -3
- package/domain/f-canvas/fit-to-flow/fit-to-flow.execution.d.ts +3 -5
- package/domain/f-canvas/get-canvas/get-canvas-request.d.ts +2 -0
- package/domain/f-canvas/get-canvas/get-canvas.execution.d.ts +10 -0
- package/domain/f-canvas/get-canvas/index.d.ts +2 -0
- package/domain/f-canvas/index.d.ts +4 -0
- package/domain/f-canvas/input-canvas-position/input-canvas-position.execution.d.ts +1 -3
- package/domain/f-canvas/input-canvas-scale/input-canvas-scale.execution.d.ts +1 -3
- package/domain/f-canvas/providers.d.ts +5 -1
- package/domain/f-canvas/redraw-canvas-with-animation/index.d.ts +2 -0
- package/domain/f-canvas/redraw-canvas-with-animation/redraw-canvas-with-animation-request.d.ts +4 -0
- package/domain/f-canvas/redraw-canvas-with-animation/redraw-canvas-with-animation.execution.d.ts +12 -0
- package/domain/f-canvas/remove-canvas-from-store/index.d.ts +2 -0
- package/domain/f-canvas/remove-canvas-from-store/remove-canvas-from-store-request.d.ts +2 -0
- package/domain/f-canvas/remove-canvas-from-store/remove-canvas-from-store.execution.d.ts +9 -0
- package/domain/f-canvas/reset-scale/reset-scale.execution.d.ts +1 -3
- package/domain/f-canvas/reset-scale-and-center/reset-scale-and-center.execution.d.ts +3 -5
- package/domain/f-canvas/update-scale/update-scale.execution.d.ts +1 -3
- package/domain/f-connection/add-connection-for-create-to-store/add-connection-for-create-to-store-request.d.ts +5 -0
- package/domain/f-connection/add-connection-for-create-to-store/add-connection-for-create-to-store.execution.d.ts +9 -0
- package/domain/f-connection/add-connection-for-create-to-store/index.d.ts +2 -0
- package/domain/f-connection/add-connection-marker-to-store/add-connection-marker-to-store-request.d.ts +5 -0
- package/domain/f-connection/add-connection-marker-to-store/add-connection-marker-to-store.execution.d.ts +9 -0
- package/domain/f-connection/add-connection-marker-to-store/index.d.ts +2 -0
- package/domain/f-connection/add-connection-to-store/add-connection-to-store.execution.d.ts +1 -3
- package/domain/f-connection/add-snap-connection-to-store/add-snap-connection-to-store-request.d.ts +5 -0
- package/domain/f-connection/add-snap-connection-to-store/add-snap-connection-to-store.execution.d.ts +9 -0
- package/domain/f-connection/add-snap-connection-to-store/index.d.ts +2 -0
- package/domain/{create-connection-markers → f-connection/create-connection-markers}/create-connection-markers-request.d.ts +1 -1
- package/domain/{create-connection-markers → f-connection/create-connection-markers}/create-connection-markers.execution.d.ts +2 -2
- package/domain/f-connection/index.d.ts +8 -0
- package/domain/f-connection/providers.d.ts +9 -1
- package/domain/{redraw-connections → f-connection/redraw-connections}/redraw-connections.execution.d.ts +1 -1
- package/domain/f-connection/remove-connection-for-create-from-store/index.d.ts +2 -0
- package/domain/f-connection/remove-connection-for-create-from-store/remove-connection-for-create-from-store-request.d.ts +2 -0
- package/domain/f-connection/remove-connection-for-create-from-store/remove-connection-for-create-from-store.execution.d.ts +9 -0
- package/domain/f-connection/remove-connection-from-store/remove-connection-from-store.execution.d.ts +2 -3
- package/domain/f-connection/remove-connection-marker-from-store/index.d.ts +2 -0
- package/domain/f-connection/remove-connection-marker-from-store/remove-connection-marker-from-store-request.d.ts +5 -0
- package/domain/f-connection/remove-connection-marker-from-store/remove-connection-marker-from-store.execution.d.ts +9 -0
- package/domain/f-connection/remove-snap-connection-from-store/index.d.ts +2 -0
- package/domain/f-connection/remove-snap-connection-from-store/remove-snap-connection-from-store-request.d.ts +2 -0
- package/domain/f-connection/remove-snap-connection-from-store/remove-snap-connection-from-store.execution.d.ts +9 -0
- package/domain/f-connectors/add-input-to-store/add-input-to-store-request.d.ts +5 -0
- package/domain/f-connectors/add-input-to-store/add-input-to-store.execution.d.ts +9 -0
- package/domain/f-connectors/add-input-to-store/index.d.ts +2 -0
- package/domain/f-connectors/add-outlet-to-store/add-outlet-to-store-request.d.ts +5 -0
- package/domain/f-connectors/add-outlet-to-store/add-outlet-to-store.execution.d.ts +9 -0
- package/domain/f-connectors/add-outlet-to-store/index.d.ts +2 -0
- package/domain/f-connectors/add-output-to-store/add-output-to-store-request.d.ts +5 -0
- package/domain/f-connectors/add-output-to-store/add-output-to-store.execution.d.ts +9 -0
- package/domain/f-connectors/add-output-to-store/index.d.ts +2 -0
- package/domain/f-connectors/index.d.ts +7 -0
- package/domain/f-connectors/providers.d.ts +7 -0
- package/domain/f-connectors/remove-input-from-store/index.d.ts +2 -0
- package/domain/f-connectors/remove-input-from-store/remove-input-from-store-request.d.ts +5 -0
- package/domain/f-connectors/remove-input-from-store/remove-input-from-store.execution.d.ts +9 -0
- package/domain/f-connectors/remove-outlet-from-store/index.d.ts +2 -0
- package/domain/f-connectors/remove-outlet-from-store/remove-outlet-from-store-request.d.ts +5 -0
- package/domain/f-connectors/remove-outlet-from-store/remove-outlet-from-store.execution.d.ts +9 -0
- package/domain/f-connectors/remove-output-from-store/index.d.ts +2 -0
- package/domain/f-connectors/remove-output-from-store/remove-output-from-store-request.d.ts +5 -0
- package/domain/f-connectors/remove-output-from-store/remove-output-from-store.execution.d.ts +9 -0
- package/domain/f-draggable/add-dnd-to-store/add-dnd-to-store-request.d.ts +5 -0
- package/domain/f-draggable/add-dnd-to-store/add-dnd-to-store.execution.d.ts +9 -0
- package/domain/f-draggable/add-dnd-to-store/index.d.ts +2 -0
- package/domain/f-draggable/emit-selection-change-event/emit-selection-change-event-request.d.ts +2 -0
- package/domain/f-draggable/emit-selection-change-event/emit-selection-change-event.execution.d.ts +12 -0
- package/domain/f-draggable/emit-selection-change-event/index.d.ts +2 -0
- package/domain/f-draggable/end-drag-sequence/end-drag-sequence-request.d.ts +2 -0
- package/domain/f-draggable/end-drag-sequence/end-drag-sequence.execution.d.ts +11 -0
- package/domain/f-draggable/end-drag-sequence/index.d.ts +2 -0
- package/domain/f-draggable/index.d.ts +10 -0
- package/domain/f-draggable/initialize-drag-sequence/index.d.ts +2 -0
- package/domain/f-draggable/initialize-drag-sequence/initialize-drag-sequence-request.d.ts +2 -0
- package/domain/f-draggable/initialize-drag-sequence/initialize-drag-sequence.execution.d.ts +9 -0
- package/domain/f-draggable/is-drag-started/index.d.ts +2 -0
- package/domain/f-draggable/is-drag-started/is-drag-started-request.d.ts +2 -0
- package/domain/f-draggable/is-drag-started/is-drag-started.execution.d.ts +9 -0
- package/domain/f-draggable/on-pointer-move/index.d.ts +2 -0
- package/domain/f-draggable/on-pointer-move/on-pointer-move-request.d.ts +5 -0
- package/domain/f-draggable/on-pointer-move/on-pointer-move.execution.d.ts +14 -0
- package/domain/f-draggable/prepare-drag-sequence/index.d.ts +2 -0
- package/domain/f-draggable/prepare-drag-sequence/prepare-drag-sequence-request.d.ts +2 -0
- package/domain/f-draggable/prepare-drag-sequence/prepare-drag-sequence.execution.d.ts +11 -0
- package/domain/f-draggable/providers.d.ts +10 -0
- package/domain/f-draggable/remove-dnd-from-store/index.d.ts +2 -0
- package/domain/f-draggable/remove-dnd-from-store/remove-dnd-from-store-request.d.ts +2 -0
- package/domain/f-draggable/remove-dnd-from-store/remove-dnd-from-store.execution.d.ts +9 -0
- package/domain/f-draggable/start-drag-sequence/index.d.ts +2 -0
- package/domain/f-draggable/start-drag-sequence/start-drag-sequence-request.d.ts +2 -0
- package/domain/f-draggable/start-drag-sequence/start-drag-sequence.execution.d.ts +12 -0
- package/domain/f-flow/add-flow-to-store/add-flow-to-store-request.d.ts +5 -0
- package/domain/f-flow/add-flow-to-store/add-flow-to-store.execution.d.ts +9 -0
- package/domain/f-flow/add-flow-to-store/index.d.ts +2 -0
- package/domain/f-flow/get-flow/get-flow-request.d.ts +2 -0
- package/domain/f-flow/get-flow/get-flow.execution.d.ts +10 -0
- package/domain/f-flow/get-flow/index.d.ts +2 -0
- package/domain/f-flow/get-flow-host-element/get-flow-host-element.execution.d.ts +9 -0
- package/domain/f-flow/get-flow-host-element/get-flow-host-element.request.d.ts +2 -0
- package/domain/f-flow/get-flow-host-element/index.d.ts +2 -0
- package/domain/f-flow/index.d.ts +5 -0
- package/domain/f-flow/providers.d.ts +5 -0
- package/domain/f-flow/remove-flow-from-store/index.d.ts +2 -0
- package/domain/f-flow/remove-flow-from-store/remove-flow-from-store-request.d.ts +2 -0
- package/domain/f-flow/remove-flow-from-store/remove-flow-from-store.execution.d.ts +9 -0
- package/domain/f-line-alignment/add-line-alignment-to-store/add-line-alignment-to-store-request.d.ts +5 -0
- package/domain/f-line-alignment/add-line-alignment-to-store/add-line-alignment-to-store.execution.d.ts +9 -0
- package/domain/f-line-alignment/add-line-alignment-to-store/index.d.ts +2 -0
- package/domain/f-line-alignment/index.d.ts +3 -0
- package/domain/f-line-alignment/providers.d.ts +3 -0
- package/domain/f-line-alignment/remove-line-alignment-from-store/index.d.ts +2 -0
- package/domain/f-line-alignment/remove-line-alignment-from-store/remove-line-alignment-from-store-request.d.ts +2 -0
- package/domain/f-line-alignment/remove-line-alignment-from-store/remove-line-alignment-from-store.execution.d.ts +9 -0
- package/domain/f-node/add-node-to-store/add-node-to-store-request.d.ts +5 -0
- package/domain/f-node/add-node-to-store/add-node-to-store.execution.d.ts +9 -0
- package/domain/f-node/add-node-to-store/index.d.ts +2 -0
- package/domain/f-node/calculate-nodes-bounding-box/calculate-nodes-bounding-box.execution.d.ts +12 -0
- package/domain/f-node/calculate-nodes-bounding-box/calculate-nodes-bounding-box.request.d.ts +2 -0
- package/domain/f-node/calculate-nodes-bounding-box/index.d.ts +2 -0
- package/domain/f-node/get-nodes/get-nodes-request.d.ts +2 -0
- package/domain/f-node/get-nodes/get-nodes.execution.d.ts +10 -0
- package/domain/f-node/get-nodes/index.d.ts +2 -0
- package/domain/f-node/index.d.ts +6 -0
- package/domain/f-node/providers.d.ts +6 -0
- package/domain/f-node/remove-node-from-store/index.d.ts +2 -0
- package/domain/f-node/remove-node-from-store/remove-node-from-store-request.d.ts +5 -0
- package/domain/f-node/remove-node-from-store/remove-node-from-store.execution.d.ts +9 -0
- package/domain/f-node/update-node-when-state-or-size-changed/index.d.ts +2 -0
- package/domain/f-node/update-node-when-state-or-size-changed/update-node-when-state-or-size-changed-request.d.ts +7 -0
- package/domain/f-node/update-node-when-state-or-size-changed/update-node-when-state-or-size-changed.execution.d.ts +10 -0
- package/domain/get-element-rect-in-flow/get-element-rect-in-flow.execution.d.ts +5 -6
- package/domain/get-flow-state/i-f-flow-state-connection.d.ts +1 -1
- package/domain/index.d.ts +7 -7
- package/domain/is-mobile.d.ts +1 -0
- package/domain/providers.d.ts +1 -7
- package/domain/transition-end.d.ts +1 -0
- package/esm2022/domain/f-background/add-background-to-store/add-background-to-store-request.mjs +6 -0
- package/esm2022/domain/f-background/add-background-to-store/add-background-to-store.execution.mjs +23 -0
- package/esm2022/domain/f-background/add-background-to-store/index.mjs +3 -0
- package/esm2022/domain/f-background/index.mjs +4 -1
- package/esm2022/domain/f-background/providers.mjs +8 -2
- package/esm2022/domain/f-background/remove-background-from-store/index.mjs +3 -0
- package/esm2022/domain/f-background/remove-background-from-store/remove-background-from-store-request.mjs +6 -0
- package/esm2022/domain/f-background/remove-background-from-store/remove-background-from-store.execution.mjs +23 -0
- package/esm2022/domain/f-background/set-background-transform/index.mjs +3 -0
- package/esm2022/domain/f-background/set-background-transform/set-background-transform-request.mjs +6 -0
- package/esm2022/domain/f-background/set-background-transform/set-background-transform.execution.mjs +23 -0
- package/esm2022/domain/f-canvas/add-canvas-to-store/add-canvas-to-store-request.mjs +6 -0
- package/esm2022/domain/f-canvas/add-canvas-to-store/add-canvas-to-store.execution.mjs +23 -0
- package/esm2022/domain/f-canvas/add-canvas-to-store/index.mjs +3 -0
- package/esm2022/domain/f-canvas/center-group-or-node/center-group-or-node.execution.mjs +15 -16
- package/esm2022/domain/f-canvas/fit-to-flow/fit-to-flow.execution.mjs +15 -18
- package/esm2022/domain/f-canvas/get-canvas/get-canvas-request.mjs +3 -0
- package/esm2022/domain/f-canvas/get-canvas/get-canvas.execution.mjs +27 -0
- package/esm2022/domain/f-canvas/get-canvas/index.mjs +3 -0
- package/esm2022/domain/f-canvas/index.mjs +5 -1
- package/esm2022/domain/f-canvas/input-canvas-position/input-canvas-position.execution.mjs +8 -8
- package/esm2022/domain/f-canvas/input-canvas-scale/input-canvas-scale.execution.mjs +8 -8
- package/esm2022/domain/f-canvas/providers.mjs +9 -1
- package/esm2022/domain/f-canvas/redraw-canvas-with-animation/index.mjs +3 -0
- package/esm2022/domain/f-canvas/redraw-canvas-with-animation/redraw-canvas-with-animation-request.mjs +6 -0
- package/esm2022/domain/f-canvas/redraw-canvas-with-animation/redraw-canvas-with-animation.execution.mjs +36 -0
- package/esm2022/domain/f-canvas/remove-canvas-from-store/index.mjs +3 -0
- package/esm2022/domain/f-canvas/remove-canvas-from-store/remove-canvas-from-store-request.mjs +3 -0
- package/esm2022/domain/f-canvas/remove-canvas-from-store/remove-canvas-from-store.execution.mjs +23 -0
- package/esm2022/domain/f-canvas/reset-scale/reset-scale.execution.mjs +9 -9
- package/esm2022/domain/f-canvas/reset-scale-and-center/reset-scale-and-center.execution.mjs +15 -18
- package/esm2022/domain/f-canvas/update-scale/update-scale.execution.mjs +9 -9
- package/esm2022/domain/f-connection/add-connection-for-create-to-store/add-connection-for-create-to-store-request.mjs +6 -0
- package/esm2022/domain/f-connection/add-connection-for-create-to-store/add-connection-for-create-to-store.execution.mjs +23 -0
- package/esm2022/domain/f-connection/add-connection-for-create-to-store/index.mjs +3 -0
- package/esm2022/domain/f-connection/add-connection-marker-to-store/add-connection-marker-to-store-request.mjs +6 -0
- package/esm2022/domain/f-connection/add-connection-marker-to-store/add-connection-marker-to-store.execution.mjs +23 -0
- package/esm2022/domain/f-connection/add-connection-marker-to-store/index.mjs +3 -0
- package/esm2022/domain/f-connection/add-connection-to-store/add-connection-to-store.execution.mjs +9 -9
- package/esm2022/domain/f-connection/add-snap-connection-to-store/add-snap-connection-to-store-request.mjs +6 -0
- package/esm2022/domain/f-connection/add-snap-connection-to-store/add-snap-connection-to-store.execution.mjs +23 -0
- package/esm2022/domain/f-connection/add-snap-connection-to-store/index.mjs +3 -0
- package/esm2022/domain/f-connection/create-connection-markers/create-connection-markers-request.mjs +6 -0
- package/esm2022/domain/f-connection/create-connection-markers/create-connection-markers.execution.mjs +60 -0
- package/esm2022/domain/f-connection/create-connection-markers/index.mjs +3 -0
- package/esm2022/domain/f-connection/get-all-can-be-connected-input-positions/get-all-can-be-connected-input-positions.execution.mjs +3 -3
- package/esm2022/domain/f-connection/index.mjs +9 -1
- package/esm2022/domain/f-connection/providers.mjs +18 -2
- package/esm2022/domain/f-connection/redraw-connections/index.mjs +3 -0
- package/esm2022/domain/f-connection/redraw-connections/redraw-connections-request.mjs +3 -0
- package/esm2022/domain/f-connection/redraw-connections/redraw-connections.execution.mjs +60 -0
- package/esm2022/domain/f-connection/remove-connection-for-create-from-store/index.mjs +3 -0
- package/esm2022/domain/f-connection/remove-connection-for-create-from-store/remove-connection-for-create-from-store-request.mjs +3 -0
- package/esm2022/domain/f-connection/remove-connection-for-create-from-store/remove-connection-for-create-from-store.execution.mjs +23 -0
- package/esm2022/domain/f-connection/remove-connection-from-store/remove-connection-from-store.execution.mjs +14 -11
- package/esm2022/domain/f-connection/remove-connection-marker-from-store/index.mjs +3 -0
- package/esm2022/domain/f-connection/remove-connection-marker-from-store/remove-connection-marker-from-store-request.mjs +6 -0
- package/esm2022/domain/f-connection/remove-connection-marker-from-store/remove-connection-marker-from-store.execution.mjs +23 -0
- package/esm2022/domain/f-connection/remove-snap-connection-from-store/index.mjs +3 -0
- package/esm2022/domain/f-connection/remove-snap-connection-from-store/remove-snap-connection-from-store-request.mjs +3 -0
- package/esm2022/domain/f-connection/remove-snap-connection-from-store/remove-snap-connection-from-store.execution.mjs +23 -0
- package/esm2022/domain/f-connectors/add-input-to-store/add-input-to-store-request.mjs +6 -0
- package/esm2022/domain/f-connectors/add-input-to-store/add-input-to-store.execution.mjs +23 -0
- package/esm2022/domain/f-connectors/add-input-to-store/index.mjs +3 -0
- package/esm2022/domain/f-connectors/add-outlet-to-store/add-outlet-to-store-request.mjs +6 -0
- package/esm2022/domain/f-connectors/add-outlet-to-store/add-outlet-to-store.execution.mjs +23 -0
- package/esm2022/domain/f-connectors/add-outlet-to-store/index.mjs +3 -0
- package/esm2022/domain/f-connectors/add-output-to-store/add-output-to-store-request.mjs +6 -0
- package/esm2022/domain/f-connectors/add-output-to-store/add-output-to-store.execution.mjs +23 -0
- package/esm2022/domain/f-connectors/add-output-to-store/index.mjs +3 -0
- package/esm2022/domain/f-connectors/index.mjs +8 -0
- package/esm2022/domain/f-connectors/providers.mjs +15 -0
- package/esm2022/domain/f-connectors/remove-input-from-store/index.mjs +3 -0
- package/esm2022/domain/f-connectors/remove-input-from-store/remove-input-from-store-request.mjs +6 -0
- package/esm2022/domain/f-connectors/remove-input-from-store/remove-input-from-store.execution.mjs +23 -0
- package/esm2022/domain/f-connectors/remove-outlet-from-store/index.mjs +3 -0
- package/esm2022/domain/f-connectors/remove-outlet-from-store/remove-outlet-from-store-request.mjs +6 -0
- package/esm2022/domain/f-connectors/remove-outlet-from-store/remove-outlet-from-store.execution.mjs +23 -0
- package/esm2022/domain/f-connectors/remove-output-from-store/index.mjs +3 -0
- package/esm2022/domain/f-connectors/remove-output-from-store/remove-output-from-store-request.mjs +6 -0
- package/esm2022/domain/f-connectors/remove-output-from-store/remove-output-from-store.execution.mjs +23 -0
- package/esm2022/domain/f-draggable/add-dnd-to-store/add-dnd-to-store-request.mjs +6 -0
- package/esm2022/domain/f-draggable/add-dnd-to-store/add-dnd-to-store.execution.mjs +23 -0
- package/esm2022/domain/f-draggable/add-dnd-to-store/index.mjs +3 -0
- package/esm2022/domain/f-draggable/emit-selection-change-event/emit-selection-change-event-request.mjs +3 -0
- package/esm2022/domain/f-draggable/emit-selection-change-event/emit-selection-change-event.execution.mjs +36 -0
- package/esm2022/domain/f-draggable/emit-selection-change-event/index.mjs +3 -0
- package/esm2022/domain/f-draggable/end-drag-sequence/end-drag-sequence-request.mjs +3 -0
- package/esm2022/domain/f-draggable/end-drag-sequence/end-drag-sequence.execution.mjs +29 -0
- package/esm2022/domain/f-draggable/end-drag-sequence/index.mjs +3 -0
- package/esm2022/domain/f-draggable/index.mjs +11 -0
- package/esm2022/domain/f-draggable/initialize-drag-sequence/index.mjs +3 -0
- package/esm2022/domain/f-draggable/initialize-drag-sequence/initialize-drag-sequence-request.mjs +3 -0
- package/esm2022/domain/f-draggable/initialize-drag-sequence/initialize-drag-sequence.execution.mjs +23 -0
- package/esm2022/domain/f-draggable/is-drag-started/index.mjs +3 -0
- package/esm2022/domain/f-draggable/is-drag-started/is-drag-started-request.mjs +3 -0
- package/esm2022/domain/f-draggable/is-drag-started/is-drag-started.execution.mjs +23 -0
- package/esm2022/domain/f-draggable/on-pointer-move/index.mjs +3 -0
- package/esm2022/domain/f-draggable/on-pointer-move/on-pointer-move-request.mjs +6 -0
- package/esm2022/domain/f-draggable/on-pointer-move/on-pointer-move.execution.mjs +42 -0
- package/esm2022/domain/f-draggable/prepare-drag-sequence/index.mjs +3 -0
- package/esm2022/domain/f-draggable/prepare-drag-sequence/prepare-drag-sequence-request.mjs +3 -0
- package/esm2022/domain/f-draggable/prepare-drag-sequence/prepare-drag-sequence.execution.mjs +31 -0
- package/esm2022/domain/f-draggable/providers.mjs +21 -0
- package/esm2022/domain/f-draggable/remove-dnd-from-store/index.mjs +3 -0
- package/esm2022/domain/f-draggable/remove-dnd-from-store/remove-dnd-from-store-request.mjs +3 -0
- package/esm2022/domain/f-draggable/remove-dnd-from-store/remove-dnd-from-store.execution.mjs +23 -0
- package/esm2022/domain/f-draggable/start-drag-sequence/index.mjs +3 -0
- package/esm2022/domain/f-draggable/start-drag-sequence/start-drag-sequence-request.mjs +3 -0
- package/esm2022/domain/f-draggable/start-drag-sequence/start-drag-sequence.execution.mjs +33 -0
- package/esm2022/domain/f-flow/add-flow-to-store/add-flow-to-store-request.mjs +6 -0
- package/esm2022/domain/f-flow/add-flow-to-store/add-flow-to-store.execution.mjs +23 -0
- package/esm2022/domain/f-flow/add-flow-to-store/index.mjs +3 -0
- package/esm2022/domain/f-flow/get-flow/get-flow-request.mjs +3 -0
- package/esm2022/domain/f-flow/get-flow/get-flow.execution.mjs +27 -0
- package/esm2022/domain/f-flow/get-flow/index.mjs +3 -0
- package/esm2022/domain/f-flow/get-flow-host-element/get-flow-host-element.execution.mjs +23 -0
- package/esm2022/domain/f-flow/get-flow-host-element/get-flow-host-element.request.mjs +3 -0
- package/esm2022/domain/f-flow/get-flow-host-element/index.mjs +3 -0
- package/esm2022/domain/f-flow/index.mjs +6 -0
- package/esm2022/domain/f-flow/providers.mjs +11 -0
- package/esm2022/domain/f-flow/remove-flow-from-store/index.mjs +3 -0
- package/esm2022/domain/f-flow/remove-flow-from-store/remove-flow-from-store-request.mjs +3 -0
- package/esm2022/domain/f-flow/remove-flow-from-store/remove-flow-from-store.execution.mjs +23 -0
- package/esm2022/domain/f-line-alignment/add-line-alignment-to-store/add-line-alignment-to-store-request.mjs +6 -0
- package/esm2022/domain/f-line-alignment/add-line-alignment-to-store/add-line-alignment-to-store.execution.mjs +23 -0
- package/esm2022/domain/f-line-alignment/add-line-alignment-to-store/index.mjs +3 -0
- package/esm2022/domain/f-line-alignment/index.mjs +4 -0
- package/esm2022/domain/f-line-alignment/providers.mjs +7 -0
- package/esm2022/domain/f-line-alignment/remove-line-alignment-from-store/index.mjs +3 -0
- package/esm2022/domain/f-line-alignment/remove-line-alignment-from-store/remove-line-alignment-from-store-request.mjs +3 -0
- package/esm2022/domain/f-line-alignment/remove-line-alignment-from-store/remove-line-alignment-from-store.execution.mjs +23 -0
- package/esm2022/domain/f-node/add-node-to-store/add-node-to-store-request.mjs +6 -0
- package/esm2022/domain/f-node/add-node-to-store/add-node-to-store.execution.mjs +23 -0
- package/esm2022/domain/f-node/add-node-to-store/index.mjs +3 -0
- package/esm2022/domain/f-node/calculate-nodes-bounding-box/calculate-nodes-bounding-box.execution.mjs +30 -0
- package/esm2022/domain/f-node/calculate-nodes-bounding-box/calculate-nodes-bounding-box.request.mjs +3 -0
- package/esm2022/domain/f-node/calculate-nodes-bounding-box/index.mjs +3 -0
- package/esm2022/domain/f-node/get-nodes/get-nodes-request.mjs +3 -0
- package/esm2022/domain/f-node/get-nodes/get-nodes.execution.mjs +23 -0
- package/esm2022/domain/f-node/get-nodes/index.mjs +3 -0
- package/esm2022/domain/f-node/index.mjs +7 -0
- package/esm2022/domain/f-node/providers.mjs +13 -0
- package/esm2022/domain/f-node/remove-node-from-store/index.mjs +3 -0
- package/esm2022/domain/f-node/remove-node-from-store/remove-node-from-store-request.mjs +6 -0
- package/esm2022/domain/f-node/remove-node-from-store/remove-node-from-store.execution.mjs +23 -0
- package/esm2022/domain/f-node/update-node-when-state-or-size-changed/index.mjs +3 -0
- package/esm2022/domain/f-node/update-node-when-state-or-size-changed/update-node-when-state-or-size-changed-request.mjs +7 -0
- package/esm2022/domain/f-node/update-node-when-state-or-size-changed/update-node-when-state-or-size-changed.execution.mjs +35 -0
- package/esm2022/domain/get-element-rect-in-flow/get-element-rect-in-flow.execution.mjs +19 -17
- package/esm2022/domain/get-flow-state/get-flow-state-nodes/get-flow-state-nodes.execution.mjs +3 -3
- package/esm2022/domain/get-flow-state/i-f-flow-state-connection.mjs +1 -1
- package/esm2022/domain/get-position-in-flow/get-position-in-flow.execution.mjs +2 -2
- package/esm2022/domain/index.mjs +8 -8
- package/esm2022/domain/is-connection-under-node/is-connection-under-node.execution.mjs +3 -4
- package/esm2022/domain/is-mobile.mjs +5 -0
- package/esm2022/domain/providers.mjs +11 -13
- package/esm2022/domain/transition-end.mjs +10 -0
- package/esm2022/f-backgroud/f-background-base.mjs +1 -1
- package/esm2022/f-backgroud/f-background.component.mjs +15 -20
- package/esm2022/f-backgroud/f-circle-pattern/f-circle-pattern.component.mjs +40 -46
- package/esm2022/f-backgroud/f-rect-pattern/f-rect-pattern.component.mjs +42 -56
- package/esm2022/f-canvas/f-canvas-base.mjs +1 -1
- package/esm2022/f-canvas/f-canvas.component.mjs +30 -40
- package/esm2022/f-connection/common/f-connection-base.mjs +1 -3
- package/esm2022/f-connection/common/f-connection-text/f-connection-text-path.directive.mjs +2 -2
- package/esm2022/f-connection/common/f-drag-handle/f-connection-drag-handle.component.mjs +3 -3
- package/esm2022/f-connection/common/i-has-connection-text.mjs +1 -1
- package/esm2022/f-connection/f-connection/f-connection.component.mjs +36 -90
- package/esm2022/f-connection/f-connection-builder/i-f-connection-factory-request.mjs +1 -1
- package/esm2022/f-connection/f-connection-for-create/f-connection-for-create.component.mjs +30 -65
- package/esm2022/f-connection/f-marker/f-marker.directive.mjs +10 -9
- package/esm2022/f-connection/f-snap-connection/f-snap-connection.component.mjs +30 -65
- package/esm2022/f-connectors/domain/calculate-connector-connectable-side/calculate-connector-connectable-side.handler.mjs +3 -3
- package/esm2022/f-connectors/f-connector-base.mjs +9 -6
- package/esm2022/f-connectors/f-node-input/f-node-input-base.mjs +1 -5
- package/esm2022/f-connectors/f-node-input/f-node-input.directive.mjs +33 -42
- package/esm2022/f-connectors/f-node-outlet/f-node-outlet-base.mjs +1 -2
- package/esm2022/f-connectors/f-node-outlet/f-node-outlet.directive.mjs +21 -33
- package/esm2022/f-connectors/f-node-output/f-node-output-base.mjs +1 -5
- package/esm2022/f-connectors/f-node-output/f-node-output.directive.mjs +33 -45
- package/esm2022/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.execution.mjs +2 -2
- package/esm2022/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.validator.mjs +4 -3
- package/esm2022/f-draggable/canvas/canvas.drag-handler.mjs +4 -4
- package/esm2022/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.execution.mjs +5 -5
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/create-connection-from-outlet-preparation.execution.mjs +3 -2
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.validator.mjs +3 -2
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.execution.mjs +3 -2
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.validator.mjs +3 -2
- package/esm2022/f-draggable/connections/create-connection/create-connection.drag-handler.mjs +8 -8
- package/esm2022/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.execution.mjs +3 -3
- package/esm2022/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.validator.mjs +3 -3
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.execution.mjs +4 -4
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.mjs +6 -6
- package/esm2022/f-draggable/domain/i-node-with-rect.mjs +2 -0
- package/esm2022/f-draggable/domain/index.mjs +2 -1
- package/esm2022/f-draggable/f-draggable-base.mjs +1 -1
- package/esm2022/f-draggable/f-draggable.directive.mjs +50 -95
- package/esm2022/f-draggable/i-draggable-item.mjs +1 -1
- package/esm2022/f-draggable/index.mjs +2 -1
- package/esm2022/f-draggable/node/connection-base-drag-handler.mjs +4 -4
- package/esm2022/f-draggable/node/connection-source.drag-handler.mjs +2 -2
- package/esm2022/f-draggable/node/connection-target.drag-handler.mjs +2 -2
- package/esm2022/f-draggable/node/connection.drag-handler.mjs +2 -2
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.mjs +8 -5
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-input-connection-handlers-to-array/put-input-connection-handlers-to-array.execution.mjs +2 -2
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-output-connection-handlers-to-array/put-output-connection-handlers-to-array.execution.mjs +2 -2
- package/esm2022/f-draggable/node/f-drop-to-group.event.mjs +8 -0
- package/esm2022/f-draggable/node/index.mjs +5 -1
- package/esm2022/f-draggable/node/node-drag-to-parent-finalize/index.mjs +5 -0
- package/esm2022/f-draggable/node/node-drag-to-parent-finalize/node-drag-to-parent-finalize.execution.mjs +53 -0
- package/esm2022/f-draggable/node/node-drag-to-parent-finalize/node-drag-to-parent-finalize.request.mjs +6 -0
- package/esm2022/f-draggable/node/node-drag-to-parent-finalize/node-drag-to-parent-finalize.validator.mjs +25 -0
- package/esm2022/f-draggable/node/node-drag-to-parent-finalize/providers.mjs +7 -0
- package/esm2022/f-draggable/node/node-drag-to-parent-preparation/index.mjs +5 -0
- package/esm2022/f-draggable/node/node-drag-to-parent-preparation/node-drag-to-parent-preparation.execution.mjs +62 -0
- package/esm2022/f-draggable/node/node-drag-to-parent-preparation/node-drag-to-parent-preparation.request.mjs +6 -0
- package/esm2022/f-draggable/node/node-drag-to-parent-preparation/node-drag-to-parent-preparation.validator.mjs +24 -0
- package/esm2022/f-draggable/node/node-drag-to-parent-preparation/providers.mjs +7 -0
- package/esm2022/f-draggable/node/node-drag-to-parent.drag-handler.mjs +48 -0
- package/esm2022/f-draggable/node/node-move-finalize/node-move-finalize.execution.mjs +11 -5
- package/esm2022/f-draggable/node/node-move-preparation/node-move-preparation.execution.mjs +4 -3
- package/esm2022/f-draggable/node/node-move-preparation/node-move-preparation.validator.mjs +2 -2
- package/esm2022/f-draggable/node/node-resize-by-child.drag-handler.mjs +5 -3
- package/esm2022/f-draggable/node/node.drag-handler.mjs +3 -3
- package/esm2022/f-draggable/node/providers.mjs +5 -1
- package/esm2022/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.execution.mjs +2 -2
- package/esm2022/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.execution.mjs +3 -2
- package/esm2022/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.validator.mjs +3 -2
- package/esm2022/f-draggable/node-resize/node-resize.drag-handler.mjs +4 -4
- package/esm2022/f-draggable/providers.mjs +2 -2
- package/esm2022/f-draggable/single-select/single-select.execution.mjs +5 -2
- package/esm2022/f-external-item/domain/external-item-finalize/external-item-finalize.execution.mjs +2 -2
- package/esm2022/f-external-item/domain/external-item-preparation/external-item-preparation.validator.mjs +1 -1
- package/esm2022/f-external-item/domain/external-item.drag-handler.mjs +4 -4
- package/esm2022/f-external-item/domain/index.mjs +2 -1
- package/esm2022/f-external-item/domain/prevent-default-is-external-item/index.mjs +3 -0
- package/esm2022/f-external-item/domain/prevent-default-is-external-item/prevent-default-is-external-item.execution.mjs +36 -0
- package/esm2022/f-external-item/domain/prevent-default-is-external-item/prevent-default-is-external-item.request.mjs +6 -0
- package/esm2022/f-external-item/domain/providers.mjs +3 -1
- package/esm2022/f-flow/f-flow-base.mjs +1 -1
- package/esm2022/f-flow/f-flow.component.mjs +46 -49
- package/esm2022/f-line-alignment/f-line-alignment.component.mjs +21 -22
- package/esm2022/f-minimap/domain/f-minimap.drag-handler.mjs +4 -4
- package/esm2022/f-minimap/domain/index.mjs +4 -2
- package/esm2022/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/i-f-minimap-scale-and-view-box.mjs +2 -0
- package/esm2022/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/index.mjs +4 -0
- package/esm2022/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/minimap-calculate-svg-scale-and-view-box.execution.mjs +71 -0
- package/esm2022/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/minimap-calculate-svg-scale-and-view-box.request.mjs +7 -0
- package/esm2022/f-minimap/domain/minimap-calculate-view-box/index.mjs +3 -0
- package/esm2022/f-minimap/domain/minimap-calculate-view-box/minimap-calculate-view-box.execution.mjs +39 -0
- package/esm2022/f-minimap/domain/minimap-calculate-view-box/minimap-calculate-view-box.request.mjs +3 -0
- package/esm2022/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.execution.mjs +2 -2
- package/esm2022/f-minimap/domain/minimap-draw-nodes/index.mjs +3 -0
- package/esm2022/f-minimap/domain/minimap-draw-nodes/minimap-draw-nodes.execution.mjs +60 -0
- package/esm2022/f-minimap/domain/minimap-draw-nodes/minimap-draw-nodes.request.mjs +3 -0
- package/esm2022/f-minimap/domain/providers.mjs +7 -1
- package/esm2022/f-minimap/f-minimap-canvas.directive.mjs +17 -51
- package/esm2022/f-minimap/f-minimap-flow.directive.mjs +16 -60
- package/esm2022/f-minimap/f-minimap-view.directive.mjs +14 -25
- package/esm2022/f-minimap/f-minimap.component.mjs +28 -30
- package/esm2022/f-node/domain/index.mjs +1 -2
- package/esm2022/f-node/f-drag-handle/f-drag-handle.directive.mjs +8 -8
- package/esm2022/f-node/f-group.directive.mjs +18 -42
- package/esm2022/f-node/f-node-base.mjs +21 -3
- package/esm2022/f-node/f-node.directive.mjs +18 -42
- package/esm2022/f-node/f-resize-handle/f-resize-handle.directive.mjs +13 -16
- package/esm2022/f-node/index.mjs +1 -2
- package/esm2022/f-selection-area/domain/selection-area-finalize/selection-area-finalize.execution.mjs +2 -2
- package/esm2022/f-selection-area/domain/selection-area.drag-handle.mjs +6 -6
- package/esm2022/f-selection-area/f-selection-area.component.mjs +13 -13
- package/esm2022/f-storage/f-components-store.mjs +15 -20
- package/esm2022/f-storage/features/listen-components-data-changed/index.mjs +3 -0
- package/esm2022/f-storage/features/listen-components-data-changed/listen-data-changes-request.mjs +3 -0
- package/esm2022/f-storage/features/listen-components-data-changed/listen-data-changes.execution.mjs +25 -0
- package/esm2022/f-storage/features/listen-count-changes/index.mjs +3 -0
- package/esm2022/f-storage/features/listen-count-changes/listen-count-changes-request.mjs +3 -0
- package/esm2022/f-storage/features/listen-count-changes/listen-count-changes.execution.mjs +25 -0
- package/esm2022/f-storage/features/listen-transform-changes/index.mjs +3 -0
- package/esm2022/f-storage/features/listen-transform-changes/listen-transform-changes.execution.mjs +24 -0
- package/esm2022/f-storage/features/listen-transform-changes/listen-transform-changes.request.mjs +3 -0
- package/esm2022/f-storage/features/notify-data-changed/index.mjs +3 -0
- package/esm2022/f-storage/features/notify-data-changed/notify-data-changed-request.mjs +3 -0
- package/esm2022/f-storage/features/notify-data-changed/notify-data-changed.execution.mjs +23 -0
- package/esm2022/f-storage/features/notify-transform-changed/index.mjs +3 -0
- package/esm2022/f-storage/features/notify-transform-changed/notify-transform-changed.execution.mjs +23 -0
- package/esm2022/f-storage/features/notify-transform-changed/notify-transform-changed.request.mjs +3 -0
- package/esm2022/f-storage/index.mjs +7 -2
- package/esm2022/f-storage/providers.mjs +15 -0
- package/esm2022/f-zoom/f-zoom-base.mjs +51 -45
- package/esm2022/f-zoom/f-zoom.directive.mjs +11 -12
- package/esm2022/public-api.mjs +2 -2
- package/esm2022/reactivity/debounce-time.mjs +10 -0
- package/esm2022/reactivity/f-channel-hub.mjs +23 -0
- package/esm2022/reactivity/f-channel.mjs +16 -0
- package/esm2022/reactivity/f-resize-channel.mjs +28 -0
- package/esm2022/reactivity/index.mjs +7 -0
- package/esm2022/reactivity/notify-on-start.mjs +7 -0
- package/esm2022/reactivity/types.mjs +2 -0
- package/f-backgroud/f-background-base.d.ts +0 -1
- package/f-backgroud/f-background.component.d.ts +3 -8
- package/f-backgroud/f-circle-pattern/f-circle-pattern.component.d.ts +16 -17
- package/f-backgroud/f-rect-pattern/f-rect-pattern.component.d.ts +17 -20
- package/f-canvas/f-canvas-base.d.ts +0 -2
- package/f-canvas/f-canvas.component.d.ts +5 -11
- package/f-connection/common/f-connection-base.d.ts +3 -5
- package/f-connection/common/f-drag-handle/f-connection-drag-handle.component.d.ts +1 -1
- package/f-connection/common/i-has-connection-text.d.ts +1 -0
- package/f-connection/f-connection/f-connection.component.d.ts +17 -35
- package/f-connection/f-connection-builder/i-f-connection-factory-request.d.ts +1 -1
- package/f-connection/f-connection-for-create/f-connection-for-create.component.d.ts +13 -23
- package/f-connection/f-marker/f-marker.directive.d.ts +2 -3
- package/f-connection/f-snap-connection/f-snap-connection.component.d.ts +13 -23
- package/f-connection/providers.d.ts +1 -1
- package/f-connectors/f-connector-base.d.ts +7 -8
- package/f-connectors/f-node-input/f-node-input-base.d.ts +0 -1
- package/f-connectors/f-node-input/f-node-input.directive.d.ts +14 -16
- package/f-connectors/f-node-outlet/f-node-outlet-base.d.ts +0 -1
- package/f-connectors/f-node-outlet/f-node-outlet.directive.d.ts +9 -11
- package/f-connectors/f-node-output/f-node-output-base.d.ts +0 -1
- package/f-connectors/f-node-output/f-node-output.directive.d.ts +14 -16
- package/f-draggable/canvas/canvas.drag-handler.d.ts +3 -3
- package/f-draggable/connections/create-connection/create-connection.drag-handler.d.ts +3 -3
- package/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.d.ts +3 -3
- package/f-draggable/domain/i-node-with-rect.d.ts +6 -0
- package/f-draggable/domain/index.d.ts +1 -0
- package/f-draggable/f-draggable-base.d.ts +2 -0
- package/f-draggable/f-draggable.directive.d.ts +9 -16
- package/f-draggable/i-draggable-item.d.ts +3 -3
- package/f-draggable/index.d.ts +1 -0
- package/f-draggable/node/connection-base-drag-handler.d.ts +2 -2
- package/f-draggable/node/connection-source.drag-handler.d.ts +1 -1
- package/f-draggable/node/connection-target.drag-handler.d.ts +1 -1
- package/f-draggable/node/connection.drag-handler.d.ts +1 -1
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.d.ts +1 -0
- package/f-draggable/node/f-drop-to-group.event.d.ts +7 -0
- package/f-draggable/node/index.d.ts +4 -0
- package/f-draggable/node/node-drag-to-parent-finalize/index.d.ts +4 -0
- package/f-draggable/node/node-drag-to-parent-finalize/node-drag-to-parent-finalize.execution.d.ts +17 -0
- package/f-draggable/node/node-drag-to-parent-finalize/node-drag-to-parent-finalize.request.d.ts +5 -0
- package/f-draggable/node/node-drag-to-parent-finalize/node-drag-to-parent-finalize.validator.d.ts +11 -0
- package/f-draggable/node/node-drag-to-parent-finalize/providers.d.ts +3 -0
- package/f-draggable/node/node-drag-to-parent-preparation/index.d.ts +4 -0
- package/f-draggable/node/node-drag-to-parent-preparation/node-drag-to-parent-preparation.execution.d.ts +20 -0
- package/f-draggable/node/node-drag-to-parent-preparation/node-drag-to-parent-preparation.request.d.ts +5 -0
- package/f-draggable/node/node-drag-to-parent-preparation/node-drag-to-parent-preparation.validator.d.ts +11 -0
- package/f-draggable/node/node-drag-to-parent-preparation/providers.d.ts +3 -0
- package/f-draggable/node/node-drag-to-parent.drag-handler.d.ts +21 -0
- package/f-draggable/node/node-move-finalize/node-move-finalize.execution.d.ts +1 -0
- package/f-draggable/node/node-resize-by-child.drag-handler.d.ts +3 -2
- package/f-draggable/node/node.drag-handler.d.ts +2 -2
- package/f-draggable/node/providers.d.ts +1 -1
- package/f-draggable/node-resize/node-resize.drag-handler.d.ts +3 -3
- package/f-draggable/providers.d.ts +1 -1
- package/f-draggable/single-select/single-select.execution.d.ts +1 -0
- package/f-external-item/domain/external-item.drag-handler.d.ts +3 -3
- package/f-external-item/domain/index.d.ts +1 -0
- package/f-external-item/domain/prevent-default-is-external-item/index.d.ts +2 -0
- package/f-external-item/domain/prevent-default-is-external-item/prevent-default-is-external-item.execution.d.ts +10 -0
- package/f-external-item/domain/prevent-default-is-external-item/prevent-default-is-external-item.request.d.ts +4 -0
- package/f-external-item/domain/providers.d.ts +2 -1
- package/f-flow/f-flow-base.d.ts +1 -1
- package/f-flow/f-flow.component.d.ts +11 -13
- package/f-line-alignment/f-line-alignment.component.d.ts +8 -10
- package/f-minimap/domain/f-minimap.drag-handler.d.ts +3 -3
- package/f-minimap/domain/index.d.ts +3 -1
- package/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/i-f-minimap-scale-and-view-box.d.ts +5 -0
- package/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/index.d.ts +3 -0
- package/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/minimap-calculate-svg-scale-and-view-box.execution.d.ts +22 -0
- package/f-minimap/domain/minimap-calculate-svg-scale-and-view-box/minimap-calculate-svg-scale-and-view-box.request.d.ts +5 -0
- package/f-minimap/domain/minimap-calculate-view-box/index.d.ts +2 -0
- package/f-minimap/domain/minimap-calculate-view-box/minimap-calculate-view-box.execution.d.ts +14 -0
- package/f-minimap/domain/minimap-calculate-view-box/minimap-calculate-view-box.request.d.ts +2 -0
- package/f-minimap/domain/minimap-draw-nodes/index.d.ts +2 -0
- package/f-minimap/domain/minimap-draw-nodes/minimap-draw-nodes.execution.d.ts +18 -0
- package/f-minimap/domain/minimap-draw-nodes/minimap-draw-nodes.request.d.ts +2 -0
- package/f-minimap/domain/providers.d.ts +4 -1
- package/f-minimap/f-minimap-canvas.directive.d.ts +3 -15
- package/f-minimap/f-minimap-flow.directive.d.ts +4 -20
- package/f-minimap/f-minimap-view.directive.d.ts +4 -9
- package/f-minimap/f-minimap.component.d.ts +7 -10
- package/f-node/domain/index.d.ts +0 -1
- package/f-node/f-drag-handle/f-drag-handle.directive.d.ts +2 -3
- package/f-node/f-group.directive.d.ts +4 -11
- package/f-node/f-node-base.d.ts +8 -7
- package/f-node/f-node.directive.d.ts +4 -11
- package/f-node/f-resize-handle/f-resize-handle.directive.d.ts +4 -6
- package/f-node/index.d.ts +0 -1
- package/f-selection-area/domain/selection-area.drag-handle.d.ts +3 -3
- package/f-selection-area/f-selection-area.component.d.ts +3 -5
- package/f-storage/f-components-store.d.ts +7 -9
- package/f-storage/features/listen-components-data-changed/index.d.ts +2 -0
- package/f-storage/features/listen-components-data-changed/listen-data-changes-request.d.ts +2 -0
- package/f-storage/features/listen-components-data-changed/listen-data-changes.execution.d.ts +10 -0
- package/f-storage/features/listen-count-changes/index.d.ts +2 -0
- package/f-storage/features/listen-count-changes/listen-count-changes-request.d.ts +2 -0
- package/f-storage/features/listen-count-changes/listen-count-changes.execution.d.ts +10 -0
- package/f-storage/features/listen-transform-changes/index.d.ts +2 -0
- package/f-storage/features/listen-transform-changes/listen-transform-changes.execution.d.ts +10 -0
- package/f-storage/features/listen-transform-changes/listen-transform-changes.request.d.ts +2 -0
- package/f-storage/features/notify-data-changed/index.d.ts +2 -0
- package/f-storage/features/notify-data-changed/notify-data-changed-request.d.ts +2 -0
- package/f-storage/features/notify-data-changed/notify-data-changed.execution.d.ts +9 -0
- package/f-storage/features/notify-transform-changed/index.d.ts +2 -0
- package/f-storage/features/notify-transform-changed/notify-transform-changed.execution.d.ts +9 -0
- package/f-storage/features/notify-transform-changed/notify-transform-changed.request.d.ts +2 -0
- package/f-storage/index.d.ts +6 -1
- package/f-storage/providers.d.ts +7 -0
- package/f-zoom/f-zoom-base.d.ts +10 -11
- package/f-zoom/f-zoom.directive.d.ts +0 -2
- package/fesm2022/foblex-flow.mjs +5877 -4748
- package/fesm2022/foblex-flow.mjs.map +1 -1
- package/package.json +5 -6
- package/public-api.d.ts +1 -1
- package/reactivity/debounce-time.d.ts +2 -0
- package/reactivity/f-channel-hub.d.ts +10 -0
- package/reactivity/f-channel.d.ts +7 -0
- package/reactivity/f-resize-channel.d.ts +11 -0
- package/reactivity/index.d.ts +6 -0
- package/reactivity/notify-on-start.d.ts +2 -0
- package/reactivity/types.d.ts +2 -0
- package/domain/constants.d.ts +0 -1
- package/domain/emit-transform-changes/emit-transform-changes.execution.d.ts +0 -11
- package/domain/emit-transform-changes/emit-transform-changes.request.d.ts +0 -2
- package/domain/emit-transform-changes/index.d.ts +0 -2
- package/domain/get-nodes-rect/get-nodes-rect.execution.d.ts +0 -14
- package/domain/get-nodes-rect/get-nodes-rect.request.d.ts +0 -2
- package/domain/get-nodes-rect/index.d.ts +0 -2
- package/domain/show-connections-after-calculations/index.d.ts +0 -2
- package/domain/show-connections-after-calculations/show-connections-after-calculations-request.d.ts +0 -2
- package/domain/show-connections-after-calculations/show-connections-after-calculations.execution.d.ts +0 -11
- package/domain/subscribe-on-transform-changes/index.d.ts +0 -2
- package/domain/subscribe-on-transform-changes/subscribe-on-transform-changes.execution.d.ts +0 -13
- package/domain/subscribe-on-transform-changes/subscribe-on-transform-changes.request.d.ts +0 -2
- package/esm2022/domain/constants.mjs +0 -2
- package/esm2022/domain/create-connection-markers/create-connection-markers-request.mjs +0 -6
- package/esm2022/domain/create-connection-markers/create-connection-markers.execution.mjs +0 -60
- package/esm2022/domain/create-connection-markers/index.mjs +0 -3
- package/esm2022/domain/emit-transform-changes/emit-transform-changes.execution.mjs +0 -23
- package/esm2022/domain/emit-transform-changes/emit-transform-changes.request.mjs +0 -3
- package/esm2022/domain/emit-transform-changes/index.mjs +0 -3
- package/esm2022/domain/get-nodes-rect/get-nodes-rect.execution.mjs +0 -30
- package/esm2022/domain/get-nodes-rect/get-nodes-rect.request.mjs +0 -3
- package/esm2022/domain/get-nodes-rect/index.mjs +0 -3
- package/esm2022/domain/redraw-connections/index.mjs +0 -3
- package/esm2022/domain/redraw-connections/redraw-connections-request.mjs +0 -3
- package/esm2022/domain/redraw-connections/redraw-connections.execution.mjs +0 -62
- package/esm2022/domain/show-connections-after-calculations/index.mjs +0 -3
- package/esm2022/domain/show-connections-after-calculations/show-connections-after-calculations-request.mjs +0 -3
- package/esm2022/domain/show-connections-after-calculations/show-connections-after-calculations.execution.mjs +0 -25
- package/esm2022/domain/subscribe-on-transform-changes/index.mjs +0 -3
- package/esm2022/domain/subscribe-on-transform-changes/subscribe-on-transform-changes.execution.mjs +0 -25
- package/esm2022/domain/subscribe-on-transform-changes/subscribe-on-transform-changes.request.mjs +0 -3
- package/esm2022/f-minimap/domain/check-rect-is-finite.mjs +0 -8
- package/esm2022/f-node/domain/is-group.mjs +0 -4
- package/esm2022/f-node/f-resize-observer.mjs +0 -16
- package/esm2022/f-storage/f-transform-store.mjs +0 -14
- package/esm2022/i-has-state-changes.mjs +0 -2
- package/f-minimap/domain/check-rect-is-finite.d.ts +0 -2
- package/f-node/domain/is-group.d.ts +0 -1
- package/f-node/f-resize-observer.d.ts +0 -4
- package/f-storage/f-transform-store.d.ts +0 -7
- package/i-has-state-changes.d.ts +0 -4
- /package/domain/{create-connection-markers → f-connection/create-connection-markers}/index.d.ts +0 -0
- /package/domain/{redraw-connections → f-connection/redraw-connections}/index.d.ts +0 -0
- /package/domain/{redraw-connections → f-connection/redraw-connections}/redraw-connections-request.d.ts +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './minimap-draw-nodes.execution';
|
|
2
|
+
export * from './minimap-draw-nodes.request';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2YtbWluaW1hcC9kb21haW4vbWluaW1hcC1kcmF3LW5vZGVzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsZ0NBQWdDLENBQUM7QUFFL0MsY0FBYyw4QkFBOEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vbWluaW1hcC1kcmF3LW5vZGVzLmV4ZWN1dGlvbic7XG5cbmV4cG9ydCAqIGZyb20gJy4vbWluaW1hcC1kcmF3LW5vZGVzLnJlcXVlc3QnO1xuXG4iXX0=
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { inject, Injectable } from '@angular/core';
|
|
3
|
+
import { MinimapDrawNodesRequest } from './minimap-draw-nodes.request';
|
|
4
|
+
import { FExecutionRegister } from '@foblex/mediator';
|
|
5
|
+
import { createSVGElement } from '../../../domain';
|
|
6
|
+
import { FNodeDirective } from '../../../f-node';
|
|
7
|
+
import { RectExtensions, setRectToElement } from '@foblex/2d';
|
|
8
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
9
|
+
import { BrowserService } from '@foblex/platform';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export let MinimapDrawNodesExecution = class MinimapDrawNodesExecution {
|
|
12
|
+
constructor() {
|
|
13
|
+
this._fBrowser = inject(BrowserService);
|
|
14
|
+
this._fComponentStore = inject(FComponentsStore);
|
|
15
|
+
}
|
|
16
|
+
get _fFlow() {
|
|
17
|
+
return this._fComponentStore.fFlow;
|
|
18
|
+
}
|
|
19
|
+
get _fNodes() {
|
|
20
|
+
return this._fComponentStore.fNodes;
|
|
21
|
+
}
|
|
22
|
+
get _fCanvas() {
|
|
23
|
+
return this._fComponentStore.fCanvas;
|
|
24
|
+
}
|
|
25
|
+
handle(request) {
|
|
26
|
+
return this._createMinimapNodeElements(request);
|
|
27
|
+
}
|
|
28
|
+
_createMinimapNodeElements(request) {
|
|
29
|
+
return this._fNodes.map((x) => {
|
|
30
|
+
const element = this._createNodeElement();
|
|
31
|
+
setRectToElement(this._getNodeRect(x), element);
|
|
32
|
+
this._applyClassList(element, x, x instanceof FNodeDirective);
|
|
33
|
+
return element;
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
_createNodeElement() {
|
|
37
|
+
return createSVGElement('rect', this._fBrowser);
|
|
38
|
+
}
|
|
39
|
+
_getNodeRect(node) {
|
|
40
|
+
return RectExtensions.div(this._getNodeRectInFlow(node), this._fCanvas.transform.scale);
|
|
41
|
+
}
|
|
42
|
+
_getNodeRectInFlow(node) {
|
|
43
|
+
return RectExtensions.elementTransform(RectExtensions.fromElement(node.hostElement), this._fFlow.hostElement);
|
|
44
|
+
}
|
|
45
|
+
_applyClassList(element, node, isNode) {
|
|
46
|
+
element.classList.add('f-component', isNode ? 'f-minimap-node' : 'f-minimap-group');
|
|
47
|
+
if (node.isSelected()) {
|
|
48
|
+
element.classList.add('f-selected');
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MinimapDrawNodesExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
52
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MinimapDrawNodesExecution }); }
|
|
53
|
+
};
|
|
54
|
+
MinimapDrawNodesExecution = __decorate([
|
|
55
|
+
FExecutionRegister(MinimapDrawNodesRequest)
|
|
56
|
+
], MinimapDrawNodesExecution);
|
|
57
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MinimapDrawNodesExecution, decorators: [{
|
|
58
|
+
type: Injectable
|
|
59
|
+
}] });
|
|
60
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWluaW1hcC1kcmF3LW5vZGVzLmV4ZWN1dGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZi1taW5pbWFwL2RvbWFpbi9taW5pbWFwLWRyYXctbm9kZXMvbWluaW1hcC1kcmF3LW5vZGVzLmV4ZWN1dGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDbkQsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sOEJBQThCLENBQUM7QUFDdkUsT0FBTyxFQUFFLGtCQUFrQixFQUFjLE1BQU0sa0JBQWtCLEN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91cCcpO1xuICAgIGlmIChub2RlLmlzU2VsZWN0ZWQoKSkge1xuICAgICAgZWxlbWVudC5jbGFzc0xpc3QuYWRkKCdmLXNlbGVjdGVkJyk7XG4gICAgfVxuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export class MinimapDrawNodesRequest {
|
|
2
|
+
}
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWluaW1hcC1kcmF3LW5vZGVzLnJlcXVlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2YtbWluaW1hcC9kb21haW4vbWluaW1hcC1kcmF3LW5vZGVzL21pbmltYXAtZHJhdy1ub2Rlcy5yZXF1ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sT0FBTyx1QkFBdUI7Q0FFbkMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY2xhc3MgTWluaW1hcERyYXdOb2Rlc1JlcXVlc3Qge1xuXG59XG4iXX0=
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { MINIMAP_DRAG_PREPARATION_PROVIDERS } from './minimap-drag-preparation';
|
|
2
2
|
import { MINIMAP_DRAG_FINALIZE_PROVIDERS } from './minimap-drag-finalize';
|
|
3
3
|
import { CalculateFlowPointFromMinimapPointExecution } from './calculate-flow-point-from-minimap-point';
|
|
4
|
+
import { MinimapDrawNodesExecution } from './minimap-draw-nodes';
|
|
5
|
+
import { MinimapCalculateViewBoxExecution } from './minimap-calculate-view-box';
|
|
6
|
+
import { MinimapCalculateSvgScaleAndViewBoxExecution } from './minimap-calculate-svg-scale-and-view-box';
|
|
4
7
|
export const F_MINIMAP_DRAG_AND_DROP_PROVIDERS = [
|
|
5
8
|
CalculateFlowPointFromMinimapPointExecution,
|
|
6
9
|
...MINIMAP_DRAG_FINALIZE_PROVIDERS,
|
|
7
10
|
...MINIMAP_DRAG_PREPARATION_PROVIDERS,
|
|
11
|
+
MinimapDrawNodesExecution,
|
|
12
|
+
MinimapCalculateSvgScaleAndViewBoxExecution,
|
|
13
|
+
MinimapCalculateViewBoxExecution,
|
|
8
14
|
];
|
|
9
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
15
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvdmlkZXJzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9mLW1pbmltYXAvZG9tYWluL3Byb3ZpZGVycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsa0NBQWtDLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQztBQUNoRixPQUFPLEVBQUUsK0JBQStCLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUMxRSxPQUFPLEVBQUUsMkNBQTJDLEVBQUUsTUFBTSwyQ0FBMkMsQ0FBQztBQUN4RyxPQUFPLEVBQUUseUJBQXlCLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUNqRSxPQUFPLEVBQUUsZ0NBQWdDLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQztBQUNoRixPQUFPLEVBQUUsMkNBQTJDLEVBQUUsTUFBTSw0Q0FBNEMsQ0FBQztBQUV6RyxNQUFNLENBQUMsTUFBTSxpQ0FBaUMsR0FBRztJQUUvQywyQ0FBMkM7SUFFM0MsR0FBRywrQkFBK0I7SUFFbEMsR0FBRyxrQ0FBa0M7SUFFckMseUJBQXlCO0lBRXpCLDJDQUEyQztJQUUzQyxnQ0FBZ0M7Q0FDakMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE1JTklNQVBfRFJBR19QUkVQQVJBVElPTl9QUk9WSURF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@@ -1,60 +1,26 @@
|
|
|
1
|
-
import { Directive, } from "@angular/core";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { createSVGElement } from '../domain';
|
|
5
|
-
import { checkRectIsFinite } from './domain';
|
|
1
|
+
import { Directive, ElementRef, inject, } from "@angular/core";
|
|
2
|
+
import { FMediator } from '@foblex/mediator';
|
|
3
|
+
import { MinimapDrawNodesRequest } from './domain';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "../f-storage";
|
|
8
|
-
import * as i2 from "@foblex/platform";
|
|
9
5
|
export class FMinimapCanvasDirective {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
get flowHost() {
|
|
14
|
-
return this.fComponentsStore.flowHost;
|
|
15
|
-
}
|
|
16
|
-
get flowScale() {
|
|
17
|
-
return this.fComponentsStore.transform.scale;
|
|
6
|
+
constructor() {
|
|
7
|
+
this._fMediator = inject(FMediator);
|
|
8
|
+
this._elementReference = inject(ElementRef);
|
|
18
9
|
}
|
|
19
|
-
|
|
20
|
-
this.
|
|
21
|
-
this.fComponentsStore = fComponentsStore;
|
|
22
|
-
this.fBrowser = fBrowser;
|
|
10
|
+
get hostElement() {
|
|
11
|
+
return this._elementReference.nativeElement;
|
|
23
12
|
}
|
|
24
13
|
redraw() {
|
|
25
|
-
this.
|
|
26
|
-
this.
|
|
14
|
+
this._clearCanvas();
|
|
15
|
+
this._fMediator.send(new MinimapDrawNodesRequest())
|
|
16
|
+
.forEach((x) => {
|
|
17
|
+
this.hostElement.appendChild(x);
|
|
18
|
+
});
|
|
27
19
|
}
|
|
28
|
-
|
|
20
|
+
_clearCanvas() {
|
|
29
21
|
this.hostElement.innerHTML = '';
|
|
30
22
|
}
|
|
31
|
-
|
|
32
|
-
const element = createSVGElement('rect', this.fBrowser);
|
|
33
|
-
this.configureNodeElement(element, node);
|
|
34
|
-
this.hostElement.appendChild(element);
|
|
35
|
-
}
|
|
36
|
-
configureNodeElement(element, node) {
|
|
37
|
-
this.setElementAttributes(element, this.getNodeRect(node));
|
|
38
|
-
this.applyClassList(element, node, node instanceof FNodeDirective);
|
|
39
|
-
}
|
|
40
|
-
getNodeRect(node) {
|
|
41
|
-
const nodeRectInFlow = RectExtensions.elementTransform(RectExtensions.fromElement(node.hostElement), this.flowHost);
|
|
42
|
-
return RectExtensions.div(nodeRectInFlow, this.flowScale);
|
|
43
|
-
}
|
|
44
|
-
setElementAttributes(element, rect) {
|
|
45
|
-
rect = checkRectIsFinite(rect);
|
|
46
|
-
element.setAttribute('x', rect.x.toString());
|
|
47
|
-
element.setAttribute('y', rect.y.toString());
|
|
48
|
-
element.setAttribute('width', rect.width.toString());
|
|
49
|
-
element.setAttribute('height', rect.height.toString());
|
|
50
|
-
}
|
|
51
|
-
applyClassList(element, node, isNode) {
|
|
52
|
-
element.classList.add('f-component', isNode ? 'f-minimap-node' : 'f-minimap-group');
|
|
53
|
-
if (node.isSelected()) {
|
|
54
|
-
element.classList.add('f-selected');
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FMinimapCanvasDirective, deps: [{ token: i0.ElementRef }, { token: i1.FComponentsStore }, { token: i2.BrowserService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
23
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FMinimapCanvasDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
58
24
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FMinimapCanvasDirective, selector: "g[fMinimapCanvas]", ngImport: i0 }); }
|
|
59
25
|
}
|
|
60
26
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FMinimapCanvasDirective, decorators: [{
|
|
@@ -62,5 +28,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
62
28
|
args: [{
|
|
63
29
|
selector: 'g[fMinimapCanvas]'
|
|
64
30
|
}]
|
|
65
|
-
}]
|
|
66
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
31
|
+
}] });
|
|
32
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1taW5pbWFwLWNhbnZhcy5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2YtbWluaW1hcC9mLW1pbmltYXAtY2FudmFzLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUFFLFVBQVUsRUFBRSxNQUFNLEdBQzlCLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUM3QyxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSxVQUFVLENBQUM7O0FBS25ELE1BQU0sT0FBTyx1QkFBdUI7SUFIcEM7UUFLVSxlQUFVLEdBQUcsTUFBTSxDQUFDLFNBQVMsQ0FBQyxDQUFDO1FBRS9CLHNCQUFpQixHQUFHLE1BQU0sQ0FBQyxVQUFVLENBQUMsQ0FBQztLQWtCaEQ7SUFoQkMsSUFBVyxXQUFXO1FBQ3BCLE9BQU8sSUFBSSxDQUFDLGlCQUFpQixDQUFDLGFBQWEsQ0FBQztJQUM5QyxDQUFDO0lBRU0sTUFBTTtRQUNYLElBQUksQ0FBQyxZQUFZLEVBQUUsQ0FBQztRQUVwQixJQUFJLENBQUMsVUFBVSxDQUFDLElBQUksQ0FBbUIsSUFBSSx1QkFBdUIsRUFBRSxDQUFDO2FBQ2xFLE9BQU8sQ0FBQ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1xuXG4gICAgdGhpcy5fZk1lZGlhdG9yLnNlbmQ8U1ZHUmVjdEVsZW1lbnRbXT4obmV3IE1pbmltYXBEcmF3Tm9kZXNSZXF1ZXN0KCkpXG4gICAgICAuZm9yRWFjaCgoeCkgPT4ge1xuICAgICAgICB0aGlzLmhvc3RFbGVtZW50LmFwcGVuZENoaWxkKHgpO1xuICAgICAgfSk7XG4gIH1cblxuICBwcml2YXRlIF9jbGVhckNhbnZhcygpOiB2b2lkIHtcbiAgICB0aGlzLmhvc3RFbGVtZW50LmlubmVySFRNTCA9ICcnO1xuICB9XG59XG4iXX0=
|
|
@@ -1,68 +1,24 @@
|
|
|
1
|
-
import { Directive, Input, } from "@angular/core";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { Directive, ElementRef, inject, Input, } from "@angular/core";
|
|
2
|
+
import { setRectToViewBox } from '@foblex/2d';
|
|
3
|
+
import { FMediator } from '@foblex/mediator';
|
|
4
|
+
import { FMinimapData, MinimapCalculateSvgScaleAndViewBoxRequest } from './domain';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@foblex/mediator";
|
|
7
|
-
import * as i2 from "../f-storage";
|
|
8
6
|
export class FMinimapFlowDirective {
|
|
9
|
-
|
|
10
|
-
return this.fComponentsStore.flowHost;
|
|
11
|
-
}
|
|
12
|
-
get hostElement() {
|
|
13
|
-
return this.elementReference.nativeElement;
|
|
14
|
-
}
|
|
15
|
-
constructor(elementReference, fMediator, fComponentsStore) {
|
|
16
|
-
this.elementReference = elementReference;
|
|
17
|
-
this.fMediator = fMediator;
|
|
18
|
-
this.fComponentsStore = fComponentsStore;
|
|
7
|
+
constructor() {
|
|
19
8
|
this.fMinSize = 1000;
|
|
9
|
+
this._fMediator = inject(FMediator);
|
|
10
|
+
this._elementReference = inject(ElementRef);
|
|
20
11
|
this.model = new FMinimapData(this.hostElement);
|
|
21
12
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const minimapRect = this.getMinimapRect();
|
|
25
|
-
const scale = this.calculateViewScale(nodesRect, minimapRect);
|
|
26
|
-
const viewBox = this.calculateViewBox(nodesRect, minimapRect, scale);
|
|
27
|
-
this.model = new FMinimapData(this.hostElement, scale, viewBox);
|
|
28
|
-
this.setViewBox(viewBox);
|
|
29
|
-
}
|
|
30
|
-
getProcessedNodesRect() {
|
|
31
|
-
const normalizedRect = this.normalizeRect(this.getNodesRect());
|
|
32
|
-
return this.ensureMinimumSize(normalizedRect);
|
|
33
|
-
}
|
|
34
|
-
getNodesRect() {
|
|
35
|
-
const rect = this.fMediator.send(new GetNodesRectRequest()) || RectExtensions.initialize(0, 0, 0, 0);
|
|
36
|
-
return RectExtensions.elementTransform(rect, this.flowHost);
|
|
37
|
-
}
|
|
38
|
-
getMinimapRect() {
|
|
39
|
-
return RectExtensions.elementTransform(RectExtensions.fromElement(this.hostElement), this.flowHost);
|
|
40
|
-
}
|
|
41
|
-
normalizeRect(rect) {
|
|
42
|
-
return RectExtensions.div(rect, this.fComponentsStore.transform.scale);
|
|
43
|
-
}
|
|
44
|
-
ensureMinimumSize(rect) {
|
|
45
|
-
return RectExtensions.initialize(rect.x - (Math.max(rect.width, this.fMinSize) - rect.width) / 2, rect.y - (Math.max(rect.height, this.fMinSize) - rect.height) / 2, Math.max(rect.width, this.fMinSize), Math.max(rect.height, this.fMinSize));
|
|
46
|
-
}
|
|
47
|
-
calculateViewScale(nodesRect, minimapRect) {
|
|
48
|
-
return Math.max(nodesRect.width / minimapRect.width, nodesRect.height / minimapRect.height);
|
|
49
|
-
}
|
|
50
|
-
calculateViewBox(nodesRect, minimapRect, scale) {
|
|
51
|
-
return this.calculateCenteredViewBox(nodesRect, this.calculateViewSize(minimapRect, scale));
|
|
52
|
-
}
|
|
53
|
-
calculateViewSize(minimapRect, scale) {
|
|
54
|
-
return SizeExtensions.initialize(minimapRect.width * scale || 0, minimapRect.height * scale || 0);
|
|
55
|
-
}
|
|
56
|
-
calculateCenteredViewBox(nodesRect, viewSize) {
|
|
57
|
-
const centeredX = nodesRect.x - (viewSize.width - nodesRect.width) / 2;
|
|
58
|
-
const centeredY = nodesRect.y - (viewSize.height - nodesRect.height) / 2;
|
|
59
|
-
return RectExtensions.initialize(centeredX, centeredY, viewSize.width, viewSize.height);
|
|
13
|
+
get hostElement() {
|
|
14
|
+
return this._elementReference.nativeElement;
|
|
60
15
|
}
|
|
61
|
-
|
|
62
|
-
viewBox =
|
|
63
|
-
this.
|
|
16
|
+
redraw() {
|
|
17
|
+
const { scale, viewBox } = this._fMediator.send(new MinimapCalculateSvgScaleAndViewBoxRequest(this.hostElement, this.fMinSize));
|
|
18
|
+
this.model = new FMinimapData(this.hostElement, scale, viewBox);
|
|
19
|
+
setRectToViewBox(viewBox, this.hostElement);
|
|
64
20
|
}
|
|
65
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FMinimapFlowDirective, deps: [
|
|
21
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FMinimapFlowDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
66
22
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FMinimapFlowDirective, selector: "svg[fMinimapFlow]", inputs: { fMinSize: "fMinSize" }, ngImport: i0 }); }
|
|
67
23
|
}
|
|
68
24
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FMinimapFlowDirective, decorators: [{
|
|
@@ -70,7 +26,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
70
26
|
args: [{
|
|
71
27
|
selector: 'svg[fMinimapFlow]'
|
|
72
28
|
}]
|
|
73
|
-
}],
|
|
29
|
+
}], propDecorators: { fMinSize: [{
|
|
74
30
|
type: Input
|
|
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gIHByaXZhdGUgX2ZNZWRpYXRvciA9IGluamVjdChGTWVkaWF0b3IpO1xuXG4gIHByaXZhdGUgX2VsZW1lbnRSZWZlcmVuY2UgPSBpbmplY3QoRWxlbWVudFJlZik7XG5cbiAgcHVibGljIGdldCBob3N0RWxlbWVudCgpOiBTVkdTVkdFbGVtZW50IHtcbiAgICByZXR1cm4gdGhpcy5fZWxlbWVudFJlZmVyZW5jZS5uYXRpdmVFbGVtZW50O1xuICB9XG5cbiAgcHVibGljIG1vZGVsOiBGTWluaW1hcERhdGEgPSBuZXcgRk1pbmltYXBEYXRhKHRoaXMuaG9zdEVsZW1lbnQpO1xuXG4gIHB1YmxpYyByZWRyYXcoKTogdm9pZCB7XG4gICAgY29uc3QgeyBzY2FsZSwgdmlld0JveH0gPSB0aGlzLl9mTWVkaWF0b3Iuc2VuZDxJRk1pbmltYXBTY2FsZUFuZFZpZXdCb3g+KFxuICAgICAgbmV3IE1pbmltYXBDYWxjdWxhdGVTdmdTY2FsZUFuZFZpZXdCb3hSZXF1ZXN0KHRoaXMuaG9zdEVsZW1lbnQsIHRoaXMuZk1pblNpemUpXG4gICAgKTtcbiAgICB0aGlzLm1vZGVsID0gbmV3IEZNaW5pbWFwRGF0YSh0aGlzLmhvc3RFbGVtZW50LCBzY2FsZSwgdmlld0JveCk7XG5cbiAgICBzZXRSZWN0VG9WaWV3Qm94KHZpZXdCb3gsIHRoaXMuaG9zdEVsZW1lbnQpO1xuICB9XG59XG4iXX0=
|
|
@@ -1,31 +1,20 @@
|
|
|
1
|
-
import { Directive } from "@angular/core";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Directive, ElementRef, inject } from "@angular/core";
|
|
2
|
+
import { setRectToElement } from '@foblex/2d';
|
|
3
|
+
import { FMediator } from '@foblex/mediator';
|
|
4
|
+
import { MinimapCalculateViewBoxRequest } from './domain';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "../f-storage";
|
|
6
6
|
export class FMinimapViewDirective {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
get flowScale() {
|
|
11
|
-
return this.fComponentsStore.transform.scale;
|
|
7
|
+
constructor() {
|
|
8
|
+
this._fMediator = inject(FMediator);
|
|
9
|
+
this._elementReference = inject(ElementRef);
|
|
12
10
|
}
|
|
13
|
-
|
|
14
|
-
this.
|
|
15
|
-
this.fComponentsStore = fComponentsStore;
|
|
16
|
-
}
|
|
17
|
-
update() {
|
|
18
|
-
const viewBox = RectExtensions.div(RectExtensions.fromElement(this.fComponentsStore.flowHost), this.flowScale);
|
|
19
|
-
this.setAttributes(viewBox);
|
|
11
|
+
get hostElement() {
|
|
12
|
+
return this._elementReference.nativeElement;
|
|
20
13
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
this.hostElement.setAttribute('x', '0');
|
|
24
|
-
this.hostElement.setAttribute('y', '0');
|
|
25
|
-
this.hostElement.setAttribute('width', viewBox.width.toString());
|
|
26
|
-
this.hostElement.setAttribute('height', viewBox.height.toString());
|
|
14
|
+
redraw() {
|
|
15
|
+
setRectToElement(this._fMediator.send(new MinimapCalculateViewBoxRequest()), this.hostElement);
|
|
27
16
|
}
|
|
28
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FMinimapViewDirective, deps: [
|
|
17
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FMinimapViewDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
29
18
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FMinimapViewDirective, selector: "rect[fMinimapView]", host: { classAttribute: "f-component f-minimap-view" }, ngImport: i0 }); }
|
|
30
19
|
}
|
|
31
20
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FMinimapViewDirective, decorators: [{
|
|
@@ -36,5 +25,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
36
25
|
'class': 'f-component f-minimap-view',
|
|
37
26
|
}
|
|
38
27
|
}]
|
|
39
|
-
}]
|
|
40
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
28
|
+
}] });
|
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1taW5pbWFwLXZpZXcuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9mLW1pbmltYXAvZi1taW5pbWFwLXZpZXcuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsVUFBVSxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUM5RCxPQUFPLEVBQVMsZ0JBQWdCLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFDckQsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBQzdDLE9BQU8sRUFBRSw4QkFBOEIsRUFBRSxNQUFNLFVBQVUsQ0FBQzs7QUFRMUQsTUFBTSxPQUFPLHFCQUFxQjtJQU5sQztRQVFVLGVBQVUsR0FBRyxNQUFNLENBQUMsU0FBUyxDQUFDLENBQUM7UUFFL0Isc0JBQWlCLEdBQUcsTUFBTSxDQUFDLFVBQVUsQ0FBQyxDQUFDO0tBWWhEO0lBVkMsSUFBVyxXQUFXO1FBQ3BCLE9BQU8sSUFBSSxDQUFDLGlCQUFpQixDQUFDLGFBQWEsQ0FBQztJQUM5QyxDQUFDO0lBRU0sTUFBTTtRQUNYLGdCQUFnQixDQUNkLElBQUksQ0FBQyxVQUFVLENBQUMsSUFBSSxDQUFRLElBQUksOEJBQThCLEVB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JlZHJhdygpOiB2b2lkIHtcbiAgICBzZXRSZWN0VG9FbGVtZW50KFxuICAgICAgdGhpcy5fZk1lZGlhdG9yLnNlbmQ8SVJlY3Q+KG5ldyBNaW5pbWFwQ2FsY3VsYXRlVmlld0JveFJlcXVlc3QoKSksXG4gICAgICB0aGlzLmhvc3RFbGVtZW50XG4gICAgKTtcbiAgfVxufVxuIl19
|
|
@@ -1,50 +1,48 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Input, ViewChild, } from "@angular/core";
|
|
2
|
-
import {
|
|
3
|
-
import { debounceTime } from 'rxjs/operators';
|
|
4
|
-
import { SubscribeOnTransformChangesRequest } from '../domain';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, DestroyRef, inject, Input, ViewChild, } from "@angular/core";
|
|
2
|
+
import { FMediator } from '@foblex/mediator';
|
|
5
3
|
import { FMinimapFlowDirective } from './f-minimap-flow.directive';
|
|
6
4
|
import { FMinimapCanvasDirective } from './f-minimap-canvas.directive';
|
|
7
5
|
import { FMinimapViewDirective } from './f-minimap-view.directive';
|
|
8
6
|
import { F_DRAG_AND_DROP_PLUGIN } from '../f-draggable';
|
|
9
7
|
import { MinimapDragFinalizeRequest, MinimapDragPreparationRequest } from './domain';
|
|
8
|
+
import { ListenTransformChangesRequest } from '../f-storage';
|
|
9
|
+
import { debounceTime, notifyOnStart } from '../reactivity';
|
|
10
|
+
import { BrowserService } from '@foblex/platform';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
|
-
import * as i1 from "
|
|
12
|
-
import * as i2 from "./f-minimap-
|
|
13
|
-
import * as i3 from "./f-minimap-
|
|
14
|
-
import * as i4 from "./f-minimap-flow.directive";
|
|
12
|
+
import * as i1 from "./f-minimap-canvas.directive";
|
|
13
|
+
import * as i2 from "./f-minimap-view.directive";
|
|
14
|
+
import * as i3 from "./f-minimap-flow.directive";
|
|
15
15
|
export class FMinimapComponent {
|
|
16
|
-
constructor(
|
|
17
|
-
this.
|
|
18
|
-
this.
|
|
19
|
-
this.
|
|
16
|
+
constructor() {
|
|
17
|
+
this._destroyRef = inject(DestroyRef);
|
|
18
|
+
this._fMediator = inject(FMediator);
|
|
19
|
+
this._fBrowser = inject(BrowserService);
|
|
20
20
|
this.fMinSize = 1000;
|
|
21
21
|
}
|
|
22
22
|
ngAfterViewInit() {
|
|
23
|
-
this.
|
|
23
|
+
this._listenTransformChanges();
|
|
24
24
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
this.fMinimapFlow.update();
|
|
28
|
-
this.fMinimapView.update();
|
|
29
|
-
this.fMinimapCanvas.redraw();
|
|
30
|
-
});
|
|
25
|
+
_listenTransformChanges() {
|
|
26
|
+
this._fMediator.send(new ListenTransformChangesRequest()).pipe(notifyOnStart(), debounceTime(5)).listen(this._destroyRef, () => this._redraw());
|
|
31
27
|
}
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
_redraw() {
|
|
29
|
+
if (!this._fBrowser.isBrowser()) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
this.fMinimapFlow.redraw();
|
|
33
|
+
this.fMinimapView.redraw();
|
|
34
|
+
this.fMinimapCanvas.redraw();
|
|
34
35
|
}
|
|
35
36
|
onPointerDown(event) {
|
|
36
|
-
this.
|
|
37
|
+
this._fMediator.send(new MinimapDragPreparationRequest(event, this.fMinimapFlow.model));
|
|
37
38
|
}
|
|
38
39
|
onPointerUp(event) {
|
|
39
|
-
this.
|
|
40
|
+
this._fMediator.send(new MinimapDragFinalizeRequest(event));
|
|
40
41
|
}
|
|
41
|
-
|
|
42
|
-
this.subscriptions$.unsubscribe();
|
|
43
|
-
}
|
|
44
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FMinimapComponent, deps: [{ token: i0.ElementRef }, { token: i1.FMediator }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
42
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FMinimapComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
45
43
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FMinimapComponent, selector: "f-minimap", inputs: { fMinSize: "fMinSize" }, host: { classAttribute: "f-component f-minimap" }, providers: [
|
|
46
44
|
{ provide: F_DRAG_AND_DROP_PLUGIN, useExisting: FMinimapComponent },
|
|
47
|
-
], viewQueries: [{ propertyName: "fMinimapCanvas", first: true, predicate: FMinimapCanvasDirective, descendants: true, static: true }, { propertyName: "fMinimapFlow", first: true, predicate: FMinimapFlowDirective, descendants: true, static: true }, { propertyName: "fMinimapView", first: true, predicate: FMinimapViewDirective, descendants: true, static: true }], exportAs: ["fComponent"], ngImport: i0, template: "<svg fMinimapFlow width=\"100%\" height=\"100%\" fLockedContext [fMinSize]=\"fMinSize\">\n <g fMinimapCanvas></g>\n <rect fMinimapView x=\"0\" y=\"0\" width=\"100%\" height=\"100%\" stroke=\"none\"/>\n</svg>\n\n", styles: [":host{display:block;position:absolute}:host svg{overflow:hidden}\n"], dependencies: [{ kind: "directive", type:
|
|
45
|
+
], viewQueries: [{ propertyName: "fMinimapCanvas", first: true, predicate: FMinimapCanvasDirective, descendants: true, static: true }, { propertyName: "fMinimapFlow", first: true, predicate: FMinimapFlowDirective, descendants: true, static: true }, { propertyName: "fMinimapView", first: true, predicate: FMinimapViewDirective, descendants: true, static: true }], exportAs: ["fComponent"], ngImport: i0, template: "<svg fMinimapFlow width=\"100%\" height=\"100%\" fLockedContext [fMinSize]=\"fMinSize\">\n <g fMinimapCanvas></g>\n <rect fMinimapView x=\"0\" y=\"0\" width=\"100%\" height=\"100%\" stroke=\"none\"/>\n</svg>\n\n", styles: [":host{display:block;position:absolute}:host svg{overflow:hidden}\n"], dependencies: [{ kind: "directive", type: i1.FMinimapCanvasDirective, selector: "g[fMinimapCanvas]" }, { kind: "directive", type: i2.FMinimapViewDirective, selector: "rect[fMinimapView]" }, { kind: "directive", type: i3.FMinimapFlowDirective, selector: "svg[fMinimapFlow]", inputs: ["fMinSize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
48
46
|
}
|
|
49
47
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FMinimapComponent, decorators: [{
|
|
50
48
|
type: Component,
|
|
@@ -53,7 +51,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
53
51
|
}, providers: [
|
|
54
52
|
{ provide: F_DRAG_AND_DROP_PLUGIN, useExisting: FMinimapComponent },
|
|
55
53
|
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<svg fMinimapFlow width=\"100%\" height=\"100%\" fLockedContext [fMinSize]=\"fMinSize\">\n <g fMinimapCanvas></g>\n <rect fMinimapView x=\"0\" y=\"0\" width=\"100%\" height=\"100%\" stroke=\"none\"/>\n</svg>\n\n", styles: [":host{display:block;position:absolute}:host svg{overflow:hidden}\n"] }]
|
|
56
|
-
}],
|
|
54
|
+
}], propDecorators: { fMinimapCanvas: [{
|
|
57
55
|
type: ViewChild,
|
|
58
56
|
args: [FMinimapCanvasDirective, { static: true }]
|
|
59
57
|
}], fMinimapFlow: [{
|
|
@@ -65,4 +63,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
65
63
|
}], fMinSize: [{
|
|
66
64
|
type: Input
|
|
67
65
|
}] } });
|
|
68
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
66
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1taW5pbWFwLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZi1taW5pbWFwL2YtbWluaW1hcC5jb21wb25lbn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W5pbWFwVmlldyB4PVwiMFwiIHk9XCIwXCIgd2lkdGg9XCIxMDAlXCIgaGVpZ2h0PVwiMTAwJVwiIHN0cm9rZT1cIm5vbmVcIi8+XG48L3N2Zz5cblxuIl19
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export * from './is-group';
|
|
2
1
|
export * from './is-node';
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2Ytbm9kZS9kb21haW4vaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxXQUFXLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2lzLW5vZGUnO1xuIl19
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Directive, InjectionToken } from "@angular/core";
|
|
1
|
+
import { Directive, ElementRef, inject, InjectionToken } from "@angular/core";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export const F_DRAG_HANDLE = new InjectionToken('F_DRAG_HANDLE');
|
|
4
4
|
export class FDragHandleDirective {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
constructor() {
|
|
6
|
+
this._elementReference = inject(ElementRef);
|
|
7
7
|
}
|
|
8
|
-
|
|
9
|
-
this.
|
|
8
|
+
get hostElement() {
|
|
9
|
+
return this._elementReference.nativeElement;
|
|
10
10
|
}
|
|
11
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FDragHandleDirective, deps: [
|
|
11
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FDragHandleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
12
12
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FDragHandleDirective, selector: "[fDragHandle]", host: { classAttribute: "f-drag-handle f-component" }, providers: [{ provide: F_DRAG_HANDLE, useExisting: FDragHandleDirective }], ngImport: i0 }); }
|
|
13
13
|
}
|
|
14
14
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FDragHandleDirective, decorators: [{
|
|
@@ -20,5 +20,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
20
20
|
},
|
|
21
21
|
providers: [{ provide: F_DRAG_HANDLE, useExisting: FDragHandleDirective }],
|
|
22
22
|
}]
|
|
23
|
-
}]
|
|
24
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
23
|
+
}] });
|
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1kcmFnLWhhbmRsZS5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2Ytbm9kZS9mLWRyYWctaGFuZGxlL2YtZHJhZy1oYW5kbGUuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxTQUFTLEVBQUUsVUFBVSxFQUFFLE1BQU0sRUFBRSxjQUFjLEVBQzlDLE1BQU0sZUFBZSxDQUFDOztBQUd2QixNQUFNLENBQUMsTUFBTSxhQUFhLEdBQUcsSUFBSSxjQUFjLENBQXVCLGVBQWUsQ0FBQyxDQUFDO0FBU3ZGLE1BQU0sT0FBTyxvQkFBb0I7SUFQakM7UUFTVSxzQkFBaUIsR0FBRyxNQUFNLENBQUMsVUFBVSxDQUFDLENBQUM7S0FLaEQ7SUFIQy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