@foblex/flow 17.8.5 → 17.8.6

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 (111) hide show
  1. package/domain/drag-rect-cache.d.ts +8 -0
  2. package/domain/f-background/providers.d.ts +1 -1
  3. package/domain/f-canvas/providers.d.ts +1 -1
  4. package/domain/f-connection/calculate-connection-line-by-behavior/calculate-connection-line-by-behavior-request.d.ts +7 -7
  5. package/domain/f-connection/calculate-connection-line-by-behavior/calculate-connection-line-by-behavior.d.ts +37 -3
  6. package/domain/f-connection/calculate-connection-line-by-behavior/index.d.ts +4 -3
  7. package/domain/f-connection/calculate-connection-line-by-behavior/models/calculate-behavior-request.d.ts +8 -0
  8. package/domain/f-connection/calculate-connection-line-by-behavior/{fixed-center-behavior.d.ts → utils/fixed-center-behavior.d.ts} +2 -2
  9. package/domain/f-connection/calculate-connection-line-by-behavior/{fixed-outbound-behavior.d.ts → utils/fixed-outbound-behavior.d.ts} +2 -2
  10. package/domain/f-connection/calculate-connection-line-by-behavior/{floating-behavior.d.ts → utils/floating-behavior.d.ts} +2 -2
  11. package/domain/f-connection/providers.d.ts +2 -2
  12. package/domain/f-connection/redraw-connections/index.d.ts +1 -1
  13. package/domain/f-connection/redraw-connections/{redraw-connections.execution.d.ts → redraw-connections.d.ts} +3 -3
  14. package/domain/f-draggable/emit-selection-change-event/emit-selection-change-event.execution.d.ts +1 -1
  15. package/domain/f-flow/providers.d.ts +1 -1
  16. package/domain/f-line-alignment/add-line-alignment-to-store/add-line-alignment-to-store-request.d.ts +2 -2
  17. package/domain/f-line-alignment/add-line-alignment-to-store/{add-line-alignment-to-store.execution.d.ts → add-line-alignment-to-store.d.ts} +4 -4
  18. package/domain/f-line-alignment/add-line-alignment-to-store/index.d.ts +1 -1
  19. package/domain/f-line-alignment/providers.d.ts +3 -3
  20. package/domain/f-line-alignment/remove-line-alignment-from-store/index.d.ts +1 -1
  21. package/domain/f-line-alignment/remove-line-alignment-from-store/{remove-line-alignment-from-store.execution.d.ts → remove-line-alignment-from-store.d.ts} +4 -4
  22. package/domain/f-node/get-parent-nodes/get-parent-nodes.d.ts +1 -1
  23. package/domain/f-node/get-parent-nodes/get-parent-nodes.request.d.ts +2 -2
  24. package/domain/f-node/remove-node-from-store/remove-node-from-store-request.d.ts +2 -2
  25. package/domain/f-node/remove-node-from-store/remove-node-from-store.d.ts +1 -1
  26. package/domain/f-zoom/providers.d.ts +1 -1
  27. package/domain/index.d.ts +1 -0
  28. package/domain/providers.d.ts +4 -3
  29. package/domain/update-item-and-children-layers/move-front-elements-before-target-element/index.d.ts +2 -2
  30. package/domain/update-item-and-children-layers/move-front-elements-before-target-element/{move-front-elements-before-target-element.request.d.ts → move-front-elements-before-target-element-request.d.ts} +4 -4
  31. package/domain/update-item-and-children-layers/move-front-elements-before-target-element/{move-front-elements-before-target-element.execution.d.ts → move-front-elements-before-target-element.d.ts} +4 -4
  32. package/esm2022/domain/drag-rect-cache.mjs +19 -0
  33. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/calculate-connection-line-by-behavior-request.mjs +4 -4
  34. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/calculate-connection-line-by-behavior.mjs +126 -13
  35. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/index.mjs +5 -4
  36. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/models/calculate-behavior-request.mjs +2 -0
  37. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/utils/fixed-center-behavior.mjs +12 -0
  38. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/utils/fixed-outbound-behavior.mjs +31 -0
  39. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/utils/floating-behavior.mjs +22 -0
  40. package/esm2022/domain/f-connection/providers.mjs +3 -3
  41. package/esm2022/domain/f-connection/redraw-connections/index.mjs +2 -2
  42. package/esm2022/domain/f-connection/redraw-connections/redraw-connections.mjs +75 -0
  43. package/esm2022/domain/f-draggable/emit-selection-change-event/emit-selection-change-event-request.mjs +1 -1
  44. package/esm2022/domain/f-draggable/emit-selection-change-event/emit-selection-change-event.execution.mjs +2 -2
  45. package/esm2022/domain/f-line-alignment/add-line-alignment-to-store/add-line-alignment-to-store-request.mjs +4 -4
  46. package/esm2022/domain/f-line-alignment/add-line-alignment-to-store/add-line-alignment-to-store.mjs +25 -0
  47. package/esm2022/domain/f-line-alignment/add-line-alignment-to-store/index.mjs +2 -2
  48. package/esm2022/domain/f-line-alignment/providers.mjs +4 -7
  49. package/esm2022/domain/f-line-alignment/remove-line-alignment-from-store/index.mjs +2 -2
  50. package/esm2022/domain/f-line-alignment/remove-line-alignment-from-store/remove-line-alignment-from-store.mjs +25 -0
  51. package/esm2022/domain/f-node/calculate-nodes-bounding-box-normalized-position/calculate-nodes-bounding-box-normalized-position.mjs +1 -1
  52. package/esm2022/domain/f-node/fit-to-child-nodes-and-groups/fit-to-child-nodes-and-groups-request.mjs +1 -1
  53. package/esm2022/domain/f-node/get-parent-nodes/get-parent-nodes.mjs +8 -8
  54. package/esm2022/domain/f-node/get-parent-nodes/get-parent-nodes.request.mjs +4 -4
  55. package/esm2022/domain/f-node/remove-node-from-store/remove-node-from-store-request.mjs +4 -4
  56. package/esm2022/domain/f-node/remove-node-from-store/remove-node-from-store.mjs +3 -3
  57. package/esm2022/domain/index.mjs +2 -1
  58. package/esm2022/domain/providers.mjs +5 -5
  59. package/esm2022/domain/update-item-and-children-layers/move-front-elements-before-target-element/index.mjs +3 -3
  60. package/esm2022/domain/update-item-and-children-layers/move-front-elements-before-target-element/move-front-elements-before-target-element-request.mjs +15 -0
  61. package/esm2022/domain/update-item-and-children-layers/move-front-elements-before-target-element/move-front-elements-before-target-element.mjs +34 -0
  62. package/esm2022/f-connection/common/domain/adaptive-curve-builder.mjs +201 -0
  63. package/esm2022/f-connection/common/domain/index.mjs +2 -1
  64. package/esm2022/f-connection/common/e-f-connection-connectable-side.mjs +12 -0
  65. package/esm2022/f-connection/common/e-f-connection-type.mjs +2 -1
  66. package/esm2022/f-connection/common/f-connection-base.mjs +28 -5
  67. package/esm2022/f-connection/common/index.mjs +2 -1
  68. package/esm2022/f-connection/f-connection/f-connection.component.mjs +13 -3
  69. package/esm2022/f-connection/f-connection-builder/f-connection-factory.mjs +9 -17
  70. package/esm2022/f-connection/f-connection-content/f-connection-content.mjs +10 -4
  71. package/esm2022/f-connection/f-connection-content/polyline-content-engine/polyline-content-layout-engine.mjs +4 -5
  72. package/esm2022/f-connection/f-connection-content/polyline-content-engine/polyline-content-place.mjs +3 -2
  73. package/esm2022/f-connection/f-connection-for-create/f-connection-for-create.component.mjs +14 -4
  74. package/esm2022/f-connection/f-snap-connection/f-snap-connection.component.mjs +14 -4
  75. package/esm2022/f-draggable/f-connection/f-create-connection/f-create-connection.drag-handler.mjs +5 -5
  76. package/esm2022/f-draggable/f-connection/f-reassign-connection/f-reassign-source.drag-handler.mjs +5 -5
  77. package/esm2022/f-draggable/f-connection/f-reassign-connection/f-reassign-target.drag-handler.mjs +5 -5
  78. package/esm2022/f-draggable/f-draggable.directive.mjs +3 -2
  79. package/esm2022/f-draggable/f-node-move/connection-drag-handlers/base-connection.drag-handler.mjs +3 -3
  80. package/esm2022/f-draggable/f-node-move/move-preparation/f-node-move-preparation.execution.mjs +1 -1
  81. package/esm2022/f-flow/f-flow.component.mjs +2 -2
  82. package/f-backgroud/providers.d.ts +1 -1
  83. package/f-connection/common/domain/adaptive-curve-builder.d.ts +102 -0
  84. package/f-connection/common/domain/index.d.ts +1 -0
  85. package/f-connection/common/e-f-connection-connectable-side.d.ts +10 -0
  86. package/f-connection/common/e-f-connection-type.d.ts +2 -1
  87. package/f-connection/common/f-connection-base.d.ts +14 -2
  88. package/f-connection/common/index.d.ts +1 -0
  89. package/f-connection/f-connection/f-connection.component.d.ts +4 -2
  90. package/f-connection/f-connection-builder/f-connection-factory.d.ts +2 -4
  91. package/f-connection/f-connection-content/f-connection-content.d.ts +2 -2
  92. package/f-connection/f-connection-for-create/f-connection-for-create.component.d.ts +4 -2
  93. package/f-connection/f-snap-connection/f-snap-connection.component.d.ts +4 -2
  94. package/f-connection/providers.d.ts +1 -1
  95. package/f-connectors/providers.d.ts +1 -1
  96. package/f-draggable/f-connection/providers.d.ts +1 -1
  97. package/f-draggable/f-drop-to-group/providers.d.ts +1 -1
  98. package/f-draggable/providers.d.ts +1 -1
  99. package/f-minimap/providers.d.ts +1 -1
  100. package/f-node/providers.d.ts +1 -1
  101. package/fesm2022/foblex-flow.mjs +502 -113
  102. package/fesm2022/foblex-flow.mjs.map +1 -1
  103. package/package.json +1 -1
  104. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/fixed-center-behavior.mjs +0 -12
  105. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/fixed-outbound-behavior.mjs +0 -31
  106. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/floating-behavior.mjs +0 -22
  107. package/esm2022/domain/f-connection/redraw-connections/redraw-connections.execution.mjs +0 -73
  108. package/esm2022/domain/f-line-alignment/add-line-alignment-to-store/add-line-alignment-to-store.execution.mjs +0 -25
  109. package/esm2022/domain/f-line-alignment/remove-line-alignment-from-store/remove-line-alignment-from-store.execution.mjs +0 -25
  110. package/esm2022/domain/update-item-and-children-layers/move-front-elements-before-target-element/move-front-elements-before-target-element.execution.mjs +0 -34
  111. package/esm2022/domain/update-item-and-children-layers/move-front-elements-before-target-element/move-front-elements-before-target-element.request.mjs +0 -15
