@foblex/flow 17.0.3 → 17.0.5

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 (179) hide show
  1. package/domain/f-connection/calculate-connection-line-by-behavior/calculate-connection-line-by-behavior.execution.d.ts +10 -0
  2. package/domain/{get-connection-line/get-connection-line.request.d.ts → f-connection/calculate-connection-line-by-behavior/calculate-connection-line-by-behavior.request.d.ts} +3 -3
  3. package/domain/f-connection/calculate-connection-line-by-behavior/fixed-center-behavior.d.ts +3 -0
  4. package/domain/f-connection/calculate-connection-line-by-behavior/fixed-outbound-behavior.d.ts +3 -0
  5. package/domain/f-connection/calculate-connection-line-by-behavior/floating-behavior.d.ts +3 -0
  6. package/domain/f-connection/calculate-connection-line-by-behavior/index.d.ts +5 -0
  7. package/domain/f-connection/index.d.ts +1 -0
  8. package/domain/f-connection/providers.d.ts +2 -1
  9. package/domain/f-draggable/emit-selection-change-event/emit-selection-change-event.execution.d.ts +2 -0
  10. package/domain/{get-flow-state → f-flow/get-flow-state}/get-flow-state-connections/get-flow-state-connections.execution.d.ts +1 -1
  11. package/domain/{get-flow-state → f-flow/get-flow-state}/get-flow-state-nodes/get-flow-state-nodes.execution.d.ts +1 -1
  12. package/domain/{get-flow-state → f-flow/get-flow-state}/get-flow-state.execution.d.ts +1 -1
  13. package/domain/{get-flow-state → f-flow/get-flow-state}/i-f-flow-state-connection.d.ts +1 -1
  14. package/domain/{get-flow-state → f-flow/get-flow-state}/i-f-flow-state-connector.d.ts +1 -1
  15. package/domain/f-flow/index.d.ts +1 -0
  16. package/domain/f-flow/providers.d.ts +1 -1
  17. package/domain/f-node/calculate-nodes-bounding-box-normalized-position/calculate-nodes-bounding-box-normalized-position.execution.d.ts +12 -0
  18. package/domain/f-node/calculate-nodes-bounding-box-normalized-position/calculate-nodes-bounding-box-normalized-position.request.d.ts +2 -0
  19. package/domain/f-node/calculate-nodes-bounding-box-normalized-position/index.d.ts +2 -0
  20. package/domain/f-node/index.d.ts +1 -0
  21. package/domain/f-node/providers.d.ts +2 -1
  22. package/domain/f-selection/get-can-be-selected-items/get-can-be-selected-items.execution.d.ts +18 -0
  23. package/domain/f-selection/get-can-be-selected-items/i-can-be-selected.d.ts +6 -0
  24. package/domain/f-selection/get-can-be-selected-items/index.d.ts +3 -0
  25. package/domain/f-selection/get-current-selection/get-current-selection.execution.d.ts +13 -0
  26. package/domain/f-selection/get-current-selection/get-current-selection.request.d.ts +2 -0
  27. package/domain/f-selection/get-current-selection/i-current-selection.d.ts +5 -0
  28. package/domain/f-selection/get-current-selection/index.d.ts +3 -0
  29. package/domain/f-selection/index.d.ts +2 -1
  30. package/domain/f-selection/providers.d.ts +4 -3
  31. package/domain/{get-element-rect-in-flow/get-element-rect-in-flow-request.d.ts → get-element-rounded-rect/get-element-rounded-rect-request.d.ts} +1 -1
  32. package/domain/get-element-rounded-rect/get-element-rounded-rect.execution.d.ts +13 -0
  33. package/domain/get-element-rounded-rect/index.d.ts +2 -0
  34. package/domain/{create-rounded-rect-from-element/create-rounded-rect-from-element-request.d.ts → get-normalized-element-rect/get-normalized-element-rect-request.d.ts} +1 -1
  35. package/domain/get-normalized-element-rect/get-normalized-element-rect.execution.d.ts +15 -0
  36. package/domain/get-normalized-element-rect/index.d.ts +2 -0
  37. package/domain/{get-position-in-flow/get-position-in-flow-request.d.ts → get-normalized-point/get-normalized-point-request.d.ts} +1 -1
  38. package/domain/get-normalized-point/get-normalized-point.execution.d.ts +11 -0
  39. package/domain/get-normalized-point/index.d.ts +2 -0
  40. package/domain/index.d.ts +3 -7
  41. package/domain/providers.d.ts +4 -7
  42. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/calculate-connection-line-by-behavior.execution.mjs +29 -0
  43. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/calculate-connection-line-by-behavior.request.mjs +15 -0
  44. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/fixed-center-behavior.mjs +5 -0
  45. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/fixed-outbound-behavior.mjs +32 -0
  46. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/floating-behavior.mjs +14 -0
  47. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/index.mjs +6 -0
  48. package/esm2022/domain/f-connection/get-connector-with-rect/get-connector-with-rect.execution.mjs +3 -3
  49. package/esm2022/domain/f-connection/index.mjs +2 -1
  50. package/esm2022/domain/f-connection/providers.mjs +3 -1
  51. package/esm2022/domain/f-connection/redraw-connections/redraw-connections.execution.mjs +4 -4
  52. package/esm2022/domain/f-draggable/emit-selection-change-event/emit-selection-change-event.execution.mjs +10 -4
  53. package/esm2022/domain/f-flow/get-flow-state/get-flow-state-connections/get-flow-state-connections-request.mjs +3 -0
  54. package/esm2022/domain/f-flow/get-flow-state/get-flow-state-connections/get-flow-state-connections.execution.mjs +34 -0
  55. package/esm2022/domain/f-flow/get-flow-state/get-flow-state-connections/index.mjs +3 -0
  56. package/esm2022/domain/f-flow/get-flow-state/get-flow-state-nodes/get-flow-state-nodes-request.mjs +7 -0
  57. package/esm2022/domain/f-flow/get-flow-state/get-flow-state-nodes/get-flow-state-nodes.execution.mjs +51 -0
  58. package/esm2022/domain/f-flow/get-flow-state/get-flow-state-nodes/index.mjs +3 -0
  59. package/esm2022/domain/f-flow/get-flow-state/get-flow-state.execution.mjs +41 -0
  60. package/esm2022/domain/f-flow/get-flow-state/get-flow-state.request.mjs +3 -0
  61. package/esm2022/domain/f-flow/get-flow-state/i-f-flow-state-connection.mjs +2 -0
  62. package/esm2022/domain/f-flow/get-flow-state/i-f-flow-state-connector.mjs +2 -0
  63. package/esm2022/domain/f-flow/get-flow-state/i-f-flow-state-node.mjs +2 -0
  64. package/esm2022/domain/f-flow/get-flow-state/i-f-flow-state.mjs +2 -0
  65. package/esm2022/domain/f-flow/get-flow-state/index.mjs +10 -0
  66. package/esm2022/domain/f-flow/get-flow-state/providers.mjs +9 -0
  67. package/esm2022/domain/f-flow/index.mjs +2 -1
  68. package/esm2022/domain/f-flow/providers.mjs +3 -1
  69. package/esm2022/domain/f-node/calculate-nodes-bounding-box/calculate-nodes-bounding-box.execution.mjs +4 -2
  70. package/esm2022/domain/f-node/calculate-nodes-bounding-box-normalized-position/calculate-nodes-bounding-box-normalized-position.execution.mjs +31 -0
  71. package/esm2022/domain/f-node/calculate-nodes-bounding-box-normalized-position/calculate-nodes-bounding-box-normalized-position.request.mjs +3 -0
  72. package/esm2022/domain/f-node/calculate-nodes-bounding-box-normalized-position/index.mjs +3 -0
  73. package/esm2022/domain/f-node/index.mjs +2 -1
  74. package/esm2022/domain/f-node/providers.mjs +3 -1
  75. package/esm2022/domain/f-selection/get-can-be-selected-items/get-can-be-selected-items-request.mjs +3 -0
  76. package/esm2022/domain/f-selection/get-can-be-selected-items/get-can-be-selected-items.execution.mjs +57 -0
  77. package/esm2022/domain/f-selection/get-can-be-selected-items/i-can-be-selected.mjs +2 -0
  78. package/esm2022/domain/f-selection/get-can-be-selected-items/index.mjs +4 -0
  79. package/esm2022/domain/f-selection/get-current-selection/get-current-selection.execution.mjs +41 -0
  80. package/esm2022/domain/f-selection/get-current-selection/get-current-selection.request.mjs +3 -0
  81. package/esm2022/domain/f-selection/get-current-selection/i-current-selection.mjs +2 -0
  82. package/esm2022/domain/f-selection/get-current-selection/index.mjs +4 -0
  83. package/esm2022/domain/f-selection/index.mjs +3 -2
  84. package/esm2022/domain/f-selection/providers.mjs +6 -4
  85. package/esm2022/domain/get-element-rounded-rect/get-element-rounded-rect-request.mjs +7 -0
  86. package/esm2022/domain/get-element-rounded-rect/get-element-rounded-rect.execution.mjs +32 -0
  87. package/esm2022/domain/{get-element-rect-in-flow → get-element-rounded-rect}/index.mjs +3 -3
  88. package/esm2022/domain/get-normalized-element-rect/get-normalized-element-rect-request.mjs +7 -0
  89. package/esm2022/domain/get-normalized-element-rect/get-normalized-element-rect.execution.mjs +40 -0
  90. package/esm2022/domain/get-normalized-element-rect/index.mjs +3 -0
  91. package/esm2022/domain/get-normalized-point/get-normalized-point-request.mjs +7 -0
  92. package/esm2022/domain/get-normalized-point/get-normalized-point.execution.mjs +27 -0
  93. package/esm2022/domain/get-normalized-point/index.mjs +3 -0
  94. package/esm2022/domain/index.mjs +4 -8
  95. package/esm2022/domain/providers.mjs +7 -15
  96. package/esm2022/f-draggable/connections/create-connection/create-connection.drag-handler.mjs +4 -4
  97. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.mjs +4 -4
  98. package/esm2022/f-draggable/domain/is-connection-under-node/is-connection-under-node.execution.mjs +3 -3
  99. package/esm2022/f-draggable/f-selection-change-event.mjs +4 -2
  100. package/esm2022/f-draggable/node/connection-source.drag-handler.mjs +3 -3
  101. package/esm2022/f-draggable/node/connection-target.drag-handler.mjs +3 -3
  102. package/esm2022/f-draggable/node/connection.drag-handler.mjs +3 -3
  103. package/esm2022/f-draggable/node/node-drag-to-parent-preparation/node-drag-to-parent-preparation.execution.mjs +3 -3
  104. package/esm2022/f-external-item/domain/external-item-finalize/external-item-finalize.execution.mjs +3 -3
  105. package/esm2022/f-flow/f-flow.component.mjs +6 -6
  106. package/esm2022/f-line-alignment/f-line-alignment.component.mjs +4 -4
  107. package/esm2022/f-minimap/domain/minimap-calculate-view-box/minimap-calculate-view-box.execution.mjs +4 -1
  108. package/esm2022/f-selection-area/domain/selection-area.drag-handle.mjs +12 -11
  109. package/f-connection/providers.d.ts +1 -1
  110. package/f-draggable/f-selection-change-event.d.ts +4 -2
  111. package/f-draggable/providers.d.ts +1 -1
  112. package/f-flow/f-flow.component.d.ts +3 -4
  113. package/f-node/providers.d.ts +1 -1
  114. package/f-selection-area/domain/selection-area.drag-handle.d.ts +2 -2
  115. package/fesm2022/foblex-flow.mjs +366 -359
  116. package/fesm2022/foblex-flow.mjs.map +1 -1
  117. package/package.json +1 -1
  118. package/domain/create-rounded-rect-from-element/create-rounded-rect-from-element.execution.d.ts +0 -15
  119. package/domain/create-rounded-rect-from-element/index.d.ts +0 -2
  120. package/domain/f-selection/get-selection/get-selection.execution.d.ts +0 -11
  121. package/domain/f-selection/get-selection/get-selection.request.d.ts +0 -2
  122. package/domain/f-selection/get-selection/index.d.ts +0 -2
  123. package/domain/get-can-be-selected-items/get-can-be-selected-items.execution.d.ts +0 -19
  124. package/domain/get-can-be-selected-items/i-selectable-with-rect.d.ts +0 -6
  125. package/domain/get-can-be-selected-items/index.d.ts +0 -2
  126. package/domain/get-connection-line/get-connection-line.execution.d.ts +0 -13
  127. package/domain/get-connection-line/index.d.ts +0 -2
  128. package/domain/get-element-rect-in-flow/get-element-rect-in-flow.execution.d.ts +0 -16
  129. package/domain/get-element-rect-in-flow/index.d.ts +0 -2
  130. package/domain/get-position-in-flow/get-position-in-flow.execution.d.ts +0 -14
  131. package/domain/get-position-in-flow/index.d.ts +0 -2
  132. package/domain/get-scaled-node-rects-with-flow-position/get-scaled-node-rects-with-flow-position.execution.d.ts +0 -14
  133. package/domain/get-scaled-node-rects-with-flow-position/get-scaled-node-rects-with-flow-position.request.d.ts +0 -2
  134. package/domain/get-scaled-node-rects-with-flow-position/index.d.ts +0 -2
  135. package/esm2022/domain/create-rounded-rect-from-element/create-rounded-rect-from-element-request.mjs +0 -7
  136. package/esm2022/domain/create-rounded-rect-from-element/create-rounded-rect-from-element.execution.mjs +0 -40
  137. package/esm2022/domain/create-rounded-rect-from-element/index.mjs +0 -3
  138. package/esm2022/domain/f-selection/get-selection/get-selection.execution.mjs +0 -36
  139. package/esm2022/domain/f-selection/get-selection/get-selection.request.mjs +0 -3
  140. package/esm2022/domain/f-selection/get-selection/index.mjs +0 -3
  141. package/esm2022/domain/get-can-be-selected-items/get-can-be-selected-items-request.mjs +0 -3
  142. package/esm2022/domain/get-can-be-selected-items/get-can-be-selected-items.execution.mjs +0 -60
  143. package/esm2022/domain/get-can-be-selected-items/i-selectable-with-rect.mjs +0 -2
  144. package/esm2022/domain/get-can-be-selected-items/index.mjs +0 -3
  145. package/esm2022/domain/get-connection-line/get-connection-line.execution.mjs +0 -65
  146. package/esm2022/domain/get-connection-line/get-connection-line.request.mjs +0 -15
  147. package/esm2022/domain/get-connection-line/index.mjs +0 -3
  148. package/esm2022/domain/get-element-rect-in-flow/get-element-rect-in-flow-request.mjs +0 -7
  149. package/esm2022/domain/get-element-rect-in-flow/get-element-rect-in-flow.execution.mjs +0 -43
  150. package/esm2022/domain/get-flow-state/get-flow-state-connections/get-flow-state-connections-request.mjs +0 -3
  151. package/esm2022/domain/get-flow-state/get-flow-state-connections/get-flow-state-connections.execution.mjs +0 -34
  152. package/esm2022/domain/get-flow-state/get-flow-state-connections/index.mjs +0 -3
  153. package/esm2022/domain/get-flow-state/get-flow-state-nodes/get-flow-state-nodes-request.mjs +0 -7
  154. package/esm2022/domain/get-flow-state/get-flow-state-nodes/get-flow-state-nodes.execution.mjs +0 -51
  155. package/esm2022/domain/get-flow-state/get-flow-state-nodes/index.mjs +0 -3
  156. package/esm2022/domain/get-flow-state/get-flow-state.execution.mjs +0 -41
  157. package/esm2022/domain/get-flow-state/get-flow-state.request.mjs +0 -3
  158. package/esm2022/domain/get-flow-state/i-f-flow-state-connection.mjs +0 -2
  159. package/esm2022/domain/get-flow-state/i-f-flow-state-connector.mjs +0 -2
  160. package/esm2022/domain/get-flow-state/i-f-flow-state-node.mjs +0 -2
  161. package/esm2022/domain/get-flow-state/i-f-flow-state.mjs +0 -2
  162. package/esm2022/domain/get-flow-state/index.mjs +0 -10
  163. package/esm2022/domain/get-flow-state/providers.mjs +0 -9
  164. package/esm2022/domain/get-position-in-flow/get-position-in-flow-request.mjs +0 -7
  165. package/esm2022/domain/get-position-in-flow/get-position-in-flow.execution.mjs +0 -33
  166. package/esm2022/domain/get-position-in-flow/index.mjs +0 -3
  167. package/esm2022/domain/get-scaled-node-rects-with-flow-position/get-scaled-node-rects-with-flow-position.execution.mjs +0 -35
  168. package/esm2022/domain/get-scaled-node-rects-with-flow-position/get-scaled-node-rects-with-flow-position.request.mjs +0 -3
  169. package/esm2022/domain/get-scaled-node-rects-with-flow-position/index.mjs +0 -3
  170. /package/domain/{get-flow-state → f-flow/get-flow-state}/get-flow-state-connections/get-flow-state-connections-request.d.ts +0 -0
  171. /package/domain/{get-flow-state → f-flow/get-flow-state}/get-flow-state-connections/index.d.ts +0 -0
  172. /package/domain/{get-flow-state → f-flow/get-flow-state}/get-flow-state-nodes/get-flow-state-nodes-request.d.ts +0 -0
  173. /package/domain/{get-flow-state → f-flow/get-flow-state}/get-flow-state-nodes/index.d.ts +0 -0
  174. /package/domain/{get-flow-state → f-flow/get-flow-state}/get-flow-state.request.d.ts +0 -0
  175. /package/domain/{get-flow-state → f-flow/get-flow-state}/i-f-flow-state-node.d.ts +0 -0
  176. /package/domain/{get-flow-state → f-flow/get-flow-state}/i-f-flow-state.d.ts +0 -0
  177. /package/domain/{get-flow-state → f-flow/get-flow-state}/index.d.ts +0 -0
  178. /package/domain/{get-flow-state → f-flow/get-flow-state}/providers.d.ts +0 -0
  179. /package/domain/{get-can-be-selected-items → f-selection/get-can-be-selected-items}/get-can-be-selected-items-request.d.ts +0 -0
