@foblex/flow 17.0.4 → 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 (186) 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/f-draggable/providers.d.ts +1 -1
  11. package/domain/{get-flow-state → f-flow/get-flow-state}/get-flow-state-connections/get-flow-state-connections.execution.d.ts +1 -1
  12. package/domain/{get-flow-state → f-flow/get-flow-state}/get-flow-state-nodes/get-flow-state-nodes.execution.d.ts +1 -1
  13. package/domain/{get-flow-state → f-flow/get-flow-state}/get-flow-state.execution.d.ts +1 -1
  14. package/domain/{get-flow-state → f-flow/get-flow-state}/i-f-flow-state-connection.d.ts +1 -1
  15. package/domain/{get-flow-state → f-flow/get-flow-state}/i-f-flow-state-connector.d.ts +1 -1
  16. package/domain/f-flow/index.d.ts +1 -0
  17. package/domain/f-flow/providers.d.ts +1 -1
  18. package/domain/f-node/calculate-nodes-bounding-box-normalized-position/calculate-nodes-bounding-box-normalized-position.execution.d.ts +12 -0
  19. package/domain/f-node/calculate-nodes-bounding-box-normalized-position/calculate-nodes-bounding-box-normalized-position.request.d.ts +2 -0
  20. package/domain/f-node/calculate-nodes-bounding-box-normalized-position/index.d.ts +2 -0
  21. package/domain/f-node/index.d.ts +1 -0
  22. package/domain/f-node/providers.d.ts +2 -1
  23. package/domain/f-selection/get-can-be-selected-items/get-can-be-selected-items.execution.d.ts +18 -0
  24. package/domain/f-selection/get-can-be-selected-items/i-can-be-selected.d.ts +6 -0
  25. package/domain/f-selection/get-can-be-selected-items/index.d.ts +3 -0
  26. package/domain/f-selection/get-current-selection/get-current-selection.execution.d.ts +13 -0
  27. package/domain/f-selection/get-current-selection/get-current-selection.request.d.ts +2 -0
  28. package/domain/f-selection/get-current-selection/i-current-selection.d.ts +5 -0
  29. package/domain/f-selection/get-current-selection/index.d.ts +3 -0
  30. package/domain/f-selection/index.d.ts +2 -1
  31. package/domain/f-selection/providers.d.ts +4 -3
  32. 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
  33. package/domain/get-element-rounded-rect/get-element-rounded-rect.execution.d.ts +13 -0
  34. package/domain/get-element-rounded-rect/index.d.ts +2 -0
  35. 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
  36. package/domain/get-normalized-element-rect/get-normalized-element-rect.execution.d.ts +15 -0
  37. package/domain/get-normalized-element-rect/index.d.ts +2 -0
  38. package/domain/{get-position-in-flow/get-position-in-flow-request.d.ts → get-normalized-point/get-normalized-point-request.d.ts} +1 -1
  39. package/domain/get-normalized-point/get-normalized-point.execution.d.ts +11 -0
  40. package/domain/get-normalized-point/index.d.ts +2 -0
  41. package/domain/index.d.ts +3 -7
  42. package/domain/providers.d.ts +4 -7
  43. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/calculate-connection-line-by-behavior.execution.mjs +29 -0
  44. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/calculate-connection-line-by-behavior.request.mjs +15 -0
  45. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/fixed-center-behavior.mjs +5 -0
  46. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/fixed-outbound-behavior.mjs +32 -0
  47. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/floating-behavior.mjs +14 -0
  48. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/index.mjs +6 -0
  49. package/esm2022/domain/f-connection/get-connector-with-rect/get-connector-with-rect.execution.mjs +3 -3
  50. package/esm2022/domain/f-connection/index.mjs +2 -1
  51. package/esm2022/domain/f-connection/providers.mjs +3 -1
  52. package/esm2022/domain/f-connection/redraw-connections/redraw-connections.execution.mjs +4 -4
  53. package/esm2022/domain/f-draggable/emit-selection-change-event/emit-selection-change-event.execution.mjs +10 -4
  54. package/esm2022/domain/f-flow/get-flow-state/get-flow-state-connections/get-flow-state-connections-request.mjs +3 -0
  55. package/esm2022/domain/f-flow/get-flow-state/get-flow-state-connections/get-flow-state-connections.execution.mjs +34 -0
  56. package/esm2022/domain/f-flow/get-flow-state/get-flow-state-connections/index.mjs +3 -0
  57. package/esm2022/domain/f-flow/get-flow-state/get-flow-state-nodes/get-flow-state-nodes-request.mjs +7 -0
  58. package/esm2022/domain/f-flow/get-flow-state/get-flow-state-nodes/get-flow-state-nodes.execution.mjs +51 -0
  59. package/esm2022/domain/f-flow/get-flow-state/get-flow-state-nodes/index.mjs +3 -0
  60. package/esm2022/domain/f-flow/get-flow-state/get-flow-state.execution.mjs +41 -0
  61. package/esm2022/domain/f-flow/get-flow-state/get-flow-state.request.mjs +3 -0
  62. package/esm2022/domain/f-flow/get-flow-state/i-f-flow-state-connection.mjs +2 -0
  63. package/esm2022/domain/f-flow/get-flow-state/i-f-flow-state-connector.mjs +2 -0
  64. package/esm2022/domain/f-flow/get-flow-state/i-f-flow-state-node.mjs +2 -0
  65. package/esm2022/domain/f-flow/get-flow-state/i-f-flow-state.mjs +2 -0
  66. package/esm2022/domain/f-flow/get-flow-state/index.mjs +10 -0
  67. package/esm2022/domain/f-flow/get-flow-state/providers.mjs +9 -0
  68. package/esm2022/domain/f-flow/index.mjs +2 -1
  69. package/esm2022/domain/f-flow/providers.mjs +3 -1
  70. package/esm2022/domain/f-node/calculate-nodes-bounding-box/calculate-nodes-bounding-box.execution.mjs +4 -2
  71. package/esm2022/domain/f-node/calculate-nodes-bounding-box-normalized-position/calculate-nodes-bounding-box-normalized-position.execution.mjs +31 -0
  72. package/esm2022/domain/f-node/calculate-nodes-bounding-box-normalized-position/calculate-nodes-bounding-box-normalized-position.request.mjs +3 -0
  73. package/esm2022/domain/f-node/calculate-nodes-bounding-box-normalized-position/index.mjs +3 -0
  74. package/esm2022/domain/f-node/index.mjs +2 -1
  75. package/esm2022/domain/f-node/providers.mjs +3 -1
  76. package/esm2022/domain/f-selection/get-can-be-selected-items/get-can-be-selected-items-request.mjs +3 -0
  77. package/esm2022/domain/f-selection/get-can-be-selected-items/get-can-be-selected-items.execution.mjs +57 -0
  78. package/esm2022/domain/f-selection/get-can-be-selected-items/i-can-be-selected.mjs +2 -0
  79. package/esm2022/domain/f-selection/get-can-be-selected-items/index.mjs +4 -0
  80. package/esm2022/domain/f-selection/get-current-selection/get-current-selection.execution.mjs +41 -0
  81. package/esm2022/domain/f-selection/get-current-selection/get-current-selection.request.mjs +3 -0
  82. package/esm2022/domain/f-selection/get-current-selection/i-current-selection.mjs +2 -0
  83. package/esm2022/domain/f-selection/get-current-selection/index.mjs +4 -0
  84. package/esm2022/domain/f-selection/index.mjs +3 -2
  85. package/esm2022/domain/f-selection/providers.mjs +6 -4
  86. package/esm2022/domain/get-element-rounded-rect/get-element-rounded-rect-request.mjs +7 -0
  87. package/esm2022/domain/get-element-rounded-rect/get-element-rounded-rect.execution.mjs +32 -0
  88. package/esm2022/domain/{get-element-rect-in-flow → get-element-rounded-rect}/index.mjs +3 -3
  89. package/esm2022/domain/get-normalized-element-rect/get-normalized-element-rect-request.mjs +7 -0
  90. package/esm2022/domain/get-normalized-element-rect/get-normalized-element-rect.execution.mjs +40 -0
  91. package/esm2022/domain/get-normalized-element-rect/index.mjs +3 -0
  92. package/esm2022/domain/get-normalized-point/get-normalized-point-request.mjs +7 -0
  93. package/esm2022/domain/get-normalized-point/get-normalized-point.execution.mjs +27 -0
  94. package/esm2022/domain/get-normalized-point/index.mjs +3 -0
  95. package/esm2022/domain/index.mjs +4 -8
  96. package/esm2022/domain/providers.mjs +7 -15
  97. package/esm2022/f-draggable/connections/create-connection/create-connection.drag-handler.mjs +4 -4
  98. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.mjs +4 -4
  99. package/esm2022/f-draggable/domain/is-connection-under-node/is-connection-under-node.execution.mjs +3 -3
  100. package/esm2022/f-draggable/f-selection-change-event.mjs +4 -2
  101. package/esm2022/f-draggable/node/connection-source.drag-handler.mjs +3 -3
  102. package/esm2022/f-draggable/node/connection-target.drag-handler.mjs +3 -3
  103. package/esm2022/f-draggable/node/connection.drag-handler.mjs +3 -3
  104. package/esm2022/f-draggable/node/node-drag-to-parent-preparation/node-drag-to-parent-preparation.execution.mjs +3 -3
  105. package/esm2022/f-external-item/domain/external-item-finalize/external-item-finalize.execution.mjs +3 -3
  106. package/esm2022/f-flow/f-flow.component.mjs +6 -6
  107. package/esm2022/f-line-alignment/f-line-alignment.component.mjs +4 -4
  108. package/esm2022/f-selection-area/domain/selection-area.drag-handle.mjs +12 -11
  109. package/f-backgroud/providers.d.ts +1 -1
  110. package/f-connection/providers.d.ts +1 -1
  111. package/f-connectors/providers.d.ts +1 -1
  112. package/f-draggable/connections/providers.d.ts +1 -1
  113. package/f-draggable/f-selection-change-event.d.ts +4 -2
  114. package/f-draggable/node/create-move-nodes-drag-model-from-selection/providers.d.ts +1 -1
  115. package/f-draggable/node/providers.d.ts +1 -1
  116. package/f-draggable/providers.d.ts +1 -1
  117. package/f-flow/f-flow.component.d.ts +3 -4
  118. package/f-minimap/domain/providers.d.ts +1 -1
  119. package/f-node/providers.d.ts +1 -1
  120. package/f-selection-area/domain/selection-area.drag-handle.d.ts +2 -2
  121. package/f-storage/providers.d.ts +1 -1
  122. package/fesm2022/foblex-flow.mjs +363 -359
  123. package/fesm2022/foblex-flow.mjs.map +1 -1
  124. package/package.json +1 -1
  125. package/domain/create-rounded-rect-from-element/create-rounded-rect-from-element.execution.d.ts +0 -15
  126. package/domain/create-rounded-rect-from-element/index.d.ts +0 -2
  127. package/domain/f-selection/get-selection/get-selection.execution.d.ts +0 -11
  128. package/domain/f-selection/get-selection/get-selection.request.d.ts +0 -2
  129. package/domain/f-selection/get-selection/index.d.ts +0 -2
  130. package/domain/get-can-be-selected-items/get-can-be-selected-items.execution.d.ts +0 -19
  131. package/domain/get-can-be-selected-items/i-selectable-with-rect.d.ts +0 -6
  132. package/domain/get-can-be-selected-items/index.d.ts +0 -2
  133. package/domain/get-connection-line/get-connection-line.execution.d.ts +0 -13
  134. package/domain/get-connection-line/index.d.ts +0 -2
  135. package/domain/get-element-rect-in-flow/get-element-rect-in-flow.execution.d.ts +0 -16
  136. package/domain/get-element-rect-in-flow/index.d.ts +0 -2
  137. package/domain/get-position-in-flow/get-position-in-flow.execution.d.ts +0 -14
  138. package/domain/get-position-in-flow/index.d.ts +0 -2
  139. package/domain/get-scaled-node-rects-with-flow-position/get-scaled-node-rects-with-flow-position.execution.d.ts +0 -14
  140. package/domain/get-scaled-node-rects-with-flow-position/get-scaled-node-rects-with-flow-position.request.d.ts +0 -2
  141. package/domain/get-scaled-node-rects-with-flow-position/index.d.ts +0 -2
  142. package/esm2022/domain/create-rounded-rect-from-element/create-rounded-rect-from-element-request.mjs +0 -7
  143. package/esm2022/domain/create-rounded-rect-from-element/create-rounded-rect-from-element.execution.mjs +0 -40
  144. package/esm2022/domain/create-rounded-rect-from-element/index.mjs +0 -3
  145. package/esm2022/domain/f-selection/get-selection/get-selection.execution.mjs +0 -36
  146. package/esm2022/domain/f-selection/get-selection/get-selection.request.mjs +0 -3
  147. package/esm2022/domain/f-selection/get-selection/index.mjs +0 -3
  148. package/esm2022/domain/get-can-be-selected-items/get-can-be-selected-items-request.mjs +0 -3
  149. package/esm2022/domain/get-can-be-selected-items/get-can-be-selected-items.execution.mjs +0 -60
  150. package/esm2022/domain/get-can-be-selected-items/i-selectable-with-rect.mjs +0 -2
  151. package/esm2022/domain/get-can-be-selected-items/index.mjs +0 -3
  152. package/esm2022/domain/get-connection-line/get-connection-line.execution.mjs +0 -65
  153. package/esm2022/domain/get-connection-line/get-connection-line.request.mjs +0 -15
  154. package/esm2022/domain/get-connection-line/index.mjs +0 -3
  155. package/esm2022/domain/get-element-rect-in-flow/get-element-rect-in-flow-request.mjs +0 -7
  156. package/esm2022/domain/get-element-rect-in-flow/get-element-rect-in-flow.execution.mjs +0 -43
  157. package/esm2022/domain/get-flow-state/get-flow-state-connections/get-flow-state-connections-request.mjs +0 -3
  158. package/esm2022/domain/get-flow-state/get-flow-state-connections/get-flow-state-connections.execution.mjs +0 -34
  159. package/esm2022/domain/get-flow-state/get-flow-state-connections/index.mjs +0 -3
  160. package/esm2022/domain/get-flow-state/get-flow-state-nodes/get-flow-state-nodes-request.mjs +0 -7
  161. package/esm2022/domain/get-flow-state/get-flow-state-nodes/get-flow-state-nodes.execution.mjs +0 -51
  162. package/esm2022/domain/get-flow-state/get-flow-state-nodes/index.mjs +0 -3
  163. package/esm2022/domain/get-flow-state/get-flow-state.execution.mjs +0 -41
  164. package/esm2022/domain/get-flow-state/get-flow-state.request.mjs +0 -3
  165. package/esm2022/domain/get-flow-state/i-f-flow-state-connection.mjs +0 -2
  166. package/esm2022/domain/get-flow-state/i-f-flow-state-connector.mjs +0 -2
  167. package/esm2022/domain/get-flow-state/i-f-flow-state-node.mjs +0 -2
  168. package/esm2022/domain/get-flow-state/i-f-flow-state.mjs +0 -2
  169. package/esm2022/domain/get-flow-state/index.mjs +0 -10
  170. package/esm2022/domain/get-flow-state/providers.mjs +0 -9
  171. package/esm2022/domain/get-position-in-flow/get-position-in-flow-request.mjs +0 -7
  172. package/esm2022/domain/get-position-in-flow/get-position-in-flow.execution.mjs +0 -33
  173. package/esm2022/domain/get-position-in-flow/index.mjs +0 -3
  174. package/esm2022/domain/get-scaled-node-rects-with-flow-position/get-scaled-node-rects-with-flow-position.execution.mjs +0 -35
  175. package/esm2022/domain/get-scaled-node-rects-with-flow-position/get-scaled-node-rects-with-flow-position.request.mjs +0 -3
  176. package/esm2022/domain/get-scaled-node-rects-with-flow-position/index.mjs +0 -3
  177. /package/domain/{get-flow-state → f-flow/get-flow-state}/get-flow-state-connections/get-flow-state-connections-request.d.ts +0 -0
  178. /package/domain/{get-flow-state → f-flow/get-flow-state}/get-flow-state-connections/index.d.ts +0 -0
  179. /package/domain/{get-flow-state → f-flow/get-flow-state}/get-flow-state-nodes/get-flow-state-nodes-request.d.ts +0 -0
  180. /package/domain/{get-flow-state → f-flow/get-flow-state}/get-flow-state-nodes/index.d.ts +0 -0
  181. /package/domain/{get-flow-state → f-flow/get-flow-state}/get-flow-state.request.d.ts +0 -0
  182. /package/domain/{get-flow-state → f-flow/get-flow-state}/i-f-flow-state-node.d.ts +0 -0
  183. /package/domain/{get-flow-state → f-flow/get-flow-state}/i-f-flow-state.d.ts +0 -0
  184. /package/domain/{get-flow-state → f-flow/get-flow-state}/index.d.ts +0 -0
  185. /package/domain/{get-flow-state → f-flow/get-flow-state}/providers.d.ts +0 -0
  186. /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
  }