@@ -0,0 +1,8 @@
1
+ import { IRect } from '@foblex/2d';
2
+ export declare class DragRectCache {
3
+ private static _cache;
4
+ static fromElement(element: HTMLElement | SVGElement): IRect;
5
+ static set(element: HTMLElement | SVGElement): void;
6
+ static invalidate(element: HTMLElement | SVGElement): void;
7
+ static invalidateAll(): void;
8
+ }
@@ -6,4 +6,4 @@ import { SetBackgroundTransformExecution } from './set-background-transform';
6
6
  * This file exports all the background-related features for the F-Flow domain.
7
7
  * It includes executions for adding, removing, and setting the background in the FComponentsStore.
8
8
  */
9
- export declare const F_BACKGROUND_FEATURES: (typeof AddBackgroundToStoreExecution | typeof AddPatternToBackgroundExecution | typeof RemoveBackgroundFromStoreExecution | typeof SetBackgroundTransformExecution)[];
9
+ export declare const F_BACKGROUND_FEATURES: (typeof AddPatternToBackgroundExecution | typeof AddBackgroundToStoreExecution | typeof RemoveBackgroundFromStoreExecution | typeof SetBackgroundTransformExecution)[];
@@ -12,4 +12,4 @@ import { RedrawCanvasWithAnimationExecution } from './redraw-canvas-with-animati
12
12
  /**
13
13
  * This file exports all the canvas-related executions that can be used in the FCanvas feature.
14
14
  */
