@foblex/flow 17.1.0 → 17.1.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 (231) hide show
  1. package/domain/css-cls.d.ts +13 -0
  2. package/domain/f-background/providers.d.ts +1 -1
  3. package/domain/f-canvas/providers.d.ts +1 -1
  4. package/domain/f-connection/index.d.ts +0 -3
  5. package/domain/f-connection/providers.d.ts +1 -4
  6. package/domain/f-connection/redraw-connections/redraw-connections.execution.d.ts +2 -2
  7. package/domain/f-connectors/calculate-closest-input/calculate-closest-input.execution.d.ts +11 -0
  8. package/domain/f-connectors/calculate-closest-input/calculate-closest-input.request.d.ts +7 -0
  9. package/domain/f-connectors/calculate-closest-input/index.d.ts +2 -0
  10. package/domain/f-connectors/find-input-at-position/find-input-at-position.execution.d.ts +24 -0
  11. package/domain/f-connectors/find-input-at-position/find-input-at-position.request.d.ts +8 -0
  12. package/domain/f-connectors/find-input-at-position/index.d.ts +2 -0
  13. package/domain/f-connectors/get-all-can-be-connected-inputs-and-rects/get-all-can-be-connected-inputs-and-rects.execution.d.ts +14 -0
  14. package/domain/f-connectors/get-all-can-be-connected-inputs-and-rects/get-all-can-be-connected-inputs-and-rects.request.d.ts +5 -0
  15. package/domain/f-connectors/get-all-can-be-connected-inputs-and-rects/index.d.ts +2 -0
  16. package/domain/f-connectors/get-connector-and-rect/get-connector-and-rect-request.d.ts +5 -0
  17. package/domain/f-connectors/get-connector-and-rect/get-connector-and-rect.execution.d.ts +11 -0
  18. package/domain/f-connectors/get-connector-and-rect/index.d.ts +2 -0
  19. package/domain/{f-connection/find-closest-input → f-connectors}/i-closest-input.d.ts +1 -1
  20. package/domain/{f-connection/get-connector-with-rect/i-connector-with-rect.d.ts → f-connectors/i-connector-and-rect.d.ts} +2 -2
  21. package/domain/f-connectors/index.d.ts +8 -0
  22. package/domain/f-connectors/mark-all-can-be-connected-inputs/index.d.ts +2 -0
  23. package/domain/f-connectors/mark-all-can-be-connected-inputs/mark-all-can-be-connected-inputs.execution.d.ts +10 -0
  24. package/domain/f-connectors/mark-all-can-be-connected-inputs/mark-all-can-be-connected-inputs.request.d.ts +5 -0
  25. package/domain/f-connectors/providers.d.ts +7 -1
  26. package/domain/f-connectors/unmark-all-can-be-connected-inputs/index.d.ts +2 -0
  27. package/domain/f-connectors/unmark-all-can-be-connected-inputs/unmark-all-can-be-connected-inputs.execution.d.ts +10 -0
  28. package/domain/f-connectors/unmark-all-can-be-connected-inputs/unmark-all-can-be-connected-inputs.request.d.ts +5 -0
  29. package/domain/f-flow/get-flow-state/providers.d.ts +1 -1
  30. package/domain/f-flow/providers.d.ts +1 -1
  31. package/domain/f-node/providers.d.ts +1 -1
  32. package/domain/f-node/update-node-when-state-or-size-changed/update-node-when-state-or-size-changed.execution.d.ts +2 -0
  33. package/domain/f-selection/select/select.execution.d.ts +2 -5
  34. package/domain/f-selection/select-all/select-all.execution.d.ts +2 -5
  35. package/domain/f-zoom/add-zoom-to-store/add-zoom-to-store-request.d.ts +5 -0
  36. package/domain/f-zoom/add-zoom-to-store/add-zoom-to-store.execution.d.ts +9 -0
  37. package/domain/f-zoom/add-zoom-to-store/index.d.ts +2 -0
  38. package/domain/f-zoom/f-zoom-tag.d.ts +1 -0
  39. package/domain/f-zoom/index.d.ts +6 -0
  40. package/domain/f-zoom/providers.d.ts +5 -0
  41. package/domain/f-zoom/remove-zoom-from-store/index.d.ts +2 -0
  42. package/domain/f-zoom/remove-zoom-from-store/remove-zoom-from-store-request.d.ts +2 -0
  43. package/domain/f-zoom/remove-zoom-from-store/remove-zoom-from-store.execution.d.ts +9 -0
  44. package/domain/f-zoom/reset-zoom/index.d.ts +2 -0
  45. package/domain/f-zoom/reset-zoom/reset-zoom-request.d.ts +2 -0
  46. package/domain/f-zoom/reset-zoom/reset-zoom.execution.d.ts +10 -0
  47. package/domain/f-zoom/set-zoom/index.d.ts +2 -0
  48. package/domain/f-zoom/set-zoom/set-zoom-request.d.ts +8 -0
  49. package/domain/f-zoom/set-zoom/set-zoom.execution.d.ts +16 -0
  50. package/domain/i-f-action-trigger.d.ts +14 -0
  51. package/domain/index.d.ts +4 -0
  52. package/domain/log-deprecated.d.ts +1 -0
  53. package/domain/providers.d.ts +1 -1
  54. package/esm2022/domain/css-cls.mjs +14 -0
  55. package/esm2022/domain/f-connection/index.mjs +1 -4
  56. package/esm2022/domain/f-connection/providers.mjs +1 -7
  57. package/esm2022/domain/f-connection/redraw-connections/redraw-connections.execution.mjs +9 -9
  58. package/esm2022/domain/f-connectors/calculate-closest-input/calculate-closest-input.execution.mjs +42 -0
  59. package/esm2022/domain/f-connectors/calculate-closest-input/calculate-closest-input.request.mjs +9 -0
  60. package/esm2022/domain/f-connectors/calculate-closest-input/index.mjs +3 -0
  61. package/esm2022/domain/f-connectors/find-input-at-position/find-input-at-position.execution.mjs +89 -0
  62. package/esm2022/domain/f-connectors/find-input-at-position/find-input-at-position.request.mjs +11 -0
  63. package/esm2022/domain/f-connectors/find-input-at-position/index.mjs +3 -0
  64. package/esm2022/domain/f-connectors/get-all-can-be-connected-inputs-and-rects/get-all-can-be-connected-inputs-and-rects.execution.mjs +45 -0
  65. package/esm2022/domain/f-connectors/get-all-can-be-connected-inputs-and-rects/get-all-can-be-connected-inputs-and-rects.request.mjs +7 -0
  66. package/esm2022/domain/f-connectors/get-all-can-be-connected-inputs-and-rects/index.mjs +3 -0
  67. package/esm2022/domain/f-connectors/get-connector-and-rect/get-connector-and-rect-request.mjs +7 -0
  68. package/esm2022/domain/f-connectors/get-connector-and-rect/get-connector-and-rect.execution.mjs +28 -0
  69. package/esm2022/domain/f-connectors/get-connector-and-rect/index.mjs +3 -0
  70. package/esm2022/domain/f-connectors/i-closest-input.mjs +2 -0
  71. package/esm2022/domain/f-connectors/i-connector-and-rect.mjs +2 -0
  72. package/esm2022/domain/f-connectors/index.mjs +9 -1
  73. package/esm2022/domain/f-connectors/mark-all-can-be-connected-inputs/index.mjs +3 -0
  74. package/esm2022/domain/f-connectors/mark-all-can-be-connected-inputs/mark-all-can-be-connected-inputs.execution.mjs +27 -0
  75. package/esm2022/domain/f-connectors/mark-all-can-be-connected-inputs/mark-all-can-be-connected-inputs.request.mjs +7 -0
  76. package/esm2022/domain/f-connectors/providers.mjs +14 -2
  77. package/esm2022/domain/f-connectors/unmark-all-can-be-connected-inputs/index.mjs +3 -0
  78. package/esm2022/domain/f-connectors/unmark-all-can-be-connected-inputs/unmark-all-can-be-connected-inputs.execution.mjs +27 -0
  79. package/esm2022/domain/f-connectors/unmark-all-can-be-connected-inputs/unmark-all-can-be-connected-inputs.request.mjs +7 -0
  80. package/esm2022/domain/f-draggable/end-drag-sequence/end-drag-sequence.execution.mjs +3 -2
  81. package/esm2022/domain/f-draggable/start-drag-sequence/start-drag-sequence.execution.mjs +3 -2
  82. package/esm2022/domain/f-node/update-node-when-state-or-size-changed/update-node-when-state-or-size-changed.execution.mjs +39 -5
  83. package/esm2022/domain/f-selection/select/select.execution.mjs +15 -19
  84. package/esm2022/domain/f-selection/select-all/select-all.execution.mjs +15 -19
  85. package/esm2022/domain/f-zoom/add-zoom-to-store/add-zoom-to-store-request.mjs +7 -0
  86. package/esm2022/domain/f-zoom/add-zoom-to-store/add-zoom-to-store.execution.mjs +25 -0
  87. package/esm2022/domain/f-zoom/add-zoom-to-store/index.mjs +3 -0
  88. package/esm2022/domain/f-zoom/f-zoom-tag.mjs +2 -0
  89. package/esm2022/domain/f-zoom/index.mjs +7 -0
  90. package/esm2022/domain/f-zoom/providers.mjs +11 -0
  91. package/esm2022/domain/f-zoom/remove-zoom-from-store/index.mjs +3 -0
  92. package/esm2022/domain/f-zoom/remove-zoom-from-store/remove-zoom-from-store-request.mjs +3 -0
  93. package/esm2022/domain/f-zoom/remove-zoom-from-store/remove-zoom-from-store.execution.mjs +25 -0
  94. package/esm2022/domain/f-zoom/reset-zoom/index.mjs +3 -0
  95. package/esm2022/domain/f-zoom/reset-zoom/reset-zoom-request.mjs +3 -0
  96. package/esm2022/domain/f-zoom/reset-zoom/reset-zoom.execution.mjs +27 -0
  97. package/esm2022/domain/f-zoom/set-zoom/index.mjs +3 -0
  98. package/esm2022/domain/f-zoom/set-zoom/set-zoom-request.mjs +13 -0
  99. package/esm2022/domain/f-zoom/set-zoom/set-zoom.execution.mjs +50 -0
  100. package/esm2022/domain/i-f-action-trigger.mjs +11 -0
  101. package/esm2022/domain/index.mjs +5 -1
  102. package/esm2022/domain/log-deprecated.mjs +11 -0
  103. package/esm2022/domain/providers.mjs +3 -1
  104. package/esm2022/f-canvas/domain/f-canvas-change.event.mjs +1 -1
  105. package/esm2022/f-canvas/f-canvas-base.mjs +1 -1
  106. package/esm2022/f-canvas/f-canvas.component.mjs +25 -2
  107. package/esm2022/f-connection/f-connection/f-connection.component.mjs +7 -5
  108. package/esm2022/f-connection/f-connection-for-create/f-connection-for-create.component.mjs +7 -5
  109. package/esm2022/f-connection/f-snap-connection/f-snap-connection.component.mjs +9 -6
  110. package/esm2022/f-connectors/f-connector-base.mjs +9 -5
  111. package/esm2022/f-connectors/f-node-input/f-node-input.directive.mjs +23 -23
  112. package/esm2022/f-connectors/f-node-outlet/f-node-outlet.directive.mjs +16 -17
  113. package/esm2022/f-connectors/f-node-output/f-node-output.directive.mjs +28 -24
  114. package/esm2022/f-connectors/index.mjs +1 -2
  115. package/esm2022/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.execution.mjs +8 -11
  116. package/esm2022/f-draggable/canvas/canvas-move-finalize/index.mjs +1 -2
  117. package/esm2022/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.execution.mjs +36 -19
  118. package/esm2022/f-draggable/canvas/canvas-move-preparation/index.mjs +1 -3
  119. package/esm2022/f-draggable/canvas/canvas.drag-handler.mjs +8 -8
  120. package/esm2022/f-draggable/canvas/providers.mjs +5 -5
  121. package/esm2022/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.execution.mjs +13 -10
  122. package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/create-connection-drag-handler.execution.mjs +2 -2
  123. package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/create-connection-drag-handler.request.mjs +4 -4
  124. package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-outlet-preparation/create-connection-from-outlet-preparation.execution.mjs +3 -3
  125. package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-from-output-preparation/create-connection-from-output-preparation.execution.mjs +7 -7
  126. package/esm2022/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.execution.mjs +5 -5
  127. package/esm2022/f-draggable/connections/create-connection/create-connection.drag-handler.mjs +54 -50
  128. package/esm2022/f-draggable/connections/i-create-reassign-connection-drag-data.mjs +2 -0
  129. package/esm2022/f-draggable/connections/index.mjs +2 -2
  130. package/esm2022/f-draggable/connections/providers.mjs +1 -4
  131. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.execution.mjs +9 -5
  132. package/esm2022/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.mjs +70 -53
  133. package/esm2022/f-draggable/i-draggable-item.mjs +1 -1
  134. package/esm2022/f-draggable/node/connection-base-drag-handler.mjs +4 -4
  135. package/esm2022/f-node/f-group.directive.mjs +9 -7
  136. package/esm2022/f-node/f-node.directive.mjs +10 -8
  137. package/esm2022/f-storage/f-components-store.mjs +2 -1
  138. package/esm2022/f-zoom/e-f-zoom-action.mjs +6 -0
  139. package/esm2022/f-zoom/e-f-zoom-direction.mjs +6 -0
  140. package/esm2022/f-zoom/f-zoom-base.mjs +2 -98
  141. package/esm2022/f-zoom/f-zoom.directive.mjs +139 -21
  142. package/esm2022/f-zoom/index.mjs +3 -1
  143. package/f-backgroud/providers.d.ts +1 -1
  144. package/f-canvas/f-canvas-base.d.ts +2 -2
  145. package/f-canvas/f-canvas.component.d.ts +9 -0
  146. package/f-connection/f-connection/f-connection.component.d.ts +2 -0
  147. package/f-connection/f-connection-for-create/f-connection-for-create.component.d.ts +2 -0
  148. package/f-connection/f-snap-connection/f-snap-connection.component.d.ts +3 -0
  149. package/f-connection/providers.d.ts +1 -1
  150. package/f-connectors/f-connector-base.d.ts +4 -2
  151. package/f-connectors/f-node-input/f-node-input.directive.d.ts +6 -6
  152. package/f-connectors/f-node-outlet/f-node-outlet.directive.d.ts +6 -6
  153. package/f-connectors/f-node-output/f-node-output.directive.d.ts +8 -7
  154. package/f-connectors/index.d.ts +0 -1
  155. package/f-connectors/providers.d.ts +1 -1
  156. package/f-draggable/canvas/canvas-move-finalize/canvas-move-finalize.execution.d.ts +1 -3
  157. package/f-draggable/canvas/canvas-move-finalize/index.d.ts +0 -1
  158. package/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.execution.d.ts +7 -6
  159. package/f-draggable/canvas/canvas-move-preparation/index.d.ts +0 -2
  160. package/f-draggable/canvas/canvas.drag-handler.d.ts +2 -2
  161. package/f-draggable/canvas/providers.d.ts +3 -1
  162. package/f-draggable/connections/create-connection/create-connection-finalize/create-connection-finalize.execution.d.ts +3 -2
  163. package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-drag-handler/create-connection-drag-handler.request.d.ts +3 -3
  164. package/f-draggable/connections/create-connection/create-connection-preparation/create-connection-preparation.execution.d.ts +2 -2
  165. package/f-draggable/connections/create-connection/create-connection.drag-handler.d.ts +14 -15
  166. package/f-draggable/connections/i-create-reassign-connection-drag-data.d.ts +7 -0
  167. package/f-draggable/connections/index.d.ts +1 -1
  168. package/f-draggable/connections/providers.d.ts +1 -2
  169. package/f-draggable/connections/reassign-connection/reassign-connection-finalize/reassign-connection-finalize.execution.d.ts +1 -0
  170. package/f-draggable/connections/reassign-connection/reassign-connection.drag-handler.d.ts +17 -15
  171. package/f-draggable/i-draggable-item.d.ts +2 -1
  172. package/f-draggable/node/connection-base-drag-handler.d.ts +3 -3
  173. package/f-draggable/node-resize/node-resize-preparation/providers.d.ts +1 -1
  174. package/f-draggable/node-resize/providers.d.ts +1 -1
  175. package/f-draggable/providers.d.ts +1 -1
  176. package/f-minimap/providers.d.ts +1 -1
  177. package/f-node/f-group.directive.d.ts +4 -0
  178. package/f-node/f-node.directive.d.ts +4 -0
  179. package/f-node/providers.d.ts +1 -1
  180. package/f-storage/f-components-store.d.ts +2 -0
  181. package/f-storage/providers.d.ts +1 -1
  182. package/f-zoom/e-f-zoom-action.d.ts +4 -0
  183. package/f-zoom/e-f-zoom-direction.d.ts +4 -0
  184. package/f-zoom/f-zoom-base.d.ts +0 -17
  185. package/f-zoom/f-zoom.directive.d.ts +40 -5
  186. package/f-zoom/index.d.ts +2 -0
  187. package/fesm2022/foblex-flow.mjs +1152 -915
  188. package/fesm2022/foblex-flow.mjs.map +1 -1
  189. package/package.json +1 -1
  190. package/domain/f-connection/find-closest-input/find-closest-input.execution.d.ts +0 -11
  191. package/domain/f-connection/find-closest-input/find-closest-input.request.d.ts +0 -7
  192. package/domain/f-connection/find-closest-input/index.d.ts +0 -3
  193. package/domain/f-connection/get-all-can-be-connected-input-positions/get-all-can-be-connected-input-positions.execution.d.ts +0 -21
  194. package/domain/f-connection/get-all-can-be-connected-input-positions/get-all-can-be-connected-input-positions.request.d.ts +0 -4
  195. package/domain/f-connection/get-all-can-be-connected-input-positions/index.d.ts +0 -2
  196. package/domain/f-connection/get-connector-with-rect/get-connector-with-rect-request.d.ts +0 -5
  197. package/domain/f-connection/get-connector-with-rect/get-connector-with-rect.execution.d.ts +0 -10
  198. package/domain/f-connection/get-connector-with-rect/index.d.ts +0 -3
  199. package/esm2022/domain/f-connection/find-closest-input/find-closest-input.execution.mjs +0 -42
  200. package/esm2022/domain/f-connection/find-closest-input/find-closest-input.request.mjs +0 -9
  201. package/esm2022/domain/f-connection/find-closest-input/i-closest-input.mjs +0 -2
  202. package/esm2022/domain/f-connection/find-closest-input/index.mjs +0 -4
  203. package/esm2022/domain/f-connection/get-all-can-be-connected-input-positions/get-all-can-be-connected-input-positions.execution.mjs +0 -57
  204. package/esm2022/domain/f-connection/get-all-can-be-connected-input-positions/get-all-can-be-connected-input-positions.request.mjs +0 -7
  205. package/esm2022/domain/f-connection/get-all-can-be-connected-input-positions/index.mjs +0 -3
  206. package/esm2022/domain/f-connection/get-connector-with-rect/get-connector-with-rect-request.mjs +0 -7
  207. package/esm2022/domain/f-connection/get-connector-with-rect/get-connector-with-rect.execution.mjs +0 -25
  208. package/esm2022/domain/f-connection/get-connector-with-rect/i-connector-with-rect.mjs +0 -2
  209. package/esm2022/domain/f-connection/get-connector-with-rect/index.mjs +0 -4
  210. package/esm2022/f-connectors/domain/calculate-connector-connectable-side/calculate-connector-connectable-side-request.mjs +0 -9
  211. package/esm2022/f-connectors/domain/calculate-connector-connectable-side/calculate-connector-connectable-side.handler.mjs +0 -38
  212. package/esm2022/f-connectors/domain/calculate-connector-connectable-side/index.mjs +0 -3
  213. package/esm2022/f-connectors/domain/index.mjs +0 -2
  214. package/esm2022/f-draggable/canvas/canvas-move-finalize/providers.mjs +0 -5
  215. package/esm2022/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.validator.mjs +0 -46
  216. package/esm2022/f-draggable/canvas/canvas-move-preparation/providers.mjs +0 -7
  217. package/esm2022/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.execution.mjs +0 -88
  218. package/esm2022/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.request.mjs +0 -9
  219. package/esm2022/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.validator.mjs +0 -36
  220. package/esm2022/f-draggable/connections/get-input-under-pointer/index.mjs +0 -4
  221. package/f-connectors/domain/calculate-connector-connectable-side/calculate-connector-connectable-side-request.d.ts +0 -6
  222. package/f-connectors/domain/calculate-connector-connectable-side/calculate-connector-connectable-side.handler.d.ts +0 -7
  223. package/f-connectors/domain/calculate-connector-connectable-side/index.d.ts +0 -2
  224. package/f-connectors/domain/index.d.ts +0 -1
  225. package/f-draggable/canvas/canvas-move-finalize/providers.d.ts +0 -2
  226. package/f-draggable/canvas/canvas-move-preparation/canvas-move-preparation.validator.d.ts +0 -17
  227. package/f-draggable/canvas/canvas-move-preparation/providers.d.ts +0 -3
  228. package/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.execution.d.ts +0 -27
  229. package/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.request.d.ts +0 -8
  230. package/f-draggable/connections/get-input-under-pointer/get-input-under-pointer.validator.d.ts +0 -13
  231. package/f-draggable/connections/get-input-under-pointer/index.d.ts +0 -3