@@ -6941,18 +6943,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
6941
6943
  type: Injectable
6942
6944
  }], ctorParameters: () => [{ type: FDraggableDataContext }] });
6943
6945
 
6944
- class GetCanBeSelectedItemsRequest {
6945
- }
6946
-
6947
6946
  class SelectionAreaDragHandle {
6948
6947
  fComponentsStore;
6949
6948
  fSelectionArea;
6950
6949
  fDraggableDataContext;
6951
6950
  fMediator;
6952
- canBeSelected = [];
6953
- selectedByMove = [];
6951
+ _canBeSelected = [];
6952
+ _selectedByMove = [];
6954
6953
  get canvasPosition() {
6955
- 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);
6956
6956
  }
6957
6957
  constructor(fComponentsStore, fSelectionArea, fDraggableDataContext, fMediator) {
6958
6958
  this.fComponentsStore = fComponentsStore;
@@ -6961,7 +6961,7 @@ class SelectionAreaDragHandle {
6961
6961
  this.fMediator = fMediator;
6962
6962
  }
6963
6963
  prepareDragSequence() {
6964
- this.canBeSelected = this.fMediator.send(new GetCanBeSelectedItemsRequest());
6964
+ this._canBeSelected = this.fMediator.send(new GetCanBeSelectedItemsRequest());
6965
6965
  this.fSelectionArea.show();
6966
6966
  this.fSelectionArea.draw(RectExtensions.initialize(this.fDraggableDataContext.onPointerDownPosition.x, this.fDraggableDataContext.onPointerDownPosition.y));
6967
6967
  }
@@ -6972,22 +6972,22 @@ class SelectionAreaDragHandle {
6972
6972
  const width = Math.abs(difference.x);
6973
6973
  const height = Math.abs(difference.y);
6974
6974
  this.fSelectionArea.draw(RectExtensions.initialize(x, y, width, height));
6975
- this.selectedByMove = [];
6976
- this.canBeSelected.forEach((item) => {
6975
+ this._selectedByMove = [];
6976
+ this._canBeSelected.forEach((item) => {
6977
6977
  item.element.deselect();
6978
6978
  const itemRect = RectExtensions.addPoint(item.rect, this.canvasPosition);
6979
6979
  const isIntersect = RectExtensions.intersectionWithRect(itemRect, RectExtensions.initialize(x, y, width, height));
6980
6980
  if (isIntersect) {
6981
6981
  item.element.select();
6982
- this.selectedByMove.push(item.element);
6982
+ this._selectedByMove.push(item.element);
6983
6983
  }
6984
6984
  });
6985
6985
  this.fMediator.send(new NotifyTransformChangedRequest());
6986
6986
  }
6987
6987
  onPointerUp() {
6988
6988
  this.fSelectionArea.hide();
6989
- this.fDraggableDataContext.selectedItems.push(...this.selectedByMove);
6990
- if (this.selectedByMove.length > 0) {
6989
+ this.fDraggableDataContext.selectedItems.push(...this._selectedByMove);
6990
+ if (this._selectedByMove.length > 0) {
6991
6991
  this.fDraggableDataContext.isSelectedChanged = true;
6992
6992
  }
6993
6993
  }
@@ -7179,37 +7179,93 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
7179
7179
  type: Injectable
7180
7180
  }], ctorParameters: () => [{ type: FDraggableDataContext }] });