15
- export declare const F_CANVAS_FEATURES: (typeof AddCanvasToStoreExecution | typeof CenterGroupOrNodeExecution | typeof FitToFlowExecution | typeof GetCanvasExecution | typeof InputCanvasPositionExecution | typeof InputCanvasScaleExecution | typeof RedrawCanvasWithAnimationExecution | typeof RemoveCanvasFromStoreExecution | typeof ResetScaleExecution | typeof ResetScaleAndCenterExecution | typeof UpdateScaleExecution)[];
15
+ export declare const F_CANVAS_FEATURES: (typeof ResetScaleAndCenterExecution | typeof FitToFlowExecution | typeof CenterGroupOrNodeExecution | typeof AddCanvasToStoreExecution | typeof GetCanvasExecution | typeof InputCanvasPositionExecution | typeof InputCanvasScaleExecution | typeof RedrawCanvasWithAnimationExecution | typeof RemoveCanvasFromStoreExecution | typeof ResetScaleExecution | typeof UpdateScaleExecution)[];
@@ -1,12 +1,12 @@
1
- import { EFConnectionBehavior } from '../../../f-connection';
1
+ import { FConnectionBase } from '../../../f-connection';
2
2
  import { EFConnectableSide } from '../../../f-connectors';
3
3
  import { IRoundedRect } from '@foblex/2d';
4
4
  export declare class CalculateConnectionLineByBehaviorRequest {
5
- sourceRect: IRoundedRect;
6
- targetRect: IRoundedRect;
7
- behavior: EFConnectionBehavior | string;
8
- sourceConnectableSide: EFConnectableSide;
9
- targetConnectableSide: EFConnectableSide;
5
+ readonly sourceRect: IRoundedRect;
6
+ readonly targetRect: IRoundedRect;
7
+ readonly connection: FConnectionBase;
8
+ readonly sourceConnectableSide: EFConnectableSide;
9
+ readonly targetConnectableSide: EFConnectableSide;
10
10
  static readonly fToken: unique symbol;
11
- constructor(sourceRect: IRoundedRect, targetRect: IRoundedRect, behavior: EFConnectionBehavior | string, sourceConnectableSide: EFConnectableSide, targetConnectableSide: EFConnectableSide);
11
+ constructor(sourceRect: IRoundedRect, targetRect: IRoundedRect, connection: FConnectionBase, sourceConnectableSide: EFConnectableSide, targetConnectableSide: EFConnectableSide);
12
12
  }
@@ -3,11 +3,45 @@ import { IExecution } from '@foblex/mediator';
3
3
  import { ILine } from '@foblex/2d';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
6
- * Execution that calculates the connection line based on the behavior.
6
+ * Calculates connection lines based on behavior rules.
7
+ * It determines which sides of the source and target should connect,
8
+ * then delegates to a registered behavior handler.
7
9
  */
8
10
  export declare class CalculateConnectionLineByBehavior implements IExecution<CalculateConnectionLineByBehaviorRequest, ILine> {
9
- private _handlers;
10
- handle(payload: CalculateConnectionLineByBehaviorRequest): ILine;
11
+ /**
12
+ * Main execution entry point.
13
+ *
14
+ * @param request The request containing source, target, and connection details.
15
+ * @returns A calculated connection line (ILine).
16
+ */
17
+ handle(request: CalculateConnectionLineByBehaviorRequest): ILine;
18
+ /**
19
+ * Computes the directional deltas between two rectangles.
20
+ */
21
+ private _calculateDirectionalVectors;
22
+ /**
23
+ * Determines the side for the source element.
24
+ */
25
+ private _determineSourceSide;
26
+ /**
27
+ * Determines the side for the target element.
28
+ */
29
+ private _determineTargetSide;
30
+ /**
31
+ * Resolves which side of a shape to connect to based on direction, fallback, and connection mode.
32
+ *
33
+ * @param requestedSide The side mode (e.g. CALCULATE, CALCULATE_HORIZONTAL, FIXED, etc.).
34
+ * @param deltaX Difference in X between source and target.
35
+ * @param deltaY Difference in Y between source and target.
36
+ * @param fallbackSide The default fallback side if calculation is ambiguous.
37
+ */
38
+ private _resolveConnectableSide;
39
+ /**
40
+ * Returns the appropriate handler for the given connection behavior.
41
+ *
42
+ * @throws Error if no handler is registered for the behavior.
43
+ */
44
+ private _getBehaviorHandler;
11
45
  static ɵfac: i0.ɵɵFactoryDeclaration<CalculateConnectionLineByBehavior, never>;
12
46
  static ɵprov: i0.ɵɵInjectableDeclaration<CalculateConnectionLineByBehavior>;
13
47
  }