@@ -1,11 +1,11 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, Injectable, inject, Directive, ElementRef, Input, HostBinding, EventEmitter, DestroyRef, Output, booleanAttribute, Inject, Component, ChangeDetectionStrategy, ViewChild, Optional, ContentChildren, NgZone, ContentChild, NgModule } from '@angular/core';
3
- import { RoundedRect, RectExtensions, TransformModelExtensions, PointExtensions, Point, SizeExtensions, LineExtensions, GetIntersections, Line, setRectToElement, adjustRectToMinSize, setRectToViewBox } from '@foblex/2d';
2
+ import { InjectionToken, inject, Injectable, Directive, ElementRef, Input, HostBinding, EventEmitter, DestroyRef, Output, booleanAttribute, Inject, Component, ChangeDetectionStrategy, ViewChild, Optional, ContentChildren, NgZone, ContentChild, NgModule } from '@angular/core';
3
+ import { RectExtensions, RoundedRect, TransformModelExtensions, PointExtensions, Point, SizeExtensions, LineExtensions, GetIntersections, Line, setRectToElement, adjustRectToMinSize, setRectToViewBox } from '@foblex/2d';
4
4
  import { __decorate } from 'tslib';
5
5
  import * as i2 from '@foblex/mediator';
6
6
  import { FExecutionRegister, FMediator, FValidatorRegister } from '@foblex/mediator';
7
7
  import * as i1 from '@foblex/platform';
8
- import { EOperationSystem, BrowserService } from '@foblex/platform';
8
+ import { BrowserService, EOperationSystem } from '@foblex/platform';
9
9
  import { normalizeDomElementId, castToEnum, flatMap, isClosestElementHasClass, getDataAttrValueFromClosestElementWithClass, deepCloneNode, castToBoolean } from '@foblex/utils';
10
10
  import * as i2$1 from '@angular/common';
11
11
  import { CommonModule } from '@angular/common';
@@ -13,44 +13,36 @@ import { DragAndDropBase, EventExtensions } from '@foblex/drag-toolkit';
13
13
 
14
14
  const F_BACKGROUND_PATTERN = new InjectionToken('F_BACKGROUND_PATTERN');
15
15
 
16
- class CreateRoundedRectFromElementRequest {
16
+ class GetElementRoundedRectRequest {
17
17
  element;
18
18
  constructor(element) {
19
19
  this.element = element;
20
20
  }
21
21
  }
22
22
 
23
- let CreateRoundedRectFromElementExecution = class CreateRoundedRectFromElementExecution {
24
- fBrowser;
25
- constructor(fBrowser) {
26
- this.fBrowser = fBrowser;
27
- }
23
+ let GetElementRoundedRectExecution = class GetElementRoundedRectExecution {
24
+ _fBrowser = inject(BrowserService);
28
25
  handle(request) {
29
- return this.setRadiusFromElement(RoundedRect.fromRect(RectExtensions.fromElement(request.element)), request.element);
26
+ return this._getRoundedRect(RectExtensions.fromElement(request.element), request.element, this._getComputedStyle(request.element));
30
27
  }
31
- setRadiusFromElement(rect, element) {
32
- const styles = this.getComputedStyle(element);
33
- rect.radius1 = this.toPixels(styles.borderTopLeftRadius, element, styles.fontSize);
34
- rect.radius2 = this.toPixels(styles.borderTopRightRadius, element, styles.fontSize);
35
- rect.radius3 = this.toPixels(styles.borderBottomRightRadius, element, styles.fontSize);
36
- rect.radius4 = this.toPixels(styles.borderBottomLeftRadius, element, styles.fontSize);
37
- return rect;
28
+ _getRoundedRect(rect, element, styles) {
29
+ return new RoundedRect(rect.x, rect.y, rect.width, rect.height, this._toPixels(styles.borderTopLeftRadius, element, styles.fontSize), this._toPixels(styles.borderTopRightRadius, element, styles.fontSize), this._toPixels(styles.borderBottomRightRadius, element, styles.fontSize), this._toPixels(styles.borderBottomLeftRadius, element, styles.fontSize));
38
30
  }
39
- getComputedStyle(element) {
40
- return this.fBrowser.window.getComputedStyle(element);
31
+ _getComputedStyle(element) {
32
+ return this._fBrowser.window.getComputedStyle(element);
41
33
  }
42
- toPixels(value, element, fontSize) {
43
- return this.fBrowser.toPixels(value, element.clientWidth, element.clientHeight, fontSize) || 0;
34
+ _toPixels(value, element, fontSize) {
35
+ return this._fBrowser.toPixels(value, element.clientWidth, element.clientHeight, fontSize) || 0;
44
36
  }
45
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: CreateRoundedRectFromElementExecution, deps: [{ token: i1.BrowserService }], target: i0.ɵɵFactoryTarget.Injectable });
46
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: CreateRoundedRectFromElementExecution });
37
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetElementRoundedRectExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
38
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetElementRoundedRectExecution });
47
39
  };
48
- CreateRoundedRectFromElementExecution = __decorate([
49
- FExecutionRegister(CreateRoundedRectFromElementRequest)
50
- ], CreateRoundedRectFromElementExecution);
51
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: CreateRoundedRectFromElementExecution, decorators: [{
40
+ GetElementRoundedRectExecution = __decorate([
41
+ FExecutionRegister(GetElementRoundedRectRequest)
42
+ ], GetElementRoundedRectExecution);
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetElementRoundedRectExecution, decorators: [{
52
44
  type: Injectable
53
- }], ctorParameters: () => [{ type: i1.BrowserService }] });
45
+ }] });
54
46
 
55
47
  class AddBackgroundToStoreRequest {
56
48
  fBackground;
@@ -984,44 +976,41 @@ class GetConnectorWithRectRequest {
984
976
  }
985
977
  }
986
978
 
987
- class GetElementRectInFlowRequest {
979
+ class GetNormalizedElementRectRequest {
988
980
  element;
989
981
  constructor(element) {
990
982
  this.element = element;
991
983
  }
992
984
  }
993
985
 
994
- let GetElementRectInFlowExecution = class GetElementRectInFlowExecution {
986
+ let GetNormalizedElementRectExecution = class GetNormalizedElementRectExecution {
995
987
  _fComponentsStore = inject(FComponentsStore);
996
988
  _fMediator = inject(FMediator);
997
989
  get _transform() {
998
990
  return this._fComponentsStore.fCanvas.transform;
999
991
  }
1000
- get flowHost() {
1001
- return this._fComponentsStore.flowHost;
1002
- }
1003
992
  handle(request) {
1004
- const systemRect = this._getElementRoundRect(request.element);
1005
- const position = this.transformElementPositionInFlow(systemRect);
1006
- const size = this.transformElementSizeInFlow(systemRect);
993
+ const systemRect = this._getElementRoundedRect(request.element);
994
+ const position = this._normalizePosition(systemRect);
995
+ const size = this._normalizeSize(systemRect);
1007
996
  return new RoundedRect(position.x, position.y, size.width, size.height, systemRect.radius1, systemRect.radius2, systemRect.radius3, systemRect.radius4);
1008
997
  }
1009
- _getElementRoundRect(element) {
1010
- return this._fMediator.send(new CreateRoundedRectFromElementRequest(element));
998
+ _getElementRoundedRect(element) {
999
+ return this._fMediator.send(new GetElementRoundedRectRequest(element));
1011
1000
  }
1012
- transformElementPositionInFlow(rect) {
1013
- return Point.fromPoint(rect).elementTransform(this.flowHost).sub(this._transform.scaledPosition).sub(this._transform.position).div(this._transform.scale);
1001
+ _normalizePosition(rect) {
1002
+ return Point.fromPoint(rect).elementTransform(this._fComponentsStore.flowHost).sub(this._transform.scaledPosition).sub(this._transform.position).div(this._transform.scale);
1014
1003
  }
1015
- transformElementSizeInFlow(rect) {
1004
+ _normalizeSize(rect) {
1016
1005
  return SizeExtensions.initialize(rect.width / this._transform.scale, rect.height / this._transform.scale);
1017
1006
  }
1018
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetElementRectInFlowExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1019
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetElementRectInFlowExecution });
1007
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetNormalizedElementRectExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1008
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetNormalizedElementRectExecution });
1020
1009
  };
1021
- GetElementRectInFlowExecution = __decorate([
1022
- FExecutionRegister(GetElementRectInFlowRequest)
1023
- ], GetElementRectInFlowExecution);
1024
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetElementRectInFlowExecution, decorators: [{
1010
+ GetNormalizedElementRectExecution = __decorate([
1011
+ FExecutionRegister(GetNormalizedElementRectRequest)
1012
+ ], GetNormalizedElementRectExecution);
1013
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetNormalizedElementRectExecution, decorators: [{
1025
1014
  type: Injectable
1026
1015
  }] });
1027
1016
 
@@ -1033,7 +1022,7 @@ let GetConnectorWithRectExecution = class GetConnectorWithRectExecution {
1033
1022
  handle(request) {
1034
1023
  return {
1035
1024
  fConnector: request.connector,
1036
- fRect: this.fMediator.send(new GetElementRectInFlowRequest(request.connector.hostElement))
1025
+ fRect: this.fMediator.send(new GetNormalizedElementRectRequest(request.connector.hostElement))
1037
1026
  };
1038
1027
  }
1039
1028
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetConnectorWithRectExecution, deps: [{ token: i2.FMediator }], target: i0.ɵɵFactoryTarget.Injectable });
@@ -1094,10 +1083,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
1094
1083
  type: Injectable
1095
1084
  }], ctorParameters: () => [{ type: FComponentsStore }, { type: i2.FMediator }] });
1096
1085
 
