@foblex/flow 12.6.7 → 14.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/{esm2015/domain/create-connection-markers/create-connection-markers.execution.js → esm2020/domain/create-connection-markers/create-connection-markers.execution.mjs} +4 -4
- package/{esm2015/domain/create-rounded-rect-from-element/create-rounded-rect-from-element.execution.js → esm2020/domain/create-rounded-rect-from-element/create-rounded-rect-from-element.execution.mjs} +4 -4
- package/{esm2015/domain/emit-transform-changes/emit-transform-changes.execution.js → esm2020/domain/emit-transform-changes/emit-transform-changes.execution.mjs} +4 -4
- package/esm2020/domain/f-background/add-pattern-to-background/add-pattern-to-background.execution.mjs +47 -0
- package/{esm2015/domain/f-canvas/center-group-or-node/center-group-or-node.execution.js → esm2020/domain/f-canvas/center-group-or-node/center-group-or-node.execution.mjs} +4 -4
- package/{esm2015/domain/f-canvas/fit-to-flow/fit-to-flow.execution.js → esm2020/domain/f-canvas/fit-to-flow/fit-to-flow.execution.mjs} +4 -4
- package/esm2020/domain/f-canvas/input-canvas-position/input-canvas-position.execution.mjs +33 -0
- package/esm2020/domain/f-canvas/input-canvas-scale/input-canvas-scale.execution.mjs +28 -0
- package/{esm2015/domain/f-canvas/reset-scale/reset-scale.execution.js → esm2020/domain/f-canvas/reset-scale/reset-scale.execution.mjs} +4 -4
- package/{esm2015/domain/f-canvas/reset-scale-and-center/reset-scale-and-center.execution.js → esm2020/domain/f-canvas/reset-scale-and-center/reset-scale-and-center.execution.mjs} +4 -4
- package/{esm2015/domain/f-canvas/update-scale/update-scale.execution.js → esm2020/domain/f-canvas/update-scale/update-scale.execution.mjs} +4 -4
- package/{esm2015/domain/f-connection/find-closest-input-using-snap-threshold/find-closest-input-using-snap-threshold.execution.js → esm2020/domain/f-connection/find-closest-input-using-snap-threshold/find-closest-input-using-snap-threshold.execution.mjs} +4 -4
- package/{esm2015/domain/f-connection/get-all-can-be-connected-input-positions/get-all-can-be-connected-input-positions.execution.js → esm2020/domain/f-connection/get-all-can-be-connected-input-positions/get-all-can-be-connected-input-positions.execution.mjs} +5 -5
- package/{esm2015/domain/f-connection/get-connector-with-rect/get-connector-with-rect.execution.js → esm2020/domain/f-connection/get-connector-with-rect/get-connector-with-rect.execution.mjs} +4 -4
- package/{esm2015/domain/f-selection/clear-selection/clear-selection.execution.js → esm2020/domain/f-selection/clear-selection/clear-selection.execution.mjs} +4 -4
- package/{esm2015/domain/f-selection/get-selection/get-selection.execution.js → esm2020/domain/f-selection/get-selection/get-selection.execution.mjs} +4 -4
- package/{esm2015/domain/f-selection/select/select.execution.js → esm2020/domain/f-selection/select/select.execution.mjs} +4 -4
- package/{esm2015/domain/f-selection/select-all/select-all.execution.js → esm2020/domain/f-selection/select-all/select-all.execution.mjs} +4 -4
- package/{esm2015/domain/f-selection/select-and-update-node-layer/select-and-update-node-layer.execution.js → esm2020/domain/f-selection/select-and-update-node-layer/select-and-update-node-layer.execution.mjs} +4 -4
- package/{esm2015/domain/get-can-be-selected-items/get-can-be-selected-items.execution.js → esm2020/domain/get-can-be-selected-items/get-can-be-selected-items.execution.mjs} +4 -4
- package/{esm2015/domain/get-connection-line/get-connection-line.execution.js → esm2020/domain/get-connection-line/get-connection-line.execution.mjs} +4 -4
- package/{esm2015/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.execution.js → esm2020/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.execution.mjs} +4 -4
- package/{esm2015/domain/get-element-rect-in-flow/get-element-rect-in-flow.execution.js → esm2020/domain/get-element-rect-in-flow/get-element-rect-in-flow.execution.mjs} +4 -4
- package/{esm2015/domain/get-flow-state/get-flow-state-connections/get-flow-state-connections.execution.js → esm2020/domain/get-flow-state/get-flow-state-connections/get-flow-state-connections.execution.mjs} +4 -4
- package/{esm2015/domain/get-flow-state/get-flow-state-nodes/get-flow-state-nodes.execution.js → esm2020/domain/get-flow-state/get-flow-state-nodes/get-flow-state-nodes.execution.mjs} +4 -4
- package/{esm2015/domain/get-flow-state/get-flow-state.execution.js → esm2020/domain/get-flow-state/get-flow-state.execution.mjs} +4 -4
- package/{esm2015/domain/get-nodes-rect/get-nodes-rect.execution.js → esm2020/domain/get-nodes-rect/get-nodes-rect.execution.mjs} +4 -4
- package/{esm2015/domain/get-position-in-flow/get-position-in-flow.execution.js → esm2020/domain/get-position-in-flow/get-position-in-flow.execution.mjs} +4 -4
- package/{esm2015/domain/get-scaled-node-rects-with-flow-position/get-scaled-node-rects-with-flow-position.execution.js → esm2020/domain/get-scaled-node-rects-with-flow-position/get-scaled-node-rects-with-flow-position.execution.mjs} +4 -4
- package/{esm2015/domain/is-connection-under-node/is-connection-under-node.execution.js → esm2020/domain/is-connection-under-node/is-connection-under-node.execution.mjs} +4 -4
- package/{esm2015/domain/redraw-connections/redraw-connections.execution.js → esm2020/domain/redraw-connections/redraw-connections.execution.mjs} +4 -4
- package/{esm2015/domain/show-connections-after-calculations/show-connections-after-calculations.execution.js → esm2020/domain/show-connections-after-calculations/show-connections-after-calculations.execution.mjs} +4 -4
- package/{esm2015/domain/sort-item-layers/sort-item-layers.execution.js → esm2020/domain/sort-item-layers/sort-item-layers.execution.mjs} +4 -4
- package/{esm2015/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.execution.js → esm2020/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.execution.mjs} +4 -4
- package/{esm2015/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.execution.js → esm2020/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.execution.mjs} +4 -4
- package/{esm2015/domain/subscribe-on-transform-changes/subscribe-on-transform-changes.execution.js → esm2020/domain/subscribe-on-transform-changes/subscribe-on-transform-changes.execution.mjs} +4 -4
- package/{esm2015/domain/update-item-and-children-layers/move-front-elements-before-target-element/move-front-elements-before-target-element.execution.js → esm2020/domain/update-item-and-children-layers/move-front-elements-before-target-element/move-front-elements-before-target-element.execution.mjs} +4 -4
- package/{esm2015/domain/update-item-and-children-layers/update-item-and-children-layers.execution.js → esm2020/domain/update-item-and-children-layers/update-item-and-children-layers.execution.mjs} +4 -4
- package/{esm2015/f-backgroud/f-background-base.js → esm2020/f-backgroud/f-background-base.mjs} +4 -4
- package/esm2020/f-backgroud/f-background.component.mjs +45 -0
- package/{esm2015/f-backgroud/f-circle-pattern/f-circle-pattern.component.js → esm2020/f-backgroud/f-circle-pattern/f-circle-pattern.component.mjs} +4 -4
- package/{esm2015/f-backgroud/f-rect-pattern/f-rect-pattern.component.js → esm2020/f-backgroud/f-rect-pattern/f-rect-pattern.component.mjs} +4 -4
- package/{esm2015/f-canvas/f-canvas-base.js → esm2020/f-canvas/f-canvas-base.mjs} +4 -4
- package/esm2020/f-canvas/f-canvas.component.mjs +86 -0
- package/esm2020/f-connection/common/f-connection-base.mjs +66 -0
- package/{esm2015/f-connection/common/f-connection-text/f-connection-text-path.directive.js → esm2020/f-connection/common/f-connection-text/f-connection-text-path.directive.mjs} +4 -4
- package/esm2020/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 → esm2020/f-connection/common/f-drag-handle/f-connection-drag-handle.component.mjs} +4 -4
- package/{esm2015/f-connection/common/f-gradient/f-connection-gradient.component.js → esm2020/f-connection/common/f-gradient/f-connection-gradient.component.mjs} +6 -12
- package/{esm2015/f-connection/common/f-path/f-connection-path.component.js → esm2020/f-connection/common/f-path/f-connection-path.component.mjs} +4 -4
- package/{esm2015/f-connection/common/f-selection/f-connection-selection.component.js → esm2020/f-connection/common/f-selection/f-connection-selection.component.mjs} +4 -4
- package/esm2020/f-connection/f-connection/f-connection.component.mjs +171 -0
- package/esm2020/f-connection/f-connection-builder/f-connection-factory.mjs +34 -0
- package/{esm2015/f-connection/f-connection-center/f-connection-center.directive.js → esm2020/f-connection/f-connection-center/f-connection-center.directive.mjs} +4 -4
- package/esm2020/f-connection/f-connection-for-create/f-connection-for-create.component.mjs +136 -0
- package/{esm2015/f-connection/f-marker/f-marker-base.js → esm2020/f-connection/f-marker/f-marker-base.mjs} +4 -4
- package/{esm2015/f-connection/f-marker/f-marker.directive.js → esm2020/f-connection/f-marker/f-marker.directive.mjs} +4 -4
- package/esm2020/f-connection/f-snap-connection/f-snap-connection.component.mjs +136 -0
- package/{esm2015/f-connectors/f-node-input/f-node-input-base.js → esm2020/f-connectors/f-node-input/f-node-input-base.mjs} +4 -4
- package/{esm2015/f-connectors/f-node-input/f-node-input.directive.js → esm2020/f-connectors/f-node-input/f-node-input.directive.mjs} +4 -4
- package/{esm2015/f-connectors/f-node-outlet/f-node-outlet-base.js → esm2020/f-connectors/f-node-outlet/f-node-outlet-base.mjs} +4 -4
- package/{esm2015/f-connectors/f-node-outlet/f-node-outlet.directive.js → esm2020/f-connectors/f-node-outlet/f-node-outlet.directive.mjs} +4 -4
- package/{esm2015/f-connectors/f-node-output/f-node-output-base.js → esm2020/f-connectors/f-node-output/f-node-output-base.mjs} +4 -4
- package/{esm2015/f-connectors/f-node-output/f-node-output.directive.js → esm2020/f-connectors/f-node-output/f-node-output.directive.mjs} +4 -4
- package/{esm2015/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.execution.js → esm2020/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.execution.mjs} +5 -5
- package/{esm2015/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.validator.js → esm2020/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.validator.mjs} +4 -4
- package/{esm2015/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.execution.js → esm2020/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.execution.mjs} +4 -4
- package/esm2020/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.validator.mjs +43 -0
- package/esm2020/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.execution.mjs +55 -0
- package/{esm2015/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.validator.js → esm2020/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.validator.mjs} +4 -4
- package/{esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/create-connection-drag-handler.execution.js → esm2020/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/create-connection-drag-handler.execution.mjs} +4 -4
- package/{esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/create-connection-from-outlet-preparation.execution.js → esm2020/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/create-connection-from-outlet-preparation.execution.mjs} +4 -4
- package/{esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.execution.js → esm2020/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.execution.mjs} +4 -4
- package/{esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.validator.js → esm2020/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.validator.mjs} +4 -4
- package/{esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.execution.js → esm2020/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.execution.mjs} +4 -4
- package/{esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.validator.js → esm2020/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.validator.mjs} +4 -4
- package/esm2020/f-draggable/connections/create-connection/create-connection.drag-handler.mjs +61 -0
- package/{esm2015/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.execution.js → esm2020/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.execution.mjs} +4 -4
- package/{esm2015/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.validator.js → esm2020/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/get-can-be-connected-output-by-outlet.validator.mjs} +4 -4
- package/{esm2015/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.execution.js → esm2020/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.execution.mjs} +5 -5
- package/{esm2015/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.validator.js → esm2020/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.validator.mjs} +4 -4
- package/{esm2015/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.execution.js → esm2020/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.execution.mjs} +4 -4
- package/{esm2015/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.validator.js → esm2020/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.validator.mjs} +4 -4
- package/{esm2015/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.execution.js → esm2020/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.execution.mjs} +4 -4
- package/{esm2015/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.validator.js → esm2020/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.validator.mjs} +4 -4
- package/esm2020/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.mjs +58 -0
- package/{esm2015/f-draggable/domain/get-node-padding/get-node-padding.execution.js → esm2020/f-draggable/domain/get-node-padding/get-node-padding.execution.mjs} +4 -4
- package/{esm2015/f-draggable/domain/get-normalized-node-rect/get-normalized-node-rect.execution.js → esm2020/f-draggable/domain/get-normalized-node-rect/get-normalized-node-rect.execution.mjs} +4 -4
- package/{esm2015/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.execution.js → esm2020/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.execution.mjs} +4 -4
- package/{esm2015/f-draggable/domain/get-parent-nodes/get-parent-nodes.execution.js → esm2020/f-draggable/domain/get-parent-nodes/get-parent-nodes.execution.mjs} +4 -4
- package/{esm2015/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.execution.js → esm2020/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.execution.mjs} +4 -4
- package/{esm2015/f-draggable/f-draggable-base.js → esm2020/f-draggable/f-draggable-base.mjs} +4 -4
- package/{esm2015/f-draggable/f-draggable-data-context.js → esm2020/f-draggable/f-draggable-data-context.mjs} +4 -4
- package/esm2020/f-draggable/f-draggable.directive.mjs +160 -0
- package/{esm2015/f-draggable/node/connection-base-drag-handler.js → esm2020/f-draggable/node/connection-base-drag-handler.mjs} +4 -4
- package/esm2020/f-draggable/node/connection-source.drag-handler.mjs +17 -0
- package/esm2020/f-draggable/node/connection-target.drag-handler.mjs +17 -0
- package/esm2020/f-draggable/node/connection.drag-handler.mjs +21 -0
- package/esm2020/f-draggable/node/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.mjs +85 -0
- package/esm2020/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/get-node-move-restrictions.execution.mjs +44 -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.execution.js → esm2020/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} +4 -4
- 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 → esm2020/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} +4 -4
- package/esm2020/f-draggable/node/node-move-finalize/node-move-finalize.execution.mjs +51 -0
- package/{esm2015/f-draggable/node/node-move-finalize/node-move-finalize.validator.js → esm2020/f-draggable/node/node-move-finalize/node-move-finalize.validator.mjs} +4 -4
- package/{esm2015/f-draggable/node/node-move-preparation/node-move-preparation.execution.js → esm2020/f-draggable/node/node-move-preparation/node-move-preparation.execution.mjs} +5 -6
- package/{esm2015/f-draggable/node/node-move-preparation/node-move-preparation.validator.js → esm2020/f-draggable/node/node-move-preparation/node-move-preparation.validator.mjs} +4 -4
- package/esm2020/f-draggable/node/node.drag-handler.mjs +33 -0
- package/{esm2015/f-draggable/node-resize/apply-child-resize-restrictions/apply-child-resize-restrictions.execution.js → esm2020/f-draggable/node-resize/apply-child-resize-restrictions/apply-child-resize-restrictions.execution.mjs} +4 -4
- package/{esm2015/f-draggable/node-resize/apply-parent-resize-restrictions/apply-parent-resize-restrictions.execution.js → esm2020/f-draggable/node-resize/apply-parent-resize-restrictions/apply-parent-resize-restrictions.execution.mjs} +4 -4
- package/{esm2015/f-draggable/node-resize/calculate-changed-position/calculate-changed-position.execution.js → esm2020/f-draggable/node-resize/calculate-changed-position/calculate-changed-position.execution.mjs} +4 -4
- package/{esm2015/f-draggable/node-resize/calculate-changed-size/calculate-changed-size.execution.js → esm2020/f-draggable/node-resize/calculate-changed-size/calculate-changed-size.execution.mjs} +4 -4
- package/{esm2015/f-draggable/node-resize/get-node-resize-restrictions/get-node-resize-restrictions.execution.js → esm2020/f-draggable/node-resize/get-node-resize-restrictions/get-node-resize-restrictions.execution.mjs} +4 -4
- package/{esm2015/f-draggable/node-resize/get-normalized-children-nodes-rect/get-normalized-children-nodes-rect.execution.js → esm2020/f-draggable/node-resize/get-normalized-children-nodes-rect/get-normalized-children-nodes-rect.execution.mjs} +4 -4
- package/{esm2015/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.execution.js → esm2020/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.execution.mjs} +5 -6
- package/{esm2015/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.validator.js → esm2020/f-draggable/node-resize/node-resize-finalize/node-resize-finalize.validator.mjs} +4 -4
- package/{esm2015/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.execution.js → esm2020/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.execution.mjs} +4 -4
- package/{esm2015/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.validator.js → esm2020/f-draggable/node-resize/node-resize-preparation/node-resize-preparation.validator.mjs} +4 -4
- package/esm2020/f-draggable/single-select/single-select.execution.mjs +89 -0
- package/{esm2015/f-draggable/single-select/single-select.validator.js → esm2020/f-draggable/single-select/single-select.validator.mjs} +4 -4
- package/{esm2015/f-external-item/domain/external-item-finalize/external-item-finalize.execution.js → esm2020/f-external-item/domain/external-item-finalize/external-item-finalize.execution.mjs} +4 -4
- package/{esm2015/f-external-item/domain/external-item-finalize/external-item-finalize.validator.js → esm2020/f-external-item/domain/external-item-finalize/external-item-finalize.validator.mjs} +4 -4
- package/{esm2015/f-external-item/domain/external-item-preparation/external-item-preparation.execution.js → esm2020/f-external-item/domain/external-item-preparation/external-item-preparation.execution.mjs} +4 -4
- package/{esm2015/f-external-item/domain/external-item-preparation/external-item-preparation.validator.js → esm2020/f-external-item/domain/external-item-preparation/external-item-preparation.validator.mjs} +4 -4
- package/{esm2015/f-external-item/f-external-item-base.js → esm2020/f-external-item/f-external-item-base.mjs} +4 -4
- package/{esm2015/f-external-item/f-external-item.directive.js → esm2020/f-external-item/f-external-item.directive.mjs} +4 -4
- package/{esm2015/f-external-item/f-external-item.service.js → esm2020/f-external-item/f-external-item.service.mjs} +4 -4
- package/{esm2015/f-flow/f-flow.component.js → esm2020/f-flow/f-flow.component.mjs} +7 -14
- package/{esm2015/f-flow.module.js → esm2020/f-flow.module.mjs} +5 -7
- package/{esm2015/f-line-alignment/f-line-alignment-base.js → esm2020/f-line-alignment/f-line-alignment-base.mjs} +4 -4
- package/{esm2015/f-line-alignment/f-line-alignment.component.js → esm2020/f-line-alignment/f-line-alignment.component.mjs} +7 -14
- package/{esm2015/f-minimap/domain/calculate-flow-point-from-minimap-point/calculate-flow-point-from-minimap-point.execution.js → esm2020/f-minimap/domain/calculate-flow-point-from-minimap-point/calculate-flow-point-from-minimap-point.execution.mjs} +4 -4
- package/esm2020/f-minimap/domain/f-minimap.drag-handler.mjs +35 -0
- package/{esm2015/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.execution.js → esm2020/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.execution.mjs} +5 -6
- package/{esm2015/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.validator.js → esm2020/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.validator.mjs} +4 -4
- package/{esm2015/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.execution.js → esm2020/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.execution.mjs} +4 -4
- package/{esm2015/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.validator.js → esm2020/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.validator.mjs} +4 -4
- package/{esm2015/f-minimap/f-minimap-canvas.directive.js → esm2020/f-minimap/f-minimap-canvas.directive.mjs} +4 -4
- package/{esm2015/f-minimap/f-minimap-flow.directive.js → esm2020/f-minimap/f-minimap-flow.directive.mjs} +4 -4
- package/{esm2015/f-minimap/f-minimap-view.directive.js → esm2020/f-minimap/f-minimap-view.directive.mjs} +4 -4
- package/esm2020/f-minimap/f-minimap.component.mjs +68 -0
- package/{esm2015/f-node/f-drag-handle/f-drag-handle.directive.js → esm2020/f-node/f-drag-handle/f-drag-handle.directive.mjs} +4 -4
- package/{esm2015/f-node/f-group.directive.js → esm2020/f-node/f-group.directive.mjs} +4 -4
- package/{esm2015/f-node/f-node.directive.js → esm2020/f-node/f-node.directive.mjs} +4 -4
- package/{esm2015/f-node/f-resize-handle/f-resize-handle.directive.js → esm2020/f-node/f-resize-handle/f-resize-handle.directive.mjs} +4 -4
- package/{esm2015/f-selection-area/domain/selection-area-finalize/selection-area-finalize.execution.js → esm2020/f-selection-area/domain/selection-area-finalize/selection-area-finalize.execution.mjs} +5 -6
- package/{esm2015/f-selection-area/domain/selection-area-finalize/selection-area-finalize.validator.js → esm2020/f-selection-area/domain/selection-area-finalize/selection-area-finalize.validator.mjs} +4 -4
- package/{esm2015/f-selection-area/domain/selection-area-preparation/selection-area-preparation.execution.js → esm2020/f-selection-area/domain/selection-area-preparation/selection-area-preparation.execution.mjs} +4 -4
- package/{esm2015/f-selection-area/domain/selection-area-preparation/selection-area-preparation.validator.js → esm2020/f-selection-area/domain/selection-area-preparation/selection-area-preparation.validator.mjs} +4 -4
- package/{esm2015/f-selection-area/f-selection-area-base.js → esm2020/f-selection-area/f-selection-area-base.mjs} +4 -4
- package/{esm2015/f-selection-area/f-selection-area.component.js → esm2020/f-selection-area/f-selection-area.component.mjs} +7 -13
- package/esm2020/f-storage/f-components-store.mjs +50 -0
- package/{esm2015/f-storage/f-transform-store.js → esm2020/f-storage/f-transform-store.mjs} +4 -4
- package/esm2020/f-zoom/f-zoom-base.mjs +97 -0
- package/{esm2015/f-zoom/f-zoom.directive.js → esm2020/f-zoom/f-zoom.directive.mjs} +4 -4
- package/esm2020/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 → foblex-flow.mjs} +534 -593
- package/fesm2015/foblex-flow.mjs.map +1 -0
- package/fesm2020/foblex-flow.mjs +7872 -0
- package/fesm2020/foblex-flow.mjs.map +1 -0
- package/package.json +21 -7
- package/bundles/foblex-flow.umd.js +0 -9815
- package/bundles/foblex-flow.umd.js.map +0 -1
- package/esm2015/domain/f-background/add-pattern-to-background/add-pattern-to-background.execution.js +0 -48
- 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/f-backgroud/f-background.component.js +0 -53
- 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.component.js +0 -72
- 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-snap-connection/f-snap-connection.component.js +0 -143
- 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.drag-handler.js +0 -63
- package/esm2015/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.js +0 -60
- 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/node-move-finalize/node-move-finalize.execution.js +0 -54
- package/esm2015/f-draggable/node/node.drag-handler.js +0 -34
- package/esm2015/f-draggable/single-select/single-select.execution.js +0 -89
- package/esm2015/f-minimap/domain/f-minimap.drag-handler.js +0 -37
- package/esm2015/f-minimap/f-minimap.component.js +0 -76
- package/esm2015/f-storage/f-components-store.js +0 -52
- package/esm2015/f-zoom/f-zoom-base.js +0 -99
- package/esm2015/mixins/change-selection/change-selection.js +0 -30
- package/fesm2015/foblex-flow.js.map +0 -1
- /package/{esm2015/domain/constants.js → esm2020/domain/constants.mjs} +0 -0
- /package/{esm2015/domain/create-connection-markers/create-connection-markers-request.js → esm2020/domain/create-connection-markers/create-connection-markers-request.mjs} +0 -0
- /package/{esm2015/domain/create-connection-markers/index.js → esm2020/domain/create-connection-markers/index.mjs} +0 -0
- /package/{esm2015/domain/create-dom-element.js → esm2020/domain/create-dom-element.mjs} +0 -0
- /package/{esm2015/domain/create-rounded-rect-from-element/create-rounded-rect-from-element-request.js → esm2020/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 → esm2020/domain/create-rounded-rect-from-element/index.mjs} +0 -0
- /package/{esm2015/domain/emit-transform-changes/emit-transform-changes.request.js → esm2020/domain/emit-transform-changes/emit-transform-changes.request.mjs} +0 -0
- /package/{esm2015/domain/emit-transform-changes/index.js → esm2020/domain/emit-transform-changes/index.mjs} +0 -0
- /package/{esm2015/domain/f-background/add-pattern-to-background/add-pattern-to-background.request.js → esm2020/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 → esm2020/domain/f-background/add-pattern-to-background/index.mjs} +0 -0
- /package/{esm2015/domain/f-background/index.js → esm2020/domain/f-background/index.mjs} +0 -0
- /package/{esm2015/domain/f-background/providers.js → esm2020/domain/f-background/providers.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/center-group-or-node/center-group-or-node-request.js → esm2020/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 → esm2020/domain/f-canvas/center-group-or-node/index.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/fit-to-flow/fit-to-flow-request.js → esm2020/domain/f-canvas/fit-to-flow/fit-to-flow-request.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/fit-to-flow/index.js → esm2020/domain/f-canvas/fit-to-flow/index.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/index.js → esm2020/domain/f-canvas/index.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/input-canvas-position/index.js → esm2020/domain/f-canvas/input-canvas-position/index.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/input-canvas-position/input-canvas-position-request.js → esm2020/domain/f-canvas/input-canvas-position/input-canvas-position-request.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/input-canvas-scale/index.js → esm2020/domain/f-canvas/input-canvas-scale/index.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/input-canvas-scale/input-canvas-scale-request.js → esm2020/domain/f-canvas/input-canvas-scale/input-canvas-scale-request.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/providers.js → esm2020/domain/f-canvas/providers.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/reset-scale/index.js → esm2020/domain/f-canvas/reset-scale/index.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/reset-scale/reset-scale-request.js → esm2020/domain/f-canvas/reset-scale/reset-scale-request.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/reset-scale-and-center/index.js → esm2020/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 → esm2020/domain/f-canvas/reset-scale-and-center/reset-scale-and-center-request.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/update-scale/index.js → esm2020/domain/f-canvas/update-scale/index.mjs} +0 -0
- /package/{esm2015/domain/f-canvas/update-scale/update-scale-request.js → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/domain/f-connection/get-connector-with-rect/index.mjs} +0 -0
- /package/{esm2015/domain/f-connection/index.js → esm2020/domain/f-connection/index.mjs} +0 -0
- /package/{esm2015/domain/f-connection/providers.js → esm2020/domain/f-connection/providers.mjs} +0 -0
- /package/{esm2015/domain/f-selection/clear-selection/clear-selection.request.js → esm2020/domain/f-selection/clear-selection/clear-selection.request.mjs} +0 -0
- /package/{esm2015/domain/f-selection/clear-selection/index.js → esm2020/domain/f-selection/clear-selection/index.mjs} +0 -0
- /package/{esm2015/domain/f-selection/get-selection/get-selection.request.js → esm2020/domain/f-selection/get-selection/get-selection.request.mjs} +0 -0
- /package/{esm2015/domain/f-selection/get-selection/index.js → esm2020/domain/f-selection/get-selection/index.mjs} +0 -0
- /package/{esm2015/domain/f-selection/index.js → esm2020/domain/f-selection/index.mjs} +0 -0
- /package/{esm2015/domain/f-selection/providers.js → esm2020/domain/f-selection/providers.mjs} +0 -0
- /package/{esm2015/domain/f-selection/select/index.js → esm2020/domain/f-selection/select/index.mjs} +0 -0
- /package/{esm2015/domain/f-selection/select/select.request.js → esm2020/domain/f-selection/select/select.request.mjs} +0 -0
- /package/{esm2015/domain/f-selection/select-all/index.js → esm2020/domain/f-selection/select-all/index.mjs} +0 -0
- /package/{esm2015/domain/f-selection/select-all/select-all.request.js → esm2020/domain/f-selection/select-all/select-all.request.mjs} +0 -0
- /package/{esm2015/domain/f-selection/select-and-update-node-layer/index.js → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/domain/get-can-be-selected-items/i-selectable-with-rect.mjs} +0 -0
- /package/{esm2015/domain/get-can-be-selected-items/index.js → esm2020/domain/get-can-be-selected-items/index.mjs} +0 -0
- /package/{esm2015/domain/get-connection-line/get-connection-line.request.js → esm2020/domain/get-connection-line/get-connection-line.request.mjs} +0 -0
- /package/{esm2015/domain/get-connection-line/index.js → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/domain/get-flow-state/get-flow-state-nodes/index.mjs} +0 -0
- /package/{esm2015/domain/get-flow-state/get-flow-state.request.js → esm2020/domain/get-flow-state/get-flow-state.request.mjs} +0 -0
- /package/{esm2015/domain/get-flow-state/i-f-flow-state-connection.js → esm2020/domain/get-flow-state/i-f-flow-state-connection.mjs} +0 -0
- /package/{esm2015/domain/get-flow-state/i-f-flow-state-connector.js → esm2020/domain/get-flow-state/i-f-flow-state-connector.mjs} +0 -0
- /package/{esm2015/domain/get-flow-state/i-f-flow-state-node.js → esm2020/domain/get-flow-state/i-f-flow-state-node.mjs} +0 -0
- /package/{esm2015/domain/get-flow-state/i-f-flow-state.js → esm2020/domain/get-flow-state/i-f-flow-state.mjs} +0 -0
- /package/{esm2015/domain/get-flow-state/index.js → esm2020/domain/get-flow-state/index.mjs} +0 -0
- /package/{esm2015/domain/get-flow-state/providers.js → esm2020/domain/get-flow-state/providers.mjs} +0 -0
- /package/{esm2015/domain/get-nodes-rect/get-nodes-rect.request.js → esm2020/domain/get-nodes-rect/get-nodes-rect.request.mjs} +0 -0
- /package/{esm2015/domain/get-nodes-rect/index.js → esm2020/domain/get-nodes-rect/index.mjs} +0 -0
- /package/{esm2015/domain/get-position-in-flow/get-position-in-flow-request.js → esm2020/domain/get-position-in-flow/get-position-in-flow-request.mjs} +0 -0
- /package/{esm2015/domain/get-position-in-flow/index.js → esm2020/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 → esm2020/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 → esm2020/domain/get-scaled-node-rects-with-flow-position/index.mjs} +0 -0
- /package/{esm2015/domain/i-map.js → esm2020/domain/i-map.mjs} +0 -0
- /package/{esm2015/domain/index.js → esm2020/domain/index.mjs} +0 -0
- /package/{esm2015/domain/is-connection-under-node/index.js → esm2020/domain/is-connection-under-node/index.mjs} +0 -0
- /package/{esm2015/domain/is-connection-under-node/is-connection-under-node.request.js → esm2020/domain/is-connection-under-node/is-connection-under-node.request.mjs} +0 -0
- /package/{esm2015/domain/providers.js → esm2020/domain/providers.mjs} +0 -0
- /package/{esm2015/domain/redraw-connections/index.js → esm2020/domain/redraw-connections/index.mjs} +0 -0
- /package/{esm2015/domain/redraw-connections/redraw-connections-request.js → esm2020/domain/redraw-connections/redraw-connections-request.mjs} +0 -0
- /package/{esm2015/domain/show-connections-after-calculations/index.js → esm2020/domain/show-connections-after-calculations/index.mjs} +0 -0
- /package/{esm2015/domain/show-connections-after-calculations/show-connections-after-calculations-request.js → esm2020/domain/show-connections-after-calculations/show-connections-after-calculations-request.mjs} +0 -0
- /package/{esm2015/domain/sort-item-layers/index.js → esm2020/domain/sort-item-layers/index.mjs} +0 -0
- /package/{esm2015/domain/sort-item-layers/sort-item-layers.request.js → esm2020/domain/sort-item-layers/sort-item-layers.request.mjs} +0 -0
- /package/{esm2015/domain/sort-item-layers/sort-items-by-parent/index.js → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/domain/subscribe-on-transform-changes/index.mjs} +0 -0
- /package/{esm2015/domain/subscribe-on-transform-changes/subscribe-on-transform-changes.request.js → esm2020/domain/subscribe-on-transform-changes/subscribe-on-transform-changes.request.mjs} +0 -0
- /package/{esm2015/domain/update-item-and-children-layers/index.js → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/domain/update-item-and-children-layers/update-item-and-children-layers.request.mjs} +0 -0
- /package/{esm2015/errors/conflict-error.js → esm2020/errors/conflict-error.mjs} +0 -0
- /package/{esm2015/errors/create-error-class.js → esm2020/errors/create-error-class.mjs} +0 -0
- /package/{esm2015/errors/errors.js → esm2020/errors/errors.mjs} +0 -0
- /package/{esm2015/errors/index.js → esm2020/errors/index.mjs} +0 -0
- /package/{esm2015/errors/not-found-error.js → esm2020/errors/not-found-error.mjs} +0 -0
- /package/{esm2015/f-backgroud/domain/i-f-background-pattern.js → esm2020/f-backgroud/domain/i-f-background-pattern.mjs} +0 -0
- /package/{esm2015/f-backgroud/domain/index.js → esm2020/f-backgroud/domain/index.mjs} +0 -0
- /package/{esm2015/f-backgroud/f-circle-pattern/index.js → esm2020/f-backgroud/f-circle-pattern/index.mjs} +0 -0
- /package/{esm2015/f-backgroud/f-rect-pattern/index.js → esm2020/f-backgroud/f-rect-pattern/index.mjs} +0 -0
- /package/{esm2015/f-backgroud/index.js → esm2020/f-backgroud/index.mjs} +0 -0
- /package/{esm2015/f-backgroud/providers.js → esm2020/f-backgroud/providers.mjs} +0 -0
- /package/{esm2015/f-canvas/domain/f-canvas-change.event.js → esm2020/f-canvas/domain/f-canvas-change.event.mjs} +0 -0
- /package/{esm2015/f-canvas/domain/index.js → esm2020/f-canvas/domain/index.mjs} +0 -0
- /package/{esm2015/f-canvas/index.js → esm2020/f-canvas/index.mjs} +0 -0
- /package/{esm2015/f-canvas/providers.js → esm2020/f-canvas/providers.mjs} +0 -0
- /package/{esm2015/f-connection/common/domain/calculate-center-between-points/calculate-center-between-points-request.js → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/f-connection/common/domain/calculate-connection-center/index.mjs} +0 -0
- /package/{esm2015/f-connection/common/domain/f-bezier.path-builder.js → esm2020/f-connection/common/domain/f-bezier.path-builder.mjs} +0 -0
- /package/{esm2015/f-connection/common/domain/f-segment.path-builder.js → esm2020/f-connection/common/domain/f-segment.path-builder.mjs} +0 -0
- /package/{esm2015/f-connection/common/domain/f-straight.path-builder.js → esm2020/f-connection/common/domain/f-straight.path-builder.mjs} +0 -0
- /package/{esm2015/f-connection/common/domain/index.js → esm2020/f-connection/common/domain/index.mjs} +0 -0
- /package/{esm2015/f-connection/common/e-f-connection-behavior.js → esm2020/f-connection/common/e-f-connection-behavior.mjs} +0 -0
- /package/{esm2015/f-connection/common/e-f-connection-type.js → esm2020/f-connection/common/e-f-connection-type.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-connection-identifiers.js → esm2020/f-connection/common/f-connection-identifiers.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-connection-text/i-connection-text.js → esm2020/f-connection/common/f-connection-text/i-connection-text.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-connection-text/index.js → esm2020/f-connection/common/f-connection-text/index.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-connection.injection-token.js → esm2020/f-connection/common/f-connection.injection-token.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-drag-handle/index.js → esm2020/f-connection/common/f-drag-handle/index.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-gradient/i-connection-gradient.js → esm2020/f-connection/common/f-gradient/i-connection-gradient.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-gradient/index.js → esm2020/f-connection/common/f-gradient/index.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-path/get-path-marker-id.js → esm2020/f-connection/common/f-path/get-path-marker-id.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-path/i-connection-path.js → esm2020/f-connection/common/f-path/i-connection-path.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-path/index.js → esm2020/f-connection/common/f-path/index.mjs} +0 -0
- /package/{esm2015/f-connection/common/f-selection/index.js → esm2020/f-connection/common/f-selection/index.mjs} +0 -0
- /package/{esm2015/f-connection/common/i-has-connection-color.js → esm2020/f-connection/common/i-has-connection-color.mjs} +0 -0
- /package/{esm2015/f-connection/common/i-has-connection-from-to.js → esm2020/f-connection/common/i-has-connection-from-to.mjs} +0 -0
- /package/{esm2015/f-connection/common/i-has-connection-text.js → esm2020/f-connection/common/i-has-connection-text.mjs} +0 -0
- /package/{esm2015/f-connection/common/index.js → esm2020/f-connection/common/index.mjs} +0 -0
- /package/{esm2015/f-connection/f-connection/index.js → esm2020/f-connection/f-connection/index.mjs} +0 -0
- /package/{esm2015/f-connection/f-connection-builder/f-connection-builders.js → esm2020/f-connection/f-connection-builder/f-connection-builders.mjs} +0 -0
- /package/{esm2015/f-connection/f-connection-builder/i-f-connection-builder-request.js → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/f-connection/f-connection-builder/i-f-connection-factory-request.mjs} +0 -0
- /package/{esm2015/f-connection/f-connection-builder/index.js → esm2020/f-connection/f-connection-builder/index.mjs} +0 -0
- /package/{esm2015/f-connection/f-connection-center/index.js → esm2020/f-connection/f-connection-center/index.mjs} +0 -0
- /package/{esm2015/f-connection/f-connection-for-create/index.js → esm2020/f-connection/f-connection-for-create/index.mjs} +0 -0
- /package/{esm2015/f-connection/f-marker/e-f-marker-type.js → esm2020/f-connection/f-marker/e-f-marker-type.mjs} +0 -0
- /package/{esm2015/f-connection/f-marker/index.js → esm2020/f-connection/f-marker/index.mjs} +0 -0
- /package/{esm2015/f-connection/f-snap-connection/index.js → esm2020/f-connection/f-snap-connection/index.mjs} +0 -0
- /package/{esm2015/f-connection/index.js → esm2020/f-connection/index.mjs} +0 -0
- /package/{esm2015/f-connection/providers.js → esm2020/f-connection/providers.mjs} +0 -0
- /package/{esm2015/f-connectors/domain/calculate-connector-connectable-side/calculate-connector-connectable-side-request.js → esm2020/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 → esm2020/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 → esm2020/f-connectors/domain/calculate-connector-connectable-side/index.mjs} +0 -0
- /package/{esm2015/f-connectors/domain/index.js → esm2020/f-connectors/domain/index.mjs} +0 -0
- /package/{esm2015/f-connectors/e-f-connectable-side.js → esm2020/f-connectors/e-f-connectable-side.mjs} +0 -0
- /package/{esm2015/f-connectors/f-connector-base.js → esm2020/f-connectors/f-connector-base.mjs} +0 -0
- /package/{esm2015/f-connectors/f-node-input/index.js → esm2020/f-connectors/f-node-input/index.mjs} +0 -0
- /package/{esm2015/f-connectors/f-node-outlet/index.js → esm2020/f-connectors/f-node-outlet/index.mjs} +0 -0
- /package/{esm2015/f-connectors/f-node-outlet/is-node-outlet.js → esm2020/f-connectors/f-node-outlet/is-node-outlet.mjs} +0 -0
- /package/{esm2015/f-connectors/f-node-output/index.js → esm2020/f-connectors/f-node-output/index.mjs} +0 -0
- /package/{esm2015/f-connectors/f-node-output/is-node-output.js → esm2020/f-connectors/f-node-output/is-node-output.mjs} +0 -0
- /package/{esm2015/f-connectors/index.js → esm2020/f-connectors/index.mjs} +0 -0
- /package/{esm2015/f-connectors/providers.js → esm2020/f-connectors/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.request.js → esm2020/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.request.mjs} +0 -0
- /package/{esm2015/f-draggable/canvas/canvas-move-finalize/index.js → esm2020/f-draggable/canvas/canvas-move-finalize/index.mjs} +0 -0
- /package/{esm2015/f-draggable/canvas/canvas-move-finalize/providers.js → esm2020/f-draggable/canvas/canvas-move-finalize/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.request.js → esm2020/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.request.mjs} +0 -0
- /package/{esm2015/f-draggable/canvas/canvas-move-preparation/index.js → esm2020/f-draggable/canvas/canvas-move-preparation/index.mjs} +0 -0
- /package/{esm2015/f-draggable/canvas/canvas-move-preparation/providers.js → esm2020/f-draggable/canvas/canvas-move-preparation/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/canvas/canvas.drag-handler.js → esm2020/f-draggable/canvas/canvas.drag-handler.mjs} +0 -0
- /package/{esm2015/f-draggable/canvas/index.js → esm2020/f-draggable/canvas/index.mjs} +0 -0
- /package/{esm2015/f-draggable/canvas/providers.js → esm2020/f-draggable/canvas/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.request.js → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/f-draggable/connections/create-connection/create-connection-preparation/index.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/create-connection/f-create-connection.event.js → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/f-draggable/connections/create-connection/index.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.request.js → esm2020/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 → esm2020/f-draggable/connections/get-input-under-pointer/index.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/index.js → esm2020/f-draggable/connections/index.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/providers.js → esm2020/f-draggable/connections/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/reassign-connection/f-reassign-connection.event.js → esm2020/f-draggable/connections/reassign-connection/f-reassign-connection.event.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/reassign-connection/index.js → esm2020/f-draggable/connections/reassign-connection/index.mjs} +0 -0
- /package/{esm2015/f-draggable/connections/reassign-connection/reassign-connection-finalize/index.js → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/f-draggable/domain/get-node-padding/get-node-padding.request.mjs} +0 -0
- /package/{esm2015/f-draggable/domain/get-node-padding/index.js → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/f-draggable/domain/get-parent-nodes/get-parent-nodes.request.mjs} +0 -0
- /package/{esm2015/f-draggable/domain/get-parent-nodes/index.js → esm2020/f-draggable/domain/get-parent-nodes/index.mjs} +0 -0
- /package/{esm2015/f-draggable/domain/index.js → esm2020/f-draggable/domain/index.mjs} +0 -0
- /package/{esm2015/f-draggable/domain/is-array-has-parent-node/index.js → esm2020/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 → esm2020/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.request.mjs} +0 -0
- /package/{esm2015/f-draggable/domain/providers.js → esm2020/f-draggable/domain/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/f-selection-change-event.js → esm2020/f-draggable/f-selection-change-event.mjs} +0 -0
- /package/{esm2015/f-draggable/i-draggable-item.js → esm2020/f-draggable/i-draggable-item.mjs} +0 -0
- /package/{esm2015/f-draggable/i-f-drag-and-drop-plugin.js → esm2020/f-draggable/i-f-drag-and-drop-plugin.mjs} +0 -0
- /package/{esm2015/f-draggable/index.js → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/f-draggable/node/create-move-nodes-drag-model-from-selection/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/node/index.js → esm2020/f-draggable/node/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node/node-move-finalize/index.js → esm2020/f-draggable/node/node-move-finalize/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node/node-move-finalize/node-move-finalize.request.js → esm2020/f-draggable/node/node-move-finalize/node-move-finalize.request.mjs} +0 -0
- /package/{esm2015/f-draggable/node/node-move-finalize/providers.js → esm2020/f-draggable/node/node-move-finalize/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/node/node-move-preparation/index.js → esm2020/f-draggable/node/node-move-preparation/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node/node-move-preparation/node-move-preparation.request.js → esm2020/f-draggable/node/node-move-preparation/node-move-preparation.request.mjs} +0 -0
- /package/{esm2015/f-draggable/node/node-move-preparation/providers.js → esm2020/f-draggable/node/node-move-preparation/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/node/node-resize-by-child.drag-handler.js → esm2020/f-draggable/node/node-resize-by-child.drag-handler.mjs} +0 -0
- /package/{esm2015/f-draggable/node/providers.js → esm2020/f-draggable/node/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/apply-child-resize-restrictions/apply-child-resize-restrictions.request.js → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/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 → esm2020/f-draggable/node-resize/get-normalized-children-nodes-rect/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/index.js → esm2020/f-draggable/node-resize/index.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/node-resize-finalize/index.js → esm2020/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 → esm2020/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 → esm2020/f-draggable/node-resize/node-resize-finalize/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/node-resize-preparation/index.js → esm2020/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 → esm2020/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 → esm2020/f-draggable/node-resize/node-resize-preparation/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/node-resize.drag-handler.js → esm2020/f-draggable/node-resize/node-resize.drag-handler.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/providers.js → esm2020/f-draggable/node-resize/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/node-resize/resize-direction.js → esm2020/f-draggable/node-resize/resize-direction.mjs} +0 -0
- /package/{esm2015/f-draggable/providers.js → esm2020/f-draggable/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/single-select/index.js → esm2020/f-draggable/single-select/index.mjs} +0 -0
- /package/{esm2015/f-draggable/single-select/providers.js → esm2020/f-draggable/single-select/providers.mjs} +0 -0
- /package/{esm2015/f-draggable/single-select/single-select.request.js → esm2020/f-draggable/single-select/single-select.request.mjs} +0 -0
- /package/{esm2015/f-external-item/domain/external-item-finalize/external-item-finalize.request.js → esm2020/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 → esm2020/f-external-item/domain/external-item-finalize/index.mjs} +0 -0
- /package/{esm2015/f-external-item/domain/external-item-finalize/providers.js → esm2020/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 → esm2020/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 → esm2020/f-external-item/domain/external-item-preparation/index.mjs} +0 -0
- /package/{esm2015/f-external-item/domain/external-item-preparation/providers.js → esm2020/f-external-item/domain/external-item-preparation/providers.mjs} +0 -0
- /package/{esm2015/f-external-item/domain/external-item.drag-handler.js → esm2020/f-external-item/domain/external-item.drag-handler.mjs} +0 -0
- /package/{esm2015/f-external-item/domain/f-create-node.event.js → esm2020/f-external-item/domain/f-create-node.event.mjs} +0 -0
- /package/{esm2015/f-external-item/domain/index.js → esm2020/f-external-item/domain/index.mjs} +0 -0
- /package/{esm2015/f-external-item/domain/providers.js → esm2020/f-external-item/domain/providers.mjs} +0 -0
- /package/{esm2015/f-external-item/index.js → esm2020/f-external-item/index.mjs} +0 -0
- /package/{esm2015/f-external-item/is-external-item.js → esm2020/f-external-item/is-external-item.mjs} +0 -0
- /package/{esm2015/f-external-item/providers.js → esm2020/f-external-item/providers.mjs} +0 -0
- /package/{esm2015/f-flow/f-flow-base.js → esm2020/f-flow/f-flow-base.mjs} +0 -0
- /package/{esm2015/f-flow/index.js → esm2020/f-flow/index.mjs} +0 -0
- /package/{esm2015/f-flow/providers.js → esm2020/f-flow/providers.mjs} +0 -0
- /package/{esm2015/f-line-alignment/domain/i-line-alignment-rect.js → esm2020/f-line-alignment/domain/i-line-alignment-rect.mjs} +0 -0
- /package/{esm2015/f-line-alignment/domain/i-line-alignment-result.js → esm2020/f-line-alignment/domain/i-line-alignment-result.mjs} +0 -0
- /package/{esm2015/f-line-alignment/domain/i-nearest-coordinate-result.js → esm2020/f-line-alignment/domain/i-nearest-coordinate-result.mjs} +0 -0
- /package/{esm2015/f-line-alignment/domain/index.js → esm2020/f-line-alignment/domain/index.mjs} +0 -0
- /package/{esm2015/f-line-alignment/domain/line-element.js → esm2020/f-line-alignment/domain/line-element.mjs} +0 -0
- /package/{esm2015/f-line-alignment/domain/line-service.js → esm2020/f-line-alignment/domain/line-service.mjs} +0 -0
- /package/{esm2015/f-line-alignment/domain/nearest-coordinate.js → esm2020/f-line-alignment/domain/nearest-coordinate.mjs} +0 -0
- /package/{esm2015/f-line-alignment/index.js → esm2020/f-line-alignment/index.mjs} +0 -0
- /package/{esm2015/f-line-alignment/providers.js → esm2020/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 → esm2020/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 → esm2020/f-minimap/domain/calculate-flow-point-from-minimap-point/index.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/check-rect-is-finite.js → esm2020/f-minimap/domain/check-rect-is-finite.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/f-minimap-data.js → esm2020/f-minimap/domain/f-minimap-data.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/index.js → esm2020/f-minimap/domain/index.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/minimap-drag-finalize/index.js → esm2020/f-minimap/domain/minimap-drag-finalize/index.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.request.js → esm2020/f-minimap/domain/minimap-drag-finalize/minimap-drag-finalize.request.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/minimap-drag-finalize/providers.js → esm2020/f-minimap/domain/minimap-drag-finalize/providers.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/minimap-drag-preparation/index.js → esm2020/f-minimap/domain/minimap-drag-preparation/index.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.request.js → esm2020/f-minimap/domain/minimap-drag-preparation/minimap-drag-preparation.request.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/minimap-drag-preparation/providers.js → esm2020/f-minimap/domain/minimap-drag-preparation/providers.mjs} +0 -0
- /package/{esm2015/f-minimap/domain/providers.js → esm2020/f-minimap/domain/providers.mjs} +0 -0
- /package/{esm2015/f-minimap/index.js → esm2020/f-minimap/index.mjs} +0 -0
- /package/{esm2015/f-minimap/providers.js → esm2020/f-minimap/providers.mjs} +0 -0
- /package/{esm2015/f-node/domain/index.js → esm2020/f-node/domain/index.mjs} +0 -0
- /package/{esm2015/f-node/domain/is-group.js → esm2020/f-node/domain/is-group.mjs} +0 -0
- /package/{esm2015/f-node/domain/is-node.js → esm2020/f-node/domain/is-node.mjs} +0 -0
- /package/{esm2015/f-node/f-drag-handle/index.js → esm2020/f-node/f-drag-handle/index.mjs} +0 -0
- /package/{esm2015/f-node/f-node-base.js → esm2020/f-node/f-node-base.mjs} +0 -0
- /package/{esm2015/f-node/f-resize-handle/e-f-resize-handle-type.js → esm2020/f-node/f-resize-handle/e-f-resize-handle-type.mjs} +0 -0
- /package/{esm2015/f-node/f-resize-handle/index.js → esm2020/f-node/f-resize-handle/index.mjs} +0 -0
- /package/{esm2015/f-node/f-resize-observer.js → esm2020/f-node/f-resize-observer.mjs} +0 -0
- /package/{esm2015/f-node/f-rotate-handle/f-rotate-handle.directive.js → esm2020/f-node/f-rotate-handle/f-rotate-handle.directive.mjs} +0 -0
- /package/{esm2015/f-node/f-rotate-handle/index.js → esm2020/f-node/f-rotate-handle/index.mjs} +0 -0
- /package/{esm2015/f-node/index.js → esm2020/f-node/index.mjs} +0 -0
- /package/{esm2015/f-node/providers.js → esm2020/f-node/providers.mjs} +0 -0
- /package/{esm2015/f-selection-area/domain/index.js → esm2020/f-selection-area/domain/index.mjs} +0 -0
- /package/{esm2015/f-selection-area/domain/providers.js → esm2020/f-selection-area/domain/providers.mjs} +0 -0
- /package/{esm2015/f-selection-area/domain/selection-area-finalize/index.js → esm2020/f-selection-area/domain/selection-area-finalize/index.mjs} +0 -0
- /package/{esm2015/f-selection-area/domain/selection-area-finalize/providers.js → esm2020/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 → esm2020/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 → esm2020/f-selection-area/domain/selection-area-preparation/index.mjs} +0 -0
- /package/{esm2015/f-selection-area/domain/selection-area-preparation/providers.js → esm2020/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 → esm2020/f-selection-area/domain/selection-area-preparation/selection-area-preparation.request.mjs} +0 -0
- /package/{esm2015/f-selection-area/domain/selection-area.drag-handle.js → esm2020/f-selection-area/domain/selection-area.drag-handle.mjs} +0 -0
- /package/{esm2015/f-selection-area/index.js → esm2020/f-selection-area/index.mjs} +0 -0
- /package/{esm2015/f-selection-area/providers.js → esm2020/f-selection-area/providers.mjs} +0 -0
- /package/{esm2015/f-storage/index.js → esm2020/f-storage/index.mjs} +0 -0
- /package/{esm2015/f-zoom/index.js → esm2020/f-zoom/index.mjs} +0 -0
- /package/{esm2015/f-zoom/providers.js → esm2020/f-zoom/providers.mjs} +0 -0
- /package/{esm2015/foblex-flow.js → esm2020/foblex-flow.mjs} +0 -0
- /package/{esm2015/i-has-host-element.js → esm2020/i-has-host-element.mjs} +0 -0
- /package/{esm2015/i-has-state-changes.js → esm2020/i-has-state-changes.mjs} +0 -0
- /package/{esm2015/mixins/change-selection/i-can-change-selection.js → esm2020/mixins/change-selection/i-can-change-selection.mjs} +0 -0
- /package/{esm2015/mixins/change-selection/index.js → esm2020/mixins/change-selection/index.mjs} +0 -0
- /package/{esm2015/mixins/change-visibility/change-visibility.js → esm2020/mixins/change-visibility/change-visibility.mjs} +0 -0
- /package/{esm2015/mixins/change-visibility/i-can-change-visibility.js → esm2020/mixins/change-visibility/i-can-change-visibility.mjs} +0 -0
- /package/{esm2015/mixins/change-visibility/index.js → esm2020/mixins/change-visibility/index.mjs} +0 -0
- /package/{esm2015/mixins/constructor.js → esm2020/mixins/constructor.mjs} +0 -0
- /package/{esm2015/mixins/index.js → esm2020/mixins/index.mjs} +0 -0
- /package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
- /package/{foblex-flow.d.ts → index.d.ts} +0 -0
package/esm2015/domain/f-background/add-pattern-to-background/add-pattern-to-background.execution.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { TransformModelExtensions } from '@foblex/2d';
|
|
3
|
-
import { AddPatternToBackgroundRequest } from './add-pattern-to-background.request';
|
|
4
|
-
import { Injectable } from '@angular/core';
|
|
5
|
-
import { FExecutionRegister } from '@foblex/mediator';
|
|
6
|
-
import { createSVGElement } from '../../../domain';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "../../../f-storage";
|
|
9
|
-
import * as i2 from "@foblex/platform";
|
|
10
|
-
let uniqueId = 0;
|
|
11
|
-
let AddPatternToBackgroundExecution = class AddPatternToBackgroundExecution {
|
|
12
|
-
constructor(fComponentsStore, fBrowser) {
|
|
13
|
-
this.fComponentsStore = fComponentsStore;
|
|
14
|
-
this.fBrowser = fBrowser;
|
|
15
|
-
}
|
|
16
|
-
get fBackground() {
|
|
17
|
-
return this.fComponentsStore.fBackground;
|
|
18
|
-
}
|
|
19
|
-
handle(request) {
|
|
20
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
21
|
-
const children = ((_a = request.fPattern) === null || _a === void 0 ? void 0 : _a.hostElement.getElementsByTagName('pattern')) || [];
|
|
22
|
-
const pattern = children.length ? children[0] : undefined;
|
|
23
|
-
if (pattern) {
|
|
24
|
-
const defs = createSVGElement('defs', this.fBrowser);
|
|
25
|
-
pattern.id = 'f-background-pattern-' + uniqueId++;
|
|
26
|
-
(_b = request.fPattern) === null || _b === void 0 ? void 0 : _b.hostElement.remove();
|
|
27
|
-
defs.appendChild(pattern);
|
|
28
|
-
(_d = (_c = this.fBackground.hostElement) === null || _c === void 0 ? void 0 : _c.firstChild) === null || _d === void 0 ? void 0 : _d.appendChild(defs);
|
|
29
|
-
const rect = createSVGElement('rect', this.fBrowser);
|
|
30
|
-
rect.setAttribute('fill', 'url(#' + pattern.id + ')');
|
|
31
|
-
rect.setAttribute('width', '100%');
|
|
32
|
-
rect.setAttribute('height', '100%');
|
|
33
|
-
(_e = this.fBackground.hostElement.firstChild) === null || _e === void 0 ? void 0 : _e.appendChild(rect);
|
|
34
|
-
const transform = ((_f = this.fComponentsStore.fCanvas) === null || _f === void 0 ? void 0 : _f.transform) || TransformModelExtensions.default();
|
|
35
|
-
(_g = request.fPattern) === null || _g === void 0 ? void 0 : _g.setTransform(transform);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
AddPatternToBackgroundExecution.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: AddPatternToBackgroundExecution, deps: [{ token: i1.FComponentsStore }, { token: i2.BrowserService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
40
|
-
AddPatternToBackgroundExecution.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: AddPatternToBackgroundExecution });
|
|
41
|
-
AddPatternToBackgroundExecution = __decorate([
|
|
42
|
-
FExecutionRegister(AddPatternToBackgroundRequest)
|
|
43
|
-
], AddPatternToBackgroundExecution);
|
|
44
|
-
export { AddPatternToBackgroundExecution };
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: AddPatternToBackgroundExecution, decorators: [{
|
|
46
|
-
type: Injectable
|
|
47
|
-
}], ctorParameters: function () { return [{ type: i1.FComponentsStore }, { type: i2.BrowserService }]; } });
|
|
48
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRkLXBhdHRlcm4tdG8tYmFja2dyb3VuZC5leGVjdXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2RvbWFpbi9mLWJhY2tncm91bmQvYWRkLXBhdHRlcm4tdG8tYmFja2dyb3VuZC9hZGQtcGF0dGVybi10by1iYWNrZ3JvdW5kLmV4ZWN1dGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sWUFBWSxDQUFDO0FBQ3RELE9BQU8sRUFBRSw2QkFBNkIsRUFBRSxNQ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0dHJpYnV0ZSgnaGVpZ2h0JywgJzEwMCUnKTtcbiAgICAgIHRoaXMuZkJhY2tncm91bmQuaG9zdEVsZW1lbnQuZmlyc3RDaGlsZD8uYXBwZW5kQ2hpbGQocmVjdCk7XG4gICAgICBjb25zdCB0cmFuc2Zvcm0gPSB0aGlzLmZDb21wb25lbnRzU3RvcmUuZkNhbnZhcz8udHJhbnNmb3JtIHx8IFRyYW5zZm9ybU1vZGVsRXh0ZW5zaW9ucy5kZWZhdWx0KCk7XG4gICAgICByZXF1ZXN0LmZQYXR0ZXJuPy5zZXRUcmFuc2Zvcm0odHJhbnNmb3JtKTtcbiAgICB9XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import { InputCanvasPositionRequest } from './input-canvas-position-request';
|
|
4
|
-
import { FExecutionRegister } from '@foblex/mediator';
|
|
5
|
-
import { PointExtensions } from '@foblex/2d';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "../../../f-storage";
|
|
8
|
-
let InputCanvasPositionExecution = class InputCanvasPositionExecution {
|
|
9
|
-
constructor(fComponentsStore) {
|
|
10
|
-
this.fComponentsStore = fComponentsStore;
|
|
11
|
-
}
|
|
12
|
-
handle(request) {
|
|
13
|
-
var _a;
|
|
14
|
-
if (!request.position) {
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
const position = PointExtensions.sum(request.transform.position, request.transform.scaledPosition);
|
|
18
|
-
if (!PointExtensions.isEqual(position, request.position)) {
|
|
19
|
-
request.transform.position = request.position;
|
|
20
|
-
request.transform.scaledPosition = PointExtensions.initialize();
|
|
21
|
-
(_a = this.fComponentsStore.fCanvas) === null || _a === void 0 ? void 0 : _a.redraw();
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
InputCanvasPositionExecution.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: InputCanvasPositionExecution, deps: [{ token: i1.FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
26
|
-
InputCanvasPositionExecution.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: InputCanvasPositionExecution });
|
|
27
|
-
InputCanvasPositionExecution = __decorate([
|
|
28
|
-
FExecutionRegister(InputCanvasPositionRequest)
|
|
29
|
-
], InputCanvasPositionExecution);
|
|
30
|
-
export { InputCanvasPositionExecution };
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: InputCanvasPositionExecution, decorators: [{
|
|
32
|
-
type: Injectable
|
|
33
|
-
}], ctorParameters: function () { return [{ type: i1.FComponentsStore }]; } });
|
|
34
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtY2FudmFzLXBvc2l0aW9uLmV4ZWN1dGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZG9tYWluL2YtY2FudmFzL2lucHV0LWNhbnZhcy1wb3NpdGlvbi9pbnB1dC1jYW52YXMtcG9zaXRpb24uZXhlY3V0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBRSwwQkFBMEIsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBQzdFLE9BQU8sRUFBRSxrQkFBa0IsRUFBYyxNQUFNLGtCQUFrQixDQUFDO0FBQ2xFLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxZQUFZLENBQUM7OztJQUtoQyw0QkFBNEIsU0FBNUIsNEJBQTRC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pbnRFeHRlbnNpb25zLmluaXRpYWxpemUoKTtcbiAgICAgIHRoaXMuZkNvbXBvbmVudHNTdG9yZS5mQ2FudmFzPy5yZWRyYXcoKTtcbiAgICB9XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import { InputCanvasScaleRequest } from './input-canvas-scale-request';
|
|
4
|
-
import { FExecutionRegister } from '@foblex/mediator';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "../../../f-storage";
|
|
7
|
-
let InputCanvasScaleExecution = class InputCanvasScaleExecution {
|
|
8
|
-
constructor(fComponentsStore) {
|
|
9
|
-
this.fComponentsStore = fComponentsStore;
|
|
10
|
-
}
|
|
11
|
-
handle(request) {
|
|
12
|
-
var _a;
|
|
13
|
-
if (!request.scale) {
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
request.transform.scale = request.scale;
|
|
17
|
-
(_a = this.fComponentsStore.fCanvas) === null || _a === void 0 ? void 0 : _a.redraw();
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
InputCanvasScaleExecution.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: InputCanvasScaleExecution, deps: [{ token: i1.FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
21
|
-
InputCanvasScaleExecution.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: InputCanvasScaleExecution });
|
|
22
|
-
InputCanvasScaleExecution = __decorate([
|
|
23
|
-
FExecutionRegister(InputCanvasScaleRequest)
|
|
24
|
-
], InputCanvasScaleExecution);
|
|
25
|
-
export { InputCanvasScaleExecution };
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: InputCanvasScaleExecution, decorators: [{
|
|
27
|
-
type: Injectable
|
|
28
|
-
}], ctorParameters: function () { return [{ type: i1.FComponentsStore }]; } });
|
|
29
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtY2FudmFzLXNjYWxlLmV4ZWN1dGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZG9tYWluL2YtY2FudmFzL2lucHV0LWNhbnZhcy1zY2FsZS9pbnB1dC1jYW52YXMtc2NhbGUuZXhlY3V0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLDhCQUE4QixDQUFDO0FBQ3ZFLE9BQU8sRUFBRSxrQkFBa0IsRUFBYyxNQUFNLGtCQUFrQixDQUFDOzs7SUFLckQseUJBQXlCLFNBQXpCLHlCQUF5QjtJQUdwQyxZQUNVLGdCQUFrQztRQUFsQyxxQkFBZ0IsR0FBaEIsZ0JBQWdCLENBQWtCO0lBRTVDLENBQUM7SUFFTSxNQUFNLENBQUMsT0FBZ0M7O1FBQzVDLElBQUksQ0FBQyxPQUFPLENBQUMsS0FBSyxFQUFFO1lBQ2xCLE9BQU87U0FDUjtRQUNELE9BQU8sQ0FBQyxTQUFTLENBQUMsS0FBSyxHQUFHLE9BQU8sQ0FBQyxLQUFLLENBQUM7UUFDeEMsTUFBQSxJQUFJLENBQUMsZ0JBQWdCLENBQUMsT0FBTywwQ0FBRSxNQUFNLEVBQUUsQ0FBQztJQUMxQyxDQUFDO0NBQ0YsQ0FBQTt1SEFmWSx5QkFBeUI7MkhBQXpCLHlCQUF5QjtBQUF6Qix5QkFBeUI7SUFEckMsa0JBQWtCLENBQUMsdUJBQXVCLENB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etectionStrategy, Component, ContentChild } from "@angular/core";
|
|
2
|
-
import { F_BACKGROUND, FBackgroundBase } from './f-background-base';
|
|
3
|
-
import { F_BACKGROUND_PATTERN } from './domain';
|
|
4
|
-
import { AddPatternToBackgroundRequest } from '../domain';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "../f-storage";
|
|
7
|
-
import * as i2 from "@foblex/mediator";
|
|
8
|
-
export class FBackgroundComponent extends FBackgroundBase {
|
|
9
|
-
constructor(elementReference, fComponentsStore, fMediator) {
|
|
10
|
-
super();
|
|
11
|
-
this.elementReference = elementReference;
|
|
12
|
-
this.fComponentsStore = fComponentsStore;
|
|
13
|
-
this.fMediator = fMediator;
|
|
14
|
-
}
|
|
15
|
-
get hostElement() {
|
|
16
|
-
return this.elementReference.nativeElement;
|
|
17
|
-
}
|
|
18
|
-
ngOnInit() {
|
|
19
|
-
this.fComponentsStore.fBackground = this;
|
|
20
|
-
}
|
|
21
|
-
ngAfterContentInit() {
|
|
22
|
-
this.fMediator.send(new AddPatternToBackgroundRequest(this.fBackgroundPattern));
|
|
23
|
-
}
|
|
24
|
-
isBackgroundElement(element) {
|
|
25
|
-
return this.hostElement.contains(element);
|
|
26
|
-
}
|
|
27
|
-
setTransform(transform) {
|
|
28
|
-
var _a;
|
|
29
|
-
(_a = this.fBackgroundPattern) === null || _a === void 0 ? void 0 : _a.setTransform(transform);
|
|
30
|
-
}
|
|
31
|
-
ngOnDestroy() {
|
|
32
|
-
this.fComponentsStore.fBackground = undefined;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
FBackgroundComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FBackgroundComponent, deps: [{ token: i0.ElementRef }, { token: i1.FComponentsStore }, { token: i2.FMediator }], target: i0.ɵɵFactoryTarget.Component });
|
|
36
|
-
FBackgroundComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FBackgroundComponent, selector: "f-background", host: { classAttribute: "f-component f-background" }, providers: [{ provide: F_BACKGROUND, useExisting: FBackgroundComponent }], queries: [{ propertyName: "fBackgroundPattern", first: true, predicate: F_BACKGROUND_PATTERN, descendants: true }], usesInheritance: true, ngImport: i0, template: "<svg><ng-content></ng-content></svg>", isInline: true, styles: [":host{position:absolute;width:100%;height:100%;left:0;top:0;transform-origin:0 0;pointer-events:none}:host svg{width:100%;height:100%}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FBackgroundComponent, decorators: [{
|
|
38
|
-
type: Component,
|
|
39
|
-
args: [{
|
|
40
|
-
selector: "f-background",
|
|
41
|
-
template: "<svg><ng-content></ng-content></svg>",
|
|
42
|
-
styleUrls: ["./f-background.component.scss"],
|
|
43
|
-
host: {
|
|
44
|
-
'class': 'f-component f-background'
|
|
45
|
-
},
|
|
46
|
-
providers: [{ provide: F_BACKGROUND, useExisting: FBackgroundComponent }],
|
|
47
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
48
|
-
}]
|
|
49
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.FComponentsStore }, { type: i2.FMediator }]; }, propDecorators: { fBackgroundPattern: [{
|
|
50
|
-
type: ContentChild,
|
|
51
|
-
args: [F_BACKGROUND_PATTERN, { static: false }]
|
|
52
|
-
}] } });
|
|
53
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1iYWNrZ3JvdW5kLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZi1iYWNrZ3JvdWQvZi1iYWNrZ3JvdW5kLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFB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ZCYWNrZ3JvdW5kUGF0dGVybj8uc2V0VHJhbnNmb3JtKHRyYW5zZm9ybSk7XG4gIH1cblxuICBwdWJsaWMgbmdPbkRlc3Ryb3koKSB7XG4gICAgdGhpcy5mQ29tcG9uZW50c1N0b3JlLmZCYWNrZ3JvdW5kID0gdW5kZWZpbmVkO1xuICB9XG59XG4iXX0=
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, ViewChild, } from "@angular/core";
|
|
2
|
-
import { FCanvasBase, F_CANVAS } from './f-canvas-base';
|
|
3
|
-
import { PointExtensions, TransformModelExtensions } from '@foblex/2d';
|
|
4
|
-
import { CenterGroupOrNodeRequest, EmitTransformChangesRequest, F_CANVAS_ANIMATION_DURATION, FitToFlowRequest, InputCanvasPositionRequest, InputCanvasScaleRequest, ResetScaleAndCenterRequest, ResetScaleRequest, UpdateScaleRequest, } from '../domain';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@foblex/mediator";
|
|
7
|
-
import * as i2 from "../f-storage";
|
|
8
|
-
export class FCanvasComponent extends FCanvasBase {
|
|
9
|
-
constructor(elementReference, fMediator, fComponentsStore) {
|
|
10
|
-
super();
|
|
11
|
-
this.elementReference = elementReference;
|
|
12
|
-
this.fMediator = fMediator;
|
|
13
|
-
this.fComponentsStore = fComponentsStore;
|
|
14
|
-
this.fCanvasChange = new EventEmitter();
|
|
15
|
-
}
|
|
16
|
-
set position(value) {
|
|
17
|
-
this.fMediator.send(new InputCanvasPositionRequest(this.transform, value));
|
|
18
|
-
}
|
|
19
|
-
set scale(value) {
|
|
20
|
-
this.fMediator.send(new InputCanvasScaleRequest(this.transform, value));
|
|
21
|
-
}
|
|
22
|
-
get fNodes() {
|
|
23
|
-
return this.fComponentsStore.fNodes;
|
|
24
|
-
}
|
|
25
|
-
get hostElement() {
|
|
26
|
-
return this.elementReference.nativeElement;
|
|
27
|
-
}
|
|
28
|
-
ngOnInit() {
|
|
29
|
-
this.fComponentsStore.fCanvas = this;
|
|
30
|
-
}
|
|
31
|
-
redraw() {
|
|
32
|
-
var _a;
|
|
33
|
-
(_a = this.fComponentsStore.fBackground) === null || _a === void 0 ? void 0 : _a.setTransform(this.transform);
|
|
34
|
-
this.hostElement.setAttribute("style", `transform: ${TransformModelExtensions.toString(this.transform)}`);
|
|
35
|
-
this.fMediator.send(new EmitTransformChangesRequest());
|
|
36
|
-
}
|
|
37
|
-
redrawWithAnimation() {
|
|
38
|
-
var _a;
|
|
39
|
-
(_a = this.fComponentsStore.fBackground) === null || _a === void 0 ? void 0 : _a.setTransform(this.transform);
|
|
40
|
-
this.hostElement.setAttribute("style", `transition: transform ${F_CANVAS_ANIMATION_DURATION}ms ease-in-out; transform: ${TransformModelExtensions.toString(this.transform)}`);
|
|
41
|
-
setTimeout(() => {
|
|
42
|
-
this.redraw();
|
|
43
|
-
}, F_CANVAS_ANIMATION_DURATION);
|
|
44
|
-
}
|
|
45
|
-
centerGroupOrNode(id, animated = true) {
|
|
46
|
-
this.fMediator.send(new CenterGroupOrNodeRequest(id, animated));
|
|
47
|
-
}
|
|
48
|
-
fitToScreen(toCenter = PointExtensions.initialize(), animated = true) {
|
|
49
|
-
this.fMediator.send(new FitToFlowRequest(toCenter, animated));
|
|
50
|
-
}
|
|
51
|
-
resetScaleAndCenter(animated = true) {
|
|
52
|
-
this.fMediator.send(new ResetScaleAndCenterRequest(animated));
|
|
53
|
-
}
|
|
54
|
-
setZoom(scale, toPosition = PointExtensions.initialize()) {
|
|
55
|
-
this.fMediator.send(new UpdateScaleRequest(scale, toPosition));
|
|
56
|
-
}
|
|
57
|
-
resetZoom() {
|
|
58
|
-
this.fMediator.send(new ResetScaleRequest());
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
FCanvasComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FCanvasComponent, deps: [{ token: i0.ElementRef }, { token: i1.FMediator }, { token: i2.FComponentsStore }], target: i0.ɵɵFactoryTarget.Component });
|
|
62
|
-
FCanvasComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FCanvasComponent, selector: "f-canvas", inputs: { position: "position", scale: "scale" }, outputs: { fCanvasChange: "fCanvasChange" }, host: { classAttribute: "f-component f-canvas" }, providers: [
|
|
63
|
-
{ provide: F_CANVAS, useExisting: FCanvasComponent }
|
|
64
|
-
], viewQueries: [{ propertyName: "fGroupsContainer", first: true, predicate: ["fGroupsContainer"], descendants: true, static: true }, { propertyName: "fNodesContainer", first: true, predicate: ["fNodesContainer"], descendants: true, static: true }, { propertyName: "fConnectionsContainer", first: true, predicate: ["fConnectionsContainer"], descendants: true, static: true }], exportAs: ["fComponent"], usesInheritance: true, ngImport: i0, template: "<ng-container>\n <div #fGroupsContainer>\n <ng-content select=\"[fGroup]\"></ng-content>\n </div>\n <div #fConnectionsContainer>\n <ng-content select=\"f-snap-connection\"></ng-content>\n <ng-content select=\"f-connection\"></ng-content>\n <ng-content select=\"f-connection-for-create\"></ng-content>\n </div>\n\n <div #fNodesContainer>\n <ng-content select=\"[fNode]\"></ng-content>\n </div>\n</ng-container>\n", styles: [":host{position:absolute;overflow:visible;width:100%;height:100%;left:0;top:0;transform-origin:0 0;pointer-events:none}:host.f-scaled-animate{transition:transform .09s}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
65
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FCanvasComponent, decorators: [{
|
|
66
|
-
type: Component,
|
|
67
|
-
args: [{
|
|
68
|
-
selector: 'f-canvas',
|
|
69
|
-
templateUrl: './f-canvas.component.html',
|
|
70
|
-
styleUrls: ['./f-canvas.component.scss'],
|
|
71
|
-
exportAs: 'fComponent',
|
|
72
|
-
host: {
|
|
73
|
-
'class': 'f-component f-canvas',
|
|
74
|
-
},
|
|
75
|
-
providers: [
|
|
76
|
-
{ provide: F_CANVAS, useExisting: FCanvasComponent }
|
|
77
|
-
],
|
|
78
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
79
|
-
}]
|
|
80
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.FMediator }, { type: i2.FComponentsStore }]; }, propDecorators: { fCanvasChange: [{
|
|
81
|
-
type: Output
|
|
82
|
-
}], position: [{
|
|
83
|
-
type: Input
|
|
84
|
-
}], scale: [{
|
|
85
|
-
type: Input
|
|
86
|
-
}], fGroupsContainer: [{
|
|
87
|
-
type: ViewChild,
|
|
88
|
-
args: ['fGroupsContainer', { static: true }]
|
|
89
|
-
}], fNodesContainer: [{
|
|
90
|
-
type: ViewChild,
|
|
91
|
-
args: ['fNodesContainer', { static: true }]
|
|
92
|
-
}], fConnectionsContainer: [{
|
|
93
|
-
type: ViewChild,
|
|
94
|
-
args: ['fConnectionsContainer', { static: true }]
|
|
95
|
-
}] } });
|
|
96
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1jYW52YXMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9mLWNhbnZhcy9mLWNhbnZhcy5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2YtY2FudmFzL2YtY2FudmFzLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCx1QkFBdUIsRUFDdkIsU0FBUyxFQUFjLFlBQVksRUFBRSxLQUFLLEVBQVUsTUFBTSxFQUFFLFNBQVMsR0FDdEUsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUNMLFdBQVcsRUFBRSxRQUFRLEVBQ3RCLE1BQU0saUJBQWlCLENBQUM7QUFDekIsT0FBTyxFQUFVL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yUmVxdWVzdChhbmltYXRlZCkpO1xuICB9XG5cbiAgcHVibGljIG92ZXJyaWRlIHNldFpvb20oc2NhbGU6IG51bWJlciwgdG9Qb3NpdGlvbjogSVBvaW50ID0gUG9pbnRFeHRlbnNpb25zLmluaXRpYWxpemUoKSk6IHZvaWQge1xuICAgIHRoaXMuZk1lZGlhdG9yLnNlbmQobmV3IFVwZGF0ZVNjYWxlUmVxdWVzdChzY2FsZSwgdG9Qb3NpdGlvbikpO1xuICB9XG5cbiAgcHVibGljIG92ZXJyaWRlIHJlc2V0Wm9vbSgpOiB2b2lkIHtcbiAgICB0aGlzLmZNZWRpYXRvci5zZW5kKG5ldyBSZXNldFNjYWxlUmVxdWVzdCgpKTtcbiAgfVxufVxuIiwiPG5nLWNvbnRhaW5lcj5cbiAgPGRpdiAjZkdyb3Vwc0NvbnRhaW5lcj5cbiAgICA8bmctY29udGVudCBzZWxlY3Q9XCJbZkdyb3VwXVwiPjwvbmctY29udGVudD5cbiAgPC9kaXY+XG4gIDxkaXYgI2ZDb25uZWN0aW9uc0NvbnRhaW5lcj5cbiAgICA8bmctY29udGVudCBzZWxlY3Q9XCJmLXNuYXAtY29ubmVjdGlvblwiPjwvbmctY29udGVudD5cbiAgICA8bmctY29udGVudCBzZWxlY3Q9XCJmLWNvbm5lY3Rpb25cIj48L25nLWNvbnRlbnQ+XG4gICAgPG5nLWNvbnRlbnQgc2VsZWN0PVwiZi1jb25uZWN0aW9uLWZvci1jcmVhdGVcIj48L25nLWNvbnRlbnQ+XG4gIDwvZGl2PlxuXG4gIDxkaXYgI2ZOb2Rlc0NvbnRhaW5lcj5cbiAgICA8bmctY29udGVudCBzZWxlY3Q9XCJbZk5vZGVdXCI+PC9uZy1jb250ZW50PlxuICA8L2Rpdj5cbjwvbmctY29udGFpbmVyPlxuIl19
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { Directive } from '@angular/core';
|
|
2
|
-
import { LineExtensions, PointExtensions } from '@foblex/2d';
|
|
3
|
-
import { Subject } from 'rxjs';
|
|
4
|
-
import { mixinChangeSelection, mixinChangeVisibility } from '../../mixins';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "../f-connection-builder";
|
|
7
|
-
const MIXIN_BASE = mixinChangeSelection(mixinChangeVisibility(class {
|
|
8
|
-
constructor(hostElement) {
|
|
9
|
-
this.hostElement = hostElement;
|
|
10
|
-
}
|
|
11
|
-
}));
|
|
12
|
-
export class FConnectionBase extends MIXIN_BASE {
|
|
13
|
-
constructor(elementReference, cFactory) {
|
|
14
|
-
super(elementReference.nativeElement);
|
|
15
|
-
this.cFactory = cFactory;
|
|
16
|
-
this.path = '';
|
|
17
|
-
this.line = LineExtensions.initialize();
|
|
18
|
-
this.stateChanges = new Subject();
|
|
19
|
-
this.penultimatePoint = PointExtensions.initialize();
|
|
20
|
-
}
|
|
21
|
-
initialize() {
|
|
22
|
-
this.fPath.initialize();
|
|
23
|
-
this.fGradient.initialize();
|
|
24
|
-
this.redraw();
|
|
25
|
-
}
|
|
26
|
-
isContains(element) {
|
|
27
|
-
var _a;
|
|
28
|
-
return ((_a = this.hostElement.firstChild) === null || _a === void 0 ? void 0 : _a.lastChild).contains(element);
|
|
29
|
-
}
|
|
30
|
-
setLine(source, sourceSide, target, targetSide) {
|
|
31
|
-
var _a, _b;
|
|
32
|
-
this.line = LineExtensions.initialize(source, target);
|
|
33
|
-
const pathResult = this.getPathResult(source, sourceSide, target, targetSide);
|
|
34
|
-
this.path = pathResult.path;
|
|
35
|
-
this.penultimatePoint = pathResult.penultimatePoint || source;
|
|
36
|
-
(_b = (_a = this.fConnectionCenter) === null || _a === void 0 ? void 0 : _a.nativeElement) === null || _b === void 0 ? void 0 : _b.setAttribute('style', this.getTransform(pathResult.connectionCenter));
|
|
37
|
-
}
|
|
38
|
-
getPathResult(source, sourceSide, target, targetSide) {
|
|
39
|
-
const radius = this.fRadius > 0 ? this.fRadius : 0;
|
|
40
|
-
const offset = this.fOffset > 0 ? this.fOffset : 1;
|
|
41
|
-
return this.cFactory.handle({
|
|
42
|
-
type: this.fType,
|
|
43
|
-
payload: { source, sourceSide, target, targetSide, radius, offset }
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
getTransform(position) {
|
|
47
|
-
return `position: absolute; pointerEvents: all; transform: translate(-50%, -50%); left: ${position.x}px; top: ${position.y}px`;
|
|
48
|
-
}
|
|
49
|
-
selectChild() {
|
|
50
|
-
this.fPath.select();
|
|
51
|
-
}
|
|
52
|
-
deselectChild() {
|
|
53
|
-
this.fPath.deselect();
|
|
54
|
-
}
|
|
55
|
-
redraw() {
|
|
56
|
-
this.fPath.setPath(this.path);
|
|
57
|
-
this.fSelection.setPath(this.path);
|
|
58
|
-
this.fGradient.redraw(this.line);
|
|
59
|
-
this.fDragHandle.redraw(this.penultimatePoint, this.line.point2);
|
|
60
|
-
this.fTextComponent.redraw(this.line);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
FConnectionBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FConnectionBase, deps: [{ token: i0.ElementRef }, { token: i1.FConnectionFactory }], target: i0.ɵɵFactoryTarget.Directive });
|
|
64
|
-
FConnectionBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: FConnectionBase, usesInheritance: true, ngImport: i0 });
|
|
65
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FConnectionBase, decorators: [{
|
|
66
|
-
type: Directive
|
|
67
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.FConnectionFactory }]; } });
|
|
68
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1jb25uZWN0aW9uLWJhc2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mL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AgICB0aGlzLmZEcmFnSGFuZGxlLnJlZHJhdyh0aGlzLnBlbnVsdGltYXRlUG9pbnQsIHRoaXMubGluZS5wb2ludDIpO1xuICAgIHRoaXMuZlRleHRDb21wb25lbnQucmVkcmF3KHRoaXMubGluZSk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Inject, ViewChild } from "@angular/core";
|
|
2
|
-
import { PointExtensions } from '@foblex/2d';
|
|
3
|
-
import { FConnectionTextPathDirective } from './f-connection-text-path.directive';
|
|
4
|
-
import { F_CONNECTION_IDENTIFIERS } from '../f-connection-identifiers';
|
|
5
|
-
import { F_CONNECTION } from '../f-connection.injection-token';
|
|
6
|
-
import { CONNECTION_TEXT } from './i-connection-text';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "./f-connection-text-path.directive";
|
|
9
|
-
export class FConnectionTextComponent {
|
|
10
|
-
constructor(elementReference, base) {
|
|
11
|
-
this.elementReference = elementReference;
|
|
12
|
-
this.base = base;
|
|
13
|
-
}
|
|
14
|
-
get textId() {
|
|
15
|
-
return F_CONNECTION_IDENTIFIERS.textId(this.base.fId + this.base.fOutputId + this.base.fInputId);
|
|
16
|
-
}
|
|
17
|
-
get hostElement() {
|
|
18
|
-
return this.elementReference.nativeElement;
|
|
19
|
-
}
|
|
20
|
-
get text() {
|
|
21
|
-
return this.base.fText || '';
|
|
22
|
-
}
|
|
23
|
-
redraw(line) {
|
|
24
|
-
const isTextReverse = FConnectionTextComponent.isTextReverse(line);
|
|
25
|
-
const dyValue = this.calculateDy(this.textPathDirective.fontSize, isTextReverse);
|
|
26
|
-
this.hostElement.setAttribute('dy', dyValue);
|
|
27
|
-
const textRect = this.textPathDirective.getBBox();
|
|
28
|
-
const textRectCenter = [textRect.x + textRect.width / 2, textRect.y + textRect.height / 2];
|
|
29
|
-
this.hostElement.setAttribute('transform', isTextReverse ? `rotate(180, ${textRectCenter})` : '');
|
|
30
|
-
const startOffset = FConnectionTextComponent.getTextStartOffset(line, this.base.fText || '', this.textPathDirective.symbolWidth);
|
|
31
|
-
if (startOffset < 0) {
|
|
32
|
-
this.hostElement.style.display = 'none';
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
this.hostElement.style.display = 'unset';
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
calculateDy(fontSize, isTextReverse) {
|
|
39
|
-
const fontSizeNumber = parseFloat(fontSize);
|
|
40
|
-
const dyValue = isTextReverse ? fontSizeNumber * 1.5 : fontSizeNumber * -0.8;
|
|
41
|
-
return dyValue.toString();
|
|
42
|
-
}
|
|
43
|
-
static isTextReverse(line) {
|
|
44
|
-
return line.point1.x > line.point2.x;
|
|
45
|
-
}
|
|
46
|
-
static getTextStartOffset(line, name, symbolWidth) {
|
|
47
|
-
const vectorLength = PointExtensions.hypotenuse(line.point1, line.point2);
|
|
48
|
-
return vectorLength / 2 - ((name || '').length * symbolWidth) / 2;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
FConnectionTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FConnectionTextComponent, deps: [{ token: i0.ElementRef }, { token: F_CONNECTION }], target: i0.ɵɵFactoryTarget.Component });
|
|
52
|
-
FConnectionTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FConnectionTextComponent, selector: "text[f-connection-text]", host: { properties: { "attr.id": "textId" }, classAttribute: "f-component f-connection-text" }, providers: [{ provide: CONNECTION_TEXT, useExisting: FConnectionTextComponent }], viewQueries: [{ propertyName: "textPathDirective", first: true, predicate: FConnectionTextPathDirective, descendants: true, static: true }], ngImport: i0, template: "<ng-container xmlns:svg=\"http://www.w3.org/2000/svg\">\n <svg:textPath f-connection-text-path>\n {{ text }}\n </svg:textPath>\n</ng-container>\n", directives: [{ type: i1.FConnectionTextPathDirective, selector: "textPath[f-connection-text-path]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
53
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FConnectionTextComponent, decorators: [{
|
|
54
|
-
type: Component,
|
|
55
|
-
args: [{
|
|
56
|
-
selector: "text[f-connection-text]",
|
|
57
|
-
templateUrl: "./f-connection-text.component.html",
|
|
58
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
59
|
-
host: {
|
|
60
|
-
class: "f-component f-connection-text",
|
|
61
|
-
'[attr.id]': 'textId',
|
|
62
|
-
},
|
|
63
|
-
providers: [{ provide: CONNECTION_TEXT, useExisting: FConnectionTextComponent }],
|
|
64
|
-
}]
|
|
65
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: undefined, decorators: [{
|
|
66
|
-
type: Inject,
|
|
67
|
-
args: [F_CONNECTION]
|
|
68
|
-
}] }]; }, propDecorators: { textPathDirective: [{
|
|
69
|
-
type: ViewChild,
|
|
70
|
-
args: [FConnectionTextPathDirective, { static: true }]
|
|
71
|
-
}] } });
|
|
72
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1jb25uZWN0aW9uLXRleHQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9mLWNvbm5lY3Rpb24vY29tbW9uL2YtY29ubmVjdGlvbi10ZXh0L2YtY29ubmVjdGlvbi10ZXh0LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZi1jb25uZWN0aW9uL2NvbW1vbi9mLWNvbm5lY3Rpb24tdGV4dC9mLWNvbm5lY3Rpb24tdGV4dC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQ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