@@ -1,5 +1,6 @@
1
1
  export * from './calculate-connection-line-by-behavior';
2
2
  export * from './calculate-connection-line-by-behavior-request';
3
- export * from './fixed-center-behavior';
4
- export * from './fixed-outbound-behavior';
5
- export * from './floating-behavior';
3
+ export * from './models/calculate-behavior-request';
4
+ export * from './utils/fixed-center-behavior';
5
+ export * from './utils/fixed-outbound-behavior';
6
+ export * from './utils/floating-behavior';
@@ -0,0 +1,8 @@
1
+ import { IRoundedRect } from '@foblex/2d';
2
+ import { EFConnectableSide } from '../../../../f-connectors';
3
+ export interface CalculateBehaviorRequest {
4
+ sourceRect: IRoundedRect;
5
+ targetRect: IRoundedRect;
6
+ sourceConnectableSide: EFConnectableSide;
7
+ targetConnectableSide: EFConnectableSide;
8
+ }
@@ -1,8 +1,8 @@
1
1
  import { ILine } from '@foblex/2d';
2
- import { CalculateConnectionLineByBehaviorRequest } from './calculate-connection-line-by-behavior-request';
2
+ import { CalculateBehaviorRequest } from '../models/calculate-behavior-request';
3
3
  /**
4
4
  * Fixed center behavior calculates the connection line
5
5
  * It constructs a line between the gravity centers of the connector rectangles
6
6
  * @param payload
7
7
  */
8
- export declare function fixedCenterBehavior({ sourceRect, targetRect, }: CalculateConnectionLineByBehaviorRequest): ILine;
8
+ export declare function fixedCenterBehavior({ sourceRect, targetRect }: CalculateBehaviorRequest): ILine;
@@ -1,8 +1,8 @@
1
1
  import { ILine } from '@foblex/2d';
2
- import { CalculateConnectionLineByBehaviorRequest } from './calculate-connection-line-by-behavior-request';
2
+ import { CalculateBehaviorRequest } from '../models/calculate-behavior-request';
3
3
  /**
4
4
  * Fixed outbound behavior calculates the connection line
5
5
  * It constructs a line between the specified sides of the output and input rectangles
6
6
  * @param payload
7
7
  */
8
- export declare function fixedOutboundBehavior({ sourceRect, sourceConnectableSide, targetRect, targetConnectableSide, }: CalculateConnectionLineByBehaviorRequest): ILine;
8
+ export declare function fixedOutboundBehavior({ sourceRect, sourceConnectableSide, targetRect, targetConnectableSide, }: CalculateBehaviorRequest): ILine;
@@ -1,8 +1,8 @@
1
1
  import { ILine } from '@foblex/2d';
2
- import { CalculateConnectionLineByBehaviorRequest } from './calculate-connection-line-by-behavior-request';
2
+ import { CalculateBehaviorRequest } from '../models/calculate-behavior-request';
3
3
  /**
4
4
  * Floating behavior calculates the connection line
5
5
  * It constructs a line between the intersections of the connectors rectangles and line from the centers of the connector rectangles
6
6
  * @param payload
7
7
  */
8
- export declare function floatingBehavior({ sourceRect, targetRect, }: CalculateConnectionLineByBehaviorRequest): ILine;
8
+ export declare function floatingBehavior({ sourceRect, targetRect }: CalculateBehaviorRequest): ILine;
@@ -7,9 +7,9 @@ import { RemoveConnectionFromStoreExecution } from './remove-connection-from-sto
7
7
  import { RemoveSnapConnectionFromStoreExecution } from './remove-snap-connection-from-store';
8
8
  import { AddConnectionMarkerToStoreExecution } from './add-connection-marker-to-store';
9
9
  import { RemoveConnectionMarkerFromStoreExecution } from './remove-connection-marker-from-store';
10
- import { RedrawConnectionsExecution } from './redraw-connections';
10
+ import { RedrawConnections } from './redraw-connections';
11
11
  import { CalculateConnectionLineByBehavior } from './calculate-connection-line-by-behavior';
12
12
  /**
13
13
  * This file exports all the connection-related features for the F-Flow domain.
14
14
  */
15
- export declare const F_CONNECTION_FEATURES: (typeof AddConnectionForCreateToStoreExecution | typeof AddConnectionMarkerToStoreExecution | typeof AddConnectionToStoreExecution | typeof AddSnapConnectionToStoreExecution | typeof CreateConnectionMarkersExecution | typeof CalculateConnectionLineByBehavior | typeof RedrawConnectionsExecution | typeof RemoveConnectionForCreateFromStoreExecution | typeof RemoveConnectionFromStoreExecution | typeof RemoveConnectionMarkerFromStoreExecution | typeof RemoveSnapConnectionFromStoreExecution)[];
15
+ export declare const F_CONNECTION_FEATURES: (typeof RemoveConnectionFromStoreExecution | typeof AddConnectionForCreateToStoreExecution | typeof AddConnectionMarkerToStoreExecution | typeof AddConnectionToStoreExecution | typeof AddSnapConnectionToStoreExecution | typeof CreateConnectionMarkersExecution | typeof CalculateConnectionLineByBehavior | typeof RedrawConnections | typeof RemoveConnectionForCreateFromStoreExecution | typeof RemoveConnectionMarkerFromStoreExecution | typeof RemoveSnapConnectionFromStoreExecution)[];
@@ -1,2 +1,2 @@
1
- export * from './redraw-connections.execution';
1
+ export * from './redraw-connections';
2
2
  export * from './redraw-connections-request';
@@ -6,7 +6,7 @@ import * as i0 from "@angular/core";
6
6
  * It resets connectors, sets markers for temporary and snap connections,