7181
7181
 
7182
- class GetSelectionRequest {
7182
+ class GetCanBeSelectedItemsRequest {
7183
7183
  }
7184
7184
 
7185
- let GetSelectionExecution = class GetSelectionExecution {
7185
+ let GetCanBeSelectedItemsExecution = class GetCanBeSelectedItemsExecution {
7186
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
+ }
7187
7198
  constructor(fDraggableDataContext) {
7188
7199
  this.fDraggableDataContext = fDraggableDataContext;
7189
7200
  }
7190
7201
  handle() {
7191
- let selectedNodes = [];
7192
- let selectedConnections = [];
7193
- this.fDraggableDataContext.selectedItems.forEach((x) => {
7194
- if (x.hostElement.classList.contains('f-node')) {
7195
- selectedNodes.push(x.hostElement.dataset['fNodeId']);
7196
- }
7197
- else {
7198
- selectedConnections.push(x.hostElement.id);
7199
- }
7202
+ return [...this.getNodesWithRects(), ...this.getConnectionsWithRects()].filter((x) => {
7203
+ return !this.fDraggableDataContext.selectedItems.includes(x.element);
7200
7204
  });
7201
- return new FSelectionChangeEvent(selectedNodes, selectedConnections);
7202
7205
  }
7203
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetSelectionExecution, deps: [{ token: FDraggableDataContext }], target: i0.ɵɵFactoryTarget.Injectable });
7204
- 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 });
7205
7224
  };
