@foblex/flow 17.5.9 → 17.6.1

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 (358) hide show
  1. package/domain/css-cls.d.ts +1 -1
  2. package/domain/f-background/add-background-to-store/add-background-to-store.execution.d.ts +4 -1
  3. package/domain/f-background/add-pattern-to-background/add-pattern-to-background.execution.d.ts +4 -1
  4. package/domain/f-background/providers.d.ts +4 -0
  5. package/domain/f-background/remove-background-from-store/remove-background-from-store.execution.d.ts +4 -1
  6. package/domain/f-background/set-background-transform/set-background-transform.execution.d.ts +4 -1
  7. package/domain/f-canvas/add-canvas-to-store/add-canvas-to-store.execution.d.ts +4 -1
  8. package/domain/f-canvas/center-group-or-node/center-group-or-node.execution.d.ts +4 -1
  9. package/domain/f-canvas/fit-to-flow/fit-to-flow.execution.d.ts +4 -1
  10. package/domain/f-canvas/get-canvas/get-canvas.execution.d.ts +4 -1
  11. package/domain/f-canvas/input-canvas-position/input-canvas-position.execution.d.ts +4 -1
  12. package/domain/f-canvas/input-canvas-scale/input-canvas-scale.execution.d.ts +5 -1
  13. package/domain/f-canvas/providers.d.ts +3 -0
  14. package/domain/f-canvas/redraw-canvas-with-animation/redraw-canvas-with-animation.execution.d.ts +6 -1
  15. package/domain/f-canvas/remove-canvas-from-store/remove-canvas-from-store.execution.d.ts +4 -1
  16. package/domain/f-canvas/reset-scale/reset-scale.execution.d.ts +4 -1
  17. package/domain/f-canvas/reset-scale-and-center/reset-scale-and-center.execution.d.ts +4 -1
  18. package/domain/f-canvas/update-scale/update-scale.execution.d.ts +5 -1
  19. package/domain/f-connection/add-connection-for-create-to-store/add-connection-for-create-to-store.execution.d.ts +4 -1
  20. package/domain/f-connection/add-connection-marker-to-store/add-connection-marker-to-store.execution.d.ts +4 -1
  21. package/domain/f-connection/add-connection-to-store/add-connection-to-store.execution.d.ts +4 -1
  22. package/domain/f-connection/add-snap-connection-to-store/add-snap-connection-to-store.execution.d.ts +4 -1
  23. package/domain/f-connection/calculate-connection-line-by-behavior/calculate-connection-line-by-behavior.execution.d.ts +3 -0
  24. package/domain/f-connection/calculate-connection-line-by-behavior/fixed-center-behavior.d.ts +5 -0
  25. package/domain/f-connection/calculate-connection-line-by-behavior/fixed-outbound-behavior.d.ts +5 -0
  26. package/domain/f-connection/calculate-connection-line-by-behavior/floating-behavior.d.ts +5 -0
  27. package/domain/f-connection/create-connection-markers/create-connection-markers.execution.d.ts +5 -5
  28. package/domain/f-connection/providers.d.ts +3 -0
  29. package/domain/f-connection/redraw-connections/redraw-connections.execution.d.ts +6 -1
  30. package/domain/f-connection/remove-connection-for-create-from-store/remove-connection-for-create-from-store.execution.d.ts +4 -1
  31. package/domain/f-connection/remove-connection-from-store/remove-connection-from-store.execution.d.ts +4 -1
  32. package/domain/f-connection/remove-connection-marker-from-store/remove-connection-marker-from-store.execution.d.ts +4 -1
  33. package/domain/f-connection/remove-snap-connection-from-store/remove-snap-connection-from-store.execution.d.ts +4 -1
  34. package/domain/f-connectors/add-input-to-store/add-input-to-store.execution.d.ts +4 -1
  35. package/domain/f-connectors/add-outlet-to-store/add-outlet-to-store.execution.d.ts +3 -0
  36. package/domain/f-connectors/add-output-to-store/add-output-to-store.execution.d.ts +3 -0
  37. package/domain/f-connectors/find-closest-connector/find-closest-connector.execution.d.ts +16 -0
  38. package/domain/f-connectors/find-closest-connector/find-closest-connector.request.d.ts +8 -0
  39. package/domain/f-connectors/find-closest-connector/index.d.ts +2 -0
  40. package/domain/f-connectors/find-connectable-connector-using-priority-and-position/find-connectable-connector-using-priority-and-position.execution.d.ts +30 -0
  41. package/domain/f-connectors/find-connectable-connector-using-priority-and-position/find-connectable-connector-using-priority-and-position.request.d.ts +8 -0
  42. package/domain/f-connectors/find-connectable-connector-using-priority-and-position/index.d.ts +2 -0
  43. package/domain/f-connectors/get-all-can-be-connected-inputs-and-rects/get-all-can-be-connected-inputs-and-rects.execution.d.ts +4 -1
  44. package/domain/f-connectors/get-all-can-be-connected-source-connectors-and-rects/get-all-can-be-connected-source-connectors-and-rects.execution.d.ts +18 -0
  45. package/domain/f-connectors/get-all-can-be-connected-source-connectors-and-rects/get-all-can-be-connected-source-connectors-and-rects.request.d.ts +6 -0
  46. package/domain/f-connectors/get-all-can-be-connected-source-connectors-and-rects/index.d.ts +2 -0
  47. package/domain/f-connectors/get-connector-and-rect/get-connector-and-rect.execution.d.ts +4 -1
  48. package/domain/f-connectors/{i-closest-input.d.ts → i-closest-connector.d.ts} +4 -1
  49. package/domain/f-connectors/index.d.ts +6 -5
  50. package/domain/f-connectors/mark-connectable-connectors/index.d.ts +2 -0
  51. package/domain/f-connectors/mark-connectable-connectors/mark-connectable-connectors.execution.d.ts +13 -0
  52. package/domain/f-connectors/mark-connectable-connectors/mark-connectable-connectors.request.d.ts +6 -0
  53. package/domain/f-connectors/providers.d.ts +6 -5
  54. package/domain/f-connectors/remove-input-from-store/remove-input-from-store.execution.d.ts +4 -1
  55. package/domain/f-connectors/remove-outlet-from-store/remove-outlet-from-store.execution.d.ts +4 -1
  56. package/domain/f-connectors/remove-output-from-store/remove-output-from-store.execution.d.ts +4 -1
  57. package/domain/f-connectors/unmark-connectable-connectors/index.d.ts +2 -0
  58. package/domain/f-connectors/unmark-connectable-connectors/unmark-connectable-connectors.execution.d.ts +13 -0
  59. package/domain/f-connectors/unmark-connectable-connectors/unmark-connectable-connectors.request.d.ts +6 -0
  60. package/domain/f-draggable/add-dnd-to-store/add-dnd-to-store.execution.d.ts +4 -1
  61. package/domain/f-draggable/emit-selection-change-event/emit-selection-change-event.execution.d.ts +7 -3
  62. package/domain/f-draggable/end-drag-sequence/end-drag-sequence.execution.d.ts +4 -1
  63. package/domain/f-draggable/initialize-drag-sequence/initialize-drag-sequence.execution.d.ts +3 -0
  64. package/domain/f-draggable/is-drag-started/is-drag-started.execution.d.ts +4 -1
  65. package/domain/f-draggable/on-pointer-move/on-pointer-move.execution.d.ts +6 -1
  66. package/domain/f-draggable/prepare-drag-sequence/prepare-drag-sequence.execution.d.ts +4 -1
  67. package/domain/f-draggable/providers.d.ts +4 -1
  68. package/domain/f-draggable/remove-dnd-from-store/remove-dnd-from-store.execution.d.ts +4 -1
  69. package/domain/f-draggable/start-drag-sequence/start-drag-sequence.execution.d.ts +5 -2
  70. package/domain/f-flow/add-flow-to-store/add-flow-to-store.execution.d.ts +4 -1
  71. package/domain/f-flow/get-flow/get-flow.execution.d.ts +4 -1
  72. package/domain/f-flow/get-flow-host-element/get-flow-host-element.execution.d.ts +4 -1
  73. package/domain/f-flow/get-flow-state/get-flow-state-connections/get-flow-state-connections.execution.d.ts +4 -1
  74. package/domain/f-flow/get-flow-state/get-flow-state-nodes/get-flow-state-nodes.execution.d.ts +4 -3
  75. package/domain/f-flow/get-flow-state/get-flow-state.execution.d.ts +5 -2
  76. package/domain/f-flow/get-flow-state/providers.d.ts +4 -1
  77. package/domain/f-flow/providers.d.ts +6 -1
  78. package/domain/f-flow/remove-flow-from-store/remove-flow-from-store.execution.d.ts +4 -1
  79. package/domain/f-line-alignment/add-line-alignment-to-store/add-line-alignment-to-store.execution.d.ts +4 -1
  80. package/domain/f-line-alignment/providers.d.ts +5 -0
  81. package/domain/f-line-alignment/remove-line-alignment-from-store/remove-line-alignment-from-store.execution.d.ts +4 -1
  82. package/domain/f-node/add-node-to-store/add-node-to-store.execution.d.ts +4 -1
  83. package/domain/f-node/calculate-input-connections/calculate-input-connections.execution.d.ts +4 -1
  84. package/domain/f-node/calculate-nodes-bounding-box/calculate-nodes-bounding-box.execution.d.ts +5 -1
  85. package/domain/f-node/calculate-nodes-bounding-box-normalized-position/calculate-nodes-bounding-box-normalized-position.execution.d.ts +6 -1
  86. package/domain/f-node/calculate-output-connections/calculate-output-connections.execution.d.ts +4 -1
  87. package/domain/f-node/get-node-padding/get-node-padding.execution.d.ts +4 -0
  88. package/domain/f-node/get-nodes/get-nodes.execution.d.ts +4 -1
  89. package/domain/f-node/get-parent-nodes/get-parent-nodes.execution.d.ts +4 -1
  90. package/domain/f-node/providers.d.ts +3 -0
  91. package/domain/f-node/remove-node-from-store/remove-node-from-store.execution.d.ts +4 -1
  92. package/domain/f-node/update-node-when-state-or-size-changed/update-node-when-state-or-size-changed.execution.d.ts +28 -1
  93. package/domain/f-selection/clear-selection/clear-selection.execution.d.ts +3 -0
  94. package/domain/f-selection/get-can-be-selected-items/get-can-be-selected-items.execution.d.ts +14 -2
  95. package/domain/f-selection/get-current-selection/get-current-selection.execution.d.ts +3 -0
  96. package/domain/f-selection/providers.d.ts +3 -0
  97. package/domain/f-selection/select/select.execution.d.ts +4 -1
  98. package/domain/f-selection/select-all/select-all.execution.d.ts +5 -1
  99. package/domain/f-selection/select-and-update-node-layer/select-and-update-node-layer.execution.d.ts +7 -5
  100. package/domain/f-zoom/add-zoom-to-store/add-zoom-to-store.execution.d.ts +4 -1
  101. package/domain/f-zoom/providers.d.ts +5 -0
  102. package/domain/f-zoom/remove-zoom-from-store/remove-zoom-from-store.execution.d.ts +4 -1
  103. package/domain/f-zoom/reset-zoom/reset-zoom.execution.d.ts +4 -1
  104. package/domain/f-zoom/set-zoom/set-zoom.execution.d.ts +6 -2
  105. package/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.execution.d.ts +5 -1
  106. package/domain/get-element-rounded-rect/get-element-rounded-rect.execution.d.ts +5 -1
  107. package/domain/get-normalized-connector-rect/get-normalized-connector-rect.execution.d.ts +7 -2
  108. package/domain/get-normalized-element-rect/get-normalized-element-rect.execution.d.ts +7 -2
  109. package/domain/get-normalized-point/get-normalized-point.execution.d.ts +6 -1
  110. package/domain/providers.d.ts +7 -1
  111. package/domain/sort-item-layers/sort-item-layers.execution.d.ts +9 -2
  112. package/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.execution.d.ts +8 -3
  113. package/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.execution.d.ts +8 -3
  114. package/domain/update-item-and-children-layers/move-front-elements-before-target-element/move-front-elements-before-target-element.execution.d.ts +4 -0
  115. package/domain/update-item-and-children-layers/update-item-and-children-layers.execution.d.ts +6 -2
  116. package/drag-toolkit/drag-and-drop-base.d.ts +60 -0
  117. package/esm2022/domain/css-cls.mjs +2 -2
  118. package/esm2022/domain/f-background/add-background-to-store/add-background-to-store.execution.mjs +6 -3
  119. package/esm2022/domain/f-background/add-pattern-to-background/add-pattern-to-background.execution.mjs +7 -4
  120. package/esm2022/domain/f-background/providers.mjs +5 -1
  121. package/esm2022/domain/f-background/remove-background-from-store/remove-background-from-store.execution.mjs +6 -3
  122. package/esm2022/domain/f-background/set-background-transform/set-background-transform.execution.mjs +6 -3
  123. package/esm2022/domain/f-canvas/add-canvas-to-store/add-canvas-to-store.execution.mjs +6 -3
  124. package/esm2022/domain/f-canvas/center-group-or-node/center-group-or-node.execution.mjs +8 -5
  125. package/esm2022/domain/f-canvas/fit-to-flow/fit-to-flow.execution.mjs +7 -4
  126. package/esm2022/domain/f-canvas/get-canvas/get-canvas.execution.mjs +6 -3
  127. package/esm2022/domain/f-canvas/input-canvas-position/input-canvas-position.execution.mjs +6 -3
  128. package/esm2022/domain/f-canvas/input-canvas-scale/input-canvas-scale.execution.mjs +7 -3
  129. package/esm2022/domain/f-canvas/providers.mjs +4 -1
  130. package/esm2022/domain/f-canvas/redraw-canvas-with-animation/redraw-canvas-with-animation.execution.mjs +13 -8
  131. package/esm2022/domain/f-canvas/remove-canvas-from-store/remove-canvas-from-store.execution.mjs +6 -3
  132. package/esm2022/domain/f-canvas/reset-scale/reset-scale.execution.mjs +6 -3
  133. package/esm2022/domain/f-canvas/reset-scale-and-center/reset-scale-and-center.execution.mjs +7 -4
  134. package/esm2022/domain/f-canvas/update-scale/update-scale.execution.mjs +7 -3
  135. package/esm2022/domain/f-connection/add-connection-for-create-to-store/add-connection-for-create-to-store.execution.mjs +6 -3
  136. package/esm2022/domain/f-connection/add-connection-marker-to-store/add-connection-marker-to-store.execution.mjs +6 -3
  137. package/esm2022/domain/f-connection/add-connection-to-store/add-connection-to-store.execution.mjs +7 -4
  138. package/esm2022/domain/f-connection/add-snap-connection-to-store/add-snap-connection-to-store.execution.mjs +6 -3
  139. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/calculate-connection-line-by-behavior.execution.mjs +4 -1
  140. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/fixed-center-behavior.mjs +6 -1
  141. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/fixed-outbound-behavior.mjs +6 -1
  142. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/floating-behavior.mjs +6 -1
  143. package/esm2022/domain/f-connection/create-connection-markers/create-connection-markers.execution.mjs +20 -18
  144. package/esm2022/domain/f-connection/providers.mjs +4 -1
  145. package/esm2022/domain/f-connection/redraw-connections/redraw-connections.execution.mjs +16 -11
  146. package/esm2022/domain/f-connection/remove-connection-for-create-from-store/remove-connection-for-create-from-store.execution.mjs +6 -3
  147. package/esm2022/domain/f-connection/remove-connection-from-store/remove-connection-from-store.execution.mjs +8 -5
  148. package/esm2022/domain/f-connection/remove-connection-marker-from-store/remove-connection-marker-from-store.execution.mjs +6 -3
  149. package/esm2022/domain/f-connection/remove-snap-connection-from-store/remove-snap-connection-from-store.execution.mjs +6 -3
  150. package/esm2022/domain/f-connectors/add-input-to-store/add-input-to-store.execution.mjs +6 -3
  151. package/esm2022/domain/f-connectors/add-outlet-to-store/add-outlet-to-store.execution.mjs +4 -1
  152. package/esm2022/domain/f-connectors/add-output-to-store/add-output-to-store.execution.mjs +4 -1
  153. package/esm2022/domain/f-connectors/find-closest-connector/find-closest-connector.execution.mjs +47 -0
  154. package/esm2022/domain/f-connectors/find-closest-connector/find-closest-connector.request.mjs +10 -0
  155. package/esm2022/domain/f-connectors/{find-input-at-position → find-closest-connector}/index.mjs +3 -3
  156. package/esm2022/domain/f-connectors/find-connectable-connector-using-priority-and-position/find-connectable-connector-using-priority-and-position.execution.mjs +98 -0
  157. package/esm2022/domain/f-connectors/find-connectable-connector-using-priority-and-position/find-connectable-connector-using-priority-and-position.request.mjs +10 -0
  158. package/esm2022/domain/f-connectors/find-connectable-connector-using-priority-and-position/index.mjs +3 -0
  159. package/esm2022/domain/f-connectors/get-all-can-be-connected-inputs-and-rects/get-all-can-be-connected-inputs-and-rects.execution.mjs +6 -3
  160. package/esm2022/domain/f-connectors/get-all-can-be-connected-source-connectors-and-rects/get-all-can-be-connected-source-connectors-and-rects.execution.mjs +43 -0
  161. package/esm2022/domain/f-connectors/get-all-can-be-connected-source-connectors-and-rects/get-all-can-be-connected-source-connectors-and-rects.request.mjs +8 -0
  162. package/esm2022/domain/f-connectors/get-all-can-be-connected-source-connectors-and-rects/index.mjs +3 -0
  163. package/esm2022/domain/f-connectors/get-connector-and-rect/get-connector-and-rect.execution.mjs +6 -3
  164. package/esm2022/domain/f-connectors/i-closest-connector.mjs +2 -0
  165. package/esm2022/domain/f-connectors/index.mjs +7 -6
  166. package/esm2022/domain/f-connectors/mark-connectable-connectors/index.mjs +3 -0
  167. package/esm2022/domain/f-connectors/mark-connectable-connectors/mark-connectable-connectors.execution.mjs +30 -0
  168. package/esm2022/domain/f-connectors/mark-connectable-connectors/mark-connectable-connectors.request.mjs +8 -0
  169. package/esm2022/domain/f-connectors/providers.mjs +14 -9
  170. package/esm2022/domain/f-connectors/remove-input-from-store/remove-input-from-store.execution.mjs +6 -3
  171. package/esm2022/domain/f-connectors/remove-outlet-from-store/remove-outlet-from-store.execution.mjs +6 -3
  172. package/esm2022/domain/f-connectors/remove-output-from-store/remove-output-from-store.execution.mjs +6 -3
  173. package/esm2022/domain/f-connectors/unmark-connectable-connectors/index.mjs +3 -0
  174. package/esm2022/domain/f-connectors/unmark-connectable-connectors/unmark-connectable-connectors.execution.mjs +30 -0
  175. package/esm2022/domain/f-connectors/unmark-connectable-connectors/unmark-connectable-connectors.request.mjs +8 -0
  176. package/esm2022/domain/f-draggable/add-dnd-to-store/add-dnd-to-store.execution.mjs +6 -3
  177. package/esm2022/domain/f-draggable/emit-selection-change-event/emit-selection-change-event.execution.mjs +10 -6
  178. package/esm2022/domain/f-draggable/end-drag-sequence/end-drag-sequence.execution.mjs +7 -4
  179. package/esm2022/domain/f-draggable/initialize-drag-sequence/initialize-drag-sequence.execution.mjs +4 -1
  180. package/esm2022/domain/f-draggable/is-drag-started/is-drag-started.execution.mjs +6 -3
  181. package/esm2022/domain/f-draggable/on-pointer-move/on-pointer-move.execution.mjs +8 -3
  182. package/esm2022/domain/f-draggable/prepare-drag-sequence/prepare-drag-sequence.execution.mjs +6 -3
  183. package/esm2022/domain/f-draggable/providers.mjs +4 -1
  184. package/esm2022/domain/f-draggable/remove-dnd-from-store/remove-dnd-from-store.execution.mjs +6 -3
  185. package/esm2022/domain/f-draggable/start-drag-sequence/start-drag-sequence.execution.mjs +9 -6
  186. package/esm2022/domain/f-flow/add-flow-to-store/add-flow-to-store.execution.mjs +6 -3
  187. package/esm2022/domain/f-flow/get-flow/get-flow.execution.mjs +6 -3
  188. package/esm2022/domain/f-flow/get-flow-host-element/get-flow-host-element.execution.mjs +6 -3
  189. package/esm2022/domain/f-flow/get-flow-state/get-flow-state-connections/get-flow-state-connections.execution.mjs +7 -4
  190. package/esm2022/domain/f-flow/get-flow-state/get-flow-state-nodes/get-flow-state-nodes.execution.mjs +13 -13
  191. package/esm2022/domain/f-flow/get-flow-state/get-flow-state.execution.mjs +11 -8
  192. package/esm2022/domain/f-flow/get-flow-state/providers.mjs +4 -1
  193. package/esm2022/domain/f-flow/providers.mjs +6 -1
  194. package/esm2022/domain/f-flow/remove-flow-from-store/remove-flow-from-store.execution.mjs +6 -3
  195. package/esm2022/domain/f-line-alignment/add-line-alignment-to-store/add-line-alignment-to-store.execution.mjs +6 -3
  196. package/esm2022/domain/f-line-alignment/providers.mjs +6 -1
  197. package/esm2022/domain/f-line-alignment/remove-line-alignment-from-store/remove-line-alignment-from-store.execution.mjs +6 -3
  198. package/esm2022/domain/f-node/add-node-to-store/add-node-to-store.execution.mjs +6 -3
  199. package/esm2022/domain/f-node/calculate-input-connections/calculate-input-connections.execution.mjs +7 -4
  200. package/esm2022/domain/f-node/calculate-nodes-bounding-box/calculate-nodes-bounding-box.execution.mjs +7 -3
  201. package/esm2022/domain/f-node/calculate-nodes-bounding-box-normalized-position/calculate-nodes-bounding-box-normalized-position.execution.mjs +8 -3
  202. package/esm2022/domain/f-node/calculate-output-connections/calculate-output-connections.execution.mjs +7 -4
  203. package/esm2022/domain/f-node/get-node-padding/get-node-padding.execution.mjs +5 -1
  204. package/esm2022/domain/f-node/get-nodes/get-nodes.execution.mjs +6 -3
  205. package/esm2022/domain/f-node/get-parent-nodes/get-parent-nodes.execution.mjs +9 -6
  206. package/esm2022/domain/f-node/providers.mjs +4 -1
  207. package/esm2022/domain/f-node/remove-node-from-store/remove-node-from-store.execution.mjs +6 -3
  208. package/esm2022/domain/f-node/update-node-when-state-or-size-changed/update-node-when-state-or-size-changed.execution.mjs +30 -3
  209. package/esm2022/domain/f-selection/clear-selection/clear-selection.execution.mjs +4 -1
  210. package/esm2022/domain/f-selection/get-can-be-selected-items/get-can-be-selected-items.execution.mjs +20 -8
  211. package/esm2022/domain/f-selection/get-current-selection/get-current-selection.execution.mjs +4 -1
  212. package/esm2022/domain/f-selection/providers.mjs +4 -1
  213. package/esm2022/domain/f-selection/select/select.execution.mjs +7 -4
  214. package/esm2022/domain/f-selection/select-all/select-all.execution.mjs +8 -4
  215. package/esm2022/domain/f-selection/select-and-update-node-layer/select-and-update-node-layer.execution.mjs +17 -17
  216. package/esm2022/domain/f-zoom/add-zoom-to-store/add-zoom-to-store.execution.mjs +6 -3
  217. package/esm2022/domain/f-zoom/providers.mjs +6 -1
  218. package/esm2022/domain/f-zoom/remove-zoom-from-store/remove-zoom-from-store.execution.mjs +6 -3
  219. package/esm2022/domain/f-zoom/reset-zoom/reset-zoom.execution.mjs +6 -3
  220. package/esm2022/domain/f-zoom/set-zoom/set-zoom.execution.mjs +11 -7
  221. package/esm2022/domain/get-deep-children-nodes-and-groups/get-deep-children-nodes-and-groups.execution.mjs +8 -4
  222. package/esm2022/domain/get-element-rounded-rect/get-element-rounded-rect.execution.mjs +8 -4
  223. package/esm2022/domain/get-normalized-connector-rect/get-normalized-connector-rect.execution.mjs +11 -6
  224. package/esm2022/domain/get-normalized-element-rect/get-normalized-element-rect.execution.mjs +10 -5
  225. package/esm2022/domain/get-normalized-point/get-normalized-point.execution.mjs +9 -4
  226. package/esm2022/domain/providers.mjs +7 -1
  227. package/esm2022/domain/sort-item-layers/sort-item-layers.execution.mjs +15 -8
  228. package/esm2022/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.execution.mjs +13 -8
  229. package/esm2022/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.execution.mjs +14 -9
  230. package/esm2022/domain/update-item-and-children-layers/move-front-elements-before-target-element/move-front-elements-before-target-element.execution.mjs +5 -1
  231. package/esm2022/domain/update-item-and-children-layers/update-item-and-children-layers.execution.mjs +12 -8
  232. package/esm2022/drag-toolkit/drag-and-drop-base.mjs +55 -1
  233. package/esm2022/f-canvas/f-canvas.component.mjs +67 -20
  234. package/esm2022/f-connection/common/domain/f-bezier.path-builder.mjs +7 -2
  235. package/esm2022/f-connection/common/domain/f-segment.path-builder.mjs +3 -2
  236. package/esm2022/f-connection/common/domain/f-straight.path-builder.mjs +2 -2
  237. package/esm2022/f-connection/common/f-connection-base.mjs +16 -12
  238. package/esm2022/f-connection/common/f-connection-text/f-connection-text-path.directive.mjs +2 -2
  239. package/esm2022/f-connection/common/f-connection-text/f-connection-text.component.mjs +2 -2
  240. package/esm2022/f-connection/common/f-gradient/f-connection-gradient.component.mjs +4 -4
  241. package/esm2022/f-connection/common/f-path/f-connection-path.component.mjs +8 -8
  242. package/esm2022/f-connection/common/f-selection/f-connection-selection.component.mjs +2 -2
  243. package/esm2022/f-connection/common/i-has-connection-color.mjs +1 -1
  244. package/esm2022/f-connection/common/i-has-connection-from-to.mjs +1 -1
  245. package/esm2022/f-connection/f-connection/f-connection.component.mjs +23 -52
  246. package/esm2022/f-connection/f-connection-builder/i-f-connection-builder-response.mjs +1 -1
  247. package/esm2022/f-connection/f-connection-for-create/f-connection-for-create.component.mjs +21 -48
  248. package/esm2022/f-connection/f-snap-connection/f-snap-connection.component.mjs +21 -48
  249. package/esm2022/f-connectors/f-node-input/f-node-input.directive.mjs +2 -2
  250. package/esm2022/f-connectors/f-node-outlet/f-node-outlet.directive.mjs +2 -2
  251. package/esm2022/f-connectors/f-node-output/f-node-output.directive.mjs +2 -2
  252. package/esm2022/f-draggable/domain/get-normalized-parent-node-rect/get-normalized-parent-node-rect.execution.mjs +2 -2
  253. package/esm2022/f-draggable/domain/is-array-has-parent-node/is-array-has-parent-node.execution.mjs +3 -3
  254. package/esm2022/f-draggable/domain/is-connection-under-node/is-connection-under-node.execution.mjs +6 -6
  255. package/esm2022/f-draggable/f-connection/f-create-connection/create-finalize/f-create-connection-finalize.execution.mjs +3 -3
  256. package/esm2022/f-draggable/f-connection/f-create-connection/f-create-connection.drag-handler.mjs +5 -5
  257. package/esm2022/f-draggable/f-connection/f-reassign-connection/f-reassign-connection.drag-handler.mjs +41 -73
  258. package/esm2022/f-draggable/f-connection/f-reassign-connection/f-reassign-connection.event.mjs +18 -12
  259. package/esm2022/f-draggable/f-connection/f-reassign-connection/f-reassign-source.drag-handler.mjs +83 -0
  260. package/esm2022/f-draggable/f-connection/f-reassign-connection/f-reassign-target.drag-handler.mjs +82 -0
  261. package/esm2022/f-draggable/f-connection/f-reassign-connection/i-f-reassign-connection-drag-result.mjs +1 -1
  262. package/esm2022/f-draggable/f-connection/f-reassign-connection/i-f-reassign-handler.mjs +8 -0
  263. package/esm2022/f-draggable/f-connection/f-reassign-connection/index.mjs +5 -1
  264. package/esm2022/f-draggable/f-connection/f-reassign-connection/reassign-finalize/f-reassign-connection-finalize.execution.mjs +27 -21
  265. package/esm2022/f-draggable/f-connection/f-reassign-connection/reassign-preparation/f-reassign-connection-preparation.execution.mjs +8 -11
  266. package/esm2022/f-draggable/f-connection/f-reassign-connection/reassign-preparation/index.mjs +2 -1
  267. package/esm2022/f-draggable/f-connection/f-reassign-connection/reassign-preparation/is-pointer-inside-start-or-end-drag-handles.mjs +17 -0
  268. package/esm2022/f-draggable/f-drop-to-group/drop-to-group-finalize/f-node-drop-to-group-finalize.execution.mjs +3 -3
  269. package/esm2022/f-draggable/f-node-move/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.mjs +4 -4
  270. package/esm2022/f-draggable/f-node-move/create-move-nodes-drag-model-from-selection/domain/put-input-connection-handlers-to-array/put-input-connection-handlers-to-array.execution.mjs +2 -2
  271. package/esm2022/f-draggable/f-node-move/create-move-nodes-drag-model-from-selection/domain/put-output-connection-handlers-to-array/put-output-connection-handlers-to-array.execution.mjs +2 -2
  272. package/esm2022/f-draggable/f-node-move/f-summary-node-move.drag-handler.mjs +2 -2
  273. package/esm2022/f-draggable/f-node-move/move-finalize/f-node-move-finalize.execution.mjs +2 -2
  274. package/esm2022/f-draggable/f-node-resize/f-node-resize.drag-handler.mjs +2 -2
  275. package/esm2022/f-draggable/f-node-resize/get-normalized-children-nodes-rect/get-normalized-children-nodes-rect.execution.mjs +2 -2
  276. package/esm2022/f-draggable/f-node-rotate/f-node-rotate.drag-handler.mjs +2 -2
  277. package/esm2022/f-draggable/f-single-select/f-single-select.execution.mjs +2 -2
  278. package/esm2022/f-external-item/domain/finalize/f-external-item-finalize.execution.mjs +2 -2
  279. package/esm2022/f-flow/f-flow.component.mjs +3 -3
  280. package/esm2022/f-minimap/domain/f-minimap.drag-handler.mjs +1 -1
  281. package/esm2022/f-minimap/f-minimap-canvas.directive.mjs +3 -4
  282. package/esm2022/f-minimap/f-minimap-flow.directive.mjs +7 -9
  283. package/esm2022/f-minimap/f-minimap-view.directive.mjs +3 -3
  284. package/esm2022/f-minimap/f-minimap.component.mjs +19 -30
  285. package/esm2022/f-node/f-group.directive.mjs +6 -9
  286. package/esm2022/f-node/f-node-base.mjs +1 -1
  287. package/esm2022/f-node/f-node.directive.mjs +6 -9
  288. package/esm2022/f-zoom/f-zoom.directive.mjs +8 -2
  289. package/esm2022/mixins/change-selection/change-selection.mjs +3 -2
  290. package/esm2022/mixins/change-selection/i-selectable.mjs +1 -1
  291. package/f-canvas/f-canvas.component.d.ts +49 -1
  292. package/f-connection/common/f-connection-base.d.ts +15 -12
  293. package/f-connection/common/i-has-connection-color.d.ts +3 -2
  294. package/f-connection/common/i-has-connection-from-to.d.ts +2 -1
  295. package/f-connection/f-connection/f-connection.component.d.ts +17 -15
  296. package/f-connection/f-connection-builder/i-f-connection-builder-response.d.ts +1 -0
  297. package/f-connection/f-connection-for-create/f-connection-for-create.component.d.ts +16 -15
  298. package/f-connection/f-snap-connection/f-snap-connection.component.d.ts +16 -15
  299. package/f-connection/providers.d.ts +1 -1
  300. package/f-draggable/domain/is-connection-under-node/is-connection-under-node.execution.d.ts +2 -2
  301. package/f-draggable/f-connection/f-reassign-connection/f-reassign-connection.drag-handler.d.ts +11 -17
  302. package/f-draggable/f-connection/f-reassign-connection/f-reassign-connection.event.d.ts +9 -6
  303. package/f-draggable/f-connection/f-reassign-connection/f-reassign-source.drag-handler.d.ts +27 -0
  304. package/f-draggable/f-connection/f-reassign-connection/f-reassign-target.drag-handler.d.ts +28 -0
  305. package/f-draggable/f-connection/f-reassign-connection/i-f-reassign-connection-drag-result.d.ts +4 -2
  306. package/f-draggable/f-connection/f-reassign-connection/i-f-reassign-handler.d.ts +12 -0
  307. package/f-draggable/f-connection/f-reassign-connection/index.d.ts +4 -0
  308. package/f-draggable/f-connection/f-reassign-connection/reassign-finalize/f-reassign-connection-finalize.execution.d.ts +6 -6
  309. package/f-draggable/f-connection/f-reassign-connection/reassign-preparation/f-reassign-connection-preparation.execution.d.ts +0 -1
  310. package/f-draggable/f-connection/f-reassign-connection/reassign-preparation/index.d.ts +1 -0
  311. package/f-draggable/f-connection/f-reassign-connection/reassign-preparation/is-pointer-inside-start-or-end-drag-handles.d.ts +5 -0
  312. package/f-draggable/f-connection/providers.d.ts +1 -1
  313. package/f-draggable/f-drop-to-group/providers.d.ts +1 -1
  314. package/f-draggable/f-node-move/create-move-nodes-drag-model-from-selection/providers.d.ts +1 -1
  315. package/f-draggable/f-node-move/providers.d.ts +1 -1
  316. package/f-draggable/f-node-resize/providers.d.ts +1 -1
  317. package/f-draggable/providers.d.ts +1 -1
  318. package/f-flow/f-flow.component.d.ts +1 -1
  319. package/f-minimap/domain/providers.d.ts +1 -1
  320. package/f-minimap/f-minimap-canvas.directive.d.ts +1 -1
  321. package/f-minimap/f-minimap-flow.directive.d.ts +4 -4
  322. package/f-minimap/f-minimap-view.directive.d.ts +1 -1
  323. package/f-minimap/f-minimap.component.d.ts +8 -8
  324. package/f-node/f-group.directive.d.ts +2 -2
  325. package/f-node/f-node-base.d.ts +2 -2
  326. package/f-node/f-node.directive.d.ts +2 -2
  327. package/f-node/providers.d.ts +1 -1
  328. package/f-selection-area/domain/providers.d.ts +1 -1
  329. package/f-storage/providers.d.ts +1 -1
  330. package/f-zoom/f-zoom.directive.d.ts +1 -0
  331. package/fesm2022/foblex-flow.mjs +1331 -732
  332. package/fesm2022/foblex-flow.mjs.map +1 -1
  333. package/mixins/change-selection/i-selectable.d.ts +2 -1
  334. package/package.json +1 -1
  335. package/domain/f-connectors/calculate-closest-input/calculate-closest-input.execution.d.ts +0 -11
  336. package/domain/f-connectors/calculate-closest-input/calculate-closest-input.request.d.ts +0 -8
  337. package/domain/f-connectors/calculate-closest-input/index.d.ts +0 -2
  338. package/domain/f-connectors/find-input-at-position/find-input-at-position.execution.d.ts +0 -25
  339. package/domain/f-connectors/find-input-at-position/find-input-at-position.request.d.ts +0 -9
  340. package/domain/f-connectors/find-input-at-position/index.d.ts +0 -2
  341. package/domain/f-connectors/mark-all-can-be-connected-inputs/index.d.ts +0 -2
  342. package/domain/f-connectors/mark-all-can-be-connected-inputs/mark-all-can-be-connected-inputs.execution.d.ts +0 -10
  343. package/domain/f-connectors/mark-all-can-be-connected-inputs/mark-all-can-be-connected-inputs.request.d.ts +0 -6
  344. package/domain/f-connectors/unmark-all-can-be-connected-inputs/index.d.ts +0 -2
  345. package/domain/f-connectors/unmark-all-can-be-connected-inputs/unmark-all-can-be-connected-inputs.execution.d.ts +0 -10
  346. package/domain/f-connectors/unmark-all-can-be-connected-inputs/unmark-all-can-be-connected-inputs.request.d.ts +0 -6
  347. package/esm2022/domain/f-connectors/calculate-closest-input/calculate-closest-input.execution.mjs +0 -42
  348. package/esm2022/domain/f-connectors/calculate-closest-input/calculate-closest-input.request.mjs +0 -10
  349. package/esm2022/domain/f-connectors/calculate-closest-input/index.mjs +0 -3
  350. package/esm2022/domain/f-connectors/find-input-at-position/find-input-at-position.execution.mjs +0 -92
  351. package/esm2022/domain/f-connectors/find-input-at-position/find-input-at-position.request.mjs +0 -12
  352. package/esm2022/domain/f-connectors/i-closest-input.mjs +0 -2
  353. package/esm2022/domain/f-connectors/mark-all-can-be-connected-inputs/index.mjs +0 -3
  354. package/esm2022/domain/f-connectors/mark-all-can-be-connected-inputs/mark-all-can-be-connected-inputs.execution.mjs +0 -27
  355. package/esm2022/domain/f-connectors/mark-all-can-be-connected-inputs/mark-all-can-be-connected-inputs.request.mjs +0 -8
  356. package/esm2022/domain/f-connectors/unmark-all-can-be-connected-inputs/index.mjs +0 -3
  357. package/esm2022/domain/f-connectors/unmark-all-can-be-connected-inputs/unmark-all-can-be-connected-inputs.execution.mjs +0 -27
  358. package/esm2022/domain/f-connectors/unmark-all-can-be-connected-inputs/unmark-all-can-be-connected-inputs.request.mjs +0 -8