1097
- class RedrawConnectionsRequest {
1098
- }
1099
-
1100
- class GetConnectionLineRequest {
1086
+ class CalculateConnectionLineByBehaviorRequest {
1101
1087
  outputRect;
1102
1088
  inputRect;
1103
1089
  behavior;
@@ -2946,36 +2932,27 @@ const F_CONNECTION_PROVIDERS = [
2946
2932
  FSnapConnectionComponent
2947
2933
  ];
2948
2934
 
2949
- let GetConnectionLineExecution = class GetConnectionLineExecution {
2950
- behaviorHandlers = {
2951
- [EFConnectionBehavior.FLOATING.toString()]: this.floatingBehavior,
2952
- [EFConnectionBehavior.FIXED_CENTER.toString()]: this.fixedCenterBehavior,
2953
- [EFConnectionBehavior.FIXED.toString()]: this.fixedOutboundBehaviour,
2954
- };
2955
- handle(payload) {
2956
- return this.behaviorHandlers[payload.behavior](payload);
2957
- }
2958
- floatingBehavior(payload) {
2959
- const fromResult = GetIntersections.getRoundedRectIntersections(payload.outputRect.gravityCenter, payload.inputRect.gravityCenter, payload.outputRect)[0];
2960
- const toResult = GetIntersections.getRoundedRectIntersections(payload.inputRect.gravityCenter, payload.outputRect.gravityCenter, payload.inputRect)[0];
2961
- return new Line(fromResult ? fromResult : payload.outputRect.gravityCenter, toResult ? toResult : payload.inputRect.gravityCenter);
2962
- }
2963
- fixedCenterBehavior(payload) {
2964
- return new Line(payload.outputRect.gravityCenter, payload.inputRect.gravityCenter);
2965
- }
2966
- fixedOutboundBehaviour(payload) {
2967
- return new Line(positionFixedOutbound[payload.outputSide === EFConnectableSide.AUTO ? EFConnectableSide.BOTTOM : payload.outputSide](payload.outputRect), positionFixedOutbound[payload.inputSide === EFConnectableSide.AUTO ? EFConnectableSide.TOP : payload.inputSide](payload.inputRect));
2968
- }
2969
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetConnectionLineExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2970
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetConnectionLineExecution });
2971
- };
2972
- GetConnectionLineExecution = __decorate([
2973
- FExecutionRegister(GetConnectionLineRequest)
2974
- ], GetConnectionLineExecution);
2975
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetConnectionLineExecution, decorators: [{
2976
- type: Injectable
2977
- }] });
2978
- const positionFixedOutbound = {
2935
+ function floatingBehavior(payload) {
2936
+ return _getIntersectionsLine(_fromRoundedRectIntersections(payload), _toRoundedRectIntersections(payload), payload);
2937
+ }
2938
+ function _fromRoundedRectIntersections(payload) {
2939
+ return GetIntersections.getRoundedRectIntersections(payload.outputRect.gravityCenter, payload.inputRect.gravityCenter, payload.outputRect)[0];
2940
+ }
2941
+ function _toRoundedRectIntersections(payload) {
2942
+ return GetIntersections.getRoundedRectIntersections(payload.inputRect.gravityCenter, payload.outputRect.gravityCenter, payload.inputRect)[0];
2943
+ }
2944
+ function _getIntersectionsLine(from, to, payload) {
2945
+ return new Line(from ? from : payload.outputRect.gravityCenter, to ? to : payload.inputRect.gravityCenter);
2946
+ }
2947
+
2948
+ function fixedCenterBehavior(payload) {
2949
+ return new Line(payload.outputRect.gravityCenter, payload.inputRect.gravityCenter);
2950
+ }
2951
+
2952
+ function fixedOutboundBehavior(payload) {
2953
+ return new Line(positions[payload.outputSide === EFConnectableSide.AUTO ? EFConnectableSide.BOTTOM : payload.outputSide](payload.outputRect), positions[payload.inputSide === EFConnectableSide.AUTO ? EFConnectableSide.TOP : payload.inputSide](payload.inputRect));
2954
+ }
2955
+ const positions = {
2979
2956
  [EFConnectableSide.TOP]: (rect) => {
2980
2957
  const result = new Point();
2981
2958
  result.y = rect.y;
@@ -3002,6 +2979,28 @@ const positionFixedOutbound = {
3002
2979
  },
3003
2980
  };
3004
2981
 
2982
+ let CalculateConnectionLineByBehaviorExecution = class CalculateConnectionLineByBehaviorExecution {
2983
+ _handlers = {
2984
+ [EFConnectionBehavior.FLOATING.toString()]: floatingBehavior,
2985
+ [EFConnectionBehavior.FIXED_CENTER.toString()]: fixedCenterBehavior,
2986
+ [EFConnectionBehavior.FIXED.toString()]: fixedOutboundBehavior,
2987
+ };
2988
+ handle(payload) {
2989
+ return this._handlers[payload.behavior](payload);
2990
+ }
2991
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: CalculateConnectionLineByBehaviorExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2992
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: CalculateConnectionLineByBehaviorExecution });
2993
+ };
2994
+ CalculateConnectionLineByBehaviorExecution = __decorate([
2995
+ FExecutionRegister(CalculateConnectionLineByBehaviorRequest)
2996
+ ], CalculateConnectionLineByBehaviorExecution);
2997
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: CalculateConnectionLineByBehaviorExecution, decorators: [{
2998
+ type: Injectable
2999
+ }] });
3000
+
3001
+ class RedrawConnectionsRequest {
3002
+ }
3003
+
3005
3004
  let RedrawConnectionsExecution = class RedrawConnectionsExecution {
3006
3005
  fComponentsStore;
3007
3006
  fMediator;
@@ -3039,7 +3038,7 @@ let RedrawConnectionsExecution = class RedrawConnectionsExecution {
3039
3038
  connection.isSelected() ? connection.select() : null;
3040
3039
  }
3041
3040
  getLine(output, input, connection) {
3042
- return this.fMediator.send(new GetConnectionLineRequest(this.fMediator.send(new GetElementRectInFlowRequest(output.hostElement)), this.fMediator.send(new GetElementRectInFlowRequest(input.hostElement)), connection.fBehavior, output.fConnectableSide, input.fConnectableSide));
3041
+ return this.fMediator.send(new CalculateConnectionLineByBehaviorRequest(this.fMediator.send(new GetNormalizedElementRectRequest(output.hostElement)), this.fMediator.send(new GetNormalizedElementRectRequest(input.hostElement)), connection.fBehavior, output.fConnectableSide, input.fConnectableSide));
3043
3042
  }
3044
3043
  setMarkers(connection) {
3045
3044
  this.fMediator.send(new CreateConnectionMarkersRequest(connection));
@@ -3150,6 +3149,7 @@ const F_CONNECTION_FEATURES = [
3150
3149
  CreateConnectionMarkersExecution,
3151
3150
  FindClosestInputUsingSnapThresholdExecution,
3152
3151
  GetAllCanBeConnectedInputPositionsExecution,
3152
+ CalculateConnectionLineByBehaviorExecution,
3153
3153
  GetConnectorWithRectExecution,
3154
3154
  RedrawConnectionsExecution,
3155
3155
  RemoveConnectionForCreateFromStoreExecution,
@@ -3808,13 +3808,13 @@ class CreateConnectionDragHandler {
3808
3808
  }
3809
3809
  }
3810
3810
  drawTempConnection(fInputRect) {
3811
- const line = this.fMediator.send(new GetConnectionLineRequest(this.fOutputWithRect.fRect, fInputRect, this.fConnection.fBehavior, this.fOutputWithRect.fConnector.fConnectableSide, EFConnectableSide.TOP));
3811
+ const line = this.fMediator.send(new CalculateConnectionLineByBehaviorRequest(this.fOutputWithRect.fRect, fInputRect, this.fConnection.fBehavior, this.fOutputWithRect.fConnector.fConnectableSide, EFConnectableSide.TOP));
3812
3812
  this.fConnection.setLine(line.point1, this.fOutputWithRect.fConnector.fConnectableSide, line.point2, EFConnectableSide.TOP);
3813
3813
  this.fConnection.redraw();
3814
3814
  }
3815
3815
  drawSnapConnection(fInputWithRect) {
3816
3816
  if (fInputWithRect) {
3817
- const line = this.fMediator.send(new GetConnectionLineRequest(this.fOutputWithRect.fRect, fInputWithRect.fRect, this.fSnapConnection.fBehavior, this.fOutputWithRect.fConnector.fConnectableSide, fInputWithRect.fConnector.fConnectableSide));
3817
+ const line = this.fMediator.send(new CalculateConnectionLineByBehaviorRequest(this.fOutputWithRect.fRect, fInputWithRect.fRect, this.fSnapConnection.fBehavior, this.fOutputWithRect.fConnector.fConnectableSide, fInputWithRect.fConnector.fConnectableSide));
3818
3818
  this.fSnapConnection.show();
3819
3819
  this.fSnapConnection.setLine(line.point1, this.fOutputWithRect.fConnector.fConnectableSide, line.point2, fInputWithRect.fConnector.fConnectableSide);
3820
3820
  this.fSnapConnection.redraw();
@@ -4193,13 +4193,13 @@ class ReassignConnectionDragHandler {
4193
4193
  }
4194
4194
  }
4195
4195
  drawConnection(fInputWithRect) {
4196
- const line = this.fMediator.send(new GetConnectionLineRequest(this.fOutputWithRect.fRect, fInputWithRect.fRect, this.fConnection.fBehavior, this.fOutputWithRect.fConnector.fConnectableSide, fInputWithRect.fConnector.fConnectableSide));
4196
+ const line = this.fMediator.send(new CalculateConnectionLineByBehaviorRequest(this.fOutputWithRect.fRect, fInputWithRect.fRect, this.fConnection.fBehavior, this.fOutputWithRect.fConnector.fConnectableSide, fInputWithRect.fConnector.fConnectableSide));
4197
4197
  this.fConnection.setLine(line.point1, this.fOutputWithRect.fConnector.fConnectableSide, line.point2, fInputWithRect.fConnector.fConnectableSide);
4198
4198
  this.fConnection.redraw();
4199
4199
  }
4200
4200
  drawSnapConnection(fInputWithRect) {
4201
4201
  if (fInputWithRect) {
4202
- const line = this.fMediator.send(new GetConnectionLineRequest(this.fOutputWithRect.fRect, fInputWithRect.fRect, this.fSnapConnection.fBehavior, this.fOutputWithRect.fConnector.fConnectableSide, fInputWithRect.fConnector.fConnectableSide));
4202
+ const line = this.fMediator.send(new CalculateConnectionLineByBehaviorRequest(this.fOutputWithRect.fRect, fInputWithRect.fRect, this.fSnapConnection.fBehavior, this.fOutputWithRect.fConnector.fConnectableSide, fInputWithRect.fConnector.fConnectableSide));
4203
4203
  this.fSnapConnection.show();
4204
4204
  this.fSnapConnection.setLine(line.point1, this.fOutputWithRect.fConnector.fConnectableSide, line.point2, fInputWithRect.fConnector.fConnectableSide);
4205
4205
  this.fSnapConnection.redraw();
@@ -4597,7 +4597,7 @@ let IsConnectionUnderNodeExecution = class IsConnectionUnderNodeExecution {
4597
4597
  return connectors.map((x) => x.fId);
4598
4598
  }
4599
4599
  _calculateConnectionsUnderNode(fNode) {
4600
- const fNodeRect = this._fMediator.send(new GetElementRectInFlowRequest(fNode.hostElement));
4600
+ const fNodeRect = this._fMediator.send(new GetNormalizedElementRectRequest(fNode.hostElement));
4601
4601
  return this._fComponentsStore.fConnections.filter((x) => {
4602
4602
  return this._isConnectionHasIntersectionsWithNode(x, fNodeRect);
4603
4603
  });
@@ -4735,7 +4735,7 @@ class ConnectionDragHandler extends ConnectionBaseDragHandler {
4735
4735
  this.redrawConnection(this.getNewLineValue(difference));
4736
4736
  }
4737
4737
  getNewLineValue(difference) {
4738
- return this.fMediator.send(new GetConnectionLineRequest(RoundedRect.fromRoundedRect(this.fOutputWithRect.fRect).addPoint(this.getDifference({ ...difference }, this.sourceRestrictions)), RoundedRect.fromRoundedRect(this.fInputWithRect.fRect).addPoint(this.getDifference({ ...difference }, this.targetRestrictions)), this.connection.fBehavior, this.fOutputWithRect.fConnector.fConnectableSide, this.fInputWithRect.fConnector.fConnectableSide));
4738
+ return this.fMediator.send(new CalculateConnectionLineByBehaviorRequest(RoundedRect.fromRoundedRect(this.fOutputWithRect.fRect).addPoint(this.getDifference({ ...difference }, this.sourceRestrictions)), RoundedRect.fromRoundedRect(this.fInputWithRect.fRect).addPoint(this.getDifference({ ...difference }, this.targetRestrictions)), this.connection.fBehavior, this.fOutputWithRect.fConnector.fConnectableSide, this.fInputWithRect.fConnector.fConnectableSide));
4739
4739
  }
4740
4740
  }
4741
4741
 
@@ -4751,7 +4751,7 @@ class ConnectionTargetDragHandler extends ConnectionBaseDragHandler {
4751
4751
  this.redrawConnection(this.getNewLineValue(difference));
4752
4752
  }
4753
4753
  getNewLineValue(difference) {
4754
- return this.fMediator.send(new GetConnectionLineRequest(RoundedRect.fromRoundedRect(this.fOutputWithRect.fRect), RoundedRect.fromRoundedRect(this.fInputWithRect.fRect).addPoint(this.getDifference({ ...difference }, { min: this.minDistance, max: this.maxDistance })), this.connection.fBehavior, this.fOutputWithRect.fConnector.fConnectableSide, this.fInputWithRect.fConnector.fConnectableSide));
4754
+ return this.fMediator.send(new CalculateConnectionLineByBehaviorRequest(RoundedRect.fromRoundedRect(this.fOutputWithRect.fRect), RoundedRect.fromRoundedRect(this.fInputWithRect.fRect).addPoint(this.getDifference({ ...difference }, { min: this.minDistance, max: this.maxDistance })), this.connection.fBehavior, this.fOutputWithRect.fConnector.fConnectableSide, this.fInputWithRect.fConnector.fConnectableSide));
4755
4755
  }
4756
4756
  }
4757
4757
 
@@ -4840,7 +4840,7 @@ class ConnectionSourceDragHandler extends ConnectionBaseDragHandler {
4840
4840
  this.redrawConnection(this.getNewLineValue(difference));
4841
4841
  }
4842
4842
  getNewLineValue(difference) {
4843
- return this.fMediator.send(new GetConnectionLineRequest(RoundedRect.fromRoundedRect(this.fOutputWithRect.fRect).addPoint(this.getDifference({ ...difference }, { min: this.minDistance, max: this.maxDistance })), RoundedRect.fromRoundedRect(this.fInputWithRect.fRect), this.connection.fBehavior, this.fOutputWithRect.fConnector.fConnectableSide, this.fInputWithRect.fConnector.fConnectableSide));
4843
+ return this.fMediator.send(new CalculateConnectionLineByBehaviorRequest(RoundedRect.fromRoundedRect(this.fOutputWithRect.fRect).addPoint(this.getDifference({ ...difference }, { min: this.minDistance, max: this.maxDistance })), RoundedRect.fromRoundedRect(this.fInputWithRect.fRect), this.connection.fBehavior, this.fOutputWithRect.fConnector.fConnectableSide, this.fInputWithRect.fConnector.fConnectableSide));
4844
4844
  }
4845
4845
  }
4846
4846
 
@@ -5260,7 +5260,7 @@ let NodeDragToParentPreparationExecution = class NodeDragToParentPreparationExec
5260
5260
  }
5261
5261
  getNotDraggedNodesRects() {
5262
5262
  return this.getNotDraggedNodes(this.getDraggedNodes()).map((x) => {
5263
- const rect = this.fMediator.send(new GetElementRectInFlowRequest(x.hostElement));
5263
+ const rect = this.fMediator.send(new GetNormalizedElementRectRequest(x.hostElement));
5264
5264
  return {
5265
5265
  node: x,
5266
5266
  rect: RectExtensions.initialize(rect.x + this.fCanvasPosition.x, rect.y + this.fCanvasPosition.y, rect.width * this.transform.scale, rect.height * this.transform.scale)
@@ -6135,7 +6135,7 @@ let ExternalItemFinalizeExecution = class ExternalItemFinalizeExecution {
6135
6135
  return elements.length ? this.flowHost.contains(elements[0]) : false;
6136
6136
  }
6137
6137
  getRectInCanvas() {
6138
- return this.fMediator.send(new GetElementRectInFlowRequest(this.dragHandler.placeholder));
6138
+ return this.fMediator.send(new GetNormalizedElementRectRequest(this.dragHandler.placeholder));
6139
6139
  }
6140
6140
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: ExternalItemFinalizeExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: i2.FMediator }, { token: i1.BrowserService }], target: i0.ɵɵFactoryTarget.Injectable });
6141
6141
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: ExternalItemFinalizeExecution });
@@ -6525,9 +6525,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
6525
6525
 