7206
- GetSelectionExecution = __decorate([
7207
- FExecutionRegister(GetSelectionRequest)
7208
- ], GetSelectionExecution);
7209
- 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: [{
7210
7229
  type: Injectable
7211
7230
  }], ctorParameters: () => [{ type: FDraggableDataContext }] });
7212
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
+
7213
7269
  class SelectRequest {
7214
7270
  nodes;
7215
7271
  connections;
@@ -7498,7 +7554,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
7498
7554
 
7499
7555
  const F_SELECTION_FEATURES = [
7500
7556
  ClearSelectionExecution,
7501
- GetSelectionExecution,
7557
+ GetCanBeSelectedItemsExecution,
7558
+ GetCurrentSelectionExecution,
7502
7559
  SelectExecution,
7503
7560
  SelectAllExecution,
7504
7561
  SelectAndUpdateNodeLayerExecution
@@ -7515,10 +7572,16 @@ let EmitSelectionChangeEventExecution = class EmitSelectionChangeEventExecution
7515
7572
  if (!this._fDraggableDataContext.isSelectedChanged) {
7516
7573
  return;
7517
7574
  }
7518
- this._fSelectionChange.emit(this._fMediator.send(new GetSelectionRequest()));
7575
+ this._emitSelectionChange(this._getSelection());
7519
7576
  this._fDraggableDataContext.isSelectedChanged = false;
7520
7577
  this._fMediator.send(new NotifyTransformChangedRequest());
7521
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
+ }
7522
7585
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: EmitSelectionChangeEventExecution, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
7523
7586
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: EmitSelectionChangeEventExecution });
7524
7587
  };
