@foblex/flow 17.8.0 → 17.8.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 (230) hide show
  1. package/domain/f-connection/calculate-connection-line-by-behavior/calculate-connection-line-by-behavior-request.d.ts +12 -0
  2. package/domain/f-connection/calculate-connection-line-by-behavior/{calculate-connection-line-by-behavior.execution.d.ts → calculate-connection-line-by-behavior.d.ts} +4 -4
  3. package/domain/f-connection/calculate-connection-line-by-behavior/fixed-center-behavior.d.ts +2 -2
  4. package/domain/f-connection/calculate-connection-line-by-behavior/fixed-outbound-behavior.d.ts +2 -2
  5. package/domain/f-connection/calculate-connection-line-by-behavior/floating-behavior.d.ts +2 -2
  6. package/domain/f-connection/calculate-connection-line-by-behavior/index.d.ts +2 -2
  7. package/domain/f-connection/providers.d.ts +2 -2
  8. package/domain/f-connection/redraw-connections/redraw-connections.execution.d.ts +2 -2
  9. package/domain/f-connectors/add-input-to-store/add-input-to-store-request.d.ts +2 -2
  10. package/domain/f-connectors/add-input-to-store/add-input-to-store.d.ts +12 -0
  11. package/domain/f-connectors/add-input-to-store/index.d.ts +1 -1
  12. package/domain/f-connectors/add-outlet-to-store/add-outlet-to-store-request.d.ts +2 -2
  13. package/domain/f-connectors/add-outlet-to-store/{add-outlet-to-store.execution.d.ts → add-outlet-to-store.d.ts} +5 -5
  14. package/domain/f-connectors/add-outlet-to-store/index.d.ts +1 -1
  15. package/domain/f-connectors/add-output-to-store/add-output-to-store-request.d.ts +2 -2
  16. package/domain/f-connectors/add-output-to-store/{add-output-to-store.execution.d.ts → add-output-to-store.d.ts} +5 -5
  17. package/domain/f-connectors/add-output-to-store/index.d.ts +1 -1
  18. package/domain/f-connectors/{find-closest-connector/find-closest-connector.request.d.ts → calculate-closest-connector/calculate-closest-connector-request.d.ts} +3 -3
  19. package/domain/f-connectors/calculate-closest-connector/calculate-closest-connector.d.ts +16 -0
  20. package/domain/f-connectors/calculate-closest-connector/index.d.ts +2 -0
  21. package/domain/f-connectors/get-all-can-be-connected-inputs-and-rects/get-all-can-be-connected-inputs-and-rects.execution.d.ts +3 -3
  22. package/domain/f-connectors/get-all-can-be-connected-inputs-and-rects/get-all-can-be-connected-inputs-and-rects.request.d.ts +2 -2
  23. 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 +2 -2
  24. 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 +2 -2
  25. package/domain/f-connectors/get-connector-and-rect/get-connector-and-rect-request.d.ts +2 -2
  26. package/domain/f-connectors/get-connector-and-rect/{get-connector-and-rect.execution.d.ts → get-connector-and-rect.d.ts} +4 -4
  27. package/domain/f-connectors/get-connector-and-rect/index.d.ts +1 -1
  28. package/domain/f-connectors/index.d.ts +1 -1
  29. package/domain/f-connectors/mark-connectable-connectors/index.d.ts +2 -2
  30. package/domain/f-connectors/mark-connectable-connectors/{mark-connectable-connectors.request.d.ts → mark-connectable-connectors-request.d.ts} +2 -2
  31. package/domain/f-connectors/mark-connectable-connectors/{mark-connectable-connectors.execution.d.ts → mark-connectable-connectors.d.ts} +5 -5
  32. package/domain/f-connectors/providers.d.ts +11 -11
  33. package/domain/f-connectors/remove-input-from-store/index.d.ts +1 -1
  34. package/domain/f-connectors/remove-input-from-store/remove-input-from-store-request.d.ts +2 -2
  35. package/domain/f-connectors/remove-input-from-store/{remove-input-from-store.execution.d.ts → remove-input-from-store.d.ts} +4 -4
  36. package/domain/f-connectors/unmark-connectable-connectors/index.d.ts +2 -2
  37. package/domain/f-connectors/unmark-connectable-connectors/{unmark-connectable-connectors.request.d.ts → unmark-connectable-connectors-request.d.ts} +2 -2
  38. package/domain/f-connectors/unmark-connectable-connectors/{unmark-connectable-connectors.execution.d.ts → unmark-connectable-connectors.d.ts} +5 -5
  39. package/domain/f-flow/get-flow-state/get-flow-state-connections/get-flow-state-connections.execution.d.ts +1 -1
  40. package/domain/providers.d.ts +1 -1
  41. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/calculate-connection-line-by-behavior-request.mjs +16 -0
  42. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/calculate-connection-line-by-behavior.mjs +32 -0
  43. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/fixed-center-behavior.mjs +4 -4
  44. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/fixed-outbound-behavior.mjs +8 -4
  45. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/floating-behavior.mjs +10 -10
  46. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/index.mjs +3 -3
  47. package/esm2022/domain/f-connection/providers.mjs +3 -3
  48. package/esm2022/domain/f-connection/redraw-connections/redraw-connections-request.mjs +1 -1
  49. package/esm2022/domain/f-connection/redraw-connections/redraw-connections.execution.mjs +9 -9
  50. package/esm2022/domain/f-connectors/add-input-to-store/add-input-to-store-request.mjs +4 -4
  51. package/esm2022/domain/f-connectors/add-input-to-store/add-input-to-store.mjs +25 -0
  52. package/esm2022/domain/f-connectors/add-input-to-store/index.mjs +2 -2
  53. package/esm2022/domain/f-connectors/add-outlet-to-store/add-outlet-to-store-request.mjs +4 -4
  54. package/esm2022/domain/f-connectors/add-outlet-to-store/add-outlet-to-store.mjs +25 -0
  55. package/esm2022/domain/f-connectors/add-outlet-to-store/index.mjs +2 -2
  56. package/esm2022/domain/f-connectors/add-output-to-store/add-output-to-store-request.mjs +4 -4
  57. package/esm2022/domain/f-connectors/add-output-to-store/add-output-to-store.mjs +25 -0
  58. package/esm2022/domain/f-connectors/add-output-to-store/index.mjs +2 -2
  59. package/esm2022/domain/f-connectors/calculate-closest-connector/calculate-closest-connector-request.mjs +10 -0
  60. package/esm2022/domain/f-connectors/calculate-closest-connector/calculate-closest-connector.mjs +49 -0
  61. package/esm2022/domain/f-connectors/calculate-closest-connector/index.mjs +3 -0
  62. package/esm2022/domain/f-connectors/find-connectable-connector-using-priority-and-position/find-connectable-connector-using-priority-and-position.execution.mjs +9 -6
  63. package/esm2022/domain/f-connectors/get-all-can-be-connected-inputs-and-rects/get-all-can-be-connected-inputs-and-rects.execution.mjs +14 -14
  64. package/esm2022/domain/f-connectors/get-all-can-be-connected-inputs-and-rects/get-all-can-be-connected-inputs-and-rects.request.mjs +4 -4
  65. 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 +9 -9
  66. 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 +4 -4
  67. package/esm2022/domain/f-connectors/get-connector-and-rect/get-connector-and-rect-request.mjs +4 -4
  68. package/esm2022/domain/f-connectors/get-connector-and-rect/get-connector-and-rect.mjs +31 -0
  69. package/esm2022/domain/f-connectors/get-connector-and-rect/index.mjs +2 -2
  70. package/esm2022/domain/f-connectors/index.mjs +2 -2
  71. package/esm2022/domain/f-connectors/mark-connectable-connectors/index.mjs +3 -3
  72. package/esm2022/domain/f-connectors/mark-connectable-connectors/mark-connectable-connectors-request.mjs +8 -0
  73. package/esm2022/domain/f-connectors/mark-connectable-connectors/mark-connectable-connectors.mjs +30 -0
  74. package/esm2022/domain/f-connectors/providers.mjs +20 -20
  75. package/esm2022/domain/f-connectors/remove-input-from-store/index.mjs +2 -2
  76. package/esm2022/domain/f-connectors/remove-input-from-store/remove-input-from-store-request.mjs +4 -4
  77. package/esm2022/domain/f-connectors/remove-input-from-store/remove-input-from-store.mjs +25 -0
  78. package/esm2022/domain/f-connectors/unmark-connectable-connectors/index.mjs +3 -3
  79. package/esm2022/domain/f-connectors/unmark-connectable-connectors/{unmark-connectable-connectors.request.mjs → unmark-connectable-connectors-request.mjs} +4 -4
  80. package/esm2022/domain/f-connectors/unmark-connectable-connectors/unmark-connectable-connectors.mjs +30 -0
  81. package/esm2022/domain/f-flow/get-flow-state/get-flow-state-connections/get-flow-state-connections.execution.mjs +4 -4
  82. package/esm2022/domain/f-flow/get-flow-state/get-flow-state-nodes/get-flow-state-nodes.execution.mjs +12 -6
  83. package/esm2022/domain/f-node/calculate-input-connections/calculate-input-connections.mjs +3 -6
  84. package/esm2022/domain/f-node/calculate-output-connections/calculate-output-connections.mjs +3 -6
  85. package/esm2022/f-connection/common/domain/f-bezier.path-builder.mjs +26 -10
  86. package/esm2022/f-connection/common/domain/f-segment.path-builder.mjs +41 -23
  87. package/esm2022/f-connection/common/domain/f-straight.path-builder.mjs +9 -3
  88. package/esm2022/f-connection/common/f-connection-base.mjs +34 -25
  89. package/esm2022/f-connection/common/f-connection-text/f-connection-text-path.directive.mjs +17 -27
  90. package/esm2022/f-connection/common/f-connection-text/f-connection-text.component.mjs +20 -33
  91. package/esm2022/f-connection/common/f-gradient/f-connection-gradient.component.mjs +17 -27
  92. package/esm2022/f-connection/common/f-path/f-connection-path.component.mjs +16 -26
  93. package/esm2022/f-connection/common/f-selection/f-connection-selection.component.mjs +10 -20
  94. package/esm2022/f-connection/common/i-has-connection-from-to.mjs +1 -1
  95. package/esm2022/f-connection/f-connection/f-connection.component.mjs +24 -25
  96. package/esm2022/f-connection/f-connection-builder/i-f-connection-builder-response.mjs +1 -1
  97. package/esm2022/f-connection/f-connection-center/f-connection-center.directive.mjs +21 -4
  98. package/esm2022/f-connection/f-connection-content/f-connection-content.mjs +96 -0
  99. package/esm2022/f-connection/f-connection-content/index.mjs +3 -0
  100. package/esm2022/f-connection/f-connection-content/polyline-content-engine/i-polyline-content.mjs +2 -0
  101. package/esm2022/f-connection/f-connection-content/polyline-content-engine/index.mjs +6 -0
  102. package/esm2022/f-connection/f-connection-content/polyline-content-engine/polyline-content-align.mjs +6 -0
  103. package/esm2022/f-connection/f-connection-content/polyline-content-engine/polyline-content-layout-engine.mjs +29 -0
  104. package/esm2022/f-connection/f-connection-content/polyline-content-engine/polyline-content-place.mjs +65 -0
  105. package/esm2022/f-connection/f-connection-content/polyline-content-engine/polyline-sampler/i-sampler-result.mjs +2 -0
  106. package/esm2022/f-connection/f-connection-content/polyline-content-engine/polyline-sampler/i-tangent.mjs +2 -0
  107. package/esm2022/f-connection/f-connection-content/polyline-content-engine/polyline-sampler/index.mjs +5 -0
  108. package/esm2022/f-connection/f-connection-content/polyline-content-engine/polyline-sampler/polyline-sampler.mjs +143 -0
  109. package/esm2022/f-connection/f-connection-content/polyline-content-engine/polyline-sampler/polyline.mjs +68 -0
  110. package/esm2022/f-connection/f-connection-for-create/f-connection-for-create.component.mjs +17 -21
  111. package/esm2022/f-connection/f-marker/f-marker-base.mjs +2 -8
  112. package/esm2022/f-connection/f-marker/f-marker.directive.mjs +13 -22
  113. package/esm2022/f-connection/f-snap-connection/f-snap-connection.component.mjs +17 -21
  114. package/esm2022/f-connection/index.mjs +2 -1
  115. package/esm2022/f-connectors/f-connector-base.mjs +1 -1
  116. package/esm2022/f-connectors/f-node-input/f-node-input-base.mjs +2 -2
  117. package/esm2022/f-connectors/f-node-input/f-node-input.directive.mjs +34 -32
  118. package/esm2022/f-connectors/f-node-outlet/f-node-outlet-base.mjs +6 -6
  119. package/esm2022/f-connectors/f-node-outlet/f-node-outlet.directive.mjs +23 -26
  120. package/esm2022/f-connectors/f-node-output/f-node-output-base.mjs +4 -4
  121. package/esm2022/f-connectors/f-node-output/f-node-output.directive.mjs +30 -32
  122. package/esm2022/f-connectors/f-source-connector-base.mjs +11 -0
  123. package/esm2022/f-connectors/index.mjs +2 -1
  124. package/esm2022/f-draggable/domain/f-drag-started-event.mjs +4 -2
  125. package/esm2022/f-draggable/domain/is-connection-under-node/is-connection-under-node.execution.mjs +7 -7
  126. package/esm2022/f-draggable/f-canvas/move-finalize/f-canvas-move-finalize.execution.mjs +2 -2
  127. package/esm2022/f-draggable/f-connection/f-create-connection/create-finalize/f-create-connection-finalize.execution.mjs +20 -18
  128. package/esm2022/f-draggable/f-connection/f-create-connection/f-create-connection.drag-handler.mjs +38 -36
  129. package/esm2022/f-draggable/f-connection/f-reassign-connection/f-reassign-connection.drag-handler.mjs +21 -19
  130. package/esm2022/f-draggable/f-connection/f-reassign-connection/f-reassign-source.drag-handler.mjs +6 -6
  131. package/esm2022/f-draggable/f-connection/f-reassign-connection/f-reassign-target.drag-handler.mjs +5 -5
  132. package/esm2022/f-draggable/f-connection/f-reassign-connection/reassign-finalize/f-reassign-connection-finalize.execution.mjs +5 -5
  133. package/esm2022/f-draggable/f-drag-handler/i-f-drag-handler.mjs +1 -1
  134. package/esm2022/f-draggable/f-draggable-base.mjs +2 -2
  135. package/esm2022/f-draggable/f-draggable.directive.mjs +10 -20
  136. package/esm2022/f-draggable/f-node-move/connection-drag-handlers/base-connection.drag-handler.mjs +3 -3
  137. package/esm2022/f-draggable/f-node-move/create-drag-model-from-selection/create-drag-model-from-selection.mjs +9 -12
  138. package/esm2022/f-draggable/f-node-move/create-drag-model-from-selection/create-input-connection-handler-and-set-to-node-handler/create-input-connection-handler-and-set-to-node-handler.mjs +5 -5
  139. package/esm2022/f-draggable/f-node-move/create-drag-model-from-selection/create-output-connection-handler-and-set-to-node-handler/create-output-connection-handler-and-set-to-node-handler.mjs +5 -5
  140. package/esm2022/f-draggable/f-node-rotate/rotate-preparation/f-node-rotate-preparation.execution.mjs +28 -16
  141. package/esm2022/f-node/f-node.directive.mjs +6 -2
  142. package/esm2022/mixins/change-selection/change-selection.mjs +5 -6
  143. package/esm2022/mixins/change-visibility/change-visibility.mjs +4 -3
  144. package/esm2022/mixins/constructor.mjs +1 -1
  145. package/esm2022/utils/index.mjs +2 -1
  146. package/esm2022/utils/string-attribute.mjs +4 -0
  147. package/f-backgroud/providers.d.ts +1 -1
  148. package/f-connection/common/domain/f-bezier.path-builder.d.ts +2 -2
  149. package/f-connection/common/domain/f-segment.path-builder.d.ts +7 -7
  150. package/f-connection/common/f-connection-base.d.ts +13 -11
  151. package/f-connection/common/f-connection-text/f-connection-text-path.directive.d.ts +6 -11
  152. package/f-connection/common/f-connection-text/f-connection-text.component.d.ts +6 -12
  153. package/f-connection/common/f-gradient/f-connection-gradient.component.d.ts +5 -10
  154. package/f-connection/common/f-path/f-connection-path.component.d.ts +2 -7
  155. package/f-connection/common/f-selection/f-connection-selection.component.d.ts +2 -6
  156. package/f-connection/common/i-has-connection-from-to.d.ts +3 -3
  157. package/f-connection/f-connection/f-connection.component.d.ts +6 -6
  158. package/f-connection/f-connection-builder/i-f-connection-builder-response.d.ts +1 -0
  159. package/f-connection/f-connection-center/f-connection-center.directive.d.ts +6 -1
  160. package/f-connection/f-connection-content/f-connection-content.d.ts +69 -0
  161. package/f-connection/f-connection-content/index.d.ts +2 -0
  162. package/f-connection/f-connection-content/polyline-content-engine/i-polyline-content.d.ts +9 -0
  163. package/f-connection/f-connection-content/polyline-content-engine/index.d.ts +5 -0
  164. package/f-connection/f-connection-content/polyline-content-engine/polyline-content-align.d.ts +4 -0
  165. package/f-connection/f-connection-content/polyline-content-engine/polyline-content-layout-engine.d.ts +21 -0
  166. package/f-connection/f-connection-content/polyline-content-engine/polyline-content-place.d.ts +18 -0
  167. package/f-connection/f-connection-content/polyline-content-engine/polyline-sampler/i-sampler-result.d.ts +11 -0
  168. package/f-connection/f-connection-content/polyline-content-engine/polyline-sampler/i-tangent.d.ts +4 -0
  169. package/f-connection/f-connection-content/polyline-content-engine/polyline-sampler/index.d.ts +4 -0
  170. package/f-connection/f-connection-content/polyline-content-engine/polyline-sampler/polyline-sampler.d.ts +60 -0
  171. package/f-connection/f-connection-content/polyline-content-engine/polyline-sampler/polyline.d.ts +29 -0
  172. package/f-connection/f-connection-for-create/f-connection-for-create.component.d.ts +4 -6
  173. package/f-connection/f-marker/f-marker-base.d.ts +0 -3
  174. package/f-connection/f-marker/f-marker.directive.d.ts +4 -6
  175. package/f-connection/f-snap-connection/f-snap-connection.component.d.ts +4 -6
  176. package/f-connection/index.d.ts +1 -0
  177. package/f-connection/providers.d.ts +2 -2
  178. package/f-connectors/f-connector-base.d.ts +3 -2
  179. package/f-connectors/f-node-input/f-node-input-base.d.ts +3 -2
  180. package/f-connectors/f-node-input/f-node-input.directive.d.ts +8 -9
  181. package/f-connectors/f-node-outlet/f-node-outlet-base.d.ts +3 -3
  182. package/f-connectors/f-node-outlet/f-node-outlet.directive.d.ts +6 -8
  183. package/f-connectors/f-node-output/f-node-output-base.d.ts +4 -5
  184. package/f-connectors/f-node-output/f-node-output.directive.d.ts +7 -9
  185. package/f-connectors/f-source-connector-base.d.ts +7 -0
  186. package/f-connectors/index.d.ts +1 -0
  187. package/f-draggable/domain/is-connection-under-node/is-connection-under-node.execution.d.ts +1 -1
  188. package/f-draggable/domain/providers.d.ts +1 -1
  189. package/f-draggable/f-canvas/move-finalize/f-canvas-move-finalize.execution.d.ts +2 -2
  190. package/f-draggable/f-connection/f-create-connection/create-finalize/f-create-connection-finalize.execution.d.ts +9 -9
  191. package/f-draggable/f-connection/f-create-connection/f-create-connection.drag-handler.d.ts +5 -5
  192. package/f-draggable/f-connection/f-reassign-connection/f-reassign-connection.drag-handler.d.ts +4 -4
  193. package/f-draggable/f-connection/f-reassign-connection/f-reassign-source.drag-handler.d.ts +5 -5
  194. package/f-draggable/f-connection/f-reassign-connection/f-reassign-target.drag-handler.d.ts +5 -5
  195. package/f-draggable/f-connection/providers.d.ts +1 -1
  196. package/f-draggable/f-draggable-base.d.ts +1 -1
  197. package/f-draggable/f-draggable.directive.d.ts +5 -6
  198. package/f-draggable/f-drop-to-group/providers.d.ts +1 -1
  199. package/f-draggable/f-node-move/create-drag-model-from-selection/providers.d.ts +1 -1
  200. package/f-draggable/f-node-move/providers.d.ts +1 -1
  201. package/f-draggable/f-node-rotate/rotate-preparation/f-node-rotate-preparation.execution.d.ts +1 -1
  202. package/f-draggable/providers.d.ts +1 -1
  203. package/f-minimap/domain/providers.d.ts +1 -1
  204. package/f-minimap/providers.d.ts +1 -1
  205. package/f-node/f-node.directive.d.ts +1 -1
  206. package/f-node/providers.d.ts +2 -2
  207. package/f-selection-area/domain/providers.d.ts +1 -1
  208. package/f-storage/providers.d.ts +1 -1
  209. package/fesm2022/foblex-flow.mjs +1083 -669
  210. package/fesm2022/foblex-flow.mjs.map +1 -1
  211. package/package.json +1 -1
  212. package/utils/index.d.ts +1 -0
  213. package/utils/string-attribute.d.ts +1 -0
  214. package/domain/f-connection/calculate-connection-line-by-behavior/calculate-connection-line-by-behavior.request.d.ts +0 -12
  215. package/domain/f-connectors/add-input-to-store/add-input-to-store.execution.d.ts +0 -12
  216. package/domain/f-connectors/find-closest-connector/find-closest-connector.execution.d.ts +0 -16
  217. package/domain/f-connectors/find-closest-connector/index.d.ts +0 -2
  218. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/calculate-connection-line-by-behavior.execution.mjs +0 -32
  219. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/calculate-connection-line-by-behavior.request.mjs +0 -16
  220. package/esm2022/domain/f-connectors/add-input-to-store/add-input-to-store.execution.mjs +0 -25
  221. package/esm2022/domain/f-connectors/add-outlet-to-store/add-outlet-to-store.execution.mjs +0 -25
  222. package/esm2022/domain/f-connectors/add-output-to-store/add-output-to-store.execution.mjs +0 -25
  223. package/esm2022/domain/f-connectors/find-closest-connector/find-closest-connector.execution.mjs +0 -47
  224. package/esm2022/domain/f-connectors/find-closest-connector/find-closest-connector.request.mjs +0 -10
  225. package/esm2022/domain/f-connectors/find-closest-connector/index.mjs +0 -3
  226. package/esm2022/domain/f-connectors/get-connector-and-rect/get-connector-and-rect.execution.mjs +0 -31
  227. package/esm2022/domain/f-connectors/mark-connectable-connectors/mark-connectable-connectors.execution.mjs +0 -30
  228. package/esm2022/domain/f-connectors/mark-connectable-connectors/mark-connectable-connectors.request.mjs +0 -8
  229. package/esm2022/domain/f-connectors/remove-input-from-store/remove-input-from-store.execution.mjs +0 -25
  230. package/esm2022/domain/f-connectors/unmark-connectable-connectors/unmark-connectable-connectors.execution.mjs +0 -30