@@ -1,4 +1,2 @@
1
- export * from './providers';
2
1
  export * from './canvas-move-preparation.execution';
3
2
  export * from './canvas-move-preparation.request';
4
- export * from './canvas-move-preparation.validator';
@@ -2,9 +2,9 @@ import { IPoint } from '@foblex/2d';
2
2
  import { IDraggableItem } from '../i-draggable-item';
3
3
  import { FComponentsStore } from '../../f-storage';
4
4
  export declare class CanvasDragHandler implements IDraggableItem {
5
- private fComponentsStore;
5
+ private _fComponentsStore;
6
6
  private onPointerDownPosition;
7
- constructor(fComponentsStore: FComponentsStore);
7
+ constructor(_fComponentsStore: FComponentsStore);
8
8
  prepareDragSequence(): void;
9
9
  onPointerMove(difference: IPoint): void;
10
10
  onPointerUp(): void;
@@ -1 +1,3 @@
1
- export declare const CANVAS_PROVIDERS: (typeof import("./canvas-move-finalize").CanvasMoveFinalizeExecution | typeof import("./canvas-move-preparation").CanvasMovePreparationExecution | typeof import("./canvas-move-preparation").CanvasMovePreparationValidator)[];
1
+ import { CanvasMovePreparationExecution } from './canvas-move-preparation';
2
+ import { CanvasMoveFinalizeExecution } from './canvas-move-finalize';
3
+ export declare const CANVAS_PROVIDERS: (typeof CanvasMoveFinalizeExecution | typeof CanvasMovePreparationExecution)[];
@@ -8,7 +8,7 @@ export declare class CreateConnectionFinalizeExecution implements IHandler<Creat
8
8
  private fComponentsStore;
9
9
  private fDraggableDataContext;
10
10
  private fMediator;
11
- private get dragHandler();
11
+ private get _fDragHandler();
12
12
  constructor(fComponentsStore: FComponentsStore, fDraggableDataContext: FDraggableDataContext, fMediator: FMediator);
13
13
  handle(request: CreateConnectionFinalizeRequest): void;
14
14
  private _isValid;
@@ -16,7 +16,8 @@ export declare class CreateConnectionFinalizeExecution implements IHandler<Creat
16
16
  private getOutput;
17
17
  private getOutlet;
18
18
  private emitEvent;
19
- private getInputUnderPointer;
19
+ private _getInputUnderPointer;
20
+ private _getDragHandlerData;
20
21
  static ɵfac: i0.ɵɵFactoryDeclaration<CreateConnectionFinalizeExecution, never>;
21
22
  static ɵprov: i0.ɵɵInjectableDeclaration<CreateConnectionFinalizeExecution>;
22
23
  }
