@foblex/flow 17.0.9 → 17.1.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.
Files changed (116) hide show
  1. package/domain/f-background/providers.d.ts +1 -1
  2. package/domain/f-canvas/providers.d.ts +1 -1
  3. package/domain/f-draggable/providers.d.ts +1 -1
  4. package/domain/f-flow/get-flow-state/get-flow-state-connections/get-flow-state-connections.execution.d.ts +2 -3
  5. package/domain/f-flow/get-flow-state/get-flow-state-nodes/get-flow-state-nodes.execution.d.ts +2 -2
  6. package/domain/f-flow/get-flow-state/get-flow-state.execution.d.ts +4 -6
  7. package/domain/f-flow/get-flow-state/providers.d.ts +1 -1
  8. package/domain/f-flow/providers.d.ts +1 -1
  9. package/domain/f-node/calculate-nodes-bounding-box-normalized-position/calculate-nodes-bounding-box-normalized-position.request.d.ts +3 -0
  10. package/domain/f-node/providers.d.ts +1 -1
  11. package/domain/index.d.ts +1 -0
  12. package/domain/log-execution-time.d.ts +1 -0
  13. package/domain/providers.d.ts +1 -1
  14. package/esm2022/domain/f-flow/get-flow-state/get-flow-state-connections/get-flow-state-connections.execution.mjs +17 -19
  15. package/esm2022/domain/f-flow/get-flow-state/get-flow-state-nodes/get-flow-state-nodes.execution.mjs +5 -5
  16. package/esm2022/domain/f-flow/get-flow-state/get-flow-state.execution.mjs +14 -19
  17. package/esm2022/domain/f-line-alignment/add-line-alignment-to-store/add-line-alignment-to-store.execution.mjs +2 -2
  18. package/esm2022/domain/f-line-alignment/remove-line-alignment-from-store/remove-line-alignment-from-store.execution.mjs +2 -2
  19. package/esm2022/domain/f-node/calculate-nodes-bounding-box-normalized-position/calculate-nodes-bounding-box-normalized-position.execution.mjs +4 -4
  20. package/esm2022/domain/f-node/calculate-nodes-bounding-box-normalized-position/calculate-nodes-bounding-box-normalized-position.request.mjs +5 -1
  21. package/esm2022/domain/index.mjs +2 -1
  22. package/esm2022/domain/log-execution-time.mjs +16 -0
  23. package/esm2022/f-draggable/connections/create-connection/create-connection.drag-handler.mjs +3 -3
  24. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.execution.mjs +33 -33
  25. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-preparation/reassign-connection-preparation.execution.mjs +1 -1
  26. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.mjs +9 -3
  27. package/esm2022/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.execution.mjs +8 -17
  28. package/esm2022/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.request.mjs +6 -6
  29. package/esm2022/f-draggable/domain/is-connection-under-node/is-connection-under-node.execution.mjs +25 -19
  30. package/esm2022/f-draggable/f-draggable-data-context.mjs +4 -2
  31. package/esm2022/f-draggable/node/connection-base-drag-handler.mjs +1 -1
  32. package/esm2022/f-draggable/node/connection-source.drag-handler.mjs +5 -7
  33. package/esm2022/f-draggable/node/connection-target.drag-handler.mjs +5 -7
  34. package/esm2022/f-draggable/node/connection.drag-handler.mjs +5 -5
  35. package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.mjs +37 -22
  36. package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-common-node-move-restrictions/calculate-common-node-move-restrictions.execution.mjs +40 -0
  37. package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-common-node-move-restrictions/calculate-common-node-move-restrictions.request.mjs +7 -0
  38. package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-common-node-move-restrictions/index.mjs +3 -0
  39. package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-node-move-restrictions/calculate-node-move-restrictions.execution.mjs +42 -0
  40. package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-node-move-restrictions/calculate-node-move-restrictions.request.mjs +9 -0
  41. package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-node-move-restrictions/index.mjs +3 -0
  42. package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-input-connection-handlers-to-array/put-input-connection-handlers-to-array.execution.mjs +16 -21
  43. package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-output-connection-handlers-to-array/put-output-connection-handlers-to-array.execution.mjs +4 -4
  44. package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/i-node-with-distance-restrictions.mjs +1 -1
  45. package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/index.mjs +3 -2
  46. package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/providers.mjs +5 -3
  47. package/esm2022/f-draggable/node/index.mjs +3 -1
  48. package/esm2022/f-draggable/node/line-alignment-preparation/index.mjs +3 -0
  49. package/esm2022/f-draggable/node/line-alignment-preparation/line-alignment-preparation.execution.mjs +67 -0
  50. package/esm2022/f-draggable/node/line-alignment-preparation/line-alignment-preparation.request.mjs +3 -0
  51. package/esm2022/f-draggable/node/line-alignment.drag-handler.mjs +61 -0
  52. package/esm2022/f-draggable/node/node-move-finalize/node-move-finalize.execution.mjs +5 -3
  53. package/esm2022/f-draggable/node/node-move-preparation/index.mjs +1 -2
  54. package/esm2022/f-draggable/node/node-move-preparation/node-move-preparation.execution.mjs +26 -21
  55. package/esm2022/f-draggable/node/node-move-preparation/providers.mjs +1 -3
  56. package/esm2022/f-draggable/node/node.drag-handler.mjs +13 -19
  57. package/esm2022/f-draggable/node/providers.mjs +3 -1
  58. package/esm2022/f-line-alignment/f-line-alignment-base.mjs +1 -1
  59. package/esm2022/f-line-alignment/f-line-alignment.component.mjs +12 -78
  60. package/esm2022/f-storage/f-components-store.mjs +2 -1
  61. package/f-backgroud/providers.d.ts +1 -1
  62. package/f-connection/providers.d.ts +1 -1
  63. package/f-connectors/providers.d.ts +1 -1
  64. package/f-draggable/connections/providers.d.ts +1 -1
  65. package/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.execution.d.ts +12 -13
  66. package/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.d.ts +2 -0
  67. package/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.execution.d.ts +3 -6
  68. package/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.request.d.ts +3 -3
  69. package/f-draggable/domain/is-connection-under-node/is-connection-under-node.execution.d.ts +3 -2
  70. package/f-draggable/domain/providers.d.ts +1 -1
  71. package/f-draggable/f-draggable-data-context.d.ts +1 -2
  72. package/f-draggable/node/connection-base-drag-handler.d.ts +2 -3
  73. package/f-draggable/node/connection-source.drag-handler.d.ts +3 -4
  74. package/f-draggable/node/connection-target.drag-handler.d.ts +3 -4
  75. package/f-draggable/node/connection.drag-handler.d.ts +3 -3
  76. package/f-draggable/node/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.d.ts +6 -3
  77. package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-common-node-move-restrictions/calculate-common-node-move-restrictions.execution.d.ts +13 -0
  78. package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-common-node-move-restrictions/calculate-common-node-move-restrictions.request.d.ts +5 -0
  79. package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-common-node-move-restrictions/index.d.ts +2 -0
  80. package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-node-move-restrictions/calculate-node-move-restrictions.execution.d.ts +12 -0
  81. package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/{get-node-move-restrictions/get-node-move-restrictions.request.d.ts → calculate-node-move-restrictions/calculate-node-move-restrictions.request.d.ts} +1 -1
  82. package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/calculate-node-move-restrictions/index.d.ts +2 -0
  83. package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/put-input-connection-handlers-to-array/put-input-connection-handlers-to-array.execution.d.ts +4 -6
  84. package/f-draggable/node/create-move-nodes-drag-model-from-selection/i-node-with-distance-restrictions.d.ts +4 -4
  85. package/f-draggable/node/create-move-nodes-drag-model-from-selection/index.d.ts +2 -1
  86. package/f-draggable/node/create-move-nodes-drag-model-from-selection/providers.d.ts +3 -2
  87. package/f-draggable/node/index.d.ts +2 -0
  88. package/f-draggable/node/line-alignment-preparation/index.d.ts +2 -0
  89. package/f-draggable/node/line-alignment-preparation/line-alignment-preparation.execution.d.ts +21 -0
  90. package/f-draggable/node/line-alignment-preparation/line-alignment-preparation.request.d.ts +2 -0
  91. package/f-draggable/node/line-alignment.drag-handler.d.ts +20 -0
  92. package/f-draggable/node/node-move-preparation/index.d.ts +0 -1
  93. package/f-draggable/node/node-move-preparation/node-move-preparation.execution.d.ts +4 -3
  94. package/f-draggable/node/node-move-preparation/providers.d.ts +1 -2
  95. package/f-draggable/node/node.drag-handler.d.ts +4 -7
  96. package/f-draggable/node/providers.d.ts +2 -1
  97. package/f-draggable/node-resize/node-resize-preparation/providers.d.ts +1 -1
  98. package/f-draggable/node-resize/providers.d.ts +1 -1
  99. package/f-draggable/providers.d.ts +1 -1
  100. package/f-line-alignment/f-line-alignment-base.d.ts +2 -8
  101. package/f-line-alignment/f-line-alignment.component.d.ts +6 -25
  102. package/f-node/providers.d.ts +1 -1
  103. package/f-storage/f-components-store.d.ts +2 -0
  104. package/f-storage/providers.d.ts +1 -1
  105. package/fesm2022/foblex-flow.mjs +638 -544
  106. package/fesm2022/foblex-flow.mjs.map +1 -1
  107. package/package.json +2 -2
  108. package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/get-node-move-restrictions.execution.mjs +0 -42
  109. package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/get-node-move-restrictions.request.mjs +0 -9
  110. package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/i-node-move-restrictions.mjs +0 -2
  111. package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/index.mjs +0 -4
  112. package/esm2022/f-draggable/node/node-move-preparation/node-move-preparation.validator.mjs +0 -39
  113. package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/get-node-move-restrictions.execution.d.ts +0 -12
  114. package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/i-node-move-restrictions.d.ts +0 -5
  115. package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/index.d.ts +0 -3
  116. package/f-draggable/node/node-move-preparation/node-move-preparation.validator.d.ts +0 -14