@@ -0,0 +1,12 @@
1
+ import { EFConnectionBehavior } from '../../../f-connection';
2
+ import { EFConnectableSide } from '../../../f-connectors';
3
+ import { IRoundedRect } from '@foblex/2d';
4
+ export declare class CalculateConnectionLineByBehaviorRequest {
5
+ sourceRect: IRoundedRect;
6
+ targetRect: IRoundedRect;
7
+ behavior: EFConnectionBehavior | string;
8
+ sourceConnectableSide: EFConnectableSide;
9
+ targetConnectableSide: EFConnectableSide;
10
+ static readonly fToken: unique symbol;
11
+ constructor(sourceRect: IRoundedRect, targetRect: IRoundedRect, behavior: EFConnectionBehavior | string, sourceConnectableSide: EFConnectableSide, targetConnectableSide: EFConnectableSide);
12
+ }
@@ -1,13 +1,13 @@
1
- import { CalculateConnectionLineByBehaviorRequest } from './calculate-connection-line-by-behavior.request';
1
+ import { CalculateConnectionLineByBehaviorRequest } from './calculate-connection-line-by-behavior-request';
2
2
  import { IExecution } from '@foblex/mediator';
3
3
  import { ILine } from '@foblex/2d';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
6
6
  * Execution that calculates the connection line based on the behavior.