7
7
  * and sets up connections based on the stored outputs and inputs.
8
8
  */
9
- export declare class RedrawConnectionsExecution implements IExecution<RedrawConnectionsRequest, void> {
9
+ export declare class RedrawConnections implements IExecution<RedrawConnectionsRequest, void> {
10
10
  private readonly _mediator;
11
11
  private readonly _store;
12
12
  handle(_request: RedrawConnectionsRequest): void;
@@ -16,6 +16,6 @@ export declare class RedrawConnectionsExecution implements IExecution<RedrawConn
16
16
  private _setupConnection;
17
17
  private _getLine;
18
18
  private _setMarkers;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<RedrawConnectionsExecution, never>;
20
- static ɵprov: i0.ɵɵInjectableDeclaration<RedrawConnectionsExecution>;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<RedrawConnections, never>;
20
+ static ɵprov: i0.ɵɵInjectableDeclaration<RedrawConnections>;
21
21
  }
@@ -10,7 +10,7 @@ export declare class EmitSelectionChangeEventExecution implements IExecution<Emi
10
10
  private readonly _store;
11
11
  private get _fSelectionChange();
12
12
  private readonly _dragContext;
13
- handle(request: EmitSelectionChangeEventRequest): void;
13
+ handle(_request: EmitSelectionChangeEventRequest): void;
14
14
  private _getSelection;
15
15
  private _emitSelectionChange;
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<EmitSelectionChangeEventExecution, never>;
@@ -7,4 +7,4 @@ import { GetFlowExecution } from './get-flow';
7
7
  * This includes adding, retrieving, and removing the Flow,
8
8
  * as well as getting the Flow host element and its state.
9
9
  */
10
- export declare const F_FLOW_FEATURES: (typeof RemoveFlowFromStoreExecution | typeof import("./get-flow-state").GetFlowStateExecution | typeof import("./get-flow-state").GetFlowStateNodesExecution | typeof import("./get-flow-state").GetFlowStateConnectionsExecution | typeof GetFlowHostElementExecution | typeof GetFlowExecution | typeof AddFlowToStoreExecution)[];
10
+ export declare const F_FLOW_FEATURES: (typeof AddFlowToStoreExecution | typeof GetFlowExecution | typeof GetFlowHostElementExecution | typeof import("./get-flow-state").GetFlowStateExecution | typeof import("./get-flow-state").GetFlowStateNodesExecution | typeof import("./get-flow-state").GetFlowStateConnectionsExecution | typeof RemoveFlowFromStoreExecution)[];
@@ -1,6 +1,6 @@
1
1
  import { FLineAlignmentBase } from '../../../f-line-alignment';
2
2
  export declare class AddLineAlignmentToStoreRequest {
3
- fComponent: FLineAlignmentBase;
3
+ readonly instance: FLineAlignmentBase;
4
4
  static readonly fToken: unique symbol;
5
- constructor(fComponent: FLineAlignmentBase);
5
+ constructor(instance: FLineAlignmentBase);
6
6
  }
@@ -4,9 +4,9 @@ import * as i0 from "@angular/core";
4
4
  /**
5
5
  * Execution that adds a line alignment to the FComponentsStore.
6
6
  */
7
- export declare class AddLineAlignmentToStoreExecution implements IExecution<AddLineAlignmentToStoreRequest, void> {
7
+ export declare class AddLineAlignmentToStore implements IExecution<AddLineAlignmentToStoreRequest, void> {
8
8
  private readonly _store;
9
- handle(request: AddLineAlignmentToStoreRequest): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<AddLineAlignmentToStoreExecution, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<AddLineAlignmentToStoreExecution>;
9
+ handle({ instance }: AddLineAlignmentToStoreRequest): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<AddLineAlignmentToStore, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<AddLineAlignmentToStore>;
12
12
  }
@@ -1,2 +1,2 @@
1
- export * from './add-line-alignment-to-store.execution';
1
+ export * from './add-line-alignment-to-store';
2
2
  export * from './add-line-alignment-to-store-request';
@@ -1,8 +1,8 @@
1
- import { AddLineAlignmentToStoreExecution } from './add-line-alignment-to-store';
2
- import { RemoveLineAlignmentFromStoreExecution } from './remove-line-alignment-from-store';
1
+ import { AddLineAlignmentToStore } from './add-line-alignment-to-store';
2
+ import { RemoveLineAlignmentFromStore } from './remove-line-alignment-from-store';
3
3
  /**
4
4
  * Collection of all FLineAlignment feature executions.
5
5
  * These executions handle the addition and removal of line alignments
6
6
  * in the FComponentsStore.
7
7
  */
8
- export declare const F_LINE_ALIGNMENT_FEATURES: (typeof RemoveLineAlignmentFromStoreExecution | typeof AddLineAlignmentToStoreExecution)[];
8
+ export declare const F_LINE_ALIGNMENT_FEATURES: (typeof AddLineAlignmentToStore | typeof RemoveLineAlignmentFromStore)[];
@@ -1,2 +1,2 @@
1
- export * from './remove-line-alignment-from-store.execution';
1
+ export * from './remove-line-alignment-from-store';
2
2
  export * from './remove-line-alignment-from-store-request';
@@ -4,9 +4,9 @@ import * as i0 from "@angular/core";
4
4
  /**
5
5
  * Execution that removes a line alignment from the FComponentsStore.
6
6
  */
7
- export declare class RemoveLineAlignmentFromStoreExecution implements IExecution<RemoveLineAlignmentFromStoreRequest, void> {
7
+ export declare class RemoveLineAlignmentFromStore implements IExecution<RemoveLineAlignmentFromStoreRequest, void> {
8
8
  private readonly _store;
9
- handle(request: RemoveLineAlignmentFromStoreRequest): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<RemoveLineAlignmentFromStoreExecution, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<RemoveLineAlignmentFromStoreExecution>;
9
+ handle(_request: RemoveLineAlignmentFromStoreRequest): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<RemoveLineAlignmentFromStore, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<RemoveLineAlignmentFromStore>;
12
12
  }
@@ -7,7 +7,7 @@ import * as i0 from "@angular/core";
7
7
  */
8
8
  export declare class GetParentNodes implements IExecution<GetParentNodesRequest, FNodeBase[]> {
9
9
  private readonly _store;
10
- handle(request: GetParentNodesRequest): FNodeBase[];
10
+ handle({ nodeOrGroup }: GetParentNodesRequest): FNodeBase[];
11
11
  private _getParentNodes;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<GetParentNodes, never>;
13
13
  static ɵprov: i0.ɵɵInjectableDeclaration<GetParentNodes>;
@@ -1,6 +1,6 @@
1
1
  import { FNodeBase } from '../../../f-node';
2
2
  export declare class GetParentNodesRequest {
3
- fNode: FNodeBase;
3
+ readonly nodeOrGroup: FNodeBase;
4
4
  static readonly fToken: unique symbol;
5
- constructor(fNode: FNodeBase);
5
+ constructor(nodeOrGroup: FNodeBase);
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import { FNodeBase } from '../../../f-node';
2
2
  export declare class RemoveNodeFromStoreRequest {
3
- fComponent: FNodeBase;
3
+ readonly instance: FNodeBase;
4
4
  static readonly fToken: unique symbol;
5
- constructor(fComponent: FNodeBase);
5
+ constructor(instance: FNodeBase);
6
6
  }
@@ -6,7 +6,7 @@ import * as i0 from "@angular/core";
6
6
  */
7
7
  export declare class RemoveNodeFromStore implements IExecution<RemoveNodeFromStoreRequest, void> {
8
8
  private readonly _store;
9
- handle(request: RemoveNodeFromStoreRequest): void;
9
+ handle({ instance }: RemoveNodeFromStoreRequest): void;
10
10
  static ɵfac: i0.ɵɵFactoryDeclaration<RemoveNodeFromStore, never>;
11
11
  static ɵprov: i0.ɵɵInjectableDeclaration<RemoveNodeFromStore>;
12
12
  }
@@ -7,4 +7,4 @@ import { ResetZoomExecution } from './reset-zoom';
7
7
  * These executions handle the addition, removal, and resetting of zoom levels
8
8
  * in the FComponentsStore.
9
9
  */
10
- export declare const F_ZOOM_FEATURES: (typeof SetZoomExecution | typeof ResetZoomExecution | typeof RemoveZoomFromStoreExecution | typeof AddZoomToStoreExecution)[];
10
+ export declare const F_ZOOM_FEATURES: (typeof AddZoomToStoreExecution | typeof RemoveZoomFromStoreExecution | typeof ResetZoomExecution | typeof SetZoomExecution)[];
package/domain/index.d.ts CHANGED
@@ -23,4 +23,5 @@ export * from './is-mobile';
23
23
  export * from './log-deprecated';
24
24
  export * from './log-execution-time';
25
25
  export * from './providers';
26
+ export * from './drag-rect-cache';
26
27
  export * from './transition-end';
@@ -1,13 +1,14 @@
1
1
  import { GetNormalizedElementRectExecution } from './get-normalized-element-rect';
2
- import { MoveFrontElementsBeforeTargetElementExecution, UpdateItemAndChildrenLayersExecution } from './update-item-and-children-layers';
2
+ import { MoveFrontElementsBeforeTargetElement, UpdateItemAndChildrenLayersExecution } from './update-item-and-children-layers';
3
3
  import { GetNormalizedPointExecution } from './get-normalized-point';
4
+ import { SortItemsByParentExecution } from './sort-item-layers';
4
5
  import { GetDeepChildrenNodesAndGroupsExecution } from './get-deep-children-nodes-and-groups';
5
6
  import { GetElementRoundedRectExecution } from './get-element-rounded-rect';
6
- import { GetNormalizedConnectorRectExecution } from "./get-normalized-connector-rect";
7
+ import { GetNormalizedConnectorRectExecution } from './get-normalized-connector-rect';
7
8
  /**
8
9
  * This module provides a collection of common providers for the FFlow domain.
9
10
  * It includes features related to canvas, connections, background, connectors,
10
11
  * draggable elements, flow, line alignment, nodes, selection, zoom,
11
12
  * and various utility executions.
12
13
  */
13
- export declare const COMMON_PROVIDERS: (typeof import("./f-connectors").AddInputToStore | typeof import("./f-connectors").AddOutletToStore | typeof import("./f-connectors").AddOutputToStore | typeof import("./f-connectors").CalculateClosestConnector | typeof import("./f-connectors").FindConnectableConnectorUsingPriorityAndPositionExecution | typeof import("./f-connectors").CalculateSourceConnectorsToConnect | typeof import("./f-connectors").CalculateTargetConnectorsToConnect | typeof import("./f-connectors").GetConnectorAndRect | typeof import("./f-connectors").MarkConnectableConnectors | typeof import("./f-connectors").RemoveInputFromStore | typeof import("./f-connectors").RemoveOutletFromStoreExecution | typeof import("./f-connectors").RemoveOutputFromStoreExecution | typeof import("./f-connectors").UnmarkConnectableConnectors | typeof import("./f-zoom").SetZoomExecution | typeof import("./f-zoom").AddZoomToStoreExecution | typeof import("./f-line-alignment").AddLineAlignmentToStoreExecution | typeof import("./f-flow").GetFlowStateNodesExecution | typeof import("./f-flow").AddFlowToStoreExecution | typeof import("./f-canvas").AddCanvasToStoreExecution | typeof import("./f-canvas").CenterGroupOrNodeExecution | typeof import("./f-canvas").FitToFlowExecution | typeof import("./f-canvas").InputCanvasPositionExecution | typeof import("./f-canvas").InputCanvasScaleExecution | typeof import("./f-canvas").RedrawCanvasWithAnimationExecution | typeof import("./f-canvas").ResetScaleAndCenterExecution | typeof import("./f-canvas").UpdateScaleExecution | typeof import("./f-connection").AddConnectionForCreateToStoreExecution | typeof import("./f-connection").AddConnectionMarkerToStoreExecution | typeof import("./f-connection").AddConnectionToStoreExecution | typeof import("./f-connection").AddSnapConnectionToStoreExecution | typeof import("./f-connection").CreateConnectionMarkersExecution | typeof import("./f-connection").CalculateConnectionLineByBehavior | typeof import("./f-connection").RemoveConnectionFromStoreExecution | typeof import("./f-connection").RemoveConnectionMarkerFromStoreExecution | typeof import("./f-background").AddBackgroundToStoreExecution | typeof import("./f-background").AddPatternToBackgroundExecution | typeof import("./f-background").RemoveBackgroundFromStoreExecution | typeof import("./f-background").SetBackgroundTransformExecution | typeof import("./f-draggable").AddDndToStoreExecution | typeof import("./f-draggable").OnPointerMoveExecution | typeof import("./f-node").AddNodeToStore | typeof import("./f-node").CalculateConnectableSideByConnectedPositions | typeof import("./f-node").CalculateConnectableSideByInternalPosition | typeof import("./f-node").CalculateInputConnections | typeof import("./f-node").CalculateConnectorsConnectableSides | typeof import("./f-node").CalculateNodesBoundingBoxNormalizedPosition | typeof import("./f-node").CalculateOutputConnections | typeof import("./f-node").FitToChildNodesAndGroups | typeof import("./f-node").GetChildNodeIds | typeof import("./f-node").GetNodePadding | typeof import("./f-node").GetParentNodes | typeof import("./f-node").UpdateNodeWhenStateOrSizeChanged | typeof import("./f-node").RemoveNodeFromStore | typeof GetElementRoundedRectExecution | typeof import("./f-selection").SelectExecution | typeof import("./f-selection").SelectAndUpdateNodeLayerExecution | typeof GetDeepChildrenNodesAndGroupsExecution | typeof GetNormalizedConnectorRectExecution | typeof GetNormalizedElementRectExecution | typeof GetNormalizedPointExecution | typeof UpdateItemAndChildrenLayersExecution | typeof MoveFrontElementsBeforeTargetElementExecution)[];
14
+ export declare const COMMON_PROVIDERS: (typeof import("./f-connection").RemoveConnectionFromStoreExecution | typeof import("./f-connection").AddConnectionForCreateToStoreExecution | typeof import("./f-connection").AddConnectionMarkerToStoreExecution | typeof import("./f-connection").AddConnectionToStoreExecution | typeof import("./f-connection").AddSnapConnectionToStoreExecution | typeof import("./f-connection").CreateConnectionMarkersExecution | typeof import("./f-connection").CalculateConnectionLineByBehavior | typeof import("./f-connection").RemoveConnectionMarkerFromStoreExecution | typeof import("./f-canvas").ResetScaleAndCenterExecution | typeof import("./f-canvas").FitToFlowExecution | typeof import("./f-canvas").CenterGroupOrNodeExecution | typeof import("./f-background").AddPatternToBackgroundExecution | typeof import("./f-canvas").AddCanvasToStoreExecution | typeof import("./f-canvas").InputCanvasPositionExecution | typeof import("./f-canvas").InputCanvasScaleExecution | typeof import("./f-canvas").RedrawCanvasWithAnimationExecution | typeof import("./f-canvas").UpdateScaleExecution | typeof import("./f-background").AddBackgroundToStoreExecution | typeof import("./f-background").RemoveBackgroundFromStoreExecution | typeof import("./f-background").SetBackgroundTransformExecution | typeof import("./f-connectors").AddInputToStore | typeof import("./f-connectors").AddOutletToStore | typeof import("./f-connectors").AddOutputToStore | typeof import("./f-connectors").CalculateClosestConnector | typeof import("./f-connectors").FindConnectableConnectorUsingPriorityAndPositionExecution | typeof import("./f-connectors").CalculateSourceConnectorsToConnect | typeof import("./f-connectors").CalculateTargetConnectorsToConnect | typeof import("./f-connectors").GetConnectorAndRect | typeof import("./f-connectors").MarkConnectableConnectors | typeof import("./f-connectors").RemoveInputFromStore | typeof import("./f-connectors").RemoveOutletFromStoreExecution | typeof import("./f-connectors").RemoveOutputFromStoreExecution | typeof import("./f-connectors").UnmarkConnectableConnectors | typeof import("./f-draggable").AddDndToStoreExecution | typeof import("./f-draggable").OnPointerMoveExecution | typeof import("./f-flow").AddFlowToStoreExecution | typeof import("./f-flow").GetFlowStateNodesExecution | typeof import("./f-line-alignment").AddLineAlignmentToStore | typeof import("./f-node").AddNodeToStore | typeof import("./f-node").CalculateConnectableSideByConnectedPositions | typeof import("./f-node").CalculateConnectableSideByInternalPosition | typeof import("./f-node").CalculateInputConnections | typeof import("./f-node").CalculateConnectorsConnectableSides | typeof import("./f-node").CalculateNodesBoundingBoxNormalizedPosition | typeof import("./f-node").CalculateOutputConnections | typeof import("./f-node").FitToChildNodesAndGroups | typeof import("./f-node").GetChildNodeIds | typeof import("./f-node").GetNodePadding | typeof import("./f-node").GetParentNodes | typeof import("./f-node").UpdateNodeWhenStateOrSizeChanged | typeof import("./f-node").RemoveNodeFromStore | typeof GetElementRoundedRectExecution | typeof import("./f-selection").SelectExecution | typeof import("./f-selection").SelectAndUpdateNodeLayerExecution | typeof import("./f-zoom").AddZoomToStoreExecution | typeof import("./f-zoom").SetZoomExecution | typeof GetDeepChildrenNodesAndGroupsExecution | typeof GetNormalizedConnectorRectExecution | typeof GetNormalizedElementRectExecution | typeof GetNormalizedPointExecution | typeof SortItemsByParentExecution | typeof UpdateItemAndChildrenLayersExecution | typeof MoveFrontElementsBeforeTargetElement)[];
@@ -1,2 +1,2 @@
1
- export * from './move-front-elements-before-target-element.execution';
2
- export * from './move-front-elements-before-target-element.request';
1
+ export * from './move-front-elements-before-target-element';
2
+ export * from './move-front-elements-before-target-element-request';
@@ -1,8 +1,8 @@
1
1
  export declare class MoveFrontElementsBeforeTargetElementRequest {
2
- fItemsContainer: HTMLElement;
3
- allElements: Element[];
4
- elementsThatShouldBeInFront: Element[];
5
- targetIndex: number;
2
+ readonly fItemsContainer: HTMLElement;
3
+ readonly allElements: Element[];
4
+ readonly elementsThatShouldBeInFront: Element[];
5
+ readonly targetIndex: number;
6
6
  static readonly fToken: unique symbol;
7
7
  constructor(fItemsContainer: HTMLElement, // fGroupsContainer || fNodesContainer || fConnectionsContainer
8
8
  allElements: Element[], elementsThatShouldBeInFront: Element[], targetIndex: number);
@@ -1,12 +1,12 @@
1
- import { MoveFrontElementsBeforeTargetElementRequest } from './move-front-elements-before-target-element.request';
1
+ import { MoveFrontElementsBeforeTargetElementRequest } from './move-front-elements-before-target-element-request';
2
2
  import { IExecution } from '@foblex/mediator';
3
3
  import * as i0 from "@angular/core";
4
4
  /**
5
5
  * Execution that moves elements in the FItemsContainer before a target element.
6
6
  * It removes elements that should not be in front and inserts them before the target element.
7
7
  */
8
- export declare class MoveFrontElementsBeforeTargetElementExecution implements IExecution<MoveFrontElementsBeforeTargetElementRequest, void> {
8
+ export declare class MoveFrontElementsBeforeTargetElement implements IExecution<MoveFrontElementsBeforeTargetElementRequest, void> {
9
9
  handle(request: MoveFrontElementsBeforeTargetElementRequest): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<MoveFrontElementsBeforeTargetElementExecution, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<MoveFrontElementsBeforeTargetElementExecution>;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<MoveFrontElementsBeforeTargetElement, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<MoveFrontElementsBeforeTargetElement>;
12
12
  }
@@ -0,0 +1,19 @@
1
+ import { RectExtensions } from '@foblex/2d';
2
+ export class DragRectCache {
3
+ static _cache = new WeakMap();
4
+ static fromElement(element) {
5
+ const rect = this._cache.get(element) || RectExtensions.fromElement(element);
6
+ this._cache.set(element, rect);
7
+ return rect;
8
+ }
9
+ static set(element) {
10
+ this._cache.set(element, RectExtensions.fromElement(element));
11
+ }
12
+ static invalidate(element) {
13
+ this._cache.delete(element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-1,16 +1,16 @@
1
1
  export class CalculateConnectionLineByBehaviorRequest {
2
2
  sourceRect;
3
3
  targetRect;
4
- behavior;
4
+ connection;
5
5
  sourceConnectableSide;
6
6
  targetConnectableSide;
7
7
  static fToken = Symbol('CalculateConnectionLineByBehaviorRequest');
8
- constructor(sourceRect, targetRect, behavior, sourceConnectableSide, targetConnectableSide) {
8
+ constructor(sourceRect, targetRect, connection, sourceConnectableSide, targetConnectableSide) {
9
9
  this.sourceRect = sourceRect;
10
10
  this.targetRect = targetRect;
11
- this.behavior = behavior;
11
+ this.connection = connection;
12
12
  this.sourceConnectableSide = sourceConnectableSide;
13
13
  this.targetConnectableSide = targetConnectableSide;
14
14
  }
15
15
  }
16
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FsY3VsYXRlLWNvbm5lY3Rpb24tbGluZS1ieS1iZWhhdmlvci1yZXF1ZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9kb21haW4vZi1jb25uZWN0aW9uL2NhbGN1bGF0ZS1jb25uZWN0aW9uLWxpbmUtYnktYmVoYXZpb3IvY2FsY3VsYXRlLWNvbm5lY3Rpb24tbGluZS1ieS1iZWhhdmlvci1yZXF1ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUlBLE1BQU0sT0FBTyx3Q0FBd0M7SUFJMUM7SUFDQTtJQUNBO0lBQ0E7SUFDQTtJQVBULE1BQU0sQ0FBVSxNQUFNLEdBQUcsTUFBTSxDQUFDLDBDQUEwQyxDQUFDLENBQUM7SUFFNUUsWUFDUyxVQUF3QixFQUN4QixVQUF3QixFQUN4QixRQUF1QyxFQUN2QyxxQkFBd0MsRUFDeEMscUJBQXdDO1FBSnhDLGVBQVUsR0FBVixVQUFVLENBQWM7UUFDeEIsZUFBVSxHQUFWLFVBQVUsQ0FBYztRQ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