@foblex/flow 17.0.4 → 17.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (245) hide show
  1. package/domain/f-connection/calculate-connection-line-by-behavior/calculate-connection-line-by-behavior.execution.d.ts +10 -0
  2. package/domain/{get-connection-line/get-connection-line.request.d.ts → f-connection/calculate-connection-line-by-behavior/calculate-connection-line-by-behavior.request.d.ts} +3 -3
  3. package/domain/f-connection/calculate-connection-line-by-behavior/fixed-center-behavior.d.ts +3 -0
  4. package/domain/f-connection/calculate-connection-line-by-behavior/fixed-outbound-behavior.d.ts +3 -0
  5. package/domain/f-connection/calculate-connection-line-by-behavior/floating-behavior.d.ts +3 -0
  6. package/domain/f-connection/calculate-connection-line-by-behavior/index.d.ts +5 -0
  7. package/domain/f-connection/index.d.ts +1 -0
  8. package/domain/f-connection/providers.d.ts +2 -1
  9. package/domain/f-draggable/emit-selection-change-event/emit-selection-change-event.execution.d.ts +2 -0
  10. package/domain/{get-flow-state → f-flow/get-flow-state}/get-flow-state-connections/get-flow-state-connections.execution.d.ts +1 -1
  11. package/domain/{get-flow-state → f-flow/get-flow-state}/get-flow-state-nodes/get-flow-state-nodes.execution.d.ts +1 -1
  12. package/domain/{get-flow-state → f-flow/get-flow-state}/get-flow-state.execution.d.ts +1 -1
  13. package/domain/{get-flow-state → f-flow/get-flow-state}/i-f-flow-state-connection.d.ts +1 -1
  14. package/domain/{get-flow-state → f-flow/get-flow-state}/i-f-flow-state-connector.d.ts +1 -1
  15. package/domain/f-flow/index.d.ts +1 -0
  16. package/domain/f-flow/providers.d.ts +1 -1
  17. package/domain/f-node/calculate-nodes-bounding-box-normalized-position/calculate-nodes-bounding-box-normalized-position.execution.d.ts +12 -0
  18. package/domain/f-node/calculate-nodes-bounding-box-normalized-position/calculate-nodes-bounding-box-normalized-position.request.d.ts +2 -0
  19. package/domain/f-node/calculate-nodes-bounding-box-normalized-position/index.d.ts +2 -0
  20. package/{f-draggable/domain → domain/f-node}/get-parent-nodes/get-parent-nodes.execution.d.ts +2 -4
  21. package/domain/f-node/index.d.ts +3 -0
  22. package/domain/f-node/providers.d.ts +4 -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/get-node-padding/get-node-padding.execution.mjs +34 -0
  75. package/esm2022/domain/f-node/get-node-padding/get-node-padding.request.mjs +9 -0
  76. package/esm2022/domain/f-node/get-node-padding/index.mjs +3 -0
  77. package/esm2022/domain/f-node/get-parent-nodes/get-parent-nodes.execution.mjs +34 -0
  78. package/esm2022/domain/f-node/get-parent-nodes/get-parent-nodes.request.mjs +7 -0
  79. package/esm2022/domain/f-node/get-parent-nodes/index.mjs +3 -0
  80. package/esm2022/domain/f-node/index.mjs +4 -1
  81. package/esm2022/domain/f-node/providers.mjs +7 -1
  82. package/esm2022/domain/f-selection/get-can-be-selected-items/get-can-be-selected-items-request.mjs +3 -0
  83. package/esm2022/domain/f-selection/get-can-be-selected-items/get-can-be-selected-items.execution.mjs +57 -0
  84. package/esm2022/domain/f-selection/get-can-be-selected-items/i-can-be-selected.mjs +2 -0
  85. package/esm2022/domain/f-selection/get-can-be-selected-items/index.mjs +4 -0
  86. package/esm2022/domain/f-selection/get-current-selection/get-current-selection.execution.mjs +41 -0
  87. package/esm2022/domain/f-selection/get-current-selection/get-current-selection.request.mjs +3 -0
  88. package/esm2022/domain/f-selection/get-current-selection/i-current-selection.mjs +2 -0
  89. package/esm2022/domain/f-selection/get-current-selection/index.mjs +4 -0
  90. package/esm2022/domain/f-selection/index.mjs +3 -2
  91. package/esm2022/domain/f-selection/providers.mjs +6 -4
  92. package/esm2022/domain/get-element-rounded-rect/get-element-rounded-rect-request.mjs +7 -0
  93. package/esm2022/domain/get-element-rounded-rect/get-element-rounded-rect.execution.mjs +32 -0
  94. package/esm2022/domain/{get-element-rect-in-flow → get-element-rounded-rect}/index.mjs +3 -3
  95. package/esm2022/domain/get-normalized-element-rect/get-normalized-element-rect-request.mjs +7 -0
  96. package/esm2022/domain/get-normalized-element-rect/get-normalized-element-rect.execution.mjs +40 -0
  97. package/esm2022/domain/get-normalized-element-rect/index.mjs +3 -0
  98. package/esm2022/domain/get-normalized-point/get-normalized-point-request.mjs +7 -0
  99. package/esm2022/domain/get-normalized-point/get-normalized-point.execution.mjs +27 -0
  100. package/esm2022/domain/get-normalized-point/index.mjs +3 -0
  101. package/esm2022/domain/index.mjs +4 -8
  102. package/esm2022/domain/providers.mjs +7 -15
  103. package/esm2022/f-draggable/connections/create-connection/create-connection.drag-handler.mjs +4 -4
  104. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.mjs +4 -4
  105. package/esm2022/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.execution.mjs +6 -6
  106. package/esm2022/f-draggable/domain/index.mjs +1 -4
  107. package/esm2022/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.execution.mjs +2 -2
  108. package/esm2022/f-draggable/domain/is-connection-under-node/is-connection-under-node.execution.mjs +3 -3
  109. package/esm2022/f-draggable/domain/is-connection-under-node/is-connection-under-node.request.mjs +1 -1
  110. package/esm2022/f-draggable/domain/providers.mjs +1 -7
  111. package/esm2022/f-draggable/f-draggable-base.mjs +1 -1
  112. package/esm2022/f-draggable/f-draggable.directive.mjs +8 -2
  113. package/esm2022/f-draggable/f-selection-change-event.mjs +4 -2
  114. package/esm2022/f-draggable/node/connection-source.drag-handler.mjs +3 -3
  115. package/esm2022/f-draggable/node/connection-target.drag-handler.mjs +3 -3
  116. package/esm2022/f-draggable/node/connection.drag-handler.mjs +3 -3
  117. package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.mjs +32 -35
  118. package/esm2022/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/get-node-move-restrictions.execution.mjs +12 -15
  119. package/esm2022/f-draggable/node/node-drag-to-parent-preparation/node-drag-to-parent-preparation.execution.mjs +3 -3
  120. package/esm2022/f-draggable/node/node-move-finalize/node-move-finalize.execution.mjs +37 -31
  121. package/esm2022/f-draggable/node/node-move-preparation/node-move-preparation.execution.mjs +41 -43
  122. package/esm2022/f-draggable/node/node-move-preparation/node-move-preparation.validator.mjs +19 -23
  123. package/esm2022/f-draggable/node/node.drag-handler.mjs +25 -10
  124. package/esm2022/f-draggable/node-resize/get-node-resize-restrictions/get-node-resize-restrictions.execution.mjs +3 -2
  125. package/esm2022/f-draggable/node-resize/get-normalized-children-nodes-rect/get-normalized-children-nodes-rect.execution.mjs +4 -5
  126. package/esm2022/f-draggable/node-resize/node-resize.drag-handler.mjs +3 -3
  127. package/esm2022/f-external-item/domain/external-item-finalize/external-item-finalize.execution.mjs +3 -3
  128. package/esm2022/f-flow/f-flow.component.mjs +6 -6
  129. package/esm2022/f-flow.module.mjs +1 -1
  130. package/esm2022/f-line-alignment/f-line-alignment.component.mjs +4 -4
  131. package/esm2022/f-node/f-drag-handle.directive.mjs +22 -0
  132. package/esm2022/f-node/index.mjs +3 -3
  133. package/esm2022/f-node/is-node.mjs +4 -0
  134. package/esm2022/f-node/providers.mjs +2 -2
  135. package/esm2022/f-selection-area/domain/selection-area.drag-handle.mjs +12 -11
  136. package/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.execution.d.ts +1 -1
  137. package/f-draggable/domain/index.d.ts +0 -3
  138. package/f-draggable/domain/providers.d.ts +1 -4
  139. package/f-draggable/f-draggable-base.d.ts +2 -0
  140. package/f-draggable/f-draggable.directive.d.ts +4 -2
  141. package/f-draggable/f-selection-change-event.d.ts +4 -2
  142. package/f-draggable/node/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.d.ts +7 -9
  143. package/f-draggable/node/create-move-nodes-drag-model-from-selection/domain/get-node-move-restrictions/get-node-move-restrictions.execution.d.ts +3 -4
  144. package/f-draggable/node/node-move-finalize/node-move-finalize.execution.d.ts +11 -11
  145. package/f-draggable/node/node-move-preparation/node-move-preparation.execution.d.ts +11 -14
  146. package/f-draggable/node/node-move-preparation/node-move-preparation.validator.d.ts +6 -9
  147. package/f-draggable/node/node.drag-handler.d.ts +9 -5
  148. package/f-draggable/providers.d.ts +1 -1
  149. package/f-flow/f-flow.component.d.ts +3 -4
  150. package/f-flow.module.d.ts +1 -1
  151. package/f-minimap/domain/providers.d.ts +1 -1
  152. package/f-node/{f-drag-handle/f-drag-handle.directive.d.ts → f-drag-handle.directive.d.ts} +1 -1
  153. package/f-node/index.d.ts +2 -2
  154. package/f-node/providers.d.ts +2 -2
  155. package/f-selection-area/domain/selection-area.drag-handle.d.ts +2 -2
  156. package/f-storage/providers.d.ts +1 -1
  157. package/fesm2022/foblex-flow.mjs +591 -603
  158. package/fesm2022/foblex-flow.mjs.map +1 -1
  159. package/package.json +1 -1
  160. package/domain/create-rounded-rect-from-element/create-rounded-rect-from-element.execution.d.ts +0 -15
  161. package/domain/create-rounded-rect-from-element/index.d.ts +0 -2
  162. package/domain/f-selection/get-selection/get-selection.execution.d.ts +0 -11
  163. package/domain/f-selection/get-selection/get-selection.request.d.ts +0 -2
  164. package/domain/f-selection/get-selection/index.d.ts +0 -2
  165. package/domain/get-can-be-selected-items/get-can-be-selected-items.execution.d.ts +0 -19
  166. package/domain/get-can-be-selected-items/i-selectable-with-rect.d.ts +0 -6
  167. package/domain/get-can-be-selected-items/index.d.ts +0 -2
  168. package/domain/get-connection-line/get-connection-line.execution.d.ts +0 -13
  169. package/domain/get-connection-line/index.d.ts +0 -2
  170. package/domain/get-element-rect-in-flow/get-element-rect-in-flow.execution.d.ts +0 -16
  171. package/domain/get-element-rect-in-flow/index.d.ts +0 -2
  172. package/domain/get-position-in-flow/get-position-in-flow.execution.d.ts +0 -14
  173. package/domain/get-position-in-flow/index.d.ts +0 -2
  174. package/domain/get-scaled-node-rects-with-flow-position/get-scaled-node-rects-with-flow-position.execution.d.ts +0 -14
  175. package/domain/get-scaled-node-rects-with-flow-position/get-scaled-node-rects-with-flow-position.request.d.ts +0 -2
  176. package/domain/get-scaled-node-rects-with-flow-position/index.d.ts +0 -2
  177. package/esm2022/domain/create-rounded-rect-from-element/create-rounded-rect-from-element-request.mjs +0 -7
  178. package/esm2022/domain/create-rounded-rect-from-element/create-rounded-rect-from-element.execution.mjs +0 -40
  179. package/esm2022/domain/create-rounded-rect-from-element/index.mjs +0 -3
  180. package/esm2022/domain/f-selection/get-selection/get-selection.execution.mjs +0 -36
  181. package/esm2022/domain/f-selection/get-selection/get-selection.request.mjs +0 -3
  182. package/esm2022/domain/f-selection/get-selection/index.mjs +0 -3
  183. package/esm2022/domain/get-can-be-selected-items/get-can-be-selected-items-request.mjs +0 -3
  184. package/esm2022/domain/get-can-be-selected-items/get-can-be-selected-items.execution.mjs +0 -60
  185. package/esm2022/domain/get-can-be-selected-items/i-selectable-with-rect.mjs +0 -2
  186. package/esm2022/domain/get-can-be-selected-items/index.mjs +0 -3
  187. package/esm2022/domain/get-connection-line/get-connection-line.execution.mjs +0 -65
  188. package/esm2022/domain/get-connection-line/get-connection-line.request.mjs +0 -15
  189. package/esm2022/domain/get-connection-line/index.mjs +0 -3
  190. package/esm2022/domain/get-element-rect-in-flow/get-element-rect-in-flow-request.mjs +0 -7
  191. package/esm2022/domain/get-element-rect-in-flow/get-element-rect-in-flow.execution.mjs +0 -43
  192. package/esm2022/domain/get-flow-state/get-flow-state-connections/get-flow-state-connections-request.mjs +0 -3
  193. package/esm2022/domain/get-flow-state/get-flow-state-connections/get-flow-state-connections.execution.mjs +0 -34
  194. package/esm2022/domain/get-flow-state/get-flow-state-connections/index.mjs +0 -3
  195. package/esm2022/domain/get-flow-state/get-flow-state-nodes/get-flow-state-nodes-request.mjs +0 -7
  196. package/esm2022/domain/get-flow-state/get-flow-state-nodes/get-flow-state-nodes.execution.mjs +0 -51
  197. package/esm2022/domain/get-flow-state/get-flow-state-nodes/index.mjs +0 -3
  198. package/esm2022/domain/get-flow-state/get-flow-state.execution.mjs +0 -41
  199. package/esm2022/domain/get-flow-state/get-flow-state.request.mjs +0 -3
  200. package/esm2022/domain/get-flow-state/i-f-flow-state-connection.mjs +0 -2
  201. package/esm2022/domain/get-flow-state/i-f-flow-state-connector.mjs +0 -2
  202. package/esm2022/domain/get-flow-state/i-f-flow-state-node.mjs +0 -2
  203. package/esm2022/domain/get-flow-state/i-f-flow-state.mjs +0 -2
  204. package/esm2022/domain/get-flow-state/index.mjs +0 -10
  205. package/esm2022/domain/get-flow-state/providers.mjs +0 -9
  206. package/esm2022/domain/get-position-in-flow/get-position-in-flow-request.mjs +0 -7
  207. package/esm2022/domain/get-position-in-flow/get-position-in-flow.execution.mjs +0 -33
  208. package/esm2022/domain/get-position-in-flow/index.mjs +0 -3
  209. package/esm2022/domain/get-scaled-node-rects-with-flow-position/get-scaled-node-rects-with-flow-position.execution.mjs +0 -35
  210. package/esm2022/domain/get-scaled-node-rects-with-flow-position/get-scaled-node-rects-with-flow-position.request.mjs +0 -3
  211. package/esm2022/domain/get-scaled-node-rects-with-flow-position/index.mjs +0 -3
  212. package/esm2022/f-draggable/domain/get-node-padding/get-node-padding.execution.mjs +0 -34
  213. package/esm2022/f-draggable/domain/get-node-padding/get-node-padding.request.mjs +0 -9
  214. package/esm2022/f-draggable/domain/get-node-padding/index.mjs +0 -3
  215. package/esm2022/f-draggable/domain/get-normalized-node-rect/get-normalized-node-rect.execution.mjs +0 -30
  216. package/esm2022/f-draggable/domain/get-normalized-node-rect/get-normalized-node-rect.request.mjs +0 -7
  217. package/esm2022/f-draggable/domain/get-normalized-node-rect/index.mjs +0 -3
  218. package/esm2022/f-draggable/domain/get-parent-nodes/get-parent-nodes.execution.mjs +0 -37
  219. package/esm2022/f-draggable/domain/get-parent-nodes/get-parent-nodes.request.mjs +0 -7
  220. package/esm2022/f-draggable/domain/get-parent-nodes/index.mjs +0 -3
  221. package/esm2022/f-node/domain/index.mjs +0 -2
  222. package/esm2022/f-node/domain/is-node.mjs +0 -4
  223. package/esm2022/f-node/f-drag-handle/f-drag-handle.directive.mjs +0 -22
  224. package/esm2022/f-node/f-drag-handle/index.mjs +0 -2
  225. package/f-draggable/domain/get-normalized-node-rect/get-normalized-node-rect.execution.d.ts +0 -13
  226. package/f-draggable/domain/get-normalized-node-rect/get-normalized-node-rect.request.d.ts +0 -5
  227. package/f-draggable/domain/get-normalized-node-rect/index.d.ts +0 -2
  228. package/f-node/domain/index.d.ts +0 -1
  229. package/f-node/f-drag-handle/index.d.ts +0 -1
  230. /package/domain/{get-flow-state → f-flow/get-flow-state}/get-flow-state-connections/get-flow-state-connections-request.d.ts +0 -0
  231. /package/domain/{get-flow-state → f-flow/get-flow-state}/get-flow-state-connections/index.d.ts +0 -0
  232. /package/domain/{get-flow-state → f-flow/get-flow-state}/get-flow-state-nodes/get-flow-state-nodes-request.d.ts +0 -0
  233. /package/domain/{get-flow-state → f-flow/get-flow-state}/get-flow-state-nodes/index.d.ts +0 -0
  234. /package/domain/{get-flow-state → f-flow/get-flow-state}/get-flow-state.request.d.ts +0 -0
  235. /package/domain/{get-flow-state → f-flow/get-flow-state}/i-f-flow-state-node.d.ts +0 -0
  236. /package/domain/{get-flow-state → f-flow/get-flow-state}/i-f-flow-state.d.ts +0 -0
  237. /package/domain/{get-flow-state → f-flow/get-flow-state}/index.d.ts +0 -0
  238. /package/domain/{get-flow-state → f-flow/get-flow-state}/providers.d.ts +0 -0
  239. /package/{f-draggable/domain → domain/f-node}/get-node-padding/get-node-padding.execution.d.ts +0 -0
  240. /package/{f-draggable/domain → domain/f-node}/get-node-padding/get-node-padding.request.d.ts +0 -0
  241. /package/{f-draggable/domain → domain/f-node}/get-node-padding/index.d.ts +0 -0
  242. /package/{f-draggable/domain → domain/f-node}/get-parent-nodes/get-parent-nodes.request.d.ts +0 -0
  243. /package/{f-draggable/domain → domain/f-node}/get-parent-nodes/index.d.ts +0 -0
  244. /package/domain/{get-can-be-selected-items → f-selection/get-can-be-selected-items}/get-can-be-selected-items-request.d.ts +0 -0
  245. /package/f-node/{domain/is-node.d.ts → is-node.d.ts} +0 -0
