@foblex/flow 12.6.7 → 16.0.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/esm2022/domain/create-connection-markers/create-connection-markers.execution.mjs +60 -0
- package/esm2022/domain/create-rounded-rect-from-element/create-rounded-rect-from-element.execution.mjs +38 -0
- package/esm2022/domain/emit-transform-changes/emit-transform-changes.execution.mjs +23 -0
- package/esm2022/domain/f-background/add-pattern-to-background/add-pattern-to-background.execution.mjs +46 -0
- package/esm2022/domain/f-canvas/center-group-or-node/center-group-or-node.execution.mjs +48 -0
- package/esm2022/domain/f-canvas/fit-to-flow/fit-to-flow.execution.mjs +55 -0
- package/esm2022/domain/f-canvas/input-canvas-position/input-canvas-position.execution.mjs +32 -0
- package/esm2022/domain/f-canvas/input-canvas-scale/input-canvas-scale.execution.mjs +27 -0
- package/esm2022/domain/f-canvas/reset-scale/reset-scale.execution.mjs +28 -0
- package/esm2022/domain/f-canvas/reset-scale-and-center/reset-scale-and-center.execution.mjs +50 -0
- package/esm2022/domain/f-canvas/update-scale/update-scale.execution.mjs +33 -0
- package/esm2022/domain/f-connection/find-closest-input-using-snap-threshold/find-closest-input-using-snap-threshold.execution.mjs +38 -0
- package/esm2022/domain/f-connection/get-all-can-be-connected-input-positions/get-all-can-be-connected-input-positions.execution.mjs +54 -0
- package/esm2022/domain/f-connection/get-connector-with-rect/get-connector-with-rect.execution.mjs +27 -0
- package/esm2022/domain/f-selection/clear-selection/clear-selection.execution.mjs +25 -0
- package/esm2022/domain/f-selection/get-selection/get-selection.execution.mjs +34 -0
- package/esm2022/domain/f-selection/select/select.execution.mjs +43 -0
- package/esm2022/domain/f-selection/select-all/select-all.execution.mjs +37 -0
- package/esm2022/domain/f-selection/select-and-update-node-layer/select-and-update-node-layer.execution.mjs +34 -0
- package/esm2022/domain/get-can-be-selected-items/get-can-be-selected-items.execution.mjs +56 -0
- package/esm2022/domain/get-connection-line/get-connection-line.execution.mjs +66 -0
- package/esm2022/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.execution.mjs +34 -0
- package/esm2022/domain/get-element-rect-in-flow/get-element-rect-in-flow.execution.mjs +42 -0
- package/esm2022/domain/get-flow-state/get-flow-state-connections/get-flow-state-connections.execution.mjs +32 -0
- package/esm2022/domain/get-flow-state/get-flow-state-nodes/get-flow-state-nodes.execution.mjs +49 -0
- package/esm2022/domain/get-flow-state/get-flow-state.execution.mjs +38 -0
- package/esm2022/domain/get-nodes-rect/get-nodes-rect.execution.mjs +30 -0
- package/esm2022/domain/get-position-in-flow/get-position-in-flow.execution.mjs +31 -0
- package/esm2022/domain/get-scaled-node-rects-with-flow-position/get-scaled-node-rects-with-flow-position.execution.mjs +33 -0
- package/esm2022/domain/is-connection-under-node/is-connection-under-node.execution.mjs +75 -0
- package/esm2022/domain/redraw-connections/redraw-connections.execution.mjs +62 -0
- package/esm2022/domain/show-connections-after-calculations/show-connections-after-calculations.execution.mjs +25 -0
- package/esm2022/domain/sort-item-layers/sort-item-layers.execution.mjs +29 -0
- package/esm2022/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.execution.mjs +56 -0
- package/esm2022/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.execution.mjs +58 -0
- package/esm2022/domain/subscribe-on-transform-changes/subscribe-on-transform-changes.execution.mjs +25 -0
- package/esm2022/domain/update-item-and-children-layers/move-front-elements-before-target-element/move-front-elements-before-target-element.execution.mjs +29 -0
- package/esm2022/domain/update-item-and-children-layers/update-item-and-children-layers.execution.mjs +93 -0
- package/{esm2015/f-backgroud/f-background-base.js → esm2022/f-backgroud/f-background-base.mjs} +4 -4
- package/esm2022/f-backgroud/f-background.component.mjs +45 -0
- package/esm2022/f-backgroud/f-circle-pattern/f-circle-pattern.component.mjs +104 -0
- package/esm2022/f-backgroud/f-rect-pattern/f-rect-pattern.component.mjs +122 -0
- package/{esm2015/f-canvas/f-canvas-base.js → esm2022/f-canvas/f-canvas-base.mjs} +4 -4
- package/esm2022/f-canvas/f-canvas.component.mjs +86 -0
- package/esm2022/f-connection/common/f-connection-base.mjs +66 -0
- package/esm2022/f-connection/common/f-connection-text/f-connection-text-path.directive.mjs +70 -0
- package/esm2022/f-connection/common/f-connection-text/f-connection-text.component.mjs +66 -0
- package/{esm2015/f-connection/common/f-drag-handle/f-connection-drag-handle.component.js → esm2022/f-connection/common/f-drag-handle/f-connection-drag-handle.component.mjs} +7 -7
- package/esm2022/f-connection/common/f-gradient/f-connection-gradient.component.mjs +63 -0
- package/esm2022/f-connection/common/f-path/f-connection-path.component.mjs +59 -0
- package/{esm2015/f-connection/common/f-selection/f-connection-selection.component.js → esm2022/f-connection/common/f-selection/f-connection-selection.component.mjs} +8 -8
- package/esm2022/f-connection/f-connection/f-connection.component.mjs +171 -0
- package/esm2022/f-connection/f-connection-builder/f-connection-factory.mjs +34 -0
- package/{esm2015/f-connection/f-connection-center/f-connection-center.directive.js → esm2022/f-connection/f-connection-center/f-connection-center.directive.mjs} +4 -4
- package/esm2022/f-connection/f-connection-for-create/f-connection-for-create.component.mjs +136 -0
- package/{esm2015/f-connection/f-marker/f-marker-base.js → esm2022/f-connection/f-marker/f-marker-base.mjs} +4 -4
- package/esm2022/f-connection/f-marker/f-marker.directive.mjs +58 -0
- package/esm2022/f-connection/f-snap-connection/f-snap-connection.component.mjs +136 -0
- package/{esm2015/f-connectors/f-node-input/f-node-input-base.js → esm2022/f-connectors/f-node-input/f-node-input-base.mjs} +4 -4
- package/esm2022/f-connectors/f-node-input/f-node-input.directive.mjs +87 -0
- package/{esm2015/f-connectors/f-node-outlet/f-node-outlet-base.js → esm2022/f-connectors/f-node-outlet/f-node-outlet-base.mjs} +4 -4
- package/esm2022/f-connectors/f-node-outlet/f-node-outlet.directive.mjs +71 -0
- package/{esm2015/f-connectors/f-node-output/f-node-output-base.js → esm2022/f-connectors/f-node-output/f-node-output-base.mjs} +4 -4
- package/esm2022/f-connectors/f-node-output/f-node-output.directive.mjs +94 -0
- package/esm2022/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.execution.mjs +23 -0
- package/esm2022/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.validator.mjs +24 -0
- package/esm2022/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.execution.mjs +35 -0
- package/esm2022/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.validator.mjs +42 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.execution.mjs +54 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.validator.mjs +24 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/create-connection-drag-handler.execution.mjs +43 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/create-connection-from-outlet-preparation.execution.mjs +52 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.execution.mjs +38 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.validator.mjs +33 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.execution.mjs +42 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.validator.mjs +31 -0
- package/esm2022/f-draggable/connections/create-connection/create-connection.drag-handler.mjs +61 -0
- package/esm2022/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.execution.mjs +42 -0
- package/esm2022/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.validator.mjs +26 -0
- package/esm2022/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.execution.mjs +84 -0
- package/esm2022/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.validator.mjs +34 -0
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.execution.mjs +49 -0
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.validator.mjs +24 -0
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.execution.mjs +63 -0
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.validator.mjs +43 -0
- package/esm2022/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.mjs +58 -0
- package/esm2022/f-draggable/domain/get-node-padding/get-node-padding.execution.mjs +32 -0
- package/esm2022/f-draggable/domain/get-normalized-node-rect/get-normalized-node-rect.execution.mjs +28 -0
- package/esm2022/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.execution.mjs +47 -0
- package/esm2022/f-draggable/domain/get-parent-nodes/get-parent-nodes.execution.mjs +35 -0
- package/esm2022/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.execution.mjs +33 -0
- package/{esm2015/f-draggable/f-draggable-base.js → esm2022/f-draggable/f-draggable-base.mjs} +4 -4
- package/{esm2015/f-draggable/f-draggable-data-context.js → esm2022/f-draggable/f-draggable-data-context.mjs} +4 -4
- package/esm2022/f-draggable/f-draggable.directive.mjs +160 -0
- package/{esm2015/f-draggable/node/connection-base-drag-handler.js → esm2022/f-draggable/node/connection-base-drag-handler.mjs} +4 -4
- package/esm2022/f-draggable/node/connection-source.drag-handler.mjs +17 -0
- package/esm2022/f-draggable/node/connection-target.drag-handler.mjs +17 -0
- package/esm2022/f-draggable/node/connection.drag-handler.mjs +21 -0
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.mjs +84 -0
- package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/get-node-move-restrictions.execution.mjs +43 -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 +69 -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 +69 -0
- package/esm2022/f-draggable/node/node-move-finalize/node-move-finalize.execution.mjs +50 -0
- package/esm2022/f-draggable/node/node-move-finalize/node-move-finalize.validator.mjs +24 -0
- package/esm2022/f-draggable/node/node-move-preparation/node-move-preparation.execution.mjs +58 -0
- package/esm2022/f-draggable/node/node-move-preparation/node-move-preparation.validator.mjs +40 -0
- package/esm2022/f-draggable/node/node.drag-handler.mjs +33 -0
- package/esm2022/f-draggable/node-resize/apply-child-resize-restrictions/apply-child-resize-restrictions.execution.mjs +48 -0
- package/esm2022/f-draggable/node-resize/apply-parent-resize-restrictions/apply-parent-resize-restrictions.execution.mjs +48 -0
- package/esm2022/f-draggable/node-resize/calculate-changed-position/calculate-changed-position.execution.mjs +24 -0
- package/esm2022/f-draggable/node-resize/calculate-changed-size/calculate-changed-size.execution.mjs +33 -0
- package/esm2022/f-draggable/node-resize/get-node-resize-restrictions/get-node-resize-restrictions.execution.mjs +30 -0
- package/esm2022/f-draggable/node-resize/get-normalized-children-nodes-rect/get-normalized-children-nodes-rect.execution.mjs +40 -0
- package/esm2022/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.execution.mjs +25 -0
- package/esm2022/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.validator.mjs +24 -0
- package/esm2022/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.execution.mjs +52 -0
- package/esm2022/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.validator.mjs +40 -0
- package/esm2022/f-draggable/single-select/single-select.execution.mjs +88 -0
- package/esm2022/f-draggable/single-select/single-select.validator.mjs +26 -0
- package/esm2022/f-external-item/domain/external-item-finalize/external-item-finalize.execution.mjs +56 -0
- package/esm2022/f-external-item/domain/external-item-finalize/external-item-finalize.validator.mjs +24 -0
- package/esm2022/f-external-item/domain/external-item-preparation/external-item-preparation.execution.mjs +42 -0
- package/esm2022/f-external-item/domain/external-item-preparation/external-item-preparation.validator.mjs +28 -0
- package/{esm2015/f-external-item/f-external-item-base.js → esm2022/f-external-item/f-external-item-base.mjs} +4 -4
- package/{esm2015/f-external-item/f-external-item.directive.js → esm2022/f-external-item/f-external-item.directive.mjs} +9 -9
- package/{esm2015/f-external-item/f-external-item.service.js → esm2022/f-external-item/f-external-item.service.mjs} +4 -4
- package/esm2022/f-flow/f-flow.component.mjs +118 -0
- package/{esm2015/f-flow.module.js → esm2022/f-flow.module.mjs} +5 -7
- package/{esm2015/f-line-alignment/f-line-alignment-base.js → esm2022/f-line-alignment/f-line-alignment-base.mjs} +4 -4
- package/esm2022/f-line-alignment/f-line-alignment.component.mjs +92 -0
- package/esm2022/f-minimap/domain/calculate-flow-point-from-minimap-point/calculate-flow-point-from-minimap-point.execution.mjs +41 -0
- package/esm2022/f-minimap/domain/f-minimap.drag-handler.mjs +35 -0
- package/esm2022/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.execution.mjs +25 -0
- package/esm2022/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.validator.mjs +24 -0
- package/esm2022/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.execution.mjs +48 -0
- package/esm2022/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.validator.mjs +27 -0
- package/esm2022/f-minimap/f-minimap-canvas.directive.mjs +66 -0
- package/{esm2015/f-minimap/f-minimap-flow.directive.js → esm2022/f-minimap/f-minimap-flow.directive.mjs} +10 -10
- package/{esm2015/f-minimap/f-minimap-view.directive.js → esm2022/f-minimap/f-minimap-view.directive.mjs} +8 -8
- package/esm2022/f-minimap/f-minimap.component.mjs +68 -0
- package/{esm2015/f-node/f-drag-handle/f-drag-handle.directive.js → esm2022/f-node/f-drag-handle/f-drag-handle.directive.mjs} +7 -7
- package/esm2022/f-node/f-group.directive.mjs +145 -0
- package/esm2022/f-node/f-node.directive.mjs +146 -0
- package/esm2022/f-node/f-resize-handle/f-resize-handle.directive.mjs +43 -0
- package/{esm2015/f-node/f-rotate-handle/f-rotate-handle.directive.js → esm2022/f-node/f-rotate-handle/f-rotate-handle.directive.mjs} +5 -5
- package/esm2022/f-selection-area/domain/selection-area-finalize/selection-area-finalize.execution.mjs +25 -0
- package/esm2022/f-selection-area/domain/selection-area-finalize/selection-area-finalize.validator.mjs +24 -0
- package/esm2022/f-selection-area/domain/selection-area-preparation/selection-area-preparation.execution.mjs +37 -0
- package/esm2022/f-selection-area/domain/selection-area-preparation/selection-area-preparation.validator.mjs +30 -0
- package/{esm2015/f-selection-area/domain/selection-area.drag-handle.js → esm2022/f-selection-area/domain/selection-area.drag-handle.mjs} +4 -4
- package/{esm2015/f-selection-area/f-selection-area-base.js → esm2022/f-selection-area/f-selection-area-base.mjs} +4 -4
- package/esm2022/f-selection-area/f-selection-area.component.mjs +51 -0
- package/esm2022/f-storage/f-components-store.mjs +50 -0
- package/{esm2015/f-storage/f-transform-store.js → esm2022/f-storage/f-transform-store.mjs} +4 -4
- package/esm2022/f-zoom/f-zoom-base.mjs +97 -0
- package/esm2022/f-zoom/f-zoom.directive.mjs +59 -0
- package/esm2022/mixins/change-selection/change-selection.mjs +28 -0
- package/f-backgroud/f-background-base.d.ts +1 -1
- package/f-backgroud/f-background.component.d.ts +1 -1
- package/f-backgroud/f-circle-pattern/f-circle-pattern.component.d.ts +1 -1
- package/f-backgroud/f-rect-pattern/f-rect-pattern.component.d.ts +1 -1
- package/f-canvas/f-canvas-base.d.ts +1 -1
- package/f-canvas/f-canvas.component.d.ts +1 -1
- package/f-connection/common/f-connection-base.d.ts +1 -1
- package/f-connection/common/f-connection-text/f-connection-text-path.directive.d.ts +1 -1
- package/f-connection/common/f-connection-text/f-connection-text.component.d.ts +1 -1
- package/f-connection/common/f-drag-handle/f-connection-drag-handle.component.d.ts +1 -1
- package/f-connection/common/f-gradient/f-connection-gradient.component.d.ts +1 -1
- package/f-connection/common/f-path/f-connection-path.component.d.ts +1 -1
- package/f-connection/common/f-selection/f-connection-selection.component.d.ts +1 -1
- package/f-connection/f-connection/f-connection.component.d.ts +1 -1
- package/f-connection/f-connection-center/f-connection-center.directive.d.ts +1 -1
- package/f-connection/f-connection-for-create/f-connection-for-create.component.d.ts +1 -1
- package/f-connection/f-marker/f-marker-base.d.ts +1 -1
- package/f-connection/f-marker/f-marker.directive.d.ts +1 -1
- package/f-connection/f-snap-connection/f-snap-connection.component.d.ts +1 -1
- package/f-connectors/f-node-input/f-node-input-base.d.ts +1 -1
- package/f-connectors/f-node-input/f-node-input.directive.d.ts +1 -1
- package/f-connectors/f-node-outlet/f-node-outlet-base.d.ts +1 -1
- package/f-connectors/f-node-outlet/f-node-outlet.directive.d.ts +1 -1
- package/f-connectors/f-node-output/f-node-output-base.d.ts +1 -1
- package/f-connectors/f-node-output/f-node-output.directive.d.ts +1 -1
- package/f-draggable/f-draggable-base.d.ts +1 -1
- package/f-draggable/f-draggable.directive.d.ts +1 -1
- package/f-draggable/node/connection-base-drag-handler.d.ts +1 -1
- package/f-external-item/f-external-item-base.d.ts +1 -1
- package/f-external-item/f-external-item.directive.d.ts +1 -1
- package/f-flow/f-flow.component.d.ts +1 -1
- package/f-line-alignment/f-line-alignment-base.d.ts +1 -1
- package/f-line-alignment/f-line-alignment.component.d.ts +1 -1
- package/f-minimap/f-minimap-canvas.directive.d.ts +1 -1
- package/f-minimap/f-minimap-flow.directive.d.ts +1 -1
- package/f-minimap/f-minimap-view.directive.d.ts +1 -1
- package/f-minimap/f-minimap.component.d.ts +1 -1
- package/f-node/f-drag-handle/f-drag-handle.directive.d.ts +1 -1
- package/f-node/f-group.directive.d.ts +1 -1
- package/f-node/f-node.directive.d.ts +1 -1
- package/f-node/f-resize-handle/f-resize-handle.directive.d.ts +1 -1
- package/f-selection-area/f-selection-area-base.d.ts +1 -1
- package/f-selection-area/f-selection-area.component.d.ts +1 -1
- package/f-zoom/f-zoom.directive.d.ts +1 -1
- package/{fesm2015/foblex-flow.js → fesm2022/foblex-flow.mjs} +924 -1038
- package/fesm2022/foblex-flow.mjs.map +1 -0
- package/mixins/change-selection/change-selection.d.ts +1 -1
- package/mixins/change-visibility/change-visibility.d.ts +1 -1
- package/mixins/constructor.d.ts +2 -2
- package/package.json +15 -7
- package/bundles/foblex-flow.umd.js +0 -9815
- package/bundles/foblex-flow.umd.js.map +0 -1
- package/esm2015/domain/create-connection-markers/create-connection-markers.execution.js +0 -61
- package/esm2015/domain/create-rounded-rect-from-element/create-rounded-rect-from-element.execution.js +0 -39
- package/esm2015/domain/emit-transform-changes/emit-transform-changes.execution.js +0 -24
- package/esm2015/domain/f-background/add-pattern-to-background/add-pattern-to-background.execution.js +0 -48
- package/esm2015/domain/f-canvas/center-group-or-node/center-group-or-node.execution.js +0 -49
- package/esm2015/domain/f-canvas/fit-to-flow/fit-to-flow.execution.js +0 -56
- package/esm2015/domain/f-canvas/input-canvas-position/input-canvas-position.execution.js +0 -34
- package/esm2015/domain/f-canvas/input-canvas-scale/input-canvas-scale.execution.js +0 -29
- package/esm2015/domain/f-canvas/reset-scale/reset-scale.execution.js +0 -29
- package/esm2015/domain/f-canvas/reset-scale-and-center/reset-scale-and-center.execution.js +0 -51
- package/esm2015/domain/f-canvas/update-scale/update-scale.execution.js +0 -34
- package/esm2015/domain/f-connection/find-closest-input-using-snap-threshold/find-closest-input-using-snap-threshold.execution.js +0 -39
- package/esm2015/domain/f-connection/get-all-can-be-connected-input-positions/get-all-can-be-connected-input-positions.execution.js +0 -55
- package/esm2015/domain/f-connection/get-connector-with-rect/get-connector-with-rect.execution.js +0 -28
- package/esm2015/domain/f-selection/clear-selection/clear-selection.execution.js +0 -26
- package/esm2015/domain/f-selection/get-selection/get-selection.execution.js +0 -35
- package/esm2015/domain/f-selection/select/select.execution.js +0 -44
- package/esm2015/domain/f-selection/select-all/select-all.execution.js +0 -38
- package/esm2015/domain/f-selection/select-and-update-node-layer/select-and-update-node-layer.execution.js +0 -35
- package/esm2015/domain/get-can-be-selected-items/get-can-be-selected-items.execution.js +0 -57
- package/esm2015/domain/get-connection-line/get-connection-line.execution.js +0 -67
- package/esm2015/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.execution.js +0 -35
- package/esm2015/domain/get-element-rect-in-flow/get-element-rect-in-flow.execution.js +0 -43
- package/esm2015/domain/get-flow-state/get-flow-state-connections/get-flow-state-connections.execution.js +0 -33
- package/esm2015/domain/get-flow-state/get-flow-state-nodes/get-flow-state-nodes.execution.js +0 -50
- package/esm2015/domain/get-flow-state/get-flow-state.execution.js +0 -39
- package/esm2015/domain/get-nodes-rect/get-nodes-rect.execution.js +0 -31
- package/esm2015/domain/get-position-in-flow/get-position-in-flow.execution.js +0 -32
- package/esm2015/domain/get-scaled-node-rects-with-flow-position/get-scaled-node-rects-with-flow-position.execution.js +0 -34
- package/esm2015/domain/is-connection-under-node/is-connection-under-node.execution.js +0 -76
- package/esm2015/domain/redraw-connections/redraw-connections.execution.js +0 -63
- package/esm2015/domain/show-connections-after-calculations/show-connections-after-calculations.execution.js +0 -26
- package/esm2015/domain/sort-item-layers/sort-item-layers.execution.js +0 -30
- package/esm2015/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.execution.js +0 -57
- package/esm2015/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.execution.js +0 -59
- package/esm2015/domain/subscribe-on-transform-changes/subscribe-on-transform-changes.execution.js +0 -26
- package/esm2015/domain/update-item-and-children-layers/move-front-elements-before-target-element/move-front-elements-before-target-element.execution.js +0 -30
- package/esm2015/domain/update-item-and-children-layers/update-item-and-children-layers.execution.js +0 -94
- package/esm2015/f-backgroud/f-background.component.js +0 -53
- package/esm2015/f-backgroud/f-circle-pattern/f-circle-pattern.component.js +0 -104
- package/esm2015/f-backgroud/f-rect-pattern/f-rect-pattern.component.js +0 -122
- package/esm2015/f-canvas/f-canvas.component.js +0 -96
- package/esm2015/f-connection/common/f-connection-base.js +0 -68
- package/esm2015/f-connection/common/f-connection-text/f-connection-text-path.directive.js +0 -70
- package/esm2015/f-connection/common/f-connection-text/f-connection-text.component.js +0 -72
- package/esm2015/f-connection/common/f-gradient/f-connection-gradient.component.js +0 -69
- package/esm2015/f-connection/common/f-path/f-connection-path.component.js +0 -59
- package/esm2015/f-connection/f-connection/f-connection.component.js +0 -179
- package/esm2015/f-connection/f-connection-builder/f-connection-factory.js +0 -34
- package/esm2015/f-connection/f-connection-for-create/f-connection-for-create.component.js +0 -143
- package/esm2015/f-connection/f-marker/f-marker.directive.js +0 -58
- package/esm2015/f-connection/f-snap-connection/f-snap-connection.component.js +0 -143
- package/esm2015/f-connectors/f-node-input/f-node-input.directive.js +0 -87
- package/esm2015/f-connectors/f-node-outlet/f-node-outlet.directive.js +0 -71
- package/esm2015/f-connectors/f-node-output/f-node-output.directive.js +0 -94
- package/esm2015/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.execution.js +0 -24
- package/esm2015/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.validator.js +0 -25
- package/esm2015/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.execution.js +0 -36
- package/esm2015/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.validator.js +0 -44
- package/esm2015/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.execution.js +0 -56
- package/esm2015/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.validator.js +0 -25
- package/esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/create-connection-drag-handler.execution.js +0 -44
- package/esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/create-connection-from-outlet-preparation.execution.js +0 -53
- package/esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.execution.js +0 -39
- package/esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.validator.js +0 -34
- package/esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.execution.js +0 -43
- package/esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.validator.js +0 -32
- package/esm2015/f-draggable/connections/create-connection/create-connection.drag-handler.js +0 -63
- package/esm2015/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.execution.js +0 -43
- package/esm2015/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.validator.js +0 -27
- package/esm2015/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.execution.js +0 -85
- package/esm2015/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.validator.js +0 -35
- package/esm2015/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.execution.js +0 -50
- package/esm2015/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.validator.js +0 -25
- package/esm2015/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.execution.js +0 -64
- package/esm2015/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.validator.js +0 -44
- package/esm2015/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.js +0 -60
- package/esm2015/f-draggable/domain/get-node-padding/get-node-padding.execution.js +0 -33
- package/esm2015/f-draggable/domain/get-normalized-node-rect/get-normalized-node-rect.execution.js +0 -29
- package/esm2015/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.execution.js +0 -48
- package/esm2015/f-draggable/domain/get-parent-nodes/get-parent-nodes.execution.js +0 -36
- package/esm2015/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.execution.js +0 -34
- package/esm2015/f-draggable/f-draggable.directive.js +0 -165
- package/esm2015/f-draggable/node/connection-source.drag-handler.js +0 -17
- package/esm2015/f-draggable/node/connection-target.drag-handler.js +0 -17
- package/esm2015/f-draggable/node/connection.drag-handler.js +0 -21
- package/esm2015/f-draggable/node/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.js +0 -85
- package/esm2015/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/get-node-move-restrictions.execution.js +0 -44
- package/esm2015/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-input-connection-handlers-to-array/put-input-connection-handlers-to-array.execution.js +0 -70
- package/esm2015/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-output-connection-handlers-to-array/put-output-connection-handlers-to-array.execution.js +0 -70
- package/esm2015/f-draggable/node/node-move-finalize/node-move-finalize.execution.js +0 -54
- package/esm2015/f-draggable/node/node-move-finalize/node-move-finalize.validator.js +0 -25
- package/esm2015/f-draggable/node/node-move-preparation/node-move-preparation.execution.js +0 -60
- package/esm2015/f-draggable/node/node-move-preparation/node-move-preparation.validator.js +0 -41
- package/esm2015/f-draggable/node/node.drag-handler.js +0 -34
- package/esm2015/f-draggable/node-resize/apply-child-resize-restrictions/apply-child-resize-restrictions.execution.js +0 -49
- package/esm2015/f-draggable/node-resize/apply-parent-resize-restrictions/apply-parent-resize-restrictions.execution.js +0 -49
- package/esm2015/f-draggable/node-resize/calculate-changed-position/calculate-changed-position.execution.js +0 -25
- package/esm2015/f-draggable/node-resize/calculate-changed-size/calculate-changed-size.execution.js +0 -34
- package/esm2015/f-draggable/node-resize/get-node-resize-restrictions/get-node-resize-restrictions.execution.js +0 -31
- package/esm2015/f-draggable/node-resize/get-normalized-children-nodes-rect/get-normalized-children-nodes-rect.execution.js +0 -41
- package/esm2015/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.execution.js +0 -27
- package/esm2015/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.validator.js +0 -25
- package/esm2015/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.execution.js +0 -53
- package/esm2015/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.validator.js +0 -41
- package/esm2015/f-draggable/single-select/single-select.execution.js +0 -89
- package/esm2015/f-draggable/single-select/single-select.validator.js +0 -27
- package/esm2015/f-external-item/domain/external-item-finalize/external-item-finalize.execution.js +0 -57
- package/esm2015/f-external-item/domain/external-item-finalize/external-item-finalize.validator.js +0 -25
- package/esm2015/f-external-item/domain/external-item-preparation/external-item-preparation.execution.js +0 -43
- package/esm2015/f-external-item/domain/external-item-preparation/external-item-preparation.validator.js +0 -29
- package/esm2015/f-flow/f-flow.component.js +0 -125
- package/esm2015/f-line-alignment/f-line-alignment.component.js +0 -99
- package/esm2015/f-minimap/domain/calculate-flow-point-from-minimap-point/calculate-flow-point-from-minimap-point.execution.js +0 -42
- package/esm2015/f-minimap/domain/f-minimap.drag-handler.js +0 -37
- package/esm2015/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.execution.js +0 -27
- package/esm2015/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.validator.js +0 -25
- package/esm2015/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.execution.js +0 -49
- package/esm2015/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.validator.js +0 -28
- package/esm2015/f-minimap/f-minimap-canvas.directive.js +0 -66
- package/esm2015/f-minimap/f-minimap.component.js +0 -76
- package/esm2015/f-node/f-group.directive.js +0 -145
- package/esm2015/f-node/f-node.directive.js +0 -146
- package/esm2015/f-node/f-resize-handle/f-resize-handle.directive.js +0 -43
- package/esm2015/f-selection-area/domain/selection-area-finalize/selection-area-finalize.execution.js +0 -27
- package/esm2015/f-selection-area/domain/selection-area-finalize/selection-area-finalize.validator.js +0 -25
- package/esm2015/f-selection-area/domain/selection-area-preparation/selection-area-preparation.execution.js +0 -38
- package/esm2015/f-selection-area/domain/selection-area-preparation/selection-area-preparation.validator.js +0 -31
- package/esm2015/f-selection-area/f-selection-area.component.js +0 -57
- package/esm2015/f-storage/f-components-store.js +0 -52
- package/esm2015/f-zoom/f-zoom-base.js +0 -99
- package/esm2015/f-zoom/f-zoom.directive.js +0 -59
- package/esm2015/mixins/change-selection/change-selection.js +0 -30
- package/fesm2015/foblex-flow.js.map +0 -1
- /package/{esm2015/domain/constants.js → esm2022/domain/constants.mjs} +0 -0
- /package/{esm2015/domain/create-connection-markers/create-connection-markers-request.js → esm2022/domain/create-connection-markers/create-connection-markers-request.mjs} +0 -0
- /package/{esm2015/domain/create-connection-markers/index.js → esm2022/domain/create-connection-markers/index.mjs} +0 -0
- /package/{esm2015/domain/create-dom-element.js → esm2022/domain/create-dom-element.mjs} +0 -0
- /package/{esm2015/domain/create-rounded-rect-from-element/create-rounded-rect-from-element-request.js → esm2022/domain/create-rounded-rect-from-element/create-rounded-rect-from-element-request.mjs} +0 -0
- /package/{esm2015/domain/create-rounded-rect-from-element/index.js → esm2022/domain/create-rounded-rect-from-element/index.mjs} +0 -0
- /package/{esm2015/domain/emit-transform-changes/emit-transform-changes.request.js → esm2022/domain/emit-transform-changes/emit-transform-changes.request.mjs} +0 -0
- /package/{esm2015/domain/emit-transform-changes/index.js → esm2022/domain/emit-transform-changes/index.mjs} +0 -0
- /package/{esm2015/domain/f-background/add-pattern-to-background/add-pattern-to-background.request.js → esm2022/domain/f-background/add-pattern-to-background/add-pattern-to-background.request.mjs} +0 -0
- /package/{esm2015/domain/f-background/add-pattern-to-background/index.js → esm2022/domain/f-background/add-pattern-to-background/index.mjs} +0 -0
- /package/{esm2015/domain/f-background/index.js → esm2022/domain/f-background/index.mjs} +0 -0
- /package/{esm2015/domain/f-background/providers.js → esm2022/domain/f-background/providers.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/center-group-or-node/center-group-or-node-request.js → esm2022/domain/f-canvas/center-group-or-node/center-group-or-node-request.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/center-group-or-node/index.js → esm2022/domain/f-canvas/center-group-or-node/index.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/fit-to-flow/fit-to-flow-request.js → esm2022/domain/f-canvas/fit-to-flow/fit-to-flow-request.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/fit-to-flow/index.js → esm2022/domain/f-canvas/fit-to-flow/index.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/index.js → esm2022/domain/f-canvas/index.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/input-canvas-position/index.js → esm2022/domain/f-canvas/input-canvas-position/index.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/input-canvas-position/input-canvas-position-request.js → esm2022/domain/f-canvas/input-canvas-position/input-canvas-position-request.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/input-canvas-scale/index.js → esm2022/domain/f-canvas/input-canvas-scale/index.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/input-canvas-scale/input-canvas-scale-request.js → esm2022/domain/f-canvas/input-canvas-scale/input-canvas-scale-request.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/providers.js → esm2022/domain/f-canvas/providers.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/reset-scale/index.js → esm2022/domain/f-canvas/reset-scale/index.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/reset-scale/reset-scale-request.js → esm2022/domain/f-canvas/reset-scale/reset-scale-request.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/reset-scale-and-center/index.js → esm2022/domain/f-canvas/reset-scale-and-center/index.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/reset-scale-and-center/reset-scale-and-center-request.js → esm2022/domain/f-canvas/reset-scale-and-center/reset-scale-and-center-request.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/update-scale/index.js → esm2022/domain/f-canvas/update-scale/index.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/update-scale/update-scale-request.js → esm2022/domain/f-canvas/update-scale/update-scale-request.mjs} +0 -0
- /package/{esm2015/domain/f-connection/find-closest-input-using-snap-threshold/find-closest-input-using-snap-threshold.request.js → esm2022/domain/f-connection/find-closest-input-using-snap-threshold/find-closest-input-using-snap-threshold.request.mjs} +0 -0
- /package/{esm2015/domain/f-connection/find-closest-input-using-snap-threshold/index.js → esm2022/domain/f-connection/find-closest-input-using-snap-threshold/index.mjs} +0 -0
- /package/{esm2015/domain/f-connection/get-all-can-be-connected-input-positions/get-all-can-be-connected-input-positions.request.js → esm2022/domain/f-connection/get-all-can-be-connected-input-positions/get-all-can-be-connected-input-positions.request.mjs} +0 -0
- /package/{esm2015/domain/f-connection/get-all-can-be-connected-input-positions/index.js → esm2022/domain/f-connection/get-all-can-be-connected-input-positions/index.mjs} +0 -0
- /package/{esm2015/domain/f-connection/get-connector-with-rect/get-connector-with-rect-request.js → esm2022/domain/f-connection/get-connector-with-rect/get-connector-with-rect-request.mjs} +0 -0
- /package/{esm2015/domain/f-connection/get-connector-with-rect/i-connector-with-rect.js → esm2022/domain/f-connection/get-connector-with-rect/i-connector-with-rect.mjs} +0 -0
- /package/{esm2015/domain/f-connection/get-connector-with-rect/index.js → esm2022/domain/f-connection/get-connector-with-rect/index.mjs} +0 -0
- /package/{esm2015/domain/f-connection/index.js → esm2022/domain/f-connection/index.mjs} +0 -0
- /package/{esm2015/domain/f-connection/providers.js → esm2022/domain/f-connection/providers.mjs} +0 -0
- /package/{esm2015/domain/f-selection/clear-selection/clear-selection.request.js → esm2022/domain/f-selection/clear-selection/clear-selection.request.mjs} +0 -0
- /package/{esm2015/domain/f-selection/clear-selection/index.js → esm2022/domain/f-selection/clear-selection/index.mjs} +0 -0
- /package/{esm2015/domain/f-selection/get-selection/get-selection.request.js → esm2022/domain/f-selection/get-selection/get-selection.request.mjs} +0 -0
- /package/{esm2015/domain/f-selection/get-selection/index.js → esm2022/domain/f-selection/get-selection/index.mjs} +0 -0
- /package/{esm2015/domain/f-selection/index.js → esm2022/domain/f-selection/index.mjs} +0 -0
- /package/{esm2015/domain/f-selection/providers.js → esm2022/domain/f-selection/providers.mjs} +0 -0
- /package/{esm2015/domain/f-selection/select/index.js → esm2022/domain/f-selection/select/index.mjs} +0 -0
- /package/{esm2015/domain/f-selection/select/select.request.js → esm2022/domain/f-selection/select/select.request.mjs} +0 -0
- /package/{esm2015/domain/f-selection/select-all/index.js → esm2022/domain/f-selection/select-all/index.mjs} +0 -0
- /package/{esm2015/domain/f-selection/select-all/select-all.request.js → esm2022/domain/f-selection/select-all/select-all.request.mjs} +0 -0
- /package/{esm2015/domain/f-selection/select-and-update-node-layer/index.js → esm2022/domain/f-selection/select-and-update-node-layer/index.mjs} +0 -0
- /package/{esm2015/domain/f-selection/select-and-update-node-layer/select-and-update-node-layer.request.js → esm2022/domain/f-selection/select-and-update-node-layer/select-and-update-node-layer.request.mjs} +0 -0
- /package/{esm2015/domain/get-can-be-selected-items/get-can-be-selected-items-request.js → esm2022/domain/get-can-be-selected-items/get-can-be-selected-items-request.mjs} +0 -0
- /package/{esm2015/domain/get-can-be-selected-items/i-selectable-with-rect.js → esm2022/domain/get-can-be-selected-items/i-selectable-with-rect.mjs} +0 -0
- /package/{esm2015/domain/get-can-be-selected-items/index.js → esm2022/domain/get-can-be-selected-items/index.mjs} +0 -0
- /package/{esm2015/domain/get-connection-line/get-connection-line.request.js → esm2022/domain/get-connection-line/get-connection-line.request.mjs} +0 -0
- /package/{esm2015/domain/get-connection-line/index.js → esm2022/domain/get-connection-line/index.mjs} +0 -0
- /package/{esm2015/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.request.js → esm2022/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.request.mjs} +0 -0
- /package/{esm2015/domain/get-deep-children-nodes-and-groups/index.js → esm2022/domain/get-deep-children-nodes-and-groups/index.mjs} +0 -0
- /package/{esm2015/domain/get-element-rect-in-flow/get-element-rect-in-flow-request.js → esm2022/domain/get-element-rect-in-flow/get-element-rect-in-flow-request.mjs} +0 -0
- /package/{esm2015/domain/get-element-rect-in-flow/index.js → esm2022/domain/get-element-rect-in-flow/index.mjs} +0 -0
- /package/{esm2015/domain/get-flow-state/get-flow-state-connections/get-flow-state-connections-request.js → esm2022/domain/get-flow-state/get-flow-state-connections/get-flow-state-connections-request.mjs} +0 -0
- /package/{esm2015/domain/get-flow-state/get-flow-state-connections/index.js → esm2022/domain/get-flow-state/get-flow-state-connections/index.mjs} +0 -0
- /package/{esm2015/domain/get-flow-state/get-flow-state-nodes/get-flow-state-nodes-request.js → esm2022/domain/get-flow-state/get-flow-state-nodes/get-flow-state-nodes-request.mjs} +0 -0
- /package/{esm2015/domain/get-flow-state/get-flow-state-nodes/index.js → esm2022/domain/get-flow-state/get-flow-state-nodes/index.mjs} +0 -0
- /package/{esm2015/domain/get-flow-state/get-flow-state.request.js → esm2022/domain/get-flow-state/get-flow-state.request.mjs} +0 -0
- /package/{esm2015/domain/get-flow-state/i-f-flow-state-connection.js → esm2022/domain/get-flow-state/i-f-flow-state-connection.mjs} +0 -0
- /package/{esm2015/domain/get-flow-state/i-f-flow-state-connector.js → esm2022/domain/get-flow-state/i-f-flow-state-connector.mjs} +0 -0
- /package/{esm2015/domain/get-flow-state/i-f-flow-state-node.js → esm2022/domain/get-flow-state/i-f-flow-state-node.mjs} +0 -0
- /package/{esm2015/domain/get-flow-state/i-f-flow-state.js → esm2022/domain/get-flow-state/i-f-flow-state.mjs} +0 -0
- /package/{esm2015/domain/get-flow-state/index.js → esm2022/domain/get-flow-state/index.mjs} +0 -0
- /package/{esm2015/domain/get-flow-state/providers.js → esm2022/domain/get-flow-state/providers.mjs} +0 -0
- /package/{esm2015/domain/get-nodes-rect/get-nodes-rect.request.js → esm2022/domain/get-nodes-rect/get-nodes-rect.request.mjs} +0 -0
- /package/{esm2015/domain/get-nodes-rect/index.js → esm2022/domain/get-nodes-rect/index.mjs} +0 -0
- /package/{esm2015/domain/get-position-in-flow/get-position-in-flow-request.js → esm2022/domain/get-position-in-flow/get-position-in-flow-request.mjs} +0 -0
- /package/{esm2015/domain/get-position-in-flow/index.js → esm2022/domain/get-position-in-flow/index.mjs} +0 -0
- /package/{esm2015/domain/get-scaled-node-rects-with-flow-position/get-scaled-node-rects-with-flow-position.request.js → esm2022/domain/get-scaled-node-rects-with-flow-position/get-scaled-node-rects-with-flow-position.request.mjs} +0 -0
- /package/{esm2015/domain/get-scaled-node-rects-with-flow-position/index.js → esm2022/domain/get-scaled-node-rects-with-flow-position/index.mjs} +0 -0
- /package/{esm2015/domain/i-map.js → esm2022/domain/i-map.mjs} +0 -0
- /package/{esm2015/domain/index.js → esm2022/domain/index.mjs} +0 -0
- /package/{esm2015/domain/is-connection-under-node/index.js → esm2022/domain/is-connection-under-node/index.mjs} +0 -0
- /package/{esm2015/domain/is-connection-under-node/is-connection-under-node.request.js → esm2022/domain/is-connection-under-node/is-connection-under-node.request.mjs} +0 -0
- /package/{esm2015/domain/providers.js → esm2022/domain/providers.mjs} +0 -0
- /package/{esm2015/domain/redraw-connections/index.js → esm2022/domain/redraw-connections/index.mjs} +0 -0
- /package/{esm2015/domain/redraw-connections/redraw-connections-request.js → esm2022/domain/redraw-connections/redraw-connections-request.mjs} +0 -0
- /package/{esm2015/domain/show-connections-after-calculations/index.js → esm2022/domain/show-connections-after-calculations/index.mjs} +0 -0
- /package/{esm2015/domain/show-connections-after-calculations/show-connections-after-calculations-request.js → esm2022/domain/show-connections-after-calculations/show-connections-after-calculations-request.mjs} +0 -0
- /package/{esm2015/domain/sort-item-layers/index.js → esm2022/domain/sort-item-layers/index.mjs} +0 -0
- /package/{esm2015/domain/sort-item-layers/sort-item-layers.request.js → esm2022/domain/sort-item-layers/sort-item-layers.request.mjs} +0 -0
- /package/{esm2015/domain/sort-item-layers/sort-items-by-parent/index.js → esm2022/domain/sort-item-layers/sort-items-by-parent/index.mjs} +0 -0
- /package/{esm2015/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.request.js → esm2022/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.request.mjs} +0 -0
- /package/{esm2015/domain/sort-item-layers/sort-node-layers-by-groups/index.js → esm2022/domain/sort-item-layers/sort-node-layers-by-groups/index.mjs} +0 -0
- /package/{esm2015/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.request.js → esm2022/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.request.mjs} +0 -0
- /package/{esm2015/domain/subscribe-on-transform-changes/index.js → esm2022/domain/subscribe-on-transform-changes/index.mjs} +0 -0
- /package/{esm2015/domain/subscribe-on-transform-changes/subscribe-on-transform-changes.request.js → esm2022/domain/subscribe-on-transform-changes/subscribe-on-transform-changes.request.mjs} +0 -0
- /package/{esm2015/domain/update-item-and-children-layers/index.js → esm2022/domain/update-item-and-children-layers/index.mjs} +0 -0
- /package/{esm2015/domain/update-item-and-children-layers/move-front-elements-before-target-element/index.js → esm2022/domain/update-item-and-children-layers/move-front-elements-before-target-element/index.mjs} +0 -0
- /package/{esm2015/domain/update-item-and-children-layers/move-front-elements-before-target-element/move-front-elements-before-target-element.request.js → esm2022/domain/update-item-and-children-layers/move-front-elements-before-target-element/move-front-elements-before-target-element.request.mjs} +0 -0
- /package/{esm2015/domain/update-item-and-children-layers/update-item-and-children-layers.request.js → esm2022/domain/update-item-and-children-layers/update-item-and-children-layers.request.mjs} +0 -0
- /package/{esm2015/errors/conflict-error.js → esm2022/errors/conflict-error.mjs} +0 -0
- /package/{esm2015/errors/create-error-class.js → esm2022/errors/create-error-class.mjs} +0 -0
- /package/{esm2015/errors/errors.js → esm2022/errors/errors.mjs} +0 -0
- /package/{esm2015/errors/index.js → esm2022/errors/index.mjs} +0 -0
- /package/{esm2015/errors/not-found-error.js → esm2022/errors/not-found-error.mjs} +0 -0
- /package/{esm2015/f-backgroud/domain/i-f-background-pattern.js → esm2022/f-backgroud/domain/i-f-background-pattern.mjs} +0 -0
- /package/{esm2015/f-backgroud/domain/index.js → esm2022/f-backgroud/domain/index.mjs} +0 -0
- /package/{esm2015/f-backgroud/f-circle-pattern/index.js → esm2022/f-backgroud/f-circle-pattern/index.mjs} +0 -0
- /package/{esm2015/f-backgroud/f-rect-pattern/index.js → esm2022/f-backgroud/f-rect-pattern/index.mjs} +0 -0
- /package/{esm2015/f-backgroud/index.js → esm2022/f-backgroud/index.mjs} +0 -0
- /package/{esm2015/f-backgroud/providers.js → esm2022/f-backgroud/providers.mjs} +0 -0
- /package/{esm2015/f-canvas/domain/f-canvas-change.event.js → esm2022/f-canvas/domain/f-canvas-change.event.mjs} +0 -0
- /package/{esm2015/f-canvas/domain/index.js → esm2022/f-canvas/domain/index.mjs} +0 -0
- /package/{esm2015/f-canvas/index.js → esm2022/f-canvas/index.mjs} +0 -0
- /package/{esm2015/f-canvas/providers.js → esm2022/f-canvas/providers.mjs} +0 -0
- /package/{esm2015/f-connection/common/domain/calculate-center-between-points/calculate-center-between-points-request.js → esm2022/f-connection/common/domain/calculate-center-between-points/calculate-center-between-points-request.mjs} +0 -0
- /package/{esm2015/f-connection/common/domain/calculate-center-between-points/calculate-center-between-points.handler.js → esm2022/f-connection/common/domain/calculate-center-between-points/calculate-center-between-points.handler.mjs} +0 -0
- /package/{esm2015/f-connection/common/domain/calculate-center-between-points/index.js → esm2022/f-connection/common/domain/calculate-center-between-points/index.mjs} +0 -0
- /package/{esm2015/f-connection/common/domain/calculate-connection-center/calculate-connection-center-request.js → esm2022/f-connection/common/domain/calculate-connection-center/calculate-connection-center-request.mjs} +0 -0
- /package/{esm2015/f-connection/common/domain/calculate-connection-center/calculate-connection-center.handler.js → esm2022/f-connection/common/domain/calculate-connection-center/calculate-connection-center.handler.mjs} +0 -0
- /package/{esm2015/f-connection/common/domain/calculate-connection-center/index.js → esm2022/f-connection/common/domain/calculate-connection-center/index.mjs} +0 -0
- /package/{esm2015/f-connection/common/domain/f-bezier.path-builder.js → esm2022/f-connection/common/domain/f-bezier.path-builder.mjs} +0 -0
- /package/{esm2015/f-connection/common/domain/f-segment.path-builder.js → esm2022/f-connection/common/domain/f-segment.path-builder.mjs} +0 -0
- /package/{esm2015/f-connection/common/domain/f-straight.path-builder.js → esm2022/f-connection/common/domain/f-straight.path-builder.mjs} +0 -0
- /package/{esm2015/f-connection/common/domain/index.js → esm2022/f-connection/common/domain/index.mjs} +0 -0
- /package/{esm2015/f-connection/common/e-f-connection-behavior.js → esm2022/f-connection/common/e-f-connection-behavior.mjs} +0 -0
- /package/{esm2015/f-connection/common/e-f-connection-type.js → esm2022/f-connection/common/e-f-connection-type.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-connection-identifiers.js → esm2022/f-connection/common/f-connection-identifiers.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-connection-text/i-connection-text.js → esm2022/f-connection/common/f-connection-text/i-connection-text.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-connection-text/index.js → esm2022/f-connection/common/f-connection-text/index.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-connection.injection-token.js → esm2022/f-connection/common/f-connection.injection-token.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-drag-handle/index.js → esm2022/f-connection/common/f-drag-handle/index.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-gradient/i-connection-gradient.js → esm2022/f-connection/common/f-gradient/i-connection-gradient.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-gradient/index.js → esm2022/f-connection/common/f-gradient/index.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-path/get-path-marker-id.js → esm2022/f-connection/common/f-path/get-path-marker-id.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-path/i-connection-path.js → esm2022/f-connection/common/f-path/i-connection-path.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-path/index.js → esm2022/f-connection/common/f-path/index.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-selection/index.js → esm2022/f-connection/common/f-selection/index.mjs} +0 -0
- /package/{esm2015/f-connection/common/i-has-connection-color.js → esm2022/f-connection/common/i-has-connection-color.mjs} +0 -0
- /package/{esm2015/f-connection/common/i-has-connection-from-to.js → esm2022/f-connection/common/i-has-connection-from-to.mjs} +0 -0
- /package/{esm2015/f-connection/common/i-has-connection-text.js → esm2022/f-connection/common/i-has-connection-text.mjs} +0 -0
- /package/{esm2015/f-connection/common/index.js → esm2022/f-connection/common/index.mjs} +0 -0
- /package/{esm2015/f-connection/f-connection/index.js → esm2022/f-connection/f-connection/index.mjs} +0 -0
- /package/{esm2015/f-connection/f-connection-builder/f-connection-builders.js → esm2022/f-connection/f-connection-builder/f-connection-builders.mjs} +0 -0
- /package/{esm2015/f-connection/f-connection-builder/i-f-connection-builder-request.js → esm2022/f-connection/f-connection-builder/i-f-connection-builder-request.mjs} +0 -0
- /package/{esm2015/f-connection/f-connection-builder/i-f-connection-builder-response.js → esm2022/f-connection/f-connection-builder/i-f-connection-builder-response.mjs} +0 -0
- /package/{esm2015/f-connection/f-connection-builder/i-f-connection-builder.js → esm2022/f-connection/f-connection-builder/i-f-connection-builder.mjs} +0 -0
- /package/{esm2015/f-connection/f-connection-builder/i-f-connection-factory-request.js → esm2022/f-connection/f-connection-builder/i-f-connection-factory-request.mjs} +0 -0
- /package/{esm2015/f-connection/f-connection-builder/index.js → esm2022/f-connection/f-connection-builder/index.mjs} +0 -0
- /package/{esm2015/f-connection/f-connection-center/index.js → esm2022/f-connection/f-connection-center/index.mjs} +0 -0
- /package/{esm2015/f-connection/f-connection-for-create/index.js → esm2022/f-connection/f-connection-for-create/index.mjs} +0 -0
- /package/{esm2015/f-connection/f-marker/e-f-marker-type.js → esm2022/f-connection/f-marker/e-f-marker-type.mjs} +0 -0
- /package/{esm2015/f-connection/f-marker/index.js → esm2022/f-connection/f-marker/index.mjs} +0 -0
- /package/{esm2015/f-connection/f-snap-connection/index.js → esm2022/f-connection/f-snap-connection/index.mjs} +0 -0
- /package/{esm2015/f-connection/index.js → esm2022/f-connection/index.mjs} +0 -0
- /package/{esm2015/f-connection/providers.js → esm2022/f-connection/providers.mjs} +0 -0
- /package/{esm2015/f-connectors/domain/calculate-connector-connectable-side/calculate-connector-connectable-side-request.js → esm2022/f-connectors/domain/calculate-connector-connectable-side/calculate-connector-connectable-side-request.mjs} +0 -0
- /package/{esm2015/f-connectors/domain/calculate-connector-connectable-side/calculate-connector-connectable-side.handler.js → esm2022/f-connectors/domain/calculate-connector-connectable-side/calculate-connector-connectable-side.handler.mjs} +0 -0
- /package/{esm2015/f-connectors/domain/calculate-connector-connectable-side/index.js → esm2022/f-connectors/domain/calculate-connector-connectable-side/index.mjs} +0 -0
- /package/{esm2015/f-connectors/domain/index.js → esm2022/f-connectors/domain/index.mjs} +0 -0
- /package/{esm2015/f-connectors/e-f-connectable-side.js → esm2022/f-connectors/e-f-connectable-side.mjs} +0 -0
- /package/{esm2015/f-connectors/f-connector-base.js → esm2022/f-connectors/f-connector-base.mjs} +0 -0
- /package/{esm2015/f-connectors/f-node-input/index.js → esm2022/f-connectors/f-node-input/index.mjs} +0 -0
- /package/{esm2015/f-connectors/f-node-outlet/index.js → esm2022/f-connectors/f-node-outlet/index.mjs} +0 -0
- /package/{esm2015/f-connectors/f-node-outlet/is-node-outlet.js → esm2022/f-connectors/f-node-outlet/is-node-outlet.mjs} +0 -0
- /package/{esm2015/f-connectors/f-node-output/index.js → esm2022/f-connectors/f-node-output/index.mjs} +0 -0
- /package/{esm2015/f-connectors/f-node-output/is-node-output.js → esm2022/f-connectors/f-node-output/is-node-output.mjs} +0 -0
- /package/{esm2015/f-connectors/index.js → esm2022/f-connectors/index.mjs} +0 -0
- /package/{esm2015/f-connectors/providers.js → esm2022/f-connectors/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.request.js → esm2022/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.request.mjs} +0 -0
- /package/{esm2015/f-draggable/canvas/canvas-move-finalize/index.js → esm2022/f-draggable/canvas/canvas-move-finalize/index.mjs} +0 -0
- /package/{esm2015/f-draggable/canvas/canvas-move-finalize/providers.js → esm2022/f-draggable/canvas/canvas-move-finalize/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.request.js → esm2022/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.request.mjs} +0 -0
- /package/{esm2015/f-draggable/canvas/canvas-move-preparation/index.js → esm2022/f-draggable/canvas/canvas-move-preparation/index.mjs} +0 -0
- /package/{esm2015/f-draggable/canvas/canvas-move-preparation/providers.js → esm2022/f-draggable/canvas/canvas-move-preparation/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/canvas/canvas.drag-handler.js → esm2022/f-draggable/canvas/canvas.drag-handler.mjs} +0 -0
- /package/{esm2015/f-draggable/canvas/index.js → esm2022/f-draggable/canvas/index.mjs} +0 -0
- /package/{esm2015/f-draggable/canvas/providers.js → esm2022/f-draggable/canvas/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.request.js → esm2022/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.request.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/create-connection/create-connection-finalize/index.js → esm2022/f-draggable/connections/create-connection/create-connection-finalize/index.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/create-connection-drag-handler.request.js → esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/create-connection-drag-handler.request.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/index.js → esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/index.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/create-connection-from-outlet-preparation.request.js → esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/create-connection-from-outlet-preparation.request.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/index.js → esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/index.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.request.js → esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.request.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/index.js → esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/index.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.request.js → esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.request.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/create-connection/create-connection-preparation/index.js → esm2022/f-draggable/connections/create-connection/create-connection-preparation/index.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/create-connection/f-create-connection.event.js → esm2022/f-draggable/connections/create-connection/f-create-connection.event.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.request.js → esm2022/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.request.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/index.js → esm2022/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/index.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/create-connection/index.js → esm2022/f-draggable/connections/create-connection/index.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.request.js → esm2022/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.request.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/get-input-under-pointer/index.js → esm2022/f-draggable/connections/get-input-under-pointer/index.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/index.js → esm2022/f-draggable/connections/index.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/providers.js → esm2022/f-draggable/connections/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/reassign-connection/f-reassign-connection.event.js → esm2022/f-draggable/connections/reassign-connection/f-reassign-connection.event.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/reassign-connection/index.js → esm2022/f-draggable/connections/reassign-connection/index.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/reassign-connection/reassign-connection-finalize/index.js → esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/index.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.request.js → esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.request.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/reassign-connection/reassign-connection-preparation/index.js → esm2022/f-draggable/connections/reassign-connection/reassign-connection-preparation/index.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.request.js → esm2022/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.request.mjs} +0 -0
- /package/{esm2015/f-draggable/domain/get-node-padding/get-node-padding.request.js → esm2022/f-draggable/domain/get-node-padding/get-node-padding.request.mjs} +0 -0
- /package/{esm2015/f-draggable/domain/get-node-padding/index.js → esm2022/f-draggable/domain/get-node-padding/index.mjs} +0 -0
- /package/{esm2015/f-draggable/domain/get-normalized-node-rect/get-normalized-node-rect.request.js → esm2022/f-draggable/domain/get-normalized-node-rect/get-normalized-node-rect.request.mjs} +0 -0
- /package/{esm2015/f-draggable/domain/get-normalized-node-rect/index.js → esm2022/f-draggable/domain/get-normalized-node-rect/index.mjs} +0 -0
- /package/{esm2015/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.request.js → esm2022/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.request.mjs} +0 -0
- /package/{esm2015/f-draggable/domain/get-normalized-parent-node-rect/index.js → esm2022/f-draggable/domain/get-normalized-parent-node-rect/index.mjs} +0 -0
- /package/{esm2015/f-draggable/domain/get-parent-nodes/get-parent-nodes.request.js → esm2022/f-draggable/domain/get-parent-nodes/get-parent-nodes.request.mjs} +0 -0
- /package/{esm2015/f-draggable/domain/get-parent-nodes/index.js → esm2022/f-draggable/domain/get-parent-nodes/index.mjs} +0 -0
- /package/{esm2015/f-draggable/domain/index.js → esm2022/f-draggable/domain/index.mjs} +0 -0
- /package/{esm2015/f-draggable/domain/is-array-has-parent-node/index.js → esm2022/f-draggable/domain/is-array-has-parent-node/index.mjs} +0 -0
- /package/{esm2015/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.request.js → esm2022/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.request.mjs} +0 -0
- /package/{esm2015/f-draggable/domain/providers.js → esm2022/f-draggable/domain/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/f-selection-change-event.js → esm2022/f-draggable/f-selection-change-event.mjs} +0 -0
- /package/{esm2015/f-draggable/i-draggable-item.js → esm2022/f-draggable/i-draggable-item.mjs} +0 -0
- /package/{esm2015/f-draggable/i-f-drag-and-drop-plugin.js → esm2022/f-draggable/i-f-drag-and-drop-plugin.mjs} +0 -0
- /package/{esm2015/f-draggable/index.js → esm2022/f-draggable/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.request.js → esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.request.mjs} +0 -0
- /package/{esm2015/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/get-node-move-restrictions.request.js → esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/get-node-move-restrictions.request.mjs} +0 -0
- /package/{esm2015/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/i-node-move-restrictions.js → esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/i-node-move-restrictions.mjs} +0 -0
- /package/{esm2015/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/index.js → esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-input-connection-handlers-to-array/index.js → esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-input-connection-handlers-to-array/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-input-connection-handlers-to-array/put-input-connection-handlers-to-array.request.js → 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} +0 -0
- /package/{esm2015/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-output-connection-handlers-to-array/index.js → esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-output-connection-handlers-to-array/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-output-connection-handlers-to-array/put-output-connection-handlers-to-array.request.js → 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} +0 -0
- /package/{esm2015/f-draggable/node/create-move-nodes-drag-model-from-selection/i-node-with-distance-restrictions.js → esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/i-node-with-distance-restrictions.mjs} +0 -0
- /package/{esm2015/f-draggable/node/create-move-nodes-drag-model-from-selection/index.js → esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node/create-move-nodes-drag-model-from-selection/providers.js → esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/node/index.js → esm2022/f-draggable/node/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node/node-move-finalize/index.js → esm2022/f-draggable/node/node-move-finalize/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node/node-move-finalize/node-move-finalize.request.js → esm2022/f-draggable/node/node-move-finalize/node-move-finalize.request.mjs} +0 -0
- /package/{esm2015/f-draggable/node/node-move-finalize/providers.js → esm2022/f-draggable/node/node-move-finalize/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/node/node-move-preparation/index.js → esm2022/f-draggable/node/node-move-preparation/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node/node-move-preparation/node-move-preparation.request.js → esm2022/f-draggable/node/node-move-preparation/node-move-preparation.request.mjs} +0 -0
- /package/{esm2015/f-draggable/node/node-move-preparation/providers.js → esm2022/f-draggable/node/node-move-preparation/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/node/node-resize-by-child.drag-handler.js → esm2022/f-draggable/node/node-resize-by-child.drag-handler.mjs} +0 -0
- /package/{esm2015/f-draggable/node/providers.js → esm2022/f-draggable/node/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/apply-child-resize-restrictions/apply-child-resize-restrictions.request.js → esm2022/f-draggable/node-resize/apply-child-resize-restrictions/apply-child-resize-restrictions.request.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/apply-child-resize-restrictions/index.js → esm2022/f-draggable/node-resize/apply-child-resize-restrictions/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/apply-parent-resize-restrictions/apply-parent-resize-restrictions.request.js → esm2022/f-draggable/node-resize/apply-parent-resize-restrictions/apply-parent-resize-restrictions.request.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/apply-parent-resize-restrictions/index.js → esm2022/f-draggable/node-resize/apply-parent-resize-restrictions/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/calculate-changed-position/calculate-changed-position.request.js → esm2022/f-draggable/node-resize/calculate-changed-position/calculate-changed-position.request.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/calculate-changed-position/index.js → esm2022/f-draggable/node-resize/calculate-changed-position/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/calculate-changed-size/calculate-changed-size.request.js → esm2022/f-draggable/node-resize/calculate-changed-size/calculate-changed-size.request.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/calculate-changed-size/index.js → esm2022/f-draggable/node-resize/calculate-changed-size/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/get-node-resize-restrictions/get-node-resize-restrictions.request.js → esm2022/f-draggable/node-resize/get-node-resize-restrictions/get-node-resize-restrictions.request.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/get-node-resize-restrictions/i-node-resize-restrictions.js → esm2022/f-draggable/node-resize/get-node-resize-restrictions/i-node-resize-restrictions.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/get-node-resize-restrictions/index.js → esm2022/f-draggable/node-resize/get-node-resize-restrictions/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/get-normalized-children-nodes-rect/get-normalized-children-nodes-rect.request.js → esm2022/f-draggable/node-resize/get-normalized-children-nodes-rect/get-normalized-children-nodes-rect.request.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/get-normalized-children-nodes-rect/index.js → esm2022/f-draggable/node-resize/get-normalized-children-nodes-rect/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/index.js → esm2022/f-draggable/node-resize/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/node-resize-finalize/index.js → esm2022/f-draggable/node-resize/node-resize-finalize/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.request.js → esm2022/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.request.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/node-resize-finalize/providers.js → esm2022/f-draggable/node-resize/node-resize-finalize/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/node-resize-preparation/index.js → esm2022/f-draggable/node-resize/node-resize-preparation/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.request.js → esm2022/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.request.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/node-resize-preparation/providers.js → esm2022/f-draggable/node-resize/node-resize-preparation/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/node-resize.drag-handler.js → esm2022/f-draggable/node-resize/node-resize.drag-handler.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/providers.js → esm2022/f-draggable/node-resize/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/resize-direction.js → esm2022/f-draggable/node-resize/resize-direction.mjs} +0 -0
- /package/{esm2015/f-draggable/providers.js → esm2022/f-draggable/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/single-select/index.js → esm2022/f-draggable/single-select/index.mjs} +0 -0
- /package/{esm2015/f-draggable/single-select/providers.js → esm2022/f-draggable/single-select/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/single-select/single-select.request.js → esm2022/f-draggable/single-select/single-select.request.mjs} +0 -0
- /package/{esm2015/f-external-item/domain/external-item-finalize/external-item-finalize.request.js → esm2022/f-external-item/domain/external-item-finalize/external-item-finalize.request.mjs} +0 -0
- /package/{esm2015/f-external-item/domain/external-item-finalize/index.js → esm2022/f-external-item/domain/external-item-finalize/index.mjs} +0 -0
- /package/{esm2015/f-external-item/domain/external-item-finalize/providers.js → esm2022/f-external-item/domain/external-item-finalize/providers.mjs} +0 -0
- /package/{esm2015/f-external-item/domain/external-item-preparation/external-item-preparation.request.js → esm2022/f-external-item/domain/external-item-preparation/external-item-preparation.request.mjs} +0 -0
- /package/{esm2015/f-external-item/domain/external-item-preparation/index.js → esm2022/f-external-item/domain/external-item-preparation/index.mjs} +0 -0
- /package/{esm2015/f-external-item/domain/external-item-preparation/providers.js → esm2022/f-external-item/domain/external-item-preparation/providers.mjs} +0 -0
- /package/{esm2015/f-external-item/domain/external-item.drag-handler.js → esm2022/f-external-item/domain/external-item.drag-handler.mjs} +0 -0
- /package/{esm2015/f-external-item/domain/f-create-node.event.js → esm2022/f-external-item/domain/f-create-node.event.mjs} +0 -0
- /package/{esm2015/f-external-item/domain/index.js → esm2022/f-external-item/domain/index.mjs} +0 -0
- /package/{esm2015/f-external-item/domain/providers.js → esm2022/f-external-item/domain/providers.mjs} +0 -0
- /package/{esm2015/f-external-item/index.js → esm2022/f-external-item/index.mjs} +0 -0
- /package/{esm2015/f-external-item/is-external-item.js → esm2022/f-external-item/is-external-item.mjs} +0 -0
- /package/{esm2015/f-external-item/providers.js → esm2022/f-external-item/providers.mjs} +0 -0
- /package/{esm2015/f-flow/f-flow-base.js → esm2022/f-flow/f-flow-base.mjs} +0 -0
- /package/{esm2015/f-flow/index.js → esm2022/f-flow/index.mjs} +0 -0
- /package/{esm2015/f-flow/providers.js → esm2022/f-flow/providers.mjs} +0 -0
- /package/{esm2015/f-line-alignment/domain/i-line-alignment-rect.js → esm2022/f-line-alignment/domain/i-line-alignment-rect.mjs} +0 -0
- /package/{esm2015/f-line-alignment/domain/i-line-alignment-result.js → esm2022/f-line-alignment/domain/i-line-alignment-result.mjs} +0 -0
- /package/{esm2015/f-line-alignment/domain/i-nearest-coordinate-result.js → esm2022/f-line-alignment/domain/i-nearest-coordinate-result.mjs} +0 -0
- /package/{esm2015/f-line-alignment/domain/index.js → esm2022/f-line-alignment/domain/index.mjs} +0 -0
- /package/{esm2015/f-line-alignment/domain/line-element.js → esm2022/f-line-alignment/domain/line-element.mjs} +0 -0
- /package/{esm2015/f-line-alignment/domain/line-service.js → esm2022/f-line-alignment/domain/line-service.mjs} +0 -0
- /package/{esm2015/f-line-alignment/domain/nearest-coordinate.js → esm2022/f-line-alignment/domain/nearest-coordinate.mjs} +0 -0
- /package/{esm2015/f-line-alignment/index.js → esm2022/f-line-alignment/index.mjs} +0 -0
- /package/{esm2015/f-line-alignment/providers.js → esm2022/f-line-alignment/providers.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/calculate-flow-point-from-minimap-point/calculate-flow-point-from-minimap-point.request.js → esm2022/f-minimap/domain/calculate-flow-point-from-minimap-point/calculate-flow-point-from-minimap-point.request.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/calculate-flow-point-from-minimap-point/index.js → esm2022/f-minimap/domain/calculate-flow-point-from-minimap-point/index.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/check-rect-is-finite.js → esm2022/f-minimap/domain/check-rect-is-finite.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/f-minimap-data.js → esm2022/f-minimap/domain/f-minimap-data.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/index.js → esm2022/f-minimap/domain/index.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/minimap-drag-finalize/index.js → esm2022/f-minimap/domain/minimap-drag-finalize/index.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.request.js → esm2022/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.request.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/minimap-drag-finalize/providers.js → esm2022/f-minimap/domain/minimap-drag-finalize/providers.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/minimap-drag-preparation/index.js → esm2022/f-minimap/domain/minimap-drag-preparation/index.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.request.js → esm2022/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.request.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/minimap-drag-preparation/providers.js → esm2022/f-minimap/domain/minimap-drag-preparation/providers.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/providers.js → esm2022/f-minimap/domain/providers.mjs} +0 -0
- /package/{esm2015/f-minimap/index.js → esm2022/f-minimap/index.mjs} +0 -0
- /package/{esm2015/f-minimap/providers.js → esm2022/f-minimap/providers.mjs} +0 -0
- /package/{esm2015/f-node/domain/index.js → esm2022/f-node/domain/index.mjs} +0 -0
- /package/{esm2015/f-node/domain/is-group.js → esm2022/f-node/domain/is-group.mjs} +0 -0
- /package/{esm2015/f-node/domain/is-node.js → esm2022/f-node/domain/is-node.mjs} +0 -0
- /package/{esm2015/f-node/f-drag-handle/index.js → esm2022/f-node/f-drag-handle/index.mjs} +0 -0
- /package/{esm2015/f-node/f-node-base.js → esm2022/f-node/f-node-base.mjs} +0 -0
- /package/{esm2015/f-node/f-resize-handle/e-f-resize-handle-type.js → esm2022/f-node/f-resize-handle/e-f-resize-handle-type.mjs} +0 -0
- /package/{esm2015/f-node/f-resize-handle/index.js → esm2022/f-node/f-resize-handle/index.mjs} +0 -0
- /package/{esm2015/f-node/f-resize-observer.js → esm2022/f-node/f-resize-observer.mjs} +0 -0
- /package/{esm2015/f-node/f-rotate-handle/index.js → esm2022/f-node/f-rotate-handle/index.mjs} +0 -0
- /package/{esm2015/f-node/index.js → esm2022/f-node/index.mjs} +0 -0
- /package/{esm2015/f-node/providers.js → esm2022/f-node/providers.mjs} +0 -0
- /package/{esm2015/f-selection-area/domain/index.js → esm2022/f-selection-area/domain/index.mjs} +0 -0
- /package/{esm2015/f-selection-area/domain/providers.js → esm2022/f-selection-area/domain/providers.mjs} +0 -0
- /package/{esm2015/f-selection-area/domain/selection-area-finalize/index.js → esm2022/f-selection-area/domain/selection-area-finalize/index.mjs} +0 -0
- /package/{esm2015/f-selection-area/domain/selection-area-finalize/providers.js → esm2022/f-selection-area/domain/selection-area-finalize/providers.mjs} +0 -0
- /package/{esm2015/f-selection-area/domain/selection-area-finalize/selection-area-finalize.request.js → esm2022/f-selection-area/domain/selection-area-finalize/selection-area-finalize.request.mjs} +0 -0
- /package/{esm2015/f-selection-area/domain/selection-area-preparation/index.js → esm2022/f-selection-area/domain/selection-area-preparation/index.mjs} +0 -0
- /package/{esm2015/f-selection-area/domain/selection-area-preparation/providers.js → esm2022/f-selection-area/domain/selection-area-preparation/providers.mjs} +0 -0
- /package/{esm2015/f-selection-area/domain/selection-area-preparation/selection-area-preparation.request.js → esm2022/f-selection-area/domain/selection-area-preparation/selection-area-preparation.request.mjs} +0 -0
- /package/{esm2015/f-selection-area/index.js → esm2022/f-selection-area/index.mjs} +0 -0
- /package/{esm2015/f-selection-area/providers.js → esm2022/f-selection-area/providers.mjs} +0 -0
- /package/{esm2015/f-storage/index.js → esm2022/f-storage/index.mjs} +0 -0
- /package/{esm2015/f-zoom/index.js → esm2022/f-zoom/index.mjs} +0 -0
- /package/{esm2015/f-zoom/providers.js → esm2022/f-zoom/providers.mjs} +0 -0
- /package/{esm2015/foblex-flow.js → esm2022/foblex-flow.mjs} +0 -0
- /package/{esm2015/i-has-host-element.js → esm2022/i-has-host-element.mjs} +0 -0
- /package/{esm2015/i-has-state-changes.js → esm2022/i-has-state-changes.mjs} +0 -0
- /package/{esm2015/mixins/change-selection/i-can-change-selection.js → esm2022/mixins/change-selection/i-can-change-selection.mjs} +0 -0
- /package/{esm2015/mixins/change-selection/index.js → esm2022/mixins/change-selection/index.mjs} +0 -0
- /package/{esm2015/mixins/change-visibility/change-visibility.js → esm2022/mixins/change-visibility/change-visibility.mjs} +0 -0
- /package/{esm2015/mixins/change-visibility/i-can-change-visibility.js → esm2022/mixins/change-visibility/i-can-change-visibility.mjs} +0 -0
- /package/{esm2015/mixins/change-visibility/index.js → esm2022/mixins/change-visibility/index.mjs} +0 -0
- /package/{esm2015/mixins/constructor.js → esm2022/mixins/constructor.mjs} +0 -0
- /package/{esm2015/mixins/index.js → esm2022/mixins/index.mjs} +0 -0
- /package/{esm2015/public-api.js → esm2022/public-api.mjs} +0 -0
- /package/{foblex-flow.d.ts → index.d.ts} +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import { CalculateChangedPositionRequest } from './calculate-changed-position.request';
|
|
4
|
+
import { RectExtensions } from '@foblex/2d';
|
|
5
|
+
import { FExecutionRegister } from '@foblex/mediator';
|
|
6
|
+
import { RESIZE_DIRECTIONS } from '../resize-direction';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export let CalculateChangedPositionExecution = class CalculateChangedPositionExecution {
|
|
9
|
+
handle(request) {
|
|
10
|
+
return this.change(request.originalRect, request.difference, RESIZE_DIRECTIONS[request.fResizeHandleType], request.changedRect);
|
|
11
|
+
}
|
|
12
|
+
change(originalRect, difference, direction, changedRect) {
|
|
13
|
+
return RectExtensions.initialize(originalRect.x + (direction.x === -1 ? difference.x : 0) + changedRect.x, originalRect.y + (direction.y === -1 ? difference.y : 0) + changedRect.y, changedRect.width, changedRect.height);
|
|
14
|
+
}
|
|
15
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CalculateChangedPositionExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
16
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CalculateChangedPositionExecution }); }
|
|
17
|
+
};
|
|
18
|
+
CalculateChangedPositionExecution = __decorate([
|
|
19
|
+
FExecutionRegister(CalculateChangedPositionRequest)
|
|
20
|
+
], CalculateChangedPositionExecution);
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CalculateChangedPositionExecution, decorators: [{
|
|
22
|
+
type: Injectable
|
|
23
|
+
}] });
|
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FsY3VsYXRlLWNoYW5nZWQtcG9zaXRpb24uZXhlY3V0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9mLWRyYWdnYWJsZS9ub2RlLXJlc2l6ZS9jYWxjdWxhdGUtY2hhbmdlZC1wb3NpdGlvbi9jYWxjdWxhdGUtY2hhbmdlZC1wb3NpdGlvbi5leGVjdXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFFLCtCQUErQixFQUFFLE1BQU0sc0NBQXNDLENBQUM7QUFDdkYsT0FBTyxFQUFpQixjQUFjLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFDM0QsT0FBTyxFQUFFLGtCQUFrQixFQUFjLE1BQU0sa0JBQWtCLENBQUM7QUFDbEUsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0scUJBQXFCLENBQUM7O0FBSWpELFdBQU0saUNBQWlDLEdBQ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ICAgICByZXR1cm4gUmVjdEV4dGVuc2lvbnMuaW5pdGlhbGl6ZShcbiAgICAgICAgb3JpZ2luYWxSZWN0LnggKyAoZGlyZWN0aW9uLnggPT09IC0xID8gZGlmZmVyZW5jZS54IDogMCkgKyBjaGFuZ2VkUmVjdC54LFxuICAgICAgICBvcmlnaW5hbFJlY3QueSArIChkaXJlY3Rpb24ueSA9PT0gLTEgPyBkaWZmZXJlbmNlLnkgOiAwKSArIGNoYW5nZWRSZWN0LnksXG4gICAgICAgIGNoYW5nZWRSZWN0LndpZHRoLFxuICAgICAgICBjaGFuZ2VkUmVjdC5oZWlnaHRcbiAgICAgICk7XG4gICAgfVxufVxuIl19
|
package/esm2022/f-draggable/node-resize/calculate-changed-size/calculate-changed-size.execution.mjs
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import { CalculateChangedSizeRequest } from './calculate-changed-size.request';
|
|
4
|
+
import { RectExtensions } from '@foblex/2d';
|
|
5
|
+
import { FExecutionRegister } from '@foblex/mediator';
|
|
6
|
+
import { RESIZE_DIRECTIONS } from '../resize-direction';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export let CalculateChangedSizeExecution = class CalculateChangedSizeExecution {
|
|
9
|
+
handle(request) {
|
|
10
|
+
return this.change(request.originalRect, request.difference, RESIZE_DIRECTIONS[request.fResizeHandleType]);
|
|
11
|
+
}
|
|
12
|
+
change(rect, difference, direction) {
|
|
13
|
+
const result = RectExtensions.initialize(0, 0, rect.width + direction.x * difference.x, rect.height + direction.y * difference.y);
|
|
14
|
+
if (result.width < 0) {
|
|
15
|
+
result.x = result.width;
|
|
16
|
+
result.width = Math.abs(result.width);
|
|
17
|
+
}
|
|
18
|
+
if (result.height < 0) {
|
|
19
|
+
result.y = result.height;
|
|
20
|
+
result.height = Math.abs(result.height);
|
|
21
|
+
}
|
|
22
|
+
return RectExtensions.copy(result);
|
|
23
|
+
}
|
|
24
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CalculateChangedSizeExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
25
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CalculateChangedSizeExecution }); }
|
|
26
|
+
};
|
|
27
|
+
CalculateChangedSizeExecution = __decorate([
|
|
28
|
+
FExecutionRegister(CalculateChangedSizeRequest)
|
|
29
|
+
], CalculateChangedSizeExecution);
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CalculateChangedSizeExecution, decorators: [{
|
|
31
|
+
type: Injectable
|
|
32
|
+
}] });
|
|
33
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FsY3VsYXRlLWNoYW5nZWQtc2l6ZS5leGVjdXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2YtZHJhZ2dhYmxlL25vZGUtcmVzaXplL2NhbGN1bGF0ZS1jaGFuZ2VkLXNpemUvY2FsY3VsYXRlLWNoYW5nZWQtc2l6ZS5leGVjdXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFFLDJCQUEyQixFQUFFLE1BQU0sa0NBQWtDLENBQUM7QUFDL0UsT0FBTyxFQUFpQixjQUFjLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFDM0QsT0FBTyxFQUFFLGtCQUFrQixFQUFjLE1BQU0sa0JBQWtCLENBQUM7QUFDbEUsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0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SwgUkVTSVpFX0RJUkVDVElPTlNbcmVxdWVzdC5mUmVzaXplSGFuZGxlVHlwZV0pO1xuICB9XG5cbiAgcHJpdmF0ZSBjaGFuZ2UocmVjdDogSVJlY3QsIGRpZmZlcmVuY2U6IElQb2ludCwgZGlyZWN0aW9uOiBJUG9pbnQpOiBJUmVjdCB7XG4gICAgY29uc3QgcmVzdWx0ID0gUmVjdEV4dGVuc2lvbnMuaW5pdGlhbGl6ZShcbiAgICAgIDAsIDAsXG4gICAgICByZWN0LndpZHRoICsgZGlyZWN0aW9uLnggKiBkaWZmZXJlbmNlLngsXG4gICAgICByZWN0LmhlaWdodCArIGRpcmVjdGlvbi55ICogZGlmZmVyZW5jZS55XG4gICAgKTtcblxuICAgIGlmIChyZXN1bHQud2lkdGggPCAwKSB7XG4gICAgICByZXN1bHQueCA9IHJlc3VsdC53aWR0aDtcbiAgICAgIHJlc3VsdC53aWR0aCA9IE1hdGguYWJzKHJlc3VsdC53aWR0aCk7XG4gICAgfVxuXG4gICAgaWYgKHJlc3VsdC5oZWlnaHQgPCAwKSB7XG4gICAgICByZXN1bHQueSA9IHJlc3VsdC5oZWlnaHQ7XG4gICAgICByZXN1bHQuaGVpZ2h0ID0gTWF0aC5hYnMocmVzdWx0LmhlaWdodCk7XG4gICAgfVxuXG4gICAgcmV0dXJuIFJlY3RFeHRlbnNpb25zLmNvcHkocmVzdWx0KTtcbiAgfVxufVxuIl19
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import { GetNodeResizeRestrictionsRequest } from './get-node-resize-restrictions.request';
|
|
4
|
+
import { FExecutionRegister } from '@foblex/mediator';
|
|
5
|
+
import { GetNormalizedParentNodeRectRequest } from '../../domain';
|
|
6
|
+
import { GetNormalizedChildrenNodesRectRequest } from '../get-normalized-children-nodes-rect';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "@foblex/mediator";
|
|
9
|
+
export let GetNodeResizeRestrictionsExecution = class GetNodeResizeRestrictionsExecution {
|
|
10
|
+
constructor(fMediator) {
|
|
11
|
+
this.fMediator = fMediator;
|
|
12
|
+
}
|
|
13
|
+
handle(request) {
|
|
14
|
+
const childRect = this.fMediator.send(new GetNormalizedChildrenNodesRectRequest(request.fNode, request.rect));
|
|
15
|
+
const parentRect = this.fMediator.send(new GetNormalizedParentNodeRectRequest(request.fNode));
|
|
16
|
+
return {
|
|
17
|
+
parentRect,
|
|
18
|
+
childRect,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GetNodeResizeRestrictionsExecution, deps: [{ token: i1.FMediator }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
22
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GetNodeResizeRestrictionsExecution }); }
|
|
23
|
+
};
|
|
24
|
+
GetNodeResizeRestrictionsExecution = __decorate([
|
|
25
|
+
FExecutionRegister(GetNodeResizeRestrictionsRequest)
|
|
26
|
+
], GetNodeResizeRestrictionsExecution);
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GetNodeResizeRestrictionsExecution, decorators: [{
|
|
28
|
+
type: Injectable
|
|
29
|
+
}], ctorParameters: function () { return [{ type: i1.FMediator }]; } });
|
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0LW5vZGUtcmVzaXplLXJlc3RyaWN0aW9ucy5leGVjdXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2YtZHJhZ2dhYmxlL25vZGUtcmVzaXplL2dldC1ub2RlLXJ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9XG5cbiAgcHVibGljIGhhbmRsZShyZXF1ZXN0OiBHZXROb2RlUmVzaXplUmVzdHJpY3Rpb25zUmVxdWVzdCk6IElOb2RlUmVzaXplUmVzdHJpY3Rpb25zIHtcbiAgICBjb25zdCBjaGlsZFJlY3QgPSB0aGlzLmZNZWRpYXRvci5zZW5kPElSZWN0IHwgbnVsbD4obmV3IEdldE5vcm1hbGl6ZWRDaGlsZHJlbk5vZGVzUmVjdFJlcXVlc3QocmVxdWVzdC5mTm9kZSwgcmVxdWVzdC5yZWN0KSk7XG4gICAgY29uc3QgcGFyZW50UmVjdCA9IHRoaXMuZk1lZGlhdG9yLnNlbmQ8SVJlY3Q+KG5ldyBHZXROb3JtYWxpemVkUGFyZW50Tm9kZVJlY3RSZXF1ZXN0KHJlcXVlc3QuZk5vZGUpKTtcblxuICAgIHJldHVybiB7XG4gICAgICBwYXJlbnRSZWN0LFxuICAgICAgY2hpbGRSZWN0LFxuICAgIH1cbiAgfVxufVxuIl19
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import { GetNormalizedChildrenNodesRectRequest } from './get-normalized-children-nodes-rect.request';
|
|
4
|
+
import { RectExtensions } from '@foblex/2d';
|
|
5
|
+
import { FExecutionRegister } from '@foblex/mediator';
|
|
6
|
+
import { GetNodePaddingRequest, GetNormalizedNodeRectRequest } from '../../domain';
|
|
7
|
+
import { GetDeepChildrenNodesAndGroupsRequest } from '../../../domain';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "@foblex/mediator";
|
|
10
|
+
export let GetNormalizedChildrenNodesRectExecution = class GetNormalizedChildrenNodesRectExecution {
|
|
11
|
+
constructor(fMediator) {
|
|
12
|
+
this.fMediator = fMediator;
|
|
13
|
+
}
|
|
14
|
+
handle(request) {
|
|
15
|
+
const childNodeRect = RectExtensions.union(this.getChildrenNodes(request.fNode.fId).map((x) => this.normalizeRect(x)));
|
|
16
|
+
return childNodeRect ?
|
|
17
|
+
this.concatRectWithParentPadding(childNodeRect, this.getNodePadding(request.fNode, request.rect)) : null;
|
|
18
|
+
}
|
|
19
|
+
getChildrenNodes(fId) {
|
|
20
|
+
return this.fMediator.send(new GetDeepChildrenNodesAndGroupsRequest(fId));
|
|
21
|
+
}
|
|
22
|
+
normalizeRect(node) {
|
|
23
|
+
return this.fMediator.send(new GetNormalizedNodeRectRequest(node));
|
|
24
|
+
}
|
|
25
|
+
getNodePadding(node, rect) {
|
|
26
|
+
return this.fMediator.send(new GetNodePaddingRequest(node, rect));
|
|
27
|
+
}
|
|
28
|
+
concatRectWithParentPadding(rect, padding) {
|
|
29
|
+
return RectExtensions.initialize(rect.x - padding[0], rect.y - padding[1], rect.width + padding[0] + padding[2], rect.height + +padding[1] + padding[3]);
|
|
30
|
+
}
|
|
31
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GetNormalizedChildrenNodesRectExecution, deps: [{ token: i1.FMediator }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
32
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GetNormalizedChildrenNodesRectExecution }); }
|
|
33
|
+
};
|
|
34
|
+
GetNormalizedChildrenNodesRectExecution = __decorate([
|
|
35
|
+
FExecutionRegister(GetNormalizedChildrenNodesRectRequest)
|
|
36
|
+
], GetNormalizedChildrenNodesRectExecution);
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: GetNormalizedChildrenNodesRectExecution, decorators: [{
|
|
38
|
+
type: Injectable
|
|
39
|
+
}], ctorParameters: function () { return [{ type: i1.FMediator }]; } });
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0LW5vcm1hbGl6ZWQtY2hpb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9ybWFsaXplZE5vZGVSZWN0UmVxdWVzdChub2RlKSk7XG4gIH1cblxuICBwcml2YXRlIGdldE5vZGVQYWRkaW5nKG5vZGU6IEZOb2RlQmFzZSwgcmVjdDogSVJlY3QpOiBbIG51bWJlciwgbnVtYmVyLCBudW1iZXIsIG51bWJlciBdIHtcbiAgICByZXR1cm4gdGhpcy5mTWVkaWF0b3Iuc2VuZDxbIG51bWJlciwgbnVtYmVyLCBudW1iZXIsIG51bWJlciBdPihuZXcgR2V0Tm9kZVBhZGRpbmdSZXF1ZXN0KG5vZGUsIHJlY3QpKTtcbiAgfVxuXG4gIHByaXZhdGUgY29uY2F0UmVjdFdpdGhQYXJlbnRQYWRkaW5nKHJlY3Q6IElSZWN0LCBwYWRkaW5nOiBbIG51bWJlciwgbnVtYmVyLCBudW1iZXIsIG51bWJlciBdKTogSVJlY3Qge1xuICAgIHJldHVybiBSZWN0RXh0ZW5zaW9ucy5pbml0aWFsaXplKFxuICAgICAgcmVjdC54IC0gcGFkZGluZ1swXSxcbiAgICAgIHJlY3QueSAtIHBhZGRpbmdbMV0sXG4gICAgICByZWN0LndpZHRoICsgcGFkZGluZ1swXSArIHBhZGRpbmdbMl0sXG4gICAgICByZWN0LmhlaWdodCArICsgcGFkZGluZ1sxXSArIHBhZGRpbmdbM11cbiAgICApO1xuICB9XG59XG4iXX0=
|
package/esm2022/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.execution.mjs
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import { NodeResizeFinalizeRequest } from './node-resize-finalize.request';
|
|
4
|
+
import { FExecutionRegister } from '@foblex/mediator';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "../../f-draggable-data-context";
|
|
7
|
+
export let NodeResizeFinalizeExecution = class NodeResizeFinalizeExecution {
|
|
8
|
+
constructor(fDraggableDataContext) {
|
|
9
|
+
this.fDraggableDataContext = fDraggableDataContext;
|
|
10
|
+
}
|
|
11
|
+
handle(request) {
|
|
12
|
+
this.fDraggableDataContext.draggableItems.forEach((x) => {
|
|
13
|
+
x.complete?.();
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NodeResizeFinalizeExecution, deps: [{ token: i1.FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
17
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NodeResizeFinalizeExecution }); }
|
|
18
|
+
};
|
|
19
|
+
NodeResizeFinalizeExecution = __decorate([
|
|
20
|
+
FExecutionRegister(NodeResizeFinalizeRequest)
|
|
21
|
+
], NodeResizeFinalizeExecution);
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NodeResizeFinalizeExecution, decorators: [{
|
|
23
|
+
type: Injectable
|
|
24
|
+
}], ctorParameters: function () { return [{ type: i1.FDraggableDataContext }]; } });
|
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9kZS1yZXNpemUtZmluYWxpemUuZXhlY3V0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9mLWRyYWdnYWJsZS9ub2RlLXJlc2l6ZS9ub2RlLXJlc2l6ZS1maW5hbGl6ZS9ub2RlLXJlc2l6ZS1maW5hbGl6ZS5leGVjdXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFFLHlCQUF5QixFQUFFLE1BQU0sZ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aXplRmluYWxpemVFeGVjdXRpb24gaW1wbGVtZW50cyBJRXhlY3V0aW9uPE5vZGVSZXNpemVGaW5hbGl6ZVJlcXVlc3QsIHZvaWQ+IHtcblxuICBjb25zdHJ1Y3RvcihcbiAgICBwcml2YXRlIGZEcmFnZ2FibGVEYXRhQ29udGV4dDogRkRyYWdnYWJsZURhdGFDb250ZXh0LFxuICApIHtcbiAgfVxuXG4gIHB1YmxpYyBoYW5kbGUocmVxdWVzdDogTm9kZVJlc2l6ZUZpbmFsaXplUmVxdWVzdCk6IHZvaWQge1xuICAgIHRoaXMuZkRyYWdnYWJsZURhdGFDb250ZXh0LmRyYWdnYWJsZUl0ZW1zLmZvckVhY2goKHgpID0+IHtcbiAgICAgIHguY29tcGxldGU/LigpO1xuICAgIH0pO1xuICB9XG59XG4iXX0=
|
package/esm2022/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.validator.mjs
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import { NodeResizeFinalizeRequest } from './node-resize-finalize.request';
|
|
4
|
+
import { FValidatorRegister } from '@foblex/mediator';
|
|
5
|
+
import { NodeResizeDragHandler } from '../node-resize.drag-handler';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "../../f-draggable-data-context";
|
|
8
|
+
export let NodeResizeFinalizeValidator = class NodeResizeFinalizeValidator {
|
|
9
|
+
constructor(fDraggableDataContext) {
|
|
10
|
+
this.fDraggableDataContext = fDraggableDataContext;
|
|
11
|
+
}
|
|
12
|
+
handle(request) {
|
|
13
|
+
return this.fDraggableDataContext.draggableItems.some((x) => x instanceof NodeResizeDragHandler);
|
|
14
|
+
}
|
|
15
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NodeResizeFinalizeValidator, deps: [{ token: i1.FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
16
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NodeResizeFinalizeValidator }); }
|
|
17
|
+
};
|
|
18
|
+
NodeResizeFinalizeValidator = __decorate([
|
|
19
|
+
FValidatorRegister(NodeResizeFinalizeRequest)
|
|
20
|
+
], NodeResizeFinalizeValidator);
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NodeResizeFinalizeValidator, decorators: [{
|
|
22
|
+
type: Injectable
|
|
23
|
+
}], ctorParameters: function () { return [{ type: i1.FDraggableDataContext }]; } });
|
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9kZS1yZXNpemUtZmluYWxpemUudmFsaWRhdG9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9mLWRyYWdnYWJsZS9ub2RlLXJlc2l6ZS9ub2RlLXJlc2l6ZS1maW5hbGl6ZS9ub2RlLXJlc2l6ZS1maW5hbGl6ZS52YWxpZGF0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFFLHlCQUF5QixFQUFFLE1BQU0sZ0NBQWdDLENBQUM7QUFDM0UsT0FBTyxFQUFFLGtCQUFrQixFQUFjLE1BQU0sa0JBQWtCLENBQUM7QUFFbEUsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sNkJBQTZCLENBQUM7OztBQUk3RCxXQUFNLDJCQUEyQixHQUFqQyxNQUFNLDJCQUEyQjtJQUV0QyxZQUNVLHFCQUE0QztRQUE1QywwQkFBcUIsR0FBckIscUJBQXFCLENBQXVCO0lBRXRELENB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dmF0ZSBmRHJhZ2dhYmxlRGF0YUNvbnRleHQ6IEZEcmFnZ2FibGVEYXRhQ29udGV4dFxuICApIHtcbiAgfVxuXG4gIHB1YmxpYyBoYW5kbGUocmVxdWVzdDogTm9kZVJlc2l6ZUZpbmFsaXplUmVxdWVzdCk6IGJvb2xlYW4ge1xuICAgIHJldHVybiB0aGlzLmZEcmFnZ2FibGVEYXRhQ29udGV4dC5kcmFnZ2FibGVJdGVtcy5zb21lKCh4KSA9PlxuICAgICAgeCBpbnN0YW5jZW9mIE5vZGVSZXNpemVEcmFnSGFuZGxlclxuICAgICk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import { NodeResizePreparationRequest } from './node-resize-preparation.request';
|
|
4
|
+
import { Point } from '@foblex/2d';
|
|
5
|
+
import { FExecutionRegister } from '@foblex/mediator';
|
|
6
|
+
import { SelectAndUpdateNodeLayerRequest, } from '../../../domain';
|
|
7
|
+
import { EFResizeHandleType } from '../../../f-node';
|
|
8
|
+
import { NodeResizeDragHandler } from '../node-resize.drag-handler';
|
|
9
|
+
import { getDataAttrValueFromClosestElementWithClass } from '@foblex/utils';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
import * as i1 from "../../../f-storage";
|
|
12
|
+
import * as i2 from "../../f-draggable-data-context";
|
|
13
|
+
import * as i3 from "@foblex/mediator";
|
|
14
|
+
export let NodeResizePreparationExecution = class NodeResizePreparationExecution {
|
|
15
|
+
get transform() {
|
|
16
|
+
return this.fComponentsStore.fCanvas.transform;
|
|
17
|
+
}
|
|
18
|
+
get flowHost() {
|
|
19
|
+
return this.fComponentsStore.fFlow.hostElement;
|
|
20
|
+
}
|
|
21
|
+
constructor(fComponentsStore, fDraggableDataContext, fMediator) {
|
|
22
|
+
this.fComponentsStore = fComponentsStore;
|
|
23
|
+
this.fDraggableDataContext = fDraggableDataContext;
|
|
24
|
+
this.fMediator = fMediator;
|
|
25
|
+
}
|
|
26
|
+
handle(request) {
|
|
27
|
+
this.selectAndUpdateNodeLayer(request.event.targetElement);
|
|
28
|
+
const handleType = getDataAttrValueFromClosestElementWithClass(request.event.targetElement, 'fResizeHandleType', '.f-resize-handle');
|
|
29
|
+
const itemsToDrag = [
|
|
30
|
+
new NodeResizeDragHandler(this.fMediator, this.getNode(request.event.targetElement), EFResizeHandleType[handleType])
|
|
31
|
+
];
|
|
32
|
+
this.fDraggableDataContext.onPointerDownScale = this.transform.scale;
|
|
33
|
+
this.fDraggableDataContext.onPointerDownPosition = Point.fromPoint(request.event.getPosition())
|
|
34
|
+
.elementTransform(this.flowHost).div(this.transform.scale);
|
|
35
|
+
this.fDraggableDataContext.draggableItems = itemsToDrag;
|
|
36
|
+
}
|
|
37
|
+
selectAndUpdateNodeLayer(targetElement) {
|
|
38
|
+
this.fMediator.send(new SelectAndUpdateNodeLayerRequest(this.getNode(targetElement)));
|
|
39
|
+
}
|
|
40
|
+
getNode(targetElement) {
|
|
41
|
+
return this.fComponentsStore.findNode(targetElement);
|
|
42
|
+
}
|
|
43
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NodeResizePreparationExecution, deps: [{ token: i1.FComponentsStore }, { token: i2.FDraggableDataContext }, { token: i3.FMediator }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
44
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NodeResizePreparationExecution }); }
|
|
45
|
+
};
|
|
46
|
+
NodeResizePreparationExecution = __decorate([
|
|
47
|
+
FExecutionRegister(NodeResizePreparationRequest)
|
|
48
|
+
], NodeResizePreparationExecution);
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NodeResizePreparationExecution, decorators: [{
|
|
50
|
+
type: Injectable
|
|
51
|
+
}], ctorParameters: function () { return [{ type: i1.FComponentsStore }, { type: i2.FDraggableDataContext }, { type: i3.FMediator }]; } });
|
|
52
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9kZS1yZXNpemUtcHJlcGFyYXRpb24uZXhlY3V0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9mLWRyYWdnYWJsZS9ub2RlLXJlc2l6ZS9ub2RlLXJlc2l6ZS1wcmVwYXJhdGlvbi9ub2RlLXJlc2l6ZS1wcmVwYXJhdGlvbi5leGVjdXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFFLDRCQUE0QixFQUFFLE1BQU0sbUNBQW1DLENBQUM7QUFDakYsT0FBTyxFQUFtQixLQUFLLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFDcEQsT0FBTyxFQUFFLGtCQUFrQixFQUF5QixNQUFNLGtCQUFrQixDQUFDO0FBRzdFLE9BQU8sRUFDTCwrQkFBK0IsR0FDaEMsTUFBTSxpQkFBaUIsQ0FBQztBQUV6QixPQUFPLEVBQUUsa0JBQWtCLEVBQWEsTUFBTSxpQkFBaUIsQ0FBQztBQUNoRSxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUNwRSxPQUFPLEVBQUUsMkNBQTJDLEVBQUUsTUFBTSxlQUFlLENBQUM7Ozs7O0FBSXJFLFdBQU0sOEJBQThCLEdBQXBDLE1BQU0sOEJBQThCO0lBRXpDLElBQVksU0FBUztRQUNuQixPQUFPLElBQUksQ0FBQyxnQkFBZ0IsQ0FBQyxPQUFRLENBQUMsU0FBUyxDQUFDO0lBQ2xELENBQUM7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VBvaW50KHJlcXVlc3QuZXZlbnQuZ2V0UG9zaXRpb24oKSlcbiAgICAgIC5lbGVtZW50VHJhbnNmb3JtKHRoaXMuZmxvd0hvc3QpLmRpdih0aGlzLnRyYW5zZm9ybS5zY2FsZSk7XG4gICAgdGhpcy5mRHJhZ2dhYmxlRGF0YUNvbnRleHQuZHJhZ2dhYmxlSXRlbXMgPSBpdGVtc1RvRHJhZztcbiAgfVxuXG4gIHByaXZhdGUgc2VsZWN0QW5kVXBkYXRlTm9kZUxheWVyKHRhcmdldEVsZW1lbnQ6IEhUTUxFbGVtZW50KSB7XG4gICAgdGhpcy5mTWVkaWF0b3Iuc2VuZChcbiAgICAgIG5ldyBTZWxlY3RBbmRVcGRhdGVOb2RlTGF5ZXJSZXF1ZXN0KHRoaXMuZ2V0Tm9kZSh0YXJnZXRFbGVtZW50KSlcbiAgICApO1xuICB9XG5cbiAgcHJpdmF0ZSBnZXROb2RlKHRhcmdldEVsZW1lbnQ6IEhUTUxFbGVtZW50KTogRk5vZGVCYXNlIHtcbiAgICByZXR1cm4gdGhpcy5mQ29tcG9uZW50c1N0b3JlLmZpbmROb2RlKHRhcmdldEVsZW1lbnQpITtcbiAgfVxufVxuIl19
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import { NodeResizePreparationRequest } from './node-resize-preparation.request';
|
|
4
|
+
import { FValidatorRegister } from '@foblex/mediator';
|
|
5
|
+
import { isClosestElementHasClass } from '@foblex/utils';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "../../../f-storage";
|
|
8
|
+
import * as i2 from "../../f-draggable-data-context";
|
|
9
|
+
export let NodeResizePreparationValidator = class NodeResizePreparationValidator {
|
|
10
|
+
constructor(fComponentsStore, fDraggableDataContext) {
|
|
11
|
+
this.fComponentsStore = fComponentsStore;
|
|
12
|
+
this.fDraggableDataContext = fDraggableDataContext;
|
|
13
|
+
}
|
|
14
|
+
handle(request) {
|
|
15
|
+
return this.isDragHandlesEmpty()
|
|
16
|
+
&& this.isDragHandleElement(request.event.targetElement)
|
|
17
|
+
&& this.isNodeCanBeDragged(this.getNode(request.event.targetElement));
|
|
18
|
+
}
|
|
19
|
+
isDragHandlesEmpty() {
|
|
20
|
+
return !this.fDraggableDataContext.draggableItems.length;
|
|
21
|
+
}
|
|
22
|
+
getNode(targetElement) {
|
|
23
|
+
return this.fComponentsStore.findNode(targetElement);
|
|
24
|
+
}
|
|
25
|
+
isNodeCanBeDragged(node) {
|
|
26
|
+
return !!node && !node.fDraggingDisabled;
|
|
27
|
+
}
|
|
28
|
+
isDragHandleElement(targetElement) {
|
|
29
|
+
return isClosestElementHasClass(targetElement, '.f-resize-handle');
|
|
30
|
+
}
|
|
31
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NodeResizePreparationValidator, deps: [{ token: i1.FComponentsStore }, { token: i2.FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
32
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NodeResizePreparationValidator }); }
|
|
33
|
+
};
|
|
34
|
+
NodeResizePreparationValidator = __decorate([
|
|
35
|
+
FValidatorRegister(NodeResizePreparationRequest)
|
|
36
|
+
], NodeResizePreparationValidator);
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NodeResizePreparationValidator, decorators: [{
|
|
38
|
+
type: Injectable
|
|
39
|
+
}], ctorParameters: function () { return [{ type: i1.FComponentsStore }, { type: i2.FDraggableDataContext }]; } });
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9kZS1yZXNpemUtcHJlcGFyYXRpb24udmFsaWRhdG9yLmpzIiwic291cmNlUm9vdCI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gICByZXR1cm4gdGhpcy5mQ29tcG9uZW50c1N0b3JlLmZpbmROb2RlKHRhcmdldEVsZW1lbnQpO1xuICB9XG5cbiAgcHJpdmF0ZSBpc05vZGVDYW5CZURyYWdnZWQobm9kZTogRk5vZGVCYXNlIHwgdW5kZWZpbmVkKTogYm9vbGVhbiB7XG4gICAgcmV0dXJuICEhbm9kZSAmJiAhbm9kZS5mRHJhZ2dpbmdEaXNhYmxlZDtcbiAgfVxuXG4gIHByaXZhdGUgaXNEcmFnSGFuZGxlRWxlbWVudCh0YXJnZXRFbGVtZW50OiBIVE1MRWxlbWVudCk6IGJvb2xlYW4ge1xuICAgIHJldHVybiBpc0Nsb3Nlc3RFbGVtZW50SGFzQ2xhc3ModGFyZ2V0RWxlbWVudCwgJy5mLXJlc2l6ZS1oYW5kbGUnKTtcbiAgfVxufVxuIl19
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import { FExecutionRegister } from '@foblex/mediator';
|
|
4
|
+
import { SingleSelectRequest } from './single-select.request';
|
|
5
|
+
import { UpdateItemAndChildrenLayersRequest } from '../../domain';
|
|
6
|
+
import { EOperationSystem } from '@foblex/platform';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "@foblex/platform";
|
|
9
|
+
import * as i2 from "../../f-storage";
|
|
10
|
+
import * as i3 from "../f-draggable-data-context";
|
|
11
|
+
import * as i4 from "@foblex/mediator";
|
|
12
|
+
export let SingleSelectExecution = class SingleSelectExecution {
|
|
13
|
+
constructor(fPlatform, fComponentsStore, fDraggableDataContext, fMediator) {
|
|
14
|
+
this.fPlatform = fPlatform;
|
|
15
|
+
this.fComponentsStore = fComponentsStore;
|
|
16
|
+
this.fDraggableDataContext = fDraggableDataContext;
|
|
17
|
+
this.fMediator = fMediator;
|
|
18
|
+
}
|
|
19
|
+
handle(request) {
|
|
20
|
+
const { event } = request;
|
|
21
|
+
const item = this.getSelectableItem(event);
|
|
22
|
+
if (item) {
|
|
23
|
+
this.fMediator.send(new UpdateItemAndChildrenLayersRequest(item, item.hostElement.parentElement));
|
|
24
|
+
}
|
|
25
|
+
this.isMultiselectEnabled(event) ? this.multiSelect(item) : this.singleSelect(item);
|
|
26
|
+
}
|
|
27
|
+
getSelectableItem(event) {
|
|
28
|
+
return this.fComponentsStore.findNode(event.targetElement) || this.getConnectionHandler(event.targetElement);
|
|
29
|
+
}
|
|
30
|
+
getConnectionHandler(element) {
|
|
31
|
+
return this.fComponentsStore.fConnections.find(c => c.isContains(element) || c.fConnectionCenter?.nativeElement?.contains(element));
|
|
32
|
+
}
|
|
33
|
+
isMultiselectEnabled(event) {
|
|
34
|
+
return this.isCommandButton(this.fPlatform.getOS(), event.originalEvent) ||
|
|
35
|
+
this.isShiftPressed(event.originalEvent);
|
|
36
|
+
}
|
|
37
|
+
isShiftPressed(event) {
|
|
38
|
+
return event.shiftKey;
|
|
39
|
+
}
|
|
40
|
+
isCommandButton(platform, event) {
|
|
41
|
+
return platform === EOperationSystem.MAC_OS ? event.metaKey : event.ctrlKey;
|
|
42
|
+
}
|
|
43
|
+
singleSelect(item) {
|
|
44
|
+
if (item) {
|
|
45
|
+
if (!item.isSelected() && !item.fSelectionDisabled) {
|
|
46
|
+
this.clearSelection();
|
|
47
|
+
this.selectItem(item);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
this.clearSelection();
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
multiSelect(item) {
|
|
55
|
+
if (item && !item.fSelectionDisabled) {
|
|
56
|
+
item.isSelected() ? this.deselectItem(item) : this.selectItem(item);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
deselectItem(item) {
|
|
60
|
+
const index = this.fDraggableDataContext.selectedItems.indexOf(item);
|
|
61
|
+
if (index > -1) {
|
|
62
|
+
this.fDraggableDataContext.selectedItems.splice(index, 1);
|
|
63
|
+
}
|
|
64
|
+
item.deselect();
|
|
65
|
+
this.fDraggableDataContext.markSelectionAsChanged();
|
|
66
|
+
}
|
|
67
|
+
selectItem(item) {
|
|
68
|
+
this.fDraggableDataContext.selectedItems.push(item);
|
|
69
|
+
item.select();
|
|
70
|
+
this.fDraggableDataContext.markSelectionAsChanged();
|
|
71
|
+
}
|
|
72
|
+
clearSelection() {
|
|
73
|
+
this.fDraggableDataContext.selectedItems.forEach((x) => {
|
|
74
|
+
x.deselect();
|
|
75
|
+
this.fDraggableDataContext.markSelectionAsChanged();
|
|
76
|
+
});
|
|
77
|
+
this.fDraggableDataContext.selectedItems = [];
|
|
78
|
+
}
|
|
79
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SingleSelectExecution, deps: [{ token: i1.PlatformService }, { token: i2.FComponentsStore }, { token: i3.FDraggableDataContext }, { token: i4.FMediator }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
80
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SingleSelectExecution }); }
|
|
81
|
+
};
|
|
82
|
+
SingleSelectExecution = __decorate([
|
|
83
|
+
FExecutionRegister(SingleSelectRequest)
|
|
84
|
+
], SingleSelectExecution);
|
|
85
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SingleSelectExecution, decorators: [{
|
|
86
|
+
type: Injectable
|
|
87
|
+
}], ctorParameters: function () { return [{ type: i1.PlatformService }, { type: i2.FComponentsStore }, { type: i3.FDraggableDataContext }, { type: i4.FMediator }]; } });
|
|
88
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2luZ2xlLXNlbGVjdC5leGVjdXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb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HguZGVzZWxlY3QoKTtcbiAgICAgIHRoaXMuZkRyYWdnYWJsZURhdGFDb250ZXh0Lm1hcmtTZWxlY3Rpb25Bc0NoYW5nZWQoKTtcbiAgICB9KTtcbiAgICB0aGlzLmZEcmFnZ2FibGVEYXRhQ29udGV4dC5zZWxlY3RlZEl0ZW1zID0gW107XG4gIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import { FValidatorRegister } from '@foblex/mediator';
|
|
4
|
+
import { SingleSelectRequest } from './single-select.request';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "../../f-storage";
|
|
7
|
+
import * as i2 from "../f-draggable-data-context";
|
|
8
|
+
export let SingleSelectValidator = class SingleSelectValidator {
|
|
9
|
+
constructor(fComponentsStore, fDraggableDataContext) {
|
|
10
|
+
this.fComponentsStore = fComponentsStore;
|
|
11
|
+
this.fDraggableDataContext = fDraggableDataContext;
|
|
12
|
+
}
|
|
13
|
+
handle(request) {
|
|
14
|
+
return this.fComponentsStore.fFlow.hostElement.contains(request.event.targetElement)
|
|
15
|
+
&& !this.fDraggableDataContext.draggableItems.length;
|
|
16
|
+
}
|
|
17
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SingleSelectValidator, deps: [{ token: i1.FComponentsStore }, { token: i2.FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
18
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SingleSelectValidator }); }
|
|
19
|
+
};
|
|
20
|
+
SingleSelectValidator = __decorate([
|
|
21
|
+
FValidatorRegister(SingleSelectRequest)
|
|
22
|
+
], SingleSelectValidator);
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SingleSelectValidator, decorators: [{
|
|
24
|
+
type: Injectable
|
|
25
|
+
}], ctorParameters: function () { return [{ type: i1.FComponentsStore }, { type: i2.FDraggableDataContext }]; } });
|
|
26
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2luZ2xlLXNlbGVjdC52YWxpZGF0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2YtZHJhZ2dhYmxlL3NpbmdsZS1zZWxlY3Qvc2luZ2xlLXNlbGVjdC52YWxpZGF0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFFLGtCQUFrQixFQUFjLE1BQU0sa0JBQWtCLENBQUM7QUFDbEUsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0seUJBQXlCLENBQUM7Ozs7QUFNdkQsV0FBTSxxQkFBcUIsR0FBM0IsTUFBTSxxQkFBcUI7SUFFaEMsWUFDVSxnQkFBa0MsRUFDbEMscUJBQTRDO1FBRDVDLHFCQUFnQixHQUFoQixnQkFBZ0IsQ0FBa0I7UUFDbEMsMEJBQXFCLEdBQXJCLHFCQUFxQixDQUF1QjtJQUV0RCxDQUFDO0lBRU0sTUFBTSxDQUFDLE9BQTRCO1FBQ3hDLE9BQU8sSUFBSSxDQUFDLGdCQUFnQixDQUFDLEtBQU0sQ0FBQyxXQUFXLENBQUMsUUFBUSxDQUFDLE9BQU8sQ0FBQyxLQUFLLENBQUMsYUFBYSxDQUFDO2VBQ2hGLENBQUMsSUFBSSxDQUFDLHFCQUFxQixDQUFDLGNBQWMsQ0FBQyxNQUFNLENBQUM7SUFDekQsQ0FBQzsrR0FYVSxxQkFBcUI7bUhBQXJCLHFCQUFxQjs7QUFBckIscU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HJlcXVlc3QuZXZlbnQudGFyZ2V0RWxlbWVudClcbiAgICAgICYmICF0aGlzLmZEcmFnZ2FibGVEYXRhQ29udGV4dC5kcmFnZ2FibGVJdGVtcy5sZW5ndGg7XG4gIH1cbn1cbiJdfQ==
|
package/esm2022/f-external-item/domain/external-item-finalize/external-item-finalize.execution.mjs
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import { ExternalItemFinalizeRequest } from './external-item-finalize.request';
|
|
4
|
+
import { FExecutionRegister } from '@foblex/mediator';
|
|
5
|
+
import { FCreateNodeEvent } from '../f-create-node.event';
|
|
6
|
+
import { GetElementRectInFlowRequest } from '../../../domain';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "../../../f-storage";
|
|
9
|
+
import * as i2 from "../../../f-draggable";
|
|
10
|
+
import * as i3 from "@foblex/mediator";
|
|
11
|
+
import * as i4 from "@foblex/platform";
|
|
12
|
+
export let ExternalItemFinalizeExecution = class ExternalItemFinalizeExecution {
|
|
13
|
+
get flowHost() {
|
|
14
|
+
return this.fComponentsStore.fFlow.hostElement;
|
|
15
|
+
}
|
|
16
|
+
get fCreateNode() {
|
|
17
|
+
return this.fComponentsStore.fDraggable.fCreateNode;
|
|
18
|
+
}
|
|
19
|
+
get dragHandler() {
|
|
20
|
+
return this.fDraggableDataContext.draggableItems[0];
|
|
21
|
+
}
|
|
22
|
+
constructor(fComponentsStore, fDraggableDataContext, fMediator, fBrowser) {
|
|
23
|
+
this.fComponentsStore = fComponentsStore;
|
|
24
|
+
this.fDraggableDataContext = fDraggableDataContext;
|
|
25
|
+
this.fMediator = fMediator;
|
|
26
|
+
this.fBrowser = fBrowser;
|
|
27
|
+
}
|
|
28
|
+
handle(request) {
|
|
29
|
+
this.emitEvent(this.getExternalItemElementsFromPoint(request.event.getPosition()));
|
|
30
|
+
this.dragHandler.complete();
|
|
31
|
+
}
|
|
32
|
+
getExternalItemElementsFromPoint(position) {
|
|
33
|
+
return this.fBrowser.document.elementsFromPoint(position.x, position.y)
|
|
34
|
+
.filter(x => !x.closest('.f-external-item'));
|
|
35
|
+
}
|
|
36
|
+
emitEvent(elements) {
|
|
37
|
+
if (this.isPointerInCanvasRect(elements)) {
|
|
38
|
+
this.fCreateNode.emit(new FCreateNodeEvent(this.getRectInCanvas(), this.dragHandler.externalItem.fData));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
isPointerInCanvasRect(elements) {
|
|
42
|
+
return elements.length ? this.flowHost.contains(elements[0]) : false;
|
|
43
|
+
}
|
|
44
|
+
getRectInCanvas() {
|
|
45
|
+
return this.fMediator.send(new GetElementRectInFlowRequest(this.dragHandler.placeholder));
|
|
46
|
+
}
|
|
47
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExternalItemFinalizeExecution, deps: [{ token: i1.FComponentsStore }, { token: i2.FDraggableDataContext }, { token: i3.FMediator }, { token: i4.BrowserService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
48
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExternalItemFinalizeExecution }); }
|
|
49
|
+
};
|
|
50
|
+
ExternalItemFinalizeExecution = __decorate([
|
|
51
|
+
FExecutionRegister(ExternalItemFinalizeRequest)
|
|
52
|
+
], ExternalItemFinalizeExecution);
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExternalItemFinalizeExecution, decorators: [{
|
|
54
|
+
type: Injectable
|
|
55
|
+
}], ctorParameters: function () { return [{ type: i1.FComponentsStore }, { type: i2.FDraggableDataContext }, { type: i3.FMediator }, { type: i4.BrowserService }]; } });
|
|
56
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoi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xJdGVtLmZEYXRhKVxuICAgICAgKTtcbiAgICB9XG4gIH1cblxuICBwcml2YXRlIGlzUG9pbnRlckluQ2FudmFzUmVjdChlbGVtZW50czogSFRNTEVsZW1lbnRbXSk6IGJvb2xlYW4ge1xuICAgIHJldHVybiBlbGVtZW50cy5sZW5ndGggPyB0aGlzLmZsb3dIb3N0LmNvbnRhaW5zKGVsZW1lbnRzWyAwIF0pIDogZmFsc2U7XG4gIH1cblxuICBwcml2YXRlIGdldFJlY3RJbkNhbnZhcygpOiBJUmVjdCB7XG4gICAgcmV0dXJuIHRoaXMuZk1lZGlhdG9yLnNlbmQ8SVJlY3Q+KG5ldyBHZXRFbGVtZW50UmVjdEluRmxvd1JlcXVlc3QodGhpcy5kcmFnSGFuZGxlci5wbGFjZWhvbGRlciEpKTtcbiAgfVxufVxuIl19
|
package/esm2022/f-external-item/domain/external-item-finalize/external-item-finalize.validator.mjs
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import { ExternalItemFinalizeRequest } from './external-item-finalize.request';
|
|
4
|
+
import { FValidatorRegister } from '@foblex/mediator';
|
|
5
|
+
import { ExternalItemDragHandler } from '../external-item.drag-handler';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "../../../f-draggable";
|
|
8
|
+
export let ExternalItemFinalizeValidator = class ExternalItemFinalizeValidator {
|
|
9
|
+
constructor(fDraggableDataContext) {
|
|
10
|
+
this.fDraggableDataContext = fDraggableDataContext;
|
|
11
|
+
}
|
|
12
|
+
handle(request) {
|
|
13
|
+
return this.fDraggableDataContext.draggableItems.some((x) => x instanceof ExternalItemDragHandler);
|
|
14
|
+
}
|
|
15
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExternalItemFinalizeValidator, deps: [{ token: i1.FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
16
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExternalItemFinalizeValidator }); }
|
|
17
|
+
};
|
|
18
|
+
ExternalItemFinalizeValidator = __decorate([
|
|
19
|
+
FValidatorRegister(ExternalItemFinalizeRequest)
|
|
20
|
+
], ExternalItemFinalizeValidator);
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExternalItemFinalizeValidator, decorators: [{
|
|
22
|
+
type: Injectable
|
|
23
|
+
}], ctorParameters: function () { return [{ type: i1.FDraggableDataContext }]; } });
|
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXh0ZXJuYWwtaXRlbS1maW5hbGl6ZS52YWxpZGF0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2YtZXh0ZXJuYWwtaXRlbS9kb21haW4vZXh0ZXJuYWwtaXRlbS1maW5hbGl6ZS9leHRlcm5hbC1pdGVtLWZpbmFsaXplLnZhbGlkYXRvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQUUsMkJBQTJCLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQztBQUMvRSxPQUFPLEVBQUUsa0JBQWtCLEVBQWMsTUFBTSxrQkFBa0IsQ0FBQztBQUVsRSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQzs7O0FBS2pFLFdBQU0sNkJBQTZCLEdBQW5DLE1BQU0sNkJBQTZCO0lBRXhDLFlBQ1UscUJBQTRDO1FBQTVDLDBCQUFxQixHQUFyQixxQkFBcU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