@@ -1,3 +1,2 @@
1
1
  import { NodeMovePreparationExecution } from './node-move-preparation.execution';
2
- import { NodeMovePreparationValidator } from './node-move-preparation.validator';
3
- export declare const NODE_MOVE_PREPARATION_PROVIDERS: (typeof NodeMovePreparationExecution | typeof NodeMovePreparationValidator)[];
2
+ export declare const NODE_MOVE_PREPARATION_PROVIDERS: (typeof NodeMovePreparationExecution)[];
@@ -1,16 +1,13 @@
1
- import { IPoint } from '@foblex/2d';
1
+ import { IMinMaxPoint, IPoint } from '@foblex/2d';
2
2
  import { IDraggableItem } from '../i-draggable-item';
3
- import { FDraggableDataContext } from '../f-draggable-data-context';
4
3
  import { FNodeBase } from '../../f-node';
5
4
  import { FComponentsStore } from '../../f-storage';
6
5
  export declare class NodeDragHandler implements IDraggableItem {
7
- private fDraggableDataContext;
8
- private fComponentsStore;
6
+ private _fComponentsStore;
9
7
  fNode: FNodeBase;
10
- minDistance: IPoint;
11
- maxDistance: IPoint;
8
+ restrictions: IMinMaxPoint;
12
9
  private readonly _onPointerDownPosition;
13
- constructor(fDraggableDataContext: FDraggableDataContext, fComponentsStore: FComponentsStore, fNode: FNodeBase, minDistance: IPoint, maxDistance: IPoint);
10
+ constructor(_fComponentsStore: FComponentsStore, fNode: FNodeBase, restrictions: IMinMaxPoint);
14
11
  onPointerMove(difference: IPoint): void;
15
12
  private _getPosition;
16
13
  private _getDifference;
@@ -1,2 +1,3 @@
1
1
  import { NodeMoveFinalizeExecution } from './node-move-finalize';
2
- export declare const NODE_PROVIDERS: (typeof NodeMoveFinalizeExecution | typeof import("./create-move-nodes-drag-model-from-selection").GetNodeMoveRestrictionsExecution | typeof import("./create-move-nodes-drag-model-from-selection").PutInputConnectionHandlersToArrayExecution | typeof import("./create-move-nodes-drag-model-from-selection").PutOutputConnectionHandlersToArrayExecution | typeof import("./create-move-nodes-drag-model-from-selection").CreateMoveNodesDragModelFromSelectionExecution | typeof import("./node-move-preparation").NodeMovePreparationExecution | typeof import("./node-move-preparation").NodeMovePreparationValidator | typeof import("./node-drag-to-parent-preparation").NodeDragToParentPreparationExecution | typeof import("./node-drag-to-parent-preparation").NodeDragToParentPreparationValidator | typeof import("./node-drag-to-parent-finalize").NodeDragToParentFinalizeExecution)[];
2
+ import { LineAlignmentPreparationExecution } from './line-alignment-preparation';
3
+ export declare const NODE_PROVIDERS: (typeof import("./create-move-nodes-drag-model-from-selection").CalculateCommonNodeMoveRestrictionsExecution | typeof import("./create-move-nodes-drag-model-from-selection").CalculateNodeMoveRestrictionsExecution | typeof import("./create-move-nodes-drag-model-from-selection").PutInputConnectionHandlersToArrayExecution | typeof import("./create-move-nodes-drag-model-from-selection").PutOutputConnectionHandlersToArrayExecution | typeof import("./create-move-nodes-drag-model-from-selection").CreateMoveNodesDragModelFromSelectionExecution | typeof LineAlignmentPreparationExecution | typeof NodeMoveFinalizeExecution | typeof import("./node-move-preparation").NodeMovePreparationExecution | typeof import("./node-drag-to-parent-preparation").NodeDragToParentPreparationExecution | typeof import("./node-drag-to-parent-preparation").NodeDragToParentPreparationValidator | typeof import("./node-drag-to-parent-finalize").NodeDragToParentFinalizeExecution)[];
@@ -1,3 +1,3 @@
1
1
  import { NodeResizePreparationExecution } from './node-resize-preparation.execution';
2
2
  import { NodeResizePreparationValidator } from './node-resize-preparation.validator';
3
- export declare const NODE_RESIZE_PREPARATION_PROVIDERS: (typeof NodeResizePreparationExecution | typeof NodeResizePreparationValidator)[];
3
+ export declare const NODE_RESIZE_PREPARATION_PROVIDERS: (typeof NodeResizePreparationValidator | typeof NodeResizePreparationExecution)[];
@@ -4,4 +4,4 @@ import { ApplyParentResizeRestrictionsExecution } from './apply-parent-resize-re
4
4
  import { CalculateChangedSizeExecution } from './calculate-changed-size';
5
5
  import { CalculateChangedPositionExecution } from './calculate-changed-position';
6
6
  import { GetNormalizedChildrenNodesRectExecution } from './get-normalized-children-nodes-rect';
7
- export declare const NODE_RESIZE_PROVIDERS: (typeof ApplyChildResizeRestrictionsExecution | typeof ApplyParentResizeRestrictionsExecution | typeof CalculateChangedPositionExecution | typeof CalculateChangedSizeExecution | typeof GetNormalizedChildrenNodesRectExecution | typeof GetNodeResizeRestrictionsExecution | typeof import("./node-resize-finalize").NodeResizeFinalizeExecution | typeof import("./node-resize-preparation").NodeResizePreparationExecution | typeof import("./node-resize-preparation").NodeResizePreparationValidator)[];
7
+ export declare const NODE_RESIZE_PROVIDERS: (typeof import("./node-resize-preparation").NodeResizePreparationValidator | typeof import("./node-resize-preparation").NodeResizePreparationExecution | typeof import("./node-resize-finalize").NodeResizeFinalizeExecution | typeof ApplyChildResizeRestrictionsExecution | typeof ApplyParentResizeRestrictionsExecution | typeof CalculateChangedPositionExecution | typeof CalculateChangedSizeExecution | typeof GetNormalizedChildrenNodesRectExecution | typeof GetNodeResizeRestrictionsExecution)[];
@@ -1 +1 @@
1
- export declare const F_DRAGGABLE_PROVIDERS: (typeof import("./domain").IsConnectionUnderNodeExecution | typeof import("./node").NodeMoveFinalizeExecution | typeof import("./connections").ReassignConnectionFinalizeExecution | typeof import("./connections").ReassignConnectionPreparationExecution | typeof import("./connections").CreateConnectionPreparationExecution | typeof import("./connections").GetInputUnderPointerExecution | typeof import("./connections").GetInputUnderPointerValidator | typeof import("./connections").CreateConnectionFinalizeExecution | typeof import("./connections").CreateConnectionDragHandlerExecution | typeof import("./connections").CreateConnectionFromOutletPreparationExecution | typeof import("./connections").GetCanBeConnectedOutputByOutletExecution | typeof import("./connections").GetCanBeConnectedOutputByOutletValidator | typeof import("./connections").CreateConnectionFromOutputPreparationExecution | typeof import("./connections").CreateConnectionFromOutputPreparationValidator | typeof import("./single-select").SingleSelectExecution | typeof import("./canvas").CanvasMoveFinalizeExecution | typeof import("./canvas").CanvasMovePreparationExecution | typeof import("./canvas").CanvasMovePreparationValidator | typeof import("./domain").GetNormalizedParentNodeRectExecution | typeof import("./domain").IsArrayHasParentNodeExecution | typeof import("../f-external-item").ExternalItemFinalizeExecution | typeof import("../f-external-item").ExternalItemPreparationExecution | typeof import("../f-external-item").ExternalItemPreparationValidator | typeof import("../f-external-item").PreventDefaultIsExternalItemExecution | typeof import("./node").GetNodeMoveRestrictionsExecution | typeof import("./node").PutInputConnectionHandlersToArrayExecution | typeof import("./node").PutOutputConnectionHandlersToArrayExecution | typeof import("./node").CreateMoveNodesDragModelFromSelectionExecution | typeof import("./node").NodeMovePreparationExecution | typeof import("./node").NodeMovePreparationValidator | typeof import("./node").NodeDragToParentPreparationExecution | typeof import("./node").NodeDragToParentPreparationValidator | typeof import("./node").NodeDragToParentFinalizeExecution | typeof import("./node-resize").ApplyChildResizeRestrictionsExecution | typeof import("./node-resize").ApplyParentResizeRestrictionsExecution | typeof import("./node-resize").CalculateChangedPositionExecution | typeof import("./node-resize").CalculateChangedSizeExecution | typeof import("./node-resize").GetNormalizedChildrenNodesRectExecution | typeof import("./node-resize").GetNodeResizeRestrictionsExecution | typeof import("./node-resize").NodeResizeFinalizeExecution | typeof import("./node-resize").NodeResizePreparationExecution | typeof import("./node-resize").NodeResizePreparationValidator | typeof import("../f-selection-area").SelectionAreaFinalizeExecution | typeof import("../f-selection-area").SelectionAreaFinalizeValidator | typeof import("../f-selection-area").SelectionAreaPreparationExecution | typeof import("../f-selection-area").SelectionAreaPreparationValidator | typeof import("@foblex/flow").CalculateFlowPointFromMinimapPointExecution | typeof import("@foblex/flow").MinimapDragFinalizeExecution | typeof import("@foblex/flow").MinimapDragFinalizeValidator | typeof import("@foblex/flow").MinimapDragPreparationExecution | typeof import("@foblex/flow").MinimapDragPreparationValidator | typeof import("@foblex/flow").MinimapDrawNodesExecution | typeof import("@foblex/flow").MinimapCalculateSvgScaleAndViewBoxExecution | typeof import("@foblex/flow").MinimapCalculateViewBoxExecution)[];
1
+ export declare const F_DRAGGABLE_PROVIDERS: (typeof import("./node").CalculateCommonNodeMoveRestrictionsExecution | typeof import("./node").CalculateNodeMoveRestrictionsExecution | typeof import("./node").PutInputConnectionHandlersToArrayExecution | typeof import("./node").PutOutputConnectionHandlersToArrayExecution | typeof import("./node").CreateMoveNodesDragModelFromSelectionExecution | typeof import("./node").LineAlignmentPreparationExecution | typeof import("./node").NodeMoveFinalizeExecution | typeof import("./node").NodeMovePreparationExecution | typeof import("./node").NodeDragToParentPreparationExecution | typeof import("./node").NodeDragToParentPreparationValidator | typeof import("./node").NodeDragToParentFinalizeExecution | typeof import("./single-select").SingleSelectExecution | typeof import("./node-resize").NodeResizePreparationValidator | typeof import("./node-resize").NodeResizePreparationExecution | typeof import("./node-resize").NodeResizeFinalizeExecution | typeof import("./connections").CreateConnectionPreparationExecution | typeof import("./connections").CreateConnectionDragHandlerExecution | typeof import("./connections").CreateConnectionFinalizeExecution | typeof import("./connections").GetInputUnderPointerExecution | typeof import("./connections").ReassignConnectionPreparationExecution | typeof import("./connections").ReassignConnectionFinalizeExecution | typeof import("./canvas").CanvasMoveFinalizeExecution | typeof import("./canvas").CanvasMovePreparationExecution | typeof import("./canvas").CanvasMovePreparationValidator | typeof import("./connections").GetInputUnderPointerValidator | typeof import("./connections").CreateConnectionFromOutletPreparationExecution | typeof import("./connections").GetCanBeConnectedOutputByOutletExecution | typeof import("./connections").GetCanBeConnectedOutputByOutletValidator | typeof import("./connections").CreateConnectionFromOutputPreparationExecution | typeof import("./connections").CreateConnectionFromOutputPreparationValidator | typeof import("./domain").GetNormalizedParentNodeRectExecution | typeof import("./domain").IsArrayHasParentNodeExecution | typeof import("./domain").IsConnectionUnderNodeExecution | typeof import("../f-external-item").ExternalItemFinalizeExecution | typeof import("../f-external-item").ExternalItemPreparationExecution | typeof import("../f-external-item").ExternalItemPreparationValidator | typeof import("../f-external-item").PreventDefaultIsExternalItemExecution | typeof import("./node-resize").ApplyChildResizeRestrictionsExecution | typeof import("./node-resize").ApplyParentResizeRestrictionsExecution | typeof import("./node-resize").CalculateChangedPositionExecution | typeof import("./node-resize").CalculateChangedSizeExecution | typeof import("./node-resize").GetNormalizedChildrenNodesRectExecution | typeof import("./node-resize").GetNodeResizeRestrictionsExecution | typeof import("../f-selection-area").SelectionAreaFinalizeExecution | typeof import("../f-selection-area").SelectionAreaFinalizeValidator | typeof import("../f-selection-area").SelectionAreaPreparationExecution | typeof import("../f-selection-area").SelectionAreaPreparationValidator | typeof import("@foblex/flow").CalculateFlowPointFromMinimapPointExecution | typeof import("@foblex/flow").MinimapDragFinalizeExecution | typeof import("@foblex/flow").MinimapDragFinalizeValidator | typeof import("@foblex/flow").MinimapDragPreparationExecution | typeof import("@foblex/flow").MinimapDragPreparationValidator | typeof import("@foblex/flow").MinimapDrawNodesExecution | typeof import("@foblex/flow").MinimapCalculateSvgScaleAndViewBoxExecution | typeof import("@foblex/flow").MinimapCalculateViewBoxExecution)[];
@@ -1,16 +1,10 @@
1
- import { IPoint } from '@foblex/2d';
2
1
  import { InjectionToken } from '@angular/core';
3
- import { ILineAlignmentResult } from './domain';
4
- import { FNodeBase } from '../f-node';
5
2
  import { IHasHostElement } from '../i-has-host-element';
6
3
  import * as i0 from "@angular/core";
7
4
  export declare const F_LINE_ALIGNMENT: InjectionToken<FLineAlignmentBase>;
8
5
  export declare abstract class FLineAlignmentBase implements IHasHostElement {
9
- abstract hostElement: HTMLElement | SVGElement;
10
- abstract initialize(allNodes: FNodeBase[], currentNodes: FNodeBase[]): void;
11
- abstract findNearestCoordinate(difference: IPoint): ILineAlignmentResult;
12
- abstract handle(difference: IPoint): void;
13
- abstract complete(): void;
6
+ abstract hostElement: HTMLElement;
7
+ abstract fAlignThreshold: number;
14
8
  static ɵfac: i0.ɵɵFactoryDeclaration<FLineAlignmentBase, never>;
15
9
  static ɵdir: i0.ɵɵDirectiveDeclaration<FLineAlignmentBase, never, never, {}, {}, never, never, false, never>;
16
10
  }
@@ -1,32 +1,13 @@
1
- import { AfterViewInit, ElementRef } from '@angular/core';
2
- import { IPoint } from '@foblex/2d';
3
- import { ILineAlignmentResult } from './domain';
1
+ import { OnDestroy, OnInit } from '@angular/core';
4
2
  import { FLineAlignmentBase } from './f-line-alignment-base';
5
- import { FDraggableDataContext } from '../f-draggable';
6
- import { FNodeBase } from '../f-node';
7
- import { BrowserService } from '@foblex/platform';
8
3
  import * as i0 from "@angular/core";
9
- export declare class FLineAlignmentComponent extends FLineAlignmentBase implements AfterViewInit {
10
- private elementReference;
11
- private fDraggableDataContext;
12
- private DEBOUNCE_TIME;
4
+ export declare class FLineAlignmentComponent extends FLineAlignmentBase implements OnInit, OnDestroy {
13
5
  fAlignThreshold: number;
14
- get hostElement(): HTMLElement;
15
- private lineService;
16
- private size;
17
- private draggedNodeRect;
18
- private rects;
19
6
  private _fMediator;
20
- private _fCanvas;
21
- private _debounceTimer;
22
- private get _transform();
23
- constructor(elementReference: ElementRef<HTMLElement>, fDraggableDataContext: FDraggableDataContext, fBrowser: BrowserService);
24
- ngAfterViewInit(): void;
25
- initialize(allNodes: FNodeBase[], currentNodes: FNodeBase[]): void;
26
- handle(difference: IPoint): void;
27
- private drawIntersectingLines;
28
- findNearestCoordinate(difference: IPoint): ILineAlignmentResult;
29
- complete(): void;
7
+ private _elementReference;
8
+ get hostElement(): HTMLElement;
9
+ ngOnInit(): void;
10
+ ngOnDestroy(): void;
30
11
  static ɵfac: i0.ɵɵFactoryDeclaration<FLineAlignmentComponent, never>;
31
12
  static ɵcmp: i0.ɵɵComponentDeclaration<FLineAlignmentComponent, "f-line-alignment", ["fComponent"], { "fAlignThreshold": { "alias": "fAlignThreshold"; "required": false; }; }, {}, never, never, false, never>;
32
13
  }
@@ -2,4 +2,4 @@ import { FNodeDirective } from './f-node.directive';
2
2
  import { FResizeHandleDirective } from './f-resize-handle';
3
3
  import { FGroupDirective } from './f-group.directive';
4
4
  import { FDragHandleDirective } from './f-drag-handle.directive';
5
- export declare const F_NODE_PROVIDERS: (typeof FResizeHandleDirective | typeof FDragHandleDirective | typeof FGroupDirective | typeof FNodeDirective)[];
5
+ export declare const F_NODE_PROVIDERS: (typeof FNodeDirective | typeof FGroupDirective | typeof FResizeHandleDirective | typeof FDragHandleDirective)[];
@@ -6,6 +6,7 @@ import { FNodeBase } from '../f-node';
6
6
  import { FConnectorBase } from '../f-connectors';
7
7
  import { FDraggableBase } from '../f-draggable';
8
8
  import { FChannel } from '../reactivity';
9
+ import { FLineAlignmentBase } from '../f-line-alignment';
9
10
  import * as i0 from "@angular/core";
10
11
  export declare class FComponentsStore {
11
12
  readonly transformChanges$: FChannel;
@@ -24,6 +25,7 @@ export declare class FComponentsStore {
24
25
  fInputs: FConnectorBase[];
25
26
  fOutlets: FConnectorBase[];
26
27
  fDraggable: FDraggableBase | undefined;
28
+ fLineAlignment: FLineAlignmentBase | undefined;
27
29
  addComponent<T>(collection: T[], component: T): void;
28
30
  removeComponent<T>(collection: T[], component: T): void;
29
31
  countChanged(): void;
@@ -4,4 +4,4 @@ import { FComponentsStore } from './f-components-store';
4
4
  import { ListenCountChangesExecution } from './features/listen-count-changes';
5
5
  import { ListenTransformChangesExecution } from './features/listen-transform-changes';
6
6
  import { NotifyTransformChangedExecution } from './features/notify-transform-changed';
7
- export declare const F_STORAGE_PROVIDERS: (typeof FComponentsStore | typeof NotifyDataChangedExecution | typeof ListenDataChangesExecution | typeof ListenCountChangesExecution | typeof ListenTransformChangesExecution | typeof NotifyTransformChangedExecution)[];
7
+ export declare const F_STORAGE_PROVIDERS: (typeof FComponentsStore | typeof NotifyDataChangedExecution | typeof ListenCountChangesExecution | typeof ListenDataChangesExecution | typeof ListenTransformChangesExecution | typeof NotifyTransformChangedExecution)[];