@foblex/flow 12.6.4 → 12.6.6
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 +2589 -2297
- package/bundles/foblex-flow.umd.js.map +1 -1
- package/domain/create-connection-markers/create-connection-markers.execution.d.ts +5 -1
- 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/get-flow-state/providers.d.ts +1 -1
- package/domain/index.d.ts +1 -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-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 +2 -9
- package/esm2015/domain/providers.js +7 -17
- package/esm2015/domain/redraw-connections/redraw-connections.execution.js +4 -1
- package/esm2015/f-backgroud/domain/add-pattern-to-background/add-pattern-to-background.execution.js +48 -0
- package/esm2015/f-backgroud/domain/add-pattern-to-background/add-pattern-to-background.request.js +6 -0
- package/esm2015/f-backgroud/domain/add-pattern-to-background/index.js +3 -0
- package/esm2015/f-backgroud/domain/i-f-background-pattern.js +1 -1
- package/esm2015/f-backgroud/domain/index.js +3 -1
- package/esm2015/f-backgroud/domain/providers.js +5 -0
- package/esm2015/f-backgroud/f-background.component.js +10 -28
- package/esm2015/f-canvas/domain/center-group-or-node/center-group-or-node-request.js +7 -0
- package/esm2015/f-canvas/domain/center-group-or-node/center-group-or-node.execution.js +49 -0
- package/esm2015/f-canvas/domain/center-group-or-node/index.js +3 -0
- package/esm2015/f-canvas/domain/fit-to-flow/fit-to-flow-request.js +7 -0
- package/esm2015/f-canvas/domain/fit-to-flow/fit-to-flow.execution.js +56 -0
- package/esm2015/f-canvas/domain/fit-to-flow/index.js +3 -0
- package/esm2015/f-canvas/domain/index.js +9 -1
- package/esm2015/f-canvas/domain/input-canvas-position/index.js +3 -0
- package/esm2015/f-canvas/domain/input-canvas-position/input-canvas-position-request.js +7 -0
- package/esm2015/f-canvas/domain/input-canvas-position/input-canvas-position.execution.js +34 -0
- package/esm2015/f-canvas/domain/input-canvas-scale/index.js +3 -0
- package/esm2015/f-canvas/domain/input-canvas-scale/input-canvas-scale-request.js +7 -0
- package/esm2015/f-canvas/domain/input-canvas-scale/input-canvas-scale.execution.js +29 -0
- package/esm2015/f-canvas/domain/providers.js +17 -0
- package/esm2015/f-canvas/domain/reset-scale/index.js +3 -0
- package/esm2015/f-canvas/domain/reset-scale/reset-scale-request.js +3 -0
- package/esm2015/f-canvas/domain/reset-scale/reset-scale.execution.js +29 -0
- package/esm2015/f-canvas/domain/reset-scale-and-center/index.js +3 -0
- package/esm2015/f-canvas/domain/reset-scale-and-center/reset-scale-and-center-request.js +6 -0
- package/esm2015/f-canvas/domain/reset-scale-and-center/reset-scale-and-center.execution.js +51 -0
- package/esm2015/f-canvas/domain/update-scale/index.js +3 -0
- package/esm2015/f-canvas/domain/update-scale/update-scale-request.js +7 -0
- package/esm2015/f-canvas/domain/update-scale/update-scale.execution.js +34 -0
- package/esm2015/f-canvas/f-canvas-base.js +12 -15
- package/esm2015/f-canvas/f-canvas.component.js +21 -44
- package/esm2015/f-connection/common/f-connection-base.js +1 -1
- package/esm2015/f-connection/f-connection/f-connection.component.js +2 -7
- 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/common/find-closest-input-using-snap-threshold/find-closest-input-using-snap-threshold.execution.js +39 -0
- package/esm2015/f-draggable/connections/common/find-closest-input-using-snap-threshold/find-closest-input-using-snap-threshold.request.js +8 -0
- package/esm2015/f-draggable/connections/common/find-closest-input-using-snap-threshold/index.js +3 -0
- package/esm2015/f-draggable/connections/common/get-all-can-be-connected-input-positions/get-all-can-be-connected-input-positions.execution.js +55 -0
- package/esm2015/f-draggable/connections/common/get-all-can-be-connected-input-positions/get-all-can-be-connected-input-positions.request.js +6 -0
- package/esm2015/f-draggable/connections/common/get-all-can-be-connected-input-positions/index.js +3 -0
- package/esm2015/f-draggable/connections/common/get-connector-with-rect/get-connector-with-rect-request.js +6 -0
- package/esm2015/f-draggable/connections/common/get-connector-with-rect/get-connector-with-rect.execution.js +28 -0
- package/esm2015/f-draggable/connections/common/get-connector-with-rect/i-connector-with-rect.js +2 -0
- package/esm2015/f-draggable/connections/common/get-connector-with-rect/index.js +4 -0
- package/esm2015/f-draggable/connections/common/get-input-under-pointer/get-input-under-pointer.execution.js +85 -0
- package/esm2015/f-draggable/connections/common/get-input-under-pointer/get-input-under-pointer.request.js +7 -0
- package/esm2015/f-draggable/connections/common/get-input-under-pointer/get-input-under-pointer.validator.js +35 -0
- package/esm2015/f-draggable/connections/common/get-input-under-pointer/index.js +4 -0
- package/esm2015/f-draggable/connections/common/index.js +6 -0
- package/esm2015/f-draggable/connections/common/providers.js +12 -0
- 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-preparation/create-connection-drag-handler/create-connection-drag-handler.execution.js +4 -5
- package/esm2015/f-draggable/connections/create-connection/create-connection.drag-handler.js +51 -20
- package/esm2015/f-draggable/connections/index.js +2 -2
- package/esm2015/f-draggable/connections/providers.js +6 -4
- package/esm2015/f-draggable/connections/reassign-connection/f-reassign-connection.event.js +3 -3
- 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/reassign-connection-preparation.execution.js +2 -2
- package/esm2015/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.js +51 -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 +2 -2
- package/esm2015/f-flow/f-flow.component.js +8 -6
- 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/add-pattern-to-background/add-pattern-to-background.execution.d.ts +14 -0
- package/f-backgroud/domain/add-pattern-to-background/add-pattern-to-background.request.d.ts +5 -0
- package/f-backgroud/domain/add-pattern-to-background/index.d.ts +2 -0
- package/f-backgroud/domain/i-f-background-pattern.d.ts +1 -0
- package/f-backgroud/domain/index.d.ts +2 -0
- package/f-backgroud/domain/providers.d.ts +2 -0
- package/f-backgroud/f-background.component.d.ts +5 -4
- package/{domain → f-canvas/domain}/center-group-or-node/center-group-or-node.execution.d.ts +1 -1
- package/f-canvas/domain/fit-to-flow/fit-to-flow-request.d.ts +6 -0
- package/f-canvas/domain/fit-to-flow/fit-to-flow.execution.d.ts +16 -0
- package/f-canvas/domain/fit-to-flow/index.d.ts +2 -0
- package/f-canvas/domain/index.d.ts +8 -0
- package/f-canvas/domain/input-canvas-position/index.d.ts +2 -0
- package/f-canvas/domain/input-canvas-position/input-canvas-position-request.d.ts +6 -0
- package/f-canvas/domain/input-canvas-position/input-canvas-position.execution.d.ts +11 -0
- package/f-canvas/domain/input-canvas-scale/index.d.ts +2 -0
- package/f-canvas/domain/input-canvas-scale/input-canvas-scale-request.d.ts +6 -0
- package/f-canvas/domain/input-canvas-scale/input-canvas-scale.execution.d.ts +11 -0
- package/f-canvas/domain/providers.d.ts +8 -0
- package/f-canvas/domain/reset-scale/index.d.ts +2 -0
- package/f-canvas/domain/reset-scale/reset-scale-request.d.ts +2 -0
- package/f-canvas/domain/reset-scale/reset-scale.execution.d.ts +12 -0
- package/f-canvas/domain/reset-scale-and-center/index.d.ts +2 -0
- package/f-canvas/domain/reset-scale-and-center/reset-scale-and-center-request.d.ts +4 -0
- package/f-canvas/domain/reset-scale-and-center/reset-scale-and-center.execution.d.ts +16 -0
- package/f-canvas/domain/update-scale/index.d.ts +2 -0
- package/f-canvas/domain/update-scale/update-scale-request.d.ts +6 -0
- package/f-canvas/domain/update-scale/update-scale.execution.d.ts +12 -0
- 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/common/find-closest-input-using-snap-threshold/find-closest-input-using-snap-threshold.execution.d.ts +11 -0
- package/f-draggable/connections/common/find-closest-input-using-snap-threshold/find-closest-input-using-snap-threshold.request.d.ts +8 -0
- package/f-draggable/connections/common/find-closest-input-using-snap-threshold/index.d.ts +2 -0
- package/f-draggable/connections/common/get-all-can-be-connected-input-positions/get-all-can-be-connected-input-positions.execution.d.ts +21 -0
- package/f-draggable/connections/common/get-all-can-be-connected-input-positions/get-all-can-be-connected-input-positions.request.d.ts +4 -0
- package/f-draggable/connections/common/get-all-can-be-connected-input-positions/index.d.ts +2 -0
- package/f-draggable/connections/common/get-connector-with-rect/get-connector-with-rect-request.d.ts +5 -0
- package/f-draggable/connections/common/get-connector-with-rect/get-connector-with-rect.execution.d.ts +11 -0
- package/f-draggable/connections/common/get-connector-with-rect/i-connector-with-rect.d.ts +6 -0
- package/f-draggable/connections/common/get-connector-with-rect/index.d.ts +3 -0
- package/f-draggable/connections/{get-input-under-pointer → common/get-input-under-pointer}/get-input-under-pointer.execution.d.ts +7 -4
- package/f-draggable/connections/{get-input-under-pointer → common/get-input-under-pointer}/get-input-under-pointer.request.d.ts +2 -2
- package/f-draggable/connections/{get-input-under-pointer → common/get-input-under-pointer}/get-input-under-pointer.validator.d.ts +1 -1
- package/f-draggable/connections/{get-input-under-pointer → common/get-input-under-pointer}/index.d.ts +0 -1
- package/f-draggable/connections/common/index.d.ts +5 -0
- package/f-draggable/connections/common/providers.d.ts +5 -0
- package/f-draggable/connections/create-connection/create-connection.drag-handler.d.ts +14 -5
- package/f-draggable/connections/index.d.ts +1 -1
- package/f-draggable/connections/providers.d.ts +1 -1
- package/f-draggable/connections/reassign-connection/f-reassign-connection.event.d.ts +6 -6
- 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-node/providers.d.ts +1 -1
- package/f-storage/f-components-store.d.ts +1 -0
- package/fesm2015/foblex-flow.js +1514 -1260
- 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/get-input-under-pointer/get-input-under-pointer.execution.js +0 -74
- package/esm2015/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.request.js +0 -7
- package/esm2015/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.validator.js +0 -35
- package/esm2015/f-draggable/connections/get-input-under-pointer/index.js +0 -5
- package/esm2015/f-draggable/connections/get-input-under-pointer/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/get-input-under-pointer/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/{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
- /package/{domain → f-canvas/domain}/center-group-or-node/center-group-or-node-request.d.ts +0 -0
- /package/{domain → f-canvas/domain}/center-group-or-node/index.d.ts +0 -0
|
@@ -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
|
+
}
|
|
@@ -1,29 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ITransformModel } from '@foblex/2d';
|
|
1
|
+
import { IPoint } from '@foblex/2d';
|
|
3
2
|
import { ElementRef, EventEmitter, InjectionToken } from '@angular/core';
|
|
4
3
|
import { FCanvasChangeEvent } from './domain';
|
|
5
4
|
import { FNodeBase } from '../f-node';
|
|
6
5
|
import { IHasHostElement } from '../i-has-host-element';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
7
|
export declare const F_CANVAS: InjectionToken<FCanvasBase>;
|
|
9
|
-
declare
|
|
10
|
-
new (transform: ITransformModel): {
|
|
11
|
-
transform: ITransformModel;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export declare abstract class FCanvasBase extends MIXIN_BASE implements IHasHostElement, ICanChangePosition, ICanFitToParent, ICanOneToOneCentering, ICanChangeZoom {
|
|
8
|
+
export declare abstract class FCanvasBase implements IHasHostElement {
|
|
15
9
|
abstract fCanvasChange: EventEmitter<FCanvasChangeEvent>;
|
|
16
10
|
abstract fNodes: FNodeBase[];
|
|
17
11
|
abstract hostElement: HTMLElement;
|
|
18
12
|
abstract fGroupsContainer: ElementRef<HTMLElement>;
|
|
19
13
|
abstract fNodesContainer: ElementRef<HTMLElement>;
|
|
20
14
|
abstract fConnectionsContainer: ElementRef<HTMLElement>;
|
|
21
|
-
|
|
15
|
+
transform: import("@foblex/2d").ITransformModel;
|
|
22
16
|
abstract redraw(): void;
|
|
23
17
|
abstract redrawWithAnimation(): void;
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
getPosition(): IPoint;
|
|
19
|
+
setPosition(position: IPoint): void;
|
|
20
|
+
abstract setZoom(scale: number, toPosition: IPoint): void;
|
|
21
|
+
abstract resetZoom(): void;
|
|
22
|
+
emitCanvasChangeEvent(): void;
|
|
26
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<FCanvasBase, never>;
|
|
27
24
|
static ɵdir: i0.ɵɵDirectiveDeclaration<FCanvasBase, never, never, {}, {}, never>;
|
|
28
25
|
}
|
|
29
|
-
export {};
|
|
@@ -24,7 +24,9 @@ export declare class FCanvasComponent extends FCanvasBase implements OnInit {
|
|
|
24
24
|
redrawWithAnimation(): void;
|
|
25
25
|
centerGroupOrNode(id: string, animated?: boolean): void;
|
|
26
26
|
fitToScreen(toCenter?: IPoint, animated?: boolean): void;
|
|
27
|
-
|
|
27
|
+
resetScaleAndCenter(animated?: boolean): void;
|
|
28
|
+
setZoom(scale: number, toPosition?: IPoint): void;
|
|
29
|
+
resetZoom(): void;
|
|
28
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<FCanvasComponent, never>;
|
|
29
31
|
static ɵcmp: i0.ɵɵComponentDeclaration<FCanvasComponent, "f-canvas", ["fComponent"], { "position": "position"; "scale": "scale"; }, { "fCanvasChange": "fCanvasChange"; }, never, ["[fGroup]", "f-snap-connection", "f-connection", "f-connection-for-create", "[fNode]"]>;
|
|
30
32
|
}
|
|
@@ -12,7 +12,6 @@ import { FConnectionDragHandleComponent } from './f-drag-handle';
|
|
|
12
12
|
import { FConnectionSelectionComponent } from './f-selection';
|
|
13
13
|
import { IConnectionText } from './f-connection-text';
|
|
14
14
|
import { IHasStateChanges } from '../../i-has-state-changes';
|
|
15
|
-
import { FMarkerBase } from '../f-marker';
|
|
16
15
|
import { EFConnectableSide } from '../../f-connectors';
|
|
17
16
|
import { FConnectionFactory } from '../f-connection-builder';
|
|
18
17
|
import { IHasHostElement } from '../../i-has-host-element';
|
|
@@ -41,7 +40,6 @@ export declare abstract class FConnectionBase extends MIXIN_BASE implements IHas
|
|
|
41
40
|
abstract fBehavior: EFConnectionBehavior;
|
|
42
41
|
abstract fType: EFConnectionType;
|
|
43
42
|
abstract fDefs: ElementRef<SVGDefsElement>;
|
|
44
|
-
abstract fMarkers: FMarkerBase[];
|
|
45
43
|
abstract fPath: IConnectionPath;
|
|
46
44
|
abstract fGradient: IConnectionGradient;
|
|
47
45
|
abstract fDragHandle: FConnectionDragHandleComponent;
|
|
@@ -3,7 +3,6 @@ import { FConnectionDragHandleComponent, FConnectionSelectionComponent, IConnect
|
|
|
3
3
|
import { EFConnectionBehavior } from '../common';
|
|
4
4
|
import { EFConnectionType } from '../common';
|
|
5
5
|
import { FComponentsStore } from '../../f-storage';
|
|
6
|
-
import { FMarkerBase } from '../f-marker';
|
|
7
6
|
import { FConnectionCenterDirective } from '../f-connection-center';
|
|
8
7
|
import { FConnectionFactory } from '../f-connection-builder';
|
|
9
8
|
import { FConnectionBase } from '../common/f-connection-base';
|
|
@@ -41,7 +40,6 @@ export declare class FConnectionComponent extends FConnectionBase implements OnI
|
|
|
41
40
|
fDraggingDisabled: boolean;
|
|
42
41
|
fSelectionDisabled: boolean;
|
|
43
42
|
fDefs: ElementRef<SVGDefsElement>;
|
|
44
|
-
get fMarkers(): FMarkerBase[];
|
|
45
43
|
fPath: IConnectionPath;
|
|
46
44
|
fGradient: IConnectionGradient;
|
|
47
45
|
fDragHandle: FConnectionDragHandleComponent;
|
|
@@ -2,7 +2,6 @@ import { AfterViewInit, ElementRef, OnDestroy, OnInit, QueryList } from "@angula
|
|
|
2
2
|
import { FConnectionDragHandleComponent, FConnectionSelectionComponent, IConnectionGradient, IConnectionPath, IConnectionText } from '../common';
|
|
3
3
|
import { EFConnectionBehavior } from '../common';
|
|
4
4
|
import { EFConnectionType } from '../common';
|
|
5
|
-
import { FMarkerBase } from '../f-marker';
|
|
6
5
|
import { FConnectionCenterDirective } from '../f-connection-center';
|
|
7
6
|
import { FConnectionFactory } from '../f-connection-builder';
|
|
8
7
|
import { FComponentsStore } from '../../f-storage';
|
|
@@ -35,7 +34,6 @@ export declare class FConnectionForCreateComponent extends FConnectionBase imple
|
|
|
35
34
|
fDraggingDisabled: boolean;
|
|
36
35
|
fSelectionDisabled: boolean;
|
|
37
36
|
fDefs: ElementRef<SVGDefsElement>;
|
|
38
|
-
get fMarkers(): FMarkerBase[];
|
|
39
37
|
fPath: IConnectionPath;
|
|
40
38
|
fGradient: IConnectionGradient;
|
|
41
39
|
fDragHandle: FConnectionDragHandleComponent;
|
|
@@ -2,7 +2,6 @@ import { AfterViewInit, ElementRef, OnDestroy, OnInit, QueryList } from "@angula
|
|
|
2
2
|
import { FConnectionDragHandleComponent, FConnectionSelectionComponent, IConnectionGradient, IConnectionPath, IConnectionText } from '../common';
|
|
3
3
|
import { EFConnectionBehavior } from '../common';
|
|
4
4
|
import { EFConnectionType } from '../common';
|
|
5
|
-
import { FMarkerBase } from '../f-marker';
|
|
6
5
|
import { FConnectionCenterDirective } from '../f-connection-center';
|
|
7
6
|
import { FConnectionFactory } from '../f-connection-builder';
|
|
8
7
|
import { FComponentsStore } from '../../f-storage';
|
|
@@ -18,6 +17,7 @@ export declare class FSnapConnectionComponent extends FConnectionBase implements
|
|
|
18
17
|
private _fEndColor;
|
|
19
18
|
set fEndColor(value: string);
|
|
20
19
|
get fEndColor(): string;
|
|
20
|
+
fSnapThreshold: number;
|
|
21
21
|
fOutputId: string;
|
|
22
22
|
fInputId: string;
|
|
23
23
|
private _fRadius;
|
|
@@ -35,7 +35,6 @@ export declare class FSnapConnectionComponent extends FConnectionBase implements
|
|
|
35
35
|
fDraggingDisabled: boolean;
|
|
36
36
|
fSelectionDisabled: boolean;
|
|
37
37
|
fDefs: ElementRef<SVGDefsElement>;
|
|
38
|
-
get fMarkers(): FMarkerBase[];
|
|
39
38
|
fPath: IConnectionPath;
|
|
40
39
|
fGradient: IConnectionGradient;
|
|
41
40
|
fDragHandle: FConnectionDragHandleComponent;
|
|
@@ -49,5 +48,5 @@ export declare class FSnapConnectionComponent extends FConnectionBase implements
|
|
|
49
48
|
ngAfterViewInit(): void;
|
|
50
49
|
ngOnDestroy(): void;
|
|
51
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<FSnapConnectionComponent, never>;
|
|
52
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FSnapConnectionComponent, "f-snap-connection", never, { "fStartColor": "fStartColor"; "fEndColor": "fEndColor"; "fRadius": "fRadius"; "fOffset": "fOffset"; "fBehavior": "fBehavior"; "fType": "fType"; }, {}, ["fConnectionCenters"], ["*", "[fConnectionCenter]"]>;
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FSnapConnectionComponent, "f-snap-connection", never, { "fStartColor": "fStartColor"; "fEndColor": "fEndColor"; "fSnapThreshold": "fSnapThreshold"; "fRadius": "fRadius"; "fOffset": "fOffset"; "fBehavior": "fBehavior"; "fType": "fType"; }, {}, ["fConnectionCenters"], ["*", "[fConnectionCenter]"]>;
|
|
53
52
|
}
|
|
@@ -3,4 +3,5 @@ import { FConnectionComponent } from './f-connection';
|
|
|
3
3
|
import { FConnectionCenterDirective } from './f-connection-center';
|
|
4
4
|
import { FConnectionForCreateComponent } from './f-connection-for-create';
|
|
5
5
|
import { FMarkerDirective } from './f-marker';
|
|
6
|
-
|
|
6
|
+
import { FSnapConnectionComponent } from './f-snap-connection';
|
|
7
|
+
export declare const F_CONNECTION_PROVIDERS: (typeof FConnectionTextPathDirective | typeof FConnectionTextComponent | typeof FConnectionDragHandleComponent | typeof FConnectionGradientComponent | typeof FConnectionPathComponent | typeof FConnectionSelectionComponent | typeof FMarkerDirective | typeof FConnectionCenterDirective | typeof FConnectionForCreateComponent | typeof FConnectionComponent | typeof FSnapConnectionComponent)[];
|
|
@@ -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
|
+
}
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
import { GetInputUnderPointerRequest } from './get-input-under-pointer.request';
|
|
2
|
-
import { FComponentsStore } from '../../../f-storage';
|
|
3
|
-
import { FConnectorBase } from '../../../f-connectors';
|
|
4
|
-
import { IExecution } from '@foblex/mediator';
|
|
5
2
|
import { BrowserService } from '@foblex/platform';
|
|
3
|
+
import { IExecution } from '@foblex/mediator';
|
|
4
|
+
import { FConnectorBase } from '../../../../f-connectors';
|
|
5
|
+
import { FComponentsStore } from '../../../../f-storage';
|
|
6
|
+
import { FDraggableDataContext } from '../../../f-draggable-data-context';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class GetInputUnderPointerExecution implements IExecution<GetInputUnderPointerRequest, FConnectorBase | undefined> {
|
|
8
9
|
private fComponentsStore;
|
|
10
|
+
private fDraggableDataContext;
|
|
9
11
|
private fBrowser;
|
|
10
12
|
private get fNodes();
|
|
11
13
|
private get fInputs();
|
|
12
|
-
constructor(fComponentsStore: FComponentsStore, fBrowser: BrowserService);
|
|
14
|
+
constructor(fComponentsStore: FComponentsStore, fDraggableDataContext: FDraggableDataContext, fBrowser: BrowserService);
|
|
13
15
|
handle(payload: GetInputUnderPointerRequest): FConnectorBase | undefined;
|
|
14
16
|
private getOutput;
|
|
15
17
|
private getOutlet;
|
|
16
18
|
private getInputsUnderPointer;
|
|
19
|
+
private getDifference;
|
|
17
20
|
private getInputsInPosition;
|
|
18
21
|
private getElementsFromPoint;
|
|
19
22
|
private getFirstConnectableInputOfNodeInPosition;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IPointerEvent } from '@foblex/drag-toolkit';
|
|
2
|
-
import { CreateConnectionDragHandler } from '
|
|
3
|
-
import { ReassignConnectionDragHandler } from '
|
|
2
|
+
import { CreateConnectionDragHandler } from '../../create-connection';
|
|
3
|
+
import { ReassignConnectionDragHandler } from '../../reassign-connection';
|
|
4
4
|
export declare class GetInputUnderPointerRequest {
|
|
5
5
|
event: IPointerEvent;
|
|
6
6
|
dragHandler: CreateConnectionDragHandler | ReassignConnectionDragHandler;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GetInputUnderPointerRequest } from './get-input-under-pointer.request';
|
|
2
2
|
import { IValidator } from '@foblex/mediator';
|
|
3
|
-
import { FComponentsStore } from '
|
|
3
|
+
import { FComponentsStore } from '../../../../f-storage';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class GetInputUnderPointerValidator implements IValidator<GetInputUnderPointerRequest> {
|
|
6
6
|
private fComponentsStore;
|
|
@@ -0,0 +1,5 @@
|
|
|
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
|
+
import { GetInputUnderPointerExecution, GetInputUnderPointerValidator } from './get-input-under-pointer';
|
|
5
|
+
export declare const CONNECTION_DRAG_COMMON_PROVIDERS: (typeof GetConnectorWithRectExecution | typeof FindClosestInputUsingSnapThresholdExecution | typeof GetAllCanBeConnectedInputPositionsExecution | typeof GetInputUnderPointerExecution | typeof GetInputUnderPointerValidator)[];
|
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
import { IDraggableItem } from '../../i-draggable-item';
|
|
2
2
|
import { FConnectionBase } from '../../../f-connection';
|
|
3
|
+
import { FConnectorBase } from '../../../f-connectors';
|
|
3
4
|
import { FMediator } from '@foblex/mediator';
|
|
4
5
|
import { IPoint } from '@foblex/2d';
|
|
6
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
7
|
+
import { IConnectorWithRect } from '../common';
|
|
5
8
|
export declare class CreateConnectionDragHandler implements IDraggableItem {
|
|
6
9
|
private fMediator;
|
|
7
|
-
|
|
10
|
+
private fComponentsStore;
|
|
11
|
+
private fOutput;
|
|
8
12
|
private onPointerDownPosition;
|
|
9
|
-
private
|
|
10
|
-
|
|
11
|
-
private
|
|
12
|
-
|
|
13
|
+
private toConnectorRect;
|
|
14
|
+
get fConnection(): FConnectionBase;
|
|
15
|
+
private get fSnapConnection();
|
|
16
|
+
private fOutputWithRect;
|
|
17
|
+
private canBeConnectedInputs;
|
|
18
|
+
constructor(fMediator: FMediator, fComponentsStore: FComponentsStore, fOutput: FConnectorBase, onPointerDownPosition: IPoint);
|
|
13
19
|
initialize(): void;
|
|
14
20
|
move(difference: IPoint): void;
|
|
21
|
+
private drawTempConnection;
|
|
22
|
+
private drawSnapConnection;
|
|
23
|
+
getClosetInput(difference: IPoint): IConnectorWithRect | undefined;
|
|
15
24
|
complete(): void;
|
|
16
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const CONNECTIONS_PROVIDERS: (typeof import("./
|
|
1
|
+
export declare const CONNECTIONS_PROVIDERS: (typeof import("./common").GetConnectorWithRectExecution | typeof import("./common").FindClosestInputUsingSnapThresholdExecution | typeof import("./common").GetAllCanBeConnectedInputPositionsExecution | typeof import("./create-connection").GetCanBeConnectedOutputByOutletExecution | typeof import("./create-connection").GetCanBeConnectedOutputByOutletValidator | typeof import("./create-connection").CreateConnectionFinalizeExecution | typeof import("./create-connection").CreateConnectionFinalizeValidator | typeof import("./create-connection").CreateConnectionDragHandlerExecution | typeof import("./create-connection").CreateConnectionFromOutletPreparationExecution | typeof import("./create-connection").CreateConnectionFromOutputPreparationExecution | typeof import("./create-connection").CreateConnectionFromOutputPreparationValidator | typeof import("./create-connection").CreateConnectionPreparationExecution | typeof import("./create-connection").CreateConnectionPreparationValidator | typeof import("./reassign-connection").ReassignConnectionFinalizeExecution | typeof import("./reassign-connection").ReassignConnectionFinalizeValidator | typeof import("./reassign-connection").ReassignConnectionPreparationExecution | typeof import("./reassign-connection").ReassignConnectionPreparationValidator | typeof import("./common").GetInputUnderPointerExecution | typeof import("./common").GetInputUnderPointerValidator)[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare class FReassignConnectionEvent
|
|
2
|
-
|
|
3
|
-
fOutputId:
|
|
4
|
-
oldFInputId:
|
|
5
|
-
newFInputId:
|
|
6
|
-
constructor(
|
|
1
|
+
export declare class FReassignConnectionEvent {
|
|
2
|
+
fConnectionId: string;
|
|
3
|
+
fOutputId: string;
|
|
4
|
+
oldFInputId: string;
|
|
5
|
+
newFInputId: string | undefined;
|
|
6
|
+
constructor(fConnectionId: string, fOutputId: string, oldFInputId: string, newFInputId: string | undefined);
|
|
7
7
|
}
|
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
import { IDraggableItem } from '../../i-draggable-item';
|
|
2
2
|
import { FConnectionBase } from '../../../f-connection';
|
|
3
3
|
import { FMediator } from '@foblex/mediator';
|
|
4
|
-
import { IPoint } from '@foblex/2d';
|
|
4
|
+
import { IPoint, RoundedRect } from '@foblex/2d';
|
|
5
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
6
|
+
import { IConnectorWithRect } from '../common';
|
|
5
7
|
export declare class ReassignConnectionDragHandler implements IDraggableItem {
|
|
6
8
|
private fMediator;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
private
|
|
11
|
-
private
|
|
12
|
-
|
|
9
|
+
private fComponentsStore;
|
|
10
|
+
fConnection: FConnectionBase;
|
|
11
|
+
toConnectorRect: RoundedRect;
|
|
12
|
+
private get fSnapConnection();
|
|
13
|
+
private fOutputWithRect;
|
|
14
|
+
private fInputWithRect;
|
|
15
|
+
private canBeConnectedInputs;
|
|
16
|
+
constructor(fMediator: FMediator, fComponentsStore: FComponentsStore, fConnection: FConnectionBase);
|
|
13
17
|
initialize(): void;
|
|
18
|
+
private getOutput;
|
|
19
|
+
private getInput;
|
|
14
20
|
move(difference: IPoint): void;
|
|
21
|
+
private drawConnection;
|
|
22
|
+
private drawSnapConnection;
|
|
23
|
+
getClosetInput(difference: IPoint): IConnectorWithRect | undefined;
|
|
15
24
|
complete(): void;
|
|
16
25
|
}
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import { IDraggableItem } from '../i-draggable-item';
|
|
2
2
|
import { FConnectionBase } from '../../f-connection';
|
|
3
|
-
import { EFConnectableSide } from '../../f-connectors';
|
|
4
3
|
import { FMediator } from '@foblex/mediator';
|
|
5
4
|
import { INodeMoveRestrictions } from './create-move-nodes-drag-model-from-selection';
|
|
6
|
-
import {
|
|
5
|
+
import { ILine, IPoint } from '@foblex/2d';
|
|
6
|
+
import { FComponentsStore } from '../../f-storage';
|
|
7
|
+
import { IConnectorWithRect } from '../connections';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare abstract class ConnectionBaseDragHandler implements IDraggableItem {
|
|
9
10
|
protected fMediator: FMediator;
|
|
11
|
+
protected fComponentsStore: FComponentsStore;
|
|
10
12
|
connection: FConnectionBase;
|
|
11
|
-
protected
|
|
12
|
-
protected
|
|
13
|
-
protected
|
|
14
|
-
protected toConnectorSide: EFConnectableSide;
|
|
15
|
-
protected constructor(fMediator: FMediator, connection: FConnectionBase);
|
|
13
|
+
protected fOutputWithRect: IConnectorWithRect;
|
|
14
|
+
protected fInputWithRect: IConnectorWithRect;
|
|
15
|
+
protected constructor(fMediator: FMediator, fComponentsStore: FComponentsStore, connection: FConnectionBase);
|
|
16
16
|
initialize(): void;
|
|
17
|
+
private getOutput;
|
|
18
|
+
private getInput;
|
|
17
19
|
abstract move(difference: IPoint): void;
|
|
18
20
|
protected getDifference(difference: IPoint, restrictions: INodeMoveRestrictions): IPoint;
|
|
19
21
|
protected redrawConnection(line: ILine): void;
|
|
@@ -2,10 +2,11 @@ import { IPoint } from '@foblex/2d';
|
|
|
2
2
|
import { FConnectionBase } from '../../f-connection';
|
|
3
3
|
import { FMediator } from '@foblex/mediator';
|
|
4
4
|
import { ConnectionBaseDragHandler } from './connection-base-drag-handler';
|
|
5
|
+
import { FComponentsStore } from '../../f-storage';
|
|
5
6
|
export declare class ConnectionSourceDragHandler extends ConnectionBaseDragHandler {
|
|
6
7
|
minDistance: IPoint;
|
|
7
8
|
maxDistance: IPoint;
|
|
8
|
-
constructor(fMediator: FMediator, connection: FConnectionBase, minDistance: IPoint, maxDistance: IPoint);
|
|
9
|
+
constructor(fMediator: FMediator, fComponentsStore: FComponentsStore, connection: FConnectionBase, minDistance: IPoint, maxDistance: IPoint);
|
|
9
10
|
move(difference: IPoint): void;
|
|
10
11
|
private getNewLineValue;
|
|
11
12
|
}
|
|
@@ -2,10 +2,11 @@ import { IPoint } from '@foblex/2d';
|
|
|
2
2
|
import { FConnectionBase } from '../../f-connection';
|
|
3
3
|
import { FMediator } from '@foblex/mediator';
|
|
4
4
|
import { ConnectionBaseDragHandler } from './connection-base-drag-handler';
|
|
5
|
+
import { FComponentsStore } from '../../f-storage';
|
|
5
6
|
export declare class ConnectionTargetDragHandler extends ConnectionBaseDragHandler {
|
|
6
7
|
minDistance: IPoint;
|
|
7
8
|
maxDistance: IPoint;
|
|
8
|
-
constructor(fMediator: FMediator, connection: FConnectionBase, minDistance: IPoint, maxDistance: IPoint);
|
|
9
|
+
constructor(fMediator: FMediator, fComponentsStore: FComponentsStore, connection: FConnectionBase, minDistance: IPoint, maxDistance: IPoint);
|
|
9
10
|
move(difference: IPoint): void;
|
|
10
11
|
private getNewLineValue;
|
|
11
12
|
}
|
|
@@ -2,10 +2,11 @@ import { IPoint } from '@foblex/2d';
|
|
|
2
2
|
import { FConnectionBase } from '../../f-connection';
|
|
3
3
|
import { FMediator } from '@foblex/mediator';
|
|
4
4
|
import { ConnectionBaseDragHandler } from './connection-base-drag-handler';
|
|
5
|
+
import { FComponentsStore } from '../../f-storage';
|
|
5
6
|
export declare class ConnectionDragHandler extends ConnectionBaseDragHandler {
|
|
6
7
|
private sourceRestrictions;
|
|
7
8
|
private targetRestrictions;
|
|
8
|
-
constructor(fMediator: FMediator, connection: FConnectionBase);
|
|
9
|
+
constructor(fMediator: FMediator, fComponentsStore: FComponentsStore, connection: FConnectionBase);
|
|
9
10
|
setOutputRestrictions(min: IPoint, max: IPoint): void;
|
|
10
11
|
setInputRestrictions(min: IPoint, max: IPoint): void;
|
|
11
12
|
move(difference: IPoint): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const F_DRAGGABLE_PROVIDERS: (typeof import("./canvas").CanvasMoveFinalizeExecution | typeof import("./canvas").CanvasMoveFinalizeValidator | typeof import("./canvas").CanvasMovePreparationExecution | typeof import("./canvas").CanvasMovePreparationValidator | typeof import("@foblex/flow").
|
|
1
|
+
export declare const F_DRAGGABLE_PROVIDERS: (typeof import("./canvas").CanvasMoveFinalizeExecution | typeof import("./canvas").CanvasMoveFinalizeValidator | typeof import("./canvas").CanvasMovePreparationExecution | typeof import("./canvas").CanvasMovePreparationValidator | typeof import("@foblex/flow").GetConnectorWithRectExecution | typeof import("@foblex/flow").FindClosestInputUsingSnapThresholdExecution | typeof import("@foblex/flow").GetAllCanBeConnectedInputPositionsExecution | typeof import("@foblex/flow").GetCanBeConnectedOutputByOutletExecution | typeof import("@foblex/flow").GetCanBeConnectedOutputByOutletValidator | typeof import("@foblex/flow").CreateConnectionFinalizeExecution | typeof import("@foblex/flow").CreateConnectionFinalizeValidator | typeof import("@foblex/flow").CreateConnectionDragHandlerExecution | typeof import("@foblex/flow").CreateConnectionFromOutletPreparationExecution | typeof import("@foblex/flow").CreateConnectionFromOutputPreparationExecution | typeof import("@foblex/flow").CreateConnectionFromOutputPreparationValidator | typeof import("@foblex/flow").CreateConnectionPreparationExecution | typeof import("@foblex/flow").CreateConnectionPreparationValidator | typeof import("@foblex/flow").ExternalItemFinalizeExecution | typeof import("@foblex/flow").ExternalItemFinalizeValidator | typeof import("@foblex/flow").ExternalItemPreparationExecution | typeof import("@foblex/flow").ExternalItemPreparationValidator | typeof import("@foblex/flow").ReassignConnectionFinalizeExecution | typeof import("@foblex/flow").ReassignConnectionFinalizeValidator | typeof import("@foblex/flow").ReassignConnectionPreparationExecution | typeof import("@foblex/flow").ReassignConnectionPreparationValidator | typeof import("@foblex/flow").GetInputUnderPointerExecution | typeof import("@foblex/flow").GetInputUnderPointerValidator | typeof import("./domain").GetNodePaddingExecution | typeof import("./domain").GetNormalizedNodeRectExecution | typeof import("./domain").GetNormalizedParentNodeRectExecution | typeof import("./domain").GetParentNodesExecution | typeof import("./domain").IsArrayHasParentNodeExecution | typeof import("./node").PutInputConnectionHandlersToArrayExecution | typeof import("./node").PutOutputConnectionHandlersToArrayExecution | typeof import("./node").GetNodeMoveRestrictionsExecution | typeof import("./node").CreateMoveNodesDragModelFromSelectionExecution | typeof import("./node").NodeMovePreparationExecution | typeof import("./node").NodeMovePreparationValidator | typeof import("./node").NodeMoveFinalizeExecution | typeof import("./node").NodeMoveFinalizeValidator | typeof import("./node-resize").ApplyChildResizeRestrictionsExecution | typeof import("./node-resize").ApplyParentResizeRestrictionsExecution | typeof import("./node-resize").CalculateChangedPositionExecution | typeof import("./node-resize").CalculateChangedSizeExecution | typeof import("./node-resize").GetNormalizedChildrenNodesRectExecution | typeof import("./node-resize").GetNodeResizeRestrictionsExecution | typeof import("./node-resize").NodeResizeFinalizeExecution | typeof import("./node-resize").NodeResizeFinalizeValidator | typeof import("./node-resize").NodeResizePreparationExecution | typeof import("./node-resize").NodeResizePreparationValidator | typeof import("./single-select").SingleSelectExecution | typeof import("./single-select").SingleSelectValidator | typeof import("@foblex/flow").CalculateFlowPointFromMinimapPointExecution | typeof import("@foblex/flow").MinimapDragPreparationExecution | typeof import("@foblex/flow").MinimapDragPreparationValidator | typeof import("@foblex/flow").MinimapDragFinalizeExecution | typeof import("@foblex/flow").MinimapDragFinalizeValidator | typeof import("@foblex/flow").SelectionAreaFinalizeExecution | typeof import("@foblex/flow").SelectionAreaFinalizeValidator | typeof import("@foblex/flow").SelectionAreaPreparationExecution | typeof import("@foblex/flow").SelectionAreaPreparationValidator)[];
|
package/f-flow.module.d.ts
CHANGED
|
@@ -14,25 +14,26 @@ import * as i12 from "./f-connection/f-connection/f-connection.component";
|
|
|
14
14
|
import * as i13 from "./f-connection/f-connection-center/f-connection-center.directive";
|
|
15
15
|
import * as i14 from "./f-connection/f-connection-for-create/f-connection-for-create.component";
|
|
16
16
|
import * as i15 from "./f-connection/f-marker/f-marker.directive";
|
|
17
|
-
import * as i16 from "./f-
|
|
18
|
-
import * as i17 from "./f-connectors/f-node-
|
|
19
|
-
import * as i18 from "./f-connectors/f-node-
|
|
20
|
-
import * as i19 from "./f-
|
|
21
|
-
import * as i20 from "./f-
|
|
22
|
-
import * as i21 from "./f-
|
|
23
|
-
import * as i22 from "./f-
|
|
24
|
-
import * as i23 from "./f-minimap/f-minimap
|
|
25
|
-
import * as i24 from "./f-minimap/f-minimap-
|
|
26
|
-
import * as i25 from "./f-minimap/f-minimap-
|
|
27
|
-
import * as i26 from "./f-
|
|
28
|
-
import * as i27 from "./f-node/f-
|
|
29
|
-
import * as i28 from "./f-node/f-
|
|
30
|
-
import * as i29 from "./f-node/f-
|
|
31
|
-
import * as i30 from "./f-
|
|
32
|
-
import * as i31 from "./f-
|
|
33
|
-
import * as i32 from "
|
|
17
|
+
import * as i16 from "./f-connection/f-snap-connection/f-snap-connection.component";
|
|
18
|
+
import * as i17 from "./f-connectors/f-node-input/f-node-input.directive";
|
|
19
|
+
import * as i18 from "./f-connectors/f-node-outlet/f-node-outlet.directive";
|
|
20
|
+
import * as i19 from "./f-connectors/f-node-output/f-node-output.directive";
|
|
21
|
+
import * as i20 from "./f-external-item/f-external-item.directive";
|
|
22
|
+
import * as i21 from "./f-flow/f-flow.component";
|
|
23
|
+
import * as i22 from "./f-line-alignment/f-line-alignment.component";
|
|
24
|
+
import * as i23 from "./f-minimap/f-minimap.component";
|
|
25
|
+
import * as i24 from "./f-minimap/f-minimap-canvas.directive";
|
|
26
|
+
import * as i25 from "./f-minimap/f-minimap-view.directive";
|
|
27
|
+
import * as i26 from "./f-minimap/f-minimap-flow.directive";
|
|
28
|
+
import * as i27 from "./f-node/f-group.directive";
|
|
29
|
+
import * as i28 from "./f-node/f-node.directive";
|
|
30
|
+
import * as i29 from "./f-node/f-drag-handle/f-drag-handle.directive";
|
|
31
|
+
import * as i30 from "./f-node/f-resize-handle/f-resize-handle.directive";
|
|
32
|
+
import * as i31 from "./f-selection-area/f-selection-area.component";
|
|
33
|
+
import * as i32 from "./f-draggable/f-draggable.directive";
|
|
34
|
+
import * as i33 from "@angular/common";
|
|
34
35
|
export declare class FFlowModule {
|
|
35
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<FFlowModule, never>;
|
|
36
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FFlowModule, [typeof i1.FBackgroundComponent, typeof i2.FRectPatternComponent, typeof i3.FCirclePatternComponent, typeof i4.FCanvasComponent, typeof i5.FZoomDirective, typeof i6.FConnectionTextComponent, typeof i7.FConnectionTextPathDirective, typeof i8.FConnectionDragHandleComponent, typeof i9.FConnectionGradientComponent, typeof i10.FConnectionPathComponent, typeof i11.FConnectionSelectionComponent, typeof i12.FConnectionComponent, typeof i13.FConnectionCenterDirective, typeof i14.FConnectionForCreateComponent, typeof i15.FMarkerDirective, typeof i16.
|
|
37
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FFlowModule, [typeof i1.FBackgroundComponent, typeof i2.FRectPatternComponent, typeof i3.FCirclePatternComponent, typeof i4.FCanvasComponent, typeof i5.FZoomDirective, typeof i6.FConnectionTextComponent, typeof i7.FConnectionTextPathDirective, typeof i8.FConnectionDragHandleComponent, typeof i9.FConnectionGradientComponent, typeof i10.FConnectionPathComponent, typeof i11.FConnectionSelectionComponent, typeof i12.FConnectionComponent, typeof i13.FConnectionCenterDirective, typeof i14.FConnectionForCreateComponent, typeof i15.FMarkerDirective, typeof i16.FSnapConnectionComponent, typeof i17.FNodeInputDirective, typeof i18.FNodeOutletDirective, typeof i19.FNodeOutputDirective, typeof i20.FExternalItemDirective, typeof i21.FFlowComponent, typeof i22.FLineAlignmentComponent, typeof i23.FMinimapComponent, typeof i24.FMinimapCanvasDirective, typeof i25.FMinimapViewDirective, typeof i26.FMinimapFlowDirective, typeof i27.FGroupDirective, typeof i28.FNodeDirective, typeof i29.FDragHandleDirective, typeof i30.FResizeHandleDirective, typeof i31.FSelectionAreaComponent, typeof i32.FDraggableDirective], [typeof i33.CommonModule], [typeof i1.FBackgroundComponent, typeof i2.FRectPatternComponent, typeof i3.FCirclePatternComponent, typeof i4.FCanvasComponent, typeof i5.FZoomDirective, typeof i6.FConnectionTextComponent, typeof i7.FConnectionTextPathDirective, typeof i8.FConnectionDragHandleComponent, typeof i9.FConnectionGradientComponent, typeof i10.FConnectionPathComponent, typeof i11.FConnectionSelectionComponent, typeof i12.FConnectionComponent, typeof i13.FConnectionCenterDirective, typeof i14.FConnectionForCreateComponent, typeof i15.FMarkerDirective, typeof i16.FSnapConnectionComponent, typeof i17.FNodeInputDirective, typeof i18.FNodeOutletDirective, typeof i19.FNodeOutputDirective, typeof i20.FExternalItemDirective, typeof i21.FFlowComponent, typeof i22.FLineAlignmentComponent, typeof i23.FMinimapComponent, typeof i24.FMinimapCanvasDirective, typeof i25.FMinimapViewDirective, typeof i26.FMinimapFlowDirective, typeof i27.FGroupDirective, typeof i28.FNodeDirective, typeof i29.FDragHandleDirective, typeof i30.FResizeHandleDirective, typeof i31.FSelectionAreaComponent, typeof i32.FDraggableDirective]>;
|
|
37
38
|
static ɵinj: i0.ɵɵInjectorDeclaration<FFlowModule>;
|
|
38
39
|
}
|
package/f-node/providers.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ import { FNodeDirective } from './f-node.directive';
|
|
|
2
2
|
import { FDragHandleDirective } from './f-drag-handle';
|
|
3
3
|
import { FResizeHandleDirective } from './f-resize-handle';
|
|
4
4
|
import { FGroupDirective } from './f-group.directive';
|
|
5
|
-
export declare const F_NODE_PROVIDERS: (typeof FDragHandleDirective | typeof FResizeHandleDirective | typeof
|
|
5
|
+
export declare const F_NODE_PROVIDERS: (typeof FDragHandleDirective | typeof FResizeHandleDirective | typeof FNodeDirective | typeof FGroupDirective)[];
|
|
@@ -21,6 +21,7 @@ export declare class FComponentsStore {
|
|
|
21
21
|
fNodes: FNodeBase[];
|
|
22
22
|
fConnections: FConnectionBase[];
|
|
23
23
|
fTempConnection: FConnectionBase | undefined;
|
|
24
|
+
fSnapConnection: FConnectionBase | undefined;
|
|
24
25
|
fMarkers: FMarkerBase[];
|
|
25
26
|
fOutputs: FConnectorBase[];
|
|
26
27
|
fInputs: FConnectorBase[];
|