@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
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Point, RectExtensions } from '@foblex/core';
|
|
2
|
+
import { EmitTransformChangesRequest } from '../../domain';
|
|
3
|
+
import { GetCanBeSelectedItemsRequest } from '../../domain/get-can-be-selected-items/get-can-be-selected-items-request';
|
|
4
|
+
export class SelectionAreaDragHandle {
|
|
5
|
+
fComponentsStore;
|
|
6
|
+
fSelectionArea;
|
|
7
|
+
fDraggableDataContext;
|
|
8
|
+
fMediator;
|
|
9
|
+
canBeSelected = [];
|
|
10
|
+
selectedByMove = [];
|
|
11
|
+
get canvasPosition() {
|
|
12
|
+
return Point.fromPoint(this.fComponentsStore.fCanvas.transform.position).add(this.fComponentsStore.fCanvas.transform.scaledPosition);
|
|
13
|
+
}
|
|
14
|
+
constructor(fComponentsStore, fSelectionArea, fDraggableDataContext, fMediator) {
|
|
15
|
+
this.fComponentsStore = fComponentsStore;
|
|
16
|
+
this.fSelectionArea = fSelectionArea;
|
|
17
|
+
this.fDraggableDataContext = fDraggableDataContext;
|
|
18
|
+
this.fMediator = fMediator;
|
|
19
|
+
}
|
|
20
|
+
initialize() {
|
|
21
|
+
this.canBeSelected = this.fMediator.send(new GetCanBeSelectedItemsRequest());
|
|
22
|
+
this.fSelectionArea.show();
|
|
23
|
+
this.fSelectionArea.draw(RectExtensions.initialize(this.fDraggableDataContext.onPointerDownPosition.x, this.fDraggableDataContext.onPointerDownPosition.y));
|
|
24
|
+
}
|
|
25
|
+
move(difference) {
|
|
26
|
+
const currentPoint = Point.fromPoint(difference).add(this.fDraggableDataContext.onPointerDownPosition);
|
|
27
|
+
const x = Math.min(this.fDraggableDataContext.onPointerDownPosition.x, currentPoint.x);
|
|
28
|
+
const y = Math.min(this.fDraggableDataContext.onPointerDownPosition.y, currentPoint.y);
|
|
29
|
+
const width = Math.abs(difference.x);
|
|
30
|
+
const height = Math.abs(difference.y);
|
|
31
|
+
this.fSelectionArea.draw(RectExtensions.initialize(x, y, width, height));
|
|
32
|
+
this.selectedByMove = [];
|
|
33
|
+
this.canBeSelected.forEach((item) => {
|
|
34
|
+
item.element.deselect();
|
|
35
|
+
const itemRect = RectExtensions.addPoint(item.rect, this.canvasPosition);
|
|
36
|
+
const isIntersect = RectExtensions.intersectionWithRect(itemRect, RectExtensions.initialize(x, y, width, height));
|
|
37
|
+
if (isIntersect) {
|
|
38
|
+
item.element.select();
|
|
39
|
+
this.selectedByMove.push(item.element);
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
this.fMediator.send(new EmitTransformChangesRequest());
|
|
43
|
+
}
|
|
44
|
+
complete() {
|
|
45
|
+
this.fSelectionArea.hide();
|
|
46
|
+
this.fDraggableDataContext.selectedItems.push(...this.selectedByMove);
|
|
47
|
+
if (this.selectedByMove.length > 0) {
|
|
48
|
+
this.fDraggableDataContext.isSelectedChanged = true;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0aW9uLWFyZWEuZHJhZy1oYW5kbGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2Ytc2VsZWN0aW9uLWFyZWEvZG9tYWluL3NlbGVjdGlvbi1hcmVhLmRyYWctaGFuZGxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBVSxLQUFLLEVBQUUsY0FBYyxFQUFFLE1BQU0sY0FBYyxDQUFDO0FBRTdELE9BQU8sRUFBRSwyQkFBMkIsRUFBdUIsTUFBTSxjQUFjLENBQUM7QUFHaEYsT0FBTyxFQUFFLDRCQUE0QixFQUFFLE1BQU0sMEVBQTBFLENBQUM7QUFJeEgsTUFBTSxPQUFPLHVCQUF1QjtJQVd4QjtJQUNBO0lBQ0E7SUFDQTtJQVpGLGFBQWEsR0FBMEIsRUFBRSxDQUFDO0lBRTFDLGNBQWMsR0FBa0IsRUFBRSxDQUFDO0lBRTNDLElBQVksY0FBYztRQUN4QixPQUFPLEtBQUssQ0FBQyxTQUFTLENBQUMsSUFBSSxDQUFDLGdCQUFnQixDQUFDLE9BQVEsQ0FBQyxTQUFTLENBQUMsUUFBUSxDQUFDLENBQUMsR0FBRyxD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AgICAgdGhpcy5mRHJhZ2dhYmxlRGF0YUNvbnRleHQuaXNTZWxlY3RlZENoYW5nZWQgPSB0cnVlO1xuICAgIH1cbiAgfVxufVxuIl19
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Directive
|
|
1
|
+
import { Directive } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export const F_SELECTION_AREA = new InjectionToken('F_SELECTION_AREA');
|
|
4
3
|
export class FSelectionAreaBase {
|
|
5
4
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FSelectionAreaBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6
5
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.0", type: FSelectionAreaBase, ngImport: i0 });
|
|
@@ -8,4 +7,4 @@ export class FSelectionAreaBase {
|
|
|
8
7
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FSelectionAreaBase, decorators: [{
|
|
9
8
|
type: Directive
|
|
10
9
|
}] });
|
|
11
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1zZWxlY3Rpb24tYXJlYS1iYXNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9mLXNlbGVjdGlvbi1hcmVhL2Ytc2VsZWN0aW9uLWFyZWEtYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQUcxQyxNQUFNLE9BQWdCLGtCQUFrQjt1R0FBbEIsa0JBQWtCOzJGQUFsQixrQkFBa0I7OzJGQUFsQixrQkFBa0I7a0JBRHZDLFNBQVMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJSGFzSG9zdEVsZW1lbnQsIElSZWN0IH0gZnJvbSAnQGZvYmxleC9jb3JlJztcbmltcG9ydCB7IERpcmVjdGl2ZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5ARGlyZWN0aXZlKClcbmV4cG9ydCBhYnN0cmFjdCBjbGFzcyBGU2VsZWN0aW9uQXJlYUJhc2UgaW1wbGVtZW50cyBJSGFzSG9zdEVsZW1lbnQge1xuXG4gIHB1YmxpYyBhYnN0cmFjdCBob3N0RWxlbWVudDogSFRNTEVsZW1lbnQgfCBTVkdFbGVtZW50O1xuXG4gIHB1YmxpYyBhYnN0cmFjdCBoaWRlKCk6IHZvaWQ7XG5cbiAgcHVibGljIGFic3RyYWN0IHNob3coKTogdm9pZDtcblxuICBwdWJsaWMgYWJzdHJhY3QgZHJhdyhvYmplY3Q6IElSZWN0KTogdm9pZDtcbn1cbiJdfQ==
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { Component } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { FSelectionAreaBase } from './f-selection-area-base';
|
|
3
|
+
import { F_DRAG_AND_DROP_PLUGIN } from '../f-draggable';
|
|
4
|
+
import { SelectionAreaFinalizeRequest, SelectionAreaPreparationRequest } from './domain';
|
|
3
5
|
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "../
|
|
6
|
+
import * as i1 from "../infrastructure";
|
|
5
7
|
export class FSelectionAreaComponent extends FSelectionAreaBase {
|
|
6
8
|
elementReference;
|
|
7
|
-
|
|
9
|
+
fMediator;
|
|
8
10
|
get hostElement() {
|
|
9
11
|
return this.elementReference.nativeElement;
|
|
10
12
|
}
|
|
11
|
-
constructor(elementReference,
|
|
13
|
+
constructor(elementReference, fMediator) {
|
|
12
14
|
super();
|
|
13
15
|
this.elementReference = elementReference;
|
|
14
|
-
this.
|
|
16
|
+
this.fMediator = fMediator;
|
|
15
17
|
}
|
|
16
18
|
ngOnInit() {
|
|
17
|
-
this.fDraggableDataContext.fSelectionArea = this;
|
|
18
19
|
this.hostElement.style.display = 'none';
|
|
19
20
|
}
|
|
20
21
|
hide() {
|
|
@@ -25,14 +26,20 @@ export class FSelectionAreaComponent extends FSelectionAreaBase {
|
|
|
25
26
|
}
|
|
26
27
|
draw(object) {
|
|
27
28
|
const style = this.hostElement.style;
|
|
28
|
-
style.left = object.
|
|
29
|
-
style.top = object.
|
|
29
|
+
style.left = object.x + 'px';
|
|
30
|
+
style.top = object.y + 'px';
|
|
30
31
|
style.width = object.width + 'px';
|
|
31
32
|
style.height = object.height + 'px';
|
|
32
33
|
}
|
|
33
|
-
|
|
34
|
+
onPointerDown(event) {
|
|
35
|
+
this.fMediator.send(new SelectionAreaPreparationRequest(event, this));
|
|
36
|
+
}
|
|
37
|
+
onPointerUp(event) {
|
|
38
|
+
this.fMediator.send(new SelectionAreaFinalizeRequest(event));
|
|
39
|
+
}
|
|
40
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FSelectionAreaComponent, deps: [{ token: i0.ElementRef }, { token: i1.FFlowMediator }], target: i0.ɵɵFactoryTarget.Component });
|
|
34
41
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: FSelectionAreaComponent, selector: "f-selection-area", host: { classAttribute: "f-selection-area f-component" }, providers: [
|
|
35
|
-
{ provide:
|
|
42
|
+
{ provide: F_DRAG_AND_DROP_PLUGIN, useExisting: FSelectionAreaComponent },
|
|
36
43
|
], usesInheritance: true, ngImport: i0, template: ``, isInline: true, styles: [":host{position:absolute}\n"] });
|
|
37
44
|
}
|
|
38
45
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FSelectionAreaComponent, decorators: [{
|
|
@@ -40,7 +47,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
40
47
|
args: [{ selector: "f-selection-area", template: ``, host: {
|
|
41
48
|
'class': 'f-selection-area f-component'
|
|
42
49
|
}, providers: [
|
|
43
|
-
{ provide:
|
|
50
|
+
{ provide: F_DRAG_AND_DROP_PLUGIN, useExisting: FSelectionAreaComponent },
|
|
44
51
|
], styles: [":host{position:absolute}\n"] }]
|
|
45
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.
|
|
46
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
52
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.FFlowMediator }] });
|
|
53
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1zZWxlY3Rpb24tYXJlYS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2Ytc2VsZWN0aW9uLWFyZWEvZi1zZWxlY3Rpb24tYXJlYS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBc0IsTUFBTSxlQUFlLENBQUM7QUFDOUQsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFDN0QsT0FBTyxFQUFFLHNCQUFzQixFQUF1QixNQUFNLGdCQUFnQixDQUFDO0FBRzdFLE9BQU8sRUFBRSw0QkFBNEIsRUFBRSwrQkFBK0IsRUFBRSxNQUFNLFVBQVUsQ0FBQzs7O0FBYXpGLE1BQU0sT0FBTyx1QkFBd0IsU0FBUSxrQkFBa0I7SUFPakQ7SUFDQTtJQU5aLElBQW9CLFdBQVc7UUFDN0IsT0FBTyxJQUFJLENBQUMsZ0JBQWdCLENBQUMsYUFBYSxDQUFDO0lBQzdDLENBQUM7SUFFRCxZQUNZLGdCQUF5QyxFQUN6QyxTQUF3QjtRQU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bnQuc3R5bGUuZGlzcGxheSA9ICdibG9jayc7XG4gIH1cblxuICBwdWJsaWMgb3ZlcnJpZGUgZHJhdyhvYmplY3Q6IElSZWN0KTogdm9pZCB7XG4gICAgY29uc3Qgc3R5bGUgPSB0aGlzLmhvc3RFbGVtZW50LnN0eWxlO1xuICAgIHN0eWxlLmxlZnQgPSBvYmplY3QueCArICdweCc7XG4gICAgc3R5bGUudG9wID0gb2JqZWN0LnkgKyAncHgnO1xuICAgIHN0eWxlLndpZHRoID0gb2JqZWN0LndpZHRoICsgJ3B4JztcbiAgICBzdHlsZS5oZWlnaHQgPSBvYmplY3QuaGVpZ2h0ICsgJ3B4JztcbiAgfVxuXG4gIHB1YmxpYyBvblBvaW50ZXJEb3duKGV2ZW50OiBJUG9pbnRlckV2ZW50KTogdm9pZCB7XG4gICAgdGhpcy5mTWVkaWF0b3Iuc2VuZChuZXcgU2VsZWN0aW9uQXJlYVByZXBhcmF0aW9uUmVxdWVzdChldmVudCwgdGhpcykpO1xuICB9XG5cbiAgcHVibGljIG9uUG9pbnRlclVwKGV2ZW50OiBJUG9pbnRlckV2ZW50KTogdm9pZCB7XG4gICAgdGhpcy5mTWVkaWF0b3Iuc2VuZChuZXcgU2VsZWN0aW9uQXJlYUZpbmFsaXplUmVxdWVzdChldmVudCkpO1xuICB9XG59XG4iXX0=
|
|
@@ -2,7 +2,14 @@ import { Injectable } from '@angular/core';
|
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export class FComponentsStore {
|
|
5
|
-
|
|
5
|
+
componentsDataChanges = new Subject();
|
|
6
|
+
get componentsData$() {
|
|
7
|
+
return this.componentsDataChanges.asObservable();
|
|
8
|
+
}
|
|
9
|
+
componentsCountChanges = new Subject();
|
|
10
|
+
get componentsCount$() {
|
|
11
|
+
return this.componentsCountChanges.asObservable();
|
|
12
|
+
}
|
|
6
13
|
get flowHost() {
|
|
7
14
|
return this.fFlow?.hostElement;
|
|
8
15
|
}
|
|
@@ -25,19 +32,22 @@ export class FComponentsStore {
|
|
|
25
32
|
}
|
|
26
33
|
addComponent(collection, component) {
|
|
27
34
|
collection.push(component);
|
|
28
|
-
this.
|
|
35
|
+
this.componentsCountChanges.next();
|
|
29
36
|
}
|
|
30
37
|
removeComponent(collection, component) {
|
|
31
38
|
const index = collection.indexOf(component);
|
|
32
39
|
if (index > -1) {
|
|
33
40
|
collection.splice(index, 1);
|
|
34
|
-
this.
|
|
41
|
+
this.componentsCountChanges.next();
|
|
35
42
|
}
|
|
36
43
|
}
|
|
44
|
+
componentDataChanged() {
|
|
45
|
+
this.componentsDataChanges.next();
|
|
46
|
+
}
|
|
37
47
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FComponentsStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
38
48
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FComponentsStore });
|
|
39
49
|
}
|
|
40
50
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FComponentsStore, decorators: [{
|
|
41
51
|
type: Injectable
|
|
42
52
|
}] });
|
|
43
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
53
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1jb21wb25lbnRzLXN0b3JlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9mLXN0b3JhZ2UvZi1jb21wb25lbnRzLXN0b3JlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFjLE9BQU8sRUFBRSxNQUFNLE1BQU0sQ0FBQzs7Q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GxlY3Rpb246IFRbXSwgY29tcG9uZW50OiBUKTogdm9pZCB7XG4gICAgY29uc3QgaW5kZXggPSBjb2xsZWN0aW9uLmluZGV4T2YoY29tcG9uZW50KTtcbiAgICBpZiAoaW5kZXggPiAtMSkge1xuICAgICAgY29sbGVjdGlvbi5zcGxpY2UoaW5kZXgsIDEpO1xuICAgICAgdGhpcy5jb21wb25lbnRzQ291bnRDaGFuZ2VzLm5leHQoKTtcbiAgICB9XG4gIH1cblxuICBwdWJsaWMgY29tcG9uZW50RGF0YUNoYW5nZWQoKTogdm9pZCB7XG4gICAgdGhpcy5jb21wb25lbnRzRGF0YUNoYW5nZXMubmV4dCgpO1xuICB9XG59XG4iXX0=
|
|
@@ -13,6 +13,7 @@ export declare abstract class FCanvasBase extends MIXIN_BASE implements IHasHost
|
|
|
13
13
|
abstract fCanvasChange: EventEmitter<FCanvasChangeEvent>;
|
|
14
14
|
abstract fNodes: FNodeBase[];
|
|
15
15
|
abstract hostElement: HTMLElement;
|
|
16
|
+
abstract fGroupsContainer: ElementRef<HTMLElement>;
|
|
16
17
|
abstract fNodesContainer: ElementRef<HTMLElement>;
|
|
17
18
|
abstract fConnectionsContainer: ElementRef<HTMLElement>;
|
|
18
19
|
protected constructor();
|
|
@@ -15,6 +15,7 @@ export declare class FCanvasComponent extends FCanvasBase implements OnInit {
|
|
|
15
15
|
set scale(value: number | undefined);
|
|
16
16
|
get fNodes(): FNodeBase[];
|
|
17
17
|
get hostElement(): HTMLElement;
|
|
18
|
+
fGroupsContainer: ElementRef<HTMLElement>;
|
|
18
19
|
fNodesContainer: ElementRef<HTMLElement>;
|
|
19
20
|
fConnectionsContainer: ElementRef<HTMLElement>;
|
|
20
21
|
constructor(elementReference: ElementRef<HTMLElement>, fMediator: FFlowMediator, fComponentsStore: FComponentsStore);
|
|
@@ -24,5 +25,5 @@ export declare class FCanvasComponent extends FCanvasBase implements OnInit {
|
|
|
24
25
|
fitToScreen(toCenter?: IPoint, animated?: boolean): void;
|
|
25
26
|
oneToOne(): void;
|
|
26
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<FCanvasComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FCanvasComponent, "f-canvas", ["fComponent"], { "position": { "alias": "position"; "required": false; }; "scale": { "alias": "scale"; "required": false; }; }, { "fCanvasChange": "fCanvasChange"; }, never, ["f-connection", "f-connection-for-create", "[
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FCanvasComponent, "f-canvas", ["fComponent"], { "position": { "alias": "position"; "required": false; }; "scale": { "alias": "scale"; "required": false; }; }, { "fCanvasChange": "fCanvasChange"; }, never, ["[fGroup]", "f-connection", "f-connection-for-create", "[fNode]"], false, never>;
|
|
28
29
|
}
|
|
@@ -24,7 +24,7 @@ declare const MIXIN_BASE: import("@foblex/core").Constructor<ISelectable> & impo
|
|
|
24
24
|
};
|
|
25
25
|
export declare abstract class FConnectionBase extends MIXIN_BASE implements IHasHostElement, ISelectable, ICanChangeConnectionVisibility, IHasStateChanges, IHasConnectionColor, IHasConnectionFromTo, IHasConnectionText {
|
|
26
26
|
private cFactory;
|
|
27
|
-
abstract
|
|
27
|
+
abstract fId: string;
|
|
28
28
|
abstract fStartColor: string;
|
|
29
29
|
abstract fEndColor: string;
|
|
30
30
|
abstract fOutputId: string;
|
|
@@ -48,6 +48,7 @@ export declare abstract class FConnectionBase extends MIXIN_BASE implements IHas
|
|
|
48
48
|
abstract fTextComponent: IConnectionText;
|
|
49
49
|
abstract fText: string;
|
|
50
50
|
abstract fConnectionCenter: ElementRef<HTMLDivElement>;
|
|
51
|
+
private penultimatePoint;
|
|
51
52
|
protected constructor(elementReference: ElementRef<HTMLElement>, cFactory: FConnectionFactory);
|
|
52
53
|
initialize(): void;
|
|
53
54
|
isContains(element: HTMLElement | SVGElement): boolean;
|
|
@@ -7,7 +7,7 @@ export declare class FConnectionDragHandleComponent implements IHasHostElement {
|
|
|
7
7
|
readonly class: string;
|
|
8
8
|
get hostElement(): SVGCircleElement;
|
|
9
9
|
constructor(elementReference: ElementRef<SVGCircleElement>);
|
|
10
|
-
redraw(
|
|
10
|
+
redraw(penultimatePoint: IPoint, endPoint: IPoint): void;
|
|
11
11
|
private calculateCircleCenter;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<FConnectionDragHandleComponent, never>;
|
|
13
13
|
static ɵcmp: i0.ɵɵComponentDeclaration<FConnectionDragHandleComponent, "circle[f-connection-drag-handle]", never, {}, {}, never, never, false, never>;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { ElementRef, OnDestroy, OnInit, QueryList } from "@angular/core";
|
|
2
|
-
import {
|
|
2
|
+
import { FConnectionDragHandleComponent, FConnectionSelectionComponent, IConnectionGradient, IConnectionPath, IConnectionText } from '../common';
|
|
3
3
|
import { EFConnectionBehavior } from '../common';
|
|
4
4
|
import { EFConnectionType } from '../common';
|
|
5
5
|
import { FComponentsStore } from '../../f-storage';
|
|
6
6
|
import { FMarkerBase } from '../f-marker';
|
|
7
7
|
import { FConnectionCenterDirective } from '../f-connection-center';
|
|
8
8
|
import { FConnectionFactory } from '../f-connection-builder';
|
|
9
|
+
import { FConnectionBase } from '../common/f-connection-base';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
export declare class FConnectionComponent extends FConnectionBase implements OnInit, OnDestroy {
|
|
11
12
|
private fComponentsStore;
|
|
12
|
-
|
|
13
|
+
fId: string;
|
|
13
14
|
private _fText;
|
|
14
15
|
set fText(value: string);
|
|
15
16
|
get fText(): string;
|
|
@@ -53,5 +54,5 @@ export declare class FConnectionComponent extends FConnectionBase implements OnI
|
|
|
53
54
|
ngOnInit(): void;
|
|
54
55
|
ngOnDestroy(): void;
|
|
55
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<FConnectionComponent, never>;
|
|
56
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FConnectionComponent, "f-connection", ["fComponent"], { "
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FConnectionComponent, "f-connection", ["fComponent"], { "fId": { "alias": "fConnectionId"; "required": false; }; "fText": { "alias": "fText"; "required": false; }; "fStartColor": { "alias": "fStartColor"; "required": false; }; "fEndColor": { "alias": "fEndColor"; "required": false; }; "fOutputId": { "alias": "fOutputId"; "required": false; }; "fInputId": { "alias": "fInputId"; "required": false; }; "fRadius": { "alias": "fRadius"; "required": false; }; "fOffset": { "alias": "fOffset"; "required": false; }; "fBehavior": { "alias": "fBehavior"; "required": false; }; "fType": { "alias": "fType"; "required": false; }; "fDraggingDisabled": { "alias": "fReassignDisabled"; "required": false; }; "fSelectionDisabled": { "alias": "fSelectionDisabled"; "required": false; }; }, {}, ["fConnectionCenters"], ["*", "[fConnectionCenter]"], false, never>;
|
|
57
58
|
}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, OnDestroy, OnInit, QueryList } from "@angular/core";
|
|
2
|
-
import {
|
|
2
|
+
import { FConnectionDragHandleComponent, FConnectionSelectionComponent, IConnectionGradient, IConnectionPath, IConnectionText } from '../common';
|
|
3
3
|
import { EFConnectionBehavior } from '../common';
|
|
4
4
|
import { EFConnectionType } from '../common';
|
|
5
5
|
import { FMarkerBase } from '../f-marker';
|
|
6
6
|
import { FConnectionCenterDirective } from '../f-connection-center';
|
|
7
7
|
import { FConnectionFactory } from '../f-connection-builder';
|
|
8
8
|
import { FComponentsStore } from '../../f-storage';
|
|
9
|
+
import { FConnectionBase } from '../common/f-connection-base';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
export declare class FConnectionForCreateComponent extends FConnectionBase implements AfterViewInit, OnInit, OnDestroy {
|
|
11
12
|
private fComponentsStore;
|
|
12
|
-
|
|
13
|
+
fId: string;
|
|
13
14
|
fText: string;
|
|
14
15
|
private _fStartColor;
|
|
15
16
|
set fStartColor(value: string);
|
|
@@ -48,5 +49,5 @@ export declare class FConnectionForCreateComponent extends FConnectionBase imple
|
|
|
48
49
|
ngAfterViewInit(): void;
|
|
49
50
|
ngOnDestroy(): void;
|
|
50
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<FConnectionForCreateComponent, never>;
|
|
51
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FConnectionForCreateComponent, "f-connection-for-create", never, { "fStartColor": { "alias": "fStartColor"; "required": false; }; "fEndColor": { "alias": "fEndColor"; "required": false; }; "fRadius": { "alias": "fRadius"; "required": false; }; "fOffset": { "alias": "fOffset"; "required": false; }; "fBehavior": { "alias": "fBehavior"; "required": false; }; "fType": { "alias": "fType"; "required": false; }; }, {}, ["fConnectionCenters"], ["*", "[fConnectionCenter]"], false, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FConnectionForCreateComponent, "f-connection-for-create", never, { "fId": { "alias": "fConnectionId"; "required": false; }; "fStartColor": { "alias": "fStartColor"; "required": false; }; "fEndColor": { "alias": "fEndColor"; "required": false; }; "fRadius": { "alias": "fRadius"; "required": false; }; "fOffset": { "alias": "fOffset"; "required": false; }; "fBehavior": { "alias": "fBehavior"; "required": false; }; "fType": { "alias": "fType"; "required": false; }; }, {}, ["fConnectionCenters"], ["*", "[fConnectionCenter]"], false, never>;
|
|
52
53
|
}
|
|
@@ -12,6 +12,7 @@ export declare class CanvasMovePreparationValidator implements IValidator<Canvas
|
|
|
12
12
|
private isBackgroundElement;
|
|
13
13
|
private isDragOnHost;
|
|
14
14
|
private getNode;
|
|
15
|
+
private isNodeHasDragHandle;
|
|
15
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<CanvasMovePreparationValidator, never>;
|
|
16
17
|
static ɵprov: i0.ɵɵInjectableDeclaration<CanvasMovePreparationValidator>;
|
|
17
18
|
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { IPoint } from '@foblex/core';
|
|
2
2
|
import { IDraggableItem } from '../i-draggable-item';
|
|
3
|
-
import { EFDraggableType } from '../e-f-draggable-type';
|
|
4
3
|
import { FComponentsStore } from '../../f-storage';
|
|
5
4
|
export declare class CanvasDragHandler implements IDraggableItem {
|
|
6
5
|
private fComponentsStore;
|
|
7
|
-
readonly type: EFDraggableType;
|
|
8
6
|
private onPointerDownPosition;
|
|
9
7
|
constructor(fComponentsStore: FComponentsStore);
|
|
10
8
|
initialize(): void;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { IPoint } from '@foblex/core';
|
|
2
2
|
import { IDraggableItem } from '../../i-draggable-item';
|
|
3
|
-
import { EFDraggableType } from '../../e-f-draggable-type';
|
|
4
3
|
import { FConnectionBase } from '../../../f-connection';
|
|
5
4
|
import { FFlowMediator } from '../../../infrastructure';
|
|
6
5
|
export declare class CreateConnectionDragHandler implements IDraggableItem {
|
|
7
6
|
private fMediator;
|
|
8
7
|
connection: FConnectionBase;
|
|
9
8
|
private mouseDownPoint;
|
|
10
|
-
readonly type: EFDraggableType;
|
|
11
9
|
private onPointerDownFromConnectorRect;
|
|
12
10
|
private onPointerDownToConnectorRect;
|
|
13
11
|
private outputSide;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { IPoint } from '@foblex/core';
|
|
2
2
|
import { IDraggableItem } from '../../i-draggable-item';
|
|
3
|
-
import { EFDraggableType } from '../../e-f-draggable-type';
|
|
4
3
|
import { FConnectionBase } from '../../../f-connection';
|
|
5
4
|
import { FFlowMediator } from '../../../infrastructure';
|
|
6
5
|
export declare class ReassignConnectionDragHandler implements IDraggableItem {
|
|
7
6
|
private fMediator;
|
|
8
7
|
connection: FConnectionBase;
|
|
9
|
-
readonly type: EFDraggableType;
|
|
10
8
|
private onPointerDownFromConnectorRect;
|
|
11
9
|
private onPointerDownToConnectorRect;
|
|
12
10
|
private outputSide;
|
package/f-draggable/domain/convert-computed-to-pixels/convert-computed-to-pixels.execution.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ConvertComputedToPixelsRequest } from './convert-computed-to-pixels-request';
|
|
2
|
+
import { WindowService } from '@foblex/core';
|
|
3
|
+
import { IExecution } from '../../../infrastructure';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ConvertComputedToPixelsExecution implements IExecution<ConvertComputedToPixelsRequest, number> {
|
|
6
|
+
private windowService;
|
|
7
|
+
constructor(windowService: WindowService);
|
|
8
|
+
handle(request: ConvertComputedToPixelsRequest): number;
|
|
9
|
+
private convert;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConvertComputedToPixelsExecution, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ConvertComputedToPixelsExecution>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GetNodePaddingRequest } from './get-node-padding.request';
|
|
2
|
+
import { FFlowMediator, IExecution } from '../../../infrastructure';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class GetNodePaddingExecution implements IExecution<GetNodePaddingRequest, [number, number, number, number]> {
|
|
5
|
+
private fMediator;
|
|
6
|
+
constructor(fMediator: FFlowMediator);
|
|
7
|
+
handle(request: GetNodePaddingRequest): [number, number, number, number];
|
|
8
|
+
private getPaddingData;
|
|
9
|
+
private convertToPixels;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GetNodePaddingExecution, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GetNodePaddingExecution>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { GetNormalizedNodeRectRequest } from './get-normalized-node-rect.request';
|
|
2
|
+
import { IRect } from '@foblex/core';
|
|
3
|
+
import { IExecution } from '../../../infrastructure';
|
|
4
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class GetNormalizedNodeRectExecution implements IExecution<GetNormalizedNodeRectRequest, IRect> {
|
|
7
|
+
private fComponentsStore;
|
|
8
|
+
constructor(fComponentsStore: FComponentsStore);
|
|
9
|
+
handle(request: GetNormalizedNodeRectRequest): IRect;
|
|
10
|
+
private normalizeRect;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GetNormalizedNodeRectExecution, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GetNormalizedNodeRectExecution>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GetNormalizedParentNodeRectRequest } from './get-normalized-parent-node-rect.request';
|
|
2
|
+
import { IRect } 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 GetNormalizedParentNodeRectExecution implements IExecution<GetNormalizedParentNodeRectRequest, IRect> {
|
|
7
|
+
private fComponentsStore;
|
|
8
|
+
private fMediator;
|
|
9
|
+
constructor(fComponentsStore: FComponentsStore, fMediator: FFlowMediator);
|
|
10
|
+
handle(request: GetNormalizedParentNodeRectRequest): IRect;
|
|
11
|
+
private getNode;
|
|
12
|
+
private getParentRect;
|
|
13
|
+
private getNormalizedNodeRect;
|
|
14
|
+
private getNodePadding;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GetNormalizedParentNodeRectExecution, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GetNormalizedParentNodeRectExecution>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { GetParentNodesRequest } from './get-parent-nodes.request';
|
|
2
|
+
import { IExecution } from '../../../infrastructure';
|
|
3
|
+
import { FNodeBase } from '../../../f-node';
|
|
4
|
+
import { FComponentsStore } from '../../../f-storage';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class GetParentNodesExecution implements IExecution<GetParentNodesRequest, FNodeBase[]> {
|
|
7
|
+
private fComponentsStore;
|
|
8
|
+
constructor(fComponentsStore: FComponentsStore);
|
|
9
|
+
handle(request: GetParentNodesRequest): FNodeBase[];
|
|
10
|
+
private getParentNodes;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GetParentNodesExecution, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GetParentNodesExecution>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './convert-computed-to-pixels';
|
|
2
|
+
export * from './get-node-padding';
|
|
3
|
+
export * from './get-normalized-node-rect';
|
|
4
|
+
export * from './get-normalized-parent-node-rect';
|
|
5
|
+
export * from './get-parent-nodes';
|
|
6
|
+
export * from './is-array-has-parent-node';
|
|
7
|
+
export * from './providers';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IsArrayHasParentNodeRequest } from './is-array-has-parent-node.request';
|
|
2
|
+
import { FFlowMediator, IExecution } from '../../../infrastructure';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class IsArrayHasParentNodeExecution implements IExecution<IsArrayHasParentNodeRequest, boolean> {
|
|
5
|
+
private fMediator;
|
|
6
|
+
constructor(fMediator: FFlowMediator);
|
|
7
|
+
handle(request: IsArrayHasParentNodeRequest): boolean;
|
|
8
|
+
private getParentNodeIds;
|
|
9
|
+
private getParentNodes;
|
|
10
|
+
private isParentNodeInArray;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsArrayHasParentNodeExecution, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IsArrayHasParentNodeExecution>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GetNormalizedNodeRectExecution } from './get-normalized-node-rect';
|
|
2
|
+
import { ConvertComputedToPixelsExecution } from './convert-computed-to-pixels';
|
|
3
|
+
import { GetParentNodesExecution } from './get-parent-nodes';
|
|
4
|
+
import { IsArrayHasParentNodeExecution } from './is-array-has-parent-node';
|
|
5
|
+
import { GetNormalizedParentNodeRectExecution } from './get-normalized-parent-node-rect';
|
|
6
|
+
import { GetNodePaddingExecution } from './get-node-padding';
|
|
7
|
+
export declare const DRAG_AND_DROP_COMMON_PROVIDERS: (typeof ConvertComputedToPixelsExecution | typeof GetNodePaddingExecution | typeof GetNormalizedNodeRectExecution | typeof GetNormalizedParentNodeRectExecution | typeof GetParentNodesExecution | typeof IsArrayHasParentNodeExecution)[];
|