@foblex/flow 12.6.5 → 12.6.7
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/bundles/foblex-flow.umd.js +2068 -1809
- package/bundles/foblex-flow.umd.js.map +1 -1
- package/domain/create-connection-markers/create-connection-markers.execution.d.ts +5 -1
- package/domain/f-background/add-pattern-to-background/add-pattern-to-background.execution.d.ts +14 -0
- package/domain/f-background/add-pattern-to-background/add-pattern-to-background.request.d.ts +5 -0
- package/domain/f-background/add-pattern-to-background/index.d.ts +2 -0
- package/domain/f-background/index.d.ts +2 -0
- package/domain/f-background/providers.d.ts +2 -0
- package/domain/{center-group-or-node → f-canvas/center-group-or-node}/center-group-or-node.execution.d.ts +1 -1
- package/domain/f-canvas/fit-to-flow/fit-to-flow-request.d.ts +6 -0
- package/domain/f-canvas/fit-to-flow/fit-to-flow.execution.d.ts +16 -0
- package/domain/f-canvas/fit-to-flow/index.d.ts +2 -0
- package/domain/f-canvas/index.d.ts +8 -0
- package/domain/f-canvas/input-canvas-position/index.d.ts +2 -0
- package/domain/f-canvas/input-canvas-position/input-canvas-position-request.d.ts +6 -0
- package/domain/f-canvas/input-canvas-position/input-canvas-position.execution.d.ts +11 -0
- package/domain/f-canvas/input-canvas-scale/index.d.ts +2 -0
- package/domain/f-canvas/input-canvas-scale/input-canvas-scale-request.d.ts +6 -0
- package/domain/f-canvas/input-canvas-scale/input-canvas-scale.execution.d.ts +11 -0
- package/domain/f-canvas/providers.d.ts +8 -0
- package/domain/f-canvas/reset-scale/index.d.ts +2 -0
- package/domain/f-canvas/reset-scale/reset-scale-request.d.ts +2 -0
- package/domain/f-canvas/reset-scale/reset-scale.execution.d.ts +12 -0
- package/domain/f-canvas/reset-scale-and-center/index.d.ts +2 -0
- package/domain/f-canvas/reset-scale-and-center/reset-scale-and-center-request.d.ts +4 -0
- package/domain/f-canvas/reset-scale-and-center/reset-scale-and-center.execution.d.ts +16 -0
- package/domain/f-canvas/update-scale/index.d.ts +2 -0
- package/domain/f-canvas/update-scale/update-scale-request.d.ts +6 -0
- package/domain/f-canvas/update-scale/update-scale.execution.d.ts +12 -0
- package/domain/f-connection/find-closest-input-using-snap-threshold/find-closest-input-using-snap-threshold.execution.d.ts +11 -0
- package/domain/f-connection/find-closest-input-using-snap-threshold/find-closest-input-using-snap-threshold.request.d.ts +8 -0
- package/domain/f-connection/find-closest-input-using-snap-threshold/index.d.ts +2 -0
- package/domain/f-connection/get-all-can-be-connected-input-positions/get-all-can-be-connected-input-positions.execution.d.ts +21 -0
- package/domain/f-connection/get-all-can-be-connected-input-positions/get-all-can-be-connected-input-positions.request.d.ts +4 -0
- package/domain/f-connection/get-all-can-be-connected-input-positions/index.d.ts +2 -0
- package/domain/f-connection/get-connector-with-rect/get-connector-with-rect-request.d.ts +5 -0
- package/domain/f-connection/get-connector-with-rect/get-connector-with-rect.execution.d.ts +11 -0
- package/domain/f-connection/get-connector-with-rect/i-connector-with-rect.d.ts +6 -0
- package/domain/f-connection/get-connector-with-rect/index.d.ts +3 -0
- package/domain/f-connection/index.d.ts +4 -0
- package/domain/f-connection/providers.d.ts +4 -0
- package/domain/{clear-selection → f-selection/clear-selection}/clear-selection.execution.d.ts +1 -1
- package/domain/{get-selection → f-selection/get-selection}/get-selection.execution.d.ts +1 -1
- package/domain/f-selection/index.d.ts +6 -0
- package/domain/f-selection/providers.d.ts +6 -0
- package/domain/{select → f-selection/select}/select.execution.d.ts +2 -2
- package/domain/{select-all → f-selection/select-all}/select-all.execution.d.ts +2 -2
- package/domain/{select-and-update-node-layer → f-selection/select-and-update-node-layer}/select-and-update-node-layer.execution.d.ts +2 -2
- package/domain/f-selection/select-and-update-node-layer/select-and-update-node-layer.request.d.ts +5 -0
- package/domain/index.d.ts +4 -8
- package/domain/providers.d.ts +1 -9
- package/esm2015/domain/create-connection-markers/create-connection-markers.execution.js +10 -5
- package/esm2015/domain/f-background/add-pattern-to-background/add-pattern-to-background.execution.js +48 -0
- package/esm2015/domain/f-background/add-pattern-to-background/add-pattern-to-background.request.js +6 -0
- package/esm2015/domain/f-background/add-pattern-to-background/index.js +3 -0
- package/esm2015/domain/f-background/index.js +3 -0
- package/esm2015/domain/f-background/providers.js +5 -0
- package/esm2015/domain/f-canvas/center-group-or-node/center-group-or-node-request.js +7 -0
- package/esm2015/domain/f-canvas/center-group-or-node/center-group-or-node.execution.js +49 -0
- package/esm2015/domain/f-canvas/center-group-or-node/index.js +3 -0
- package/esm2015/domain/f-canvas/fit-to-flow/fit-to-flow-request.js +7 -0
- package/esm2015/domain/f-canvas/fit-to-flow/fit-to-flow.execution.js +56 -0
- package/esm2015/domain/f-canvas/fit-to-flow/index.js +3 -0
- package/esm2015/domain/f-canvas/index.js +9 -0
- package/esm2015/domain/f-canvas/input-canvas-position/index.js +3 -0
- package/esm2015/domain/f-canvas/input-canvas-position/input-canvas-position-request.js +7 -0
- package/esm2015/domain/f-canvas/input-canvas-position/input-canvas-position.execution.js +34 -0
- package/esm2015/domain/f-canvas/input-canvas-scale/index.js +3 -0
- package/esm2015/domain/f-canvas/input-canvas-scale/input-canvas-scale-request.js +7 -0
- package/esm2015/domain/f-canvas/input-canvas-scale/input-canvas-scale.execution.js +29 -0
- package/esm2015/domain/f-canvas/providers.js +17 -0
- package/esm2015/domain/f-canvas/reset-scale/index.js +3 -0
- package/esm2015/domain/f-canvas/reset-scale/reset-scale-request.js +3 -0
- package/esm2015/domain/f-canvas/reset-scale/reset-scale.execution.js +29 -0
- package/esm2015/domain/f-canvas/reset-scale-and-center/index.js +3 -0
- package/esm2015/domain/f-canvas/reset-scale-and-center/reset-scale-and-center-request.js +6 -0
- package/esm2015/domain/f-canvas/reset-scale-and-center/reset-scale-and-center.execution.js +51 -0
- package/esm2015/domain/f-canvas/update-scale/index.js +3 -0
- package/esm2015/domain/f-canvas/update-scale/update-scale-request.js +7 -0
- package/esm2015/domain/f-canvas/update-scale/update-scale.execution.js +34 -0
- package/esm2015/domain/f-connection/find-closest-input-using-snap-threshold/find-closest-input-using-snap-threshold.execution.js +39 -0
- package/esm2015/domain/f-connection/find-closest-input-using-snap-threshold/find-closest-input-using-snap-threshold.request.js +8 -0
- package/esm2015/domain/f-connection/find-closest-input-using-snap-threshold/index.js +3 -0
- package/esm2015/domain/f-connection/get-all-can-be-connected-input-positions/get-all-can-be-connected-input-positions.execution.js +55 -0
- package/esm2015/domain/f-connection/get-all-can-be-connected-input-positions/get-all-can-be-connected-input-positions.request.js +6 -0
- package/esm2015/domain/f-connection/get-all-can-be-connected-input-positions/index.js +3 -0
- package/esm2015/domain/f-connection/get-connector-with-rect/get-connector-with-rect-request.js +6 -0
- package/esm2015/domain/f-connection/get-connector-with-rect/get-connector-with-rect.execution.js +28 -0
- package/esm2015/domain/f-connection/get-connector-with-rect/i-connector-with-rect.js +2 -0
- package/esm2015/domain/f-connection/get-connector-with-rect/index.js +4 -0
- package/esm2015/domain/f-connection/index.js +5 -0
- package/esm2015/domain/f-connection/providers.js +9 -0
- package/esm2015/domain/f-selection/clear-selection/clear-selection.execution.js +26 -0
- package/esm2015/domain/f-selection/clear-selection/clear-selection.request.js +3 -0
- package/esm2015/domain/f-selection/clear-selection/index.js +3 -0
- package/esm2015/domain/f-selection/get-selection/get-selection.execution.js +35 -0
- package/esm2015/domain/f-selection/get-selection/get-selection.request.js +3 -0
- package/esm2015/domain/f-selection/get-selection/index.js +3 -0
- package/esm2015/domain/f-selection/index.js +7 -0
- package/esm2015/domain/f-selection/providers.js +13 -0
- package/esm2015/domain/f-selection/select/index.js +3 -0
- package/esm2015/domain/f-selection/select/select.execution.js +44 -0
- package/esm2015/domain/f-selection/select/select.request.js +7 -0
- package/esm2015/domain/f-selection/select-all/index.js +3 -0
- package/esm2015/domain/f-selection/select-all/select-all.execution.js +38 -0
- package/esm2015/domain/f-selection/select-all/select-all.request.js +3 -0
- package/esm2015/domain/f-selection/select-and-update-node-layer/index.js +3 -0
- package/esm2015/domain/f-selection/select-and-update-node-layer/select-and-update-node-layer.execution.js +35 -0
- package/esm2015/domain/f-selection/select-and-update-node-layer/select-and-update-node-layer.request.js +6 -0
- package/esm2015/domain/index.js +5 -9
- package/esm2015/domain/providers.js +9 -17
- package/esm2015/domain/redraw-connections/redraw-connections.execution.js +4 -1
- package/esm2015/f-backgroud/domain/i-f-background-pattern.js +1 -1
- package/esm2015/f-backgroud/f-background.component.js +10 -28
- package/esm2015/f-canvas/f-canvas-base.js +12 -15
- package/esm2015/f-canvas/f-canvas.component.js +20 -44
- package/esm2015/f-connection/common/f-connection-base.js +1 -1
- package/esm2015/f-connection/f-connection/f-connection.component.js +1 -6
- package/esm2015/f-connection/f-connection-for-create/f-connection-for-create.component.js +1 -6
- package/esm2015/f-connection/f-snap-connection/f-snap-connection.component.js +13 -9
- package/esm2015/f-connection/providers.js +4 -2
- package/esm2015/f-connectors/f-node-input/index.js +1 -2
- package/esm2015/f-draggable/canvas/canvas.drag-handler.js +2 -2
- package/esm2015/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.execution.js +5 -5
- package/esm2015/f-draggable/connections/create-connection/create-connection-finalize/index.js +1 -2
- package/esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/create-connection-drag-handler.execution.js +4 -5
- package/esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/index.js +1 -2
- package/esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/index.js +1 -2
- package/esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/index.js +1 -2
- package/esm2015/f-draggable/connections/create-connection/create-connection-preparation/index.js +1 -2
- package/esm2015/f-draggable/connections/create-connection/create-connection.drag-handler.js +50 -20
- package/esm2015/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/index.js +1 -2
- package/esm2015/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.execution.js +20 -9
- package/esm2015/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.validator.js +4 -4
- package/esm2015/f-draggable/connections/get-input-under-pointer/index.js +1 -2
- package/esm2015/f-draggable/connections/providers.js +20 -10
- package/esm2015/f-draggable/connections/reassign-connection/f-reassign-connection.event.js +3 -3
- package/esm2015/f-draggable/connections/reassign-connection/reassign-connection-finalize/index.js +1 -2
- package/esm2015/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.execution.js +4 -4
- package/esm2015/f-draggable/connections/reassign-connection/reassign-connection-preparation/index.js +1 -2
- package/esm2015/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.execution.js +2 -2
- package/esm2015/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.js +50 -23
- package/esm2015/f-draggable/node/connection-base-drag-handler.js +17 -19
- package/esm2015/f-draggable/node/connection-source.drag-handler.js +5 -4
- package/esm2015/f-draggable/node/connection-target.drag-handler.js +5 -4
- package/esm2015/f-draggable/node/connection.drag-handler.js +5 -4
- package/esm2015/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-input-connection-handlers-to-array/put-input-connection-handlers-to-array.execution.js +3 -3
- package/esm2015/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-output-connection-handlers-to-array/put-output-connection-handlers-to-array.execution.js +3 -3
- package/esm2015/f-draggable/node/node-move-preparation/node-move-preparation.execution.js +2 -2
- package/esm2015/f-draggable/providers.js +4 -4
- package/esm2015/f-flow/f-flow.component.js +9 -8
- package/esm2015/f-flow.module.js +18 -17
- package/esm2015/f-minimap/domain/f-minimap.drag-handler.js +2 -2
- package/esm2015/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.execution.js +2 -2
- package/esm2015/f-storage/f-components-store.js +1 -1
- package/esm2015/f-zoom/f-zoom-base.js +4 -4
- package/esm2015/mixins/index.js +1 -6
- package/f-backgroud/domain/i-f-background-pattern.d.ts +1 -0
- package/f-backgroud/f-background.component.d.ts +5 -4
- package/f-canvas/f-canvas-base.d.ts +8 -12
- package/f-canvas/f-canvas.component.d.ts +3 -1
- package/f-connection/common/f-connection-base.d.ts +0 -2
- package/f-connection/f-connection/f-connection.component.d.ts +0 -2
- package/f-connection/f-connection-for-create/f-connection-for-create.component.d.ts +0 -2
- package/f-connection/f-snap-connection/f-snap-connection.component.d.ts +2 -3
- package/f-connection/providers.d.ts +2 -1
- package/f-connectors/f-node-input/index.d.ts +0 -1
- package/f-draggable/connections/create-connection/create-connection-finalize/index.d.ts +0 -1
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/index.d.ts +0 -1
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/index.d.ts +0 -1
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/index.d.ts +0 -1
- package/f-draggable/connections/create-connection/create-connection-preparation/index.d.ts +0 -1
- package/f-draggable/connections/create-connection/create-connection.drag-handler.d.ts +14 -5
- package/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/index.d.ts +0 -1
- package/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.execution.d.ts +7 -4
- package/f-draggable/connections/get-input-under-pointer/index.d.ts +0 -1
- package/f-draggable/connections/providers.d.ts +4 -1
- package/f-draggable/connections/reassign-connection/f-reassign-connection.event.d.ts +6 -6
- package/f-draggable/connections/reassign-connection/reassign-connection-finalize/index.d.ts +0 -1
- package/f-draggable/connections/reassign-connection/reassign-connection-preparation/index.d.ts +0 -1
- package/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.d.ts +16 -7
- package/f-draggable/node/connection-base-drag-handler.d.ts +9 -7
- package/f-draggable/node/connection-source.drag-handler.d.ts +2 -1
- package/f-draggable/node/connection-target.drag-handler.d.ts +2 -1
- package/f-draggable/node/connection.drag-handler.d.ts +2 -1
- package/f-draggable/providers.d.ts +1 -1
- package/f-flow.module.d.ts +19 -18
- package/f-minimap/domain/providers.d.ts +1 -1
- package/f-storage/f-components-store.d.ts +1 -0
- package/fesm2015/foblex-flow.js +1700 -1480
- package/fesm2015/foblex-flow.js.map +1 -1
- package/mixins/index.d.ts +0 -5
- package/package.json +1 -1
- package/domain/get-input-rect-in-flow/get-input-rect-in-flow-request.d.ts +0 -4
- package/domain/get-input-rect-in-flow/get-input-rect-in-flow-response.d.ts +0 -7
- package/domain/get-input-rect-in-flow/get-input-rect-in-flow.execution.d.ts +0 -13
- package/domain/get-input-rect-in-flow/index.d.ts +0 -3
- package/domain/get-output-rect-in-flow/get-output-rect-in-flow-request.d.ts +0 -4
- package/domain/get-output-rect-in-flow/get-output-rect-in-flow-response.d.ts +0 -7
- package/domain/get-output-rect-in-flow/get-output-rect-in-flow.execution.d.ts +0 -13
- package/domain/get-output-rect-in-flow/index.d.ts +0 -3
- package/domain/select-and-update-node-layer/select-and-update-node-layer.request.d.ts +0 -5
- package/esm2015/domain/center-group-or-node/center-group-or-node-request.js +0 -7
- package/esm2015/domain/center-group-or-node/center-group-or-node.execution.js +0 -51
- package/esm2015/domain/center-group-or-node/index.js +0 -3
- package/esm2015/domain/clear-selection/clear-selection.execution.js +0 -26
- package/esm2015/domain/clear-selection/clear-selection.request.js +0 -3
- package/esm2015/domain/clear-selection/index.js +0 -3
- package/esm2015/domain/get-input-rect-in-flow/get-input-rect-in-flow-request.js +0 -6
- package/esm2015/domain/get-input-rect-in-flow/get-input-rect-in-flow-response.js +0 -7
- package/esm2015/domain/get-input-rect-in-flow/get-input-rect-in-flow.execution.js +0 -33
- package/esm2015/domain/get-input-rect-in-flow/index.js +0 -4
- package/esm2015/domain/get-output-rect-in-flow/get-output-rect-in-flow-request.js +0 -6
- package/esm2015/domain/get-output-rect-in-flow/get-output-rect-in-flow-response.js +0 -7
- package/esm2015/domain/get-output-rect-in-flow/get-output-rect-in-flow.execution.js +0 -37
- package/esm2015/domain/get-output-rect-in-flow/index.js +0 -4
- package/esm2015/domain/get-selection/get-selection.execution.js +0 -35
- package/esm2015/domain/get-selection/get-selection.request.js +0 -3
- package/esm2015/domain/get-selection/index.js +0 -3
- package/esm2015/domain/select/index.js +0 -3
- package/esm2015/domain/select/select.execution.js +0 -44
- package/esm2015/domain/select/select.request.js +0 -7
- package/esm2015/domain/select-all/index.js +0 -3
- package/esm2015/domain/select-all/select-all.execution.js +0 -38
- package/esm2015/domain/select-all/select-all.request.js +0 -3
- package/esm2015/domain/select-and-update-node-layer/index.js +0 -3
- package/esm2015/domain/select-and-update-node-layer/select-and-update-node-layer.execution.js +0 -35
- package/esm2015/domain/select-and-update-node-layer/select-and-update-node-layer.request.js +0 -6
- package/esm2015/f-connectors/f-node-input/is-node-input.js +0 -4
- package/esm2015/f-draggable/connections/create-connection/create-connection-finalize/providers.js +0 -7
- package/esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/providers.js +0 -5
- package/esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/providers.js +0 -5
- package/esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/providers.js +0 -7
- package/esm2015/f-draggable/connections/create-connection/create-connection-preparation/providers.js +0 -13
- package/esm2015/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/providers.js +0 -7
- package/esm2015/f-draggable/connections/get-input-under-pointer/providers.js +0 -7
- package/esm2015/f-draggable/connections/reassign-connection/reassign-connection-finalize/providers.js +0 -7
- package/esm2015/f-draggable/connections/reassign-connection/reassign-connection-preparation/providers.js +0 -7
- package/esm2015/mixins/change-position.js +0 -15
- package/esm2015/mixins/change-zoom/change-zoom.js +0 -25
- package/esm2015/mixins/change-zoom/i-can-change-zoom.js +0 -2
- package/esm2015/mixins/change-zoom/index.js +0 -3
- package/esm2015/mixins/fit-to-parent/fit-to-parent.js +0 -27
- package/esm2015/mixins/fit-to-parent/i-can-fit-to-parent.js +0 -2
- package/esm2015/mixins/fit-to-parent/index.js +0 -3
- package/esm2015/mixins/i-transformable.js +0 -2
- package/esm2015/mixins/one-to-one-centering/i-can-one-to-one-centering.js +0 -2
- package/esm2015/mixins/one-to-one-centering/index.js +0 -3
- package/esm2015/mixins/one-to-one-centering/one-to-one-centering.js +0 -24
- package/f-connectors/f-node-input/is-node-input.d.ts +0 -1
- package/f-draggable/connections/create-connection/create-connection-finalize/providers.d.ts +0 -3
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/providers.d.ts +0 -2
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/providers.d.ts +0 -2
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/providers.d.ts +0 -3
- package/f-draggable/connections/create-connection/create-connection-preparation/providers.d.ts +0 -3
- package/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/providers.d.ts +0 -3
- package/f-draggable/connections/get-input-under-pointer/providers.d.ts +0 -3
- package/f-draggable/connections/reassign-connection/reassign-connection-finalize/providers.d.ts +0 -3
- package/f-draggable/connections/reassign-connection/reassign-connection-preparation/providers.d.ts +0 -3
- package/mixins/change-position.d.ts +0 -10
- package/mixins/change-zoom/change-zoom.d.ts +0 -6
- package/mixins/change-zoom/i-can-change-zoom.d.ts +0 -6
- package/mixins/change-zoom/index.d.ts +0 -2
- package/mixins/fit-to-parent/fit-to-parent.d.ts +0 -6
- package/mixins/fit-to-parent/i-can-fit-to-parent.d.ts +0 -4
- package/mixins/fit-to-parent/index.d.ts +0 -2
- package/mixins/i-transformable.d.ts +0 -4
- package/mixins/one-to-one-centering/i-can-one-to-one-centering.d.ts +0 -4
- package/mixins/one-to-one-centering/index.d.ts +0 -2
- package/mixins/one-to-one-centering/one-to-one-centering.d.ts +0 -6
- /package/domain/{center-group-or-node → f-canvas/center-group-or-node}/center-group-or-node-request.d.ts +0 -0
- /package/domain/{center-group-or-node → f-canvas/center-group-or-node}/index.d.ts +0 -0
- /package/domain/{clear-selection → f-selection/clear-selection}/clear-selection.request.d.ts +0 -0
- /package/domain/{clear-selection → f-selection/clear-selection}/index.d.ts +0 -0
- /package/domain/{get-selection → f-selection/get-selection}/get-selection.request.d.ts +0 -0
- /package/domain/{get-selection → f-selection/get-selection}/index.d.ts +0 -0
- /package/domain/{select → f-selection/select}/index.d.ts +0 -0
- /package/domain/{select → f-selection/select}/select.request.d.ts +0 -0
- /package/domain/{select-all → f-selection/select-all}/index.d.ts +0 -0
- /package/domain/{select-all → f-selection/select-all}/select-all.request.d.ts +0 -0
- /package/domain/{select-and-update-node-layer → f-selection/select-and-update-node-layer}/index.d.ts +0 -0
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { CreateConnectionMarkersRequest } from './create-connection-markers-request';
|
|
2
|
+
import { FConnectionBase, FMarkerBase } from '../../f-connection';
|
|
2
3
|
import { IExecution } from '@foblex/mediator';
|
|
3
4
|
import { BrowserService } from '@foblex/platform';
|
|
5
|
+
import { FComponentsStore } from '../../f-storage';
|
|
4
6
|
import * as i0 from "@angular/core";
|
|
5
7
|
export declare class CreateConnectionMarkersExecution implements IExecution<CreateConnectionMarkersRequest, void> {
|
|
6
8
|
private fBrowser;
|
|
7
|
-
|
|
9
|
+
private fComponentsStore;
|
|
10
|
+
constructor(fBrowser: BrowserService, fComponentsStore: FComponentsStore);
|
|
8
11
|
handle(request: CreateConnectionMarkersRequest): void;
|
|
12
|
+
getMarkers(fConnection: FConnectionBase): FMarkerBase[];
|
|
9
13
|
private makeSafariCompatible;
|
|
10
14
|
private createMarkerElement;
|
|
11
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<CreateConnectionMarkersExecution, never>;
|
package/domain/f-background/add-pattern-to-background/add-pattern-to-background.execution.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AddPatternToBackgroundRequest } from './add-pattern-to-background.request';
|
|
2
|
+
import { IExecution } from '@foblex/mediator';
|
|
3
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
4
|
+
import { BrowserService } from '@foblex/platform';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class AddPatternToBackgroundExecution implements IExecution<AddPatternToBackgroundRequest, void> {
|
|
7
|
+
private fComponentsStore;
|
|
8
|
+
private fBrowser;
|
|
9
|
+
private get fBackground();
|
|
10
|
+
constructor(fComponentsStore: FComponentsStore, fBrowser: BrowserService);
|
|
11
|
+
handle(request: AddPatternToBackgroundRequest): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddPatternToBackgroundExecution, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AddPatternToBackgroundExecution>;
|
|
14
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CenterGroupOrNodeRequest } from './center-group-or-node-request';
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
3
|
import { IPoint, IRect } from '@foblex/2d';
|
|
4
|
-
import { FComponentsStore } from '
|
|
4
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class CenterGroupOrNodeExecution implements IExecution<CenterGroupOrNodeRequest, void> {
|
|
7
7
|
private fComponentsStore;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FitToFlowRequest } from './fit-to-flow-request';
|
|
2
|
+
import { FMediator, IExecution } from '@foblex/mediator';
|
|
3
|
+
import { IPoint, IRect } from '@foblex/2d';
|
|
4
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FitToFlowExecution implements IExecution<FitToFlowRequest, void> {
|
|
7
|
+
private fComponentsStore;
|
|
8
|
+
private fMediator;
|
|
9
|
+
private get transform();
|
|
10
|
+
constructor(fComponentsStore: FComponentsStore, fMediator: FMediator);
|
|
11
|
+
handle(request: FitToFlowRequest): void;
|
|
12
|
+
fitToParent(rect: IRect, parentRect: IRect, points: IPoint[], toCenter: IPoint): void;
|
|
13
|
+
private getZeroPositionWithoutScale;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FitToFlowExecution, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FitToFlowExecution>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './center-group-or-node';
|
|
2
|
+
export * from './fit-to-flow';
|
|
3
|
+
export * from './input-canvas-position';
|
|
4
|
+
export * from './input-canvas-scale';
|
|
5
|
+
export * from './reset-scale';
|
|
6
|
+
export * from './reset-scale-and-center';
|
|
7
|
+
export * from './update-scale';
|
|
8
|
+
export * from './providers';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InputCanvasPositionRequest } from './input-canvas-position-request';
|
|
2
|
+
import { IExecution } from '@foblex/mediator';
|
|
3
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class InputCanvasPositionExecution implements IExecution<InputCanvasPositionRequest, void> {
|
|
6
|
+
private fComponentsStore;
|
|
7
|
+
constructor(fComponentsStore: FComponentsStore);
|
|
8
|
+
handle(request: InputCanvasPositionRequest): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputCanvasPositionExecution, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InputCanvasPositionExecution>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InputCanvasScaleRequest } from './input-canvas-scale-request';
|
|
2
|
+
import { IExecution } from '@foblex/mediator';
|
|
3
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class InputCanvasScaleExecution implements IExecution<InputCanvasScaleRequest, void> {
|
|
6
|
+
private fComponentsStore;
|
|
7
|
+
constructor(fComponentsStore: FComponentsStore);
|
|
8
|
+
handle(request: InputCanvasScaleRequest): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputCanvasScaleExecution, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InputCanvasScaleExecution>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CenterGroupOrNodeExecution } from './center-group-or-node';
|
|
2
|
+
import { FitToFlowExecution } from './fit-to-flow';
|
|
3
|
+
import { ResetScaleAndCenterExecution } from './reset-scale-and-center';
|
|
4
|
+
import { ResetScaleExecution } from './reset-scale';
|
|
5
|
+
import { UpdateScaleExecution } from './update-scale';
|
|
6
|
+
import { InputCanvasPositionExecution } from './input-canvas-position';
|
|
7
|
+
import { InputCanvasScaleExecution } from './input-canvas-scale';
|
|
8
|
+
export declare const F_CANVAS_FEATURES: (typeof CenterGroupOrNodeExecution | typeof FitToFlowExecution | typeof InputCanvasPositionExecution | typeof InputCanvasScaleExecution | typeof ResetScaleExecution | typeof ResetScaleAndCenterExecution | typeof UpdateScaleExecution)[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ResetScaleRequest } from './reset-scale-request';
|
|
2
|
+
import { IExecution } from '@foblex/mediator';
|
|
3
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ResetScaleExecution implements IExecution<ResetScaleRequest, void> {
|
|
6
|
+
private fComponentsStore;
|
|
7
|
+
private get transform();
|
|
8
|
+
constructor(fComponentsStore: FComponentsStore);
|
|
9
|
+
handle(request: ResetScaleRequest): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResetScaleExecution, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ResetScaleExecution>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ResetScaleAndCenterRequest } from './reset-scale-and-center-request';
|
|
2
|
+
import { FMediator, IExecution } from '@foblex/mediator';
|
|
3
|
+
import { IPoint, IRect } from '@foblex/2d';
|
|
4
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ResetScaleAndCenterExecution implements IExecution<ResetScaleAndCenterRequest, void> {
|
|
7
|
+
private fComponentsStore;
|
|
8
|
+
private fMediator;
|
|
9
|
+
private get transform();
|
|
10
|
+
constructor(fComponentsStore: FComponentsStore, fMediator: FMediator);
|
|
11
|
+
handle(request: ResetScaleAndCenterRequest): void;
|
|
12
|
+
oneToOneCentering(rect: IRect, parentRect: IRect, points: IPoint[]): void;
|
|
13
|
+
private getZeroPositionWithoutScale;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResetScaleAndCenterExecution, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ResetScaleAndCenterExecution>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { UpdateScaleRequest } from './update-scale-request';
|
|
2
|
+
import { IExecution } from '@foblex/mediator';
|
|
3
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class UpdateScaleExecution implements IExecution<UpdateScaleRequest, void> {
|
|
6
|
+
private fComponentsStore;
|
|
7
|
+
private get transform();
|
|
8
|
+
constructor(fComponentsStore: FComponentsStore);
|
|
9
|
+
handle(request: UpdateScaleRequest): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UpdateScaleExecution, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UpdateScaleExecution>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FindClosestInputUsingSnapThresholdRequest } from './find-closest-input-using-snap-threshold.request';
|
|
2
|
+
import { IExecution } from '@foblex/mediator';
|
|
3
|
+
import { IConnectorWithRect } from '../get-connector-with-rect';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FindClosestInputUsingSnapThresholdExecution implements IExecution<FindClosestInputUsingSnapThresholdRequest, IConnectorWithRect | undefined> {
|
|
6
|
+
handle(payload: FindClosestInputUsingSnapThresholdRequest): IConnectorWithRect | undefined;
|
|
7
|
+
private distanceToRectangle;
|
|
8
|
+
private clamp;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FindClosestInputUsingSnapThresholdExecution, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FindClosestInputUsingSnapThresholdExecution>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IPoint } from '@foblex/2d';
|
|
2
|
+
import { IConnectorWithRect } from '../get-connector-with-rect';
|
|
3
|
+
export declare class FindClosestInputUsingSnapThresholdRequest {
|
|
4
|
+
position: IPoint;
|
|
5
|
+
canBeConnectedInputs: IConnectorWithRect[];
|
|
6
|
+
snapThreshold: number;
|
|
7
|
+
constructor(position: IPoint, canBeConnectedInputs: IConnectorWithRect[], snapThreshold: number);
|
|
8
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { GetAllCanBeConnectedInputPositionsRequest } from './get-all-can-be-connected-input-positions.request';
|
|
2
|
+
import { FMediator, IExecution } from '@foblex/mediator';
|
|
3
|
+
import { IConnectorWithRect } from '../get-connector-with-rect';
|
|
4
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class GetAllCanBeConnectedInputPositionsExecution implements IExecution<GetAllCanBeConnectedInputPositionsRequest, IConnectorWithRect[]> {
|
|
7
|
+
private fComponentsStore;
|
|
8
|
+
private fMediator;
|
|
9
|
+
private get fNodes();
|
|
10
|
+
private get fInputs();
|
|
11
|
+
constructor(fComponentsStore: FComponentsStore, fMediator: FMediator);
|
|
12
|
+
handle(payload: GetAllCanBeConnectedInputPositionsRequest): IConnectorWithRect[];
|
|
13
|
+
private getOutput;
|
|
14
|
+
private findOutputById;
|
|
15
|
+
private findOutletById;
|
|
16
|
+
private getCanBeConnectedInputs;
|
|
17
|
+
private filterSelfConnectable;
|
|
18
|
+
private getNodeOfConnector;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GetAllCanBeConnectedInputPositionsExecution, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GetAllCanBeConnectedInputPositionsExecution>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FMediator, IExecution } from '@foblex/mediator';
|
|
2
|
+
import { GetConnectorWithRectRequest } from './get-connector-with-rect-request';
|
|
3
|
+
import { IConnectorWithRect } from './i-connector-with-rect';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class GetConnectorWithRectExecution implements IExecution<GetConnectorWithRectRequest, IConnectorWithRect> {
|
|
6
|
+
private fMediator;
|
|
7
|
+
constructor(fMediator: FMediator);
|
|
8
|
+
handle(request: GetConnectorWithRectRequest): IConnectorWithRect;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GetConnectorWithRectExecution, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GetConnectorWithRectExecution>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FindClosestInputUsingSnapThresholdExecution } from './find-closest-input-using-snap-threshold';
|
|
2
|
+
import { GetAllCanBeConnectedInputPositionsExecution } from './get-all-can-be-connected-input-positions';
|
|
3
|
+
import { GetConnectorWithRectExecution } from './get-connector-with-rect';
|
|
4
|
+
export declare const F_CONNECTION_FEATURES: (typeof FindClosestInputUsingSnapThresholdExecution | typeof GetAllCanBeConnectedInputPositionsExecution | typeof GetConnectorWithRectExecution)[];
|
package/domain/{clear-selection → f-selection/clear-selection}/clear-selection.execution.d.ts
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClearSelectionRequest } from './clear-selection.request';
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
|
-
import { FDraggableDataContext } from '
|
|
3
|
+
import { FDraggableDataContext } from '../../../f-draggable';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ClearSelectionExecution implements IExecution<ClearSelectionRequest, void> {
|
|
6
6
|
private fDraggableDataContext;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GetSelectionRequest } from './get-selection.request';
|
|
2
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
|
-
import { FDraggableDataContext, FSelectionChangeEvent } from '
|
|
3
|
+
import { FDraggableDataContext, FSelectionChangeEvent } from '../../../f-draggable';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class GetSelectionExecution implements IExecution<GetSelectionRequest, FSelectionChangeEvent> {
|
|
6
6
|
private fDraggableDataContext;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ClearSelectionExecution } from './clear-selection';
|
|
2
|
+
import { GetSelectionExecution } from './get-selection';
|
|
3
|
+
import { SelectExecution } from './select';
|
|
4
|
+
import { SelectAllExecution } from './select-all';
|
|
5
|
+
import { SelectAndUpdateNodeLayerExecution } from './select-and-update-node-layer/select-and-update-node-layer.execution';
|
|
6
|
+
export declare const F_SELECTION_FEATURES: (typeof ClearSelectionExecution | typeof GetSelectionExecution | typeof SelectExecution | typeof SelectAllExecution | typeof SelectAndUpdateNodeLayerExecution)[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SelectRequest } from './select.request';
|
|
2
|
-
import { FDraggableDataContext } from '../../f-draggable';
|
|
3
|
-
import { FComponentsStore } from '../../f-storage';
|
|
4
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
4
|
+
import { FDraggableDataContext } from '../../../f-draggable';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class SelectExecution implements IExecution<SelectRequest, void> {
|
|
7
7
|
private fDataContext;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SelectAllRequest } from './select-all.request';
|
|
2
|
-
import { FDraggableDataContext } from '../../f-draggable';
|
|
3
|
-
import { FComponentsStore } from '../../f-storage';
|
|
4
2
|
import { IExecution } from '@foblex/mediator';
|
|
3
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
4
|
+
import { FDraggableDataContext } from '../../../f-draggable';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class SelectAllExecution implements IExecution<SelectAllRequest, void> {
|
|
7
7
|
private fDataContext;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IHandler } from '@foblex/mediator';
|
|
2
|
-
import { SelectAndUpdateNodeLayerRequest } from './select-and-update-node-layer.request';
|
|
3
2
|
import { FMediator } from '@foblex/mediator';
|
|
4
|
-
import {
|
|
3
|
+
import { SelectAndUpdateNodeLayerRequest } from './select-and-update-node-layer.request';
|
|
4
|
+
import { FDraggableDataContext } from '../../../f-draggable';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class SelectAndUpdateNodeLayerExecution implements IHandler<SelectAndUpdateNodeLayerRequest, void> {
|
|
7
7
|
private fDraggableDataContext;
|
package/domain/index.d.ts
CHANGED
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
export * from './center-group-or-node';
|
|
2
|
-
export * from './clear-selection';
|
|
3
1
|
export * from './create-connection-markers';
|
|
4
2
|
export * from './create-rounded-rect-from-element';
|
|
5
3
|
export * from './emit-transform-changes';
|
|
4
|
+
export * from './f-background';
|
|
5
|
+
export * from './f-canvas';
|
|
6
|
+
export * from './f-connection';
|
|
7
|
+
export * from './f-selection';
|
|
6
8
|
export * from './get-can-be-selected-items';
|
|
7
9
|
export * from './get-deep-children-nodes-and-groups';
|
|
8
10
|
export * from './get-connection-line';
|
|
9
11
|
export * from './get-element-rect-in-flow';
|
|
10
12
|
export * from './get-flow-state';
|
|
11
13
|
export * from './get-scaled-node-rects-with-flow-position';
|
|
12
|
-
export * from './get-input-rect-in-flow';
|
|
13
14
|
export * from './get-nodes-rect';
|
|
14
|
-
export * from './get-output-rect-in-flow';
|
|
15
15
|
export * from './get-position-in-flow';
|
|
16
|
-
export * from './get-selection';
|
|
17
16
|
export * from './is-connection-under-node';
|
|
18
17
|
export * from './redraw-connections';
|
|
19
|
-
export * from './select';
|
|
20
|
-
export * from './select-all';
|
|
21
|
-
export * from './select-and-update-node-layer';
|
|
22
18
|
export * from './show-connections-after-calculations';
|
|
23
19
|
export * from './sort-item-layers';
|
|
24
20
|
export * from './subscribe-on-transform-changes';
|
package/domain/providers.d.ts
CHANGED
|
@@ -1,25 +1,17 @@
|
|
|
1
1
|
import { GetConnectionLineExecution } from './get-connection-line';
|
|
2
2
|
import { RedrawConnectionsExecution } from './redraw-connections';
|
|
3
|
-
import { GetOutputRectInFlowExecution } from './get-output-rect-in-flow';
|
|
4
|
-
import { GetSelectionExecution } from './get-selection';
|
|
5
|
-
import { SelectAllExecution } from './select-all';
|
|
6
|
-
import { ClearSelectionExecution } from './clear-selection';
|
|
7
3
|
import { GetNodesRectExecution } from './get-nodes-rect';
|
|
8
4
|
import { GetElementRectInFlowExecution } from './get-element-rect-in-flow';
|
|
9
|
-
import { GetInputRectInFlowExecution } from './get-input-rect-in-flow';
|
|
10
|
-
import { SelectExecution } from './select';
|
|
11
5
|
import { MoveFrontElementsBeforeTargetElementExecution, UpdateItemAndChildrenLayersExecution } from './update-item-and-children-layers';
|
|
12
6
|
import { GetPositionInFlowExecution } from './get-position-in-flow';
|
|
13
7
|
import { CreateConnectionMarkersExecution } from './create-connection-markers';
|
|
14
8
|
import { GetCanBeSelectedItemsExecution } from './get-can-be-selected-items';
|
|
15
9
|
import { IsConnectionUnderNodeExecution } from './is-connection-under-node';
|
|
16
|
-
import { SelectAndUpdateNodeLayerExecution } from './select-and-update-node-layer';
|
|
17
10
|
import { GetScaledNodeRectsWithFlowPositionExecution } from './get-scaled-node-rects-with-flow-position';
|
|
18
11
|
import { EmitTransformChangesExecution } from './emit-transform-changes';
|
|
19
12
|
import { SubscribeOnTransformChangesExecution } from './subscribe-on-transform-changes';
|
|
20
13
|
import { SortItemLayersExecution, SortItemsByParentExecution, SortNodeLayersExecution } from './sort-item-layers';
|
|
21
14
|
import { GetDeepChildrenNodesAndGroupsExecution } from './get-deep-children-nodes-and-groups';
|
|
22
15
|
import { CreateRoundedRectFromElementExecution } from './create-rounded-rect-from-element';
|
|
23
|
-
import { CenterGroupOrNodeExecution } from './center-group-or-node';
|
|
24
16
|
import { ShowConnectionsAfterCalculationsExecution } from './show-connections-after-calculations';
|
|
25
|
-
export declare const COMMON_PROVIDERS: (typeof CenterGroupOrNodeExecution | typeof
|
|
17
|
+
export declare const COMMON_PROVIDERS: (typeof import("./f-canvas").CenterGroupOrNodeExecution | typeof import("./f-canvas").FitToFlowExecution | typeof import("./f-canvas").InputCanvasPositionExecution | typeof import("./f-canvas").InputCanvasScaleExecution | typeof import("./f-canvas").ResetScaleExecution | typeof import("./f-canvas").ResetScaleAndCenterExecution | typeof import("./f-canvas").UpdateScaleExecution | typeof import("./f-connection").FindClosestInputUsingSnapThresholdExecution | typeof import("./f-connection").GetAllCanBeConnectedInputPositionsExecution | typeof import("./f-connection").GetConnectorWithRectExecution | typeof import("./f-background").AddPatternToBackgroundExecution | typeof CreateConnectionMarkersExecution | typeof CreateRoundedRectFromElementExecution | typeof EmitTransformChangesExecution | typeof import("./f-selection").ClearSelectionExecution | typeof import("./f-selection").GetSelectionExecution | typeof import("./f-selection").SelectExecution | typeof import("./f-selection").SelectAllExecution | typeof import("./f-selection").SelectAndUpdateNodeLayerExecution | typeof GetCanBeSelectedItemsExecution | typeof GetDeepChildrenNodesAndGroupsExecution | typeof GetConnectionLineExecution | typeof GetElementRectInFlowExecution | typeof import("./get-flow-state").GetFlowStateExecution | typeof import("./get-flow-state").GetFlowStateNodesExecution | typeof import("./get-flow-state").GetFlowStateConnectionsExecution | typeof GetScaledNodeRectsWithFlowPositionExecution | typeof GetNodesRectExecution | typeof GetPositionInFlowExecution | typeof IsConnectionUnderNodeExecution | typeof RedrawConnectionsExecution | typeof ShowConnectionsAfterCalculationsExecution | typeof SortItemLayersExecution | typeof SortItemsByParentExecution | typeof SortNodeLayersExecution | typeof SubscribeOnTransformChangesExecution | typeof UpdateItemAndChildrenLayersExecution | typeof MoveFrontElementsBeforeTargetElementExecution)[];
|
|
@@ -5,14 +5,16 @@ import { FExecutionRegister } from '@foblex/mediator';
|
|
|
5
5
|
import { normalizeDomElementId } from '@foblex/utils';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
import * as i1 from "@foblex/platform";
|
|
8
|
+
import * as i2 from "../../f-storage";
|
|
8
9
|
let CreateConnectionMarkersExecution = class CreateConnectionMarkersExecution {
|
|
9
|
-
constructor(fBrowser) {
|
|
10
|
+
constructor(fBrowser, fComponentsStore) {
|
|
10
11
|
this.fBrowser = fBrowser;
|
|
12
|
+
this.fComponentsStore = fComponentsStore;
|
|
11
13
|
}
|
|
12
14
|
handle(request) {
|
|
13
15
|
const element = createSVGElement('defs', this.fBrowser);
|
|
14
16
|
const fConnection = request.fConnection;
|
|
15
|
-
fConnection.
|
|
17
|
+
this.getMarkers(fConnection).forEach((marker) => {
|
|
16
18
|
const markerElement = this.createMarkerElement(marker, fConnection.fId);
|
|
17
19
|
const clone = marker.hostElement.cloneNode(true);
|
|
18
20
|
clone.setAttribute('height', `${marker.height}`);
|
|
@@ -25,6 +27,9 @@ let CreateConnectionMarkersExecution = class CreateConnectionMarkersExecution {
|
|
|
25
27
|
fConnection.fDefs.nativeElement.innerHTML = element.innerHTML;
|
|
26
28
|
this.makeSafariCompatible(fConnection);
|
|
27
29
|
}
|
|
30
|
+
getMarkers(fConnection) {
|
|
31
|
+
return this.fComponentsStore.fMarkers.filter((x) => fConnection.hostElement.contains(x.hostElement));
|
|
32
|
+
}
|
|
28
33
|
// Safari does not support markers on path elements if markers are defined after the path element
|
|
29
34
|
makeSafariCompatible(fConnection) {
|
|
30
35
|
fConnection.fPath.hostElement.replaceWith(fConnection.fPath.hostElement);
|
|
@@ -41,7 +46,7 @@ let CreateConnectionMarkersExecution = class CreateConnectionMarkersExecution {
|
|
|
41
46
|
return markerElement;
|
|
42
47
|
}
|
|
43
48
|
};
|
|
44
|
-
CreateConnectionMarkersExecution.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CreateConnectionMarkersExecution, deps: [{ token: i1.BrowserService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
49
|
+
CreateConnectionMarkersExecution.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CreateConnectionMarkersExecution, deps: [{ token: i1.BrowserService }, { token: i2.FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
45
50
|
CreateConnectionMarkersExecution.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CreateConnectionMarkersExecution });
|
|
46
51
|
CreateConnectionMarkersExecution = __decorate([
|
|
47
52
|
FExecutionRegister(CreateConnectionMarkersRequest)
|
|
@@ -49,8 +54,8 @@ CreateConnectionMarkersExecution = __decorate([
|
|
|
49
54
|
export { CreateConnectionMarkersExecution };
|
|
50
55
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: CreateConnectionMarkersExecution, decorators: [{
|
|
51
56
|
type: Injectable
|
|
52
|
-
}], ctorParameters: function () { return [{ type: i1.BrowserService }]; } });
|
|
57
|
+
}], ctorParameters: function () { return [{ type: i1.BrowserService }, { type: i2.FComponentsStore }]; } });
|
|
53
58
|
function createSVGElement(tag, fBrowser) {
|
|
54
59
|
return fBrowser.document.createElementNS('http://www.w3.org/2000/svg', tag);
|
|
55
60
|
}
|
|
56
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
61
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRlLWNvbm5lY3Rpb24tbWFya2Vycy5leGVjdXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RvbWFpbi9jcmVhdGUtY29ubmVjdGlvbi1tYXJrZXJzL2Ny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