@foblex/flow 12.2.3 → 12.3.5
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/LICENSE +0 -7
- package/README.md +33 -7
- package/domain/cast-to-enum.d.ts +1 -0
- package/domain/clear-selection/{clear-selection.handler.d.ts → clear-selection.execution.d.ts} +4 -4
- package/domain/clear-selection/index.d.ts +1 -1
- package/domain/create-connection-markers/{create-connection-markers.handler.d.ts → create-connection-markers.execution.d.ts} +4 -4
- package/domain/create-connection-markers/index.d.ts +1 -1
- package/domain/get-can-be-selected-items/get-can-be-selected-items-request.d.ts +2 -0
- package/{f-draggable/selection-area/get-can-be-selected-items/get-can-be-selected-items.handler.d.ts → domain/get-can-be-selected-items/get-can-be-selected-items.execution.d.ts} +6 -7
- package/{f-draggable/selection-area → domain}/get-can-be-selected-items/i-selectable-with-rect.d.ts +1 -1
- package/domain/get-can-be-selected-items/index.d.ts +2 -0
- package/domain/get-connection-line/get-connection-line.execution.d.ts +13 -0
- package/domain/get-connection-line/get-connection-line.request.d.ts +11 -0
- package/domain/get-connection-line/index.d.ts +2 -0
- package/domain/get-element-rect-in-flow/{get-element-rect-in-flow.handler.d.ts → get-element-rect-in-flow.execution.d.ts} +8 -5
- package/domain/get-element-rect-in-flow/index.d.ts +1 -1
- package/domain/get-input-rect-in-flow/get-input-rect-in-flow-response.d.ts +3 -3
- package/domain/get-input-rect-in-flow/{get-input-rect-in-flow.handler.d.ts → get-input-rect-in-flow.execution.d.ts} +4 -5
- package/domain/get-input-rect-in-flow/index.d.ts +1 -1
- package/domain/get-nodes-rect/get-nodes-rect.execution.d.ts +12 -0
- package/domain/get-nodes-rect/index.d.ts +1 -1
- package/domain/get-output-rect-in-flow/get-output-rect-in-flow-response.d.ts +3 -3
- package/domain/get-output-rect-in-flow/{get-output-rect-in-flow.handler.d.ts → get-output-rect-in-flow.execution.d.ts} +4 -5
- package/domain/get-output-rect-in-flow/index.d.ts +1 -1
- package/domain/get-position-in-flow/{get-position-in-flow.handler.d.ts → get-position-in-flow.execution.d.ts} +5 -4
- package/domain/get-position-in-flow/index.d.ts +1 -1
- package/domain/get-selection/{get-selection.handler.d.ts → get-selection.execution.d.ts} +4 -4
- package/domain/get-selection/index.d.ts +1 -1
- package/domain/get-value-from-data-attr.d.ts +1 -0
- package/domain/index.d.ts +8 -1
- package/domain/intersections/e-f-connector-shape.d.ts +3 -0
- package/domain/intersections/f-connector-shape.extensions.d.ts +11 -0
- package/domain/intersections/i-connector-shape.d.ts +6 -0
- package/domain/intersections/index.d.ts +5 -0
- package/domain/intersections/intersection-finder.d.ts +67 -0
- package/domain/intersections/rounded-rect/i-rounded-rect.d.ts +8 -0
- package/domain/intersections/rounded-rect/index.d.ts +2 -0
- package/domain/intersections/rounded-rect/rounded-rect.d.ts +22 -0
- package/domain/is-connection-under-node/index.d.ts +1 -0
- package/{f-draggable/node/domain/is-connection-under-node/is-connection-under-node.handler.d.ts → domain/is-connection-under-node/is-connection-under-node.execution.d.ts} +9 -8
- package/domain/is-connection-under-node/is-connection-under-node.request.d.ts +2 -0
- package/domain/is-element-with-class.d.ts +1 -0
- package/domain/providers.d.ts +17 -14
- package/domain/redraw-connections/index.d.ts +1 -1
- package/domain/redraw-connections/{redraw-connections.handler.d.ts → redraw-connections.execution.d.ts} +5 -6
- package/domain/select/index.d.ts +1 -1
- package/domain/select/{select.handler.d.ts → select.execution.d.ts} +4 -4
- package/domain/select-all/index.d.ts +1 -1
- package/domain/select-all/{select-all.handler.d.ts → select-all.execution.d.ts} +4 -4
- package/domain/select-and-update-node-layer/index.d.ts +2 -0
- package/domain/select-and-update-node-layer/select-and-update-node-layer.execution.d.ts +16 -0
- package/domain/select-and-update-node-layer/select-and-update-node-layer.request.d.ts +5 -0
- package/domain/update-item-layer/index.d.ts +1 -1
- package/domain/update-item-layer/update-item-layer.execution.d.ts +8 -0
- package/esm2022/domain/cast-to-enum.mjs +31 -0
- package/esm2022/domain/clear-selection/clear-selection.execution.mjs +28 -0
- package/esm2022/domain/clear-selection/index.mjs +2 -2
- package/esm2022/domain/create-connection-markers/create-connection-markers.execution.mjs +49 -0
- package/esm2022/domain/create-connection-markers/index.mjs +2 -2
- package/esm2022/domain/get-can-be-selected-items/get-can-be-selected-items-request.mjs +3 -0
- package/esm2022/domain/get-can-be-selected-items/get-can-be-selected-items.execution.mjs +57 -0
- package/esm2022/domain/get-can-be-selected-items/i-selectable-with-rect.mjs +2 -0
- package/esm2022/domain/get-can-be-selected-items/index.mjs +3 -0
- package/esm2022/domain/get-connection-line/get-connection-line.execution.mjs +68 -0
- package/esm2022/domain/get-connection-line/get-connection-line.request.mjs +10 -0
- package/esm2022/domain/get-connection-line/index.mjs +3 -0
- package/esm2022/domain/get-connection.handler.mjs +5 -5
- package/esm2022/domain/get-element-rect-in-flow/get-element-rect-in-flow.execution.mjs +41 -0
- package/esm2022/domain/get-element-rect-in-flow/index.mjs +2 -2
- package/esm2022/domain/get-incoming-connections.handler.mjs +4 -4
- package/esm2022/domain/get-input-rect-in-flow/get-input-rect-in-flow-response.mjs +1 -1
- package/esm2022/domain/get-input-rect-in-flow/get-input-rect-in-flow.execution.mjs +33 -0
- package/esm2022/domain/get-input-rect-in-flow/index.mjs +2 -2
- package/esm2022/domain/get-nodes-rect/get-nodes-rect.execution.mjs +29 -0
- package/esm2022/domain/get-nodes-rect/index.mjs +2 -2
- package/esm2022/domain/get-outgoing-connections.handler.mjs +4 -4
- package/esm2022/domain/get-output-rect-in-flow/get-output-rect-in-flow-response.mjs +1 -1
- package/esm2022/domain/get-output-rect-in-flow/get-output-rect-in-flow.execution.mjs +37 -0
- package/esm2022/domain/get-output-rect-in-flow/index.mjs +2 -2
- package/esm2022/domain/get-position-in-flow/get-position-in-flow.execution.mjs +32 -0
- package/esm2022/domain/get-position-in-flow/index.mjs +2 -2
- package/esm2022/domain/get-selection/get-selection.execution.mjs +35 -0
- package/esm2022/domain/get-selection/index.mjs +2 -2
- package/esm2022/domain/get-value-from-data-attr.mjs +7 -0
- package/esm2022/domain/index.mjs +9 -2
- package/esm2022/domain/intersections/e-f-connector-shape.mjs +5 -0
- package/esm2022/domain/intersections/f-connector-shape.extensions.mjs +46 -0
- package/esm2022/domain/intersections/i-connector-shape.mjs +2 -0
- package/esm2022/domain/intersections/index.mjs +6 -0
- package/esm2022/domain/intersections/intersection-finder.mjs +156 -0
- package/esm2022/domain/intersections/rounded-rect/i-rounded-rect.mjs +2 -0
- package/esm2022/domain/intersections/rounded-rect/index.mjs +3 -0
- package/esm2022/domain/intersections/rounded-rect/rounded-rect.mjs +45 -0
- package/esm2022/domain/is-connection-under-node/index.mjs +2 -0
- package/esm2022/domain/is-connection-under-node/is-connection-under-node.execution.mjs +80 -0
- package/esm2022/domain/is-connection-under-node/is-connection-under-node.request.mjs +3 -0
- package/esm2022/domain/is-element-with-class.mjs +8 -0
- package/esm2022/domain/providers.mjs +33 -27
- package/esm2022/domain/redraw-connections/index.mjs +2 -2
- package/esm2022/domain/redraw-connections/redraw-connections.execution.mjs +60 -0
- package/esm2022/domain/select/index.mjs +2 -2
- package/esm2022/domain/select/select.execution.mjs +44 -0
- package/esm2022/domain/select-all/index.mjs +2 -2
- package/esm2022/domain/select-all/select-all.execution.mjs +38 -0
- package/esm2022/domain/select-and-update-node-layer/index.mjs +3 -0
- package/esm2022/domain/select-and-update-node-layer/select-and-update-node-layer.execution.mjs +37 -0
- package/esm2022/domain/select-and-update-node-layer/select-and-update-node-layer.request.mjs +6 -0
- package/esm2022/domain/update-item-layer/index.mjs +2 -2
- package/esm2022/domain/update-item-layer/update-item-layer.execution.mjs +29 -0
- package/esm2022/errors/create-error-class.mjs +1 -2
- package/esm2022/f-backgroud/f-background-base.mjs +4 -4
- package/esm2022/f-backgroud/f-background.component.mjs +5 -5
- package/esm2022/f-backgroud/f-circle-pattern/f-circle-pattern.component.mjs +4 -4
- package/esm2022/f-backgroud/f-rect-pattern/f-rect-pattern.component.mjs +4 -4
- package/esm2022/f-backgroud/index.mjs +2 -1
- package/esm2022/f-backgroud/providers.mjs +9 -0
- package/esm2022/f-canvas/f-canvas-base.mjs +8 -6
- package/esm2022/f-canvas/f-canvas.component.mjs +5 -5
- package/esm2022/f-canvas/f-zoom/f-zoom.directive.mjs +4 -4
- package/esm2022/f-canvas/index.mjs +2 -1
- package/esm2022/f-canvas/providers.mjs +7 -0
- package/esm2022/f-connection/common/f-connection-base.mjs +25 -25
- package/esm2022/f-connection/common/f-connection-text/f-connection-text-path.directive.mjs +4 -4
- package/esm2022/f-connection/common/f-connection-text/f-connection-text.component.mjs +11 -11
- package/esm2022/f-connection/common/f-connection-text/i-connection-text.mjs +1 -1
- package/esm2022/f-connection/common/f-drag-handle/f-connection-drag-handle.component.mjs +4 -4
- package/esm2022/f-connection/common/f-gradient/f-connection-gradient.component.mjs +7 -7
- package/esm2022/f-connection/common/f-gradient/i-connection-gradient.mjs +1 -1
- package/esm2022/f-connection/common/f-path/f-connection-path.component.mjs +4 -4
- package/esm2022/f-connection/common/f-selection/f-connection-selection.component.mjs +4 -4
- package/esm2022/f-connection/common/index.mjs +1 -3
- package/esm2022/f-connection/f-connection/f-connection.component.mjs +13 -12
- package/esm2022/f-connection/f-connection-builder/f-connection-factory.mjs +4 -4
- package/esm2022/f-connection/f-connection-center/f-connection-center.directive.mjs +4 -4
- package/esm2022/f-connection/f-connection-for-create/f-connection-for-create.component.mjs +12 -11
- package/esm2022/f-connection/f-marker/f-marker-base.mjs +4 -4
- package/esm2022/f-connection/f-marker/f-marker.directive.mjs +4 -4
- package/esm2022/f-connection/index.mjs +2 -1
- package/esm2022/f-connection/providers.mjs +18 -0
- package/esm2022/f-connectors/f-node-input/f-node-input-base.mjs +4 -4
- package/esm2022/f-connectors/f-node-input/f-node-input.directive.mjs +4 -4
- package/esm2022/f-connectors/f-node-outlet/f-node-outlet-base.mjs +4 -4
- package/esm2022/f-connectors/f-node-outlet/f-node-outlet.directive.mjs +4 -4
- package/esm2022/f-connectors/f-node-output/f-node-output-base.mjs +4 -4
- package/esm2022/f-connectors/f-node-output/f-node-output.directive.mjs +4 -4
- package/esm2022/f-connectors/index.mjs +2 -1
- package/esm2022/f-connectors/providers.mjs +9 -0
- package/esm2022/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.execution.mjs +26 -0
- package/esm2022/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.request.mjs +6 -0
- package/esm2022/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.validator.mjs +25 -0
- package/esm2022/f-draggable/canvas/canvas-move-finalize/index.mjs +5 -0
- package/esm2022/f-draggable/canvas/canvas-move-finalize/providers.mjs +7 -0
- package/esm2022/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.execution.mjs +36 -0
- package/esm2022/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.request.mjs +6 -0
- package/esm2022/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.validator.mjs +43 -0
- package/esm2022/f-draggable/canvas/canvas-move-preparation/index.mjs +5 -0
- package/esm2022/f-draggable/canvas/canvas-move-preparation/providers.mjs +7 -0
- package/esm2022/f-draggable/canvas/index.mjs +3 -3
- package/esm2022/f-draggable/canvas/providers.mjs +5 -5
- package/esm2022/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.execution.mjs +55 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.request.mjs +6 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.validator.mjs +25 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-finalize/index.mjs +5 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-finalize/providers.mjs +7 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/create-connection-drag-handler.execution.mjs +39 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/create-connection-drag-handler.request.mjs +8 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/index.mjs +4 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/providers.mjs +5 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/create-connection-from-outlet-preparation.execution.mjs +60 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/create-connection-from-outlet-preparation.request.mjs +6 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/index.mjs +4 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/providers.mjs +5 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.execution.mjs +46 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.request.mjs +6 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.validator.mjs +34 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/index.mjs +5 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/providers.mjs +7 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.execution.mjs +43 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.request.mjs +6 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.validator.mjs +32 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/index.mjs +8 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/providers.mjs +13 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection.drag-handler.mjs +11 -9
- package/esm2022/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.execution.mjs +43 -0
- package/esm2022/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.request.mjs +6 -0
- package/esm2022/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.validator.mjs +27 -0
- package/esm2022/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/index.mjs +5 -0
- package/esm2022/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/providers.mjs +7 -0
- package/esm2022/f-draggable/connections/create-connection/index.mjs +4 -4
- package/esm2022/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.execution.mjs +72 -0
- package/esm2022/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.request.mjs +7 -0
- package/esm2022/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.validator.mjs +35 -0
- package/esm2022/f-draggable/connections/get-input-under-pointer/index.mjs +5 -0
- package/esm2022/f-draggable/connections/get-input-under-pointer/providers.mjs +7 -0
- package/esm2022/f-draggable/connections/index.mjs +2 -2
- package/esm2022/f-draggable/connections/providers.mjs +10 -11
- package/esm2022/f-draggable/connections/reassign-connection/index.mjs +3 -3
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/index.mjs +5 -0
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/providers.mjs +7 -0
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.execution.mjs +50 -0
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.request.mjs +6 -0
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.validator.mjs +25 -0
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-preparation/index.mjs +5 -0
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-preparation/providers.mjs +7 -0
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.execution.mjs +59 -0
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.request.mjs +6 -0
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.validator.mjs +42 -0
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.mjs +10 -11
- package/esm2022/f-draggable/e-f-draggable-type.mjs +3 -1
- package/esm2022/f-draggable/external-item/external-item-finalize/external-item-finalize.execution.mjs +55 -0
- package/esm2022/f-draggable/external-item/external-item-finalize/external-item-finalize.request.mjs +6 -0
- package/esm2022/f-draggable/external-item/external-item-finalize/external-item-finalize.validator.mjs +25 -0
- package/esm2022/f-draggable/external-item/external-item-finalize/index.mjs +5 -0
- package/esm2022/f-draggable/external-item/external-item-finalize/providers.mjs +7 -0
- package/esm2022/f-draggable/external-item/external-item-preparation/external-item-preparation.execution.mjs +41 -0
- package/esm2022/f-draggable/external-item/external-item-preparation/external-item-preparation.request.mjs +6 -0
- package/esm2022/f-draggable/external-item/external-item-preparation/external-item-preparation.validator.mjs +29 -0
- package/esm2022/f-draggable/external-item/external-item-preparation/index.mjs +5 -0
- package/esm2022/f-draggable/external-item/external-item-preparation/providers.mjs +7 -0
- package/esm2022/f-draggable/external-item/index.mjs +3 -3
- package/esm2022/f-draggable/external-item/providers.mjs +5 -5
- package/esm2022/f-draggable/f-draggable-base.mjs +6 -7
- package/esm2022/f-draggable/f-draggable-data-context.mjs +4 -4
- package/esm2022/f-draggable/f-draggable.directive.mjs +31 -29
- package/esm2022/f-draggable/i-can-run-outside-angular.mjs +2 -0
- package/esm2022/f-draggable/index.mjs +4 -1
- package/esm2022/f-draggable/node/connection-source.drag-handler.mjs +8 -10
- package/esm2022/f-draggable/node/connection-target.drag-handler.mjs +8 -10
- package/esm2022/f-draggable/node/connection.drag-handler.mjs +8 -8
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.mjs +92 -0
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.request.mjs +3 -0
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/index.mjs +4 -0
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/providers.mjs +5 -0
- package/esm2022/f-draggable/node/index.mjs +4 -4
- package/esm2022/f-draggable/node/node-move-finalize/index.mjs +5 -0
- package/esm2022/f-draggable/node/node-move-finalize/node-move-finalize.execution.mjs +51 -0
- package/esm2022/f-draggable/node/node-move-finalize/node-move-finalize.request.mjs +6 -0
- package/esm2022/f-draggable/node/node-move-finalize/node-move-finalize.validator.mjs +25 -0
- package/esm2022/f-draggable/node/node-move-finalize/providers.mjs +7 -0
- package/esm2022/f-draggable/node/node-move-preparation/index.mjs +5 -0
- package/esm2022/f-draggable/node/node-move-preparation/node-move-preparation.execution.mjs +60 -0
- package/esm2022/f-draggable/node/node-move-preparation/node-move-preparation.request.mjs +6 -0
- package/esm2022/f-draggable/node/node-move-preparation/node-move-preparation.validator.mjs +41 -0
- package/esm2022/f-draggable/node/node-move-preparation/providers.mjs +7 -0
- package/esm2022/f-draggable/node/node.drag-handler.mjs +2 -2
- package/esm2022/f-draggable/node/providers.mjs +7 -7
- package/esm2022/f-draggable/node-resize/index.mjs +5 -0
- package/esm2022/f-draggable/node-resize/node-resize-finalize/index.mjs +5 -0
- package/esm2022/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.execution.mjs +26 -0
- package/esm2022/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.request.mjs +6 -0
- package/esm2022/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.validator.mjs +25 -0
- package/esm2022/f-draggable/node-resize/node-resize-finalize/providers.mjs +7 -0
- package/esm2022/f-draggable/node-resize/node-resize-preparation/index.mjs +5 -0
- package/esm2022/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.execution.mjs +52 -0
- package/esm2022/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.request.mjs +6 -0
- package/esm2022/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.validator.mjs +41 -0
- package/esm2022/f-draggable/node-resize/node-resize-preparation/providers.mjs +7 -0
- package/esm2022/f-draggable/node-resize/node-resize.drag-handler.mjs +49 -0
- package/esm2022/f-draggable/node-resize/providers.mjs +7 -0
- package/esm2022/f-draggable/providers.mjs +17 -0
- package/esm2022/f-draggable/selection-area/index.mjs +3 -4
- package/esm2022/f-draggable/selection-area/providers.mjs +5 -7
- package/esm2022/f-draggable/selection-area/selection-area-finalize/index.mjs +5 -0
- package/esm2022/f-draggable/selection-area/selection-area-finalize/providers.mjs +7 -0
- package/esm2022/f-draggable/selection-area/selection-area-finalize/selection-area-finalize.execution.mjs +26 -0
- package/esm2022/f-draggable/selection-area/selection-area-finalize/selection-area-finalize.request.mjs +6 -0
- package/esm2022/f-draggable/selection-area/selection-area-finalize/selection-area-finalize.validator.mjs +25 -0
- package/esm2022/f-draggable/selection-area/selection-area-preparation/index.mjs +5 -0
- package/esm2022/f-draggable/selection-area/selection-area-preparation/providers.mjs +7 -0
- package/esm2022/f-draggable/selection-area/selection-area-preparation/selection-area-preparation.execution.mjs +38 -0
- package/esm2022/f-draggable/selection-area/selection-area-preparation/selection-area-preparation.request.mjs +6 -0
- package/esm2022/f-draggable/selection-area/selection-area-preparation/selection-area-preparation.validator.mjs +30 -0
- package/esm2022/f-draggable/selection-area/selection-area.drag-handle.mjs +5 -5
- package/esm2022/f-draggable/single-select/index.mjs +4 -2
- package/esm2022/f-draggable/single-select/providers.mjs +5 -3
- package/esm2022/f-draggable/single-select/single-select.execution.mjs +80 -0
- package/esm2022/f-draggable/single-select/single-select.request.mjs +6 -0
- package/esm2022/f-draggable/single-select/single-select.validator.mjs +24 -0
- package/esm2022/f-external-item/f-external-item-base.mjs +4 -4
- package/esm2022/f-external-item/f-external-item.directive.mjs +4 -4
- package/esm2022/f-external-item/f-external-item.service.mjs +4 -4
- package/esm2022/f-external-item/index.mjs +2 -1
- package/esm2022/f-external-item/providers.mjs +5 -0
- package/esm2022/f-flow/f-flow.component.mjs +9 -19
- package/esm2022/f-flow/index.mjs +2 -1
- package/esm2022/f-flow/providers.mjs +5 -0
- package/esm2022/f-flow.module.mjs +58 -107
- package/esm2022/f-line-alignment/domain/nearest-coordinate.mjs +14 -13
- package/esm2022/f-line-alignment/f-line-alignment-base.mjs +4 -4
- package/esm2022/f-line-alignment/f-line-alignment.component.mjs +12 -12
- package/esm2022/f-line-alignment/index.mjs +2 -1
- package/esm2022/f-line-alignment/providers.mjs +5 -0
- package/esm2022/f-node/f-drag-handle/f-drag-handle.directive.mjs +8 -26
- package/esm2022/f-node/f-drag-handle/index.mjs +1 -2
- package/esm2022/f-node/f-node-base.mjs +8 -4
- package/esm2022/f-node/f-node.directive.mjs +24 -7
- package/esm2022/f-node/f-resize-handle/e-f-resize-handle-type.mjs +8 -0
- package/esm2022/f-node/f-resize-handle/f-resize-handle.directive.mjs +55 -0
- package/esm2022/f-node/f-resize-handle/index.mjs +3 -0
- package/esm2022/f-node/f-rotate-handle/f-rotate-handle.directive.mjs +27 -0
- package/esm2022/f-node/f-rotate-handle/index.mjs +2 -0
- package/esm2022/f-node/index.mjs +4 -1
- package/esm2022/f-node/providers.mjs +10 -0
- package/esm2022/f-selection-area/f-selection-area-base.mjs +4 -4
- package/esm2022/f-selection-area/f-selection-area.component.mjs +4 -4
- package/esm2022/f-selection-area/index.mjs +2 -1
- package/esm2022/f-selection-area/providers.mjs +5 -0
- package/esm2022/f-storage/f-components-store.mjs +4 -5
- package/esm2022/infrastructure/f-mediator/f-execution-register.mjs +7 -0
- package/esm2022/infrastructure/f-mediator/f-flow-mediator.mjs +29 -0
- package/esm2022/infrastructure/f-mediator/f-validator-register.mjs +7 -0
- package/esm2022/infrastructure/f-mediator/index.mjs +4 -0
- package/esm2022/infrastructure/index.mjs +3 -0
- package/esm2022/infrastructure/pipeline/i-execution.mjs +2 -0
- package/esm2022/infrastructure/pipeline/i-validator.mjs +2 -0
- package/esm2022/infrastructure/pipeline/index.mjs +4 -0
- package/esm2022/infrastructure/pipeline/pipeline.mjs +19 -0
- package/esm2022/public-api.mjs +2 -3
- package/f-backgroud/index.d.ts +1 -0
- package/f-backgroud/providers.d.ts +4 -0
- package/f-canvas/f-canvas-base.d.ts +1 -0
- package/f-canvas/f-canvas.component.d.ts +1 -1
- package/f-canvas/index.d.ts +1 -0
- package/f-canvas/providers.d.ts +3 -0
- package/f-connection/common/f-connection-base.d.ts +8 -6
- package/f-connection/common/f-connection-text/f-connection-text.component.d.ts +2 -2
- package/f-connection/common/f-connection-text/i-connection-text.d.ts +2 -2
- package/f-connection/common/f-gradient/f-connection-gradient.component.d.ts +2 -2
- package/f-connection/common/f-gradient/i-connection-gradient.d.ts +2 -2
- package/f-connection/common/index.d.ts +0 -2
- package/f-connection/f-connection/f-connection.component.d.ts +1 -1
- package/f-connection/f-connection-for-create/f-connection-for-create.component.d.ts +1 -1
- package/f-connection/index.d.ts +1 -0
- package/f-connection/providers.d.ts +6 -0
- package/f-connectors/index.d.ts +1 -0
- package/f-connectors/providers.d.ts +4 -0
- package/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.execution.d.ts +11 -0
- package/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.request.d.ts +5 -0
- package/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.validator.d.ts +11 -0
- package/f-draggable/canvas/canvas-move-finalize/index.d.ts +4 -0
- package/f-draggable/canvas/canvas-move-finalize/providers.d.ts +3 -0
- package/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.execution.d.ts +14 -0
- package/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.request.d.ts +5 -0
- package/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.validator.d.ts +17 -0
- package/f-draggable/canvas/canvas-move-preparation/index.d.ts +4 -0
- package/f-draggable/canvas/canvas-move-preparation/providers.d.ts +3 -0
- package/f-draggable/canvas/index.d.ts +2 -2
- package/f-draggable/canvas/providers.d.ts +1 -3
- package/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.execution.d.ts +21 -0
- package/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.request.d.ts +5 -0
- package/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.validator.d.ts +11 -0
- package/f-draggable/connections/create-connection/create-connection-finalize/index.d.ts +4 -0
- package/f-draggable/connections/create-connection/create-connection-finalize/providers.d.ts +3 -0
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/create-connection-drag-handler.execution.d.ts +16 -0
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/create-connection-drag-handler.request.d.ts +8 -0
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/index.d.ts +3 -0
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/providers.d.ts +2 -0
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/create-connection-from-outlet-preparation.execution.d.ts +15 -0
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/create-connection-from-outlet-preparation.request.d.ts +5 -0
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/index.d.ts +3 -0
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/providers.d.ts +2 -0
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.execution.d.ts +15 -0
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.request.d.ts +5 -0
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.validator.d.ts +14 -0
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/index.d.ts +4 -0
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/providers.d.ts +3 -0
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.execution.d.ts +16 -0
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.request.d.ts +5 -0
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.validator.d.ts +15 -0
- package/f-draggable/connections/create-connection/create-connection-preparation/index.d.ts +7 -0
- package/f-draggable/connections/create-connection/create-connection-preparation/providers.d.ts +3 -0
- package/f-draggable/connections/create-connection/create-connection.drag-handler.d.ts +1 -1
- package/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.execution.d.ts +16 -0
- package/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.request.d.ts +5 -0
- package/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.validator.d.ts +12 -0
- package/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/index.d.ts +4 -0
- package/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/providers.d.ts +3 -0
- package/f-draggable/connections/create-connection/index.d.ts +3 -3
- package/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.execution.d.ts +22 -0
- package/f-draggable/connections/{find-inputs-under-pointer/find-inputs-under-pointer.request.d.ts → get-input-under-pointer/get-input-under-pointer.request.d.ts} +1 -1
- package/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.validator.d.ts +13 -0
- package/f-draggable/connections/get-input-under-pointer/index.d.ts +4 -0
- package/f-draggable/connections/get-input-under-pointer/providers.d.ts +3 -0
- package/f-draggable/connections/index.d.ts +1 -1
- package/f-draggable/connections/providers.d.ts +1 -4
- package/f-draggable/connections/reassign-connection/index.d.ts +2 -2
- package/f-draggable/connections/reassign-connection/reassign-connection-finalize/index.d.ts +4 -0
- package/f-draggable/connections/reassign-connection/reassign-connection-finalize/providers.d.ts +3 -0
- package/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.execution.d.ts +19 -0
- package/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.request.d.ts +5 -0
- package/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.validator.d.ts +11 -0
- package/f-draggable/connections/reassign-connection/reassign-connection-preparation/index.d.ts +4 -0
- package/f-draggable/connections/reassign-connection/reassign-connection-preparation/providers.d.ts +3 -0
- package/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.execution.d.ts +21 -0
- package/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.request.d.ts +5 -0
- package/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.validator.d.ts +18 -0
- package/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.d.ts +1 -1
- package/f-draggable/e-f-draggable-type.d.ts +2 -0
- package/f-draggable/external-item/external-item-finalize/external-item-finalize.execution.d.ts +21 -0
- package/f-draggable/external-item/external-item-finalize/external-item-finalize.request.d.ts +5 -0
- package/f-draggable/external-item/external-item-finalize/external-item-finalize.validator.d.ts +11 -0
- package/f-draggable/external-item/external-item-finalize/index.d.ts +4 -0
- package/f-draggable/external-item/external-item-finalize/providers.d.ts +3 -0
- package/f-draggable/external-item/external-item-preparation/external-item-preparation.execution.d.ts +17 -0
- package/f-draggable/external-item/external-item-preparation/external-item-preparation.request.d.ts +5 -0
- package/f-draggable/external-item/external-item-preparation/external-item-preparation.validator.d.ts +12 -0
- package/f-draggable/external-item/external-item-preparation/index.d.ts +4 -0
- package/f-draggable/external-item/external-item-preparation/providers.d.ts +3 -0
- package/f-draggable/external-item/index.d.ts +2 -2
- package/f-draggable/external-item/providers.d.ts +1 -3
- package/f-draggable/f-draggable-base.d.ts +2 -3
- package/f-draggable/f-draggable.directive.d.ts +3 -4
- package/f-draggable/i-can-run-outside-angular.d.ts +3 -0
- package/f-draggable/index.d.ts +3 -0
- 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 +2 -2
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.d.ts +27 -0
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.request.d.ts +2 -0
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/index.d.ts +3 -0
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/providers.d.ts +2 -0
- package/f-draggable/node/index.d.ts +3 -3
- package/f-draggable/node/node-move-finalize/index.d.ts +4 -0
- package/f-draggable/node/node-move-finalize/node-move-finalize.execution.d.ts +17 -0
- package/f-draggable/node/node-move-finalize/node-move-finalize.request.d.ts +5 -0
- package/f-draggable/node/node-move-finalize/node-move-finalize.validator.d.ts +11 -0
- package/f-draggable/node/node-move-finalize/providers.d.ts +3 -0
- package/f-draggable/node/node-move-preparation/index.d.ts +4 -0
- package/f-draggable/node/node-move-preparation/node-move-preparation.execution.d.ts +21 -0
- package/f-draggable/node/node-move-preparation/node-move-preparation.request.d.ts +5 -0
- package/f-draggable/node/node-move-preparation/node-move-preparation.validator.d.ts +17 -0
- package/f-draggable/node/node-move-preparation/providers.d.ts +3 -0
- package/f-draggable/node/providers.d.ts +1 -4
- package/f-draggable/node-resize/index.d.ts +4 -0
- package/f-draggable/node-resize/node-resize-finalize/index.d.ts +4 -0
- package/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.execution.d.ts +11 -0
- package/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.request.d.ts +5 -0
- package/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.validator.d.ts +11 -0
- package/f-draggable/node-resize/node-resize-finalize/providers.d.ts +3 -0
- package/f-draggable/node-resize/node-resize-preparation/index.d.ts +4 -0
- package/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.execution.d.ts +18 -0
- package/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.request.d.ts +5 -0
- package/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.validator.d.ts +17 -0
- package/f-draggable/node-resize/node-resize-preparation/providers.d.ts +3 -0
- package/f-draggable/node-resize/node-resize.drag-handler.d.ts +19 -0
- package/f-draggable/node-resize/providers.d.ts +1 -0
- package/f-draggable/providers.d.ts +1 -0
- package/f-draggable/selection-area/index.d.ts +2 -3
- package/f-draggable/selection-area/providers.d.ts +1 -4
- package/f-draggable/selection-area/selection-area-finalize/index.d.ts +4 -0
- package/f-draggable/selection-area/selection-area-finalize/providers.d.ts +3 -0
- package/f-draggable/selection-area/selection-area-finalize/selection-area-finalize.execution.d.ts +11 -0
- package/f-draggable/selection-area/selection-area-finalize/selection-area-finalize.request.d.ts +5 -0
- package/f-draggable/selection-area/selection-area-finalize/selection-area-finalize.validator.d.ts +11 -0
- package/f-draggable/selection-area/selection-area-preparation/index.d.ts +4 -0
- package/f-draggable/selection-area/selection-area-preparation/providers.d.ts +3 -0
- package/f-draggable/selection-area/selection-area-preparation/selection-area-preparation.execution.d.ts +15 -0
- package/f-draggable/selection-area/selection-area-preparation/selection-area-preparation.request.d.ts +5 -0
- package/f-draggable/selection-area/selection-area-preparation/selection-area-preparation.validator.d.ts +12 -0
- package/f-draggable/selection-area/selection-area.drag-handle.d.ts +3 -3
- package/f-draggable/single-select/index.d.ts +3 -1
- package/f-draggable/single-select/providers.d.ts +3 -2
- package/f-draggable/single-select/{single-select.on-pointer-down.d.ts → single-select.execution.d.ts} +7 -7
- package/f-draggable/single-select/single-select.request.d.ts +5 -0
- package/f-draggable/single-select/single-select.validator.d.ts +11 -0
- package/f-external-item/index.d.ts +1 -0
- package/f-external-item/providers.d.ts +2 -0
- package/f-flow/f-flow.component.d.ts +1 -1
- package/f-flow/index.d.ts +1 -0
- package/f-flow/providers.d.ts +2 -0
- package/f-flow.module.d.ts +26 -26
- package/f-line-alignment/domain/nearest-coordinate.d.ts +3 -1
- package/f-line-alignment/f-line-alignment.component.d.ts +3 -2
- package/f-line-alignment/index.d.ts +1 -0
- package/f-line-alignment/providers.d.ts +2 -0
- package/f-node/f-drag-handle/f-drag-handle.directive.d.ts +4 -9
- package/f-node/f-drag-handle/index.d.ts +0 -1
- package/f-node/f-node-base.d.ts +6 -2
- package/f-node/f-node.directive.d.ts +6 -2
- package/f-node/f-resize-handle/e-f-resize-handle-type.d.ts +6 -0
- package/f-node/f-resize-handle/f-resize-handle.directive.d.ts +19 -0
- package/f-node/f-resize-handle/index.d.ts +2 -0
- package/f-node/f-rotate-handle/f-rotate-handle.directive.d.ts +9 -0
- package/f-node/f-rotate-handle/index.d.ts +1 -0
- package/f-node/index.d.ts +3 -0
- package/f-node/providers.d.ts +4 -0
- package/f-selection-area/index.d.ts +1 -0
- package/f-selection-area/providers.d.ts +2 -0
- package/f-storage/f-components-store.d.ts +0 -2
- package/fesm2022/foblex-flow.mjs +3934 -2802
- package/fesm2022/foblex-flow.mjs.map +1 -1
- package/infrastructure/f-mediator/f-execution-register.d.ts +5 -0
- package/{f-mediator → infrastructure/f-mediator}/f-flow-mediator.d.ts +3 -3
- package/infrastructure/f-mediator/f-validator-register.d.ts +5 -0
- package/infrastructure/f-mediator/index.d.ts +3 -0
- package/infrastructure/index.d.ts +2 -0
- package/infrastructure/pipeline/i-execution.d.ts +3 -0
- package/infrastructure/pipeline/i-validator.d.ts +3 -0
- package/infrastructure/pipeline/index.d.ts +3 -0
- package/infrastructure/pipeline/pipeline.d.ts +11 -0
- package/package.json +2 -2
- package/public-api.d.ts +1 -2
- package/domain/get-connection-vector/get-connection-vector.handler.d.ts +0 -12
- package/domain/get-connection-vector/get-connection-vector.request.d.ts +0 -11
- package/domain/get-connection-vector/index.d.ts +0 -2
- package/domain/get-nodes-rect/get-nodes-rect.handler.d.ts +0 -11
- package/domain/update-item-layer/update-item-layer.handler.d.ts +0 -8
- package/esm2022/domain/clear-selection/clear-selection.handler.mjs +0 -28
- package/esm2022/domain/create-connection-markers/create-connection-markers.handler.mjs +0 -49
- package/esm2022/domain/get-connection-vector/get-connection-vector.handler.mjs +0 -79
- package/esm2022/domain/get-connection-vector/get-connection-vector.request.mjs +0 -10
- package/esm2022/domain/get-connection-vector/index.mjs +0 -3
- package/esm2022/domain/get-element-rect-in-flow/get-element-rect-in-flow.handler.mjs +0 -34
- package/esm2022/domain/get-input-rect-in-flow/get-input-rect-in-flow.handler.mjs +0 -34
- package/esm2022/domain/get-nodes-rect/get-nodes-rect.handler.mjs +0 -30
- package/esm2022/domain/get-output-rect-in-flow/get-output-rect-in-flow.handler.mjs +0 -37
- package/esm2022/domain/get-position-in-flow/get-position-in-flow.handler.mjs +0 -32
- package/esm2022/domain/get-selection/get-selection.handler.mjs +0 -35
- package/esm2022/domain/redraw-connections/redraw-connections.handler.mjs +0 -60
- package/esm2022/domain/select/select.handler.mjs +0 -44
- package/esm2022/domain/select-all/select-all.handler.mjs +0 -38
- package/esm2022/domain/update-item-layer/update-item-layer.handler.mjs +0 -29
- package/esm2022/f-connection/common/cast-to-connection-behavior.mjs +0 -9
- package/esm2022/f-connection/common/cast-to-connection-type.mjs +0 -9
- package/esm2022/f-draggable/canvas/canvas.on-pointer-up.mjs +0 -23
- package/esm2022/f-draggable/canvas/canvas.prepare-drag-sequence.mjs +0 -37
- package/esm2022/f-draggable/connections/create-connection/create-connection.on-pointer-up.mjs +0 -48
- package/esm2022/f-draggable/connections/create-connection/create-connection.prepare-drag-sequence.mjs +0 -85
- package/esm2022/f-draggable/connections/create-connection/find-first-can-be-connected-output-by-outlet/find-first-can-be-connected-output-by-outlet.handler.mjs +0 -34
- package/esm2022/f-draggable/connections/create-connection/find-first-can-be-connected-output-by-outlet/index.mjs +0 -2
- package/esm2022/f-draggable/connections/find-inputs-under-pointer/find-inputs-under-pointer.handler.mjs +0 -54
- package/esm2022/f-draggable/connections/find-inputs-under-pointer/find-inputs-under-pointer.request.mjs +0 -7
- package/esm2022/f-draggable/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/first-not-connected-input-of-node-under-pointer.handler.mjs +0 -34
- package/esm2022/f-draggable/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/index.mjs +0 -2
- package/esm2022/f-draggable/connections/find-inputs-under-pointer/index.mjs +0 -4
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection.on-pointer-up.mjs +0 -36
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection.prepare-drag-sequence.mjs +0 -53
- package/esm2022/f-draggable/external-item/external-item.on-pointer-up.mjs +0 -45
- package/esm2022/f-draggable/external-item/external-item.prepare-drag-sequence.mjs +0 -44
- package/esm2022/f-draggable/node/domain/is-connection-under-node/index.mjs +0 -2
- package/esm2022/f-draggable/node/domain/is-connection-under-node/is-connection-under-node.handler.mjs +0 -73
- package/esm2022/f-draggable/node/node.on-pointer-up.mjs +0 -41
- package/esm2022/f-draggable/node/node.prepare-drag-sequence.mjs +0 -101
- package/esm2022/f-draggable/selection-area/get-can-be-selected-items/get-can-be-selected-items.handler.mjs +0 -55
- package/esm2022/f-draggable/selection-area/get-can-be-selected-items/i-selectable-with-rect.mjs +0 -2
- package/esm2022/f-draggable/selection-area/get-can-be-selected-items/index.mjs +0 -3
- package/esm2022/f-draggable/selection-area/selection-area.on-pointer-up.mjs +0 -23
- package/esm2022/f-draggable/selection-area/selection-area.prepare-drag-sequence.mjs +0 -32
- package/esm2022/f-draggable/single-select/single-select.on-pointer-down.mjs +0 -75
- package/esm2022/f-group/f-group-base.mjs +0 -6
- package/esm2022/f-group/f-group.directive.mjs +0 -110
- package/esm2022/f-group/index.mjs +0 -4
- package/esm2022/f-group/is-group.mjs +0 -4
- package/esm2022/f-mediator/f-flow-mediator.mjs +0 -24
- package/esm2022/f-mediator/f-handler-register.mjs +0 -7
- package/esm2022/f-mediator/index.mjs +0 -3
- package/esm2022/f-node/f-drag-handle/is-drag-handle.mjs +0 -20
- package/f-connection/common/cast-to-connection-behavior.d.ts +0 -2
- package/f-connection/common/cast-to-connection-type.d.ts +0 -2
- package/f-draggable/canvas/canvas.on-pointer-up.d.ts +0 -10
- package/f-draggable/canvas/canvas.prepare-drag-sequence.d.ts +0 -13
- package/f-draggable/connections/create-connection/create-connection.on-pointer-up.d.ts +0 -16
- package/f-draggable/connections/create-connection/create-connection.prepare-drag-sequence.d.ts +0 -20
- package/f-draggable/connections/create-connection/find-first-can-be-connected-output-by-outlet/find-first-can-be-connected-output-by-outlet.handler.d.ts +0 -13
- package/f-draggable/connections/create-connection/find-first-can-be-connected-output-by-outlet/index.d.ts +0 -1
- package/f-draggable/connections/find-inputs-under-pointer/find-inputs-under-pointer.handler.d.ts +0 -18
- package/f-draggable/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/first-not-connected-input-of-node-under-pointer.handler.d.ts +0 -13
- package/f-draggable/connections/find-inputs-under-pointer/first-not-connected-input-of-node-under-pointer/index.d.ts +0 -1
- package/f-draggable/connections/find-inputs-under-pointer/index.d.ts +0 -3
- package/f-draggable/connections/reassign-connection/reassign-connection.on-pointer-up.d.ts +0 -15
- package/f-draggable/connections/reassign-connection/reassign-connection.prepare-drag-sequence.d.ts +0 -18
- package/f-draggable/external-item/external-item.on-pointer-up.d.ts +0 -16
- package/f-draggable/external-item/external-item.prepare-drag-sequence.d.ts +0 -16
- package/f-draggable/node/domain/is-connection-under-node/index.d.ts +0 -1
- package/f-draggable/node/node.on-pointer-up.d.ts +0 -15
- package/f-draggable/node/node.prepare-drag-sequence.d.ts +0 -22
- package/f-draggable/selection-area/get-can-be-selected-items/index.d.ts +0 -2
- package/f-draggable/selection-area/selection-area.on-pointer-up.d.ts +0 -10
- package/f-draggable/selection-area/selection-area.prepare-drag-sequence.d.ts +0 -15
- package/f-group/f-group-base.d.ts +0 -6
- package/f-group/f-group.directive.d.ts +0 -31
- package/f-group/index.d.ts +0 -3
- package/f-group/is-group.d.ts +0 -1
- package/f-mediator/f-handler-register.d.ts +0 -5
- package/f-mediator/index.d.ts +0 -2
- package/f-node/f-drag-handle/is-drag-handle.d.ts +0 -1
package/LICENSE
CHANGED
|
@@ -19,10 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
|
22
|
-
|
|
23
|
-
NOTICE OF ACCESS TO SOURCE CODE:
|
|
24
|
-
Access to the full source code of this library for the purposes of study,
|
|
25
|
-
modification, or integration with your projects requires the purchase of a
|
|
26
|
-
separate license. This license will provide additional rights, as detailed
|
|
27
|
-
in a separate licensing agreement. For more information and to purchase
|
|
28
|
-
a license, please contact www.foblex.com.
|
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
## Welcome to the @foblex/flow
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
`@foblex/flow` is an [Angular](https://angular.dev/) library designed to simplify the creation and manipulation of dynamic flow. Provides components for flows, nodes, and connections, automating node manipulation and inter-node connections.
|
|
4
6
|
|
|
5
7
|
### Features
|
|
6
8
|
|
|
@@ -13,17 +15,41 @@
|
|
|
13
15
|
|
|
14
16
|
### Getting Started and Documentation
|
|
15
17
|
|
|
16
|
-
Visit the [Foblex Flow Documentation](https://www.foblex.com/flow/documentation) to learn how to install and use the library in your Angular project.
|
|
18
|
+
Visit the [Foblex Flow Documentation](https://www.foblex.com/flow/documentation/get-started) to learn how to install and use the library in your Angular project.
|
|
19
|
+
|
|
20
|
+
### Installation
|
|
21
|
+
|
|
22
|
+
To add `@foblex/flow` to your project, run the following command:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npm install @foblex/flow
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Usage
|
|
29
|
+
|
|
30
|
+
Example:
|
|
31
|
+
```typescript
|
|
32
|
+
<f-flow fDraggable>
|
|
33
|
+
<f-canvas>
|
|
34
|
+
<f-connection fOutputId="output1" fInputId="input1"></f-connection>
|
|
35
|
+
<div fNode fDragHandle [fNodePosition]="{ x: 24, y: 24 }" fNodeOutput fOutputId="output1" fOutputConnectableSide="right"> Drag me </div>
|
|
36
|
+
<div fNode fDragHandle [fNodePosition]="{ x: 244, y: 24 }" fNodeInput fInputId="input1" fInputConnectableSide="left"> Drag me </div>
|
|
37
|
+
</f-canvas>
|
|
38
|
+
</f-flow>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Examples
|
|
42
|
+
|
|
43
|
+
[Call Center](https://github.com/Foblex/f-flow-example)
|
|
17
44
|
|
|
18
45
|
### Support and Community
|
|
19
46
|
|
|
20
47
|
For questions, feedback, and support, visit the [Foblex Portal](https://www.foblex.com/flow/home) to connect with the community and the development team.
|
|
21
48
|
You can also report [issues](https://github.com/Foblex/flow/issues) and request [features](https://github.com/Foblex/flow/discussions) on the [GitHub repository](https://github.com/Foblex/flow).
|
|
22
49
|
|
|
23
|
-
### License
|
|
50
|
+
### License
|
|
24
51
|
|
|
25
|
-
This library is available for use under the MIT License
|
|
52
|
+
This library is available for use under the [MIT License](./LICENSE).
|
|
26
53
|
|
|
27
|
-
|
|
54
|
+
For more information please contact our [support](mailto:support@foblex.com).
|
|
28
55
|
|
|
29
|
-
For more information and to purchase a source code license, please contact us at [Foblex](https://www.foblex.com/flow/home).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function castToEnum<T>(value: any, varname: string, enm: Record<string, T>): T;
|
package/domain/clear-selection/{clear-selection.handler.d.ts → clear-selection.execution.d.ts}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { IHandler } from '@foblex/core';
|
|
2
1
|
import { ClearSelectionRequest } from './clear-selection.request';
|
|
2
|
+
import { IExecution } from '../../infrastructure';
|
|
3
3
|
import { FDraggableDataContext } from '../../f-draggable';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class ClearSelectionExecution implements IExecution<ClearSelectionRequest, void> {
|
|
6
6
|
private fDraggableDataContext;
|
|
7
7
|
constructor(fDraggableDataContext: FDraggableDataContext);
|
|
8
8
|
handle(request: ClearSelectionRequest): void;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ClearSelectionExecution, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ClearSelectionExecution>;
|
|
11
11
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './clear-selection.
|
|
1
|
+
export * from './clear-selection.execution';
|
|
2
2
|
export * from './clear-selection.request';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { IHandler } from '@foblex/core';
|
|
2
1
|
import { CreateConnectionMarkersRequest } from './create-connection-markers-request';
|
|
2
|
+
import { IExecution } from '../../infrastructure';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class CreateConnectionMarkersExecution implements IExecution<CreateConnectionMarkersRequest, void> {
|
|
5
5
|
handle(request: CreateConnectionMarkersRequest): void;
|
|
6
6
|
private makeSafariCompatible;
|
|
7
7
|
private createMarkerElement;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CreateConnectionMarkersExecution, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CreateConnectionMarkersExecution>;
|
|
10
10
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './create-connection-markers.
|
|
1
|
+
export * from './create-connection-markers.execution';
|
|
2
2
|
export * from './create-connection-markers-request';
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { IHandler } from '@foblex/core';
|
|
2
1
|
import { ISelectableWithRect } from './i-selectable-with-rect';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { FFlowMediator, IExecution } from '../../infrastructure';
|
|
3
|
+
import { FComponentsStore } from '../../f-storage';
|
|
4
|
+
import { FDraggableDataContext } from '../../f-draggable';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class
|
|
6
|
+
export declare class GetCanBeSelectedItemsExecution implements IExecution<void, ISelectableWithRect[]> {
|
|
8
7
|
private fComponentsStore;
|
|
9
8
|
private fDraggableDataContext;
|
|
10
9
|
private fMediator;
|
|
@@ -15,6 +14,6 @@ export declare class GetCanBeSelectedItemsHandler implements IHandler<void, ISel
|
|
|
15
14
|
handle(): ISelectableWithRect[];
|
|
16
15
|
private getNodesWithRects;
|
|
17
16
|
private getConnectionsWithRects;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
19
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GetCanBeSelectedItemsExecution, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GetCanBeSelectedItemsExecution>;
|
|
20
19
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ILine } from '@foblex/core';
|
|
2
|
+
import { GetConnectionLineRequest } from './get-connection-line.request';
|
|
3
|
+
import { IExecution } from '../../infrastructure';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class GetConnectionLineExecution implements IExecution<GetConnectionLineRequest, ILine> {
|
|
6
|
+
private behaviorHandlers;
|
|
7
|
+
handle(payload: GetConnectionLineRequest): ILine;
|
|
8
|
+
private floatingBehavior;
|
|
9
|
+
private fixedCenterBehavior;
|
|
10
|
+
private fixedOutboundBehaviour;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GetConnectionLineExecution, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GetConnectionLineExecution>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EFConnectionBehavior } from '../../f-connection';
|
|
2
|
+
import { EFConnectableSide } from '../../f-connectors';
|
|
3
|
+
import { IConnectorShape } from '../intersections';
|
|
4
|
+
export declare class GetConnectionLineRequest {
|
|
5
|
+
outputRect: IConnectorShape;
|
|
6
|
+
inputRect: IConnectorShape;
|
|
7
|
+
behavior: EFConnectionBehavior | string;
|
|
8
|
+
outputSide: EFConnectableSide;
|
|
9
|
+
inputSide: EFConnectableSide;
|
|
10
|
+
constructor(outputRect: IConnectorShape, inputRect: IConnectorShape, behavior: EFConnectionBehavior | string, outputSide: EFConnectableSide, inputSide: EFConnectableSide);
|
|
11
|
+
}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import { IHandler, IRect } from '@foblex/core';
|
|
2
1
|
import { GetElementRectInFlowRequest } from './get-element-rect-in-flow-request';
|
|
2
|
+
import { IExecution } from '../../infrastructure';
|
|
3
3
|
import { FComponentsStore } from '../../f-storage';
|
|
4
|
+
import { IRoundedRect } from '../intersections';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class
|
|
6
|
+
export declare class GetElementRectInFlowExecution implements IExecution<GetElementRectInFlowRequest, IRoundedRect> {
|
|
6
7
|
private fComponentsStore;
|
|
7
8
|
private get transform();
|
|
8
9
|
private get flowHost();
|
|
9
10
|
constructor(fComponentsStore: FComponentsStore);
|
|
10
|
-
handle(request: GetElementRectInFlowRequest):
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
handle(request: GetElementRectInFlowRequest): IRoundedRect;
|
|
12
|
+
private transformElementPositionInFlow;
|
|
13
|
+
private transformElementSizeInFlow;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GetElementRectInFlowExecution, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GetElementRectInFlowExecution>;
|
|
13
16
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './get-element-rect-in-flow.
|
|
1
|
+
export * from './get-element-rect-in-flow.execution';
|
|
2
2
|
export * from './get-element-rect-in-flow-request';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IRect } from '@foblex/core';
|
|
2
1
|
import { EFConnectableSide } from '../../f-connectors';
|
|
2
|
+
import { IRoundedRect } from '../intersections';
|
|
3
3
|
export declare class GetInputRectInFlowResponse {
|
|
4
|
-
rect:
|
|
4
|
+
rect: IRoundedRect;
|
|
5
5
|
fConnectableSide: EFConnectableSide;
|
|
6
|
-
constructor(rect:
|
|
6
|
+
constructor(rect: IRoundedRect, fConnectableSide: EFConnectableSide);
|
|
7
7
|
}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FFlowMediator } from '../../f-mediator';
|
|
1
|
+
import { FFlowMediator, IExecution } from '../../infrastructure';
|
|
3
2
|
import { GetInputRectInFlowRequest } from './get-input-rect-in-flow-request';
|
|
4
3
|
import { FComponentsStore } from '../../f-storage';
|
|
5
4
|
import { GetInputRectInFlowResponse } from './get-input-rect-in-flow-response';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class
|
|
6
|
+
export declare class GetInputRectInFlowExecution implements IExecution<GetInputRectInFlowRequest, GetInputRectInFlowResponse> {
|
|
8
7
|
private fComponentsStore;
|
|
9
8
|
private fMediator;
|
|
10
9
|
constructor(fComponentsStore: FComponentsStore, fMediator: FFlowMediator);
|
|
11
10
|
handle(request: GetInputRectInFlowRequest): GetInputRectInFlowResponse;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GetInputRectInFlowExecution, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GetInputRectInFlowExecution>;
|
|
14
13
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IRect } from '@foblex/core';
|
|
2
|
+
import { GetNodesRectRequest } from './get-nodes-rect.request';
|
|
3
|
+
import { FComponentsStore } from '../../f-storage';
|
|
4
|
+
import { IExecution } from '../../infrastructure';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class GetNodesRectExecution implements IExecution<GetNodesRectRequest, IRect> {
|
|
7
|
+
private fComponentsStore;
|
|
8
|
+
constructor(fComponentsStore: FComponentsStore);
|
|
9
|
+
handle(request: GetNodesRectRequest): IRect;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GetNodesRectExecution, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GetNodesRectExecution>;
|
|
12
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './get-nodes-rect.
|
|
1
|
+
export * from './get-nodes-rect.execution';
|
|
2
2
|
export * from './get-nodes-rect.request';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IRect } from '@foblex/core';
|
|
2
1
|
import { EFConnectableSide } from '../../f-connectors';
|
|
2
|
+
import { IRoundedRect } from '../intersections';
|
|
3
3
|
export declare class GetOutputRectInFlowResponse {
|
|
4
|
-
rect:
|
|
4
|
+
rect: IRoundedRect;
|
|
5
5
|
fConnectableSide: EFConnectableSide;
|
|
6
|
-
constructor(rect:
|
|
6
|
+
constructor(rect: IRoundedRect, fConnectableSide: EFConnectableSide);
|
|
7
7
|
}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FFlowMediator } from '../../f-mediator';
|
|
1
|
+
import { FFlowMediator, IExecution } from '../../infrastructure';
|
|
3
2
|
import { GetOutputRectInFlowRequest } from './get-output-rect-in-flow-request';
|
|
4
3
|
import { FComponentsStore } from '../../f-storage';
|
|
5
4
|
import { GetOutputRectInFlowResponse } from './get-output-rect-in-flow-response';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class
|
|
6
|
+
export declare class GetOutputRectInFlowExecution implements IExecution<GetOutputRectInFlowRequest, GetOutputRectInFlowResponse> {
|
|
8
7
|
private fComponentsStore;
|
|
9
8
|
private fMediator;
|
|
10
9
|
constructor(fComponentsStore: FComponentsStore, fMediator: FFlowMediator);
|
|
11
10
|
handle(request: GetOutputRectInFlowRequest): GetOutputRectInFlowResponse;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GetOutputRectInFlowExecution, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GetOutputRectInFlowExecution>;
|
|
14
13
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IPoint } from '@foblex/core';
|
|
2
2
|
import { GetPositionInFlowRequest } from './get-position-in-flow-request';
|
|
3
3
|
import { FComponentsStore } from '../../f-storage';
|
|
4
|
+
import { IExecution } from '../../infrastructure';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class
|
|
6
|
+
export declare class GetPositionInFlowExecution implements IExecution<GetPositionInFlowRequest, IPoint> {
|
|
6
7
|
private fComponentsStore;
|
|
7
8
|
private get transform();
|
|
8
9
|
private get flowHost();
|
|
9
10
|
constructor(fComponentsStore: FComponentsStore);
|
|
10
11
|
handle(request: GetPositionInFlowRequest): IPoint;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GetPositionInFlowExecution, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GetPositionInFlowExecution>;
|
|
13
14
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './get-position-in-flow.
|
|
1
|
+
export * from './get-position-in-flow.execution';
|
|
2
2
|
export * from './get-position-in-flow-request';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { IHandler } from '@foblex/core';
|
|
2
1
|
import { GetSelectionRequest } from './get-selection.request';
|
|
2
|
+
import { IExecution } from '../../infrastructure';
|
|
3
3
|
import { FDraggableDataContext, FSelectionChangeEvent } from '../../f-draggable';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class GetSelectionExecution implements IExecution<GetSelectionRequest, FSelectionChangeEvent> {
|
|
6
6
|
private fDraggableDataContext;
|
|
7
7
|
constructor(fDraggableDataContext: FDraggableDataContext);
|
|
8
8
|
handle(): FSelectionChangeEvent;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GetSelectionExecution, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GetSelectionExecution>;
|
|
11
11
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './get-selection.
|
|
1
|
+
export * from './get-selection.execution';
|
|
2
2
|
export * from './get-selection.request';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getValueFromDataAttr<T>(element: HTMLElement, attr: string, cls: string): T;
|
package/domain/index.d.ts
CHANGED
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
export * from './clear-selection';
|
|
2
2
|
export * from './create-connection-markers';
|
|
3
|
-
export * from './get-
|
|
3
|
+
export * from './get-can-be-selected-items';
|
|
4
|
+
export * from './get-connection-line';
|
|
4
5
|
export * from './get-element-rect-in-flow';
|
|
5
6
|
export * from './get-input-rect-in-flow';
|
|
6
7
|
export * from './get-nodes-rect';
|
|
7
8
|
export * from './get-output-rect-in-flow';
|
|
8
9
|
export * from './get-position-in-flow';
|
|
9
10
|
export * from './get-selection';
|
|
11
|
+
export * from './is-connection-under-node';
|
|
10
12
|
export * from './redraw-connections';
|
|
11
13
|
export * from './select';
|
|
12
14
|
export * from './select-all';
|
|
15
|
+
export * from './select-and-update-node-layer';
|
|
16
|
+
export * from './intersections';
|
|
13
17
|
export * from './update-item-layer';
|
|
18
|
+
export * from './cast-to-enum';
|
|
14
19
|
export * from './get-connection.handler';
|
|
15
20
|
export * from './get-incoming-connections.handler';
|
|
16
21
|
export * from './get-outgoing-connections.handler';
|
|
22
|
+
export * from './get-value-from-data-attr';
|
|
23
|
+
export * from './is-element-with-class';
|
|
17
24
|
export * from './providers';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IConnectorShape } from './i-connector-shape';
|
|
2
|
+
import { Arc, Line } from '@foblex/core';
|
|
3
|
+
export declare class FConnectorShapeExtensions {
|
|
4
|
+
static getSegments(shape: IConnectorShape): (Arc | Line)[];
|
|
5
|
+
/**
|
|
6
|
+
* Parses the rounded rectangle into its constituent segments (arcs and lines).
|
|
7
|
+
* @param rect - The rounded rectangle to parse.
|
|
8
|
+
* @returns An array of arcs and lines representing the rectangle.
|
|
9
|
+
*/
|
|
10
|
+
private static parseRect;
|
|
11
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { IPoint } from '@foblex/core';
|
|
2
|
+
import { IConnectorShape } from './i-connector-shape';
|
|
3
|
+
/**
|
|
4
|
+
* The IntersectionFinder class is designed to find intersection points between
|
|
5
|
+
* line segments and various geometric shapes. Currently, it supports rectangles,
|
|
6
|
+
* circles, and ellipses. In the future, support for additional shapes will be added.
|
|
7
|
+
*/
|
|
8
|
+
export declare class IntersectionFinder {
|
|
9
|
+
/**
|
|
10
|
+
* Finds the guaranteed intersection points between a line segment and a rounded rectangle.
|
|
11
|
+
* @param from - Starting point of the line segment.
|
|
12
|
+
* @param to - Ending point of the line segment.
|
|
13
|
+
* @param shape - The shape to check for intersections.
|
|
14
|
+
* @returns An array of intersection points.
|
|
15
|
+
*/
|
|
16
|
+
static getIntersections(from: IPoint, to: IPoint, shape: IConnectorShape): IPoint[];
|
|
17
|
+
/**
|
|
18
|
+
* Finds the intersection points between an arc and a line segment.
|
|
19
|
+
* @param arc - The arc to check for intersections.
|
|
20
|
+
* @param from - Starting point of the line segment.
|
|
21
|
+
* @param to - Ending point of the line segment.
|
|
22
|
+
* @returns An array of intersection points.
|
|
23
|
+
*/
|
|
24
|
+
private static intersectArcWithLine;
|
|
25
|
+
/**
|
|
26
|
+
* Finds the intersection point between two line segments.
|
|
27
|
+
* @param p1 - Starting point of the first line segment.
|
|
28
|
+
* @param p2 - Ending point of the first line segment.
|
|
29
|
+
* @param p3 - Starting point of the second line segment.
|
|
30
|
+
* @param p4 - Ending point of the second line segment.
|
|
31
|
+
* @returns The intersection point or null if there is no intersection.
|
|
32
|
+
*/
|
|
33
|
+
private static intersectLineSegments;
|
|
34
|
+
/**
|
|
35
|
+
* Filters intersection points to retain only those within the given arc.
|
|
36
|
+
* @param points - The points to filter.
|
|
37
|
+
* @param arc - The arc to check against.
|
|
38
|
+
* @returns An array of points within the arc.
|
|
39
|
+
*/
|
|
40
|
+
private static filterPointsWithinArc;
|
|
41
|
+
/**
|
|
42
|
+
* Normalizes an angle to be within the range 0 to 2π.
|
|
43
|
+
* @param radians - The angle in radians.
|
|
44
|
+
* @returns The normalized angle.
|
|
45
|
+
*/
|
|
46
|
+
private static normalizeAngle;
|
|
47
|
+
/**
|
|
48
|
+
* Finds the intersection points between an ellipse and a line segment.
|
|
49
|
+
* @param center - Center of the ellipse.
|
|
50
|
+
* @param radiusX - X radius of the ellipse.
|
|
51
|
+
* @param radiusY - Y radius of the ellipse.
|
|
52
|
+
* @param pointA - Starting point of the line segment.
|
|
53
|
+
* @param pointB - Ending point of the line segment.
|
|
54
|
+
* @returns An array of intersection points.
|
|
55
|
+
*/
|
|
56
|
+
private static findEllipseLineIntersections;
|
|
57
|
+
/**
|
|
58
|
+
* Calculates the intersection points based on the discriminant.
|
|
59
|
+
* @param discriminant - The discriminant value.
|
|
60
|
+
* @param a - Coefficient 'a' in the quadratic equation.
|
|
61
|
+
* @param b - Coefficient 'b' in the quadratic equation.
|
|
62
|
+
* @param pointA - Starting point of the line segment.
|
|
63
|
+
* @param pointB - Ending point of the line segment.
|
|
64
|
+
* @returns An array of intersection points.
|
|
65
|
+
*/
|
|
66
|
+
private static calculateIntersectionPoints;
|
|
67
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IRoundedRect } from './i-rounded-rect';
|
|
2
|
+
import { IPoint, IRect } from '@foblex/core';
|
|
3
|
+
import { EFConnectorShape } from '../e-f-connector-shape';
|
|
4
|
+
export declare class RoundedRect implements IRoundedRect {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
radius1: number;
|
|
10
|
+
radius2: number;
|
|
11
|
+
radius3: number;
|
|
12
|
+
radius4: number;
|
|
13
|
+
readonly type: EFConnectorShape;
|
|
14
|
+
gravityCenter: IPoint;
|
|
15
|
+
constructor(x?: number, y?: number, width?: number, height?: number, radius1?: number, radius2?: number, radius3?: number, radius4?: number);
|
|
16
|
+
private calculateGravityCenter;
|
|
17
|
+
static fromRect(rect: IRect): RoundedRect;
|
|
18
|
+
static fromRoundedRect(rect: IRoundedRect): RoundedRect;
|
|
19
|
+
static fromElement(element: HTMLElement | SVGElement): RoundedRect;
|
|
20
|
+
private static setRadiusFromElement;
|
|
21
|
+
addPoint(point: IPoint): RoundedRect;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './is-connection-under-node.execution';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { FFlowMediator, IExecution } from '../../infrastructure';
|
|
2
|
+
import { IsConnectionUnderNodeRequest } from './is-connection-under-node.request';
|
|
3
|
+
import { FComponentsStore } from '../../f-storage';
|
|
4
|
+
import { FDraggableDataContext } from '../../f-draggable';
|
|
5
|
+
import { GetOutgoingConnectionsHandler } from '../get-outgoing-connections.handler';
|
|
6
|
+
import { GetIncomingConnectionsHandler } from '../get-incoming-connections.handler';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class
|
|
8
|
+
export declare class IsConnectionUnderNodeExecution implements IExecution<IsConnectionUnderNodeRequest, void> {
|
|
8
9
|
private fComponentsStore;
|
|
9
10
|
private fDraggableDataContext;
|
|
10
11
|
private fMediator;
|
|
@@ -18,6 +19,6 @@ export declare class IsConnectionUnderNodeHandler implements IHandler<void> {
|
|
|
18
19
|
private getOutputsForNode;
|
|
19
20
|
private getInputsForNode;
|
|
20
21
|
private findConnectionsUnderNode;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
22
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsConnectionUnderNodeExecution, never>;
|
|
23
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IsConnectionUnderNodeExecution>;
|
|
23
24
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isElementWithClass(element: HTMLElement | SVGElement, cls: string): boolean;
|
package/domain/providers.d.ts
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { GetIncomingConnectionsHandler } from './get-incoming-connections.handler';
|
|
2
2
|
import { GetOutgoingConnectionsHandler } from './get-outgoing-connections.handler';
|
|
3
3
|
import { GetConnectionHandler } from './get-connection.handler';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
|
|
4
|
+
import { GetConnectionLineExecution } from './get-connection-line';
|
|
5
|
+
import { RedrawConnectionsExecution } from './redraw-connections';
|
|
6
|
+
import { GetOutputRectInFlowExecution } from './get-output-rect-in-flow';
|
|
7
|
+
import { GetSelectionExecution } from './get-selection';
|
|
8
|
+
import { SelectAllExecution } from './select-all';
|
|
9
|
+
import { ClearSelectionExecution } from './clear-selection';
|
|
10
|
+
import { GetNodesRectExecution } from './get-nodes-rect';
|
|
11
|
+
import { GetElementRectInFlowExecution } from './get-element-rect-in-flow';
|
|
12
|
+
import { GetInputRectInFlowExecution } from './get-input-rect-in-flow';
|
|
13
|
+
import { SelectExecution } from './select';
|
|
14
|
+
import { UpdateItemLayerExecution } from './update-item-layer';
|
|
15
|
+
import { GetPositionInFlowExecution } from './get-position-in-flow';
|
|
16
|
+
import { CreateConnectionMarkersExecution } from './create-connection-markers';
|
|
17
|
+
import { GetCanBeSelectedItemsExecution } from './get-can-be-selected-items';
|
|
18
|
+
import { IsConnectionUnderNodeExecution } from './is-connection-under-node';
|
|
19
|
+
import { SelectAndUpdateNodeLayerExecution } from './select-and-update-node-layer';
|
|
20
|
+
export declare const COMMON_PROVIDERS: (typeof ClearSelectionExecution | typeof CreateConnectionMarkersExecution | typeof GetElementRectInFlowExecution | typeof GetCanBeSelectedItemsExecution | typeof GetConnectionLineExecution | typeof GetInputRectInFlowExecution | typeof GetNodesRectExecution | typeof GetOutputRectInFlowExecution | typeof GetPositionInFlowExecution | typeof GetSelectionExecution | typeof GetOutgoingConnectionsHandler | typeof GetIncomingConnectionsHandler | typeof IsConnectionUnderNodeExecution | typeof RedrawConnectionsExecution | typeof SelectExecution | typeof SelectAllExecution | typeof UpdateItemLayerExecution | typeof SelectAndUpdateNodeLayerExecution | typeof GetConnectionHandler)[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './redraw-connections.
|
|
1
|
+
export * from './redraw-connections.execution';
|
|
2
2
|
export * from './redraw-connections-request';
|