6526
6526
  class FSelectionChangeEvent {
6527
6527
  nodes;
6528
+ groups;
6528
6529
  connections;
6529
- constructor(nodes, connections) {
6530
+ constructor(nodes, groups, connections) {
6530
6531
  this.nodes = nodes;
6532
+ this.groups = groups;
6531
6533
  this.connections = connections;
6532
6534
  }
6533
6535
  }
@@ -6808,6 +6810,9 @@ let MinimapCalculateViewBoxExecution = class MinimapCalculateViewBoxExecution {
6808
6810
  return this._fComponentStore.fCanvas;
6809
6811
  }
6810
6812
  handle(request) {
6813
+ if (!this._fFlow || !this._fCanvas) {
6814
+ return RectExtensions.initialize();
6815
+ }
6811
6816
  return this._getRectForMinimapView();
6812
6817
  }
6813
6818
  _getRectForMinimapView() {
@@ -6938,18 +6943,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
6938
6943
  type: Injectable
6939
6944
  }], ctorParameters: () => [{ type: FDraggableDataContext }] });
6940
6945
 
6941
- class GetCanBeSelectedItemsRequest {
6942
- }
6943
-
6944
6946
  class SelectionAreaDragHandle {
6945
6947
  fComponentsStore;
6946
6948
  fSelectionArea;
6947
6949
  fDraggableDataContext;
6948
6950
  fMediator;
6949
- canBeSelected = [];
6950
- selectedByMove = [];
6951
+ _canBeSelected = [];
6952
+ _selectedByMove = [];
6951
6953
  get canvasPosition() {
6952
- return Point.fromPoint(this.fComponentsStore.fCanvas.transform.position).add(this.fComponentsStore.fCanvas.transform.scaledPosition);
6954
+ return Point.fromPoint(this.fComponentsStore.fCanvas.transform.position)
6955
+ .add(this.fComponentsStore.fCanvas.transform.scaledPosition);
6953
6956
  }
6954
6957
  constructor(fComponentsStore, fSelectionArea, fDraggableDataContext, fMediator) {
6955
6958
  this.fComponentsStore = fComponentsStore;
@@ -6958,7 +6961,7 @@ class SelectionAreaDragHandle {
6958
6961
  this.fMediator = fMediator;
6959
6962
  }
6960
6963
  prepareDragSequence() {
6961
- this.canBeSelected = this.fMediator.send(new GetCanBeSelectedItemsRequest());
6964
+ this._canBeSelected = this.fMediator.send(new GetCanBeSelectedItemsRequest());
6962
6965
  this.fSelectionArea.show();
6963
6966
  this.fSelectionArea.draw(RectExtensions.initialize(this.fDraggableDataContext.onPointerDownPosition.x, this.fDraggableDataContext.onPointerDownPosition.y));
6964
6967
  }
@@ -6969,22 +6972,22 @@ class SelectionAreaDragHandle {
6969
6972
  const width = Math.abs(difference.x);
6970
6973
  const height = Math.abs(difference.y);
6971
6974
  this.fSelectionArea.draw(RectExtensions.initialize(x, y, width, height));
6972
- this.selectedByMove = [];
6973
- this.canBeSelected.forEach((item) => {
6975
+ this._selectedByMove = [];
6976
+ this._canBeSelected.forEach((item) => {
6974
6977
  item.element.deselect();
6975
6978
  const itemRect = RectExtensions.addPoint(item.rect, this.canvasPosition);
6976
6979
  const isIntersect = RectExtensions.intersectionWithRect(itemRect, RectExtensions.initialize(x, y, width, height));
6977
6980
  if (isIntersect) {
6978
6981
  item.element.select();
6979
- this.selectedByMove.push(item.element);
6982
+ this._selectedByMove.push(item.element);
6980
6983
  }
6981
6984
  });
6982
6985
  this.fMediator.send(new NotifyTransformChangedRequest());
6983
6986
  }
6984
6987
  onPointerUp() {
6985
6988
  this.fSelectionArea.hide();
6986
- this.fDraggableDataContext.selectedItems.push(...this.selectedByMove);
6987
- if (this.selectedByMove.length > 0) {
6989
+ this.fDraggableDataContext.selectedItems.push(...this._selectedByMove);
6990
+ if (this._selectedByMove.length > 0) {
6988
6991
  this.fDraggableDataContext.isSelectedChanged = true;
6989
6992
  }
6990
6993
  }
@@ -7176,37 +7179,93 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
7176
7179
  type: Injectable
7177
7180
  }], ctorParameters: () => [{ type: FDraggableDataContext }] });
7178
7181
 
7179
- class GetSelectionRequest {
7182
+ class GetCanBeSelectedItemsRequest {
7180
7183
  }
7181
7184
 
7182
- let GetSelectionExecution = class GetSelectionExecution {
7185
+ let GetCanBeSelectedItemsExecution = class GetCanBeSelectedItemsExecution {
7183
7186
  fDraggableDataContext;
7187
+ _fMediator = inject(FMediator);
7188
+ _fComponentsStore = inject(FComponentsStore);
7189
+ get fNodes() {
7190
+ return this._fComponentsStore.fNodes;
7191
+ }
7192
+ get fConnections() {
7193
+ return this._fComponentsStore.fConnections;
7194
+ }
7195
+ get transform() {
7196
+ return this._fComponentsStore.fCanvas.transform;
7197
+ }
7184
7198
  constructor(fDraggableDataContext) {
7185
7199
  this.fDraggableDataContext = fDraggableDataContext;
7186
7200
  }
7187
7201
  handle() {
7188
- let selectedNodes = [];
7189
- let selectedConnections = [];
7190
- this.fDraggableDataContext.selectedItems.forEach((x) => {
7191
- if (x.hostElement.classList.contains('f-node')) {
7192
- selectedNodes.push(x.hostElement.dataset['fNodeId']);
7193
- }
7194
- else {
7195
- selectedConnections.push(x.hostElement.id);
7196
- }
7202
+ return [...this.getNodesWithRects(), ...this.getConnectionsWithRects()].filter((x) => {
7203
+ return !this.fDraggableDataContext.selectedItems.includes(x.element);
7197
7204
  });
7198
- return new FSelectionChangeEvent(selectedNodes, selectedConnections);
7199
7205
  }
7200
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetSelectionExecution, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
7201
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetSelectionExecution });
7206
+ getNodesWithRects() {
7207
+ return this.fNodes.filter((x) => !x.fSelectionDisabled).map((x) => {
7208
+ return {
7209
+ element: x,
7210
+ rect: RectExtensions.mult(this._fMediator.send(new GetNormalizedElementRectRequest(x.hostElement)), this.transform.scale)
7211
+ };
7212
+ });
7213
+ }
7214
+ getConnectionsWithRects() {
7215
+ return this.fConnections.filter((x) => !x.fSelectionDisabled).map((x) => {
7216
+ return {
7217
+ element: x,
7218
+ rect: RectExtensions.mult(this._fMediator.send(new GetNormalizedElementRectRequest(x.boundingElement)), this.transform.scale)
7219
+ };
7220
+ });
7221
+ }
7222
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetCanBeSelectedItemsExecution, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
7223
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetCanBeSelectedItemsExecution });
7202
7224
  };
7203
- GetSelectionExecution = __decorate([
7204
- FExecutionRegister(GetSelectionRequest)
7205
- ], GetSelectionExecution);
7206
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetSelectionExecution, decorators: [{
7225
+ GetCanBeSelectedItemsExecution = __decorate([
7226
+ FExecutionRegister(GetCanBeSelectedItemsRequest)
7227
+ ], GetCanBeSelectedItemsExecution);
7228
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetCanBeSelectedItemsExecution, decorators: [{
7207
7229
  type: Injectable
7208
7230
  }], ctorParameters: () => [{ type: FDraggableDataContext }] });
7209
7231
 
7232
+ class GetCurrentSelectionRequest {
7233
+ }
7234
+
7235
+ let GetCurrentSelectionExecution = class GetCurrentSelectionExecution {
7236
+ _fDraggableDataContext = inject(FDraggableDataContext);
7237
+ handle() {
7238
+ return {
7239
+ nodes: this._getSelectedNodes(),
7240
+ groups: this._getSelectedGroups(),
7241
+ connections: this._getSelectedConnections()
7242
+ };
7243
+ }
7244
+ _getSelectedNodes() {
7245
+ return this._fDraggableDataContext.selectedItems
7246
+ .filter(x => x.hostElement.classList.contains('f-node'))
7247
+ .map(x => x.hostElement.dataset['fNodeId']);
7248
+ }
7249
+ _getSelectedGroups() {
7250
+ return this._fDraggableDataContext.selectedItems
7251
+ .filter(x => x.hostElement.classList.contains('f-group'))
7252
+ .map(x => x.hostElement.dataset['fGroupId']);
7253
+ }
7254
+ _getSelectedConnections() {
7255
+ return this._fDraggableDataContext.selectedItems
7256
+ .filter(x => !x.hostElement.classList.contains('f-node') && !x.hostElement.classList.contains('f-group'))
7257
+ .map(x => x.hostElement.id);
7258
+ }
7259
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetCurrentSelectionExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
7260
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetCurrentSelectionExecution });
7261
+ };
7262
+ GetCurrentSelectionExecution = __decorate([
7263
+ FExecutionRegister(GetCurrentSelectionRequest)
7264
+ ], GetCurrentSelectionExecution);
7265
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetCurrentSelectionExecution, decorators: [{
7266
+ type: Injectable
7267
+ }] });
7268
+
7210
7269
  class SelectRequest {
7211
7270
  nodes;
7212
7271
  connections;
@@ -7495,7 +7554,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
7495
7554
 
7496
7555
  const F_SELECTION_FEATURES = [
7497
7556
  ClearSelectionExecution,
7498
- GetSelectionExecution,
7557
+ GetCanBeSelectedItemsExecution,
7558
+ GetCurrentSelectionExecution,
7499
7559
  SelectExecution,
7500
7560
  SelectAllExecution,
7501
7561
  SelectAndUpdateNodeLayerExecution
@@ -7512,10 +7572,16 @@ let EmitSelectionChangeEventExecution = class EmitSelectionChangeEventExecution
7512
7572
  if (!this._fDraggableDataContext.isSelectedChanged) {
7513
7573
  return;
7514
7574
  }
7515
- this._fSelectionChange.emit(this._fMediator.send(new GetSelectionRequest()));
7575
+ this._emitSelectionChange(this._getSelection());
7516
7576
  this._fDraggableDataContext.isSelectedChanged = false;
7517
7577
  this._fMediator.send(new NotifyTransformChangedRequest());
7518
7578
  }
7579
+ _getSelection() {
7580
+ return this._fMediator.send(new GetCurrentSelectionRequest());
7581
+ }
7582
+ _emitSelectionChange(selection) {
7583
+ this._fSelectionChange.emit(new FSelectionChangeEvent(selection.nodes, selection.groups, selection.connections));
7584
+ }
7519
7585
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: EmitSelectionChangeEventExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
7520
7586
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: EmitSelectionChangeEventExecution });
7521
7587
  };