@@ -1,15 +1,16 @@
1
1
  import { Point, RectExtensions } from '@foblex/2d';
2
2
  import { NotifyTransformChangedRequest } from '../../f-storage';
3
- import { GetCanBeSelectedItemsRequest } from '../../domain/get-can-be-selected-items/get-can-be-selected-items-request';
3
+ import { GetCanBeSelectedItemsRequest } from '../../domain';
4
4
  export class SelectionAreaDragHandle {
5
5
  fComponentsStore;
6
6
  fSelectionArea;
7
7
  fDraggableDataContext;
8
8
  fMediator;
9
- canBeSelected = [];
10
- selectedByMove = [];
9
+ _canBeSelected = [];
10
+ _selectedByMove = [];
11
11
  get canvasPosition() {
12
- return Point.fromPoint(this.fComponentsStore.fCanvas.transform.position).add(this.fComponentsStore.fCanvas.transform.scaledPosition);
12
+ return Point.fromPoint(this.fComponentsStore.fCanvas.transform.position)
13
+ .add(this.fComponentsStore.fCanvas.transform.scaledPosition);
13
14
  }
14
15
  constructor(fComponentsStore, fSelectionArea, fDraggableDataContext, fMediator) {
15
16
  this.fComponentsStore = fComponentsStore;
@@ -18,7 +19,7 @@ export class SelectionAreaDragHandle {
18
19
  this.fMediator = fMediator;
19
20
  }
20
21
  prepareDragSequence() {
21
- this.canBeSelected = this.fMediator.send(new GetCanBeSelectedItemsRequest());
22
+ this._canBeSelected = this.fMediator.send(new GetCanBeSelectedItemsRequest());
22
23
  this.fSelectionArea.show();
23
24
  this.fSelectionArea.draw(RectExtensions.initialize(this.fDraggableDataContext.onPointerDownPosition.x, this.fDraggableDataContext.onPointerDownPosition.y));
24
25
  }
@@ -29,24 +30,24 @@ export class SelectionAreaDragHandle {
29
30
  const width = Math.abs(difference.x);
30
31
  const height = Math.abs(difference.y);
31
32
  this.fSelectionArea.draw(RectExtensions.initialize(x, y, width, height));
32
- this.selectedByMove = [];
33
- this.canBeSelected.forEach((item) => {
33
+ this._selectedByMove = [];
34
+ this._canBeSelected.forEach((item) => {
34
35
  item.element.deselect();
35
36
  const itemRect = RectExtensions.addPoint(item.rect, this.canvasPosition);
36
37
  const isIntersect = RectExtensions.intersectionWithRect(itemRect, RectExtensions.initialize(x, y, width, height));
37
38
  if (isIntersect) {
38
39
  item.element.select();
39
- this.selectedByMove.push(item.element);
40
+ this._selectedByMove.push(item.element);
40
41
  }
41
42
  });
42
43
  this.fMediator.send(new NotifyTransformChangedRequest());
43
44
  }
44
45
  onPointerUp() {
45
46
  this.fSelectionArea.hide();
46
- this.fDraggableDataContext.selectedItems.push(...this.selectedByMove);
47
- if (this.selectedByMove.length > 0) {
47
+ this.fDraggableDataContext.selectedItems.push(...this._selectedByMove);
48
+ if (this._selectedByMove.length > 0) {
48
49
  this.fDraggableDataContext.isSelectedChanged = true;
49
50
  }
50
51
  }
51
52
  }
52
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0aW9uLWFyZWEuZHJhZy1oYW5kbGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2Ytc2VsZWN0aW9uLWFyZWEvZG9tYWluL3NlbGVjdGlvbi1hcmVhLmRyYWctaGFuZGxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBVSxLQUFLLEVBQUUsY0FBYyxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBQzNELE9BQU8sRUFBb0IsNkJBQTZCLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUdsRixPQUFPLEVBQUUsNEJBQTRCLEVBQUUsTUFBTSwwRUFBMEUsQ0FBQztB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AgICB0aGlzLmZEcmFnZ2FibGVEYXRhQ29udGV4dC5pc1NlbGVjdGVkQ2hhbmdlZCA9IHRydWU7XG4gICAgfVxuICB9XG59XG4iXX0=
@@ -10,7 +10,7 @@ export declare class GetNormalizedParentNodeRectExecution implements IExecution<
10
10
  handle(request: GetNormalizedParentNodeRectRequest): IRect;
11
11
  private getNode;
12
12
  private getParentRect;
13
- private getNormalizedNodeRect;
13
+ private _getNodeRect;
14
14
  private getNodePadding;
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<GetNormalizedParentNodeRectExecution, never>;
16
16
  static ɵprov: i0.ɵɵInjectableDeclaration<GetNormalizedParentNodeRectExecution>;
@@ -1,7 +1,4 @@
1
- export * from './get-node-padding';
2
- export * from './get-normalized-node-rect';
3
1
  export * from './get-normalized-parent-node-rect';
4
- export * from './get-parent-nodes';
5
2
  export * from './is-array-has-parent-node';
6
3
  export * from './is-connection-under-node';
7
4
  export * from './i-node-with-rect';
@@ -1,7 +1,4 @@
1
- import { GetNormalizedNodeRectExecution } from './get-normalized-node-rect';
2
- import { GetParentNodesExecution } from './get-parent-nodes';
3
1
  import { IsArrayHasParentNodeExecution } from './is-array-has-parent-node';
4
2
  import { GetNormalizedParentNodeRectExecution } from './get-normalized-parent-node-rect';
5
- import { GetNodePaddingExecution } from './get-node-padding';
6
3
  import { IsConnectionUnderNodeExecution, IsConnectionUnderNodeValidator } from './is-connection-under-node';
7
- export declare const DRAG_AND_DROP_COMMON_PROVIDERS: (typeof GetNodePaddingExecution | typeof GetNormalizedNodeRectExecution | typeof GetNormalizedParentNodeRectExecution | typeof GetParentNodesExecution | typeof IsArrayHasParentNodeExecution | typeof IsConnectionUnderNodeExecution | typeof IsConnectionUnderNodeValidator)[];
4
+ export declare const DRAG_AND_DROP_COMMON_PROVIDERS: (typeof GetNormalizedParentNodeRectExecution | typeof IsArrayHasParentNodeExecution | typeof IsConnectionUnderNodeExecution | typeof IsConnectionUnderNodeValidator)[];
@@ -13,6 +13,8 @@ export declare abstract class FDraggableBase extends DragAndDropBase {
13
13
  abstract fReassignConnection: EventEmitter<FReassignConnectionEvent>;
14
14
  abstract fCreateConnection: EventEmitter<FCreateConnectionEvent>;
15
15
  abstract fDropToGroup: EventEmitter<FDropToGroupEvent>;
16
+ abstract vCellSize: number;
17
+ abstract hCellSize: number;
16
18
  protected constructor(ngZone: ICanRunOutsideAngular | undefined);
17
19
  static ɵfac: i0.ɵɵFactoryDeclaration<FDraggableBase, never>;
18
20
  static ɵdir: i0.ɵɵDirectiveDeclaration<FDraggableBase, never, never, {}, {}, never, never, false, never>;
@@ -16,10 +16,12 @@ export declare class FDraggableDirective extends FDraggableBase implements OnIni
16
16
  get hostElement(): HTMLElement;
17
17
  fSelectionChange: EventEmitter<FSelectionChangeEvent>;
18
18
  fNodeIntersectedWithConnections: EventEmitter<FNodeIntersectedWithConnections>;
19
- fCreateNode: EventEmitter<FCreateNodeEvent>;
19
+ fCreateNode: EventEmitter<FCreateNodeEvent<any>>;
20
20
  fReassignConnection: EventEmitter<FReassignConnectionEvent>;
21
21
  fCreateConnection: EventEmitter<FCreateConnectionEvent>;
22
22
  fDropToGroup: EventEmitter<FDropToGroupEvent>;
23
+ vCellSize: number;
24
+ hCellSize: number;
23
25
  private plugins;
24
26
  constructor(ngZone: ICanRunOutsideAngular, _fBrowser: BrowserService);
25
27
  ngOnInit(): void;
@@ -32,5 +34,5 @@ export declare class FDraggableDirective extends FDraggableBase implements OnIni
32
34
  protected finalizeDragSequence(): void;
33
35
  ngOnDestroy(): void;
34
36
  static ɵfac: i0.ɵɵFactoryDeclaration<FDraggableDirective, [{ optional: true; }, null]>;
35
- static ɵdir: i0.ɵɵDirectiveDeclaration<FDraggableDirective, "f-flow[fDraggable]", ["fDraggable"], { "disabled": { "alias": "fDraggableDisabled"; "required": false; }; }, { "fSelectionChange": "fSelectionChange"; "fNodeIntersectedWithConnections": "fNodeIntersectedWithConnections"; "fCreateNode": "fCreateNode"; "fReassignConnection": "fReassignConnection"; "fCreateConnection": "fCreateConnection"; "fDropToGroup": "fDropToGroup"; }, ["plugins"], never, false, never>;
37
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FDraggableDirective, "f-flow[fDraggable]", ["fDraggable"], { "disabled": { "alias": "fDraggableDisabled"; "required": false; }; "vCellSize": { "alias": "vCellSize"; "required": false; }; "hCellSize": { "alias": "hCellSize"; "required": false; }; }, { "fSelectionChange": "fSelectionChange"; "fNodeIntersectedWithConnections": "fNodeIntersectedWithConnections"; "fCreateNode": "fCreateNode"; "fReassignConnection": "fReassignConnection"; "fCreateConnection": "fCreateConnection"; "fDropToGroup": "fDropToGroup"; }, ["plugins"], never, false, never>;
36
38
  }
@@ -1,5 +1,7 @@
1
- export declare class FSelectionChangeEvent {
1
+ import { ICurrentSelection } from '../domain';
2
+ export declare class FSelectionChangeEvent implements ICurrentSelection {
2
3
  nodes: string[];
4
+ groups: string[];
3
5
  connections: string[];
4
- constructor(nodes: string[], connections: string[]);
6
+ constructor(nodes: string[], groups: string[], connections: string[]);
5
7
  }
@@ -1,18 +1,16 @@
1
1
  import { CreateMoveNodesDragModelFromSelectionRequest } from './create-move-nodes-drag-model-from-selection.request';
2
- import { FMediator, IExecution } from '@foblex/mediator';
3
- import { FComponentsStore } from '../../../f-storage';
4
- import { FDraggableDataContext } from '../../f-draggable-data-context';
2
+ import { IExecution } from '@foblex/mediator';
5
3
  import { IDraggableItem } from '../../i-draggable-item';
6
4
  import * as i0 from "@angular/core";
7
5
  export declare class CreateMoveNodesDragModelFromSelectionExecution implements IExecution<CreateMoveNodesDragModelFromSelectionRequest, IDraggableItem[]> {
8
- private fComponentsStore;
9
- private fDraggableDataContext;
10
- private fMediator;
11
- constructor(fComponentsStore: FComponentsStore, fDraggableDataContext: FDraggableDataContext, fMediator: FMediator);
6
+ private _fMediator;
7
+ private _fComponentsStore;
8
+ private _fDraggableDataContext;
12
9
  handle(request: CreateMoveNodesDragModelFromSelectionRequest): IDraggableItem[];
13
- private getSelectedNodes;
10
+ private _getSelectedNodes;
11
+ private _getNodesFromSelection;
14
12
  private _findNode;
15
- private getNodesWithRestrictions;
13
+ private _getNodesWithRestrictions;
16
14
  private getChildrenItemsToDrag;
17
15
  private getChildrenNodes;
18
16
  private getAllOutputIds;
@@ -1,12 +1,11 @@
1
1
  import { GetNodeMoveRestrictionsRequest } from './get-node-move-restrictions.request';
2
2
  import { INodeMoveRestrictions } from './i-node-move-restrictions';
3
- import { FMediator, IExecution } from '@foblex/mediator';
3
+ import { IExecution } from '@foblex/mediator';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class GetNodeMoveRestrictionsExecution implements IExecution<GetNodeMoveRestrictionsRequest, INodeMoveRestrictions> {
6
- private fMediator;
7
- constructor(fMediator: FMediator);
6
+ private _fMediator;
8
7
  handle(request: GetNodeMoveRestrictionsRequest): INodeMoveRestrictions;
9
- private getCurrentNodeRect;
8
+ private _getNodeRect;
10
9
  private getParentNodeRect;
11
10
  static ɵfac: i0.ɵɵFactoryDeclaration<GetNodeMoveRestrictionsExecution, never>;
12
11
  static ɵprov: i0.ɵɵInjectableDeclaration<GetNodeMoveRestrictionsExecution>;
@@ -1,18 +1,18 @@
1
1
  import { NodeMoveFinalizeRequest } from './node-move-finalize.request';
2
- import { FMediator, IExecution } from '@foblex/mediator';
3
- import { FComponentsStore } from '../../../f-storage';
4
- import { FDraggableDataContext } from '../../f-draggable-data-context';
2
+ import { IExecution } from '@foblex/mediator';
5
3
  import * as i0 from "@angular/core";
6
4
  export declare class NodeMoveFinalizeExecution implements IExecution<NodeMoveFinalizeRequest, void> {
7
- private fComponentsStore;
8
- private fDraggableDataContext;
9
- private fMediator;
10
- private get flowHost();
11
- constructor(fComponentsStore: FComponentsStore, fDraggableDataContext: FDraggableDataContext, fMediator: FMediator);
5
+ private _fMediator;
6
+ private _fComponentsStore;
7
+ private _fDraggableDataContext;
8
+ private get _fHost();
12
9
  handle(request: NodeMoveFinalizeRequest): void;
13
- private getItems;
14
- private getDifferenceBetweenPreparationAndFinalize;
15
- private getDifferenceWithLineAlignment;
10
+ private _finalizeMove;
11
+ private _getItems;
12
+ private _getDifferenceBetweenPreparationAndFinalize;
13
+ private _getDifferenceWithLineAlignment;
14
+ private _getLineAlignmentDifference;
15
+ private _applyLineAlignmentDifference;
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<NodeMoveFinalizeExecution, never>;
17
17
  static ɵprov: i0.ɵɵInjectableDeclaration<NodeMoveFinalizeExecution>;
18
18
  }
@@ -1,21 +1,18 @@
1
1
  import { NodeMovePreparationRequest } from './node-move-preparation.request';
2
- import { FMediator, IExecution } from '@foblex/mediator';
3
- import { FComponentsStore } from '../../../f-storage';
4
- import { FDraggableDataContext } from '../../f-draggable-data-context';
2
+ import { IExecution } from '@foblex/mediator';
5
3
  import * as i0 from "@angular/core";
6
4
  export declare class NodeMovePreparationExecution implements IExecution<NodeMovePreparationRequest, void> {
7
- private fComponentsStore;
8
- private fDraggableDataContext;
9
- private fMediator;
10
- private get transform();
11
- private get flowHost();
12
- constructor(fComponentsStore: FComponentsStore, fDraggableDataContext: FDraggableDataContext, fMediator: FMediator);
5
+ private _fMediator;
6
+ private _fComponentsStore;
7
+ private _fDraggableDataContext;
8
+ private get _transform();
9
+ private get _fHost();
13
10
  handle(request: NodeMovePreparationRequest): void;
14
- private selectAndUpdateNodeLayer;
15
- private getNode;
16
- private createDragModelFromSelection;
17
- private initializeLineAlignment;
18
- private filterNodesFromDraggableItems;
11
+ private _getNode;
12
+ private _calculateDraggableItems;
13
+ private _dragModelFromSelection;
14
+ private _initializeLineAlignment;
15
+ private _filterNodesFromDraggableItems;
19
16
  static ɵfac: i0.ɵɵFactoryDeclaration<NodeMovePreparationExecution, never>;
20
17
  static ɵprov: i0.ɵɵInjectableDeclaration<NodeMovePreparationExecution>;
21
18
  }
@@ -1,17 +1,14 @@
1
1
  import { NodeMovePreparationRequest } from './node-move-preparation.request';
2
2
  import { IValidator } from '@foblex/mediator';
3
- import { FComponentsStore } from '../../../f-storage';
4
- import { FDraggableDataContext } from '../../f-draggable-data-context';
5
3
  import * as i0 from "@angular/core";
6
4
  export declare class NodeMovePreparationValidator implements IValidator<NodeMovePreparationRequest> {
7
- private fComponentsStore;
8
- private fDraggableDataContext;
9
- constructor(fComponentsStore: FComponentsStore, fDraggableDataContext: FDraggableDataContext);
5
+ private _fComponentsStore;
6
+ private _fDraggableDataContext;
10
7
  handle(request: NodeMovePreparationRequest): boolean;
11
- private isDragHandlesEmpty;
12
- private getNode;
13
- private isNodeCanBeDragged;
14
- private isDragHandleElement;
8
+ private _isDragHandlesEmpty;
9
+ private _isDragHandleElement;
10
+ private _isNodeCanBeDragged;
11
+ private _getNode;
15
12
  static ɵfac: i0.ɵɵFactoryDeclaration<NodeMovePreparationValidator, never>;
16
13
  static ɵprov: i0.ɵɵInjectableDeclaration<NodeMovePreparationValidator>;
17
14
  }
@@ -2,16 +2,20 @@ import { IPoint } from '@foblex/2d';
2
2
  import { IDraggableItem } from '../i-draggable-item';
3
3
  import { FDraggableDataContext } from '../f-draggable-data-context';
4
4
  import { FNodeBase } from '../../f-node';
5
+ import { FComponentsStore } from '../../f-storage';
5
6
  export declare class NodeDragHandler implements IDraggableItem {
6
7
  private fDraggableDataContext;
8
+ private fComponentsStore;
7
9
  fNode: FNodeBase;
8
10
  minDistance: IPoint;
9
11
  maxDistance: IPoint;
10
- private onPointerDownPosition;
11
- constructor(fDraggableDataContext: FDraggableDataContext, fNode: FNodeBase, minDistance: IPoint, maxDistance: IPoint);
12
+ private readonly _onPointerDownPosition;
13
+ constructor(fDraggableDataContext: FDraggableDataContext, fComponentsStore: FComponentsStore, fNode: FNodeBase, minDistance: IPoint, maxDistance: IPoint);
12
14
  onPointerMove(difference: IPoint): void;
13
- private getNewPosition;
14
- private getDifference;
15
- private redrawNode;
15
+ private _getPosition;
16
+ private _getDifference;
17
+ private _redraw;
16
18
  onPointerUp(): void;
19
+ getDifferenceWithCellSize(difference: IPoint): IPoint;
20
+ private _applyCellSize;
17
21
  }
@@ -1 +1 @@
1
- export declare const F_DRAGGABLE_PROVIDERS: (typeof import("@foblex/flow").MinimapCalculateViewBoxExecution | typeof import("./canvas").CanvasMoveFinalizeExecution | typeof import("./canvas").CanvasMoveFinalizeValidator | typeof import("./canvas").CanvasMovePreparationExecution | typeof import("./canvas").CanvasMovePreparationValidator | typeof import("./connections").GetCanBeConnectedOutputByOutletExecution | typeof import("./connections").GetCanBeConnectedOutputByOutletValidator | typeof import("../f-external-item").ExternalItemFinalizeExecution | typeof import("../f-external-item").ExternalItemFinalizeValidator | typeof import("../f-external-item").ExternalItemPreparationExecution | typeof import("../f-external-item").ExternalItemPreparationValidator | typeof import("../f-external-item").PreventDefaultIsExternalItemExecution | typeof import("./node").PutInputConnectionHandlersToArrayExecution | typeof import("./node").PutOutputConnectionHandlersToArrayExecution | typeof import("./domain").GetNodePaddingExecution | typeof import("./domain").GetNormalizedNodeRectExecution | typeof import("./domain").GetNormalizedParentNodeRectExecution | typeof import("./domain").GetParentNodesExecution | typeof import("./domain").IsArrayHasParentNodeExecution | typeof import("./domain").IsConnectionUnderNodeExecution | typeof import("./domain").IsConnectionUnderNodeValidator | typeof import("./node").GetNodeMoveRestrictionsExecution | typeof import("./node").CreateMoveNodesDragModelFromSelectionExecution | typeof import("./node").NodeDragToParentFinalizeExecution | typeof import("./node").NodeDragToParentFinalizeValidator | typeof import("./node").NodeDragToParentPreparationExecution | typeof import("./node").NodeDragToParentPreparationValidator | typeof import("./node").NodeMovePreparationExecution | typeof import("./node").NodeMovePreparationValidator | typeof import("./node").NodeMoveFinalizeExecution | typeof import("./node").NodeMoveFinalizeValidator | typeof import("./connections").ReassignConnectionFinalizeExecution | typeof import("./connections").ReassignConnectionFinalizeValidator | typeof import("./connections").ReassignConnectionPreparationExecution | typeof import("./connections").ReassignConnectionPreparationValidator | typeof import("./connections").GetInputUnderPointerExecution | typeof import("./connections").GetInputUnderPointerValidator | typeof import("./connections").CreateConnectionFinalizeExecution | typeof import("./connections").CreateConnectionFinalizeValidator | typeof import("./connections").CreateConnectionDragHandlerExecution | typeof import("./connections").CreateConnectionFromOutletPreparationExecution | typeof import("./connections").CreateConnectionFromOutputPreparationExecution | typeof import("./connections").CreateConnectionFromOutputPreparationValidator | typeof import("./connections").CreateConnectionPreparationExecution | typeof import("./connections").CreateConnectionPreparationValidator | typeof import("./node-resize").ApplyChildResizeRestrictionsExecution | typeof import("./node-resize").ApplyParentResizeRestrictionsExecution | typeof import("./node-resize").CalculateChangedPositionExecution | typeof import("./node-resize").CalculateChangedSizeExecution | typeof import("./node-resize").GetNormalizedChildrenNodesRectExecution | typeof import("./node-resize").GetNodeResizeRestrictionsExecution | typeof import("./node-resize").NodeResizeFinalizeExecution | typeof import("./node-resize").NodeResizeFinalizeValidator | typeof import("./node-resize").NodeResizePreparationExecution | typeof import("./node-resize").NodeResizePreparationValidator | typeof import("./single-select").SingleSelectExecution | typeof import("./single-select").SingleSelectValidator | typeof import("@foblex/flow").CalculateFlowPointFromMinimapPointExecution | typeof import("@foblex/flow").MinimapDragPreparationExecution | typeof import("@foblex/flow").MinimapDragPreparationValidator | typeof import("@foblex/flow").MinimapDragFinalizeExecution | typeof import("@foblex/flow").MinimapDragFinalizeValidator | typeof import("@foblex/flow").MinimapDrawNodesExecution | typeof import("@foblex/flow").MinimapCalculateSvgScaleAndViewBoxExecution | typeof import("../f-selection-area").SelectionAreaFinalizeExecution | typeof import("../f-selection-area").SelectionAreaFinalizeValidator | typeof import("../f-selection-area").SelectionAreaPreparationExecution | typeof import("../f-selection-area").SelectionAreaPreparationValidator)[];
1
+ export declare const F_DRAGGABLE_PROVIDERS: (typeof import("./canvas").CanvasMoveFinalizeExecution | typeof import("./canvas").CanvasMoveFinalizeValidator | typeof import("./canvas").CanvasMovePreparationExecution | typeof import("./canvas").CanvasMovePreparationValidator | typeof import("./connections").GetCanBeConnectedOutputByOutletExecution | typeof import("./connections").GetCanBeConnectedOutputByOutletValidator | typeof import("../f-external-item").ExternalItemFinalizeExecution | typeof import("../f-external-item").ExternalItemFinalizeValidator | typeof import("../f-external-item").ExternalItemPreparationExecution | typeof import("../f-external-item").ExternalItemPreparationValidator | typeof import("../f-external-item").PreventDefaultIsExternalItemExecution | typeof import("./node").PutInputConnectionHandlersToArrayExecution | typeof import("./node").PutOutputConnectionHandlersToArrayExecution | typeof import("./domain").GetNormalizedParentNodeRectExecution | typeof import("./domain").IsArrayHasParentNodeExecution | typeof import("./domain").IsConnectionUnderNodeExecution | typeof import("./domain").IsConnectionUnderNodeValidator | typeof import("./node").GetNodeMoveRestrictionsExecution | typeof import("./node").CreateMoveNodesDragModelFromSelectionExecution | typeof import("./node").NodeDragToParentFinalizeExecution | typeof import("./node").NodeDragToParentFinalizeValidator | typeof import("./node").NodeDragToParentPreparationExecution | typeof import("./node").NodeDragToParentPreparationValidator | typeof import("./node").NodeMovePreparationExecution | typeof import("./node").NodeMovePreparationValidator | typeof import("./node").NodeMoveFinalizeExecution | typeof import("./node").NodeMoveFinalizeValidator | typeof import("./connections").ReassignConnectionFinalizeExecution | typeof import("./connections").ReassignConnectionFinalizeValidator | typeof import("./connections").ReassignConnectionPreparationExecution | typeof import("./connections").ReassignConnectionPreparationValidator | typeof import("./connections").GetInputUnderPointerExecution | typeof import("./connections").GetInputUnderPointerValidator | typeof import("./connections").CreateConnectionFinalizeExecution | typeof import("./connections").CreateConnectionFinalizeValidator | typeof import("./connections").CreateConnectionDragHandlerExecution | typeof import("./connections").CreateConnectionFromOutletPreparationExecution | typeof import("./connections").CreateConnectionFromOutputPreparationExecution | typeof import("./connections").CreateConnectionFromOutputPreparationValidator | typeof import("./connections").CreateConnectionPreparationExecution | typeof import("./connections").CreateConnectionPreparationValidator | typeof import("./node-resize").ApplyChildResizeRestrictionsExecution | typeof import("./node-resize").ApplyParentResizeRestrictionsExecution | typeof import("./node-resize").CalculateChangedPositionExecution | typeof import("./node-resize").CalculateChangedSizeExecution | typeof import("./node-resize").GetNormalizedChildrenNodesRectExecution | typeof import("./node-resize").GetNodeResizeRestrictionsExecution | typeof import("./node-resize").NodeResizeFinalizeExecution | typeof import("./node-resize").NodeResizeFinalizeValidator | typeof import("./node-resize").NodeResizePreparationExecution | typeof import("./node-resize").NodeResizePreparationValidator | typeof import("./single-select").SingleSelectExecution | typeof import("./single-select").SingleSelectValidator | typeof import("@foblex/flow").CalculateFlowPointFromMinimapPointExecution | typeof import("@foblex/flow").MinimapDragPreparationExecution | typeof import("@foblex/flow").MinimapDragPreparationValidator | typeof import("@foblex/flow").MinimapDragFinalizeExecution | typeof import("@foblex/flow").MinimapDragFinalizeValidator | typeof import("@foblex/flow").MinimapDrawNodesExecution | typeof import("@foblex/flow").MinimapCalculateViewBoxExecution | typeof import("@foblex/flow").MinimapCalculateSvgScaleAndViewBoxExecution | typeof import("../f-selection-area").SelectionAreaFinalizeExecution | typeof import("../f-selection-area").SelectionAreaFinalizeValidator | typeof import("../f-selection-area").SelectionAreaPreparationExecution | typeof import("../f-selection-area").SelectionAreaPreparationValidator)[];
@@ -1,8 +1,7 @@
1
1
  import { AfterContentInit, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { FFlowBase } from './f-flow-base';
3
- import { IFFlowState } from '../domain';
3
+ import { IFFlowState, ICurrentSelection } from '../domain';
4
4
  import { IPoint, IRect } from '@foblex/2d';
5
- import { FSelectionChangeEvent } from '../f-draggable';
6
5
  import { BrowserService } from '@foblex/platform';
7
6
  import * as i0 from "@angular/core";
8
7
  export declare class FFlowComponent extends FFlowBase implements OnInit, AfterContentInit, OnDestroy {
@@ -22,8 +21,8 @@ export declare class FFlowComponent extends FFlowBase implements OnInit, AfterCo
22
21
  private _emitLoaded;
23
22
  redraw(): void;
24
23
  reset(): void;
25
- getAllNodesRect(): IRect | null;
26
- getSelection(): FSelectionChangeEvent;
24
+ getNodesBoundingBox(): IRect | null;
25
+ getSelection(): ICurrentSelection;
27
26
  getPositionInFlow(position: IPoint): IRect;
28
27
  getState(): IFFlowState;
29
28
  selectAll(): void;
@@ -27,7 +27,7 @@ import * as i25 from "./f-minimap/f-minimap-view.directive";
27
27
  import * as i26 from "./f-minimap/f-minimap-flow.directive";
28
28
  import * as i27 from "./f-node/f-group.directive";
29
29
  import * as i28 from "./f-node/f-node.directive";
30
- import * as i29 from "./f-node/f-drag-handle/f-drag-handle.directive";
30
+ import * as i29 from "./f-node/f-drag-handle.directive";
31
31
  import * as i30 from "./f-node/f-resize-handle/f-resize-handle.directive";
32
32
  import * as i31 from "./f-selection-area/f-selection-area.component";
33
33
  import * as i32 from "./f-draggable/f-draggable.directive";
@@ -2,4 +2,4 @@ import { CalculateFlowPointFromMinimapPointExecution } from './calculate-flow-po
2
2
  import { MinimapDrawNodesExecution } from './minimap-draw-nodes';
3
3
  import { MinimapCalculateViewBoxExecution } from './minimap-calculate-view-box';
4
4
  import { MinimapCalculateSvgScaleAndViewBoxExecution } from './minimap-calculate-svg-scale-and-view-box';
5
- export declare const F_MINIMAP_DRAG_AND_DROP_PROVIDERS: (typeof MinimapCalculateViewBoxExecution | typeof CalculateFlowPointFromMinimapPointExecution | typeof import("./minimap-drag-preparation").MinimapDragPreparationExecution | typeof import("./minimap-drag-preparation").MinimapDragPreparationValidator | typeof import("./minimap-drag-finalize").MinimapDragFinalizeExecution | typeof import("./minimap-drag-finalize").MinimapDragFinalizeValidator | typeof MinimapDrawNodesExecution | typeof MinimapCalculateSvgScaleAndViewBoxExecution)[];
5
+ export declare const F_MINIMAP_DRAG_AND_DROP_PROVIDERS: (typeof CalculateFlowPointFromMinimapPointExecution | typeof import("./minimap-drag-preparation").MinimapDragPreparationExecution | typeof import("./minimap-drag-preparation").MinimapDragPreparationValidator | typeof import("./minimap-drag-finalize").MinimapDragFinalizeExecution | typeof import("./minimap-drag-finalize").MinimapDragFinalizeValidator | typeof MinimapDrawNodesExecution | typeof MinimapCalculateViewBoxExecution | typeof MinimapCalculateSvgScaleAndViewBoxExecution)[];
@@ -1,5 +1,5 @@
1
1
  import { InjectionToken } from "@angular/core";
2
- import { IHasHostElement } from '../../i-has-host-element';
2
+ import { IHasHostElement } from '../i-has-host-element';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare const F_DRAG_HANDLE: InjectionToken<FDragHandleDirective>;
5
5
  export declare class FDragHandleDirective implements IHasHostElement {
package/f-node/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- export * from './domain';
2
- export * from './f-drag-handle';
3
1
  export * from './f-resize-handle';
4
2
  export * from './f-rotate-handle';
3
+ export * from './f-drag-handle.directive';
5
4
  export * from './f-group.directive';
6
5
  export * from './f-node.directive';
7
6
  export * from './f-node-base';
7
+ export * from './is-node';
8
8
  export * from './providers';
@@ -1,5 +1,5 @@
1
1
  import { FNodeDirective } from './f-node.directive';
2
- import { FDragHandleDirective } from './f-drag-handle';
3
2
  import { FResizeHandleDirective } from './f-resize-handle';
4
3
  import { FGroupDirective } from './f-group.directive';
5
- export declare const F_NODE_PROVIDERS: (typeof FDragHandleDirective | typeof FResizeHandleDirective | typeof FGroupDirective | typeof FNodeDirective)[];
4
+ import { FDragHandleDirective } from './f-drag-handle.directive';
5
+ export declare const F_NODE_PROVIDERS: (typeof FResizeHandleDirective | typeof FDragHandleDirective | typeof FGroupDirective | typeof FNodeDirective)[];
@@ -8,8 +8,8 @@ export declare class SelectionAreaDragHandle implements IDraggableItem {
8
8
  private fSelectionArea;
9
9
  private fDraggableDataContext;
10
10
  private fMediator;
11
- private canBeSelected;
12
- private selectedByMove;
11
+ private _canBeSelected;
12
+ private _selectedByMove;
13
13
  private get canvasPosition();
14
14
  constructor(fComponentsStore: FComponentsStore, fSelectionArea: FSelectionAreaBase, fDraggableDataContext: FDraggableDataContext, fMediator: FMediator);
15
15
  prepareDragSequence(): void;
@@ -4,4 +4,4 @@ import { FComponentsStore } from './f-components-store';
4
4
  import { ListenCountChangesExecution } from './features/listen-count-changes';
5
5
  import { ListenTransformChangesExecution } from './features/listen-transform-changes';
6
6
  import { NotifyTransformChangedExecution } from './features/notify-transform-changed';
7
- export declare const F_STORAGE_PROVIDERS: (typeof FComponentsStore | typeof NotifyDataChangedExecution | typeof ListenDataChangesExecution | typeof ListenCountChangesExecution | typeof ListenTransformChangesExecution | typeof NotifyTransformChangedExecution)[];
7
+ export declare const F_STORAGE_PROVIDERS: (typeof NotifyDataChangedExecution | typeof FComponentsStore | typeof ListenDataChangesExecution | typeof ListenCountChangesExecution | typeof ListenTransformChangesExecution | typeof NotifyTransformChangedExecution)[];