@@ -8,7 +8,7 @@ export declare const F_CSS_CLASS: {
8
8
  OUTPUT_NOT_CONNECTABLE: string;
9
9
  INPUT_CONNECTED: string;
10
10
  INPUT_NOT_CONNECTABLE: string;
11
- INPUT_CAN_BE_CONNECTED_TO: string;
11
+ CONNECTABLE: string;
12
12
  };
13
13
  CONNECTION: {
14
14
  DRAG_HANDLE: string;
@@ -1,8 +1,11 @@
1
1
  import { IExecution } from '@foblex/mediator';
2
2
  import { AddBackgroundToStoreRequest } from './add-background-to-store-request';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * Execution that adds a background to the FComponentsStore.
6
+ */
4
7
  export declare class AddBackgroundToStoreExecution implements IExecution<AddBackgroundToStoreRequest, void> {
5
- private readonly _fComponentsStore;
8
+ private readonly _store;
6
9
  handle(request: AddBackgroundToStoreRequest): void;
7
10
  static ɵfac: i0.ɵɵFactoryDeclaration<AddBackgroundToStoreExecution, never>;
8
11
  static ɵprov: i0.ɵɵInjectableDeclaration<AddBackgroundToStoreExecution>;
@@ -1,8 +1,11 @@
1
1
  import { AddPatternToBackgroundRequest } from './add-pattern-to-background.request';
2
2
  import { IExecution } from '@foblex/mediator';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * Execution that adds a pattern to the background in the FComponentsStore.
6
+ */
4
7
  export declare class AddPatternToBackgroundExecution implements IExecution<AddPatternToBackgroundRequest, void> {
5
- private readonly _fComponentsStore;
8
+ private readonly _store;
6
9
  private readonly _fBrowser;
7
10
  private get _fBackground();
8
11
  handle(request: AddPatternToBackgroundRequest): void;
@@ -2,4 +2,8 @@ import { AddPatternToBackgroundExecution } from './add-pattern-to-background';
2
2
  import { AddBackgroundToStoreExecution } from './add-background-to-store';
3
3
  import { RemoveBackgroundFromStoreExecution } from './remove-background-from-store';
4
4
  import { SetBackgroundTransformExecution } from './set-background-transform';
5
+ /**
6
+ * This file exports all the background-related features for the F-Flow domain.
7
+ * It includes executions for adding, removing, and setting the background in the FComponentsStore.
8
+ */
5
9
  export declare const F_BACKGROUND_FEATURES: (typeof AddBackgroundToStoreExecution | typeof AddPatternToBackgroundExecution | typeof RemoveBackgroundFromStoreExecution | typeof SetBackgroundTransformExecution)[];
@@ -1,8 +1,11 @@
1
1
  import { IExecution } from '@foblex/mediator';
2
2
  import { RemoveBackgroundFromStoreRequest } from './remove-background-from-store-request';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * Execution that removes the background from the FComponentsStore.
6
+ */
4
7
  export declare class RemoveBackgroundFromStoreExecution implements IExecution<RemoveBackgroundFromStoreRequest, void> {
5
- private readonly _fComponentsStore;
8
+ private readonly _store;
6
9
  handle(request: RemoveBackgroundFromStoreRequest): void;
7
10
  static ɵfac: i0.ɵɵFactoryDeclaration<RemoveBackgroundFromStoreExecution, never>;
8
11
  static ɵprov: i0.ɵɵInjectableDeclaration<RemoveBackgroundFromStoreExecution>;
@@ -1,8 +1,11 @@
1
1
  import { IExecution } from '@foblex/mediator';
2
2
  import { SetBackgroundTransformRequest } from './set-background-transform-request';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * Execution that sets the transform for the background when canvas is transformed.
6
+ */
4
7
  export declare class SetBackgroundTransformExecution implements IExecution<SetBackgroundTransformRequest, void> {
5
- private readonly _fComponentsStore;
8
+ private readonly _store;
6
9
  handle(request: SetBackgroundTransformRequest): void;
7
10
  static ɵfac: i0.ɵɵFactoryDeclaration<SetBackgroundTransformExecution, never>;
8
11
  static ɵprov: i0.ɵɵInjectableDeclaration<SetBackgroundTransformExecution>;
@@ -1,8 +1,11 @@
1
1
  import { IExecution } from '@foblex/mediator';
2
2
  import { AddCanvasToStoreRequest } from './add-canvas-to-store-request';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * Execution that adds a canvas to the FComponentsStore.
6
+ */
4
7
  export declare class AddCanvasToStoreExecution implements IExecution<AddCanvasToStoreRequest, void> {
5
- private _fComponentsStore;
8
+ private readonly _store;
6
9
  handle(request: AddCanvasToStoreRequest): void;
7
10
  static ɵfac: i0.ɵɵFactoryDeclaration<AddCanvasToStoreExecution, never>;
8
11
  static ɵprov: i0.ɵɵInjectableDeclaration<AddCanvasToStoreExecution>;
@@ -2,8 +2,11 @@ import { CenterGroupOrNodeRequest } from './center-group-or-node-request';
2
2
  import { IExecution } from '@foblex/mediator';
3
3
  import { IPoint, IRect } from '@foblex/2d';
4
4
  import * as i0 from "@angular/core";
5
+ /**
6
+ * Execution that centers a group or a node inside the flow.
7
+ */
5
8
  export declare class CenterGroupOrNodeExecution implements IExecution<CenterGroupOrNodeRequest, void> {
6
- private readonly _fComponentsStore;
9
+ private readonly _store;
7
10
  private readonly _fMediator;
8
11
  private get transform();
9
12
  handle(request: CenterGroupOrNodeRequest): void;
@@ -2,8 +2,11 @@ import { FitToFlowRequest } from './fit-to-flow-request';
2
2
  import { IExecution } from '@foblex/mediator';
3
3
  import { IPoint, IRect } from '@foblex/2d';
4
4
  import * as i0 from "@angular/core";
5
+ /**
6
+ * Fits all nodes and groups to the flow by scaling and positioning them
7
+ */
5
8
  export declare class FitToFlowExecution implements IExecution<FitToFlowRequest, void> {
6
- private _fComponentsStore;
9
+ private readonly _store;
7
10
  private get transform();
8
11
  private _fMediator;
9
12
  handle(request: FitToFlowRequest): void;
@@ -2,8 +2,11 @@ import { IExecution } from '@foblex/mediator';
2
2
  import { GetCanvasRequest } from './get-canvas-request';
3
3
  import { FCanvasBase } from '../../../f-canvas';
4
4
  import * as i0 from "@angular/core";
5
+ /**
6
+ * Execution that retrieves the canvas from the FComponentsStore.
7
+ */
5
8
  export declare class GetCanvasExecution implements IExecution<GetCanvasRequest, FCanvasBase> {
6
- private _fComponentsStore;
9
+ private readonly _store;
7
10
  handle(request: GetCanvasRequest): FCanvasBase;
8
11
  static ɵfac: i0.ɵɵFactoryDeclaration<GetCanvasExecution, never>;
9
12
  static ɵprov: i0.ɵɵInjectableDeclaration<GetCanvasExecution>;
@@ -1,8 +1,11 @@
1
1
  import { InputCanvasPositionRequest } from './input-canvas-position-request';
2
2
  import { IExecution } from '@foblex/mediator';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * It updates the canvas position and redraws the canvas when the user set a new position using the input.
6
+ */
4
7
  export declare class InputCanvasPositionExecution implements IExecution<InputCanvasPositionRequest, void> {
5
- private readonly _fComponentsStore;
8
+ private readonly _store;
6
9
  handle(request: InputCanvasPositionRequest): void;
7
10
  static ɵfac: i0.ɵɵFactoryDeclaration<InputCanvasPositionExecution, never>;
8
11
  static ɵprov: i0.ɵɵInjectableDeclaration<InputCanvasPositionExecution>;
@@ -1,8 +1,12 @@
1
1
  import { InputCanvasScaleRequest } from './input-canvas-scale-request';
2
2
  import { IExecution } from '@foblex/mediator';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * Execution that handles the scaling of the input canvas.
6
+ * It updates the scale of the canvas transform and redraws the canvas when the user sets a new scale using the input.
7
+ */
4
8
  export declare class InputCanvasScaleExecution implements IExecution<InputCanvasScaleRequest, void> {
5
- private readonly _fComponentsStore;
9
+ private readonly _store;
6
10
  handle(request: InputCanvasScaleRequest): void;
7
11
  static ɵfac: i0.ɵɵFactoryDeclaration<InputCanvasScaleExecution, never>;
8
12
  static ɵprov: i0.ɵɵInjectableDeclaration<InputCanvasScaleExecution>;
@@ -9,4 +9,7 @@ import { AddCanvasToStoreExecution } from './add-canvas-to-store';
9
9
  import { RemoveCanvasFromStoreExecution } from './remove-canvas-from-store';
10
10
  import { GetCanvasExecution } from './get-canvas';
11
11
  import { RedrawCanvasWithAnimationExecution } from './redraw-canvas-with-animation';
12
+ /**
13
+ * This file exports all the canvas-related executions that can be used in the FCanvas feature.
14
+ */
12
15
  export declare const F_CANVAS_FEATURES: (typeof AddCanvasToStoreExecution | typeof CenterGroupOrNodeExecution | typeof FitToFlowExecution | typeof GetCanvasExecution | typeof InputCanvasPositionExecution | typeof InputCanvasScaleExecution | typeof RedrawCanvasWithAnimationExecution | typeof RemoveCanvasFromStoreExecution | typeof ResetScaleExecution | typeof ResetScaleAndCenterExecution | typeof UpdateScaleExecution)[];
@@ -1,8 +1,13 @@
1
1
  import { RedrawCanvasWithAnimationRequest } from './redraw-canvas-with-animation-request';
2
2
  import { IExecution } from '@foblex/mediator';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * Execution that redraws the canvas with or without animation based on the request.
6
+ * If animated, it will redraw with animation and wait for the transition end to notify data change.
7
+ * If not animated, it will redraw immediately and notify data change.
8
+ */
4
9
  export declare class RedrawCanvasWithAnimationExecution implements IExecution<RedrawCanvasWithAnimationRequest, void> {
5
- private _fComponentsStore;
10
+ private readonly _store;
6
11
  private get _fCanvasElement();
7
12
  handle(request: RedrawCanvasWithAnimationRequest): void;
8
13
  private _redrawWithAnimation;
@@ -1,8 +1,11 @@
1
1
  import { IExecution } from '@foblex/mediator';
2
2
  import { RemoveCanvasFromStoreRequest } from './remove-canvas-from-store-request';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * Execution that removes the canvas from the FComponentsStore.
6
+ */
4
7
  export declare class RemoveCanvasFromStoreExecution implements IExecution<RemoveCanvasFromStoreRequest, void> {
5
- private _fComponentsStore;
8
+ private readonly _store;
6
9
  handle(request: RemoveCanvasFromStoreRequest): void;
7
10
  static ɵfac: i0.ɵɵFactoryDeclaration<RemoveCanvasFromStoreExecution, never>;
8
11
  static ɵprov: i0.ɵɵInjectableDeclaration<RemoveCanvasFromStoreExecution>;
@@ -1,8 +1,11 @@
1
1
  import { ResetScaleRequest } from './reset-scale-request';
2
2
  import { IExecution } from '@foblex/mediator';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * Execution that resets the scale of the canvas in the FComponentsStore.
6
+ */
4
7
  export declare class ResetScaleExecution implements IExecution<ResetScaleRequest, void> {
5
- private _fComponentsStore;
8
+ private readonly _store;
6
9
  private get transform();
7
10
  handle(request: ResetScaleRequest): void;
8
11
  static ɵfac: i0.ɵɵFactoryDeclaration<ResetScaleExecution, never>;
@@ -2,9 +2,12 @@ import { ResetScaleAndCenterRequest } from './reset-scale-and-center-request';
2
2
  import { IExecution } from '@foblex/mediator';
3
3
  import { IPoint, IRect } from '@foblex/2d';
4
4
  import * as i0 from "@angular/core";
5
+ /**
6
+ * Execution that resets the scale of the canvas and centers the nodes and groups inside the flow.
7
+ */
5
8
  export declare class ResetScaleAndCenterExecution implements IExecution<ResetScaleAndCenterRequest, void> {
6
9
  private readonly _fMediator;
7
- private readonly _fComponentsStore;
10
+ private readonly _store;
8
11
  private get _transform();
9
12
  handle(request: ResetScaleAndCenterRequest): void;
10
13
  _oneToOneCentering(rect: IRect, parentRect: IRect, points: IPoint[]): void;
@@ -1,8 +1,12 @@
1
1
  import { UpdateScaleRequest } from './update-scale-request';
2
2
  import { IExecution } from '@foblex/mediator';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * Execution that updates the scale of the canvas in the FComponentsStore.
6
+ * Occurs when the fZoom directive or User call the setScale method.
7
+ */
4
8
  export declare class UpdateScaleExecution implements IExecution<UpdateScaleRequest, void> {
5
- private _fComponentsStore;
9
+ private readonly _store;
6
10
  private get transform();
7
11
  handle(request: UpdateScaleRequest): void;
8
12
  static ɵfac: i0.ɵɵFactoryDeclaration<UpdateScaleExecution, never>;
@@ -1,8 +1,11 @@
1
1
  import { IExecution } from '@foblex/mediator';
2
2
  import { AddConnectionForCreateToStoreRequest } from './add-connection-for-create-to-store-request';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * Execution that adds a connection for creation to the FComponentsStore.
6
+ */
4
7
  export declare class AddConnectionForCreateToStoreExecution implements IExecution<AddConnectionForCreateToStoreRequest, void> {
5
- private _fComponentsStore;
8
+ private readonly _store;
6
9
  handle(request: AddConnectionForCreateToStoreRequest): void;
7
10
  static ɵfac: i0.ɵɵFactoryDeclaration<AddConnectionForCreateToStoreExecution, never>;
8
11
  static ɵprov: i0.ɵɵInjectableDeclaration<AddConnectionForCreateToStoreExecution>;
@@ -1,8 +1,11 @@
1
1
  import { IExecution } from '@foblex/mediator';
2
2
  import { AddConnectionMarkerToStoreRequest } from './add-connection-marker-to-store-request';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * Execution that adds a connection marker to the FComponentsStore.
6
+ */
4
7
  export declare class AddConnectionMarkerToStoreExecution implements IExecution<AddConnectionMarkerToStoreRequest, void> {
5
- private _fComponentsStore;
8
+ private readonly _store;
6
9
  handle(request: AddConnectionMarkerToStoreRequest): void;
7
10
  static ɵfac: i0.ɵɵFactoryDeclaration<AddConnectionMarkerToStoreExecution, never>;
8
11
  static ɵprov: i0.ɵɵInjectableDeclaration<AddConnectionMarkerToStoreExecution>;
@@ -1,8 +1,11 @@
1
1
  import { IExecution } from '@foblex/mediator';
2
2
  import { AddConnectionToStoreRequest } from './add-connection-to-store-request';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * Execution that adds a connection to the FComponentsStore.
6
+ */
4
7
  export declare class AddConnectionToStoreExecution implements IExecution<AddConnectionToStoreRequest, void> {
5
- private _fComponentsStore;
8
+ private readonly _store;
6
9
  handle(request: AddConnectionToStoreRequest): void;
7
10
  static ɵfac: i0.ɵɵFactoryDeclaration<AddConnectionToStoreExecution, never>;
8
11
  static ɵprov: i0.ɵɵInjectableDeclaration<AddConnectionToStoreExecution>;
@@ -1,8 +1,11 @@
1
1
  import { IExecution } from '@foblex/mediator';
2
2
  import { AddSnapConnectionToStoreRequest } from './add-snap-connection-to-store-request';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * Execution that adds a snap connection to the FComponentsStore.
6
+ */
4
7
  export declare class AddSnapConnectionToStoreExecution implements IExecution<AddSnapConnectionToStoreRequest, void> {
5
- private _fComponentsStore;
8
+ private readonly _store;
6
9
  handle(request: AddSnapConnectionToStoreRequest): void;
7
10
  static ɵfac: i0.ɵɵFactoryDeclaration<AddSnapConnectionToStoreExecution, never>;
8
11
  static ɵprov: i0.ɵɵInjectableDeclaration<AddSnapConnectionToStoreExecution>;
@@ -2,6 +2,9 @@ import { CalculateConnectionLineByBehaviorRequest } from './calculate-connection
2
2
  import { IExecution } from '@foblex/mediator';
3
3
  import { ILine } from '@foblex/2d';
4
4
  import * as i0 from "@angular/core";
5
+ /**
6
+ * Execution that calculates the connection line based on the behavior.
7
+ */
5
8
  export declare class CalculateConnectionLineByBehaviorExecution implements IExecution<CalculateConnectionLineByBehaviorRequest, ILine> {
6
9
  private _handlers;
7
10
  handle(payload: CalculateConnectionLineByBehaviorRequest): ILine;
@@ -1,3 +1,8 @@
1
1
  import { ILine } from '@foblex/2d';
2
2
  import { CalculateConnectionLineByBehaviorRequest } from './calculate-connection-line-by-behavior.request';
3
+ /**
4
+ * Fixed center behavior calculates the connection line
5
+ * It constructs a line between the gravity centers of the connector rectangles
6
+ * @param payload
7
+ */
3
8
  export declare function fixedCenterBehavior(payload: CalculateConnectionLineByBehaviorRequest): ILine;
@@ -1,3 +1,8 @@
1
1
  import { ILine } from '@foblex/2d';
2
2
  import { CalculateConnectionLineByBehaviorRequest } from './calculate-connection-line-by-behavior.request';
3
+ /**
4
+ * Fixed outbound behavior calculates the connection line
5
+ * It constructs a line between the specified sides of the output and input rectangles
6
+ * @param payload
7
+ */
3
8
  export declare function fixedOutboundBehavior(payload: CalculateConnectionLineByBehaviorRequest): ILine;
@@ -1,3 +1,8 @@
1
1
  import { ILine } from '@foblex/2d';
2
2
  import { CalculateConnectionLineByBehaviorRequest } from './calculate-connection-line-by-behavior.request';
3
+ /**
4
+ * Floating behavior calculates the connection line
5
+ * It constructs a line between the intersections of the connectors rectangles and line from the centers of the connector rectangles
6
+ * @param payload
7
+ */
3
8
  export declare function floatingBehavior(payload: CalculateConnectionLineByBehaviorRequest): ILine;
@@ -1,13 +1,13 @@
1
1
  import { CreateConnectionMarkersRequest } from './create-connection-markers-request';
2
2
  import { FConnectionBase, FMarkerBase } from '../../../f-connection';
3
3
  import { IExecution } from '@foblex/mediator';
4
- import { BrowserService } from '@foblex/platform';
5
- import { FComponentsStore } from '../../../f-storage';
6
4
  import * as i0 from "@angular/core";
5
+ /**
6
+ * Execution that creates connection markers for a given connection.
7
+ */
7
8
  export declare class CreateConnectionMarkersExecution implements IExecution<CreateConnectionMarkersRequest, void> {
8
- private fBrowser;
9
- private fComponentsStore;
10
- constructor(fBrowser: BrowserService, fComponentsStore: FComponentsStore);
9
+ private readonly _browser;
10
+ private readonly _store;
11
11
  handle(request: CreateConnectionMarkersRequest): void;
12
12
  getMarkers(fConnection: FConnectionBase): FMarkerBase[];
13
13
  private makeSafariCompatible;
@@ -9,4 +9,7 @@ import { AddConnectionMarkerToStoreExecution } from './add-connection-marker-to-
9
9
  import { RemoveConnectionMarkerFromStoreExecution } from './remove-connection-marker-from-store';
10
10
  import { RedrawConnectionsExecution } from './redraw-connections';
11
11
  import { CalculateConnectionLineByBehaviorExecution } from './calculate-connection-line-by-behavior';
12
+ /**
13
+ * This file exports all the connection-related features for the F-Flow domain.
14
+ */
12
15
  export declare const F_CONNECTION_FEATURES: (typeof AddConnectionForCreateToStoreExecution | typeof AddConnectionMarkerToStoreExecution | typeof AddConnectionToStoreExecution | typeof AddSnapConnectionToStoreExecution | typeof CreateConnectionMarkersExecution | typeof CalculateConnectionLineByBehaviorExecution | typeof RedrawConnectionsExecution | typeof RemoveConnectionForCreateFromStoreExecution | typeof RemoveConnectionFromStoreExecution | typeof RemoveConnectionMarkerFromStoreExecution | typeof RemoveSnapConnectionFromStoreExecution)[];
@@ -1,9 +1,14 @@
1
1
  import { RedrawConnectionsRequest } from './redraw-connections-request';
2
2
  import { IExecution } from '@foblex/mediator';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * Execution that redraws connections in the FComponentsStore.
6
+ * It resets connectors, sets markers for temporary and snap connections,
7
+ * and sets up connections based on the stored outputs and inputs.
8
+ */
4
9
  export declare class RedrawConnectionsExecution implements IExecution<RedrawConnectionsRequest, void> {
5
10
  private readonly _fMediator;
6
- private readonly _fComponentsStore;
11
+ private readonly _store;
7
12
  handle(request: RedrawConnectionsRequest): void;
8
13
  private _getOutput;
9
14
  private _getInput;
@@ -1,8 +1,11 @@
1
1
  import { IExecution } from '@foblex/mediator';
2
2
  import { RemoveConnectionForCreateFromStoreRequest } from './remove-connection-for-create-from-store-request';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * Execution that removes a connection for creation from the FComponentsStore.
6
+ */
4
7
  export declare class RemoveConnectionForCreateFromStoreExecution implements IExecution<RemoveConnectionForCreateFromStoreRequest, void> {
5
- private _fComponentsStore;
8
+ private readonly _store;
6
9
  handle(request: RemoveConnectionForCreateFromStoreRequest): void;
7
10
  static ɵfac: i0.ɵɵFactoryDeclaration<RemoveConnectionForCreateFromStoreExecution, never>;
8
11
  static ɵprov: i0.ɵɵInjectableDeclaration<RemoveConnectionForCreateFromStoreExecution>;
@@ -1,8 +1,11 @@
1
1
  import { IExecution } from '@foblex/mediator';
2
2
  import { RemoveConnectionFromStoreRequest } from './remove-connection-from-store-request';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * Execution that removes a connection from the FComponentsStore.
6
+ */
4
7
  export declare class RemoveConnectionFromStoreExecution implements IExecution<RemoveConnectionFromStoreRequest, void> {
5
- private _fComponentsStore;
8
+ private _store;
6
9
  handle(request: RemoveConnectionFromStoreRequest): void;
7
10
  private _getIndexOfConnection;
8
11
  static ɵfac: i0.ɵɵFactoryDeclaration<RemoveConnectionFromStoreExecution, never>;
@@ -1,8 +1,11 @@
1
1
  import { IExecution } from '@foblex/mediator';
2
2
  import { RemoveConnectionMarkerFromStoreRequest } from './remove-connection-marker-from-store-request';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * Execution that removes a connection marker from the FComponentsStore.
6
+ */
4
7
  export declare class RemoveConnectionMarkerFromStoreExecution implements IExecution<RemoveConnectionMarkerFromStoreRequest, void> {
5
- private _fComponentsStore;
8
+ private readonly _store;
6
9
  handle(request: RemoveConnectionMarkerFromStoreRequest): void;
7
10
  static ɵfac: i0.ɵɵFactoryDeclaration<RemoveConnectionMarkerFromStoreExecution, never>;
8
11
  static ɵprov: i0.ɵɵInjectableDeclaration<RemoveConnectionMarkerFromStoreExecution>;
@@ -1,8 +1,11 @@
1
1
  import { IExecution } from '@foblex/mediator';
2
2
  import { RemoveSnapConnectionFromStoreRequest } from './remove-snap-connection-from-store-request';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * Execution that removes the snap connection from the FComponentsStore.
6
+ */
4
7
  export declare class RemoveSnapConnectionFromStoreExecution implements IExecution<RemoveSnapConnectionFromStoreRequest, void> {
5
- private _fComponentsStore;
8
+ private readonly _store;
6
9
  handle(request: RemoveSnapConnectionFromStoreRequest): void;
7
10
  static ɵfac: i0.ɵɵFactoryDeclaration<RemoveSnapConnectionFromStoreExecution, never>;
8
11
  static ɵprov: i0.ɵɵInjectableDeclaration<RemoveSnapConnectionFromStoreExecution>;
@@ -1,8 +1,11 @@
1
1
  import { IExecution } from '@foblex/mediator';
2
2
  import { AddInputToStoreRequest } from './add-input-to-store-request';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * Execution that adds an InputConnector to the FComponentsStore.
6
+ */
4
7
  export declare class AddInputToStoreExecution implements IExecution<AddInputToStoreRequest, void> {
5
- private _fComponentsStore;
8
+ private readonly _store;
6
9
  handle(request: AddInputToStoreRequest): void;
7
10
  static ɵfac: i0.ɵɵFactoryDeclaration<AddInputToStoreExecution, never>;
8
11
  static ɵprov: i0.ɵɵInjectableDeclaration<AddInputToStoreExecution>;
@@ -1,6 +1,9 @@
1
1
  import { IExecution } from '@foblex/mediator';
2
2
  import { AddOutletToStoreRequest } from './add-outlet-to-store-request';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * Execution that adds an OutletConnector to the FComponentsStore.
6
+ */
4
7
  export declare class AddOutletToStoreExecution implements IExecution<AddOutletToStoreRequest, void> {
5
8
  private _fComponentsStore;
6
9
  handle(request: AddOutletToStoreRequest): void;
@@ -1,6 +1,9 @@
1
1
  import { IExecution } from '@foblex/mediator';
2
2
  import { AddOutputToStoreRequest } from './add-output-to-store-request';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * Execution that adds an OutputConnector to the FComponentsStore.
6
+ */
4
7
  export declare class AddOutputToStoreExecution implements IExecution<AddOutputToStoreRequest, void> {
5
8
  private _fComponentsStore;
6
9
  handle(request: AddOutputToStoreRequest): void;
@@ -0,0 +1,16 @@
1
+ import { FindClosestConnectorRequest } from './find-closest-connector.request';
2
+ import { IExecution } from '@foblex/mediator';
3
+ import { IClosestConnector } from '../i-closest-connector';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Execution that finds the closest connector to a given point.
7
+ * It calculates the distance from the point to each connector's rectangle
8
+ * and returns the closest one along with its distance.
9
+ */
10
+ export declare class FindClosestConnectorExecution implements IExecution<FindClosestConnectorRequest, IClosestConnector | undefined> {
11
+ handle(payload: FindClosestConnectorRequest): IClosestConnector | undefined;
12
+ private _distanceToRectangle;
13
+ private _clamp;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<FindClosestConnectorExecution, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<FindClosestConnectorExecution>;
16
+ }
@@ -0,0 +1,8 @@
1
+ import { IPoint } from '@foblex/2d';
2
+ import { IConnectorAndRect } from '../index';
3
+ export declare class FindClosestConnectorRequest {
4
+ position: IPoint;
5
+ connectors: IConnectorAndRect[];
6
+ static readonly fToken: unique symbol;
7
+ constructor(position: IPoint, connectors: IConnectorAndRect[]);
8
+ }
@@ -0,0 +1,2 @@
1
+ export * from './find-closest-connector.request';
2
+ export * from './find-closest-connector.execution';
@@ -0,0 +1,30 @@
1
+ import { FindConnectableConnectorUsingPriorityAndPositionRequest } from './find-connectable-connector-using-priority-and-position.request';
2
+ import { IExecution } from '@foblex/mediator';
3
+ import { FConnectorBase } from '../../../f-connectors';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Execution that finds a connectable connector at a given position with priority.
7
+ * It checks for connectors at the position, the closest connector if snap connection is enabled,
8
+ * and the first connectable connector of the node at that position.
9
+ */
10
+ export declare class FindConnectableConnectorUsingPriorityAndPositionExecution implements IExecution<FindConnectableConnectorUsingPriorityAndPositionRequest, FConnectorBase | undefined> {
11
+ private readonly _mediator;
12
+ private readonly _store;
13
+ private readonly _browser;
14
+ private get _transform();
15
+ private get _fHost();
16
+ private get _fNodes();
17
+ private get _fSnapConnection();
18
+ handle(payload: FindConnectableConnectorUsingPriorityAndPositionRequest): FConnectorBase | undefined;
19
+ private _findConnectorAtPosition;
20
+ private _filterConnectorsThatLocatedAtPosition;
21
+ private _getPointInFlow;
22
+ private _isSnapConnectionEnabledAndHasClosestConnector;
23
+ private _isValidClosestInput;
24
+ private _getFirstConnectableConnectorOfNodeAtPosition;
25
+ private _getElementsFromPoint;
26
+ private _findConnectableNode;
27
+ private _findFirstConnectableConnectorOfNode;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<FindConnectableConnectorUsingPriorityAndPositionExecution, never>;
29
+ static ɵprov: i0.ɵɵInjectableDeclaration<FindConnectableConnectorUsingPriorityAndPositionExecution>;
30
+ }
@@ -0,0 +1,8 @@
1
+ import { IPoint } from '@foblex/2d';
2
+ import { IConnectorAndRect } from '../i-connector-and-rect';
3
+ export declare class FindConnectableConnectorUsingPriorityAndPositionRequest {
4
+ pointerPosition: IPoint;
5
+ connectableConnectors: IConnectorAndRect[];
6
+ static readonly fToken: unique symbol;
7
+ constructor(pointerPosition: IPoint, connectableConnectors: IConnectorAndRect[]);
8
+ }
@@ -0,0 +1,2 @@
1
+ export * from './find-connectable-connector-using-priority-and-position.request';
2
+ export * from './find-connectable-connector-using-priority-and-position.execution';
@@ -2,8 +2,11 @@ import { GetAllCanBeConnectedInputsAndRectsRequest } from './get-all-can-be-conn
2
2
  import { IExecution } from '@foblex/mediator';
3
3
  import { IConnectorAndRect } from '../i-connector-and-rect';
4
4
  import * as i0 from "@angular/core";
5
+ /**
6
+ * Execution that retrieves all input connectors that can be connected to a given output or outlet connector,
7
+ */
5
8
  export declare class GetAllCanBeConnectedInputsAndRectsExecution implements IExecution<GetAllCanBeConnectedInputsAndRectsRequest, IConnectorAndRect[]> {
6
- private _fMediator;
9
+ private readonly _mediator;
7
10
  private _fComponentsStore;
8
11
  private get _fInputs();
9
12
  handle(payload: GetAllCanBeConnectedInputsAndRectsRequest): IConnectorAndRect[];
@@ -0,0 +1,18 @@
1
+ import { GetAllCanBeConnectedSourceConnectorsAndRectsRequest } from './get-all-can-be-connected-source-connectors-and-rects.request';
2
+ import { IExecution } from '@foblex/mediator';
3
+ import { IConnectorAndRect } from '../i-connector-and-rect';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Execution that retrieves all source connectors that can be connected to a given target connector,
7
+ * along with their rectangles.
8
+ * Source - Output or Outlet connectors.
9
+ */
10
+ export declare class GetAllCanBeConnectedSourceConnectorsAndRectsExecution implements IExecution<GetAllCanBeConnectedSourceConnectorsAndRectsRequest, IConnectorAndRect[]> {
11
+ private readonly _mediator;
12
+ private readonly _fComponentsStore;
13
+ private get _fSourceConnectors();
14
+ handle(payload: GetAllCanBeConnectedSourceConnectorsAndRectsRequest): IConnectorAndRect[];
15
+ private _getCanBeConnectedSourceConnectors;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<GetAllCanBeConnectedSourceConnectorsAndRectsExecution, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<GetAllCanBeConnectedSourceConnectorsAndRectsExecution>;
18
+ }
@@ -0,0 +1,6 @@
1
+ import { FNodeInputBase } from '../../../f-connectors';
2
+ export declare class GetAllCanBeConnectedSourceConnectorsAndRectsRequest {
3
+ fTargetConnector: FNodeInputBase;
4
+ static readonly fToken: unique symbol;
5
+ constructor(fTargetConnector: FNodeInputBase);
6
+ }
@@ -0,0 +1,2 @@
1
+ export * from './get-all-can-be-connected-source-connectors-and-rects.request';
2
+ export * from './get-all-can-be-connected-source-connectors-and-rects.execution';