@@ -7752,6 +7815,125 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
7752
7815
  type: Injectable
7753
7816
  }] });
7754
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
+
7755
7937
  class RemoveFlowFromStoreRequest {
7756
7938
  }
7757
7939
 
@@ -7774,6 +7956,7 @@ const F_FLOW_FEATURES = [
7774
7956
  AddFlowToStoreExecution,
7775
7957
  GetFlowExecution,
7776
7958
  GetFlowHostElementExecution,
7959
+ ...GET_FLOW_STATE_PROVIDERS,
7777
7960
  RemoveFlowFromStoreExecution
7778
7961
  ];
7779
7962
 
@@ -7853,7 +8036,9 @@ let CalculateNodesBoundingBoxExecution = class CalculateNodesBoundingBoxExecutio
7853
8036
  return RectExtensions.union(this._getNodesRects());
7854
8037
  }
7855
8038
  _getNodesRects() {
7856
- return this._fComponentsStore.fNodes.map((x) => this._getElementRect(x.hostElement));
8039
+ return this._fComponentsStore.fNodes.map((x) => {
8040
+ return this._getElementRect(x.hostElement);
8041
+ });
7857
8042
  }
7858
8043
  _getElementRect(element) {
7859
8044
  return RectExtensions.fromElement(element);
@@ -7868,6 +8053,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
7868
8053
  type: Injectable
7869
8054
  }] });