@@ -1,7 +1,7 @@
1
1
  import { IPoint } from '@foblex/2d';
2
- import { FConnectorBase } from '../../../../../f-connectors';
2
+ import { FNodeOutletDirective, FNodeOutputDirective } from '../../../../../f-connectors';
3
3
  export declare class CreateConnectionDragHandlerRequest {
4
4
  onPointerDownPosition: IPoint;
5
- connector: FConnectorBase;
6
- constructor(onPointerDownPosition: IPoint, connector: FConnectorBase);
5
+ fOutput: FNodeOutputDirective | FNodeOutletDirective;
6
+ constructor(onPointerDownPosition: IPoint, fOutput: FNodeOutputDirective | FNodeOutletDirective);
7
7
  }
@@ -9,8 +9,8 @@ export declare class CreateConnectionPreparationExecution implements IHandler<Cr
9
9
  private _isValid;
10
10
  private _getNode;
11
11
  private _isValidConditions;
12
- private isNodeOutput;
13
- private getOutlets;
12
+ private _isNodeOutput;
13
+ private _getOutlets;
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<CreateConnectionPreparationExecution, never>;
15
15
  static ɵprov: i0.ɵɵInjectableDeclaration<CreateConnectionPreparationExecution>;
16
16
  }
@@ -1,29 +1,28 @@
1
1
  import { IDraggableItem } from '../../i-draggable-item';