@@ -7749,6 +7815,125 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
7749
7815
  type: Injectable
7750
7816
  }] });
7751
7817
 
7818
+ class GetFlowStateConnectionsRequest {
7819
+ }
7820
+
7821
+ let GetFlowStateConnectionsExecution = class GetFlowStateConnectionsExecution {
7822
+ fComponentsStore;
7823
+ constructor(fComponentsStore) {
7824
+ this.fComponentsStore = fComponentsStore;
7825
+ }
7826
+ handle(request) {
7827
+ return this.fComponentsStore.fConnections.map((x) => {
7828
+ return {
7829
+ id: x.fId,
7830
+ fOutputId: x.fOutputId,
7831
+ fInputId: x.fInputId,
7832
+ fType: x.fType,
7833
+ fBehavior: x.fBehavior,
7834
+ isSelected: x.isSelected()
7835
+ };
7836
+ });
7837
+ }
7838
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetFlowStateConnectionsExecution, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
7839
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetFlowStateConnectionsExecution });
7840
+ };
7841
+ GetFlowStateConnectionsExecution = __decorate([
7842
+ FExecutionRegister(GetFlowStateConnectionsRequest)
7843
+ ], GetFlowStateConnectionsExecution);
7844
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetFlowStateConnectionsExecution, decorators: [{
7845
+ type: Injectable
7846
+ }], ctorParameters: () => [{ type: FComponentsStore }] });
7847
+
7848
+ class GetFlowStateNodesRequest {
7849
+ type;
7850
+ constructor(type) {
7851
+ this.type = type;
7852
+ }
7853
+ }
7854
+
7855
+ let GetFlowStateNodesExecution = class GetFlowStateNodesExecution {
7856
+ fComponentsStore;
7857
+ constructor(fComponentsStore) {
7858
+ this.fComponentsStore = fComponentsStore;
7859
+ }
7860
+ handle(request) {
7861
+ return this.fComponentsStore.fNodes.filter((x) => x instanceof request.type).map((x) => {
7862
+ return {
7863
+ id: x.fId,
7864
+ parent: x.fParentId,
7865
+ position: x.position,
7866
+ size: x.size,
7867
+ fOutputs: this.getOutputs(x.hostElement),
7868
+ fInputs: this.getInputs(x.hostElement),
7869
+ isSelected: x.isSelected()
7870
+ };
7871
+ });
7872
+ }
7873
+ getOutputs(hostElement) {
7874
+ return this.fComponentsStore.fOutputs.filter((x) => hostElement.contains(x.hostElement)).map((x) => {
7875
+ return {
7876
+ id: x.fId,
7877
+ fConnectableSide: x.fConnectableSide
7878
+ };
7879
+ });
7880
+ }
7881
+ getInputs(hostElement) {
7882
+ return this.fComponentsStore.fInputs.filter((x) => hostElement.contains(x.hostElement)).map((x) => {
7883
+ return {
7884
+ id: x.fId,
7885
+ fConnectableSide: x.fConnectableSide
7886
+ };
7887
+ });
7888
+ }
7889
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetFlowStateNodesExecution, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
7890
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetFlowStateNodesExecution });
7891
+ };
7892
+ GetFlowStateNodesExecution = __decorate([
7893
+ FExecutionRegister(GetFlowStateNodesRequest)
7894
+ ], GetFlowStateNodesExecution);
7895
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetFlowStateNodesExecution, decorators: [{
7896
+ type: Injectable
7897
+ }], ctorParameters: () => [{ type: FComponentsStore }] });
7898
+
7899
+ class GetFlowStateRequest {
7900
+ }
7901
+
7902
+ let GetFlowStateExecution = class GetFlowStateExecution {
7903
+ fComponentsStore;
7904
+ fMediator;
7905
+ constructor(fComponentsStore, fMediator) {
7906
+ this.fComponentsStore = fComponentsStore;
7907
+ this.fMediator = fMediator;
7908
+ }
7909
+ handle(payload) {
7910
+ return {
7911
+ position: this.getCanvasPosition(this.fComponentsStore.fCanvas.transform),
7912
+ scale: this.fComponentsStore.fCanvas.transform.scale,
7913
+ nodes: this.fMediator.send(new GetFlowStateNodesRequest(FNodeDirective)),
7914
+ groups: this.fMediator.send(new GetFlowStateNodesRequest(FGroupDirective)),
7915
+ connections: this.fMediator.send(new GetFlowStateConnectionsRequest())
7916
+ };
7917
+ }
7918
+ getCanvasPosition(transform) {
7919
+ return PointExtensions.sum(transform.position, transform.scaledPosition);
7920
+ }
7921
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetFlowStateExecution, deps: [{ token: FComponentsStore }, { token: i2.FMediator }], target: i0.ɵɵFactoryTarget.Injectable });
7922
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetFlowStateExecution });
7923
+ };
7924
+ GetFlowStateExecution = __decorate([
7925
+ FExecutionRegister(GetFlowStateRequest)
7926
+ ], GetFlowStateExecution);
7927
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetFlowStateExecution, decorators: [{
7928
+ type: Injectable
7929
+ }], ctorParameters: () => [{ type: FComponentsStore }, { type: i2.FMediator }] });
7930
+
7931
+ const GET_FLOW_STATE_PROVIDERS = [
7932
+ GetFlowStateExecution,
7933
+ GetFlowStateNodesExecution,
7934
+ GetFlowStateConnectionsExecution
7935
+ ];
7936
+
7752
7937
  class RemoveFlowFromStoreRequest {
7753
7938
  }
7754
7939
 
@@ -7771,6 +7956,7 @@ const F_FLOW_FEATURES = [
7771
7956
  AddFlowToStoreExecution,
7772
7957
  GetFlowExecution,
7773
7958
  GetFlowHostElementExecution,
7959
+ ...GET_FLOW_STATE_PROVIDERS,
7774
7960
  RemoveFlowFromStoreExecution
7775
7961
  ];
7776
7962
 
@@ -7850,7 +8036,9 @@ let CalculateNodesBoundingBoxExecution = class CalculateNodesBoundingBoxExecutio
7850
8036
  return RectExtensions.union(this._getNodesRects());
7851
8037
  }
7852
8038
  _getNodesRects() {
7853
- return this._fComponentsStore.fNodes.map((x) => this._getElementRect(x.hostElement));
8039
+ return this._fComponentsStore.fNodes.map((x) => {
8040
+ return this._getElementRect(x.hostElement);
8041
+ });
7854
8042
  }
7855
8043
  _getElementRect(element) {
7856
8044
  return RectExtensions.fromElement(element);
@@ -7865,6 +8053,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
7865
8053
  type: Injectable
7866
8054
  }] });
7867
8055
 
8056
+ class CalculateNodesBoundingBoxNormalizedPositionRequest {
8057
+ }
8058
+
8059
+ let CalculateNodesBoundingBoxNormalizedPositionExecution = class CalculateNodesBoundingBoxNormalizedPositionExecution {
8060
+ _fComponentsStore = inject(FComponentsStore);
8061
+ handle(request) {
8062
+ return RectExtensions.union(this._getNodesRects());
8063
+ }
8064
+ _getNodesRects() {
8065
+ return this._fComponentsStore.fNodes.map((x) => {
8066
+ return this._getElementRect(x, RectExtensions.fromElement(x.hostElement));
8067
+ });
8068
+ }
8069
+ _getElementRect(fNode, rect) {
8070
+ return RectExtensions.initialize(fNode.position.x, fNode.position.y, rect.width, rect.height);
8071
+ }
8072
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: CalculateNodesBoundingBoxNormalizedPositionExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
8073
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: CalculateNodesBoundingBoxNormalizedPositionExecution });
8074
+ };
8075
+ CalculateNodesBoundingBoxNormalizedPositionExecution = __decorate([
8076
+ FExecutionRegister(CalculateNodesBoundingBoxNormalizedPositionRequest)
8077
+ ], CalculateNodesBoundingBoxNormalizedPositionExecution);
8078
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: CalculateNodesBoundingBoxNormalizedPositionExecution, decorators: [{
8079
+ type: Injectable
8080
+ }] });
8081
+
7868
8082
  class GetNodesRequest {
7869
8083
  }
7870
8084
 
@@ -7941,240 +8155,37 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
7941
8155
  const F_NODE_FEATURES = [
7942
8156
  AddNodeToStoreExecution,
7943
8157
  CalculateNodesBoundingBoxExecution,
8158
+ CalculateNodesBoundingBoxNormalizedPositionExecution,
7944
8159
  GetNodesExecution,
7945
8160
  UpdateNodeWhenStateOrSizeChangedExecution,
7946
8161
  RemoveNodeFromStoreExecution
7947
8162
  ];
7948
8163
 
7949
- let GetCanBeSelectedItemsExecution = class GetCanBeSelectedItemsExecution {
7950
- fComponentsStore;
7951
- fDraggableDataContext;
7952
- fMediator;
7953
- get fNodes() {
7954
- return this.fComponentsStore.fNodes;
7955
- }
7956
- get fConnections() {
7957
- return this.fComponentsStore.fConnections;
7958
- }
7959
- get transform() {
7960
- return this.fComponentsStore.fCanvas.transform;
7961
- }
7962
- constructor(fComponentsStore, fDraggableDataContext, fMediator) {
7963
- this.fComponentsStore = fComponentsStore;
7964
- this.fDraggableDataContext = fDraggableDataContext;
7965
- this.fMediator = fMediator;
7966
- }
7967
- handle() {
7968
- return [...this.getNodesWithRects(), ...this.getConnectionsWithRects()].filter((x) => {
7969
- return !this.fDraggableDataContext.selectedItems.includes(x.element);
7970
- });
7971
- }
7972
- getNodesWithRects() {
7973
- return this.fNodes.filter((x) => !x.fSelectionDisabled).map((x) => {
7974
- return {
7975
- element: x,
7976
- rect: RectExtensions.mult(this.fMediator.send(new GetElementRectInFlowRequest(x.hostElement)), this.transform.scale)
7977
- };
7978
- });
7979
- }
7980
- getConnectionsWithRects() {
7981
- return this.fConnections.filter((x) => !x.fSelectionDisabled).map((x) => {
7982
- return {
7983
- element: x,
7984
- rect: RectExtensions.mult(this.fMediator.send(new GetElementRectInFlowRequest(x.boundingElement)), this.transform.scale)
7985
- };
7986
- });
7987
- }
7988
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetCanBeSelectedItemsExecution, deps: [{ token: FComponentsStore }, { token: FDraggableDataContext }, { token: i2.FMediator }], target: i0.ɵɵFactoryTarget.Injectable });
7989
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetCanBeSelectedItemsExecution });
7990
- };
7991
- GetCanBeSelectedItemsExecution = __decorate([
7992
- FExecutionRegister(GetCanBeSelectedItemsRequest)
7993
- ], GetCanBeSelectedItemsExecution);
7994
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetCanBeSelectedItemsExecution, decorators: [{
7995
- type: Injectable
7996
- }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: i2.FMediator }] });
7997
-
7998
- class GetFlowStateConnectionsRequest {
7999
- }
8000
-
8001
- let GetFlowStateConnectionsExecution = class GetFlowStateConnectionsExecution {
8002
- fComponentsStore;
8003
- constructor(fComponentsStore) {
8004
- this.fComponentsStore = fComponentsStore;
8005
- }
8006
- handle(request) {
8007
- return this.fComponentsStore.fConnections.map((x) => {
8008
- return {
8009
- id: x.fId,
8010
- fOutputId: x.fOutputId,
8011
- fInputId: x.fInputId,
8012
- fType: x.fType,
8013
- fBehavior: x.fBehavior,
8014
- isSelected: x.isSelected()
8015
- };
8016
- });
8017
- }
8018
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetFlowStateConnectionsExecution, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
8019
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetFlowStateConnectionsExecution });
8020
- };
8021
- GetFlowStateConnectionsExecution = __decorate([
8022
- FExecutionRegister(GetFlowStateConnectionsRequest)
8023
- ], GetFlowStateConnectionsExecution);
8024
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetFlowStateConnectionsExecution, decorators: [{
8025
- type: Injectable
8026
- }], ctorParameters: () => [{ type: FComponentsStore }] });
8027
-
8028
- class GetFlowStateNodesRequest {
8029
- type;
8030
- constructor(type) {
8031
- this.type = type;
8032
- }
8033
- }
8034
-
8035
- let GetFlowStateNodesExecution = class GetFlowStateNodesExecution {
8036
- fComponentsStore;
8037
- constructor(fComponentsStore) {
8038
- this.fComponentsStore = fComponentsStore;
8039
- }
8040
- handle(request) {
8041
- return this.fComponentsStore.fNodes.filter((x) => x instanceof request.type).map((x) => {
8042
- return {
8043
- id: x.fId,
8044
- parent: x.fParentId,
8045
- position: x.position,
8046
- size: x.size,
8047
- fOutputs: this.getOutputs(x.hostElement),
8048
- fInputs: this.getInputs(x.hostElement),
8049
- isSelected: x.isSelected()
8050
- };
8051
- });
8052
- }
8053
- getOutputs(hostElement) {
8054
- return this.fComponentsStore.fOutputs.filter((x) => hostElement.contains(x.hostElement)).map((x) => {
8055
- return {
8056
- id: x.fId,
8057
- fConnectableSide: x.fConnectableSide
8058
- };
8059
- });
8060
- }
8061
- getInputs(hostElement) {
8062
- return this.fComponentsStore.fInputs.filter((x) => hostElement.contains(x.hostElement)).map((x) => {
8063
- return {
8064
- id: x.fId,
8065
- fConnectableSide: x.fConnectableSide
8066
- };
8067
- });
8068
- }
8069
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetFlowStateNodesExecution, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
8070
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetFlowStateNodesExecution });
8071
- };
8072
- GetFlowStateNodesExecution = __decorate([
8073
- FExecutionRegister(GetFlowStateNodesRequest)
8074
- ], GetFlowStateNodesExecution);
8075
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetFlowStateNodesExecution, decorators: [{
8076
- type: Injectable
8077
- }], ctorParameters: () => [{ type: FComponentsStore }] });
8078
-
8079
- class GetFlowStateRequest {
8080
- }
8081
-
8082
- let GetFlowStateExecution = class GetFlowStateExecution {
8083
- fComponentsStore;
8084
- fMediator;
8085
- constructor(fComponentsStore, fMediator) {
8086
- this.fComponentsStore = fComponentsStore;
8087
- this.fMediator = fMediator;
8088
- }
8089
- handle(payload) {
8090
- return {
8091
- position: this.getCanvasPosition(this.fComponentsStore.fCanvas.transform),
8092
- scale: this.fComponentsStore.fCanvas.transform.scale,
8093
- nodes: this.fMediator.send(new GetFlowStateNodesRequest(FNodeDirective)),
8094
- groups: this.fMediator.send(new GetFlowStateNodesRequest(FGroupDirective)),
8095
- connections: this.fMediator.send(new GetFlowStateConnectionsRequest())
8096
- };
8097
- }
8098
- getCanvasPosition(transform) {
8099
- return PointExtensions.sum(transform.position, transform.scaledPosition);
8100
- }
8101
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetFlowStateExecution, deps: [{ token: FComponentsStore }, { token: i2.FMediator }], target: i0.ɵɵFactoryTarget.Injectable });
8102
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetFlowStateExecution });
8103
- };
8104
- GetFlowStateExecution = __decorate([
8105
- FExecutionRegister(GetFlowStateRequest)
8106
- ], GetFlowStateExecution);
8107
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetFlowStateExecution, decorators: [{
8108
- type: Injectable
8109
- }], ctorParameters: () => [{ type: FComponentsStore }, { type: i2.FMediator }] });
8110
-
8111
- const GET_FLOW_STATE_PROVIDERS = [
8112
- GetFlowStateExecution,
8113
- GetFlowStateNodesExecution,
8114
- GetFlowStateConnectionsExecution
8115
- ];
8116
-
8117
- class GetScaledNodeRectsWithFlowPositionRequest {
8118
- }
8119
-
8120
- let GetScaledNodeRectsWithFlowPositionExecution = class GetScaledNodeRectsWithFlowPositionExecution {
8121
- fComponentsStore;
8122
- constructor(fComponentsStore) {
8123
- this.fComponentsStore = fComponentsStore;
8124
- }
8125
- handle(request) {
8126
- return RectExtensions.union(this.getNodesRects());
8127
- }
8128
- getNodesRects() {
8129
- return this.getNodes().map((x) => {
8130
- const rect = RectExtensions.fromElement(x.hostElement);
8131
- return RectExtensions.initialize(x.position.x, x.position.y, rect.width, rect.height);
8132
- });
8133
- }
8134
- getNodes() {
8135
- return this.fComponentsStore.fNodes;
8136
- }
8137
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetScaledNodeRectsWithFlowPositionExecution, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
8138
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetScaledNodeRectsWithFlowPositionExecution });
8139
- };
8140
- GetScaledNodeRectsWithFlowPositionExecution = __decorate([
8141
- FExecutionRegister(GetScaledNodeRectsWithFlowPositionRequest)
8142
- ], GetScaledNodeRectsWithFlowPositionExecution);
8143
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetScaledNodeRectsWithFlowPositionExecution, decorators: [{
8144
- type: Injectable
8145
- }], ctorParameters: () => [{ type: FComponentsStore }] });
8146
-
8147
- class GetPositionInFlowRequest {
8164
+ class GetNormalizedPointRequest {
8148
8165
  position;
8149
8166
  constructor(position) {
8150
8167
  this.position = position;
8151
8168
  }
8152
8169
  }
8153
8170
 
8154
- let GetPositionInFlowExecution = class GetPositionInFlowExecution {
8155
- fComponentsStore;
8156
- get transform() {
8157
- return this.fComponentsStore.fCanvas.transform;
8158
- }
8159
- get flowHost() {
8160
- return this.fComponentsStore.flowHost;
8161
- }
8162
- constructor(fComponentsStore) {
8163
- this.fComponentsStore = fComponentsStore;
8171
+ let GetNormalizedPointExecution = class GetNormalizedPointExecution {
8172
+ _fComponentsStore = inject(FComponentsStore);
8173
+ get _transform() {
8174
+ return this._fComponentsStore.fCanvas.transform;
8164
8175
  }
8165
8176
  handle(request) {
8166
- return Point.fromPoint(request.position).elementTransform(this.flowHost)
8167
- .sub(this.transform.scaledPosition).sub(this.transform.position).div(this.transform.scale);
8177
+ return Point.fromPoint(request.position).elementTransform(this._fComponentsStore.flowHost)
8178
+ .sub(this._transform.scaledPosition).sub(this._transform.position).div(this._transform.scale);
8168
8179
  }
8169
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetPositionInFlowExecution, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
8170
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetPositionInFlowExecution });
8180
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetNormalizedPointExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
8181
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetNormalizedPointExecution });
8171
8182
  };