7870
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
+
7871
8082
  class GetNodesRequest {
7872
8083
  }
7873
8084
 
@@ -7944,240 +8155,37 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
7944
8155
  const F_NODE_FEATURES = [
7945
8156
  AddNodeToStoreExecution,
7946
8157
  CalculateNodesBoundingBoxExecution,
8158
+ CalculateNodesBoundingBoxNormalizedPositionExecution,
7947
8159
  GetNodesExecution,
7948
8160
  UpdateNodeWhenStateOrSizeChangedExecution,
7949
8161
  RemoveNodeFromStoreExecution
7950
8162
  ];
7951
8163
 
7952
- let GetCanBeSelectedItemsExecution = class GetCanBeSelectedItemsExecution {
7953
- fComponentsStore;
7954
- fDraggableDataContext;
7955
- fMediator;
7956
- get fNodes() {
7957
- return this.fComponentsStore.fNodes;
7958
- }
7959
- get fConnections() {
7960
- return this.fComponentsStore.fConnections;
7961
- }
7962
- get transform() {
7963
- return this.fComponentsStore.fCanvas.transform;
7964
- }
7965
- constructor(fComponentsStore, fDraggableDataContext, fMediator) {
7966
- this.fComponentsStore = fComponentsStore;
7967
- this.fDraggableDataContext = fDraggableDataContext;
7968
- this.fMediator = fMediator;
7969
- }
7970
- handle() {
7971
- return [...this.getNodesWithRects(), ...this.getConnectionsWithRects()].filter((x) => {
7972
- return !this.fDraggableDataContext.selectedItems.includes(x.element);
7973
- });
7974
- }
7975
- getNodesWithRects() {
7976
- return this.fNodes.filter((x) => !x.fSelectionDisabled).map((x) => {
7977
- return {
7978
- element: x,
7979
- rect: RectExtensions.mult(this.fMediator.send(new GetElementRectInFlowRequest(x.hostElement)), this.transform.scale)
7980
- };
7981
- });
7982
- }
7983
- getConnectionsWithRects() {
7984
- return this.fConnections.filter((x) => !x.fSelectionDisabled).map((x) => {
7985
- return {
7986
- element: x,
7987
- rect: RectExtensions.mult(this.fMediator.send(new GetElementRectInFlowRequest(x.boundingElement)), this.transform.scale)
7988
- };
7989
- });
7990
- }
7991
- 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 });
7992
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetCanBeSelectedItemsExecution });
7993
- };
7994
- GetCanBeSelectedItemsExecution = __decorate([
7995
- FExecutionRegister(GetCanBeSelectedItemsRequest)
7996
- ], GetCanBeSelectedItemsExecution);
7997
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetCanBeSelectedItemsExecution, decorators: [{
7998
- type: Injectable
7999
- }], ctorParameters: () => [{ type: FComponentsStore }, { type: FDraggableDataContext }, { type: i2.FMediator }] });
8000
-
8001
- class GetFlowStateConnectionsRequest {
8002
- }
8003
-
8004
- let GetFlowStateConnectionsExecution = class GetFlowStateConnectionsExecution {
8005
- fComponentsStore;
8006
- constructor(fComponentsStore) {
8007
- this.fComponentsStore = fComponentsStore;
8008
- }
8009
- handle(request) {
8010
- return this.fComponentsStore.fConnections.map((x) => {
8011
- return {
8012
- id: x.fId,
8013
- fOutputId: x.fOutputId,
8014
- fInputId: x.fInputId,
8015
- fType: x.fType,
8016
- fBehavior: x.fBehavior,
8017
- isSelected: x.isSelected()
8018
- };
8019
- });
8020
- }
8021
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetFlowStateConnectionsExecution, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
8022
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetFlowStateConnectionsExecution });
8023
- };
8024
- GetFlowStateConnectionsExecution = __decorate([
8025
- FExecutionRegister(GetFlowStateConnectionsRequest)
8026
- ], GetFlowStateConnectionsExecution);
8027
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetFlowStateConnectionsExecution, decorators: [{
8028
- type: Injectable
8029
- }], ctorParameters: () => [{ type: FComponentsStore }] });
8030
-
8031
- class GetFlowStateNodesRequest {
8032
- type;
8033
- constructor(type) {
8034
- this.type = type;
8035
- }
8036
- }
8037
-
8038
- let GetFlowStateNodesExecution = class GetFlowStateNodesExecution {
8039
- fComponentsStore;
8040
- constructor(fComponentsStore) {
8041
- this.fComponentsStore = fComponentsStore;
8042
- }
8043
- handle(request) {
8044
- return this.fComponentsStore.fNodes.filter((x) => x instanceof request.type).map((x) => {
8045
- return {
8046
- id: x.fId,
8047
- parent: x.fParentId,
8048
- position: x.position,
8049
- size: x.size,
8050
- fOutputs: this.getOutputs(x.hostElement),
8051
- fInputs: this.getInputs(x.hostElement),
8052
- isSelected: x.isSelected()
8053
- };
8054
- });
8055
- }
8056
- getOutputs(hostElement) {
8057
- return this.fComponentsStore.fOutputs.filter((x) => hostElement.contains(x.hostElement)).map((x) => {
8058
- return {
8059
- id: x.fId,
8060
- fConnectableSide: x.fConnectableSide
8061
- };
8062
- });
8063
- }
8064
- getInputs(hostElement) {
8065
- return this.fComponentsStore.fInputs.filter((x) => hostElement.contains(x.hostElement)).map((x) => {
8066
- return {
8067
- id: x.fId,
8068
- fConnectableSide: x.fConnectableSide
8069
- };
8070
- });
8071
- }
8072
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetFlowStateNodesExecution, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
8073
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetFlowStateNodesExecution });
8074
- };
8075
- GetFlowStateNodesExecution = __decorate([
8076
- FExecutionRegister(GetFlowStateNodesRequest)
8077
- ], GetFlowStateNodesExecution);
8078
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetFlowStateNodesExecution, decorators: [{
8079
- type: Injectable
8080
- }], ctorParameters: () => [{ type: FComponentsStore }] });
8081
-
8082
- class GetFlowStateRequest {
8083
- }
8084
-
8085
- let GetFlowStateExecution = class GetFlowStateExecution {
8086
- fComponentsStore;
8087
- fMediator;
8088
- constructor(fComponentsStore, fMediator) {
8089
- this.fComponentsStore = fComponentsStore;
8090
- this.fMediator = fMediator;
8091
- }
8092
- handle(payload) {
8093
- return {
8094
- position: this.getCanvasPosition(this.fComponentsStore.fCanvas.transform),
8095
- scale: this.fComponentsStore.fCanvas.transform.scale,
8096
- nodes: this.fMediator.send(new GetFlowStateNodesRequest(FNodeDirective)),
8097
- groups: this.fMediator.send(new GetFlowStateNodesRequest(FGroupDirective)),
8098
- connections: this.fMediator.send(new GetFlowStateConnectionsRequest())
8099
- };
8100
- }
8101
- getCanvasPosition(transform) {
8102
- return PointExtensions.sum(transform.position, transform.scaledPosition);
8103
- }
8104
- 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 });
8105
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetFlowStateExecution });
8106
- };
8107
- GetFlowStateExecution = __decorate([
8108
- FExecutionRegister(GetFlowStateRequest)
8109
- ], GetFlowStateExecution);
8110
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetFlowStateExecution, decorators: [{
8111
- type: Injectable
8112
- }], ctorParameters: () => [{ type: FComponentsStore }, { type: i2.FMediator }] });
8113
-
8114
- const GET_FLOW_STATE_PROVIDERS = [
8115
- GetFlowStateExecution,
8116
- GetFlowStateNodesExecution,
8117
- GetFlowStateConnectionsExecution
8118
- ];
8119
-
8120
- class GetScaledNodeRectsWithFlowPositionRequest {
8121
- }
8122
-
8123
- let GetScaledNodeRectsWithFlowPositionExecution = class GetScaledNodeRectsWithFlowPositionExecution {
8124
- fComponentsStore;
8125
- constructor(fComponentsStore) {
8126
- this.fComponentsStore = fComponentsStore;
8127
- }
8128
- handle(request) {
8129
- return RectExtensions.union(this.getNodesRects());
8130
- }
8131
- getNodesRects() {
8132
- return this.getNodes().map((x) => {
8133
- const rect = RectExtensions.fromElement(x.hostElement);
8134
- return RectExtensions.initialize(x.position.x, x.position.y, rect.width, rect.height);
8135
- });
8136
- }
8137
- getNodes() {
8138
- return this.fComponentsStore.fNodes;
8139
- }
8140
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetScaledNodeRectsWithFlowPositionExecution, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
8141
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetScaledNodeRectsWithFlowPositionExecution });
8142
- };
8143
- GetScaledNodeRectsWithFlowPositionExecution = __decorate([
8144
- FExecutionRegister(GetScaledNodeRectsWithFlowPositionRequest)
8145
- ], GetScaledNodeRectsWithFlowPositionExecution);
8146
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetScaledNodeRectsWithFlowPositionExecution, decorators: [{
8147
- type: Injectable
8148
- }], ctorParameters: () => [{ type: FComponentsStore }] });
8149
-
8150
- class GetPositionInFlowRequest {
8164
+ class GetNormalizedPointRequest {
8151
8165
  position;
8152
8166
  constructor(position) {
8153
8167
  this.position = position;
8154
8168
  }
8155
8169
  }
8156
8170
 
8157
- let GetPositionInFlowExecution = class GetPositionInFlowExecution {
8158
- fComponentsStore;
8159
- get transform() {
8160
- return this.fComponentsStore.fCanvas.transform;
8161
- }
8162
- get flowHost() {
8163
- return this.fComponentsStore.flowHost;
8164
- }
8165
- constructor(fComponentsStore) {
8166
- this.fComponentsStore = fComponentsStore;
8171
+ let GetNormalizedPointExecution = class GetNormalizedPointExecution {
8172
+ _fComponentsStore = inject(FComponentsStore);
8173
+ get _transform() {
8174
+ return this._fComponentsStore.fCanvas.transform;
8167
8175
  }
8168
8176
  handle(request) {
8169
- return Point.fromPoint(request.position).elementTransform(this.flowHost)
8170
- .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);
8171
8179
  }
8172
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: GetPositionInFlowExecution, deps: [{ token: FComponentsStore }], target: i0.ɵɵFactoryTarget.Injectable });
8173
- 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 });
8174
8182
  };
