@foblex/flow 12.5.1 → 12.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.execution.d.ts +13 -0
- package/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.request.d.ts +4 -0
- package/domain/get-deep-children-nodes-and-groups/index.d.ts +2 -0
- package/domain/get-nodes-rect/get-nodes-rect.execution.d.ts +2 -2
- package/domain/get-scaled-node-rects-with-flow-position/get-scaled-node-rects-with-flow-position.execution.d.ts +14 -0
- package/domain/get-scaled-node-rects-with-flow-position/get-scaled-node-rects-with-flow-position.request.d.ts +2 -0
- package/domain/get-scaled-node-rects-with-flow-position/index.d.ts +2 -0
- package/domain/index.d.ts +4 -5
- package/domain/is-connection-under-node/is-connection-under-node.execution.d.ts +1 -5
- package/domain/providers.d.ts +5 -6
- package/domain/select-and-update-node-layer/select-and-update-node-layer.execution.d.ts +1 -3
- package/domain/sort-item-layers/index.d.ts +4 -0
- package/domain/sort-item-layers/sort-item-layers.execution.d.ts +12 -0
- package/domain/sort-item-layers/sort-item-layers.request.d.ts +2 -0
- package/domain/sort-item-layers/sort-items-by-parent/index.d.ts +2 -0
- package/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.execution.d.ts +20 -0
- package/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.request.d.ts +4 -0
- package/domain/sort-item-layers/sort-node-layers-by-groups/index.d.ts +2 -0
- package/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.execution.d.ts +21 -0
- package/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.request.d.ts +2 -0
- package/domain/update-item-and-children-layers/index.d.ts +3 -0
- package/domain/update-item-and-children-layers/move-front-elements-before-target-element/index.d.ts +2 -0
- package/domain/update-item-and-children-layers/move-front-elements-before-target-element/move-front-elements-before-target-element.execution.d.ts +8 -0
- package/domain/update-item-and-children-layers/move-front-elements-before-target-element/move-front-elements-before-target-element.request.d.ts +8 -0
- package/domain/update-item-and-children-layers/update-item-and-children-layers.execution.d.ts +25 -0
- package/domain/{update-item-layer/update-item-layer.request.d.ts → update-item-and-children-layers/update-item-and-children-layers.request.d.ts} +1 -1
- package/esm2022/domain/clear-selection/clear-selection.execution.mjs +2 -4
- package/esm2022/domain/create-connection-markers/create-connection-markers.execution.mjs +2 -2
- package/esm2022/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.execution.mjs +36 -0
- package/esm2022/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.request.mjs +7 -0
- package/esm2022/domain/get-deep-children-nodes-and-groups/index.mjs +3 -0
- package/esm2022/domain/get-nodes-rect/get-nodes-rect.execution.mjs +1 -1
- package/esm2022/domain/get-scaled-node-rects-with-flow-position/get-scaled-node-rects-with-flow-position.execution.mjs +35 -0
- package/esm2022/domain/get-scaled-node-rects-with-flow-position/get-scaled-node-rects-with-flow-position.request.mjs +3 -0
- package/esm2022/domain/get-scaled-node-rects-with-flow-position/index.mjs +3 -0
- package/esm2022/domain/index.mjs +5 -6
- package/esm2022/domain/is-connection-under-node/is-connection-under-node.execution.mjs +14 -20
- package/esm2022/domain/providers.mjs +12 -11
- package/esm2022/domain/redraw-connections/redraw-connections.execution.mjs +1 -1
- package/esm2022/domain/select/select.execution.mjs +2 -2
- package/esm2022/domain/select-all/select-all.execution.mjs +1 -1
- package/esm2022/domain/select-and-update-node-layer/select-and-update-node-layer.execution.mjs +7 -10
- package/esm2022/domain/sort-item-layers/index.mjs +5 -0
- package/esm2022/domain/sort-item-layers/sort-item-layers.execution.mjs +32 -0
- package/esm2022/domain/sort-item-layers/sort-item-layers.request.mjs +3 -0
- package/esm2022/domain/sort-item-layers/sort-items-by-parent/index.mjs +3 -0
- package/esm2022/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.execution.mjs +61 -0
- package/esm2022/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.request.mjs +8 -0
- package/esm2022/domain/sort-item-layers/sort-node-layers-by-groups/index.mjs +3 -0
- package/esm2022/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.execution.mjs +62 -0
- package/esm2022/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.request.mjs +3 -0
- package/esm2022/domain/subscribe-on-transform-changes/subscribe-on-transform-changes.execution.mjs +2 -2
- package/esm2022/domain/update-item-and-children-layers/index.mjs +4 -0
- package/esm2022/domain/update-item-and-children-layers/move-front-elements-before-target-element/index.mjs +3 -0
- package/esm2022/domain/update-item-and-children-layers/move-front-elements-before-target-element/move-front-elements-before-target-element.execution.mjs +30 -0
- package/esm2022/domain/update-item-and-children-layers/move-front-elements-before-target-element/move-front-elements-before-target-element.request.mjs +14 -0
- package/esm2022/domain/update-item-and-children-layers/update-item-and-children-layers.execution.mjs +99 -0
- package/esm2022/domain/update-item-and-children-layers/update-item-and-children-layers.request.mjs +9 -0
- package/esm2022/f-canvas/f-canvas-base.mjs +1 -1
- package/esm2022/f-canvas/f-canvas.component.mjs +9 -5
- package/esm2022/f-connection/common/domain/f-bezier.path-builder.mjs +2 -2
- package/esm2022/f-connection/common/domain/f-segment.path-builder.mjs +3 -2
- package/esm2022/f-connection/common/domain/f-straight.path-builder.mjs +2 -2
- package/esm2022/f-connection/common/f-connection-base.mjs +5 -3
- package/esm2022/f-connection/common/f-connection-text/f-connection-text-path.directive.mjs +2 -2
- package/esm2022/f-connection/common/f-connection-text/f-connection-text.component.mjs +2 -2
- package/esm2022/f-connection/common/f-drag-handle/f-connection-drag-handle.component.mjs +3 -3
- package/esm2022/f-connection/common/f-gradient/f-connection-gradient.component.mjs +2 -2
- package/esm2022/f-connection/common/f-path/f-connection-path.component.mjs +8 -8
- package/esm2022/f-connection/common/f-selection/f-connection-selection.component.mjs +2 -2
- package/esm2022/f-connection/common/i-has-connection-from-to.mjs +1 -1
- package/esm2022/f-connection/common/mixins/change-connection-selection.mixin.mjs +2 -1
- package/esm2022/f-connection/f-connection/f-connection.component.mjs +22 -17
- package/esm2022/f-connection/f-connection-builder/i-f-connection-builder-response.mjs +1 -1
- package/esm2022/f-connection/f-connection-for-create/f-connection-for-create.component.mjs +19 -12
- package/esm2022/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.execution.mjs +2 -4
- package/esm2022/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.validator.mjs +3 -3
- package/esm2022/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.validator.mjs +6 -1
- package/esm2022/f-draggable/canvas/canvas.drag-handler.mjs +1 -3
- package/esm2022/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.validator.mjs +3 -3
- package/esm2022/f-draggable/connections/create-connection/create-connection.drag-handler.mjs +1 -3
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.execution.mjs +2 -2
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.validator.mjs +3 -3
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.execution.mjs +3 -3
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.mjs +1 -3
- package/esm2022/f-draggable/domain/convert-computed-to-pixels/convert-computed-to-pixels-request.mjs +13 -0
- package/esm2022/f-draggable/domain/convert-computed-to-pixels/convert-computed-to-pixels.execution.mjs +49 -0
- package/esm2022/f-draggable/domain/convert-computed-to-pixels/index.mjs +3 -0
- package/esm2022/f-draggable/domain/get-node-padding/get-node-padding.execution.mjs +38 -0
- package/esm2022/f-draggable/domain/get-node-padding/get-node-padding.request.mjs +9 -0
- package/esm2022/f-draggable/domain/get-node-padding/index.mjs +3 -0
- package/esm2022/f-draggable/domain/get-normalized-node-rect/get-normalized-node-rect.execution.mjs +30 -0
- package/esm2022/f-draggable/domain/get-normalized-node-rect/get-normalized-node-rect.request.mjs +7 -0
- package/esm2022/f-draggable/domain/get-normalized-node-rect/index.mjs +3 -0
- package/esm2022/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.execution.mjs +50 -0
- package/esm2022/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.request.mjs +7 -0
- package/esm2022/f-draggable/domain/get-normalized-parent-node-rect/index.mjs +3 -0
- package/esm2022/f-draggable/domain/get-parent-nodes/get-parent-nodes.execution.mjs +37 -0
- package/esm2022/f-draggable/domain/get-parent-nodes/get-parent-nodes.request.mjs +7 -0
- package/esm2022/f-draggable/domain/get-parent-nodes/index.mjs +3 -0
- package/esm2022/f-draggable/domain/index.mjs +8 -0
- package/esm2022/f-draggable/domain/is-array-has-parent-node/index.mjs +3 -0
- package/esm2022/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.execution.mjs +35 -0
- package/esm2022/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.request.mjs +9 -0
- package/esm2022/f-draggable/domain/providers.mjs +15 -0
- package/esm2022/f-draggable/f-draggable-base.mjs +8 -3
- package/esm2022/f-draggable/f-draggable-data-context.mjs +1 -2
- package/esm2022/f-draggable/f-draggable.directive.mjs +3 -7
- package/esm2022/f-draggable/i-draggable-item.mjs +1 -1
- package/esm2022/f-draggable/index.mjs +2 -4
- package/esm2022/f-draggable/node/connection-base-drag-handler.mjs +42 -0
- package/esm2022/f-draggable/node/connection-source.drag-handler.mjs +14 -26
- package/esm2022/f-draggable/node/connection-target.drag-handler.mjs +14 -26
- package/esm2022/f-draggable/node/connection.drag-handler.mjs +16 -24
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.mjs +46 -56
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/get-node-move-restrictions.execution.mjs +45 -0
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/get-node-move-restrictions.request.mjs +9 -0
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/i-node-move-restrictions.mjs +2 -0
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/index.mjs +4 -0
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-input-connection-handlers-to-array/index.mjs +3 -0
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-input-connection-handlers-to-array/put-input-connection-handlers-to-array.execution.mjs +72 -0
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-input-connection-handlers-to-array/put-input-connection-handlers-to-array.request.mjs +11 -0
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-output-connection-handlers-to-array/index.mjs +3 -0
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-output-connection-handlers-to-array/put-output-connection-handlers-to-array.execution.mjs +72 -0
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-output-connection-handlers-to-array/put-output-connection-handlers-to-array.request.mjs +11 -0
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/i-node-with-distance-restrictions.mjs +2 -0
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/index.mjs +5 -1
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/providers.mjs +7 -1
- package/esm2022/f-draggable/node/index.mjs +3 -1
- package/esm2022/f-draggable/node/node-move-finalize/node-move-finalize.execution.mjs +2 -2
- package/esm2022/f-draggable/node/node-move-finalize/node-move-finalize.validator.mjs +3 -3
- package/esm2022/f-draggable/node/node-move-preparation/node-move-preparation.execution.mjs +3 -4
- package/esm2022/f-draggable/node/node-resize-by-child.drag-handler.mjs +13 -0
- package/esm2022/f-draggable/node/node.drag-handler.mjs +21 -7
- package/esm2022/f-draggable/node-resize/apply-child-resize-restrictions/apply-child-resize-restrictions.execution.mjs +49 -0
- package/esm2022/f-draggable/node-resize/apply-child-resize-restrictions/apply-child-resize-restrictions.request.mjs +9 -0
- package/esm2022/f-draggable/node-resize/apply-child-resize-restrictions/index.mjs +3 -0
- package/esm2022/f-draggable/node-resize/apply-parent-resize-restrictions/apply-parent-resize-restrictions.execution.mjs +49 -0
- package/esm2022/f-draggable/node-resize/apply-parent-resize-restrictions/apply-parent-resize-restrictions.request.mjs +9 -0
- package/esm2022/f-draggable/node-resize/apply-parent-resize-restrictions/index.mjs +3 -0
- package/esm2022/f-draggable/node-resize/calculate-changed-position/calculate-changed-position.execution.mjs +25 -0
- package/esm2022/f-draggable/node-resize/calculate-changed-position/calculate-changed-position.request.mjs +13 -0
- package/esm2022/f-draggable/node-resize/calculate-changed-position/index.mjs +3 -0
- package/esm2022/f-draggable/node-resize/calculate-changed-size/calculate-changed-size.execution.mjs +34 -0
- package/esm2022/f-draggable/node-resize/calculate-changed-size/calculate-changed-size.request.mjs +11 -0
- package/esm2022/f-draggable/node-resize/calculate-changed-size/index.mjs +3 -0
- package/esm2022/f-draggable/node-resize/get-node-resize-restrictions/get-node-resize-restrictions.execution.mjs +32 -0
- package/esm2022/f-draggable/node-resize/get-node-resize-restrictions/get-node-resize-restrictions.request.mjs +9 -0
- package/esm2022/f-draggable/node-resize/get-node-resize-restrictions/i-node-resize-restrictions.mjs +2 -0
- package/esm2022/f-draggable/node-resize/get-node-resize-restrictions/index.mjs +4 -0
- package/esm2022/f-draggable/node-resize/get-normalized-children-nodes-rect/get-normalized-children-nodes-rect.execution.mjs +42 -0
- package/esm2022/f-draggable/node-resize/get-normalized-children-nodes-rect/get-normalized-children-nodes-rect.request.mjs +9 -0
- package/esm2022/f-draggable/node-resize/get-normalized-children-nodes-rect/index.mjs +3 -0
- package/esm2022/f-draggable/node-resize/index.mjs +8 -1
- package/esm2022/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.validator.mjs +3 -3
- package/esm2022/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.execution.mjs +2 -2
- package/esm2022/f-draggable/node-resize/node-resize.drag-handler.mjs +38 -39
- package/esm2022/f-draggable/node-resize/providers.mjs +13 -1
- package/esm2022/f-draggable/node-resize/resize-direction.mjs +8 -0
- package/esm2022/f-draggable/providers.mjs +7 -5
- package/esm2022/f-draggable/single-select/single-select.execution.mjs +11 -11
- package/esm2022/f-external-item/domain/external-item-finalize/external-item-finalize.execution.mjs +58 -0
- package/esm2022/f-external-item/domain/external-item-finalize/external-item-finalize.request.mjs +7 -0
- package/esm2022/f-external-item/domain/external-item-finalize/external-item-finalize.validator.mjs +26 -0
- package/esm2022/f-external-item/domain/external-item-finalize/index.mjs +5 -0
- package/esm2022/f-external-item/domain/external-item-finalize/providers.mjs +7 -0
- package/esm2022/f-external-item/domain/external-item-preparation/external-item-preparation.execution.mjs +44 -0
- package/esm2022/f-external-item/domain/external-item-preparation/external-item-preparation.request.mjs +7 -0
- package/esm2022/f-external-item/domain/external-item-preparation/external-item-preparation.validator.mjs +30 -0
- package/esm2022/f-external-item/domain/external-item-preparation/index.mjs +5 -0
- package/esm2022/f-external-item/domain/external-item-preparation/providers.mjs +7 -0
- package/esm2022/f-external-item/domain/external-item.drag-handler.mjs +36 -0
- package/esm2022/f-external-item/domain/f-create-node.event.mjs +9 -0
- package/esm2022/f-external-item/domain/index.mjs +6 -0
- package/esm2022/f-external-item/domain/providers.mjs +7 -0
- package/esm2022/f-external-item/index.mjs +2 -1
- package/esm2022/f-flow/f-flow.component.mjs +15 -7
- package/esm2022/f-flow.module.mjs +7 -6
- package/esm2022/f-line-alignment/domain/line-service.mjs +3 -1
- package/esm2022/f-line-alignment/f-line-alignment.component.mjs +2 -2
- package/esm2022/f-minimap/domain/f-minimap.drag-handler.mjs +1 -3
- package/esm2022/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.validator.mjs +2 -2
- package/esm2022/f-minimap/f-minimap-canvas.directive.mjs +9 -11
- package/esm2022/f-minimap/f-minimap-flow.directive.mjs +3 -2
- package/esm2022/f-node/domain/index.mjs +3 -0
- package/esm2022/f-node/domain/is-group.mjs +4 -0
- package/esm2022/f-node/domain/is-node.mjs +4 -0
- package/esm2022/f-node/f-group.directive.mjs +147 -0
- package/esm2022/f-node/f-node-base.mjs +2 -1
- package/esm2022/f-node/f-node.directive.mjs +12 -4
- package/esm2022/f-node/index.mjs +3 -2
- package/esm2022/f-node/providers.mjs +3 -2
- package/esm2022/f-selection-area/domain/index.mjs +5 -2
- package/esm2022/f-selection-area/domain/providers.mjs +7 -0
- package/esm2022/f-selection-area/domain/selection-area-finalize/index.mjs +5 -0
- package/esm2022/f-selection-area/domain/selection-area-finalize/providers.mjs +7 -0
- package/esm2022/f-selection-area/domain/selection-area-finalize/selection-area-finalize.execution.mjs +27 -0
- package/esm2022/f-selection-area/domain/selection-area-finalize/selection-area-finalize.request.mjs +7 -0
- package/esm2022/f-selection-area/domain/selection-area-finalize/selection-area-finalize.validator.mjs +26 -0
- package/esm2022/f-selection-area/domain/selection-area-preparation/index.mjs +5 -0
- package/esm2022/f-selection-area/domain/selection-area-preparation/providers.mjs +7 -0
- package/esm2022/f-selection-area/domain/selection-area-preparation/selection-area-preparation.execution.mjs +41 -0
- package/esm2022/f-selection-area/domain/selection-area-preparation/selection-area-preparation.request.mjs +9 -0
- package/esm2022/f-selection-area/domain/selection-area-preparation/selection-area-preparation.validator.mjs +30 -0
- package/esm2022/f-selection-area/domain/selection-area.drag-handle.mjs +52 -0
- package/esm2022/f-selection-area/f-selection-area-base.mjs +2 -3
- package/esm2022/f-selection-area/f-selection-area.component.mjs +20 -13
- package/esm2022/f-storage/f-components-store.mjs +14 -4
- package/f-canvas/f-canvas-base.d.ts +1 -0
- package/f-canvas/f-canvas.component.d.ts +2 -1
- package/f-connection/common/f-connection-base.d.ts +2 -1
- package/f-connection/common/f-drag-handle/f-connection-drag-handle.component.d.ts +1 -1
- package/f-connection/common/i-has-connection-from-to.d.ts +1 -1
- package/f-connection/common/mixins/change-connection-selection.mixin.d.ts +1 -0
- package/f-connection/f-connection/f-connection.component.d.ts +4 -3
- package/f-connection/f-connection-builder/i-f-connection-builder-response.d.ts +1 -0
- package/f-connection/f-connection-for-create/f-connection-for-create.component.d.ts +4 -3
- package/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.validator.d.ts +1 -0
- package/f-draggable/canvas/canvas.drag-handler.d.ts +0 -2
- package/f-draggable/connections/create-connection/create-connection.drag-handler.d.ts +0 -2
- package/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.d.ts +0 -2
- package/f-draggable/domain/convert-computed-to-pixels/convert-computed-to-pixels-request.d.ts +7 -0
- package/f-draggable/domain/convert-computed-to-pixels/convert-computed-to-pixels.execution.d.ts +12 -0
- package/f-draggable/domain/convert-computed-to-pixels/index.d.ts +2 -0
- package/f-draggable/domain/get-node-padding/get-node-padding.execution.d.ts +12 -0
- package/f-draggable/domain/get-node-padding/get-node-padding.request.d.ts +7 -0
- package/f-draggable/domain/get-node-padding/index.d.ts +2 -0
- package/f-draggable/domain/get-normalized-node-rect/get-normalized-node-rect.execution.d.ts +13 -0
- package/f-draggable/domain/get-normalized-node-rect/get-normalized-node-rect.request.d.ts +5 -0
- package/f-draggable/domain/get-normalized-node-rect/index.d.ts +2 -0
- package/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.execution.d.ts +17 -0
- package/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.request.d.ts +5 -0
- package/f-draggable/domain/get-normalized-parent-node-rect/index.d.ts +2 -0
- package/f-draggable/domain/get-parent-nodes/get-parent-nodes.execution.d.ts +13 -0
- package/f-draggable/domain/get-parent-nodes/get-parent-nodes.request.d.ts +5 -0
- package/f-draggable/domain/get-parent-nodes/index.d.ts +2 -0
- package/f-draggable/domain/index.d.ts +7 -0
- package/f-draggable/domain/is-array-has-parent-node/index.d.ts +2 -0
- package/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.execution.d.ts +13 -0
- package/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.request.d.ts +6 -0
- package/f-draggable/domain/providers.d.ts +7 -0
- package/f-draggable/f-draggable-base.d.ts +2 -1
- package/f-draggable/f-draggable-data-context.d.ts +0 -2
- package/f-draggable/f-draggable.directive.d.ts +1 -1
- package/f-draggable/i-draggable-item.d.ts +0 -2
- package/f-draggable/index.d.ts +1 -3
- package/f-draggable/node/connection-base-drag-handler.d.ts +23 -0
- package/f-draggable/node/connection-source.drag-handler.d.ts +6 -12
- package/f-draggable/node/connection-target.drag-handler.d.ts +6 -12
- package/f-draggable/node/connection.drag-handler.d.ts +7 -10
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.d.ts +4 -6
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/get-node-move-restrictions.execution.d.ts +13 -0
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/get-node-move-restrictions.request.d.ts +6 -0
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/i-node-move-restrictions.d.ts +5 -0
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/index.d.ts +3 -0
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-input-connection-handlers-to-array/index.d.ts +2 -0
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-input-connection-handlers-to-array/put-input-connection-handlers-to-array.execution.d.ts +22 -0
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-input-connection-handlers-to-array/put-input-connection-handlers-to-array.request.d.ts +8 -0
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-output-connection-handlers-to-array/index.d.ts +2 -0
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-output-connection-handlers-to-array/put-output-connection-handlers-to-array.execution.d.ts +22 -0
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-output-connection-handlers-to-array/put-output-connection-handlers-to-array.request.d.ts +8 -0
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/i-node-with-distance-restrictions.d.ts +6 -0
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/index.d.ts +4 -0
- package/f-draggable/node/create-move-nodes-drag-model-from-selection/providers.d.ts +4 -1
- package/f-draggable/node/index.d.ts +2 -0
- package/f-draggable/node/node-resize-by-child.drag-handler.d.ts +10 -0
- package/f-draggable/node/node.drag-handler.d.ts +6 -3
- package/f-draggable/node/providers.d.ts +1 -1
- package/f-draggable/node-resize/apply-child-resize-restrictions/apply-child-resize-restrictions.execution.d.ts +13 -0
- package/f-draggable/node-resize/apply-child-resize-restrictions/apply-child-resize-restrictions.request.d.ts +6 -0
- package/f-draggable/node-resize/apply-child-resize-restrictions/index.d.ts +2 -0
- package/f-draggable/node-resize/apply-parent-resize-restrictions/apply-parent-resize-restrictions.execution.d.ts +13 -0
- package/f-draggable/node-resize/apply-parent-resize-restrictions/apply-parent-resize-restrictions.request.d.ts +6 -0
- package/f-draggable/node-resize/apply-parent-resize-restrictions/index.d.ts +2 -0
- package/f-draggable/node-resize/calculate-changed-position/calculate-changed-position.execution.d.ts +10 -0
- package/f-draggable/node-resize/calculate-changed-position/calculate-changed-position.request.d.ts +9 -0
- package/f-draggable/node-resize/calculate-changed-position/index.d.ts +2 -0
- package/f-draggable/node-resize/calculate-changed-size/calculate-changed-size.execution.d.ts +10 -0
- package/f-draggable/node-resize/calculate-changed-size/calculate-changed-size.request.d.ts +8 -0
- package/f-draggable/node-resize/calculate-changed-size/index.d.ts +2 -0
- package/f-draggable/node-resize/get-node-resize-restrictions/get-node-resize-restrictions.execution.d.ts +11 -0
- package/f-draggable/node-resize/get-node-resize-restrictions/get-node-resize-restrictions.request.d.ts +7 -0
- package/f-draggable/node-resize/get-node-resize-restrictions/i-node-resize-restrictions.d.ts +5 -0
- package/f-draggable/node-resize/get-node-resize-restrictions/index.d.ts +3 -0
- package/f-draggable/node-resize/get-normalized-children-nodes-rect/get-normalized-children-nodes-rect.execution.d.ts +15 -0
- package/f-draggable/node-resize/get-normalized-children-nodes-rect/get-normalized-children-nodes-rect.request.d.ts +7 -0
- package/f-draggable/node-resize/get-normalized-children-nodes-rect/index.d.ts +2 -0
- package/f-draggable/node-resize/index.d.ts +7 -0
- package/f-draggable/node-resize/node-resize.drag-handler.d.ts +11 -10
- package/f-draggable/node-resize/providers.d.ts +7 -1
- package/f-draggable/node-resize/resize-direction.d.ts +18 -0
- package/f-draggable/providers.d.ts +1 -1
- package/f-draggable/single-select/single-select.execution.d.ts +2 -3
- package/{f-draggable/external-item → f-external-item/domain}/external-item-finalize/external-item-finalize.execution.d.ts +1 -1
- package/{f-draggable/external-item → f-external-item/domain}/external-item-finalize/external-item-finalize.validator.d.ts +1 -1
- package/{f-draggable/external-item → f-external-item/domain}/external-item-preparation/external-item-preparation.execution.d.ts +1 -1
- package/{f-draggable/external-item → f-external-item/domain}/external-item.drag-handler.d.ts +1 -3
- package/f-external-item/domain/providers.d.ts +1 -0
- package/f-external-item/index.d.ts +1 -0
- package/f-flow/f-flow.component.d.ts +2 -1
- package/f-flow.module.d.ts +8 -7
- package/f-minimap/domain/f-minimap.drag-handler.d.ts +1 -2
- package/f-minimap/f-minimap-canvas.directive.d.ts +1 -3
- package/f-node/domain/index.d.ts +2 -0
- package/f-node/domain/is-group.d.ts +1 -0
- package/f-node/f-group.directive.d.ts +40 -0
- package/f-node/f-node-base.d.ts +3 -0
- package/f-node/f-node.directive.d.ts +6 -4
- package/f-node/index.d.ts +2 -1
- package/f-node/providers.d.ts +2 -1
- package/f-selection-area/domain/index.d.ts +4 -1
- package/f-selection-area/domain/providers.d.ts +1 -0
- package/{f-draggable/selection-area → f-selection-area/domain}/selection-area-finalize/selection-area-finalize.execution.d.ts +1 -1
- package/{f-draggable/selection-area → f-selection-area/domain}/selection-area-finalize/selection-area-finalize.validator.d.ts +1 -1
- package/{f-draggable/selection-area → f-selection-area/domain}/selection-area-preparation/selection-area-preparation.execution.d.ts +1 -1
- package/f-selection-area/domain/selection-area-preparation/selection-area-preparation.request.d.ts +7 -0
- package/{f-draggable/selection-area → f-selection-area/domain}/selection-area-preparation/selection-area-preparation.validator.d.ts +1 -1
- package/{f-draggable/selection-area → f-selection-area/domain}/selection-area.drag-handle.d.ts +4 -5
- package/f-selection-area/f-selection-area-base.d.ts +2 -5
- package/f-selection-area/f-selection-area.component.d.ts +9 -6
- package/f-storage/f-components-store.d.ts +6 -2
- package/fesm2022/foblex-flow.mjs +2108 -1005
- package/fesm2022/foblex-flow.mjs.map +1 -1
- package/package.json +3 -3
- package/domain/get-connection.handler.d.ts +0 -12
- package/domain/get-external-nodes-rect/get-external-nodes-rect.execution.d.ts +0 -14
- package/domain/get-external-nodes-rect/get-external-nodes-rect.request.d.ts +0 -2
- package/domain/get-external-nodes-rect/index.d.ts +0 -2
- package/domain/get-incoming-connections.handler.d.ts +0 -13
- package/domain/get-outgoing-connections.handler.d.ts +0 -13
- package/domain/update-item-layer/index.d.ts +0 -2
- package/domain/update-item-layer/update-item-layer.execution.d.ts +0 -8
- package/esm2022/domain/get-connection.handler.mjs +0 -21
- package/esm2022/domain/get-external-nodes-rect/get-external-nodes-rect.execution.mjs +0 -35
- package/esm2022/domain/get-external-nodes-rect/get-external-nodes-rect.request.mjs +0 -3
- package/esm2022/domain/get-external-nodes-rect/index.mjs +0 -3
- package/esm2022/domain/get-incoming-connections.handler.mjs +0 -24
- package/esm2022/domain/get-outgoing-connections.handler.mjs +0 -24
- package/esm2022/domain/update-item-layer/index.mjs +0 -3
- package/esm2022/domain/update-item-layer/update-item-layer.execution.mjs +0 -28
- package/esm2022/domain/update-item-layer/update-item-layer.request.mjs +0 -9
- package/esm2022/f-draggable/e-f-draggable-type.mjs +0 -13
- package/esm2022/f-draggable/external-item/external-item-finalize/external-item-finalize.execution.mjs +0 -58
- package/esm2022/f-draggable/external-item/external-item-finalize/external-item-finalize.request.mjs +0 -7
- package/esm2022/f-draggable/external-item/external-item-finalize/external-item-finalize.validator.mjs +0 -26
- package/esm2022/f-draggable/external-item/external-item-finalize/index.mjs +0 -5
- package/esm2022/f-draggable/external-item/external-item-finalize/providers.mjs +0 -7
- package/esm2022/f-draggable/external-item/external-item-preparation/external-item-preparation.execution.mjs +0 -44
- package/esm2022/f-draggable/external-item/external-item-preparation/external-item-preparation.request.mjs +0 -7
- package/esm2022/f-draggable/external-item/external-item-preparation/external-item-preparation.validator.mjs +0 -30
- package/esm2022/f-draggable/external-item/external-item-preparation/index.mjs +0 -5
- package/esm2022/f-draggable/external-item/external-item-preparation/providers.mjs +0 -7
- package/esm2022/f-draggable/external-item/external-item.drag-handler.mjs +0 -38
- package/esm2022/f-draggable/external-item/f-create-node.event.mjs +0 -9
- package/esm2022/f-draggable/external-item/index.mjs +0 -6
- package/esm2022/f-draggable/external-item/providers.mjs +0 -7
- package/esm2022/f-draggable/selection-area/index.mjs +0 -5
- package/esm2022/f-draggable/selection-area/providers.mjs +0 -7
- package/esm2022/f-draggable/selection-area/selection-area-finalize/index.mjs +0 -5
- package/esm2022/f-draggable/selection-area/selection-area-finalize/providers.mjs +0 -7
- package/esm2022/f-draggable/selection-area/selection-area-finalize/selection-area-finalize.execution.mjs +0 -27
- package/esm2022/f-draggable/selection-area/selection-area-finalize/selection-area-finalize.request.mjs +0 -7
- package/esm2022/f-draggable/selection-area/selection-area-finalize/selection-area-finalize.validator.mjs +0 -26
- package/esm2022/f-draggable/selection-area/selection-area-preparation/index.mjs +0 -5
- package/esm2022/f-draggable/selection-area/selection-area-preparation/providers.mjs +0 -7
- package/esm2022/f-draggable/selection-area/selection-area-preparation/selection-area-preparation.execution.mjs +0 -41
- package/esm2022/f-draggable/selection-area/selection-area-preparation/selection-area-preparation.request.mjs +0 -7
- package/esm2022/f-draggable/selection-area/selection-area-preparation/selection-area-preparation.validator.mjs +0 -31
- package/esm2022/f-draggable/selection-area/selection-area.drag-handle.mjs +0 -57
- package/esm2022/f-node/is-node.mjs +0 -4
- package/esm2022/f-selection-area/domain/i-selection-area-rect.mjs +0 -2
- package/f-draggable/e-f-draggable-type.d.ts +0 -11
- package/f-draggable/external-item/providers.d.ts +0 -1
- package/f-draggable/selection-area/index.d.ts +0 -4
- package/f-draggable/selection-area/providers.d.ts +0 -1
- package/f-draggable/selection-area/selection-area-preparation/selection-area-preparation.request.d.ts +0 -5
- package/f-selection-area/domain/i-selection-area-rect.d.ts +0 -6
- /package/{f-draggable/external-item → f-external-item/domain}/external-item-finalize/external-item-finalize.request.d.ts +0 -0
- /package/{f-draggable/external-item → f-external-item/domain}/external-item-finalize/index.d.ts +0 -0
- /package/{f-draggable/external-item → f-external-item/domain}/external-item-finalize/providers.d.ts +0 -0
- /package/{f-draggable/external-item → f-external-item/domain}/external-item-preparation/external-item-preparation.request.d.ts +0 -0
- /package/{f-draggable/external-item → f-external-item/domain}/external-item-preparation/external-item-preparation.validator.d.ts +0 -0
- /package/{f-draggable/external-item → f-external-item/domain}/external-item-preparation/index.d.ts +0 -0
- /package/{f-draggable/external-item → f-external-item/domain}/external-item-preparation/providers.d.ts +0 -0
- /package/{f-draggable/external-item → f-external-item/domain}/f-create-node.event.d.ts +0 -0
- /package/{f-draggable/external-item → f-external-item/domain}/index.d.ts +0 -0
- /package/f-node/{is-node.d.ts → domain/is-node.d.ts} +0 -0
- /package/{f-draggable/selection-area → f-selection-area/domain}/selection-area-finalize/index.d.ts +0 -0
- /package/{f-draggable/selection-area → f-selection-area/domain}/selection-area-finalize/providers.d.ts +0 -0
- /package/{f-draggable/selection-area → f-selection-area/domain}/selection-area-finalize/selection-area-finalize.request.d.ts +0 -0
- /package/{f-draggable/selection-area → f-selection-area/domain}/selection-area-preparation/index.d.ts +0 -0
- /package/{f-draggable/selection-area → f-selection-area/domain}/selection-area-preparation/providers.d.ts +0 -0
package/README.md
CHANGED
|
@@ -35,7 +35,7 @@ manipulation and inter-node connections.
|
|
|
35
35
|
|
|
36
36
|
### Getting Started and Documentation
|
|
37
37
|
|
|
38
|
-
Visit our [Documentation](https://flow.foblex.
|
|
38
|
+
Visit our [Documentation](https://flow.foblex.com/docs/get-started) to learn how to install and use the library in your Angular project.
|
|
39
39
|
|
|
40
40
|
### Installation
|
|
41
41
|
|
|
@@ -60,7 +60,7 @@ Example:
|
|
|
60
60
|
|
|
61
61
|
### Support and Community
|
|
62
62
|
|
|
63
|
-
For questions, feedback, and support, visit the [Foblex Portal](https://www.foblex.com
|
|
63
|
+
For questions, feedback, and support, visit the [Foblex Portal](https://www.flow.foblex.com) to connect with the community and the development team.
|
|
64
64
|
You can also report [issues](https://github.com/Foblex/flow/issues) and request [features](https://github.com/Foblex/flow/discussions) on the [GitHub repository](https://github.com/Foblex/flow).
|
|
65
65
|
|
|
66
66
|
### License
|
package/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.execution.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { GetDeepChildrenNodesAndGroupsRequest } from './get-deep-children-nodes-and-groups.request';
|
|
2
|
+
import { FComponentsStore } from '../../f-storage';
|
|
3
|
+
import { FNodeBase } from '../../f-node';
|
|
4
|
+
import { IExecution } from '../../infrastructure';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class GetDeepChildrenNodesAndGroupsExecution implements IExecution<GetDeepChildrenNodesAndGroupsRequest, FNodeBase[]> {
|
|
7
|
+
private fComponentsStore;
|
|
8
|
+
constructor(fComponentsStore: FComponentsStore);
|
|
9
|
+
handle(request: GetDeepChildrenNodesAndGroupsRequest): FNodeBase[];
|
|
10
|
+
private getChildrenNodes;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GetDeepChildrenNodesAndGroupsExecution, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GetDeepChildrenNodesAndGroupsExecution>;
|
|
13
|
+
}
|
|
@@ -3,10 +3,10 @@ import { GetNodesRectRequest } from './get-nodes-rect.request';
|
|
|
3
3
|
import { FComponentsStore } from '../../f-storage';
|
|
4
4
|
import { IExecution } from '../../infrastructure';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class GetNodesRectExecution implements IExecution<GetNodesRectRequest, IRect> {
|
|
6
|
+
export declare class GetNodesRectExecution implements IExecution<GetNodesRectRequest, IRect | null> {
|
|
7
7
|
private fComponentsStore;
|
|
8
8
|
constructor(fComponentsStore: FComponentsStore);
|
|
9
|
-
handle(request: GetNodesRectRequest): IRect;
|
|
9
|
+
handle(request: GetNodesRectRequest): IRect | null;
|
|
10
10
|
private getNodesRects;
|
|
11
11
|
private getNodes;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<GetNodesRectExecution, never>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IRect } from '@foblex/core';
|
|
2
|
+
import { GetScaledNodeRectsWithFlowPositionRequest } from './get-scaled-node-rects-with-flow-position.request';
|
|
3
|
+
import { FComponentsStore } from '../../f-storage';
|
|
4
|
+
import { IExecution } from '../../infrastructure';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class GetScaledNodeRectsWithFlowPositionExecution implements IExecution<GetScaledNodeRectsWithFlowPositionRequest, IRect | null> {
|
|
7
|
+
private fComponentsStore;
|
|
8
|
+
constructor(fComponentsStore: FComponentsStore);
|
|
9
|
+
handle(request: GetScaledNodeRectsWithFlowPositionRequest): IRect | null;
|
|
10
|
+
private getNodesRects;
|
|
11
|
+
private getNodes;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GetScaledNodeRectsWithFlowPositionExecution, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GetScaledNodeRectsWithFlowPositionExecution>;
|
|
14
|
+
}
|
package/domain/index.d.ts
CHANGED
|
@@ -2,9 +2,10 @@ export * from './clear-selection';
|
|
|
2
2
|
export * from './create-connection-markers';
|
|
3
3
|
export * from './emit-transform-changes';
|
|
4
4
|
export * from './get-can-be-selected-items';
|
|
5
|
+
export * from './get-deep-children-nodes-and-groups';
|
|
5
6
|
export * from './get-connection-line';
|
|
6
7
|
export * from './get-element-rect-in-flow';
|
|
7
|
-
export * from './get-
|
|
8
|
+
export * from './get-scaled-node-rects-with-flow-position';
|
|
8
9
|
export * from './get-input-rect-in-flow';
|
|
9
10
|
export * from './get-nodes-rect';
|
|
10
11
|
export * from './get-output-rect-in-flow';
|
|
@@ -15,13 +16,11 @@ export * from './redraw-connections';
|
|
|
15
16
|
export * from './select';
|
|
16
17
|
export * from './select-all';
|
|
17
18
|
export * from './select-and-update-node-layer';
|
|
19
|
+
export * from './sort-item-layers';
|
|
18
20
|
export * from './subscribe-on-transform-changes';
|
|
19
21
|
export * from './intersections';
|
|
20
|
-
export * from './update-item-
|
|
22
|
+
export * from './update-item-and-children-layers';
|
|
21
23
|
export * from './cast-to-enum';
|
|
22
|
-
export * from './get-connection.handler';
|
|
23
|
-
export * from './get-incoming-connections.handler';
|
|
24
|
-
export * from './get-outgoing-connections.handler';
|
|
25
24
|
export * from './get-value-from-data-attr';
|
|
26
25
|
export * from './is-element-with-class';
|
|
27
26
|
export * from './providers';
|
|
@@ -2,18 +2,14 @@ import { FFlowMediator, IExecution } from '../../infrastructure';
|
|
|
2
2
|
import { IsConnectionUnderNodeRequest } from './is-connection-under-node.request';
|
|
3
3
|
import { FComponentsStore } from '../../f-storage';
|
|
4
4
|
import { FDraggableDataContext } from '../../f-draggable';
|
|
5
|
-
import { GetOutgoingConnectionsHandler } from '../get-outgoing-connections.handler';
|
|
6
|
-
import { GetIncomingConnectionsHandler } from '../get-incoming-connections.handler';
|
|
7
5
|
import * as i0 from "@angular/core";
|
|
8
6
|
export declare class IsConnectionUnderNodeExecution implements IExecution<IsConnectionUnderNodeRequest, void> {
|
|
9
7
|
private fComponentsStore;
|
|
10
8
|
private fDraggableDataContext;
|
|
11
9
|
private fMediator;
|
|
12
|
-
private getOutgoingConnectionsHandler;
|
|
13
|
-
private getIncomingConnectionsHandler;
|
|
14
10
|
private get transform();
|
|
15
11
|
private get flowHost();
|
|
16
|
-
constructor(fComponentsStore: FComponentsStore, fDraggableDataContext: FDraggableDataContext, fMediator: FFlowMediator
|
|
12
|
+
constructor(fComponentsStore: FComponentsStore, fDraggableDataContext: FDraggableDataContext, fMediator: FFlowMediator);
|
|
17
13
|
handle(): void;
|
|
18
14
|
private isValidRequest;
|
|
19
15
|
private getOutputsForNode;
|
package/domain/providers.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { GetIncomingConnectionsHandler } from './get-incoming-connections.handler';
|
|
2
|
-
import { GetOutgoingConnectionsHandler } from './get-outgoing-connections.handler';
|
|
3
|
-
import { GetConnectionHandler } from './get-connection.handler';
|
|
4
1
|
import { GetConnectionLineExecution } from './get-connection-line';
|
|
5
2
|
import { RedrawConnectionsExecution } from './redraw-connections';
|
|
6
3
|
import { GetOutputRectInFlowExecution } from './get-output-rect-in-flow';
|
|
@@ -11,13 +8,15 @@ import { GetNodesRectExecution } from './get-nodes-rect';
|
|
|
11
8
|
import { GetElementRectInFlowExecution } from './get-element-rect-in-flow';
|
|
12
9
|
import { GetInputRectInFlowExecution } from './get-input-rect-in-flow';
|
|
13
10
|
import { SelectExecution } from './select';
|
|
14
|
-
import {
|
|
11
|
+
import { MoveFrontElementsBeforeTargetElementExecution, UpdateItemAndChildrenLayersExecution } from './update-item-and-children-layers';
|
|
15
12
|
import { GetPositionInFlowExecution } from './get-position-in-flow';
|
|
16
13
|
import { CreateConnectionMarkersExecution } from './create-connection-markers';
|
|
17
14
|
import { GetCanBeSelectedItemsExecution } from './get-can-be-selected-items';
|
|
18
15
|
import { IsConnectionUnderNodeExecution } from './is-connection-under-node';
|
|
19
16
|
import { SelectAndUpdateNodeLayerExecution } from './select-and-update-node-layer';
|
|
20
|
-
import {
|
|
17
|
+
import { GetScaledNodeRectsWithFlowPositionExecution } from './get-scaled-node-rects-with-flow-position';
|
|
21
18
|
import { EmitTransformChangesExecution } from './emit-transform-changes';
|
|
22
19
|
import { SubscribeOnTransformChangesExecution } from './subscribe-on-transform-changes';
|
|
23
|
-
|
|
20
|
+
import { SortItemLayersExecution, SortItemsByParentExecution, SortNodeLayersExecution } from './sort-item-layers';
|
|
21
|
+
import { GetDeepChildrenNodesAndGroupsExecution } from './get-deep-children-nodes-and-groups';
|
|
22
|
+
export declare const COMMON_PROVIDERS: (typeof ClearSelectionExecution | typeof CreateConnectionMarkersExecution | typeof EmitTransformChangesExecution | typeof GetElementRectInFlowExecution | typeof GetCanBeSelectedItemsExecution | typeof GetDeepChildrenNodesAndGroupsExecution | typeof GetConnectionLineExecution | typeof GetScaledNodeRectsWithFlowPositionExecution | typeof GetInputRectInFlowExecution | typeof GetNodesRectExecution | typeof GetOutputRectInFlowExecution | typeof GetPositionInFlowExecution | typeof GetSelectionExecution | typeof IsConnectionUnderNodeExecution | typeof RedrawConnectionsExecution | typeof SelectExecution | typeof SelectAllExecution | typeof MoveFrontElementsBeforeTargetElementExecution | typeof UpdateItemAndChildrenLayersExecution | typeof SelectAndUpdateNodeLayerExecution | typeof SortNodeLayersExecution | typeof SortItemsByParentExecution | typeof SortItemLayersExecution | typeof SubscribeOnTransformChangesExecution)[];
|
|
@@ -2,13 +2,11 @@ import { IHandler } from '@foblex/core';
|
|
|
2
2
|
import { SelectAndUpdateNodeLayerRequest } from './select-and-update-node-layer.request';
|
|
3
3
|
import { FFlowMediator } from '../../infrastructure';
|
|
4
4
|
import { FDraggableDataContext } from '../../f-draggable';
|
|
5
|
-
import { FComponentsStore } from '../../f-storage';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare class SelectAndUpdateNodeLayerExecution implements IHandler<SelectAndUpdateNodeLayerRequest, void> {
|
|
8
7
|
private fDraggableDataContext;
|
|
9
|
-
private fComponentsStore;
|
|
10
8
|
private fMediator;
|
|
11
|
-
constructor(fDraggableDataContext: FDraggableDataContext,
|
|
9
|
+
constructor(fDraggableDataContext: FDraggableDataContext, fMediator: FFlowMediator);
|
|
12
10
|
handle(request: SelectAndUpdateNodeLayerRequest): void;
|
|
13
11
|
private selectNodeIfNotSelected;
|
|
14
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectAndUpdateNodeLayerExecution, never>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SortItemLayersRequest } from './sort-item-layers.request';
|
|
2
|
+
import { FFlowMediator, IExecution } from '../../infrastructure';
|
|
3
|
+
import { FComponentsStore } from '../../f-storage';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SortItemLayersExecution implements IExecution<SortItemLayersRequest, void> {
|
|
6
|
+
private fMediator;
|
|
7
|
+
private fComponentsStore;
|
|
8
|
+
constructor(fMediator: FFlowMediator, fComponentsStore: FComponentsStore);
|
|
9
|
+
handle(request: SortItemLayersRequest): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SortItemLayersExecution, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SortItemLayersExecution>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SortItemsByParentRequest } from './sort-items-by-parent.request';
|
|
2
|
+
import { WindowService } from '@foblex/core';
|
|
3
|
+
import { FFlowMediator, IExecution } from '../../../infrastructure';
|
|
4
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class SortItemsByParentExecution implements IExecution<SortItemsByParentRequest, void> {
|
|
7
|
+
private fComponentsStore;
|
|
8
|
+
private fMediator;
|
|
9
|
+
private windowService;
|
|
10
|
+
private fItemsContainer;
|
|
11
|
+
private get fItemsFromContainer();
|
|
12
|
+
constructor(fComponentsStore: FComponentsStore, fMediator: FFlowMediator, windowService: WindowService);
|
|
13
|
+
handle(request: SortItemsByParentRequest): void;
|
|
14
|
+
private getItems;
|
|
15
|
+
private getSortedChildrenItems;
|
|
16
|
+
private getChildrenGroups;
|
|
17
|
+
private moveChildrenItems;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SortItemsByParentExecution, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SortItemsByParentExecution>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SortNodeLayersRequest } from './sort-node-layers.request';
|
|
2
|
+
import { WindowService } from '@foblex/core';
|
|
3
|
+
import { FFlowMediator, IExecution } from '../../../infrastructure';
|
|
4
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class SortNodeLayersExecution implements IExecution<SortNodeLayersRequest, void> {
|
|
7
|
+
private fComponentsStore;
|
|
8
|
+
private fMediator;
|
|
9
|
+
private windowService;
|
|
10
|
+
private get fGroupsContainer();
|
|
11
|
+
private get fNodesContainer();
|
|
12
|
+
private get fNodesContainerElements();
|
|
13
|
+
constructor(fComponentsStore: FComponentsStore, fMediator: FFlowMediator, windowService: WindowService);
|
|
14
|
+
handle(request: SortNodeLayersRequest): void;
|
|
15
|
+
private getGroups;
|
|
16
|
+
private getSortedChildrenNodes;
|
|
17
|
+
private getChildrenNodes;
|
|
18
|
+
private moveChildrenNodes;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SortNodeLayersExecution, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SortNodeLayersExecution>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MoveFrontElementsBeforeTargetElementRequest } from './move-front-elements-before-target-element.request';
|
|
2
|
+
import { IExecution } from '../../../infrastructure';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MoveFrontElementsBeforeTargetElementExecution implements IExecution<MoveFrontElementsBeforeTargetElementRequest, void> {
|
|
5
|
+
handle(request: MoveFrontElementsBeforeTargetElementRequest): void;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MoveFrontElementsBeforeTargetElementExecution, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MoveFrontElementsBeforeTargetElementExecution>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare class MoveFrontElementsBeforeTargetElementRequest {
|
|
2
|
+
fItemsContainer: HTMLElement;
|
|
3
|
+
allElements: Element[];
|
|
4
|
+
elementsThatShouldBeInFront: Element[];
|
|
5
|
+
targetIndex: number;
|
|
6
|
+
constructor(fItemsContainer: HTMLElement, // fGroupsContainer || fNodesContainer || fConnectionsContainer
|
|
7
|
+
allElements: Element[], elementsThatShouldBeInFront: Element[], targetIndex: number);
|
|
8
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UpdateItemAndChildrenLayersRequest } from './update-item-and-children-layers.request';
|
|
2
|
+
import { FFlowMediator, IExecution } from '../../infrastructure';
|
|
3
|
+
import { FComponentsStore } from '../../f-storage';
|
|
4
|
+
import { WindowService } from '@foblex/core';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class UpdateItemAndChildrenLayersExecution implements IExecution<UpdateItemAndChildrenLayersRequest, void> {
|
|
7
|
+
private fComponentsStore;
|
|
8
|
+
private fMediator;
|
|
9
|
+
private windowService;
|
|
10
|
+
private get fGroupsContainer();
|
|
11
|
+
private get fNodesContainer();
|
|
12
|
+
private get fConnectionsContainer();
|
|
13
|
+
constructor(fComponentsStore: FComponentsStore, fMediator: FFlowMediator, windowService: WindowService);
|
|
14
|
+
handle(request: UpdateItemAndChildrenLayersRequest): void;
|
|
15
|
+
private handleGroup;
|
|
16
|
+
private handleNode;
|
|
17
|
+
private handleConnection;
|
|
18
|
+
private updateLayers;
|
|
19
|
+
private isAnythingNeedToBeMoved;
|
|
20
|
+
private getChildrenGroups;
|
|
21
|
+
private getChildrenNodes;
|
|
22
|
+
private getChildrenNodesAndGroups;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UpdateItemAndChildrenLayersExecution, never>;
|
|
24
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UpdateItemAndChildrenLayersExecution>;
|
|
25
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ISelectable } from '../../f-connection';
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class UpdateItemAndChildrenLayersRequest {
|
|
3
3
|
item: ISelectable;
|
|
4
4
|
itemContainer: HTMLElement;
|
|
5
5
|
constructor(item: ISelectable, itemContainer: HTMLElement);
|
|
@@ -10,9 +10,7 @@ let ClearSelectionExecution = class ClearSelectionExecution {
|
|
|
10
10
|
this.fDraggableDataContext = fDraggableDataContext;
|
|
11
11
|
}
|
|
12
12
|
handle(request) {
|
|
13
|
-
this.fDraggableDataContext.selectedItems.forEach((x) =>
|
|
14
|
-
x.deselect();
|
|
15
|
-
});
|
|
13
|
+
this.fDraggableDataContext.selectedItems.forEach((x) => x.deselect());
|
|
16
14
|
this.fDraggableDataContext.selectedItems = [];
|
|
17
15
|
this.fDraggableDataContext.isSelectedChanged = true;
|
|
18
16
|
}
|
|
@@ -26,4 +24,4 @@ export { ClearSelectionExecution };
|
|
|
26
24
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ClearSelectionExecution, decorators: [{
|
|
27
25
|
type: Injectable
|
|
28
26
|
}], ctorParameters: () => [{ type: i1.FDraggableDataContext }] });
|
|
29
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xlYXItc2VsZWN0aW9uLmV4ZWN1dGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZG9tYWluL2NsZWFyLXNlbGVjdGlvbi9jbGVhci1zZWxlY3Rpb24uZXhlY3V0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUNsRSxPQUFPLEVBQUUsVUFB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c7XG5cbkBJbmplY3RhYmxlKClcbkBGRXhlY3V0aW9uUmVnaXN0ZXIoQ2xlYXJTZWxlY3Rpb25SZXF1ZXN0KVxuZXhwb3J0IGNsYXNzIENsZWFyU2VsZWN0aW9uRXhlY3V0aW9uIGltcGxlbWVudHMgSUV4ZWN1dGlvbjxDbGVhclNlbGVjdGlvblJlcXVlc3QsIHZvaWQ+IHtcblxuICBjb25zdHJ1Y3RvcihcbiAgICBwcml2YXRlIGZEcmFnZ2FibGVEYXRhQ29udGV4dDogRkRyYWdnYWJsZURhdGFDb250ZXh0LFxuICApIHtcbiAgfVxuXG4gIHB1YmxpYyBoYW5kbGUocmVxdWVzdDogQ2xlYXJTZWxlY3Rpb25SZXF1ZXN0KTogdm9pZCB7XG4gICAgdGhpcy5mRHJhZ2dhYmxlRGF0YUNvbnRleHQuc2VsZWN0ZWRJdGVtcy5mb3JFYWNoKCh4KSA9PiB4LmRlc2VsZWN0KCkpO1xuICAgIHRoaXMuZkRyYWdnYWJsZURhdGFDb250ZXh0LnNlbGVjdGVkSXRlbXMgPSBbXTtcbiAgICB0aGlzLmZEcmFnZ2FibGVEYXRhQ29udGV4dC5pc1NlbGVjdGVkQ2hhbmdlZCA9IHRydWU7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -9,7 +9,7 @@ let CreateConnectionMarkersExecution = class CreateConnectionMarkersExecution {
|
|
|
9
9
|
const element = DomElementExtensions.createSvgElement('defs');
|
|
10
10
|
const fConnection = request.fConnection;
|
|
11
11
|
fConnection.fMarkers.forEach((marker) => {
|
|
12
|
-
const markerElement = this.createMarkerElement(marker, fConnection.
|
|
12
|
+
const markerElement = this.createMarkerElement(marker, fConnection.fId);
|
|
13
13
|
const clone = marker.hostElement.cloneNode(true);
|
|
14
14
|
clone.setAttribute('height', `${marker.height}`);
|
|
15
15
|
clone.setAttribute('width', `${marker.width}`);
|
|
@@ -46,4 +46,4 @@ export { CreateConnectionMarkersExecution };
|
|
|
46
46
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: CreateConnectionMarkersExecution, decorators: [{
|
|
47
47
|
type: Injectable
|
|
48
48
|
}] });
|
|
49
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
49
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRlLWNvbm5lY3Rpb24tbWFya2Vycy5leGVjdXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RvbWFpbi9jcmVhdGUtY29ubmVjdGlvbi1tYXJrZXJzL2NyZWF0ZS1jb25uZWN0aW9uLW1hcmtlcnMuZXhlY3V0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxjQUFjLENBQUM7QUFDdkUsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQUUsOEJBQThCLEVBQUUsTUFBTSxxQ0FBcUMsQ0FBQztBQUVyRixPQUFPLEVBQUUsa0JBQWtCLEVBQWMsTUFBTSxzQkFBc0IsQ0FBQzs7QUFJL0QsSUFBTSxnQ0FBZ0MsR0FBdEMsTUFBTSxnQ0FBZ0M7SUFFcEMsTUFBTSxDQUFDLE9BQXVDO1FBQ25ELE1BQU0sT0FBTyxHQUFtQixvQkFBb0IsQ0FBQyxnQkFBZ0IsQ0FBQyxNQUFNLENBQUMsQ0FBQztRQUM5RSxNQUFNLFdBQVcsR0FBRyxPQUFPLENBQUMsV0FBVyxDQUFDO1FBRXhDLFdBQVcsQ0FBQyxRQUFRLENBQUMsT0FBTyxDQUFDLENBQUMsTUFBTSxFQUFFLEVBQUU7WUFFdEMsTUFBTSxhQUFhLEdBQUcsSUFBSSxDQUFDLG1CQU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uICAgIGNvbnN0IG1hcmtlckVsZW1lbnQgPSBEb21FbGVtZW50RXh0ZW5zaW9ucy5jcmVhdGVTdmdFbGVtZW50KCdtYXJrZXInKTtcblxuICAgIG1hcmtlckVsZW1lbnQuc2V0QXR0cmlidXRlKCdpZCcsIHNhbml0aXplRWxlbWVudElkKG1hcmtlci50eXBlICsgJy0nICsgZkNvbm5lY3Rpb25JZCkpO1xuXG4gICAgbWFya2VyRWxlbWVudC5zZXRBdHRyaWJ1dGUoJ21hcmtlckhlaWdodCcsIGAkeyBtYXJrZXIuaGVpZ2h0IH1gKTtcbiAgICBtYXJrZXJFbGVtZW50LnNldEF0dHJpYnV0ZSgnbWFya2VyV2lkdGgnLCBgJHsgbWFya2VyLndpZHRoIH1gKTtcbiAgICBtYXJrZXJFbGVtZW50LnNldEF0dHJpYnV0ZSgnb3JpZW50JywgYCR7IG1hcmtlci5vcmllbnQgfWApO1xuICAgIG1hcmtlckVsZW1lbnQuc2V0QXR0cmlidXRlKCdyZWZYJywgYCR7IG1hcmtlci5yZWZYIH1gKTtcbiAgICBtYXJrZXJFbGVtZW50LnNldEF0dHJpYnV0ZSgncmVmWScsIGAkeyBtYXJrZXIucmVmWSB9YCk7XG4gICAgbWFya2VyRWxlbWVudC5zZXRBdHRyaWJ1dGUoJ21hcmtlclVuaXRzJywgYCR7IG1hcmtlci5tYXJrZXJVbml0cyB9YCk7XG5cbiAgICByZXR1cm4gbWFya2VyRWxlbWVudDtcbiAgfVxufVxuIl19
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import { GetDeepChildrenNodesAndGroupsRequest } from './get-deep-children-nodes-and-groups.request';
|
|
4
|
+
import { FExecutionRegister } from '../../infrastructure';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "../../f-storage";
|
|
7
|
+
let GetDeepChildrenNodesAndGroupsExecution = class GetDeepChildrenNodesAndGroupsExecution {
|
|
8
|
+
fComponentsStore;
|
|
9
|
+
constructor(fComponentsStore) {
|
|
10
|
+
this.fComponentsStore = fComponentsStore;
|
|
11
|
+
}
|
|
12
|
+
handle(request) {
|
|
13
|
+
return this.getChildrenNodes(request.fId);
|
|
14
|
+
}
|
|
15
|
+
getChildrenNodes(fId, visited = new Set()) {
|
|
16
|
+
if (visited.has(fId)) {
|
|
17
|
+
throw new Error('Circular reference detected in the node hierarchy. Node id: ' + fId);
|
|
18
|
+
}
|
|
19
|
+
visited.add(fId);
|
|
20
|
+
const result = this.fComponentsStore.fNodes.filter((x) => x.fParentId === fId);
|
|
21
|
+
result.forEach((x) => {
|
|
22
|
+
result.push(...this.getChildrenNodes(x.fId, visited));
|
|
23
|
+
});
|
|
24
|
+
return result;
|
|
25
|
+
}
|
|
26
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: GetDeepChildrenNodesAndGroupsExecution, deps: [{ token: i1.FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
27
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: GetDeepChildrenNodesAndGroupsExecution });
|
|
28
|
+
};
|
|
29
|
+
GetDeepChildrenNodesAndGroupsExecution = __decorate([
|
|
30
|
+
FExecutionRegister(GetDeepChildrenNodesAndGroupsRequest)
|
|
31
|
+
], GetDeepChildrenNodesAndGroupsExecution);
|
|
32
|
+
export { GetDeepChildrenNodesAndGroupsExecution };
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: GetDeepChildrenNodesAndGroupsExecution, decorators: [{
|
|
34
|
+
type: Injectable
|
|
35
|
+
}], ctorParameters: () => [{ type: i1.FComponentsStore }] });
|
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0LWRlZXAtY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pKTtcbiAgICB9KTtcbiAgICByZXR1cm4gcmVzdWx0O1xuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export class GetDeepChildrenNodesAndGroupsRequest {
|
|
2
|
+
fId;
|
|
3
|
+
constructor(fId) {
|
|
4
|
+
this.fId = fId;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0LWRlZXAtY2hpbGRyZW4tbm9kZXMtYW5kLWdyb3Vwcy5yZXF1ZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9kb21haW4vZ2V0LWRlZXAtY2hpbGRyZW4tbm9kZXMtYW5kLWdyb3Vwcy9nZXQtZGVlcC1jaGlsZHJlbi1ub2Rlcy1hbmQtZ3JvdXBzLnJlcXVlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxPQUFPLG9DQUFvQztJQUd0QztJQURULFlBQ1MsR0FBVztRQUFYLFFBQUcsR0FBSCxHQUFHLENBQVE7SUFFcEIsQ0FBQztDQUNGIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNsYXNzIEdldERlZXBDaGlsZHJlbk5vZGVzQW5kR3JvdXBzUmVxdWVzdCB7XG5cbiAgY29uc3RydWN0b3IoXG4gICAgcHVibGljIGZJZDogc3RyaW5nXG4gICkge1xuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './get-deep-children-nodes-and-groups.execution';
|
|
2
|
+
export * from './get-deep-children-nodes-and-groups.request';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RvbWFpbi9nZXQtZGVlcC1jaGlsZHJlbi1ub2Rlcy1hbmQtZ3JvdXBzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsZ0RBQWdELENBQUM7QUFFL0QsY0FBYyw4Q0FBOEMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZ2V0LWRlZXAtY2hpbGRyZW4tbm9kZXMtYW5kLWdyb3Vwcy5leGVjdXRpb24nO1xuXG5leHBvcnQgKiBmcm9tICcuL2dldC1kZWVwLWNoaWxkcmVuLW5vZGVzLWFuZC1ncm91cHMucmVxdWVzdCc7XG4iXX0=
|
|
@@ -29,4 +29,4 @@ export { GetNodesRectExecution };
|
|
|
29
29
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: GetNodesRectExecution, decorators: [{
|
|
30
30
|
type: Injectable
|
|
31
31
|
}], ctorParameters: () => [{ type: i1.FComponentsStore }] });
|
|
32
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
32
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0LW5vZGVzLXJlY3QuZXhlY3V0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9kb21haW4vZ2V0LW5vZGVzLXJlY3QvZ2V0LW5vZGVzLXJlY3QuZXhlY3V0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQVMsY0FBYyxFQUFFLE1BQU0sY0FBYyxDQUFDO0FBQ3JELE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQy9ELE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQ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odeRectsWithFlowPositionRequest } from './get-scaled-node-rects-with-flow-position.request';
|
|
4
|
+
import { Injectable } from '@angular/core';
|
|
5
|
+
import { FExecutionRegister } from '../../infrastructure';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "../../f-storage";
|
|
8
|
+
let GetScaledNodeRectsWithFlowPositionExecution = class GetScaledNodeRectsWithFlowPositionExecution {
|
|
9
|
+
fComponentsStore;
|
|
10
|
+
constructor(fComponentsStore) {
|
|
11
|
+
this.fComponentsStore = fComponentsStore;
|
|
12
|
+
}
|
|
13
|
+
handle(request) {
|
|
14
|
+
return RectExtensions.union(this.getNodesRects());
|
|
15
|
+
}
|
|
16
|
+
getNodesRects() {
|
|
17
|
+
return this.getNodes().map((x) => {
|
|
18
|
+
const rect = RectExtensions.fromElement(x.hostElement);
|
|
19
|
+
return RectExtensions.initialize(x.position.x, x.position.y, rect.width, rect.height);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
getNodes() {
|
|
23
|
+
return this.fComponentsStore.fNodes;
|
|
24
|
+
}
|
|
25
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: GetScaledNodeRectsWithFlowPositionExecution, deps: [{ token: i1.FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
26
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: GetScaledNodeRectsWithFlowPositionExecution });
|
|
27
|
+
};
|
|
28
|
+
GetScaledNodeRectsWithFlowPositionExecution = __decorate([
|
|
29
|
+
FExecutionRegister(GetScaledNodeRectsWithFlowPositionRequest)
|
|
30
|
+
], GetScaledNodeRectsWithFlowPositionExecution);
|
|
31
|
+
export { GetScaledNodeRectsWithFlowPositionExecution };
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: GetScaledNodeRectsWithFlowPositionExecution, decorators: [{
|
|
33
|
+
type: Injectable
|
|
34
|
+
}], ctorParameters: () => [{ type: i1.FComponentsStore }] });
|
|
35
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0LXNjYWxlZC1ub2RlLXJlY3RzLXdpdGgtZmxvdy1wb3NpdGlvbi5leGVjdXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RvbWFpbi9nZXQtc2NhbGVkLW5vZGUtcmVjdHMtd2l0aC1mbG93LXBvc2l0aW9uL2dldC1zY2FsZWQtbm9kZS1yZWN0cy13aXRoLWZsb3ctcG9zaXRpb24uZXhlY3V0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQVMsY0FBYyxFQUFFLE1BQU0sY0FBYyxDQUFDO0FBQ3JELE9BQU8sRUFBRSx5Q0FBeUMsRUFBRSxNQUFNLG9EQUFvRCxDQUFDO0FBQy9HLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFM0MsT0FBTyxFQUFFLGtCQUFrQixFQUFjLE1BQU0sc0JBQXNCLENBQUM7OztBQUsvRCxJQUFNLDJDQUEyQyxHQUFqRCxNQUFNLDJDQUEyQztJQUc1QztJQURWLFlBQ1UsZ0JBQWtDO1FBQWxDLHFCQUFnQixHQUFoQixnQkFBZ0IsQ0FBa0I7SUFFNUMsQ0FBQztJQUVNLE1BQU0sQ0FBQyxPQUFrRDtRQUM5RCxPQUFPLGNBQWMsQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLGFBQWEsRUFBRSxDQUFDLENBQUM7SUFDcEQsQ0FBQztJQUVPLGFBQWE7UUFDbkIsT0FBTyxJQUFJLENBQUMsUUFBUSxFQUFFLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxFQUFFLEV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wb25lbnRzU3RvcmUuZk5vZGVzO1xuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export class GetScaledNodeRectsWithFlowPositionRequest {
|
|
2
|
+
}
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0LXNjYWxlZC1ub2RlLXJlY3RzLXdpdGgtZmxvdy1wb3NpdGlvbi5yZXF1ZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9kb21haW4vZ2V0LXNjYWxlZC1ub2RlLXJlY3RzLXdpdGgtZmxvdy1wb3NpdGlvbi9nZXQtc2NhbGVkLW5vZGUtcmVjdHMtd2l0aC1mbG93LXBvc2l0aW9uLnJlcXVlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxPQUFPLHlDQUF5QztDQUVyRCIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjbGFzcyBHZXRTY2FsZWROb2RlUmVjdHNXaXRoRmxvd1Bvc2l0aW9uUmVxdWVzdCB7XG5cbn1cbiJdfQ==
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './get-scaled-node-rects-with-flow-position.execution';
|
|
2
|
+
export * from './get-scaled-node-rects-with-flow-position.request';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RvbWFpbi9nZXQtc2NhbGVkLW5vZGUtcmVjdHMtd2l0aC1mbG93LXBvc2l0aW9uL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsc0RBQXNELENBQUM7QUFFckUsY0FBYyxvREFBb0QsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZ2V0LXNjYWxlZC1ub2RlLXJlY3RzLXdpdGgtZmxvdy1wb3NpdGlvbi5leGVjdXRpb24nO1xuXG5leHBvcnQgKiBmcm9tICcuL2dldC1zY2FsZWQtbm9kZS1yZWN0cy13aXRoLWZsb3ctcG9zaXRpb24ucmVxdWVzdCc7XG4iXX0=
|
package/esm2022/domain/index.mjs
CHANGED
|
@@ -2,9 +2,10 @@ export * from './clear-selection';
|
|
|
2
2
|
export * from './create-connection-markers';
|
|
3
3
|
export * from './emit-transform-changes';
|
|
4
4
|
export * from './get-can-be-selected-items';
|
|
5
|
+
export * from './get-deep-children-nodes-and-groups';
|
|
5
6
|
export * from './get-connection-line';
|
|
6
7
|
export * from './get-element-rect-in-flow';
|
|
7
|
-
export * from './get-
|
|
8
|
+
export * from './get-scaled-node-rects-with-flow-position';
|
|
8
9
|
export * from './get-input-rect-in-flow';
|
|
9
10
|
export * from './get-nodes-rect';
|
|
10
11
|
export * from './get-output-rect-in-flow';
|
|
@@ -15,14 +16,12 @@ export * from './redraw-connections';
|
|
|
15
16
|
export * from './select';
|
|
16
17
|
export * from './select-all';
|
|
17
18
|
export * from './select-and-update-node-layer';
|
|
19
|
+
export * from './sort-item-layers';
|
|
18
20
|
export * from './subscribe-on-transform-changes';
|
|
19
21
|
export * from './intersections';
|
|
20
|
-
export * from './update-item-
|
|
22
|
+
export * from './update-item-and-children-layers';
|
|
21
23
|
export * from './cast-to-enum';
|
|
22
|
-
export * from './get-connection.handler';
|
|
23
|
-
export * from './get-incoming-connections.handler';
|
|
24
|
-
export * from './get-outgoing-connections.handler';
|
|
25
24
|
export * from './get-value-from-data-attr';
|
|
26
25
|
export * from './is-element-with-class';
|
|
27
26
|
export * from './providers';
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJ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