8172
- GetPositionInFlowExecution = __decorate([
8173
- FExecutionRegister(GetPositionInFlowRequest)
8174
- ], GetPositionInFlowExecution);
8175
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetPositionInFlowExecution, decorators: [{
8183
+ GetNormalizedPointExecution = __decorate([
8184
+ FExecutionRegister(GetNormalizedPointRequest)
8185
+ ], GetNormalizedPointExecution);
8186
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetNormalizedPointExecution, decorators: [{
8176
8187
  type: Injectable
8177
- }], ctorParameters: () => [{ type: FComponentsStore }] });
8188
+ }] });
8178
8189
 
8179
8190
  class SortNodeLayersRequest {
8180
8191
  }
@@ -8336,15 +8347,11 @@ const COMMON_PROVIDERS = [
8336
8347
  ...F_FLOW_FEATURES,
8337
8348
  ...F_LINE_ALIGNMENT_FEATURES,
8338
8349
  ...F_NODE_FEATURES,
8339
- CreateRoundedRectFromElementExecution,
8350
+ GetElementRoundedRectExecution,
8340
8351
  ...F_SELECTION_FEATURES,
8341
- GetCanBeSelectedItemsExecution,
8342
8352
  GetDeepChildrenNodesAndGroupsExecution,
8343
- GetConnectionLineExecution,
8344
- GetElementRectInFlowExecution,
8345
- ...GET_FLOW_STATE_PROVIDERS,
8346
- GetScaledNodeRectsWithFlowPositionExecution,
8347
- GetPositionInFlowExecution,
8353
+ GetNormalizedElementRectExecution,
8354
+ GetNormalizedPointExecution,
8348
8355
  SortItemLayersExecution,
8349
8356
  SortItemsByParentExecution,
8350
8357
  SortNodeLayersExecution,
@@ -8913,14 +8920,14 @@ class FLineAlignmentComponent extends FLineAlignmentBase {
8913
8920
  this.size = this._fFlowHostElement.getBoundingClientRect();
8914
8921
  this.rects = [];
8915
8922
  const draggedNodeRects = currentNodes.map((x) => {
8916
- return this._fMediator.send(new GetElementRectInFlowRequest(x.hostElement));
8923
+ return this._fMediator.send(new GetNormalizedElementRectRequest(x.hostElement));
8917
8924
  });
8918
8925
  this.draggedNodeRect = RectExtensions.union(draggedNodeRects) || RectExtensions.initialize();
8919
8926
  const allNodesExcludeCurrents = allNodes.filter((x) => {
8920
8927
  return !currentNodes.includes(x);
8921
8928
  });
8922
8929
  this.rects = allNodesExcludeCurrents.map((x) => {
8923
- return this._fMediator.send(new GetElementRectInFlowRequest(x.hostElement));
8930
+ return this._fMediator.send(new GetNormalizedElementRectRequest(x.hostElement));
8924
8931
  });
8925
8932
  }
8926
8933
  handle(difference) {
@@ -9167,14 +9174,14 @@ class FFlowComponent extends FFlowBase {
9167
9174
  reset() {
9168
9175
  this._isLoaded = false;
9169
9176
  }
9170
- getAllNodesRect() {
9171
- return this._fMediator.send(new GetScaledNodeRectsWithFlowPositionRequest());
9177
+ getNodesBoundingBox() {
9178
+ return this._fMediator.send(new CalculateNodesBoundingBoxNormalizedPositionRequest());
9172
9179
  }
9173
9180
  getSelection() {
9174
- return this._fMediator.send(new GetSelectionRequest());
9181
+ return this._fMediator.send(new GetCurrentSelectionRequest());
9175
9182
  }
9176
9183
  getPositionInFlow(position) {
9177
- return this._fMediator.send(new GetPositionInFlowRequest(position));
9184
+ return this._fMediator.send(new GetNormalizedPointRequest(position));
9178
9185
  }
9179
9186
  getState() {
9180
9187
  return this._fMediator.send(new GetFlowStateRequest());
@@ -9422,5 +9429,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
9422
9429
  * Generated bundle index. Do not edit.
9423
9430
  */
9424
9431
 
9425
- export { AddBackgroundToStoreExecution, AddBackgroundToStoreRequest, AddCanvasToStoreExecution, AddCanvasToStoreRequest, AddConnectionForCreateToStoreExecution, AddConnectionForCreateToStoreRequest, AddConnectionMarkerToStoreExecution, AddConnectionMarkerToStoreRequest, AddConnectionToStoreExecution, AddConnectionToStoreRequest, AddDndToStoreExecution, AddDndToStoreRequest, AddFlowToStoreExecution, AddFlowToStoreRequest, AddInputToStoreExecution, AddInputToStoreRequest, AddLineAlignmentToStoreExecution, AddLineAlignmentToStoreRequest, AddNodeToStoreExecution, AddNodeToStoreRequest, AddOutletToStoreExecution, AddOutletToStoreRequest, AddOutputToStoreExecution, AddOutputToStoreRequest, AddPatternToBackgroundExecution, AddPatternToBackgroundRequest, AddSnapConnectionToStoreExecution, AddSnapConnectionToStoreRequest, ApplyChildResizeRestrictionsExecution, ApplyChildResizeRestrictionsRequest, ApplyParentResizeRestrictionsExecution, ApplyParentResizeRestrictionsRequest, CANVAS_MOVE_FINALIZE_PROVIDERS, CANVAS_MOVE_PREPARATION_PROVIDERS, CANVAS_PROVIDERS, COMMON_PROVIDERS, CONNECTIONS_PROVIDERS, CONNECTION_GRADIENT, CONNECTION_PATH, CONNECTION_TEXT, CREATE_MOVE_NODE_DRAG_MODEL_FROM_SELECTION_PROVIDERS, CalculateCenterBetweenPointsHandler, CalculateCenterBetweenPointsRequest, CalculateChangedPositionExecution, CalculateChangedPositionRequest, CalculateChangedSizeExecution, CalculateChangedSizeRequest, CalculateConnectionCenterHandler, CalculateConnectionCenterRequest, CalculateConnectorConnectableSideHandler, CalculateConnectorConnectableSideRequest, CalculateFlowPointFromMinimapPointExecution, CalculateFlowPointFromMinimapPointRequest, CalculateNodesBoundingBoxExecution, CalculateNodesBoundingBoxRequest, CanvasDragHandler, CanvasMoveFinalizeExecution, CanvasMoveFinalizeRequest, CanvasMoveFinalizeValidator, CanvasMovePreparationExecution, CanvasMovePreparationRequest, CanvasMovePreparationValidator, CenterGroupOrNodeExecution, CenterGroupOrNodeRequest, ClearSelectionExecution, ClearSelectionRequest, ConnectionBaseDragHandler, ConnectionDragHandler, ConnectionSourceDragHandler, ConnectionTargetDragHandler, CreateConnectionDragHandler, CreateConnectionDragHandlerExecution, CreateConnectionDragHandlerRequest, CreateConnectionFinalizeExecution, CreateConnectionFinalizeRequest, CreateConnectionFinalizeValidator, CreateConnectionFromOutletPreparationExecution, CreateConnectionFromOutletPreparationRequest, CreateConnectionFromOutputPreparationExecution, CreateConnectionFromOutputPreparationRequest, CreateConnectionFromOutputPreparationValidator, CreateConnectionMarkersExecution, CreateConnectionMarkersRequest, CreateConnectionPreparationExecution, CreateConnectionPreparationRequest, CreateConnectionPreparationValidator, CreateMoveNodesDragModelFromSelectionExecution, CreateMoveNodesDragModelFromSelectionRequest, CreateRoundedRectFromElementExecution, CreateRoundedRectFromElementRequest, DRAG_AND_DROP_COMMON_PROVIDERS, EFConnectableSide, EFConnectionBehavior, EFConnectionType, EFMarkerType, EFResizeHandleType, EXTERNAL_ITEM_FINALIZE_PROVIDERS, EXTERNAL_ITEM_PREPARATION_PROVIDERS, EmitSelectionChangeEventExecution, EmitSelectionChangeEventRequest, EndDragSequenceExecution, EndDragSequenceRequest, ExternalItemDragHandler, ExternalItemFinalizeExecution, ExternalItemFinalizeRequest, ExternalItemFinalizeValidator, ExternalItemPreparationExecution, ExternalItemPreparationRequest, ExternalItemPreparationValidator, FBackgroundBase, FBackgroundComponent, FBezierPathBuilder, FCanvasBase, FCanvasChangeEvent, FCanvasComponent, FChannel, FChannelHub, FCirclePatternComponent, FComponentsStore, FConnectionBase, FConnectionCenterDirective, FConnectionComponent, FConnectionDragHandleComponent, FConnectionFactory, FConnectionForCreateComponent, FConnectionGradientComponent, FConnectionPathComponent, FConnectionSelectionComponent, FConnectionTextComponent, FConnectionTextPathDirective, FConnectorBase, FCreateConnectionEvent, FCreateNodeEvent, FDragHandleDirective, FDraggableBase, FDraggableDataContext, FDraggableDirective, FDropToGroupEvent, FExternalItemBase, FExternalItemDirective, FExternalItemService, FFlowBase, FFlowComponent, FFlowModule, FGroupDirective, FLineAlignmentBase, FLineAlignmentComponent, FMarkerBase, FMarkerDirective, FMinimapCanvasDirective, FMinimapComponent, FMinimapData, FMinimapDragHandler, FMinimapFlowDirective, FMinimapViewDirective, FNodeBase, FNodeDirective, FNodeInputBase, FNodeInputDirective, FNodeIntersectedWithConnections, FNodeOutletBase, FNodeOutletDirective, FNodeOutputBase, FNodeOutputDirective, FReassignConnectionEvent, FRectPatternComponent, FResizeChannel, FResizeHandleDirective, FRotateHandleDirective, FSegmentPathBuilder, FSelectionAreaBase, FSelectionAreaComponent, FSelectionChangeEvent, FSnapConnectionComponent, FStraightPathBuilder, FZoomBase, FZoomDirective, F_BACKGROUND, F_BACKGROUND_FEATURES, F_BACKGROUND_PATTERN, F_BACKGROUND_PROVIDERS, F_CANVAS, F_CANVAS_FEATURES, F_CANVAS_PROVIDERS, F_CONNECTION_BUILDERS, F_CONNECTION_DRAG_HANDLE_CLASS, F_CONNECTION_FEATURES, F_CONNECTION_IDENTIFIERS, F_CONNECTION_PROVIDERS, F_CONNECTORS_FEATURES, F_CONNECTORS_PROVIDERS, F_DRAGGABLE_FEATURES, F_DRAGGABLE_PROVIDERS, F_DRAG_AND_DROP_PLUGIN, F_DRAG_HANDLE, F_EXTERNAL_ITEM, F_EXTERNAL_ITEM_DRAG_AND_DROP_PROVIDERS, F_EXTERNAL_ITEM_PROVIDERS, F_FLOW, F_FLOW_FEATURES, F_FLOW_PROVIDERS, F_LINE_ALIGNMENT, F_LINE_ALIGNMENT_FEATURES, F_LINE_ALIGNMENT_PROVIDERS, F_MARKER, F_MINIMAP_DRAG_AND_DROP_PROVIDERS, F_MINIMAP_PROVIDERS, F_NODE, F_NODE_FEATURES, F_NODE_INPUT, F_NODE_OUTLET, F_NODE_OUTPUT, F_NODE_PROVIDERS, F_RESIZE_HANDLE, F_SELECTED_CLASS, F_SELECTION_AREA_DRAG_AND_DROP_PROVIDERS, F_SELECTION_AREA_PROVIDERS, F_SELECTION_FEATURES, F_STORAGE_PROVIDERS, F_ZOOM, F_ZOOM_PROVIDERS, FindClosestInputUsingSnapThresholdExecution, FindClosestInputUsingSnapThresholdRequest, FitToFlowExecution, FitToFlowRequest, GET_FLOW_STATE_PROVIDERS, GetAllCanBeConnectedInputPositionsExecution, GetAllCanBeConnectedInputPositionsRequest, GetCanBeConnectedOutputByOutletExecution, GetCanBeConnectedOutputByOutletRequest, GetCanBeConnectedOutputByOutletValidator, GetCanBeSelectedItemsExecution, GetCanvasExecution, GetCanvasRequest, GetConnectionLineExecution, GetConnectionLineRequest, GetConnectorWithRectExecution, GetConnectorWithRectRequest, GetDeepChildrenNodesAndGroupsExecution, GetDeepChildrenNodesAndGroupsRequest, GetElementRectInFlowExecution, GetElementRectInFlowRequest, GetFlowExecution, GetFlowHostElementExecution, GetFlowHostElementRequest, GetFlowRequest, GetFlowStateConnectionsExecution, GetFlowStateConnectionsRequest, GetFlowStateExecution, GetFlowStateNodesExecution, GetFlowStateNodesRequest, GetFlowStateRequest, GetInputUnderPointerExecution, GetInputUnderPointerRequest, GetInputUnderPointerValidator, GetNodeMoveRestrictionsExecution, GetNodeMoveRestrictionsRequest, GetNodePaddingExecution, GetNodePaddingRequest, GetNodeResizeRestrictionsExecution, GetNodeResizeRestrictionsRequest, GetNodesExecution, GetNodesRequest, GetNormalizedChildrenNodesRectExecution, GetNormalizedChildrenNodesRectRequest, GetNormalizedNodeRectExecution, GetNormalizedNodeRectRequest, GetNormalizedParentNodeRectExecution, GetNormalizedParentNodeRectRequest, GetParentNodesExecution, GetParentNodesRequest, GetPositionInFlowExecution, GetPositionInFlowRequest, GetScaledNodeRectsWithFlowPositionExecution, GetScaledNodeRectsWithFlowPositionRequest, GetSelectionExecution, GetSelectionRequest, InitializeDragSequenceExecution, InitializeDragSequenceRequest, InputCanvasPositionExecution, InputCanvasPositionRequest, InputCanvasScaleExecution, InputCanvasScaleRequest, IsArrayHasParentNodeExecution, IsArrayHasParentNodeRequest, IsConnectionUnderNodeExecution, IsConnectionUnderNodeRequest, IsConnectionUnderNodeValidator, IsDragStartedExecution, IsDragStartedRequest, LineElement, LineService, ListenCountChangesExecution, ListenCountChangesRequest, ListenDataChangesExecution, ListenDataChangesRequest, ListenTransformChangesExecution, ListenTransformChangesRequest, MINIMAP_DRAG_FINALIZE_PROVIDERS, MINIMAP_DRAG_PREPARATION_PROVIDERS, MinimapCalculateSvgScaleAndViewBoxExecution, MinimapCalculateSvgScaleAndViewBoxRequest, MinimapCalculateViewBoxExecution, MinimapCalculateViewBoxRequest, MinimapDragFinalizeExecution, MinimapDragFinalizeRequest, MinimapDragFinalizeValidator, MinimapDragPreparationExecution, MinimapDragPreparationRequest, MinimapDragPreparationValidator, MinimapDrawNodesExecution, MinimapDrawNodesRequest, MoveFrontElementsBeforeTargetElementExecution, MoveFrontElementsBeforeTargetElementRequest, NODE_DRAG_TO_PARENT_FINALIZE_PROVIDERS, NODE_DRAG_TO_PARENT_PREPARATION_PROVIDERS, NODE_MOVE_FINALIZE_PROVIDERS, NODE_MOVE_PREPARATION_PROVIDERS, NODE_PROVIDERS, NODE_RESIZE_FINALIZE_PROVIDERS, NODE_RESIZE_PREPARATION_PROVIDERS, NODE_RESIZE_PROVIDERS, NearestCoordinateFinder, NodeDragHandler, NodeDragToParentDragHandler, NodeDragToParentFinalizeExecution, NodeDragToParentFinalizeRequest, NodeDragToParentFinalizeValidator, NodeDragToParentPreparationExecution, NodeDragToParentPreparationRequest, NodeDragToParentPreparationValidator, NodeMoveFinalizeExecution, NodeMoveFinalizeRequest, NodeMoveFinalizeValidator, NodeMovePreparationExecution, NodeMovePreparationRequest, NodeMovePreparationValidator, NodeResizeByChildDragHandler, NodeResizeDragHandler, NodeResizeFinalizeExecution, NodeResizeFinalizeRequest, NodeResizeFinalizeValidator, NodeResizePreparationExecution, NodeResizePreparationRequest, NodeResizePreparationValidator, NotifyDataChangedExecution, NotifyDataChangedRequest, NotifyTransformChangedExecution, NotifyTransformChangedRequest, OnPointerMoveExecution, OnPointerMoveRequest, PrepareDragSequenceExecution, PrepareDragSequenceRequest, PreventDefaultIsExternalItemExecution, PreventDefaultIsExternalItemRequest, PutInputConnectionHandlersToArrayExecution, PutInputConnectionHandlersToArrayRequest, PutOutputConnectionHandlersToArrayExecution, PutOutputConnectionHandlersToArrayRequest, RESIZE_DIRECTIONS, ReassignConnectionDragHandler, ReassignConnectionFinalizeExecution, ReassignConnectionFinalizeRequest, ReassignConnectionFinalizeValidator, ReassignConnectionPreparationExecution, ReassignConnectionPreparationRequest, ReassignConnectionPreparationValidator, RedrawCanvasWithAnimationExecution, RedrawCanvasWithAnimationRequest, RedrawConnectionsExecution, RedrawConnectionsRequest, RemoveBackgroundFromStoreExecution, RemoveBackgroundFromStoreRequest, RemoveCanvasFromStoreExecution, RemoveCanvasFromStoreRequest, RemoveConnectionForCreateFromStoreExecution, RemoveConnectionForCreateFromStoreRequest, RemoveConnectionFromStoreExecution, RemoveConnectionFromStoreRequest, RemoveConnectionMarkerFromStoreExecution, RemoveConnectionMarkerFromStoreRequest, RemoveDndFromStoreExecution, RemoveDndFromStoreRequest, RemoveFlowFromStoreExecution, RemoveFlowFromStoreRequest, RemoveInputFromStoreExecution, RemoveInputFromStoreRequest, RemoveLineAlignmentFromStoreExecution, RemoveLineAlignmentFromStoreRequest, RemoveNodeFromStoreExecution, RemoveNodeFromStoreRequest, RemoveOutletFromStoreExecution, RemoveOutletFromStoreRequest, RemoveOutputFromStoreExecution, RemoveOutputFromStoreRequest, RemoveSnapConnectionFromStoreExecution, RemoveSnapConnectionFromStoreRequest, ResetScaleAndCenterExecution, ResetScaleAndCenterRequest, ResetScaleExecution, ResetScaleRequest, SELECTION_AREA_FINALIZE_PROVIDERS, SELECTION_AREA_PREPARATION_PROVIDERS, SINGLE_SELECT_PROVIDERS, SelectAllExecution, SelectAllRequest, SelectAndUpdateNodeLayerExecution, SelectAndUpdateNodeLayerRequest, SelectExecution, SelectRequest, SelectionAreaDragHandle, SelectionAreaFinalizeExecution, SelectionAreaFinalizeRequest, SelectionAreaFinalizeValidator, SelectionAreaPreparationExecution, SelectionAreaPreparationRequest, SelectionAreaPreparationValidator, SetBackgroundTransformExecution, SetBackgroundTransformRequest, SingleSelectExecution, SingleSelectRequest, SingleSelectValidator, SortItemLayersExecution, SortItemLayersRequest, SortItemsByParentExecution, SortItemsByParentRequest, SortNodeLayersExecution, SortNodeLayersRequest, StartDragSequenceExecution, StartDragSequenceRequest, UpdateItemAndChildrenLayersExecution, UpdateItemAndChildrenLayersRequest, UpdateNodeWhenStateOrSizeChangedExecution, UpdateNodeWhenStateOrSizeChangedRequest, UpdateScaleExecution, UpdateScaleRequest, createSVGElement, debounceTime, getExternalItem, getMarkerEndId, getMarkerSelectedEndId, getMarkerSelectedStartId, getMarkerStartId, isExternalItem, isMobile, isNode, isNodeOutlet, isNodeOutput, mixinChangeSelection, mixinChangeVisibility, notifyOnStart, transitionEnd };
9432
+ export { AddBackgroundToStoreExecution, AddBackgroundToStoreRequest, AddCanvasToStoreExecution, AddCanvasToStoreRequest, AddConnectionForCreateToStoreExecution, AddConnectionForCreateToStoreRequest, AddConnectionMarkerToStoreExecution, AddConnectionMarkerToStoreRequest, AddConnectionToStoreExecution, AddConnectionToStoreRequest, AddDndToStoreExecution, AddDndToStoreRequest, AddFlowToStoreExecution, AddFlowToStoreRequest, AddInputToStoreExecution, AddInputToStoreRequest, AddLineAlignmentToStoreExecution, AddLineAlignmentToStoreRequest, AddNodeToStoreExecution, AddNodeToStoreRequest, AddOutletToStoreExecution, AddOutletToStoreRequest, AddOutputToStoreExecution, AddOutputToStoreRequest, AddPatternToBackgroundExecution, AddPatternToBackgroundRequest, AddSnapConnectionToStoreExecution, AddSnapConnectionToStoreRequest, ApplyChildResizeRestrictionsExecution, ApplyChildResizeRestrictionsRequest, ApplyParentResizeRestrictionsExecution, ApplyParentResizeRestrictionsRequest, CANVAS_MOVE_FINALIZE_PROVIDERS, CANVAS_MOVE_PREPARATION_PROVIDERS, CANVAS_PROVIDERS, COMMON_PROVIDERS, CONNECTIONS_PROVIDERS, CONNECTION_GRADIENT, CONNECTION_PATH, CONNECTION_TEXT, CREATE_MOVE_NODE_DRAG_MODEL_FROM_SELECTION_PROVIDERS, CalculateCenterBetweenPointsHandler, CalculateCenterBetweenPointsRequest, CalculateChangedPositionExecution, CalculateChangedPositionRequest, CalculateChangedSizeExecution, CalculateChangedSizeRequest, CalculateConnectionCenterHandler, CalculateConnectionCenterRequest, CalculateConnectionLineByBehaviorExecution, CalculateConnectionLineByBehaviorRequest, CalculateConnectorConnectableSideHandler, CalculateConnectorConnectableSideRequest, CalculateFlowPointFromMinimapPointExecution, CalculateFlowPointFromMinimapPointRequest, CalculateNodesBoundingBoxExecution, CalculateNodesBoundingBoxNormalizedPositionExecution, CalculateNodesBoundingBoxNormalizedPositionRequest, CalculateNodesBoundingBoxRequest, CanvasDragHandler, CanvasMoveFinalizeExecution, CanvasMoveFinalizeRequest, CanvasMoveFinalizeValidator, CanvasMovePreparationExecution, CanvasMovePreparationRequest, CanvasMovePreparationValidator, CenterGroupOrNodeExecution, CenterGroupOrNodeRequest, ClearSelectionExecution, ClearSelectionRequest, ConnectionBaseDragHandler, ConnectionDragHandler, ConnectionSourceDragHandler, ConnectionTargetDragHandler, CreateConnectionDragHandler, CreateConnectionDragHandlerExecution, CreateConnectionDragHandlerRequest, CreateConnectionFinalizeExecution, CreateConnectionFinalizeRequest, CreateConnectionFinalizeValidator, CreateConnectionFromOutletPreparationExecution, CreateConnectionFromOutletPreparationRequest, CreateConnectionFromOutputPreparationExecution, CreateConnectionFromOutputPreparationRequest, CreateConnectionFromOutputPreparationValidator, CreateConnectionMarkersExecution, CreateConnectionMarkersRequest, CreateConnectionPreparationExecution, CreateConnectionPreparationRequest, CreateConnectionPreparationValidator, CreateMoveNodesDragModelFromSelectionExecution, CreateMoveNodesDragModelFromSelectionRequest, DRAG_AND_DROP_COMMON_PROVIDERS, EFConnectableSide, EFConnectionBehavior, EFConnectionType, EFMarkerType, EFResizeHandleType, EXTERNAL_ITEM_FINALIZE_PROVIDERS, EXTERNAL_ITEM_PREPARATION_PROVIDERS, EmitSelectionChangeEventExecution, EmitSelectionChangeEventRequest, EndDragSequenceExecution, EndDragSequenceRequest, ExternalItemDragHandler, ExternalItemFinalizeExecution, ExternalItemFinalizeRequest, ExternalItemFinalizeValidator, ExternalItemPreparationExecution, ExternalItemPreparationRequest, ExternalItemPreparationValidator, FBackgroundBase, FBackgroundComponent, FBezierPathBuilder, FCanvasBase, FCanvasChangeEvent, FCanvasComponent, FChannel, FChannelHub, FCirclePatternComponent, FComponentsStore, FConnectionBase, FConnectionCenterDirective, FConnectionComponent, FConnectionDragHandleComponent, FConnectionFactory, FConnectionForCreateComponent, FConnectionGradientComponent, FConnectionPathComponent, FConnectionSelectionComponent, FConnectionTextComponent, FConnectionTextPathDirective, FConnectorBase, FCreateConnectionEvent, FCreateNodeEvent, FDragHandleDirective, FDraggableBase, FDraggableDataContext, FDraggableDirective, FDropToGroupEvent, FExternalItemBase, FExternalItemDirective, FExternalItemService, FFlowBase, FFlowComponent, FFlowModule, FGroupDirective, FLineAlignmentBase, FLineAlignmentComponent, FMarkerBase, FMarkerDirective, FMinimapCanvasDirective, FMinimapComponent, FMinimapData, FMinimapDragHandler, FMinimapFlowDirective, FMinimapViewDirective, FNodeBase, FNodeDirective, FNodeInputBase, FNodeInputDirective, FNodeIntersectedWithConnections, FNodeOutletBase, FNodeOutletDirective, FNodeOutputBase, FNodeOutputDirective, FReassignConnectionEvent, FRectPatternComponent, FResizeChannel, FResizeHandleDirective, FRotateHandleDirective, FSegmentPathBuilder, FSelectionAreaBase, FSelectionAreaComponent, FSelectionChangeEvent, FSnapConnectionComponent, FStraightPathBuilder, FZoomBase, FZoomDirective, F_BACKGROUND, F_BACKGROUND_FEATURES, F_BACKGROUND_PATTERN, F_BACKGROUND_PROVIDERS, F_CANVAS, F_CANVAS_FEATURES, F_CANVAS_PROVIDERS, F_CONNECTION_BUILDERS, F_CONNECTION_DRAG_HANDLE_CLASS, F_CONNECTION_FEATURES, F_CONNECTION_IDENTIFIERS, F_CONNECTION_PROVIDERS, F_CONNECTORS_FEATURES, F_CONNECTORS_PROVIDERS, F_DRAGGABLE_FEATURES, F_DRAGGABLE_PROVIDERS, F_DRAG_AND_DROP_PLUGIN, F_DRAG_HANDLE, F_EXTERNAL_ITEM, F_EXTERNAL_ITEM_DRAG_AND_DROP_PROVIDERS, F_EXTERNAL_ITEM_PROVIDERS, F_FLOW, F_FLOW_FEATURES, F_FLOW_PROVIDERS, F_LINE_ALIGNMENT, F_LINE_ALIGNMENT_FEATURES, F_LINE_ALIGNMENT_PROVIDERS, F_MARKER, F_MINIMAP_DRAG_AND_DROP_PROVIDERS, F_MINIMAP_PROVIDERS, F_NODE, F_NODE_FEATURES, F_NODE_INPUT, F_NODE_OUTLET, F_NODE_OUTPUT, F_NODE_PROVIDERS, F_RESIZE_HANDLE, F_SELECTED_CLASS, F_SELECTION_AREA_DRAG_AND_DROP_PROVIDERS, F_SELECTION_AREA_PROVIDERS, F_SELECTION_FEATURES, F_STORAGE_PROVIDERS, F_ZOOM, F_ZOOM_PROVIDERS, FindClosestInputUsingSnapThresholdExecution, FindClosestInputUsingSnapThresholdRequest, FitToFlowExecution, FitToFlowRequest, GET_FLOW_STATE_PROVIDERS, GetAllCanBeConnectedInputPositionsExecution, GetAllCanBeConnectedInputPositionsRequest, GetCanBeConnectedOutputByOutletExecution, GetCanBeConnectedOutputByOutletRequest, GetCanBeConnectedOutputByOutletValidator, GetCanBeSelectedItemsExecution, GetCanBeSelectedItemsRequest, GetCanvasExecution, GetCanvasRequest, GetConnectorWithRectExecution, GetConnectorWithRectRequest, GetCurrentSelectionExecution, GetCurrentSelectionRequest, GetDeepChildrenNodesAndGroupsExecution, GetDeepChildrenNodesAndGroupsRequest, GetElementRoundedRectExecution, GetElementRoundedRectRequest, GetFlowExecution, GetFlowHostElementExecution, GetFlowHostElementRequest, GetFlowRequest, GetFlowStateConnectionsExecution, GetFlowStateConnectionsRequest, GetFlowStateExecution, GetFlowStateNodesExecution, GetFlowStateNodesRequest, GetFlowStateRequest, GetInputUnderPointerExecution, GetInputUnderPointerRequest, GetInputUnderPointerValidator, GetNodeMoveRestrictionsExecution, GetNodeMoveRestrictionsRequest, GetNodePaddingExecution, GetNodePaddingRequest, GetNodeResizeRestrictionsExecution, GetNodeResizeRestrictionsRequest, GetNodesExecution, GetNodesRequest, GetNormalizedChildrenNodesRectExecution, GetNormalizedChildrenNodesRectRequest, GetNormalizedElementRectExecution, GetNormalizedElementRectRequest, GetNormalizedNodeRectExecution, GetNormalizedNodeRectRequest, GetNormalizedParentNodeRectExecution, GetNormalizedParentNodeRectRequest, GetNormalizedPointExecution, GetNormalizedPointRequest, GetParentNodesExecution, GetParentNodesRequest, InitializeDragSequenceExecution, InitializeDragSequenceRequest, InputCanvasPositionExecution, InputCanvasPositionRequest, InputCanvasScaleExecution, InputCanvasScaleRequest, IsArrayHasParentNodeExecution, IsArrayHasParentNodeRequest, IsConnectionUnderNodeExecution, IsConnectionUnderNodeRequest, IsConnectionUnderNodeValidator, IsDragStartedExecution, IsDragStartedRequest, LineElement, LineService, ListenCountChangesExecution, ListenCountChangesRequest, ListenDataChangesExecution, ListenDataChangesRequest, ListenTransformChangesExecution, ListenTransformChangesRequest, MINIMAP_DRAG_FINALIZE_PROVIDERS, MINIMAP_DRAG_PREPARATION_PROVIDERS, MinimapCalculateSvgScaleAndViewBoxExecution, MinimapCalculateSvgScaleAndViewBoxRequest, MinimapCalculateViewBoxExecution, MinimapCalculateViewBoxRequest, MinimapDragFinalizeExecution, MinimapDragFinalizeRequest, MinimapDragFinalizeValidator, MinimapDragPreparationExecution, MinimapDragPreparationRequest, MinimapDragPreparationValidator, MinimapDrawNodesExecution, MinimapDrawNodesRequest, MoveFrontElementsBeforeTargetElementExecution, MoveFrontElementsBeforeTargetElementRequest, NODE_DRAG_TO_PARENT_FINALIZE_PROVIDERS, NODE_DRAG_TO_PARENT_PREPARATION_PROVIDERS, NODE_MOVE_FINALIZE_PROVIDERS, NODE_MOVE_PREPARATION_PROVIDERS, NODE_PROVIDERS, NODE_RESIZE_FINALIZE_PROVIDERS, NODE_RESIZE_PREPARATION_PROVIDERS, NODE_RESIZE_PROVIDERS, NearestCoordinateFinder, NodeDragHandler, NodeDragToParentDragHandler, NodeDragToParentFinalizeExecution, NodeDragToParentFinalizeRequest, NodeDragToParentFinalizeValidator, NodeDragToParentPreparationExecution, NodeDragToParentPreparationRequest, NodeDragToParentPreparationValidator, NodeMoveFinalizeExecution, NodeMoveFinalizeRequest, NodeMoveFinalizeValidator, NodeMovePreparationExecution, NodeMovePreparationRequest, NodeMovePreparationValidator, NodeResizeByChildDragHandler, NodeResizeDragHandler, NodeResizeFinalizeExecution, NodeResizeFinalizeRequest, NodeResizeFinalizeValidator, NodeResizePreparationExecution, NodeResizePreparationRequest, NodeResizePreparationValidator, NotifyDataChangedExecution, NotifyDataChangedRequest, NotifyTransformChangedExecution, NotifyTransformChangedRequest, OnPointerMoveExecution, OnPointerMoveRequest, PrepareDragSequenceExecution, PrepareDragSequenceRequest, PreventDefaultIsExternalItemExecution, PreventDefaultIsExternalItemRequest, PutInputConnectionHandlersToArrayExecution, PutInputConnectionHandlersToArrayRequest, PutOutputConnectionHandlersToArrayExecution, PutOutputConnectionHandlersToArrayRequest, RESIZE_DIRECTIONS, ReassignConnectionDragHandler, ReassignConnectionFinalizeExecution, ReassignConnectionFinalizeRequest, ReassignConnectionFinalizeValidator, ReassignConnectionPreparationExecution, ReassignConnectionPreparationRequest, ReassignConnectionPreparationValidator, RedrawCanvasWithAnimationExecution, RedrawCanvasWithAnimationRequest, RedrawConnectionsExecution, RedrawConnectionsRequest, RemoveBackgroundFromStoreExecution, RemoveBackgroundFromStoreRequest, RemoveCanvasFromStoreExecution, RemoveCanvasFromStoreRequest, RemoveConnectionForCreateFromStoreExecution, RemoveConnectionForCreateFromStoreRequest, RemoveConnectionFromStoreExecution, RemoveConnectionFromStoreRequest, RemoveConnectionMarkerFromStoreExecution, RemoveConnectionMarkerFromStoreRequest, RemoveDndFromStoreExecution, RemoveDndFromStoreRequest, RemoveFlowFromStoreExecution, RemoveFlowFromStoreRequest, RemoveInputFromStoreExecution, RemoveInputFromStoreRequest, RemoveLineAlignmentFromStoreExecution, RemoveLineAlignmentFromStoreRequest, RemoveNodeFromStoreExecution, RemoveNodeFromStoreRequest, RemoveOutletFromStoreExecution, RemoveOutletFromStoreRequest, RemoveOutputFromStoreExecution, RemoveOutputFromStoreRequest, RemoveSnapConnectionFromStoreExecution, RemoveSnapConnectionFromStoreRequest, ResetScaleAndCenterExecution, ResetScaleAndCenterRequest, ResetScaleExecution, ResetScaleRequest, SELECTION_AREA_FINALIZE_PROVIDERS, SELECTION_AREA_PREPARATION_PROVIDERS, SINGLE_SELECT_PROVIDERS, SelectAllExecution, SelectAllRequest, SelectAndUpdateNodeLayerExecution, SelectAndUpdateNodeLayerRequest, SelectExecution, SelectRequest, SelectionAreaDragHandle, SelectionAreaFinalizeExecution, SelectionAreaFinalizeRequest, SelectionAreaFinalizeValidator, SelectionAreaPreparationExecution, SelectionAreaPreparationRequest, SelectionAreaPreparationValidator, SetBackgroundTransformExecution, SetBackgroundTransformRequest, SingleSelectExecution, SingleSelectRequest, SingleSelectValidator, SortItemLayersExecution, SortItemLayersRequest, SortItemsByParentExecution, SortItemsByParentRequest, SortNodeLayersExecution, SortNodeLayersRequest, StartDragSequenceExecution, StartDragSequenceRequest, UpdateItemAndChildrenLayersExecution, UpdateItemAndChildrenLayersRequest, UpdateNodeWhenStateOrSizeChangedExecution, UpdateNodeWhenStateOrSizeChangedRequest, UpdateScaleExecution, UpdateScaleRequest, createSVGElement, debounceTime, fixedCenterBehavior, fixedOutboundBehavior, floatingBehavior, getExternalItem, getMarkerEndId, getMarkerSelectedEndId, getMarkerSelectedStartId, getMarkerStartId, isExternalItem, isMobile, isNode, isNodeOutlet, isNodeOutput, mixinChangeSelection, mixinChangeVisibility, notifyOnStart, transitionEnd };
9426
9433
  //# sourceMappingURL=foblex-flow.mjs.map