2
- import { IClosestInput } from '../../../domain';
3
- import { FConnectionBase } from '../../../f-connection';
4
- import { FConnectorBase } from '../../../f-connectors';
2
+ import { FNodeOutletDirective, FNodeOutputDirective } from '../../../f-connectors';
5
3
  import { FMediator } from '@foblex/mediator';
6
4
  import { IPoint } from '@foblex/2d';
7
5
  import { FComponentsStore } from '../../../f-storage';
8
- export declare class CreateConnectionDragHandler implements IDraggableItem {
9
- private fMediator;
10
- private fComponentsStore;
11
- private fOutput;
12
- private onPointerDownPosition;
13
- private toConnectorRect;
14
- get fConnection(): FConnectionBase;
15
- private get fSnapConnection();
16
- private fOutputWithRect;
17
- private canBeConnectedInputs;
18
- constructor(fMediator: FMediator, fComponentsStore: FComponentsStore, fOutput: FConnectorBase, onPointerDownPosition: IPoint);
6
+ import { ICreateReassignConnectionDragData } from '../i-create-reassign-connection-drag-data';
7
+ export declare class CreateConnectionDragHandler implements IDraggableItem<ICreateReassignConnectionDragData> {
8
+ private _fMediator;
9
+ private _fComponentsStore;
10
+ private _fOutput;
11
+ private readonly _toConnectorRect;
12
+ private get _fConnection();
13
+ private get _fSnapConnection();
14
+ private _fOutputWithRect;
15
+ private _canBeConnectedInputs;
16
+ constructor(_fMediator: FMediator, _fComponentsStore: FComponentsStore, _fOutput: FNodeOutputDirective | FNodeOutletDirective, _onPointerDownPosition: IPoint);
19
17
  prepareDragSequence(): void;
18
+ private _getAndMarkCanBeConnectedInputs;
20
19
  private _initializeSnapConnection;
21
20
  private _initializeConnectionForCreate;
22
21
  onPointerMove(difference: IPoint): void;
23
22
  private _drawConnectionForCreate;
24
23
  private _drawSnapConnection;
25
- getClosetInput(difference: IPoint): IClosestInput | undefined;
26
24
  private _findClosestInput;
27
25
  private _getClosestInputForSnapConnection;
28
26
  onPointerUp(): void;
27
+ getData(): ICreateReassignConnectionDragData;
29
28
  }
@@ -0,0 +1,7 @@
1
+ import { RoundedRect } from '@foblex/2d';
2
+ import { IConnectorAndRect } from '../../domain';
3
+ export interface ICreateReassignConnectionDragData {
4
+ toConnectorRect: RoundedRect;
5
+ fOutputId: string;
6
+ canBeConnectedInputs: IConnectorAndRect[];
7
+ }
@@ -1,4 +1,4 @@
1
1
  export * from './create-connection';
2
- export * from './get-input-under-pointer';
3
2
  export * from './reassign-connection';
3
+ export * from './i-create-reassign-connection-drag-data';
4
4
  export * from './providers';
@@ -1,4 +1,3 @@
1
1
  import { CreateConnectionDragHandlerExecution, CreateConnectionFinalizeExecution, CreateConnectionFromOutletPreparationExecution, CreateConnectionFromOutputPreparationExecution, CreateConnectionFromOutputPreparationValidator, CreateConnectionPreparationExecution, GetCanBeConnectedOutputByOutletExecution, GetCanBeConnectedOutputByOutletValidator } from './create-connection';
2
2
  import { ReassignConnectionFinalizeExecution, ReassignConnectionPreparationExecution } from './reassign-connection';
3
- import { GetInputUnderPointerExecution, GetInputUnderPointerValidator } from './get-input-under-pointer';
4
- export declare const CONNECTIONS_PROVIDERS: (typeof CreateConnectionPreparationExecution | typeof CreateConnectionDragHandlerExecution | typeof CreateConnectionFinalizeExecution | typeof GetInputUnderPointerExecution | typeof ReassignConnectionPreparationExecution | typeof ReassignConnectionFinalizeExecution | typeof GetInputUnderPointerValidator | typeof CreateConnectionFromOutletPreparationExecution | typeof GetCanBeConnectedOutputByOutletExecution | typeof GetCanBeConnectedOutputByOutletValidator | typeof CreateConnectionFromOutputPreparationExecution | typeof CreateConnectionFromOutputPreparationValidator)[];
3
+ export declare const CONNECTIONS_PROVIDERS: (typeof CreateConnectionFinalizeExecution | typeof CreateConnectionDragHandlerExecution | typeof CreateConnectionFromOutletPreparationExecution | typeof GetCanBeConnectedOutputByOutletExecution | typeof GetCanBeConnectedOutputByOutletValidator | typeof CreateConnectionFromOutputPreparationExecution | typeof CreateConnectionFromOutputPreparationValidator | typeof CreateConnectionPreparationExecution | typeof ReassignConnectionFinalizeExecution | typeof ReassignConnectionPreparationExecution)[];
@@ -14,6 +14,7 @@ export declare class ReassignConnectionFinalizeExecution implements IExecution<R
14
14
  private _isReassignToDifferentInput;
15
15
  private _emitReassignConnectionEvent;
16
16
  private _getEventData;
17
+ private _getDragHandlerData;
17
18
  static ɵfac: i0.ɵɵFactoryDeclaration<ReassignConnectionFinalizeExecution, never>;
18
19
  static ɵprov: i0.ɵɵInjectableDeclaration<ReassignConnectionFinalizeExecution>;
19
20
  }