7
7
  */
8
- export declare class CalculateConnectionLineByBehaviorExecution implements IExecution<CalculateConnectionLineByBehaviorRequest, ILine> {
8
+ export declare class CalculateConnectionLineByBehavior implements IExecution<CalculateConnectionLineByBehaviorRequest, ILine> {
9
9
  private _handlers;
10
10
  handle(payload: CalculateConnectionLineByBehaviorRequest): ILine;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<CalculateConnectionLineByBehaviorExecution, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<CalculateConnectionLineByBehaviorExecution>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<CalculateConnectionLineByBehavior, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<CalculateConnectionLineByBehavior>;
13
13
  }
@@ -1,8 +1,8 @@
1
1
  import { ILine } from '@foblex/2d';
2
- import { CalculateConnectionLineByBehaviorRequest } from './calculate-connection-line-by-behavior.request';
2
+ import { CalculateConnectionLineByBehaviorRequest } from './calculate-connection-line-by-behavior-request';
3
3
  /**
4
4
  * Fixed center behavior calculates the connection line
5
5
  * It constructs a line between the gravity centers of the connector rectangles
6
6
  * @param payload
7
7
  */
8
- export declare function fixedCenterBehavior(payload: CalculateConnectionLineByBehaviorRequest): ILine;
8
+ export declare function fixedCenterBehavior({ sourceRect, targetRect, }: CalculateConnectionLineByBehaviorRequest): ILine;
@@ -1,8 +1,8 @@
1
1
  import { ILine } from '@foblex/2d';
2
- import { CalculateConnectionLineByBehaviorRequest } from './calculate-connection-line-by-behavior.request';
2
+ import { CalculateConnectionLineByBehaviorRequest } from './calculate-connection-line-by-behavior-request';
3
3
  /**
4
4
  * Fixed outbound behavior calculates the connection line
5
5
  * It constructs a line between the specified sides of the output and input rectangles
6
6
  * @param payload
7
7
  */
8
- export declare function fixedOutboundBehavior(payload: CalculateConnectionLineByBehaviorRequest): ILine;
8
+ export declare function fixedOutboundBehavior({ sourceRect, sourceConnectableSide, targetRect, targetConnectableSide, }: CalculateConnectionLineByBehaviorRequest): ILine;
@@ -1,8 +1,8 @@
1
1
  import { ILine } from '@foblex/2d';
2
- import { CalculateConnectionLineByBehaviorRequest } from './calculate-connection-line-by-behavior.request';
2
+ import { CalculateConnectionLineByBehaviorRequest } from './calculate-connection-line-by-behavior-request';
3
3
  /**
4
4
  * Floating behavior calculates the connection line
5
5
  * It constructs a line between the intersections of the connectors rectangles and line from the centers of the connector rectangles
6
6
  * @param payload
7
7
  */
8
- export declare function floatingBehavior(payload: CalculateConnectionLineByBehaviorRequest): ILine;
8
+ export declare function floatingBehavior({ sourceRect, targetRect, }: CalculateConnectionLineByBehaviorRequest): ILine;
@@ -1,5 +1,5 @@
1
- export * from './calculate-connection-line-by-behavior.execution';
2
- export * from './calculate-connection-line-by-behavior.request';
1
+ export * from './calculate-connection-line-by-behavior';
2
+ export * from './calculate-connection-line-by-behavior-request';
3
3
  export * from './fixed-center-behavior';
4
4
  export * from './fixed-outbound-behavior';
5
5
  export * from './floating-behavior';
@@ -8,8 +8,8 @@ import { RemoveSnapConnectionFromStoreExecution } from './remove-snap-connection
8
8
  import { AddConnectionMarkerToStoreExecution } from './add-connection-marker-to-store';
9
9
  import { RemoveConnectionMarkerFromStoreExecution } from './remove-connection-marker-from-store';
10
10
  import { RedrawConnectionsExecution } from './redraw-connections';
11
- import { CalculateConnectionLineByBehaviorExecution } from './calculate-connection-line-by-behavior';
11
+ import { CalculateConnectionLineByBehavior } from './calculate-connection-line-by-behavior';
12
12
  /**
13
13
  * This file exports all the connection-related features for the F-Flow domain.
14
14
  */
15
- export declare const F_CONNECTION_FEATURES: (typeof AddConnectionForCreateToStoreExecution | typeof AddConnectionMarkerToStoreExecution | typeof AddConnectionToStoreExecution | typeof AddSnapConnectionToStoreExecution | typeof CreateConnectionMarkersExecution | typeof CalculateConnectionLineByBehaviorExecution | typeof RedrawConnectionsExecution | typeof RemoveConnectionForCreateFromStoreExecution | typeof RemoveConnectionFromStoreExecution | typeof RemoveConnectionMarkerFromStoreExecution | typeof RemoveSnapConnectionFromStoreExecution)[];
15
+ export declare const F_CONNECTION_FEATURES: (typeof AddConnectionForCreateToStoreExecution | typeof AddConnectionMarkerToStoreExecution | typeof AddConnectionToStoreExecution | typeof AddSnapConnectionToStoreExecution | typeof CreateConnectionMarkersExecution | typeof CalculateConnectionLineByBehavior | typeof RedrawConnectionsExecution | typeof RemoveConnectionForCreateFromStoreExecution | typeof RemoveConnectionFromStoreExecution | typeof RemoveConnectionMarkerFromStoreExecution | typeof RemoveSnapConnectionFromStoreExecution)[];
@@ -7,9 +7,9 @@ import * as i0 from "@angular/core";
7
7
  * and sets up connections based on the stored outputs and inputs.
8
8
  */
9
9
  export declare class RedrawConnectionsExecution implements IExecution<RedrawConnectionsRequest, void> {
10
- private readonly _fMediator;
10
+ private readonly _mediator;
11
11
  private readonly _store;
12
- handle(request: RedrawConnectionsRequest): void;
12
+ handle(_request: RedrawConnectionsRequest): void;
13
13
  private _getOutput;
14
14
  private _getInput;
15
15
  private _resetConnectors;
@@ -1,6 +1,6 @@
1
1
  import { FConnectorBase } from '../../../f-connectors';
2
2
  export declare class AddInputToStoreRequest {
3
- fComponent: FConnectorBase;
3
+ readonly component: FConnectorBase;
4
4
  static readonly fToken: unique symbol;
5
- constructor(fComponent: FConnectorBase);
5
+ constructor(component: FConnectorBase);
6
6
  }
@@ -0,0 +1,12 @@
1
+ import { IExecution } from '@foblex/mediator';
2
+ import { AddInputToStoreRequest } from './add-input-to-store-request';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Execution that adds an InputConnector to the FComponentsStore.
6
+ */
7
+ export declare class AddInputToStore implements IExecution<AddInputToStoreRequest, void> {
8
+ private readonly _store;
9
+ handle({ component }: AddInputToStoreRequest): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<AddInputToStore, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<AddInputToStore>;
12
+ }
@@ -1,2 +1,2 @@
1
- export * from './add-input-to-store.execution';
1
+ export * from './add-input-to-store';
2
2
  export * from './add-input-to-store-request';
@@ -1,6 +1,6 @@
1
1
  import { FConnectorBase } from '../../../f-connectors';
2
2
  export declare class AddOutletToStoreRequest {
3
- fComponent: FConnectorBase;
3
+ readonly component: FConnectorBase;
4
4
  static readonly fToken: unique symbol;
5
- constructor(fComponent: FConnectorBase);
5
+ constructor(component: FConnectorBase);
6
6
  }
@@ -4,9 +4,9 @@ import * as i0 from "@angular/core";
4
4
  /**
5
5
  * Execution that adds an OutletConnector to the FComponentsStore.
6
6
  */
7
- export declare class AddOutletToStoreExecution implements IExecution<AddOutletToStoreRequest, void> {
8
- private _store;
9
- handle(request: AddOutletToStoreRequest): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<AddOutletToStoreExecution, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<AddOutletToStoreExecution>;
7
+ export declare class AddOutletToStore implements IExecution<AddOutletToStoreRequest, void> {
8
+ private readonly _store;
9
+ handle({ component }: AddOutletToStoreRequest): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<AddOutletToStore, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<AddOutletToStore>;
12
12
  }
@@ -1,2 +1,2 @@
1
- export * from './add-outlet-to-store.execution';
1
+ export * from './add-outlet-to-store';
2
2
  export * from './add-outlet-to-store-request';
@@ -1,6 +1,6 @@
1
1
  import { FConnectorBase } from '../../../f-connectors';
2
2
  export declare class AddOutputToStoreRequest {
3
- fComponent: FConnectorBase;
3
+ readonly component: FConnectorBase;
4
4
  static readonly fToken: unique symbol;
5
- constructor(fComponent: FConnectorBase);
5
+ constructor(component: FConnectorBase);
6
6
  }
@@ -4,9 +4,9 @@ import * as i0 from "@angular/core";
4
4
  /**
5
5
  * Execution that adds an OutputConnector to the FComponentsStore.
6
6
  */
7
- export declare class AddOutputToStoreExecution implements IExecution<AddOutputToStoreRequest, void> {
8
- private _store;
9
- handle(request: AddOutputToStoreRequest): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<AddOutputToStoreExecution, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<AddOutputToStoreExecution>;
7
+ export declare class AddOutputToStore implements IExecution<AddOutputToStoreRequest, void> {
8
+ private readonly _store;
9
+ handle({ component }: AddOutputToStoreRequest): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<AddOutputToStore, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<AddOutputToStore>;
12
12
  }
@@ -1,2 +1,2 @@
1
- export * from './add-output-to-store.execution';
1
+ export * from './add-output-to-store';
2
2
  export * from './add-output-to-store-request';
@@ -1,8 +1,8 @@
1
1
  import { IPoint } from '@foblex/2d';
2
2
  import { IConnectorAndRect } from '../index';
3
- export declare class FindClosestConnectorRequest {
4
- position: IPoint;
5
- connectors: IConnectorAndRect[];
3
+ export declare class CalculateClosestConnectorRequest {
4
+ readonly position: IPoint;
5
+ readonly connectors: IConnectorAndRect[];
6
6
  static readonly fToken: unique symbol;
7
7
  constructor(position: IPoint, connectors: IConnectorAndRect[]);
8
8
  }
@@ -0,0 +1,16 @@
1
+ import { CalculateClosestConnectorRequest } from './calculate-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 CalculateClosestConnector implements IExecution<CalculateClosestConnectorRequest, IClosestConnector | undefined> {
11
+ handle({ position, connectors, }: CalculateClosestConnectorRequest): IClosestConnector | undefined;
12
+ private _distanceToRectangle;
13
+ private _clamp;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<CalculateClosestConnector, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<CalculateClosestConnector>;
16
+ }
@@ -0,0 +1,2 @@
1
+ export * from './calculate-closest-connector-request';
2
+ export * from './calculate-closest-connector';
@@ -7,9 +7,9 @@ import * as i0 from "@angular/core";
7
7
  */
8
8
  export declare class GetAllCanBeConnectedInputsAndRectsExecution implements IExecution<GetAllCanBeConnectedInputsAndRectsRequest, IConnectorAndRect[]> {
9
9
  private readonly _mediator;
10
- private _store;
11
- private get _fInputs();
12
- handle(payload: GetAllCanBeConnectedInputsAndRectsRequest): IConnectorAndRect[];
10
+ private readonly _store;
11
+ private get _targetConnectors();
12
+ handle({ outputOrOutlet, }: GetAllCanBeConnectedInputsAndRectsRequest): IConnectorAndRect[];
13
13
  private _getCanBeConnectedInputs;
14
14
  private _filterSelfConnectable;
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<GetAllCanBeConnectedInputsAndRectsExecution, never>;
@@ -1,6 +1,6 @@
1
1
  import { FNodeOutletBase, FNodeOutputBase } from '../../../f-connectors';
2
2
  export declare class GetAllCanBeConnectedInputsAndRectsRequest {
3
- fOutputOrOutlet: FNodeOutputBase | FNodeOutletBase;
3
+ readonly outputOrOutlet: FNodeOutputBase | FNodeOutletBase;
4
4
  static readonly fToken: unique symbol;
5
- constructor(fOutputOrOutlet: FNodeOutputBase | FNodeOutletBase);
5
+ constructor(outputOrOutlet: FNodeOutputBase | FNodeOutletBase);
6
6
  }
@@ -10,8 +10,8 @@ import * as i0 from "@angular/core";
10
10
  export declare class GetAllCanBeConnectedSourceConnectorsAndRectsExecution implements IExecution<GetAllCanBeConnectedSourceConnectorsAndRectsRequest, IConnectorAndRect[]> {
11
11
  private readonly _mediator;
12
12
  private readonly _store;
13
- private get _fSourceConnectors();
14
- handle(payload: GetAllCanBeConnectedSourceConnectorsAndRectsRequest): IConnectorAndRect[];
13
+ private get _sourceConnectors();
14
+ handle({ targetConnector, }: GetAllCanBeConnectedSourceConnectorsAndRectsRequest): IConnectorAndRect[];
15
15
  private _getCanBeConnectedSourceConnectors;
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<GetAllCanBeConnectedSourceConnectorsAndRectsExecution, never>;
17
17
  static ɵprov: i0.ɵɵInjectableDeclaration<GetAllCanBeConnectedSourceConnectorsAndRectsExecution>;
@@ -1,6 +1,6 @@
1
1
  import { FNodeInputBase } from '../../../f-connectors';
2
2
  export declare class GetAllCanBeConnectedSourceConnectorsAndRectsRequest {
3
- fTargetConnector: FNodeInputBase;
3
+ readonly targetConnector: FNodeInputBase;
4
4
  static readonly fToken: unique symbol;
5
- constructor(fTargetConnector: FNodeInputBase);
5
+ constructor(targetConnector: FNodeInputBase);
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import { FConnectorBase } from '../../../f-connectors';
2
2
  export declare class GetConnectorAndRectRequest {
3
- fConnector: FConnectorBase;
3
+ readonly connector: FConnectorBase;
4
4
  static readonly fToken: unique symbol;
5
- constructor(fConnector: FConnectorBase);
5
+ constructor(connector: FConnectorBase);
6
6
  }
@@ -5,10 +5,10 @@ import * as i0 from "@angular/core";
5
5
  /**
6
6
  * Execution that retrieves a connector and its rectangle.
7
7
  */
8
- export declare class GetConnectorAndRectExecution implements IExecution<GetConnectorAndRectRequest, IConnectorAndRect> {
8
+ export declare class GetConnectorAndRect implements IExecution<GetConnectorAndRectRequest, IConnectorAndRect> {
9
9
  private readonly _mediator;
10
- handle(request: GetConnectorAndRectRequest): IConnectorAndRect;
10
+ handle({ connector }: GetConnectorAndRectRequest): IConnectorAndRect;
11
11
  private _getConnectorRect;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<GetConnectorAndRectExecution, never>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<GetConnectorAndRectExecution>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<GetConnectorAndRect, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<GetConnectorAndRect>;
14
14
  }
@@ -1,2 +1,2 @@
1
- export * from './get-connector-and-rect.execution';
1
+ export * from './get-connector-and-rect';
2
2
  export * from './get-connector-and-rect-request';
@@ -1,7 +1,7 @@
1
1
  export * from './add-input-to-store';
2
2
  export * from './add-outlet-to-store';
3
3
  export * from './add-output-to-store';
4
- export * from './find-closest-connector';
4
+ export * from './calculate-closest-connector';
5
5
  export * from './find-connectable-connector-using-priority-and-position';
6
6
  export * from './get-all-can-be-connected-inputs-and-rects';
7
7
  export * from './get-all-can-be-connected-source-connectors-and-rects';
@@ -1,2 +1,2 @@
1
- export * from './mark-connectable-connectors.request';
2
- export * from './mark-connectable-connectors.execution';
1
+ export * from './mark-connectable-connectors-request';
2
+ export * from './mark-connectable-connectors';
@@ -1,6 +1,6 @@
1
1
  import { FConnectorBase } from '../../../f-connectors';
2
2
  export declare class MarkConnectableConnectorsRequest {
3
- fConnectors: FConnectorBase[];
3
+ readonly connectors: FConnectorBase[];
4
4
  static readonly fToken: unique symbol;
5
- constructor(fConnectors: FConnectorBase[]);
5
+ constructor(connectors: FConnectorBase[]);
6
6
  }
@@ -1,13 +1,13 @@
1
- import { MarkConnectableConnectorsRequest } from './mark-connectable-connectors.request';
1
+ import { MarkConnectableConnectorsRequest } from './mark-connectable-connectors-request';
2
2
  import { IExecution } from '@foblex/mediator';
3
3
  import * as i0 from "@angular/core";
4
4
  /**
5
5
  * Execution that marks connectors as connectable.
6
6
  */
7
- export declare class MarkConnectableConnectorsExecution implements IExecution<MarkConnectableConnectorsRequest, void> {
7
+ export declare class MarkConnectableConnectors implements IExecution<MarkConnectableConnectorsRequest, void> {
8
8
  private readonly _store;
9
- handle(payload: MarkConnectableConnectorsRequest): void;
9
+ handle({ connectors }: MarkConnectableConnectorsRequest): void;
10
10
  private _markConnector;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<MarkConnectableConnectorsExecution, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<MarkConnectableConnectorsExecution>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<MarkConnectableConnectors, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<MarkConnectableConnectors>;
13
13
  }
@@ -1,14 +1,14 @@
1
- import { AddInputToStoreExecution } from './add-input-to-store';
2
- import { AddOutletToStoreExecution } from './add-outlet-to-store';
3
- import { AddOutputToStoreExecution } from './add-output-to-store';
4
- import { RemoveInputFromStoreExecution } from './remove-input-from-store';
1
+ import { AddInputToStore } from './add-input-to-store';
2
+ import { AddOutletToStore } from './add-outlet-to-store';
3
+ import { AddOutputToStore } from './add-output-to-store';
4
+ import { RemoveInputFromStore } from './remove-input-from-store';
5
5
  import { RemoveOutletFromStoreExecution } from './remove-outlet-from-store';
6
6
  import { RemoveOutputFromStoreExecution } from './remove-output-from-store';
7
- import { MarkConnectableConnectorsExecution } from './mark-connectable-connectors';
8
- import { UnmarkConnectableConnectorsExecution } from './unmark-connectable-connectors';
7
+ import { MarkConnectableConnectors } from './mark-connectable-connectors';
8
+ import { UnmarkConnectableConnectors } from './unmark-connectable-connectors';
9
9
  import { GetAllCanBeConnectedInputsAndRectsExecution } from './get-all-can-be-connected-inputs-and-rects';
10
- import { GetConnectorAndRectExecution } from './get-connector-and-rect';
11
- import { FindClosestConnectorExecution } from './find-closest-connector';
12
- import { GetAllCanBeConnectedSourceConnectorsAndRectsExecution } from "./get-all-can-be-connected-source-connectors-and-rects";
13
- import { FindConnectableConnectorUsingPriorityAndPositionExecution } from "./find-connectable-connector-using-priority-and-position";
14
- export declare const F_CONNECTORS_FEATURES: (typeof AddInputToStoreExecution | typeof AddOutletToStoreExecution | typeof AddOutputToStoreExecution | typeof FindClosestConnectorExecution | typeof FindConnectableConnectorUsingPriorityAndPositionExecution | typeof GetAllCanBeConnectedSourceConnectorsAndRectsExecution | typeof GetAllCanBeConnectedInputsAndRectsExecution | typeof GetConnectorAndRectExecution | typeof MarkConnectableConnectorsExecution | typeof RemoveInputFromStoreExecution | typeof RemoveOutletFromStoreExecution | typeof RemoveOutputFromStoreExecution | typeof UnmarkConnectableConnectorsExecution)[];
10
+ import { GetConnectorAndRect } from './get-connector-and-rect';
11
+ import { CalculateClosestConnector } from './calculate-closest-connector';
12
+ import { GetAllCanBeConnectedSourceConnectorsAndRectsExecution } from './get-all-can-be-connected-source-connectors-and-rects';
13
+ import { FindConnectableConnectorUsingPriorityAndPositionExecution } from './find-connectable-connector-using-priority-and-position';
14
+ export declare const F_CONNECTORS_FEATURES: (typeof AddInputToStore | typeof AddOutletToStore | typeof AddOutputToStore | typeof CalculateClosestConnector | typeof FindConnectableConnectorUsingPriorityAndPositionExecution | typeof GetAllCanBeConnectedSourceConnectorsAndRectsExecution | typeof GetAllCanBeConnectedInputsAndRectsExecution | typeof GetConnectorAndRect | typeof MarkConnectableConnectors | typeof RemoveInputFromStore | typeof RemoveOutletFromStoreExecution | typeof RemoveOutputFromStoreExecution | typeof UnmarkConnectableConnectors)[];
@@ -1,2 +1,2 @@
1
- export * from './remove-input-from-store.execution';
1
+ export * from './remove-input-from-store';
2
2
  export * from './remove-input-from-store-request';
@@ -1,6 +1,6 @@
1
1
  import { FConnectorBase } from '../../../f-connectors';
2
2
  export declare class RemoveInputFromStoreRequest {
3
- fComponent: FConnectorBase;
3
+ readonly component: FConnectorBase;
4
4
  static readonly fToken: unique symbol;
5
- constructor(fComponent: FConnectorBase);
5
+ constructor(component: FConnectorBase);
6
6
  }
@@ -4,9 +4,9 @@ import * as i0 from "@angular/core";
4
4
  /**
5
5
  * Execution that removes an inputConnector from the FComponentsStore.
6
6
  */
7
- export declare class RemoveInputFromStoreExecution implements IExecution<RemoveInputFromStoreRequest, void> {
7
+ export declare class RemoveInputFromStore implements IExecution<RemoveInputFromStoreRequest, void> {
8
8
  private readonly _store;
9
- handle(request: RemoveInputFromStoreRequest): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<RemoveInputFromStoreExecution, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<RemoveInputFromStoreExecution>;
9
+ handle({ component }: RemoveInputFromStoreRequest): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<RemoveInputFromStore, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<RemoveInputFromStore>;
12
12
  }
@@ -1,2 +1,2 @@
1
- export * from './unmark-connectable-connectors.request';
2
- export * from './unmark-connectable-connectors.execution';
1
+ export * from './unmark-connectable-connectors-request';
2
+ export * from './unmark-connectable-connectors';
@@ -1,6 +1,6 @@
1
1
  import { FConnectorBase } from '../../../f-connectors';
2
2
  export declare class UnmarkConnectableConnectorsRequest {
3
- fConnectors: FConnectorBase[];
3
+ readonly connectors: FConnectorBase[];
4
4
  static readonly fToken: unique symbol;
5
- constructor(fConnectors: FConnectorBase[]);
5
+ constructor(connectors: FConnectorBase[]);
6
6
  }
@@ -1,13 +1,13 @@
1
- import { UnmarkConnectableConnectorsRequest } from './unmark-connectable-connectors.request';
1
+ import { UnmarkConnectableConnectorsRequest } from './unmark-connectable-connectors-request';
2
2
  import { IExecution } from '@foblex/mediator';
3
3
  import * as i0 from "@angular/core";
4
4
  /**
5
5
  * Execution that unmarks connectors as connectable.
6
6
  */
7
- export declare class UnmarkConnectableConnectorsExecution implements IExecution<UnmarkConnectableConnectorsRequest, void> {
7
+ export declare class UnmarkConnectableConnectors implements IExecution<UnmarkConnectableConnectorsRequest, void> {
8
8
  private readonly _store;
9
- handle(payload: UnmarkConnectableConnectorsRequest): void;
9
+ handle({ connectors }: UnmarkConnectableConnectorsRequest): void;
10
10
  private _unmarkConnector;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<UnmarkConnectableConnectorsExecution, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<UnmarkConnectableConnectorsExecution>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<UnmarkConnectableConnectors, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<UnmarkConnectableConnectors>;
13
13
  }
@@ -7,7 +7,7 @@ import * as i0 from "@angular/core";
7
7
  */
8
8
  export declare class GetFlowStateConnectionsExecution implements IExecution<GetFlowStateConnectionsRequest, IFFlowStateConnection[]> {
9
9
  private readonly _store;
10
- handle(request: GetFlowStateConnectionsRequest): IFFlowStateConnection[];
10
+ handle(_request: GetFlowStateConnectionsRequest): IFFlowStateConnection[];
11
11
  private _mapToConnectionState;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<GetFlowStateConnectionsExecution, never>;
13
13
  static ɵprov: i0.ɵɵInjectableDeclaration<GetFlowStateConnectionsExecution>;
@@ -10,4 +10,4 @@ import { GetNormalizedConnectorRectExecution } from "./get-normalized-connector-
10
10
  * draggable elements, flow, line alignment, nodes, selection, zoom,
11
11
  * and various utility executions.
12
12
  */
13
- export declare const COMMON_PROVIDERS: (typeof GetElementRoundedRectExecution | typeof import("./f-canvas").AddCanvasToStoreExecution | typeof import("./f-canvas").CenterGroupOrNodeExecution | typeof import("./f-canvas").FitToFlowExecution | typeof import("./f-canvas").InputCanvasPositionExecution | typeof import("./f-canvas").InputCanvasScaleExecution | typeof import("./f-canvas").RedrawCanvasWithAnimationExecution | typeof import("./f-canvas").ResetScaleAndCenterExecution | typeof import("./f-canvas").UpdateScaleExecution | typeof import("./f-connection").AddConnectionForCreateToStoreExecution | typeof import("./f-connection").AddConnectionMarkerToStoreExecution | typeof import("./f-connection").AddConnectionToStoreExecution | typeof import("./f-connection").AddSnapConnectionToStoreExecution | typeof import("./f-connection").CreateConnectionMarkersExecution | typeof import("./f-connection").CalculateConnectionLineByBehaviorExecution | typeof import("./f-connection").RemoveConnectionFromStoreExecution | typeof import("./f-connection").RemoveConnectionMarkerFromStoreExecution | typeof import("./f-background").AddBackgroundToStoreExecution | typeof import("./f-background").AddPatternToBackgroundExecution | typeof import("./f-background").RemoveBackgroundFromStoreExecution | typeof import("./f-background").SetBackgroundTransformExecution | typeof import("./f-connectors").AddInputToStoreExecution | typeof import("./f-connectors").AddOutletToStoreExecution | typeof import("./f-connectors").AddOutputToStoreExecution | typeof import("./f-connectors").FindClosestConnectorExecution | typeof import("./f-connectors").FindConnectableConnectorUsingPriorityAndPositionExecution | typeof import("./f-connectors").GetAllCanBeConnectedSourceConnectorsAndRectsExecution | typeof import("./f-connectors").GetAllCanBeConnectedInputsAndRectsExecution | typeof import("./f-connectors").GetConnectorAndRectExecution | typeof import("./f-connectors").MarkConnectableConnectorsExecution | typeof import("./f-connectors").RemoveInputFromStoreExecution | typeof import("./f-connectors").RemoveOutletFromStoreExecution | typeof import("./f-connectors").RemoveOutputFromStoreExecution | typeof import("./f-connectors").UnmarkConnectableConnectorsExecution | typeof import("./f-draggable").AddDndToStoreExecution | typeof import("./f-draggable").OnPointerMoveExecution | typeof import("./f-flow").AddFlowToStoreExecution | typeof import("./f-flow").GetFlowStateNodesExecution | typeof import("./f-line-alignment").AddLineAlignmentToStoreExecution | typeof import("./f-node").AddNodeToStore | typeof import("./f-node").CalculateInputConnections | typeof import("./f-node").CalculateNodesBoundingBoxNormalizedPosition | typeof import("./f-node").CalculateOutputConnections | typeof import("./f-node").FitToChildNodesAndGroups | typeof import("./f-node").GetChildNodeIds | typeof import("./f-node").GetNodePadding | typeof import("./f-node").GetParentNodes | typeof import("./f-node").UpdateNodeWhenStateOrSizeChanged | typeof import("./f-node").RemoveNodeFromStore | typeof import("./f-selection").SelectExecution | typeof import("./f-selection").SelectAndUpdateNodeLayerExecution | typeof import("./f-zoom").AddZoomToStoreExecution | typeof import("./f-zoom").SetZoomExecution | typeof GetDeepChildrenNodesAndGroupsExecution | typeof GetNormalizedConnectorRectExecution | typeof GetNormalizedElementRectExecution | typeof GetNormalizedPointExecution | typeof UpdateItemAndChildrenLayersExecution | typeof MoveFrontElementsBeforeTargetElementExecution)[];
13
+ export declare const COMMON_PROVIDERS: (typeof import("./f-canvas").AddCanvasToStoreExecution | typeof import("./f-canvas").CenterGroupOrNodeExecution | typeof import("./f-canvas").FitToFlowExecution | typeof import("./f-canvas").InputCanvasPositionExecution | typeof import("./f-canvas").InputCanvasScaleExecution | typeof import("./f-canvas").RedrawCanvasWithAnimationExecution | typeof import("./f-canvas").ResetScaleAndCenterExecution | typeof import("./f-canvas").UpdateScaleExecution | typeof import("./f-connection").AddConnectionForCreateToStoreExecution | typeof import("./f-connection").AddConnectionMarkerToStoreExecution | typeof import("./f-connection").AddConnectionToStoreExecution | typeof import("./f-connection").AddSnapConnectionToStoreExecution | typeof import("./f-connection").CreateConnectionMarkersExecution | typeof import("./f-connection").CalculateConnectionLineByBehavior | typeof import("./f-connection").RemoveConnectionFromStoreExecution | typeof import("./f-connection").RemoveConnectionMarkerFromStoreExecution | typeof import("./f-background").AddBackgroundToStoreExecution | typeof import("./f-background").AddPatternToBackgroundExecution | typeof import("./f-background").RemoveBackgroundFromStoreExecution | typeof import("./f-background").SetBackgroundTransformExecution | typeof import("./f-connectors").AddInputToStore | typeof import("./f-connectors").AddOutletToStore | typeof import("./f-connectors").AddOutputToStore | typeof import("./f-connectors").CalculateClosestConnector | typeof import("./f-connectors").FindConnectableConnectorUsingPriorityAndPositionExecution | typeof import("./f-connectors").GetAllCanBeConnectedSourceConnectorsAndRectsExecution | typeof import("./f-connectors").GetAllCanBeConnectedInputsAndRectsExecution | typeof import("./f-connectors").GetConnectorAndRect | typeof import("./f-connectors").MarkConnectableConnectors | typeof import("./f-connectors").RemoveInputFromStore | typeof import("./f-connectors").RemoveOutletFromStoreExecution | typeof import("./f-connectors").RemoveOutputFromStoreExecution | typeof import("./f-connectors").UnmarkConnectableConnectors | typeof import("./f-draggable").AddDndToStoreExecution | typeof import("./f-draggable").OnPointerMoveExecution | typeof import("./f-flow").AddFlowToStoreExecution | typeof import("./f-flow").GetFlowStateNodesExecution | typeof import("./f-line-alignment").AddLineAlignmentToStoreExecution | typeof import("./f-node").AddNodeToStore | typeof import("./f-node").CalculateInputConnections | typeof import("./f-node").CalculateNodesBoundingBoxNormalizedPosition | typeof import("./f-node").CalculateOutputConnections | typeof import("./f-node").FitToChildNodesAndGroups | typeof import("./f-node").GetChildNodeIds | typeof import("./f-node").GetNodePadding | typeof import("./f-node").GetParentNodes | typeof import("./f-node").UpdateNodeWhenStateOrSizeChanged | typeof import("./f-node").RemoveNodeFromStore | typeof GetElementRoundedRectExecution | typeof import("./f-selection").SelectExecution | typeof import("./f-selection").SelectAndUpdateNodeLayerExecution | typeof import("./f-zoom").AddZoomToStoreExecution | typeof import("./f-zoom").SetZoomExecution | typeof GetDeepChildrenNodesAndGroupsExecution | typeof GetNormalizedConnectorRectExecution | typeof GetNormalizedElementRectExecution | typeof GetNormalizedPointExecution | typeof UpdateItemAndChildrenLayersExecution | typeof MoveFrontElementsBeforeTargetElementExecution)[];
@@ -0,0 +1,16 @@
1
+ export class CalculateConnectionLineByBehaviorRequest {
2
+ sourceRect;
3
+ targetRect;
4
+ behavior;
5
+ sourceConnectableSide;
6
+ targetConnectableSide;
7
+ static fToken = Symbol('CalculateConnectionLineByBehaviorRequest');
8
+ constructor(sourceRect, targetRect, behavior, sourceConnectableSide, targetConnectableSide) {
9
+ this.sourceRect = sourceRect;
10
+ this.targetRect = targetRect;
11
+ this.behavior = behavior;
12
+ this.sourceConnectableSide = sourceConnectableSide;
13
+ this.targetConnectableSide = targetConnectableSide;
14
+ }
15
+ }
16
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FsY3VsYXRlLWNvbm5lY3Rpb24tbGluZS1ieS1iZWhhdmlvci1yZXF1ZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXM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pb25MaW5lQnlCZWhhdmlvclJlcXVlc3QnKTtcblxuICBjb25zdHJ1Y3RvcihcbiAgICBwdWJsaWMgc291cmNlUmVjdDogSVJvdW5kZWRSZWN0LFxuICAgIHB1YmxpYyB0YXJnZXRSZWN0OiBJUm91bmRlZFJlY3QsXG4gICAgcHVibGljIGJlaGF2aW9yOiBFRkNvbm5lY3Rpb25CZWhhdmlvciB8IHN0cmluZyxcbiAgICBwdWJsaWMgc291cmNlQ29ubmVjdGFibGVTaWRlOiBFRkNvbm5lY3RhYmxlU2lkZSxcbiAgICBwdWJsaWMgdGFyZ2V0Q29ubmVjdGFibGVTaWRlOiBFRkNvbm5lY3RhYmxlU2lkZSxcbiAgKSB7fVxufVxuIl19
@@ -0,0 +1,32 @@
1
+ import { __decorate } from "tslib";
2
+ import { CalculateConnectionLineByBehaviorRequest } from './calculate-connection-line-by-behavior-request';
3
+ import { Injectable } from '@angular/core';
4
+ import { EFConnectionBehavior } from '../../../f-connection';
5
+ import { FExecutionRegister } from '@foblex/mediator';
6
+ import { floatingBehavior } from './floating-behavior';
7
+ import { fixedCenterBehavior } from './fixed-center-behavior';
8
+ import { fixedOutboundBehavior } from './fixed-outbound-behavior';
9
+ import * as i0 from "@angular/core";
10
+ /**
11
+ * Execution that calculates the connection line based on the behavior.
12
+ */
13
+ let CalculateConnectionLineByBehavior = class CalculateConnectionLineByBehavior {
14
+ _handlers = {
15
+ [EFConnectionBehavior.FLOATING.toString()]: floatingBehavior,
16
+ [EFConnectionBehavior.FIXED_CENTER.toString()]: fixedCenterBehavior,
17
+ [EFConnectionBehavior.FIXED.toString()]: fixedOutboundBehavior,
18
+ };
19
+ handle(payload) {
20
+ return this._handlers[payload.behavior](payload);
21
+ }
22
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CalculateConnectionLineByBehavior, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
23
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CalculateConnectionLineByBehavior });
24
+ };
25
+ CalculateConnectionLineByBehavior = __decorate([
26
+ FExecutionRegister(CalculateConnectionLineByBehaviorRequest)
27
+ ], CalculateConnectionLineByBehavior);
28
+ export { CalculateConnectionLineByBehavior };
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CalculateConnectionLineByBehavior, decorators: [{
30
+ type: Injectable
31
+ }] });
32
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FsY3VsYXRlLWNvbm5lY3Rpb24tbGluZS1ieS1iZWhhdmlvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZG9tYWluL2YtY29ubmVjdGlvbi9jYWxjdWxhdGUtY29ubmVjdGlvbi1saW5lLWJ5LWJlaGF2aW9yL2NhbGN1bGF0ZS1jb25uZWN0aW9uLWxpbmUtYnktYmVoYXZpb3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSx3Q0FBd0MsRUFBRSxNQUFNLGlEQUFpRCxDQUFDO0FBQzNHLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sdUJBQXVCLENBQUM7QUFDN0QsT0FBTyxFQUFFLGtCQUFrQixFQUFjLE1BQU0sa0JBQWtCLENBQUM7QUFFbEUsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDdkQsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFDOUQsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sMkJBQTJCLENBQUM7O0FBRWxFOztHQU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UJ5QmVoYXZpb3JSZXF1ZXN0KTogSUxpbmUge1xuICAgIHJldHVybiB0aGlzLl9oYW5kbGVyc1twYXlsb2FkLmJlaGF2aW9yXShwYXlsb2FkKTtcbiAgfVxufVxuIl19
@@ -3,10 +3,10 @@
3
3
  * It constructs a line between the gravity centers of the connector rectangles
4
4
  * @param payload
5
5
  */
6
- export function fixedCenterBehavior(payload) {
6
+ export function fixedCenterBehavior({ sourceRect, targetRect, }) {
7
7
  return {
8
- point1: payload.outputRect.gravityCenter,
9
- point2: payload.inputRect.gravityCenter,
8
+ point1: sourceRect.gravityCenter,
9
+ point2: targetRect.gravityCenter,
10
10
  };
11
11
  }
12
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZml4ZWQtY2VudGVyLWJlaGF2aW9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9kb21haW4vZi1jb25uZWN0aW9uL2NhbGN1bGF0ZS1jb25uZWN0aW9uLWxpbmUtYnktYmVoYXZpb3IvZml4ZWQtY2VudGVyLWJlaGF2aW9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUdBOzs7O0dBSUc7QUFDSCxNQUFNLFVBQVUsbUJBQW1CLENBQUMsT0FBaUQ7SUFDbkYsT0FBTztRQUNMLE1BQU0sRUFBRSxPQUFPLENBQUMsVUFBVSxDQUFDLGFBQWE7UUFDeEMsTUFBTSxFQUFFLE9BQU8sQ0FBQyxTQUFTLENBQUMsYUFBYTtLQUN4QyxDQUFDO0FBQ0osQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IElMaW5lIH0gZnJvbSAnQGZvYmxleC8yZCc7XG5pbXBvcnQgeyBDYWxjdWxhdGVDb25uZWN0aW9uTGluZUJ5QmVoYXZpb3JSZXF1ZXN0IH0gZnJvbSAnLi9jYWxjdWxhdGUtY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