8175
- GetPositionInFlowExecution = __decorate([
8176
- FExecutionRegister(GetPositionInFlowRequest)
8177
- ], GetPositionInFlowExecution);
8178
- 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: [{
8179
8187
  type: Injectable
8180
- }], ctorParameters: () => [{ type: FComponentsStore }] });
8188
+ }] });
8181
8189
 
8182
8190
  class SortNodeLayersRequest {
8183
8191
  }
@@ -8339,15 +8347,11 @@ const COMMON_PROVIDERS = [
8339
8347
  ...F_FLOW_FEATURES,
8340
8348
  ...F_LINE_ALIGNMENT_FEATURES,
8341
8349
  ...F_NODE_FEATURES,
8342
- CreateRoundedRectFromElementExecution,
8350
+ GetElementRoundedRectExecution,
8343
8351
  ...F_SELECTION_FEATURES,
8344
- GetCanBeSelectedItemsExecution,
8345
8352
  GetDeepChildrenNodesAndGroupsExecution,
8346
- GetConnectionLineExecution,
8347
- GetElementRectInFlowExecution,
8348
- ...GET_FLOW_STATE_PROVIDERS,
8349
- GetScaledNodeRectsWithFlowPositionExecution,
8350
- GetPositionInFlowExecution,
8353
+ GetNormalizedElementRectExecution,
8354
+ GetNormalizedPointExecution,
8351
8355
  SortItemLayersExecution,
8352
8356
  SortItemsByParentExecution,
8353
8357
  SortNodeLayersExecution,
@@ -8916,14 +8920,14 @@ class FLineAlignmentComponent extends FLineAlignmentBase {
8916
8920
  this.size = this._fFlowHostElement.getBoundingClientRect();
8917
8921
  this.rects = [];
8918
8922
  const draggedNodeRects = currentNodes.map((x) => {
8919
- return this._fMediator.send(new GetElementRectInFlowRequest(x.hostElement));
8923
+ return this._fMediator.send(new GetNormalizedElementRectRequest(x.hostElement));
8920
8924
  });
8921
8925
  this.draggedNodeRect = RectExtensions.union(draggedNodeRects) || RectExtensions.initialize();
8922
8926
  const allNodesExcludeCurrents = allNodes.filter((x) => {
8923
8927
  return !currentNodes.includes(x);
8924
8928
  });
8925
8929
  this.rects = allNodesExcludeCurrents.map((x) => {
8926
- return this._fMediator.send(new GetElementRectInFlowRequest(x.hostElement));
8930
+ return this._fMediator.send(new GetNormalizedElementRectRequest(x.hostElement));
8927
8931
  });
8928
8932
  }
8929
8933
  handle(difference) {
@@ -9170,14 +9174,14 @@ class FFlowComponent extends FFlowBase {
9170
9174
  reset() {
9171
9175
  this._isLoaded = false;
9172
9176
  }
9173
- getAllNodesRect() {
9174
- return this._fMediator.send(new GetScaledNodeRectsWithFlowPositionRequest());
9177
+ getNodesBoundingBox() {
9178
+ return this._fMediator.send(new CalculateNodesBoundingBoxNormalizedPositionRequest());
9175
9179
  }
9176
9180
  getSelection() {
9177
- return this._fMediator.send(new GetSelectionRequest());
9181
+ return this._fMediator.send(new GetCurrentSelectionRequest());
9178
9182
  }
9179
9183
  getPositionInFlow(position) {
9180
- return this._fMediator.send(new GetPositionInFlowRequest(position));
9184
+ return this._fMediator.send(new GetNormalizedPointRequest(position));
9181
9185
  }
9182
9186
  getState() {
9183
9187
  return this._fMediator.send(new GetFlowStateRequest());
@@ -9425,5 +9429,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImpor
9425
9429
  * Generated bundle index. Do not edit.
9426
9430
  */
9427
9431
 
9428
- 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 };
9429
9433
  //# sourceMappingURL=foblex-flow.mjs.map