@@ -1,30 +1,32 @@
1
1
  import { IDraggableItem } from '../../i-draggable-item';
2
- import { IClosestInput } from '../../../domain';
3
2
  import { FConnectionBase } from '../../../f-connection';
4
3
  import { FMediator } from '@foblex/mediator';
5
- import { IPoint, RoundedRect } from '@foblex/2d';
4
+ import { IPoint } from '@foblex/2d';
6
5
  import { FComponentsStore } from '../../../f-storage';
7
- export declare class ReassignConnectionDragHandler implements IDraggableItem {
8
- private fMediator;
9
- private fComponentsStore;
10
- fConnection: FConnectionBase;
11
- toConnectorRect: RoundedRect;
12
- private get fSnapConnection();
13
- private fOutputWithRect;
14
- private fInputWithRect;
15
- private canBeConnectedInputs;
16
- constructor(fMediator: FMediator, fComponentsStore: FComponentsStore, fConnection: FConnectionBase);
6
+ import { ICreateReassignConnectionDragData } from '../i-create-reassign-connection-drag-data';
7
+ export declare class ReassignConnectionDragHandler implements IDraggableItem<ICreateReassignConnectionDragData> {
8
+ private _fMediator;
9
+ private _fComponentsStore;
10
+ private _fConnection;
11
+ private readonly _toConnectorRect;
12
+ private get _fSnapConnection();
13
+ private _fOutputWithRect;
14
+ private _fInputWithRect;
15
+ private _canBeConnectedInputs;
16
+ private get _fOutput();
17
+ private get _fInput();
18
+ constructor(_fMediator: FMediator, _fComponentsStore: FComponentsStore, _fConnection: FConnectionBase);
17
19
  prepareDragSequence(): void;
20
+ private _getAndMarkCanBeConnectedInputs;
18
21
  private _initializeSnapConnection;
19
- private getOutput;
20
- private getInput;
21
22
  onPointerMove(difference: IPoint): void;
22
23
  private _drawConnection;
23
24
  private _getLineToPointer;
24
25
  private _drawSnapConnection;
25
26
  private _getLineToClosestInput;
26
- getClosetInput(difference: IPoint): IClosestInput | undefined;
27
27
  private _findClosestInput;
28
28
  private _getClosestInputForSnapConnection;
29
29
  onPointerUp(): void;
30
+ getData(): ICreateReassignConnectionDragData;
31
+ getConnection(): FConnectionBase;
30
32
  }
@@ -1,6 +1,7 @@
1
1
  import { IPoint } from '@foblex/2d';
2
- export interface IDraggableItem {
2
+ export interface IDraggableItem<TData = any> {
3
3
  prepareDragSequence?(): void;
4
4
  onPointerMove(difference: IPoint): void;
5
5
  onPointerUp?(): void;
6
+ getData?(): TData;
6
7
  }
@@ -3,14 +3,14 @@ import { FConnectionBase } from '../../f-connection';
3
3
  import { FMediator } from '@foblex/mediator';
4
4
  import { ILine, IMinMaxPoint, IPoint } from '@foblex/2d';
5
5
  import { FComponentsStore } from '../../f-storage';
6
- import { IConnectorWithRect } from '../../domain';
6
+ import { IConnectorAndRect } from '../../domain';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare abstract class ConnectionBaseDragHandler implements IDraggableItem {
9
9
  protected fMediator: FMediator;
10
10
  protected fComponentsStore: FComponentsStore;
11
11
  connection: FConnectionBase;
12
- protected fOutputWithRect: IConnectorWithRect;
13
- protected fInputWithRect: IConnectorWithRect;
12
+ protected fOutputWithRect: IConnectorAndRect;
13
+ protected fInputWithRect: IConnectorAndRect;
14
14
  protected constructor(fMediator: FMediator, fComponentsStore: FComponentsStore, connection: FConnectionBase);
15
15
  prepareDragSequence(): void;
16
16
  private getOutput;
@@ -1,3 +1,3 @@
1
1
  import { NodeResizePreparationExecution } from './node-resize-preparation.execution';
2
2
  import { NodeResizePreparationValidator } from './node-resize-preparation.validator';
3
- export declare const NODE_RESIZE_PREPARATION_PROVIDERS: (typeof NodeResizePreparationValidator | typeof NodeResizePreparationExecution)[];
3
+ export declare const NODE_RESIZE_PREPARATION_PROVIDERS: (typeof NodeResizePreparationExecution | typeof NodeResizePreparationValidator)[];
@@ -4,4 +4,4 @@ import { ApplyParentResizeRestrictionsExecution } from './apply-parent-resize-re
4
4
  import { CalculateChangedSizeExecution } from './calculate-changed-size';
5
5
  import { CalculateChangedPositionExecution } from './calculate-changed-position';
6
6
  import { GetNormalizedChildrenNodesRectExecution } from './get-normalized-children-nodes-rect';
7
- export declare const NODE_RESIZE_PROVIDERS: (typeof import("./node-resize-preparation").NodeResizePreparationValidator | typeof import("./node-resize-preparation").NodeResizePreparationExecution | typeof import("./node-resize-finalize").NodeResizeFinalizeExecution | typeof ApplyChildResizeRestrictionsExecution | typeof ApplyParentResizeRestrictionsExecution | typeof CalculateChangedPositionExecution | typeof CalculateChangedSizeExecution | typeof GetNormalizedChildrenNodesRectExecution | typeof GetNodeResizeRestrictionsExecution)[];
7
+ export declare const NODE_RESIZE_PROVIDERS: (typeof ApplyChildResizeRestrictionsExecution | typeof ApplyParentResizeRestrictionsExecution | typeof CalculateChangedPositionExecution | typeof CalculateChangedSizeExecution | typeof GetNormalizedChildrenNodesRectExecution | typeof GetNodeResizeRestrictionsExecution | typeof import("./node-resize-finalize").NodeResizeFinalizeExecution | typeof import("./node-resize-preparation").NodeResizePreparationExecution | typeof import("./node-resize-preparation").NodeResizePreparationValidator)[];
@@ -1 +1 @@
1
- export declare const F_DRAGGABLE_PROVIDERS: (typeof import("./node").CalculateCommonNodeMoveRestrictionsExecution | typeof import("./node").CalculateNodeMoveRestrictionsExecution | typeof import("./node").PutInputConnectionHandlersToArrayExecution | typeof import("./node").PutOutputConnectionHandlersToArrayExecution | typeof import("./node").CreateMoveNodesDragModelFromSelectionExecution | typeof import("./node").LineAlignmentPreparationExecution | typeof import("./node").NodeMoveFinalizeExecution | typeof import("./node").NodeMovePreparationExecution | typeof import("./node").NodeDragToParentPreparationExecution | typeof import("./node").NodeDragToParentPreparationValidator | typeof import("./node").NodeDragToParentFinalizeExecution | typeof import("./single-select").SingleSelectExecution | typeof import("./node-resize").NodeResizePreparationValidator | typeof import("./node-resize").NodeResizePreparationExecution | typeof import("./node-resize").NodeResizeFinalizeExecution | typeof import("./connections").CreateConnectionPreparationExecution | typeof import("./connections").CreateConnectionDragHandlerExecution | typeof import("./connections").CreateConnectionFinalizeExecution | typeof import("./connections").GetInputUnderPointerExecution | typeof import("./connections").ReassignConnectionPreparationExecution | typeof import("./connections").ReassignConnectionFinalizeExecution | typeof import("./canvas").CanvasMoveFinalizeExecution | typeof import("./canvas").CanvasMovePreparationExecution | typeof import("./canvas").CanvasMovePreparationValidator | typeof import("./connections").GetInputUnderPointerValidator | typeof import("./connections").CreateConnectionFromOutletPreparationExecution | typeof import("./connections").GetCanBeConnectedOutputByOutletExecution | typeof import("./connections").GetCanBeConnectedOutputByOutletValidator | typeof import("./connections").CreateConnectionFromOutputPreparationExecution | typeof import("./connections").CreateConnectionFromOutputPreparationValidator | typeof import("./domain").GetNormalizedParentNodeRectExecution | typeof import("./domain").IsArrayHasParentNodeExecution | typeof import("./domain").IsConnectionUnderNodeExecution | typeof import("../f-external-item").ExternalItemFinalizeExecution | typeof import("../f-external-item").ExternalItemPreparationExecution | typeof import("../f-external-item").ExternalItemPreparationValidator | typeof import("../f-external-item").PreventDefaultIsExternalItemExecution | typeof import("./node-resize").ApplyChildResizeRestrictionsExecution | typeof import("./node-resize").ApplyParentResizeRestrictionsExecution | typeof import("./node-resize").CalculateChangedPositionExecution | typeof import("./node-resize").CalculateChangedSizeExecution | typeof import("./node-resize").GetNormalizedChildrenNodesRectExecution | typeof import("./node-resize").GetNodeResizeRestrictionsExecution | typeof import("../f-selection-area").SelectionAreaFinalizeExecution | typeof import("../f-selection-area").SelectionAreaFinalizeValidator | typeof import("../f-selection-area").SelectionAreaPreparationExecution | typeof import("../f-selection-area").SelectionAreaPreparationValidator | typeof import("@foblex/flow").CalculateFlowPointFromMinimapPointExecution | typeof import("@foblex/flow").MinimapDragFinalizeExecution | typeof import("@foblex/flow").MinimapDragFinalizeValidator | typeof import("@foblex/flow").MinimapDragPreparationExecution | typeof import("@foblex/flow").MinimapDragPreparationValidator | typeof import("@foblex/flow").MinimapDrawNodesExecution | typeof import("@foblex/flow").MinimapCalculateSvgScaleAndViewBoxExecution | typeof import("@foblex/flow").MinimapCalculateViewBoxExecution)[];
1
+ export declare const F_DRAGGABLE_PROVIDERS: (typeof import("./canvas").CanvasMoveFinalizeExecution | typeof import("./canvas").CanvasMovePreparationExecution | typeof import("./connections").CreateConnectionFinalizeExecution | typeof import("./connections").CreateConnectionDragHandlerExecution | typeof import("./connections").CreateConnectionFromOutletPreparationExecution | typeof import("./connections").GetCanBeConnectedOutputByOutletExecution | typeof import("./connections").GetCanBeConnectedOutputByOutletValidator | typeof import("./connections").CreateConnectionFromOutputPreparationExecution | typeof import("./connections").CreateConnectionFromOutputPreparationValidator | typeof import("./connections").CreateConnectionPreparationExecution | typeof import("./connections").ReassignConnectionFinalizeExecution | typeof import("./connections").ReassignConnectionPreparationExecution | typeof import("./domain").GetNormalizedParentNodeRectExecution | typeof import("./domain").IsArrayHasParentNodeExecution | typeof import("./domain").IsConnectionUnderNodeExecution | typeof import("./single-select").SingleSelectExecution | typeof import("../f-external-item").ExternalItemFinalizeExecution | typeof import("../f-external-item").ExternalItemPreparationExecution | typeof import("../f-external-item").ExternalItemPreparationValidator | typeof import("../f-external-item").PreventDefaultIsExternalItemExecution | typeof import("./node").CalculateCommonNodeMoveRestrictionsExecution | typeof import("./node").CalculateNodeMoveRestrictionsExecution | typeof import("./node").PutInputConnectionHandlersToArrayExecution | typeof import("./node").PutOutputConnectionHandlersToArrayExecution | typeof import("./node").CreateMoveNodesDragModelFromSelectionExecution | typeof import("./node").LineAlignmentPreparationExecution | typeof import("./node").NodeMoveFinalizeExecution | typeof import("./node").NodeMovePreparationExecution | typeof import("./node").NodeDragToParentPreparationExecution | typeof import("./node").NodeDragToParentPreparationValidator | typeof import("./node").NodeDragToParentFinalizeExecution | typeof import("./node-resize").ApplyChildResizeRestrictionsExecution | typeof import("./node-resize").ApplyParentResizeRestrictionsExecution | typeof import("./node-resize").CalculateChangedPositionExecution | typeof import("./node-resize").CalculateChangedSizeExecution | typeof import("./node-resize").GetNormalizedChildrenNodesRectExecution | typeof import("./node-resize").GetNodeResizeRestrictionsExecution | typeof import("./node-resize").NodeResizeFinalizeExecution | typeof import("./node-resize").NodeResizePreparationExecution | typeof import("./node-resize").NodeResizePreparationValidator | typeof import("../f-selection-area").SelectionAreaFinalizeExecution | typeof import("../f-selection-area").SelectionAreaFinalizeValidator | typeof import("../f-selection-area").SelectionAreaPreparationExecution | typeof import("../f-selection-area").SelectionAreaPreparationValidator | typeof import("@foblex/flow").CalculateFlowPointFromMinimapPointExecution | typeof import("@foblex/flow").MinimapDragFinalizeExecution | typeof import("@foblex/flow").MinimapDragFinalizeValidator | typeof import("@foblex/flow").MinimapDragPreparationExecution | typeof import("@foblex/flow").MinimapDragPreparationValidator | typeof import("@foblex/flow").MinimapDrawNodesExecution | typeof import("@foblex/flow").MinimapCalculateSvgScaleAndViewBoxExecution | typeof import("@foblex/flow").MinimapCalculateViewBoxExecution)[];
@@ -2,4 +2,4 @@ import { FMinimapComponent } from './f-minimap.component';
2
2
  import { FMinimapViewDirective } from './f-minimap-view.directive';
3
3
  import { FMinimapFlowDirective } from './f-minimap-flow.directive';
4
4
  import { FMinimapCanvasDirective } from './f-minimap-canvas.directive';
5
- export declare const F_MINIMAP_PROVIDERS: (typeof FMinimapFlowDirective | typeof FMinimapCanvasDirective | typeof FMinimapViewDirective | typeof FMinimapComponent)[];
5
+ export declare const F_MINIMAP_PROVIDERS: (typeof FMinimapComponent | typeof FMinimapCanvasDirective | typeof FMinimapViewDirective | typeof FMinimapFlowDirective)[];
@@ -31,4 +31,8 @@ export declare class FGroupDirective extends FNodeBase implements OnInit, AfterV
31
31
  ngOnDestroy(): void;
32
32
  static ɵfac: i0.ɵɵFactoryDeclaration<FGroupDirective, never>;
33
33
  static ɵdir: i0.ɵɵDirectiveDeclaration<FGroupDirective, "[fGroup]", ["fComponent"], { "fId": { "alias": "fGroupId"; "required": false; }; "fParentId": { "alias": "fGroupParentId"; "required": false; }; "position": { "alias": "fGroupPosition"; "required": false; }; "size": { "alias": "fGroupSize"; "required": false; }; "fDraggingDisabled": { "alias": "fGroupDraggingDisabled"; "required": false; }; "fSelectionDisabled": { "alias": "fGroupSelectionDisabled"; "required": false; }; "fIncludePadding": { "alias": "fIncludePadding"; "required": false; }; "fConnectOnNode": { "alias": "fConnectOnNode"; "required": false; }; }, { "positionChange": "fGroupPositionChange"; "sizeChange": "fGroupSizeChange"; }, never, never, false, never>;
34
+ static ngAcceptInputType_fDraggingDisabled: unknown;
35
+ static ngAcceptInputType_fSelectionDisabled: unknown;
36
+ static ngAcceptInputType_fIncludePadding: unknown;
37
+ static ngAcceptInputType_fConnectOnNode: unknown;
34
38
  }
@@ -31,4 +31,8 @@ export declare class FNodeDirective extends FNodeBase implements OnInit, AfterVi
31
31
  ngOnDestroy(): void;
32
32
  static ɵfac: i0.ɵɵFactoryDeclaration<FNodeDirective, never>;
33
33
  static ɵdir: i0.ɵɵDirectiveDeclaration<FNodeDirective, "[fNode]", ["fComponent"], { "fId": { "alias": "fNodeId"; "required": false; }; "fParentId": { "alias": "fNodeParentId"; "required": false; }; "position": { "alias": "fNodePosition"; "required": false; }; "size": { "alias": "fNodeSize"; "required": false; }; "fDraggingDisabled": { "alias": "fNodeDraggingDisabled"; "required": false; }; "fSelectionDisabled": { "alias": "fNodeSelectionDisabled"; "required": false; }; "fIncludePadding": { "alias": "fIncludePadding"; "required": false; }; "fConnectOnNode": { "alias": "fConnectOnNode"; "required": false; }; }, { "positionChange": "fNodePositionChange"; "sizeChange": "fNodeSizeChange"; }, never, never, false, never>;
34
+ static ngAcceptInputType_fDraggingDisabled: unknown;
35
+ static ngAcceptInputType_fSelectionDisabled: unknown;
36
+ static ngAcceptInputType_fIncludePadding: unknown;
37
+ static ngAcceptInputType_fConnectOnNode: unknown;
34
38
  }
@@ -2,4 +2,4 @@ import { FNodeDirective } from './f-node.directive';
2
2
  import { FResizeHandleDirective } from './f-resize-handle';
3
3
  import { FGroupDirective } from './f-group.directive';
4
4
  import { FDragHandleDirective } from './f-drag-handle.directive';
5
- export declare const F_NODE_PROVIDERS: (typeof FNodeDirective | typeof FGroupDirective | typeof FResizeHandleDirective | typeof FDragHandleDirective)[];
5
+ export declare const F_NODE_PROVIDERS: (typeof FGroupDirective | typeof FNodeDirective | typeof FDragHandleDirective | typeof FResizeHandleDirective)[];
@@ -7,12 +7,14 @@ import { FConnectorBase } from '../f-connectors';
7
7
  import { FDraggableBase } from '../f-draggable';
8
8
  import { FChannel } from '../reactivity';
9
9
  import { FLineAlignmentBase } from '../f-line-alignment';
10
+ import { IMap } from '../domain';
10
11
  import * as i0 from "@angular/core";
11
12
  export declare class FComponentsStore {
12
13
  readonly transformChanges$: FChannel;
13
14
  readonly dataChanges$: FChannel;
14
15
  readonly countChanges$: FChannel;
15
16
  get flowHost(): HTMLElement;
17
+ fComponents: IMap<any>;
16
18
  fFlow: FFlowBase | undefined;
17
19
  fCanvas: FCanvasBase | undefined;
18
20
  fBackground: FBackgroundBase | undefined;
@@ -4,4 +4,4 @@ import { FComponentsStore } from './f-components-store';
4
4
  import { ListenCountChangesExecution } from './features/listen-count-changes';
5
5
  import { ListenTransformChangesExecution } from './features/listen-transform-changes';
6
6
  import { NotifyTransformChangedExecution } from './features/notify-transform-changed';
7
- export declare const F_STORAGE_PROVIDERS: (typeof FComponentsStore | typeof NotifyDataChangedExecution | typeof ListenCountChangesExecution | typeof ListenDataChangesExecution | typeof ListenTransformChangesExecution | typeof NotifyTransformChangedExecution)[];
7
+ export declare const F_STORAGE_PROVIDERS: (typeof NotifyDataChangedExecution | typeof ListenCountChangesExecution | typeof ListenDataChangesExecution | typeof ListenTransformChangesExecution | typeof NotifyTransformChangedExecution | typeof FComponentsStore)[];
@@ -0,0 +1,4 @@
1
+ export declare enum EFZoomAction {
2
+ WHEEL = "wheel",
3
+ DOUBLE_CLICK = "dbl-click"
4
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum EFZoomDirection {
2
+ ZOOM_IN = 1,
3
+ ZOOM_OUT = -1
4
+ }
@@ -1,25 +1,8 @@
1
- import { IPoint } from '@foblex/2d';
2
1
  import { InjectionToken } from '@angular/core';
3
2
  export declare const F_ZOOM: InjectionToken<FZoomBase>;
4
3
  export declare abstract class FZoomBase {
5
- protected isEnabled: boolean;
6
4
  abstract minimum: number;
7
5
  abstract maximum: number;
8
6
  abstract step: number;
9
7
  abstract dblClickStep: number;
10
- private _listeners;
11
- private _fMediator;
12
- private get _fFlowHostElement();
13
- private get _fCanvas();
14
- private get _isDragStarted();
15
- protected toggleZoom(): void;
16
- private _subscribe;
17
- getScale(): number;
18
- private _onWheel;
19
- private _onDoubleClick;
20
- private _onZoomToCenter;
21
- zoomIn(position?: IPoint): void;
22
- zoomOut(position?: IPoint): void;
23
- reset(): void;
24
- protected dispose(): void;
25
8
  }
@@ -1,15 +1,50 @@
1
- import { AfterViewInit, OnDestroy } from "@angular/core";
1
+ import { AfterViewInit, OnChanges, OnDestroy, OnInit, SimpleChanges } from "@angular/core";
2
2
  import { FZoomBase } from './f-zoom-base';
3
+ import { IFActionTrigger } from '../domain';
4
+ import { IPoint } from '@foblex/2d';
5
+ import { EFZoomDirection } from './e-f-zoom-direction';
6
+ import { EFZoomAction } from './e-f-zoom-action';
3
7
  import * as i0 from "@angular/core";
4
- export declare class FZoomDirective extends FZoomBase implements AfterViewInit, OnDestroy {
5
- get fFlowZoom(): boolean;
6
- set fFlowZoom(isEnabled: boolean | undefined | string);
8
+ export declare class FZoomDirective extends FZoomBase implements OnInit, AfterViewInit, OnChanges, OnDestroy {
9
+ private _fMediator;
10
+ private _rendered;
11
+ private _triggersListener;
12
+ private _isEnabled;
13
+ protected set fZoom(isEnabled: boolean);
14
+ fZoomTriggers: IFActionTrigger<EFZoomAction>[];
7
15
  minimum: number;
8
16
  maximum: number;
9
17
  step: number;
10
18
  dblClickStep: number;
19
+ private get _fHost();
20
+ private get _fCanvas();
21
+ ngOnInit(): void;
11
22
  ngAfterViewInit(): void;
23
+ ngOnChanges(changes: SimpleChanges): void;
24
+ private _listenTriggers;
25
+ private _validateTriggers;
26
+ private _getAction;
27
+ private _onWheel;
28
+ private _calculateDirection;
29
+ private _onDoubleClick;
30
+ private _getToCenterPosition;
31
+ zoomIn(position?: IPoint): void;
32
+ zoomOut(position?: IPoint): void;
33
+ private _onZoomToCenter;
34
+ setZoom(position: IPoint, step: number, direction: EFZoomDirection, animated: boolean): void;
35
+ /**
36
+ * @deprecated Method "getScale" is deprecated. Use "getZoomValue" instead. This method will be removed in version 18.0.0.`,
37
+ */
38
+ getScale(): number;
39
+ getZoomValue(): number;
40
+ reset(): void;
41
+ private _disposeListeners;
12
42
  ngOnDestroy(): void;
13
43
  static ɵfac: i0.ɵɵFactoryDeclaration<FZoomDirective, never>;
14
- static ɵdir: i0.ɵɵDirectiveDeclaration<FZoomDirective, "f-canvas[fZoom]", ["fComponent"], { "fFlowZoom": { "alias": "fZoom"; "required": false; }; "minimum": { "alias": "fZoomMinimum"; "required": false; }; "maximum": { "alias": "fZoomMaximum"; "required": false; }; "step": { "alias": "fZoomStep"; "required": false; }; "dblClickStep": { "alias": "fZoomDblClickStep"; "required": false; }; }, {}, never, never, false, never>;
44
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FZoomDirective, "f-canvas[fZoom]", ["fComponent"], { "fZoom": { "alias": "fZoom"; "required": false; }; "fZoomTriggers": { "alias": "fZoomTriggers"; "required": false; }; "minimum": { "alias": "fZoomMinimum"; "required": false; }; "maximum": { "alias": "fZoomMaximum"; "required": false; }; "step": { "alias": "fZoomStep"; "required": false; }; "dblClickStep": { "alias": "fZoomDblClickStep"; "required": false; }; }, {}, never, never, false, never>;
45
+ static ngAcceptInputType_fZoom: unknown;
46
+ static ngAcceptInputType_minimum: unknown;
47
+ static ngAcceptInputType_maximum: unknown;
48
+ static ngAcceptInputType_step: unknown;
49
+ static ngAcceptInputType_dblClickStep: unknown;
15
50
  }
package/f-zoom/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ export * from './e-f-zoom-action';
2
+ export * from './e-f-zoom-direction';
1
3
  export * from './f-zoom-base';
2
4
  export * from './f-zoom.directive';
3
5
  export * from './providers';