@foblex/flow 12.6.6 → 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/{f-backgroud/domain → domain/f-background}/add-pattern-to-background/add-pattern-to-background.request.d.ts +1 -1
- package/domain/f-background/index.d.ts +2 -0
- package/domain/f-canvas/index.d.ts +8 -0
- package/{f-draggable/connections/common → domain/f-connection}/get-all-can-be-connected-input-positions/get-all-can-be-connected-input-positions.execution.d.ts +1 -1
- package/{f-draggable/connections/common → domain/f-connection}/get-connector-with-rect/get-connector-with-rect-request.d.ts +1 -1
- package/{f-draggable/connections/common → domain/f-connection}/get-connector-with-rect/i-connector-with-rect.d.ts +1 -1
- package/{f-draggable/connections/common → domain/f-connection}/index.d.ts +0 -1
- package/domain/f-connection/providers.d.ts +4 -0
- package/domain/get-flow-state/providers.d.ts +1 -1
- package/domain/index.d.ts +3 -0
- package/domain/providers.d.ts +1 -1
- 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/esm2020/domain/f-background/add-pattern-to-background/add-pattern-to-background.request.mjs +6 -0
- package/esm2020/domain/f-background/add-pattern-to-background/index.mjs +3 -0
- package/esm2020/domain/f-background/index.mjs +3 -0
- package/esm2020/domain/f-background/providers.mjs +5 -0
- package/{esm2015/f-canvas/domain/center-group-or-node/center-group-or-node-request.js → esm2020/domain/f-canvas/center-group-or-node/center-group-or-node-request.mjs} +1 -1
- package/{esm2015/f-canvas/domain/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/f-canvas/domain/center-group-or-node/index.js → esm2020/domain/f-canvas/center-group-or-node/index.mjs} +1 -1
- package/{esm2015/f-canvas/domain/fit-to-flow/fit-to-flow-request.js → esm2020/domain/f-canvas/fit-to-flow/fit-to-flow-request.mjs} +1 -1
- package/{esm2015/f-canvas/domain/fit-to-flow/fit-to-flow.execution.js → esm2020/domain/f-canvas/fit-to-flow/fit-to-flow.execution.mjs} +4 -4
- package/{esm2015/f-canvas/domain/fit-to-flow/index.js → esm2020/domain/f-canvas/fit-to-flow/index.mjs} +1 -1
- package/esm2020/domain/f-canvas/index.mjs +9 -0
- package/{esm2015/f-canvas/domain/input-canvas-position/index.js → esm2020/domain/f-canvas/input-canvas-position/index.mjs} +1 -1
- package/{esm2015/f-canvas/domain/input-canvas-position/input-canvas-position-request.js → esm2020/domain/f-canvas/input-canvas-position/input-canvas-position-request.mjs} +1 -1
- package/esm2020/domain/f-canvas/input-canvas-position/input-canvas-position.execution.mjs +33 -0
- package/{esm2015/f-canvas/domain/input-canvas-scale/index.js → esm2020/domain/f-canvas/input-canvas-scale/index.mjs} +1 -1
- package/{esm2015/f-canvas/domain/input-canvas-scale/input-canvas-scale-request.js → esm2020/domain/f-canvas/input-canvas-scale/input-canvas-scale-request.mjs} +1 -1
- package/esm2020/domain/f-canvas/input-canvas-scale/input-canvas-scale.execution.mjs +28 -0
- package/{esm2015/f-canvas/domain/providers.js → esm2020/domain/f-canvas/providers.mjs} +1 -1
- package/{esm2015/f-canvas/domain/reset-scale/index.js → esm2020/domain/f-canvas/reset-scale/index.mjs} +1 -1
- package/{esm2015/f-canvas/domain/reset-scale/reset-scale-request.js → esm2020/domain/f-canvas/reset-scale/reset-scale-request.mjs} +1 -1
- package/{esm2015/f-canvas/domain/reset-scale/reset-scale.execution.js → esm2020/domain/f-canvas/reset-scale/reset-scale.execution.mjs} +4 -4
- package/{esm2015/f-canvas/domain/reset-scale-and-center/index.js → esm2020/domain/f-canvas/reset-scale-and-center/index.mjs} +1 -1
- package/{esm2015/f-canvas/domain/reset-scale-and-center/reset-scale-and-center-request.js → esm2020/domain/f-canvas/reset-scale-and-center/reset-scale-and-center-request.mjs} +1 -1
- package/{esm2015/f-canvas/domain/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/f-canvas/domain/update-scale/index.js → esm2020/domain/f-canvas/update-scale/index.mjs} +1 -1
- package/{esm2015/f-canvas/domain/update-scale/update-scale-request.js → esm2020/domain/f-canvas/update-scale/update-scale-request.mjs} +1 -1
- package/{esm2015/f-canvas/domain/update-scale/update-scale.execution.js → esm2020/domain/f-canvas/update-scale/update-scale.execution.mjs} +4 -4
- package/esm2020/domain/f-connection/find-closest-input-using-snap-threshold/find-closest-input-using-snap-threshold.execution.mjs +39 -0
- package/esm2020/domain/f-connection/find-closest-input-using-snap-threshold/find-closest-input-using-snap-threshold.request.mjs +8 -0
- package/esm2020/domain/f-connection/find-closest-input-using-snap-threshold/index.mjs +3 -0
- package/esm2020/domain/f-connection/get-all-can-be-connected-input-positions/get-all-can-be-connected-input-positions.execution.mjs +55 -0
- package/esm2020/domain/f-connection/get-all-can-be-connected-input-positions/get-all-can-be-connected-input-positions.request.mjs +6 -0
- package/esm2020/domain/f-connection/get-all-can-be-connected-input-positions/index.mjs +3 -0
- package/esm2020/domain/f-connection/get-connector-with-rect/get-connector-with-rect-request.mjs +6 -0
- package/esm2020/domain/f-connection/get-connector-with-rect/get-connector-with-rect.execution.mjs +28 -0
- package/esm2020/domain/f-connection/get-connector-with-rect/i-connector-with-rect.mjs +2 -0
- package/esm2020/domain/f-connection/get-connector-with-rect/index.mjs +4 -0
- package/esm2020/domain/f-connection/index.mjs +5 -0
- package/esm2020/domain/f-connection/providers.mjs +9 -0
- 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/esm2020/domain/index.mjs +26 -0
- 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/esm2020/domain/providers.mjs +48 -0
- 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/esm2020/f-backgroud/domain/index.mjs +2 -0
- 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/esm2020/f-canvas/domain/index.mjs +2 -0
- 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-finalize/index.js → esm2020/f-draggable/connections/create-connection/create-connection-finalize/index.mjs} +1 -2
- 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-drag-handler/index.js → esm2020/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/index.mjs} +1 -2
- 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-outlet-preparation/index.js → esm2020/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/index.mjs} +1 -2
- 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-from-output-preparation/index.js → esm2020/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/index.mjs} +1 -2
- 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/{esm2015/f-draggable/connections/create-connection/create-connection-preparation/index.js → esm2020/f-draggable/connections/create-connection/create-connection-preparation/index.mjs} +1 -2
- 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/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} +1 -2
- package/esm2020/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.execution.mjs +85 -0
- package/esm2020/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.request.mjs +7 -0
- package/esm2020/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.validator.mjs +35 -0
- package/esm2020/f-draggable/connections/get-input-under-pointer/index.mjs +4 -0
- package/esm2020/f-draggable/connections/index.mjs +5 -0
- package/esm2020/f-draggable/connections/providers.mjs +22 -0
- package/{esm2015/f-draggable/connections/reassign-connection/reassign-connection-finalize/index.js → esm2020/f-draggable/connections/reassign-connection/reassign-connection-finalize/index.mjs} +1 -2
- package/esm2020/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.execution.mjs +50 -0
- 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/index.js → esm2020/f-draggable/connections/reassign-connection/reassign-connection-preparation/index.mjs} +1 -2
- 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/esm2020/f-draggable/node/connection-base-drag-handler.mjs +39 -0
- 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/providers.mjs +21 -0
- 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/esm2020/f-flow/f-flow.component.mjs +118 -0
- 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/domain/index.d.ts +0 -2
- 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/domain/index.d.ts +0 -8
- 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/connections/create-connection/create-connection-finalize/index.d.ts +0 -1
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/index.d.ts +0 -1
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/index.d.ts +0 -1
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/index.d.ts +0 -1
- package/f-draggable/connections/create-connection/create-connection-preparation/index.d.ts +0 -1
- package/f-draggable/connections/create-connection/create-connection.drag-handler.d.ts +1 -1
- package/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/index.d.ts +0 -1
- package/f-draggable/connections/{common/get-input-under-pointer → get-input-under-pointer}/get-input-under-pointer.execution.d.ts +3 -3
- package/f-draggable/connections/{common/get-input-under-pointer → get-input-under-pointer}/get-input-under-pointer.request.d.ts +2 -2
- package/f-draggable/connections/{common/get-input-under-pointer → get-input-under-pointer}/get-input-under-pointer.validator.d.ts +1 -1
- package/f-draggable/connections/index.d.ts +1 -1
- package/f-draggable/connections/providers.d.ts +4 -1
- package/f-draggable/connections/reassign-connection/reassign-connection-finalize/index.d.ts +0 -1
- package/f-draggable/connections/reassign-connection/reassign-connection-preparation/index.d.ts +0 -1
- package/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.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 +2 -2
- package/f-draggable/providers.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/domain/providers.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-node/providers.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} +1379 -1472
- 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 -9848
- package/bundles/foblex-flow.umd.js.map +0 -1
- package/esm2015/domain/index.js +0 -23
- package/esm2015/domain/providers.js +0 -46
- package/esm2015/f-backgroud/domain/add-pattern-to-background/add-pattern-to-background.execution.js +0 -48
- package/esm2015/f-backgroud/domain/add-pattern-to-background/add-pattern-to-background.request.js +0 -6
- package/esm2015/f-backgroud/domain/add-pattern-to-background/index.js +0 -3
- package/esm2015/f-backgroud/domain/index.js +0 -4
- package/esm2015/f-backgroud/domain/providers.js +0 -5
- package/esm2015/f-backgroud/f-background.component.js +0 -53
- package/esm2015/f-canvas/domain/index.js +0 -10
- package/esm2015/f-canvas/domain/input-canvas-position/input-canvas-position.execution.js +0 -34
- package/esm2015/f-canvas/domain/input-canvas-scale/input-canvas-scale.execution.js +0 -29
- package/esm2015/f-canvas/f-canvas.component.js +0 -97
- 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/common/find-closest-input-using-snap-threshold/find-closest-input-using-snap-threshold.execution.js +0 -39
- package/esm2015/f-draggable/connections/common/find-closest-input-using-snap-threshold/find-closest-input-using-snap-threshold.request.js +0 -8
- package/esm2015/f-draggable/connections/common/find-closest-input-using-snap-threshold/index.js +0 -3
- package/esm2015/f-draggable/connections/common/get-all-can-be-connected-input-positions/get-all-can-be-connected-input-positions.execution.js +0 -55
- package/esm2015/f-draggable/connections/common/get-all-can-be-connected-input-positions/get-all-can-be-connected-input-positions.request.js +0 -6
- package/esm2015/f-draggable/connections/common/get-all-can-be-connected-input-positions/index.js +0 -3
- package/esm2015/f-draggable/connections/common/get-connector-with-rect/get-connector-with-rect-request.js +0 -6
- package/esm2015/f-draggable/connections/common/get-connector-with-rect/get-connector-with-rect.execution.js +0 -28
- package/esm2015/f-draggable/connections/common/get-connector-with-rect/i-connector-with-rect.js +0 -2
- package/esm2015/f-draggable/connections/common/get-connector-with-rect/index.js +0 -4
- package/esm2015/f-draggable/connections/common/get-input-under-pointer/get-input-under-pointer.execution.js +0 -85
- package/esm2015/f-draggable/connections/common/get-input-under-pointer/get-input-under-pointer.request.js +0 -7
- package/esm2015/f-draggable/connections/common/get-input-under-pointer/get-input-under-pointer.validator.js +0 -35
- package/esm2015/f-draggable/connections/common/get-input-under-pointer/index.js +0 -4
- package/esm2015/f-draggable/connections/common/index.js +0 -6
- package/esm2015/f-draggable/connections/common/providers.js +0 -12
- package/esm2015/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.execution.js +0 -56
- package/esm2015/f-draggable/connections/create-connection/create-connection-finalize/providers.js +0 -7
- package/esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/providers.js +0 -5
- package/esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/providers.js +0 -5
- package/esm2015/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/providers.js +0 -7
- package/esm2015/f-draggable/connections/create-connection/create-connection-preparation/providers.js +0 -13
- package/esm2015/f-draggable/connections/create-connection/create-connection.drag-handler.js +0 -64
- package/esm2015/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/providers.js +0 -7
- package/esm2015/f-draggable/connections/index.js +0 -5
- package/esm2015/f-draggable/connections/providers.js +0 -14
- package/esm2015/f-draggable/connections/reassign-connection/reassign-connection-finalize/providers.js +0 -7
- package/esm2015/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.execution.js +0 -50
- package/esm2015/f-draggable/connections/reassign-connection/reassign-connection-preparation/providers.js +0 -7
- package/esm2015/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.js +0 -61
- package/esm2015/f-draggable/f-draggable.directive.js +0 -165
- package/esm2015/f-draggable/node/connection-base-drag-handler.js +0 -39
- 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/providers.js +0 -21
- package/esm2015/f-draggable/single-select/single-select.execution.js +0 -89
- package/esm2015/f-flow/f-flow.component.js +0 -126
- 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/f-draggable/connections/common/providers.d.ts +0 -5
- package/f-draggable/connections/create-connection/create-connection-finalize/providers.d.ts +0 -3
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/providers.d.ts +0 -2
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/providers.d.ts +0 -2
- package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/providers.d.ts +0 -3
- package/f-draggable/connections/create-connection/create-connection-preparation/providers.d.ts +0 -3
- package/f-draggable/connections/create-connection/get-can-be-connected-output-by-outlet/providers.d.ts +0 -3
- package/f-draggable/connections/reassign-connection/reassign-connection-finalize/providers.d.ts +0 -3
- package/f-draggable/connections/reassign-connection/reassign-connection-preparation/providers.d.ts +0 -3
- package/fesm2015/foblex-flow.js.map +0 -1
- /package/{f-backgroud/domain → domain/f-background}/add-pattern-to-background/add-pattern-to-background.execution.d.ts +0 -0
- /package/{f-backgroud/domain → domain/f-background}/add-pattern-to-background/index.d.ts +0 -0
- /package/{f-backgroud/domain → domain/f-background}/providers.d.ts +0 -0
- /package/{f-canvas/domain → domain/f-canvas}/center-group-or-node/center-group-or-node-request.d.ts +0 -0
- /package/{f-canvas/domain → domain/f-canvas}/center-group-or-node/center-group-or-node.execution.d.ts +0 -0
- /package/{f-canvas/domain → domain/f-canvas}/center-group-or-node/index.d.ts +0 -0
- /package/{f-canvas/domain → domain/f-canvas}/fit-to-flow/fit-to-flow-request.d.ts +0 -0
- /package/{f-canvas/domain → domain/f-canvas}/fit-to-flow/fit-to-flow.execution.d.ts +0 -0
- /package/{f-canvas/domain → domain/f-canvas}/fit-to-flow/index.d.ts +0 -0
- /package/{f-canvas/domain → domain/f-canvas}/input-canvas-position/index.d.ts +0 -0
- /package/{f-canvas/domain → domain/f-canvas}/input-canvas-position/input-canvas-position-request.d.ts +0 -0
- /package/{f-canvas/domain → domain/f-canvas}/input-canvas-position/input-canvas-position.execution.d.ts +0 -0
- /package/{f-canvas/domain → domain/f-canvas}/input-canvas-scale/index.d.ts +0 -0
- /package/{f-canvas/domain → domain/f-canvas}/input-canvas-scale/input-canvas-scale-request.d.ts +0 -0
- /package/{f-canvas/domain → domain/f-canvas}/input-canvas-scale/input-canvas-scale.execution.d.ts +0 -0
- /package/{f-canvas/domain → domain/f-canvas}/providers.d.ts +0 -0
- /package/{f-canvas/domain → domain/f-canvas}/reset-scale/index.d.ts +0 -0
- /package/{f-canvas/domain → domain/f-canvas}/reset-scale/reset-scale-request.d.ts +0 -0
- /package/{f-canvas/domain → domain/f-canvas}/reset-scale/reset-scale.execution.d.ts +0 -0
- /package/{f-canvas/domain → domain/f-canvas}/reset-scale-and-center/index.d.ts +0 -0
- /package/{f-canvas/domain → domain/f-canvas}/reset-scale-and-center/reset-scale-and-center-request.d.ts +0 -0
- /package/{f-canvas/domain → domain/f-canvas}/reset-scale-and-center/reset-scale-and-center.execution.d.ts +0 -0
- /package/{f-canvas/domain → domain/f-canvas}/update-scale/index.d.ts +0 -0
- /package/{f-canvas/domain → domain/f-canvas}/update-scale/update-scale-request.d.ts +0 -0
- /package/{f-canvas/domain → domain/f-canvas}/update-scale/update-scale.execution.d.ts +0 -0
- /package/{f-draggable/connections/common → domain/f-connection}/find-closest-input-using-snap-threshold/find-closest-input-using-snap-threshold.execution.d.ts +0 -0
- /package/{f-draggable/connections/common → domain/f-connection}/find-closest-input-using-snap-threshold/find-closest-input-using-snap-threshold.request.d.ts +0 -0
- /package/{f-draggable/connections/common → domain/f-connection}/find-closest-input-using-snap-threshold/index.d.ts +0 -0
- /package/{f-draggable/connections/common → domain/f-connection}/get-all-can-be-connected-input-positions/get-all-can-be-connected-input-positions.request.d.ts +0 -0
- /package/{f-draggable/connections/common → domain/f-connection}/get-all-can-be-connected-input-positions/index.d.ts +0 -0
- /package/{f-draggable/connections/common → domain/f-connection}/get-connector-with-rect/get-connector-with-rect.execution.d.ts +0 -0
- /package/{f-draggable/connections/common → domain/f-connection}/get-connector-with-rect/index.d.ts +0 -0
- /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-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/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/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/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/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-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-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-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-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/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/index.js → esm2020/f-draggable/connections/create-connection/index.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/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/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/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/f-draggable/connections/{common/get-input-under-pointer → get-input-under-pointer}/index.d.ts +0 -0
- /package/{foblex-flow.d.ts → index.d.ts} +0 -0
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { CANVAS_PROVIDERS } from './canvas';
|
|
2
|
-
import { CONNECTIONS_PROVIDERS } from './connections/providers';
|
|
3
|
-
import { SINGLE_SELECT_PROVIDERS } from './single-select';
|
|
4
|
-
import { NODE_PROVIDERS } from './node';
|
|
5
|
-
import { NODE_RESIZE_PROVIDERS } from './node-resize';
|
|
6
|
-
import { F_MINIMAP_DRAG_AND_DROP_PROVIDERS } from '../f-minimap/domain/providers';
|
|
7
|
-
import { F_EXTERNAL_ITEM_DRAG_AND_DROP_PROVIDERS } from '../f-external-item/domain/providers';
|
|
8
|
-
import { F_SELECTION_AREA_DRAG_AND_DROP_PROVIDERS } from '../f-selection-area/domain/providers';
|
|
9
|
-
import { DRAG_AND_DROP_COMMON_PROVIDERS } from './domain';
|
|
10
|
-
export const F_DRAGGABLE_PROVIDERS = [
|
|
11
|
-
...CANVAS_PROVIDERS,
|
|
12
|
-
...CONNECTIONS_PROVIDERS,
|
|
13
|
-
...DRAG_AND_DROP_COMMON_PROVIDERS,
|
|
14
|
-
...SINGLE_SELECT_PROVIDERS,
|
|
15
|
-
...F_EXTERNAL_ITEM_DRAG_AND_DROP_PROVIDERS,
|
|
16
|
-
...NODE_PROVIDERS,
|
|
17
|
-
...NODE_RESIZE_PROVIDERS,
|
|
18
|
-
...F_SELECTION_AREA_DRAG_AND_DROP_PROVIDERS,
|
|
19
|
-
...F_MINIMAP_DRAG_AND_DROP_PROVIDERS
|
|
20
|
-
];
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvdmlkZXJzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9mLWRyYWdnYWJsZS9wcm92aWRlcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sVUFBVSxDQUFDO0FBQzVDLE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBQ2hFLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQzFELE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxRQUFRLENBQUM7QUFDeEMsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3RELE9BQU8sRUFBRSxpQ0FBaUMsRUFBRSxNQUFNLCtCQUErQixDQUFDO0FBQ2xGLE9BQU8sRUFBRSx1Q0FBdUMsRUFBRSxNQUFNLHFDQUFxQyxDQUFDO0FBQzlGLE9BQU8sRUFBRSx3Q0FBd0MsRUFBRSxNQUFNLHNDQUFzQyxDQUFDO0FBQ2hHLE9BQU8sRUFBRSw4QkFBOEIsRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUUxRCxNQUFNLENB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AnLi9kb21haW4nO1xuXG5leHBvcnQgY29uc3QgRl9EUkFHR0FCTEVfUFJPVklERVJTID0gW1xuXG4gIC4uLkNBTlZBU19QUk9WSURFUlMsXG5cbiAgLi4uQ09OTkVDVElPTlNfUFJPVklERVJTLFxuXG4gIC4uLkRSQUdfQU5EX0RST1BfQ09NTU9OX1BST1ZJREVSUyxcblxuICAuLi5TSU5HTEVfU0VMRUNUX1BST1ZJREVSUyxcblxuICAuLi5GX0VYVEVSTkFMX0lURU1fRFJBR19BTkRfRFJPUF9QUk9WSURFUlMsXG5cbiAgLi4uTk9ERV9QUk9WSURFUlMsXG5cbiAgLi4uTk9ERV9SRVNJWkVfUFJPVklERVJTLFxuXG4gIC4uLkZfU0VMRUNUSU9OX0FSRUFfRFJBR19BTkRfRFJPUF9QUk9WSURFUlMsXG5cbiAgLi4uRl9NSU5JTUFQX0RSQUdfQU5EX0RST1BfUFJPVklERVJTXG5dO1xuIl19
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import { FExecutionRegister } from '@foblex/mediator';
|
|
4
|
-
import { SingleSelectRequest } from './single-select.request';
|
|
5
|
-
import { UpdateItemAndChildrenLayersRequest } from '../../domain';
|
|
6
|
-
import { EOperationSystem } from '@foblex/platform';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "@foblex/platform";
|
|
9
|
-
import * as i2 from "../../f-storage";
|
|
10
|
-
import * as i3 from "../f-draggable-data-context";
|
|
11
|
-
import * as i4 from "@foblex/mediator";
|
|
12
|
-
let SingleSelectExecution = class SingleSelectExecution {
|
|
13
|
-
constructor(fPlatform, fComponentsStore, fDraggableDataContext, fMediator) {
|
|
14
|
-
this.fPlatform = fPlatform;
|
|
15
|
-
this.fComponentsStore = fComponentsStore;
|
|
16
|
-
this.fDraggableDataContext = fDraggableDataContext;
|
|
17
|
-
this.fMediator = fMediator;
|
|
18
|
-
}
|
|
19
|
-
handle(request) {
|
|
20
|
-
const { event } = request;
|
|
21
|
-
const item = this.getSelectableItem(event);
|
|
22
|
-
if (item) {
|
|
23
|
-
this.fMediator.send(new UpdateItemAndChildrenLayersRequest(item, item.hostElement.parentElement));
|
|
24
|
-
}
|
|
25
|
-
this.isMultiselectEnabled(event) ? this.multiSelect(item) : this.singleSelect(item);
|
|
26
|
-
}
|
|
27
|
-
getSelectableItem(event) {
|
|
28
|
-
return this.fComponentsStore.findNode(event.targetElement) || this.getConnectionHandler(event.targetElement);
|
|
29
|
-
}
|
|
30
|
-
getConnectionHandler(element) {
|
|
31
|
-
return this.fComponentsStore.fConnections.find(c => { var _a, _b; return c.isContains(element) || ((_b = (_a = c.fConnectionCenter) === null || _a === void 0 ? void 0 : _a.nativeElement) === null || _b === void 0 ? void 0 : _b.contains(element)); });
|
|
32
|
-
}
|
|
33
|
-
isMultiselectEnabled(event) {
|
|
34
|
-
return this.isCommandButton(this.fPlatform.getOS(), event.originalEvent) ||
|
|
35
|
-
this.isShiftPressed(event.originalEvent);
|
|
36
|
-
}
|
|
37
|
-
isShiftPressed(event) {
|
|
38
|
-
return event.shiftKey;
|
|
39
|
-
}
|
|
40
|
-
isCommandButton(platform, event) {
|
|
41
|
-
return platform === EOperationSystem.MAC_OS ? event.metaKey : event.ctrlKey;
|
|
42
|
-
}
|
|
43
|
-
singleSelect(item) {
|
|
44
|
-
if (item) {
|
|
45
|
-
if (!item.isSelected() && !item.fSelectionDisabled) {
|
|
46
|
-
this.clearSelection();
|
|
47
|
-
this.selectItem(item);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
this.clearSelection();
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
multiSelect(item) {
|
|
55
|
-
if (item && !item.fSelectionDisabled) {
|
|
56
|
-
item.isSelected() ? this.deselectItem(item) : this.selectItem(item);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
deselectItem(item) {
|
|
60
|
-
const index = this.fDraggableDataContext.selectedItems.indexOf(item);
|
|
61
|
-
if (index > -1) {
|
|
62
|
-
this.fDraggableDataContext.selectedItems.splice(index, 1);
|
|
63
|
-
}
|
|
64
|
-
item.deselect();
|
|
65
|
-
this.fDraggableDataContext.markSelectionAsChanged();
|
|
66
|
-
}
|
|
67
|
-
selectItem(item) {
|
|
68
|
-
this.fDraggableDataContext.selectedItems.push(item);
|
|
69
|
-
item.select();
|
|
70
|
-
this.fDraggableDataContext.markSelectionAsChanged();
|
|
71
|
-
}
|
|
72
|
-
clearSelection() {
|
|
73
|
-
this.fDraggableDataContext.selectedItems.forEach((x) => {
|
|
74
|
-
x.deselect();
|
|
75
|
-
this.fDraggableDataContext.markSelectionAsChanged();
|
|
76
|
-
});
|
|
77
|
-
this.fDraggableDataContext.selectedItems = [];
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
SingleSelectExecution.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SingleSelectExecution, deps: [{ token: i1.PlatformService }, { token: i2.FComponentsStore }, { token: i3.FDraggableDataContext }, { token: i4.FMediator }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
81
|
-
SingleSelectExecution.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SingleSelectExecution });
|
|
82
|
-
SingleSelectExecution = __decorate([
|
|
83
|
-
FExecutionRegister(SingleSelectRequest)
|
|
84
|
-
], SingleSelectExecution);
|
|
85
|
-
export { SingleSelectExecution };
|
|
86
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SingleSelectExecution, decorators: [{
|
|
87
|
-
type: Injectable
|
|
88
|
-
}], ctorParameters: function () { return [{ type: i1.PlatformService }, { type: i2.FComponentsStore }, { type: i3.FDraggableDataContext }, { type: i4.FMediator }]; } });
|
|
89
|
-
//# sourceMappingURL=data:application/json;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zZWxlY3QoKTtcbiAgICB0aGlzLmZEcmFnZ2FibGVEYXRhQ29udGV4dC5tYXJrU2VsZWN0aW9uQXNDaGFuZ2VkKCk7XG4gIH1cblxuICBwcml2YXRlIGNsZWFyU2VsZWN0aW9uKCk6IHZvaWQge1xuICAgIHRoaXMuZkRyYWdnYWJsZURhdGFDb250ZXh0LnNlbGVjdGVkSXRlbXMuZm9yRWFjaCgoeCkgPT4ge1xuICAgICAgeC5kZXNlbGVjdCgpO1xuICAgICAgdGhpcy5mRHJhZ2dhYmxlRGF0YUNvbnRleHQubWFya1NlbGVjdGlvbkFzQ2hhbmdlZCgpO1xuICAgIH0pO1xuICAgIHRoaXMuZkRyYWdnYWJsZURhdGFDb250ZXh0LnNlbGVjdGVkSXRlbXMgPSBbXTtcbiAgfVxufVxuIl19
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
import { F_FLOW, FFlowBase } from './f-flow-base';
|
|
3
|
-
import { Subscription } from 'rxjs';
|
|
4
|
-
import { startWith, debounceTime } from 'rxjs/operators';
|
|
5
|
-
import { ClearSelectionRequest, GetScaledNodeRectsWithFlowPositionRequest, GetPositionInFlowRequest, GetSelectionRequest, RedrawConnectionsRequest, SelectAllRequest, SelectRequest, SortItemLayersRequest, GetFlowStateRequest } from '../domain';
|
|
6
|
-
import { FMediator } from '@foblex/mediator';
|
|
7
|
-
import { FDraggableDataContext } from '../f-draggable';
|
|
8
|
-
import { FConnectionFactory } from '../f-connection';
|
|
9
|
-
import { FComponentsStore, FTransformStore } from '../f-storage';
|
|
10
|
-
import { COMMON_PROVIDERS } from '../domain/providers';
|
|
11
|
-
import { F_DRAGGABLE_PROVIDERS } from '../f-draggable/providers';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
import * as i1 from "../f-storage";
|
|
14
|
-
import * as i2 from "@foblex/mediator";
|
|
15
|
-
import * as i3 from "@foblex/platform";
|
|
16
|
-
let uniqueId = 0;
|
|
17
|
-
export class FFlowComponent extends FFlowBase {
|
|
18
|
-
constructor(elementReference, fComponentsStore, fMediator, fBrowser) {
|
|
19
|
-
super();
|
|
20
|
-
this.elementReference = elementReference;
|
|
21
|
-
this.fComponentsStore = fComponentsStore;
|
|
22
|
-
this.fMediator = fMediator;
|
|
23
|
-
this.fBrowser = fBrowser;
|
|
24
|
-
this.subscription$ = new Subscription();
|
|
25
|
-
this.fFlowId = `f-flow-${uniqueId++}`;
|
|
26
|
-
this.fLoaded = new EventEmitter();
|
|
27
|
-
this.isLoaded = false;
|
|
28
|
-
}
|
|
29
|
-
get hostElement() {
|
|
30
|
-
return this.elementReference.nativeElement;
|
|
31
|
-
}
|
|
32
|
-
ngOnInit() {
|
|
33
|
-
this.fComponentsStore.fFlow = this;
|
|
34
|
-
}
|
|
35
|
-
ngAfterContentInit() {
|
|
36
|
-
if (!this.fBrowser.isBrowser()) {
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
this.subscription$.add(this.subscribeOnElementsChanges());
|
|
40
|
-
this.subscription$.add(this.subscribeOnComponentsCountChanges());
|
|
41
|
-
}
|
|
42
|
-
subscribeOnComponentsCountChanges() {
|
|
43
|
-
return this.fComponentsStore.componentsCount$.pipe(startWith(null), debounceTime(1)).subscribe(() => {
|
|
44
|
-
this.fMediator.send(new SortItemLayersRequest());
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
subscribeOnElementsChanges() {
|
|
48
|
-
return this.fComponentsStore.componentsData$.pipe(startWith(null), debounceTime(1)).subscribe(() => {
|
|
49
|
-
this.fMediator.send(new RedrawConnectionsRequest());
|
|
50
|
-
if (!this.isLoaded) {
|
|
51
|
-
// this.fMediator.send(new ShowConnectionsAfterCalculationsRequest());
|
|
52
|
-
this.isLoaded = true;
|
|
53
|
-
this.fLoaded.emit();
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
redraw() {
|
|
58
|
-
this.fComponentsStore.componentDataChanged();
|
|
59
|
-
}
|
|
60
|
-
reset() {
|
|
61
|
-
this.isLoaded = false;
|
|
62
|
-
}
|
|
63
|
-
getAllNodesRect() {
|
|
64
|
-
return this.fMediator.send(new GetScaledNodeRectsWithFlowPositionRequest());
|
|
65
|
-
}
|
|
66
|
-
getSelection() {
|
|
67
|
-
return this.fMediator.send(new GetSelectionRequest());
|
|
68
|
-
}
|
|
69
|
-
getPositionInFlow(position) {
|
|
70
|
-
return this.fMediator.send(new GetPositionInFlowRequest(position));
|
|
71
|
-
}
|
|
72
|
-
getState() {
|
|
73
|
-
return this.fMediator.send(new GetFlowStateRequest());
|
|
74
|
-
}
|
|
75
|
-
selectAll() {
|
|
76
|
-
this.fMediator.send(new SelectAllRequest());
|
|
77
|
-
}
|
|
78
|
-
select(nodes, connections) {
|
|
79
|
-
this.fMediator.send(new SelectRequest(nodes, connections));
|
|
80
|
-
}
|
|
81
|
-
clearSelection() {
|
|
82
|
-
this.fMediator.send(new ClearSelectionRequest());
|
|
83
|
-
}
|
|
84
|
-
ngOnDestroy() {
|
|
85
|
-
this.subscription$.unsubscribe();
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
FFlowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FFlowComponent, deps: [{ token: i0.ElementRef }, { token: i1.FComponentsStore }, { token: i2.FMediator }, { token: i3.BrowserService }], target: i0.ɵɵFactoryTarget.Component });
|
|
89
|
-
FFlowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FFlowComponent, selector: "f-flow", inputs: { fFlowId: "fFlowId" }, outputs: { fLoaded: "fLoaded" }, host: { properties: { "attr.id": "fFlowId" }, classAttribute: "f-component f-flow" }, providers: [
|
|
90
|
-
FMediator,
|
|
91
|
-
FComponentsStore,
|
|
92
|
-
FTransformStore,
|
|
93
|
-
FDraggableDataContext,
|
|
94
|
-
FConnectionFactory,
|
|
95
|
-
...F_DRAGGABLE_PROVIDERS,
|
|
96
|
-
...COMMON_PROVIDERS,
|
|
97
|
-
{ provide: F_FLOW, useExisting: FFlowComponent },
|
|
98
|
-
], usesInheritance: true, ngImport: i0, template: "<ng-container>\n <ng-content select=\"[fDefinitions]\"></ng-content>\n\n <ng-content select=\"f-background\"></ng-content>\n\n <ng-content select=\"f-line-alignment\"></ng-content>\n\n <ng-content select=\"f-canvas\"></ng-content>\n\n <ng-content select=\"f-selection-area\"></ng-content>\n\n <ng-content select=\"f-minimap\"></ng-content>\n</ng-container>\n", styles: [":host{display:block;position:relative;width:100%;height:100%;overflow:hidden;pointer-events:all;-webkit-user-select:none;user-select:none;touch-action:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
99
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FFlowComponent, decorators: [{
|
|
100
|
-
type: Component,
|
|
101
|
-
args: [{
|
|
102
|
-
selector: 'f-flow',
|
|
103
|
-
templateUrl: './f-flow.component.html',
|
|
104
|
-
styleUrls: ['./f-flow.component.scss'],
|
|
105
|
-
host: {
|
|
106
|
-
'[attr.id]': 'fFlowId',
|
|
107
|
-
class: "f-component f-flow",
|
|
108
|
-
},
|
|
109
|
-
providers: [
|
|
110
|
-
FMediator,
|
|
111
|
-
FComponentsStore,
|
|
112
|
-
FTransformStore,
|
|
113
|
-
FDraggableDataContext,
|
|
114
|
-
FConnectionFactory,
|
|
115
|
-
...F_DRAGGABLE_PROVIDERS,
|
|
116
|
-
...COMMON_PROVIDERS,
|
|
117
|
-
{ provide: F_FLOW, useExisting: FFlowComponent },
|
|
118
|
-
],
|
|
119
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
120
|
-
}]
|
|
121
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.FComponentsStore }, { type: i2.FMediator }, { type: i3.BrowserService }]; }, propDecorators: { fFlowId: [{
|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WN0aW9uczogc3RyaW5nW10pOiB2b2lkIHtcbiAgICB0aGlzLmZNZWRpYXRvci5zZW5kPHZvaWQ+KG5ldyBTZWxlY3RSZXF1ZXN0KG5vZGVzLCBjb25uZWN0aW9ucykpO1xuICB9XG5cbiAgcHVibGljIGNsZWFyU2VsZWN0aW9uKCk6IHZvaWQge1xuICAgIHRoaXMuZk1lZGlhdG9yLnNlbmQ8dm9pZD4obmV3IENsZWFyU2VsZWN0aW9uUmVxdWVzdCgpKTtcbiAgfVxuXG4gIHB1YmxpYyBuZ09uRGVzdHJveSgpOiB2b2lkIHtcbiAgICB0aGlzLnN1YnNjcmlwdGlvbiQudW5zdWJzY3JpYmUoKTtcbiAgfVxufVxuIiwiPG5nLWNvbnRhaW5lcj5cbiAgPG5nLWNvbnRlbnQgc2VsZWN0PVwiW2ZEZWZpbml0aW9uc11cIj48L25nLWNvbnRlbnQ+XG5cbiAgPG5nLWNvbnRlbnQgc2VsZWN0PVwiZi1iYWNrZ3JvdW5kXCI+PC9uZy1jb250ZW50PlxuXG4gIDxuZy1jb250ZW50IHNlbGVjdD1cImYtbGluZS1hbGlnbm1lbnRcIj48L25nLWNvbnRlbnQ+XG5cbiAgPG5nLWNvbnRlbnQgc2VsZWN0PVwiZi1jYW52YXNcIj48L25nLWNvbnRlbnQ+XG5cbiAgPG5nLWNvbnRlbnQgc2VsZWN0PVwiZi1zZWxlY3Rpb24tYXJlYVwiPjwvbmctY29udGVudD5cblxuICA8bmctY29udGVudCBzZWxlY3Q9XCJmLW1pbmltYXBcIj48L25nLWNvbnRlbnQ+XG48L25nLWNvbnRhaW5lcj5cbiJdfQ==
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Point } from '@foblex/2d';
|
|
2
|
-
import { CalculateFlowPointFromMinimapPointRequest } from './calculate-flow-point-from-minimap-point';
|
|
3
|
-
export class FMinimapDragHandler {
|
|
4
|
-
constructor(fComponentsStore, fMediator, flowRect, canvasPosition, eventPoint, minimap) {
|
|
5
|
-
this.fComponentsStore = fComponentsStore;
|
|
6
|
-
this.fMediator = fMediator;
|
|
7
|
-
this.flowRect = flowRect;
|
|
8
|
-
this.canvasPosition = canvasPosition;
|
|
9
|
-
this.eventPoint = eventPoint;
|
|
10
|
-
this.minimap = minimap;
|
|
11
|
-
this.lastDifference = null;
|
|
12
|
-
}
|
|
13
|
-
initialize() {
|
|
14
|
-
var _a;
|
|
15
|
-
(_a = this.fComponentsStore.fCanvas) === null || _a === void 0 ? void 0 : _a.hostElement.classList.add('f-scaled-animate');
|
|
16
|
-
}
|
|
17
|
-
move(difference) {
|
|
18
|
-
if (this.lastDifference && this.isSamePoint(difference, this.lastDifference)) {
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
this.lastDifference = difference;
|
|
22
|
-
this.fComponentsStore.fCanvas.setPosition(this.getNewPosition(Point.fromPoint(this.eventPoint).add(difference)));
|
|
23
|
-
this.fComponentsStore.fCanvas.redraw();
|
|
24
|
-
}
|
|
25
|
-
isSamePoint(point1, point2) {
|
|
26
|
-
return point1.x === point2.x && point1.y === point2.y;
|
|
27
|
-
}
|
|
28
|
-
getNewPosition(eventPoint) {
|
|
29
|
-
return this.fMediator.send(new CalculateFlowPointFromMinimapPointRequest(this.flowRect, this.canvasPosition, eventPoint, this.minimap));
|
|
30
|
-
}
|
|
31
|
-
complete() {
|
|
32
|
-
var _a;
|
|
33
|
-
(_a = this.fComponentsStore.fCanvas) === null || _a === void 0 ? void 0 : _a.hostElement.classList.remove('f-scaled-animate');
|
|
34
|
-
this.fComponentsStore.fCanvas.emitCanvasChangeEvent();
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1taW5pbWFwLmRyYWctaGFuZGxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZi1taW5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
|
1
|
-
import { ChangeDetectionStrategy, Component, Input, ViewChild, } from "@angular/core";
|
|
2
|
-
import { Subscription } from 'rxjs';
|
|
3
|
-
import { debounceTime } from 'rxjs/operators';
|
|
4
|
-
import { SubscribeOnTransformChangesRequest } from '../domain';
|
|
5
|
-
import { FMinimapFlowDirective } from './f-minimap-flow.directive';
|
|
6
|
-
import { FMinimapCanvasDirective } from './f-minimap-canvas.directive';
|
|
7
|
-
import { FMinimapViewDirective } from './f-minimap-view.directive';
|
|
8
|
-
import { F_DRAG_AND_DROP_PLUGIN } from '../f-draggable';
|
|
9
|
-
import { MinimapDragFinalizeRequest, MinimapDragPreparationRequest } from './domain';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
import * as i1 from "@foblex/mediator";
|
|
12
|
-
import * as i2 from "./f-minimap-flow.directive";
|
|
13
|
-
import * as i3 from "./f-minimap-canvas.directive";
|
|
14
|
-
import * as i4 from "./f-minimap-view.directive";
|
|
15
|
-
export class FMinimapComponent {
|
|
16
|
-
constructor(elementReference, fMediator) {
|
|
17
|
-
this.elementReference = elementReference;
|
|
18
|
-
this.fMediator = fMediator;
|
|
19
|
-
this.subscriptions$ = new Subscription();
|
|
20
|
-
this.fMinSize = 1000;
|
|
21
|
-
}
|
|
22
|
-
ngAfterViewInit() {
|
|
23
|
-
this.subscriptions$.add(this.subscribeOnTransformChanges());
|
|
24
|
-
}
|
|
25
|
-
subscribeOnTransformChanges() {
|
|
26
|
-
return this.getTransformChanges().pipe(debounceTime(5)).subscribe(() => {
|
|
27
|
-
this.fMinimapFlow.update();
|
|
28
|
-
this.fMinimapView.update();
|
|
29
|
-
this.fMinimapCanvas.redraw();
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
getTransformChanges() {
|
|
33
|
-
return this.fMediator.send(new SubscribeOnTransformChangesRequest());
|
|
34
|
-
}
|
|
35
|
-
onPointerDown(event) {
|
|
36
|
-
this.fMediator.send(new MinimapDragPreparationRequest(event, this.fMinimapFlow.model));
|
|
37
|
-
}
|
|
38
|
-
onPointerUp(event) {
|
|
39
|
-
this.fMediator.send(new MinimapDragFinalizeRequest(event));
|
|
40
|
-
}
|
|
41
|
-
ngOnDestroy() {
|
|
42
|
-
this.subscriptions$.unsubscribe();
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
FMinimapComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FMinimapComponent, deps: [{ token: i0.ElementRef }, { token: i1.FMediator }], target: i0.ɵɵFactoryTarget.Component });
|
|
46
|
-
FMinimapComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FMinimapComponent, selector: "f-minimap", inputs: { fMinSize: "fMinSize" }, host: { classAttribute: "f-component f-minimap" }, providers: [
|
|
47
|
-
{ provide: F_DRAG_AND_DROP_PLUGIN, useExisting: FMinimapComponent },
|
|
48
|
-
], viewQueries: [{ propertyName: "fMinimapCanvas", first: true, predicate: FMinimapCanvasDirective, descendants: true, static: true }, { propertyName: "fMinimapFlow", first: true, predicate: FMinimapFlowDirective, descendants: true, static: true }, { propertyName: "fMinimapView", first: true, predicate: FMinimapViewDirective, descendants: true, static: true }], exportAs: ["fComponent"], ngImport: i0, template: "<svg fMinimapFlow width=\"100%\" height=\"100%\" fLockedContext [fMinSize]=\"fMinSize\">\n <g fMinimapCanvas></g>\n <rect fMinimapView x=\"0\" y=\"0\" width=\"100%\" height=\"100%\" stroke=\"none\"/>\n</svg>\n\n", styles: [":host{display:block;position:absolute}:host svg{overflow:hidden}\n"], directives: [{ type: i2.FMinimapFlowDirective, selector: "svg[fMinimapFlow]", inputs: ["fMinSize"] }, { type: i3.FMinimapCanvasDirective, selector: "g[fMinimapCanvas]" }, { type: i4.FMinimapViewDirective, selector: "rect[fMinimapView]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
49
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FMinimapComponent, decorators: [{
|
|
50
|
-
type: Component,
|
|
51
|
-
args: [{
|
|
52
|
-
selector: 'f-minimap',
|
|
53
|
-
templateUrl: './f-minimap.component.html',
|
|
54
|
-
styleUrls: ['./f-minimap.component.scss'],
|
|
55
|
-
exportAs: 'fComponent',
|
|
56
|
-
host: {
|
|
57
|
-
'class': 'f-component f-minimap',
|
|
58
|
-
},
|
|
59
|
-
providers: [
|
|
60
|
-
{ provide: F_DRAG_AND_DROP_PLUGIN, useExisting: FMinimapComponent },
|
|
61
|
-
],
|
|
62
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
63
|
-
}]
|
|
64
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.FMediator }]; }, propDecorators: { fMinimapCanvas: [{
|
|
65
|
-
type: ViewChild,
|
|
66
|
-
args: [FMinimapCanvasDirective, { static: true }]
|
|
67
|
-
}], fMinimapFlow: [{
|
|
68
|
-
type: ViewChild,
|
|
69
|
-
args: [FMinimapFlowDirective, { static: true }]
|
|
70
|
-
}], fMinimapView: [{
|
|
71
|
-
type: ViewChild,
|
|
72
|
-
args: [FMinimapViewDirective, { static: true }]
|
|
73
|
-
}], fMinSize: [{
|
|
74
|
-
type: Input
|
|
75
|
-
}] } });
|
|
76
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1taW5pbWFwLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZi1taW5pbWFwL2YtbWluaW1hcC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2YtbWluaW1hcC9mLW1pbmltYXAuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNVLHVCQUF1QixF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RleHQgW2ZNaW5TaXplXT1cImZNaW5TaXplXCI+XG4gIDxnIGZNaW5pbWFwQ2FudmFzPjwvZz5cbiAgPHJlY3QgZk1pbmltYXBWaWV3IHg9XCIwXCIgeT1cIjBcIiB3aWR0aD1cIjEwMCVcIiBoZWlnaHQ9XCIxMDAlXCIgc3Ryb2tlPVwibm9uZVwiLz5cbjwvc3ZnPlxuXG4iXX0=
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { Subject } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class FComponentsStore {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.componentsDataChanges = new Subject();
|
|
7
|
-
this.componentsCountChanges = new Subject();
|
|
8
|
-
this.fNodes = [];
|
|
9
|
-
this.fConnections = [];
|
|
10
|
-
this.fMarkers = [];
|
|
11
|
-
this.fOutputs = [];
|
|
12
|
-
this.fInputs = [];
|
|
13
|
-
this.fOutlets = [];
|
|
14
|
-
}
|
|
15
|
-
get componentsData$() {
|
|
16
|
-
return this.componentsDataChanges.asObservable();
|
|
17
|
-
}
|
|
18
|
-
get componentsCount$() {
|
|
19
|
-
return this.componentsCountChanges.asObservable();
|
|
20
|
-
}
|
|
21
|
-
get flowHost() {
|
|
22
|
-
var _a;
|
|
23
|
-
return (_a = this.fFlow) === null || _a === void 0 ? void 0 : _a.hostElement;
|
|
24
|
-
}
|
|
25
|
-
get transform() {
|
|
26
|
-
var _a;
|
|
27
|
-
return (_a = this.fCanvas) === null || _a === void 0 ? void 0 : _a.transform;
|
|
28
|
-
}
|
|
29
|
-
findNode(element) {
|
|
30
|
-
return this.fNodes.find(n => n.isContains(element));
|
|
31
|
-
}
|
|
32
|
-
addComponent(collection, component) {
|
|
33
|
-
collection.push(component);
|
|
34
|
-
this.componentsCountChanges.next();
|
|
35
|
-
}
|
|
36
|
-
removeComponent(collection, component) {
|
|
37
|
-
const index = collection.indexOf(component);
|
|
38
|
-
if (index > -1) {
|
|
39
|
-
collection.splice(index, 1);
|
|
40
|
-
this.componentsCountChanges.next();
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
componentDataChanged() {
|
|
44
|
-
this.componentsDataChanges.next();
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
FComponentsStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FComponentsStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
48
|
-
FComponentsStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FComponentsStore });
|
|
49
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FComponentsStore, decorators: [{
|
|
50
|
-
type: Injectable
|
|
51
|
-
}] });
|
|
52
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1jb21wb25lbnRzLXN0b3JlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9mLXN0b3JhZ2UvZi1jb21wb25lbnRzLXN0b3JlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFjLE9BQU8sRUFBRSxNQUFNLE1BQU0sQ0FBQzs7QUFXM0MsTUFBTSxPQUFPLGdCQUFnQjtJQUQ3QjtRQUdtQiwwQkFBcUIsR0FBa0IsSUFBSSxPQUFPLEVBQVEsQ0FBQztRQUszRCwyQkFBc0IsR0FBa0IsSUFBSSxPQUFPLEVBQVEsQ0FBQztRQW1CdEUsV0FBTSxHQUFnQixFQUFFLENBQUM7UUFFekIsaUJBQVksR0FBc0IsRUFBRSxDQUFDO1FBTXJDLGFBQV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5leHQoKTtcbiAgICB9XG4gIH1cblxuICBwdWJsaWMgY29tcG9uZW50RGF0YUNoYW5nZWQoKTogdm9pZCB7XG4gICAgdGhpcy5jb21wb25lbnRzRGF0YUNoYW5nZXMubmV4dCgpO1xuICB9XG59XG4iXX0=
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { EventExtensions } from '@foblex/drag-toolkit';
|
|
2
|
-
import { Point, RectExtensions } from '@foblex/2d';
|
|
3
|
-
import { InjectionToken } from '@angular/core';
|
|
4
|
-
import { isNode } from '../f-node';
|
|
5
|
-
export const F_ZOOM = new InjectionToken('F_ZOOM');
|
|
6
|
-
export class FZoomBase {
|
|
7
|
-
constructor(fComponentsStore) {
|
|
8
|
-
this.fComponentsStore = fComponentsStore;
|
|
9
|
-
this.isEnabled = false;
|
|
10
|
-
this.listeners = EventExtensions.emptyListener();
|
|
11
|
-
}
|
|
12
|
-
get flowHost() {
|
|
13
|
-
return this.fComponentsStore.flowHost;
|
|
14
|
-
}
|
|
15
|
-
get fCanvas() {
|
|
16
|
-
return this.fComponentsStore.fCanvas;
|
|
17
|
-
}
|
|
18
|
-
toggleZoom() {
|
|
19
|
-
if (this.isEnabled) {
|
|
20
|
-
this.subscribe();
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
this.unsubscribe();
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
subscribe() {
|
|
27
|
-
this.listeners();
|
|
28
|
-
if (!this.flowHost) {
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
this.flowHost.addEventListener('wheel', this.onWheel.bind(this));
|
|
32
|
-
this.flowHost.addEventListener('dblclick', this.onDoubleClick.bind(this));
|
|
33
|
-
this.listeners = () => {
|
|
34
|
-
this.flowHost.removeEventListener('wheel', this.onWheel.bind(this));
|
|
35
|
-
this.flowHost.removeEventListener('dblclick', this.onDoubleClick.bind(this));
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
getScale() {
|
|
39
|
-
return this.fCanvas.transform.scale || 1;
|
|
40
|
-
}
|
|
41
|
-
onWheel(event) {
|
|
42
|
-
var _a;
|
|
43
|
-
event.preventDefault();
|
|
44
|
-
const targetElement = event.target;
|
|
45
|
-
if (((_a = this.fComponentsStore.fDraggable) === null || _a === void 0 ? void 0 : _a.isDragStarted) || (targetElement === null || targetElement === void 0 ? void 0 : targetElement.closest('[fLockedContext]'))) {
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
let result = this.getScale();
|
|
49
|
-
const direction = event.deltaY > 0 ? -1 : 1;
|
|
50
|
-
const step = this.step;
|
|
51
|
-
result = result + step * direction;
|
|
52
|
-
result = Math.max(this.minimum, Math.min(result, this.maximum));
|
|
53
|
-
const pointerPositionInFlow = new Point(event.clientX, event.clientY).elementTransform(this.flowHost);
|
|
54
|
-
this.fCanvas.setZoom(result, pointerPositionInFlow);
|
|
55
|
-
this.fCanvas.redraw();
|
|
56
|
-
this.fCanvas.emitCanvasChangeEvent();
|
|
57
|
-
}
|
|
58
|
-
onDoubleClick(event) {
|
|
59
|
-
var _a;
|
|
60
|
-
event.preventDefault();
|
|
61
|
-
const targetElement = event.target;
|
|
62
|
-
if (((_a = this.fComponentsStore.fDraggable) === null || _a === void 0 ? void 0 : _a.isDragStarted) || isNode(targetElement) || (targetElement === null || targetElement === void 0 ? void 0 : targetElement.closest('[fLockedContext]'))) {
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
let result = this.getScale();
|
|
66
|
-
const direction = 1;
|
|
67
|
-
const step = this.dblClickStep;
|
|
68
|
-
result = result + step * direction;
|
|
69
|
-
result = Math.max(this.minimum, Math.min(result, this.maximum));
|
|
70
|
-
const pointerPositionInFlow = new Point(event.clientX, event.clientY).elementTransform(this.flowHost);
|
|
71
|
-
this.fCanvas.setZoom(result, pointerPositionInFlow);
|
|
72
|
-
this.fCanvas.redrawWithAnimation();
|
|
73
|
-
this.fCanvas.emitCanvasChangeEvent();
|
|
74
|
-
}
|
|
75
|
-
onZoomToCenter(deltaY, position) {
|
|
76
|
-
const preventDefault = () => {
|
|
77
|
-
};
|
|
78
|
-
const rect = RectExtensions.fromElement(this.flowHost);
|
|
79
|
-
this.onWheel({
|
|
80
|
-
deltaY, preventDefault, clientX: (position === null || position === void 0 ? void 0 : position.x) || rect.gravityCenter.x, clientY: (position === null || position === void 0 ? void 0 : position.y) || rect.gravityCenter.y
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
zoomIn(position) {
|
|
84
|
-
this.onZoomToCenter(-1, position);
|
|
85
|
-
}
|
|
86
|
-
zoomOut(position) {
|
|
87
|
-
this.onZoomToCenter(1, position);
|
|
88
|
-
}
|
|
89
|
-
reset() {
|
|
90
|
-
this.fCanvas.resetZoom();
|
|
91
|
-
this.fCanvas.redraw();
|
|
92
|
-
this.fCanvas.emitCanvasChangeEvent();
|
|
93
|
-
}
|
|
94
|
-
unsubscribe() {
|
|
95
|
-
this.listeners();
|
|
96
|
-
this.listeners = EventExtensions.emptyListener();
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi16b29tLWJhc2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2Ytem9vbS9mLXpvb20tYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDdkQsT0FBTyxFQUFVLEtBQUssRUFBRSxjQUFjLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFDM0QsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUcvQyxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sV0FBVyxDQUFDO0FBRW5DLE1BQU0sQ0FBQyxNQUFNLE1BQU0sR0FBR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C0xLCBwb3NpdGlvbik7XG4gIH1cblxuICBwdWJsaWMgem9vbU91dChwb3NpdGlvbj86IElQb2ludCk6IHZvaWQge1xuICAgIHRoaXMub25ab29tVG9DZW50ZXIoMSwgcG9zaXRpb24pO1xuICB9XG5cbiAgcHVibGljIHJlc2V0KCk6IHZvaWQge1xuICAgIHRoaXMuZkNhbnZhcy5yZXNldFpvb20oKTtcbiAgICB0aGlzLmZDYW52YXMucmVkcmF3KCk7XG4gICAgdGhpcy5mQ2FudmFzLmVtaXRDYW52YXNDaGFuZ2VFdmVudCgpO1xuICB9XG5cbiAgcHJvdGVjdGVkIHVuc3Vic2NyaWJlKCk6IHZvaWQge1xuICAgIHRoaXMubGlzdGVuZXJzKCk7XG4gICAgdGhpcy5saXN0ZW5lcnMgPSBFdmVudEV4dGVuc2lvbnMuZW1wdHlMaXN0ZW5lcigpO1xuICB9XG59XG4iXX0=
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export const F_SELECTED_CLASS = 'f-selected';
|
|
2
|
-
export function mixinChangeSelection(base) {
|
|
3
|
-
return class extends base {
|
|
4
|
-
constructor(...args) {
|
|
5
|
-
super(...args);
|
|
6
|
-
this.fId = '';
|
|
7
|
-
this.fSelectionDisabled = false;
|
|
8
|
-
}
|
|
9
|
-
deselect() {
|
|
10
|
-
var _a;
|
|
11
|
-
(_a = this.deselectChild) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
12
|
-
this.hostElement.classList.remove(F_SELECTED_CLASS);
|
|
13
|
-
}
|
|
14
|
-
select() {
|
|
15
|
-
var _a;
|
|
16
|
-
(_a = this.selectChild) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
17
|
-
if (!this.isSelected()) {
|
|
18
|
-
this.hostElement.classList.add(F_SELECTED_CLASS);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
isSelected() {
|
|
22
|
-
return this.hostElement.classList.contains(F_SELECTED_CLASS);
|
|
23
|
-
}
|
|
24
|
-
selectChild() {
|
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