@foblex/flow 17.4.1 → 17.4.3

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 (243) hide show
  1. package/domain/css-cls.d.ts +3 -0
  2. package/domain/f-background/add-background-to-store/add-background-to-store.execution.d.ts +1 -1
  3. package/domain/f-background/add-pattern-to-background/add-pattern-to-background.execution.d.ts +3 -6
  4. package/domain/f-background/remove-background-from-store/remove-background-from-store.execution.d.ts +1 -1
  5. package/domain/f-background/set-background-transform/set-background-transform.execution.d.ts +1 -1
  6. package/domain/f-canvas/input-canvas-position/input-canvas-position.execution.d.ts +1 -1
  7. package/domain/f-canvas/input-canvas-scale/input-canvas-scale.execution.d.ts +1 -1
  8. package/domain/f-canvas/reset-scale-and-center/reset-scale-and-center.execution.d.ts +5 -5
  9. package/domain/f-connection/redraw-connections/redraw-connections.execution.d.ts +2 -2
  10. package/domain/f-connectors/get-connector-and-rect/get-connector-and-rect.execution.d.ts +1 -1
  11. package/domain/f-draggable/providers.d.ts +1 -1
  12. package/domain/f-node/calculate-input-connections/calculate-input-connections-request.d.ts +5 -0
  13. package/domain/f-node/calculate-input-connections/calculate-input-connections.execution.d.ts +12 -0
  14. package/domain/f-node/calculate-input-connections/index.d.ts +2 -0
  15. package/domain/f-node/calculate-output-connections/calculate-output-connections-request.d.ts +5 -0
  16. package/domain/f-node/calculate-output-connections/calculate-output-connections.execution.d.ts +12 -0
  17. package/domain/f-node/calculate-output-connections/index.d.ts +2 -0
  18. package/domain/f-node/index.d.ts +2 -0
  19. package/domain/f-node/providers.d.ts +3 -1
  20. package/domain/f-node/update-node-when-state-or-size-changed/update-node-when-state-or-size-changed.execution.d.ts +1 -1
  21. package/domain/f-selection/providers.d.ts +1 -1
  22. package/domain/get-normalized-element-rect/get-normalized-element-rect.execution.d.ts +5 -3
  23. package/domain/providers.d.ts +1 -2
  24. package/domain/sort-item-layers/sort-item-layers.execution.d.ts +4 -5
  25. package/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.execution.d.ts +6 -9
  26. package/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.execution.d.ts +12 -14
  27. package/domain/update-item-and-children-layers/update-item-and-children-layers.execution.d.ts +15 -16
  28. package/esm2022/domain/css-cls.mjs +4 -1
  29. package/esm2022/domain/f-background/add-background-to-store/add-background-to-store.execution.mjs +1 -1
  30. package/esm2022/domain/f-background/add-pattern-to-background/add-pattern-to-background.execution.mjs +15 -19
  31. package/esm2022/domain/f-background/remove-background-from-store/remove-background-from-store.execution.mjs +1 -1
  32. package/esm2022/domain/f-background/set-background-transform/set-background-transform.execution.mjs +1 -1
  33. package/esm2022/domain/f-canvas/input-canvas-position/input-canvas-position.execution.mjs +2 -1
  34. package/esm2022/domain/f-canvas/input-canvas-scale/input-canvas-scale.execution.mjs +2 -2
  35. package/esm2022/domain/f-canvas/reset-scale-and-center/reset-scale-and-center.execution.mjs +12 -12
  36. package/esm2022/domain/f-connection/calculate-connection-line-by-behavior/floating-behavior.mjs +1 -1
  37. package/esm2022/domain/f-connection/redraw-connections/redraw-connections.execution.mjs +2 -2
  38. package/esm2022/domain/f-connectors/get-connector-and-rect/get-connector-and-rect.execution.mjs +1 -1
  39. package/esm2022/domain/f-node/calculate-input-connections/calculate-input-connections-request.mjs +7 -0
  40. package/esm2022/domain/f-node/calculate-input-connections/calculate-input-connections.execution.mjs +31 -0
  41. package/esm2022/domain/f-node/calculate-input-connections/index.mjs +3 -0
  42. package/esm2022/domain/f-node/calculate-output-connections/calculate-output-connections-request.mjs +7 -0
  43. package/esm2022/domain/f-node/calculate-output-connections/calculate-output-connections.execution.mjs +31 -0
  44. package/esm2022/domain/f-node/calculate-output-connections/index.mjs +3 -0
  45. package/esm2022/domain/f-node/index.mjs +3 -1
  46. package/esm2022/domain/f-node/providers.mjs +5 -1
  47. package/esm2022/domain/f-node/update-node-when-state-or-size-changed/update-node-when-state-or-size-changed.execution.mjs +1 -1
  48. package/esm2022/domain/get-normalized-element-rect/get-normalized-element-rect.execution.mjs +12 -4
  49. package/esm2022/domain/sort-item-layers/sort-item-layers.execution.mjs +14 -16
  50. package/esm2022/domain/sort-item-layers/sort-items-by-parent/sort-items-by-parent.execution.mjs +21 -27
  51. package/esm2022/domain/sort-item-layers/sort-node-layers-by-groups/sort-node-layers.execution.mjs +32 -34
  52. package/esm2022/domain/update-item-and-children-layers/update-item-and-children-layers.execution.mjs +46 -48
  53. package/esm2022/f-backgroud/f-background.component.mjs +9 -12
  54. package/esm2022/f-backgroud/f-circle-pattern/f-circle-pattern.component.mjs +15 -21
  55. package/esm2022/f-backgroud/f-rect-pattern/f-rect-pattern.component.mjs +18 -28
  56. package/esm2022/f-canvas/f-canvas-base.mjs +1 -1
  57. package/esm2022/f-canvas/f-canvas.component.mjs +29 -35
  58. package/esm2022/f-canvas/providers.mjs +1 -1
  59. package/esm2022/f-connection/common/f-connection-base.mjs +5 -5
  60. package/esm2022/f-connection/common/f-drag-handle/f-connection-drag-handle-end.component.mjs +37 -0
  61. package/esm2022/f-connection/common/f-drag-handle/f-connection-drag-handle-start.component.mjs +37 -0
  62. package/esm2022/f-connection/common/f-drag-handle/index.mjs +3 -2
  63. package/esm2022/f-connection/f-connection/f-connection.component.mjs +6 -6
  64. package/esm2022/f-connection/f-connection-for-create/f-connection-for-create.component.mjs +6 -6
  65. package/esm2022/f-connection/f-snap-connection/f-snap-connection.component.mjs +6 -6
  66. package/esm2022/f-connection/providers.mjs +4 -3
  67. package/esm2022/f-draggable/f-canvas/f-canvas.drag-handler.mjs +5 -3
  68. package/esm2022/f-draggable/f-canvas/move-preparation/f-canvas-move-preparation.execution.mjs +4 -3
  69. package/esm2022/f-draggable/f-connection/f-create-connection/create-finalize/f-create-connection-finalize.execution.mjs +2 -3
  70. package/esm2022/f-draggable/f-connection/f-create-connection/create-preparation/drag-handler-preparation/f-create-connection-drag-handler-preparation.execution.mjs +4 -3
  71. package/esm2022/f-draggable/f-connection/f-create-connection/f-create-connection.drag-handler.mjs +10 -8
  72. package/esm2022/f-draggable/f-connection/f-create-connection/get-first-connectable-output/get-first-connectable-output.execution.mjs +1 -1
  73. package/esm2022/f-draggable/f-connection/f-reassign-connection/f-reassign-connection.drag-handler.mjs +10 -8
  74. package/esm2022/f-draggable/f-connection/f-reassign-connection/reassign-preparation/f-reassign-connection-preparation.execution.mjs +6 -5
  75. package/esm2022/f-draggable/f-draggable.directive.mjs +9 -9
  76. package/esm2022/f-draggable/f-drop-to-group/drop-to-group-preparation/f-node-drop-to-group-preparation.execution.mjs +4 -3
  77. package/esm2022/f-draggable/f-drop-to-group/f-node-drop-to-group.drag-handler.mjs +7 -6
  78. package/esm2022/f-draggable/f-node-move/connection-drag-handlers/base-connection.drag-handler.mjs +9 -8
  79. package/esm2022/f-draggable/f-node-move/connection-drag-handlers/source-connection.drag-handler.mjs +3 -3
  80. package/esm2022/f-draggable/f-node-move/connection-drag-handlers/source-target-connection.drag-handler.mjs +3 -3
  81. package/esm2022/f-draggable/f-node-move/connection-drag-handlers/target-connection.drag-handler.mjs +3 -3
  82. package/esm2022/f-draggable/f-node-move/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.mjs +4 -3
  83. package/esm2022/f-draggable/f-node-move/create-move-nodes-drag-model-from-selection/domain/put-input-connection-handlers-to-array/put-input-connection-handlers-to-array.execution.mjs +5 -4
  84. package/esm2022/f-draggable/f-node-move/create-move-nodes-drag-model-from-selection/domain/put-output-connection-handlers-to-array/put-output-connection-handlers-to-array.execution.mjs +5 -4
  85. package/esm2022/f-draggable/f-node-move/f-line-alignment.drag-handler.mjs +5 -5
  86. package/esm2022/f-draggable/f-node-move/f-node-move.drag-handler.mjs +1 -1
  87. package/esm2022/f-draggable/f-node-move/f-summary-node-move.drag-handler.mjs +5 -5
  88. package/esm2022/f-draggable/f-node-move/line-alignment-preparation/line-alignment-preparation.execution.mjs +4 -3
  89. package/esm2022/f-draggable/f-node-move/point-bounds-limiter.mjs +8 -6
  90. package/esm2022/f-draggable/f-node-resize/apply-child-resize-restrictions/apply-child-resize-restrictions.execution.mjs +2 -2
  91. package/esm2022/f-draggable/f-node-resize/apply-child-resize-restrictions/apply-child-resize-restrictions.request.mjs +4 -4
  92. package/esm2022/f-draggable/f-node-resize/calculate-changed-position/calculate-changed-position.execution.mjs +1 -1
  93. package/esm2022/f-draggable/f-node-resize/calculate-changed-size/calculate-changed-size.execution.mjs +1 -1
  94. package/esm2022/f-draggable/f-node-resize/calculate-changed-size/calculate-changed-size.request.mjs +1 -1
  95. package/esm2022/f-draggable/f-node-resize/f-node-resize.drag-handler.mjs +10 -9
  96. package/esm2022/f-draggable/f-node-resize/resize-preparation/f-node-resize-preparation.execution.mjs +4 -3
  97. package/esm2022/f-draggable/f-node-rotate/calculate-difference-after-rotation.mjs +19 -0
  98. package/esm2022/f-draggable/f-node-rotate/f-node-rotate.drag-handler.mjs +71 -0
  99. package/esm2022/f-draggable/f-node-rotate/index.mjs +5 -0
  100. package/esm2022/f-draggable/f-node-rotate/providers.mjs +7 -0
  101. package/esm2022/f-draggable/f-node-rotate/rotate-finalize/f-node-rotate-finalize.execution.mjs +31 -0
  102. package/esm2022/f-draggable/f-node-rotate/rotate-finalize/f-node-rotate-finalize.request.mjs +7 -0
  103. package/esm2022/f-draggable/f-node-rotate/rotate-finalize/index.mjs +3 -0
  104. package/esm2022/f-draggable/f-node-rotate/rotate-preparation/f-node-rotate-preparation.execution.mjs +87 -0
  105. package/esm2022/f-draggable/f-node-rotate/rotate-preparation/f-node-rotate-preparation.request.mjs +9 -0
  106. package/esm2022/f-draggable/f-node-rotate/rotate-preparation/index.mjs +3 -0
  107. package/esm2022/f-draggable/index.mjs +2 -2
  108. package/esm2022/f-draggable/providers.mjs +3 -1
  109. package/esm2022/f-external-item/domain/create-placeholder/f-external-item-create-placeholder.execution.mjs +1 -1
  110. package/esm2022/f-external-item/domain/create-preview/f-external-item-create-preview.execution.mjs +1 -1
  111. package/esm2022/f-external-item/domain/f-external-item.drag-handler.mjs +9 -6
  112. package/esm2022/f-external-item/domain/finalize/f-external-item-finalize.execution.mjs +1 -1
  113. package/esm2022/f-external-item/domain/preparation/f-external-item-preparation.execution.mjs +4 -3
  114. package/esm2022/f-external-item/f-external-item-placeholder.directive.mjs +1 -1
  115. package/esm2022/f-external-item/f-external-item-preview.directive.mjs +1 -1
  116. package/esm2022/f-external-item/f-external-item.directive.mjs +1 -1
  117. package/esm2022/f-external-item/index.mjs +2 -1
  118. package/esm2022/f-external-item/providers.mjs +5 -0
  119. package/esm2022/f-flow/f-flow-base.mjs +1 -1
  120. package/esm2022/f-flow/f-flow.component.mjs +12 -21
  121. package/esm2022/f-flow.module.mjs +48 -38
  122. package/esm2022/f-line-alignment/f-line-alignment-base.mjs +1 -1
  123. package/esm2022/f-line-alignment/f-line-alignment.component.mjs +5 -7
  124. package/esm2022/f-node/f-drag-handle.directive.mjs +3 -9
  125. package/esm2022/f-node/f-group.directive.mjs +19 -2
  126. package/esm2022/f-node/f-node-base.mjs +6 -2
  127. package/esm2022/f-node/f-node.directive.mjs +19 -2
  128. package/esm2022/f-node/f-resize-handle/f-resize-handle.directive.mjs +13 -24
  129. package/esm2022/f-node/f-rotate-handle/f-rotate-handle.directive.mjs +14 -26
  130. package/esm2022/f-node/f-rotate-handle/index.mjs +2 -1
  131. package/esm2022/f-node/f-rotate-handle/is-rotate-handle.mjs +5 -0
  132. package/esm2022/f-node/providers.mjs +3 -1
  133. package/esm2022/f-zoom/index.mjs +2 -1
  134. package/esm2022/f-zoom/providers.mjs +5 -0
  135. package/esm2022/reactivity/index.mjs +2 -1
  136. package/esm2022/reactivity/mediator-effect.mjs +14 -0
  137. package/f-backgroud/f-background.component.d.ts +4 -5
  138. package/f-backgroud/f-circle-pattern/f-circle-pattern.component.d.ts +9 -10
  139. package/f-backgroud/f-rect-pattern/f-rect-pattern.component.d.ts +11 -12
  140. package/f-backgroud/providers.d.ts +1 -1
  141. package/f-canvas/f-canvas-base.d.ts +5 -5
  142. package/f-canvas/f-canvas.component.d.ts +13 -10
  143. package/f-connection/common/f-connection-base.d.ts +4 -4
  144. package/f-connection/common/f-drag-handle/f-connection-drag-handle-end.component.d.ts +13 -0
  145. package/f-connection/common/f-drag-handle/f-connection-drag-handle-start.component.d.ts +13 -0
  146. package/f-connection/common/f-drag-handle/index.d.ts +2 -1
  147. package/f-connection/f-connection/f-connection.component.d.ts +2 -2
  148. package/f-connection/f-connection-for-create/f-connection-for-create.component.d.ts +2 -2
  149. package/f-connection/f-snap-connection/f-snap-connection.component.d.ts +2 -2
  150. package/f-connection/providers.d.ts +2 -2
  151. package/f-draggable/f-canvas/f-canvas.drag-handler.d.ts +3 -1
  152. package/f-draggable/f-canvas/move-preparation/f-canvas-move-preparation.execution.d.ts +3 -2
  153. package/f-draggable/f-canvas/providers.d.ts +1 -1
  154. package/f-draggable/f-connection/f-create-connection/create-preparation/drag-handler-preparation/f-create-connection-drag-handler-preparation.execution.d.ts +3 -2
  155. package/f-draggable/f-connection/f-create-connection/f-create-connection.drag-handler.d.ts +5 -4
  156. package/f-draggable/f-connection/f-create-connection/get-first-connectable-output/get-first-connectable-output.execution.d.ts +1 -1
  157. package/f-draggable/f-connection/f-reassign-connection/f-reassign-connection.drag-handler.d.ts +5 -4
  158. package/f-draggable/f-connection/f-reassign-connection/reassign-preparation/f-reassign-connection-preparation.execution.d.ts +4 -3
  159. package/f-draggable/f-connection/providers.d.ts +1 -1
  160. package/f-draggable/f-draggable.directive.d.ts +2 -2
  161. package/f-draggable/f-drop-to-group/drop-to-group-preparation/f-node-drop-to-group-preparation.execution.d.ts +4 -3
  162. package/f-draggable/f-drop-to-group/f-node-drop-to-group.drag-handler.d.ts +4 -3
  163. package/f-draggable/f-drop-to-group/providers.d.ts +1 -1
  164. package/f-draggable/f-node-move/connection-drag-handlers/base-connection.drag-handler.d.ts +4 -3
  165. package/f-draggable/f-node-move/connection-drag-handlers/source-connection.drag-handler.d.ts +2 -1
  166. package/f-draggable/f-node-move/connection-drag-handlers/source-target-connection.drag-handler.d.ts +3 -2
  167. package/f-draggable/f-node-move/connection-drag-handlers/target-connection.drag-handler.d.ts +2 -1
  168. package/f-draggable/f-node-move/create-move-nodes-drag-model-from-selection/create-move-nodes-drag-model-from-selection.execution.d.ts +4 -3
  169. package/f-draggable/f-node-move/create-move-nodes-drag-model-from-selection/domain/put-input-connection-handlers-to-array/put-input-connection-handlers-to-array.execution.d.ts +2 -1
  170. package/f-draggable/f-node-move/create-move-nodes-drag-model-from-selection/domain/put-output-connection-handlers-to-array/put-output-connection-handlers-to-array.execution.d.ts +2 -1
  171. package/f-draggable/f-node-move/create-move-nodes-drag-model-from-selection/providers.d.ts +1 -1
  172. package/f-draggable/f-node-move/f-line-alignment.drag-handler.d.ts +4 -3
  173. package/f-draggable/f-node-move/f-node-move.drag-handler.d.ts +1 -1
  174. package/f-draggable/f-node-move/f-summary-node-move.drag-handler.d.ts +5 -4
  175. package/f-draggable/f-node-move/line-alignment-preparation/line-alignment-preparation.execution.d.ts +5 -4
  176. package/f-draggable/f-node-move/point-bounds-limiter.d.ts +5 -4
  177. package/f-draggable/f-node-move/providers.d.ts +1 -1
  178. package/f-draggable/f-node-resize/apply-child-resize-restrictions/apply-child-resize-restrictions.request.d.ts +3 -2
  179. package/f-draggable/f-node-resize/f-node-resize.drag-handler.d.ts +5 -4
  180. package/f-draggable/f-node-resize/providers.d.ts +1 -1
  181. package/f-draggable/f-node-resize/resize-preparation/f-node-resize-preparation.execution.d.ts +4 -3
  182. package/f-draggable/f-node-rotate/calculate-difference-after-rotation.d.ts +20 -0
  183. package/f-draggable/f-node-rotate/f-node-rotate.drag-handler.d.ts +35 -0
  184. package/f-draggable/f-node-rotate/index.d.ts +4 -0
  185. package/f-draggable/f-node-rotate/providers.d.ts +3 -0
  186. package/f-draggable/f-node-rotate/rotate-finalize/f-node-rotate-finalize.execution.d.ts +10 -0
  187. package/f-draggable/f-node-rotate/rotate-finalize/f-node-rotate-finalize.request.d.ts +5 -0
  188. package/f-draggable/f-node-rotate/rotate-finalize/index.d.ts +2 -0
  189. package/f-draggable/f-node-rotate/rotate-preparation/f-node-rotate-preparation.execution.d.ts +23 -0
  190. package/f-draggable/f-node-rotate/rotate-preparation/f-node-rotate-preparation.request.d.ts +7 -0
  191. package/f-draggable/f-node-rotate/rotate-preparation/index.d.ts +2 -0
  192. package/f-draggable/index.d.ts +1 -1
  193. package/f-draggable/providers.d.ts +1 -1
  194. package/f-external-item/domain/create-placeholder/f-external-item-create-placeholder.execution.d.ts +2 -2
  195. package/f-external-item/domain/create-preview/f-external-item-create-preview.execution.d.ts +2 -2
  196. package/f-external-item/domain/f-external-item.drag-handler.d.ts +5 -4
  197. package/f-external-item/domain/finalize/f-external-item-finalize.execution.d.ts +5 -5
  198. package/f-external-item/domain/preparation/f-external-item-preparation.execution.d.ts +4 -3
  199. package/f-external-item/domain/providers.d.ts +1 -1
  200. package/f-external-item/f-external-item-placeholder.directive.d.ts +2 -2
  201. package/f-external-item/f-external-item-preview.directive.d.ts +2 -2
  202. package/f-external-item/f-external-item.directive.d.ts +2 -2
  203. package/f-external-item/index.d.ts +1 -0
  204. package/f-external-item/providers.d.ts +2 -0
  205. package/f-flow/f-flow-base.d.ts +3 -3
  206. package/f-flow/f-flow.component.d.ts +8 -10
  207. package/f-flow.module.d.ts +36 -32
  208. package/f-line-alignment/f-line-alignment-base.d.ts +2 -2
  209. package/f-line-alignment/f-line-alignment.component.d.ts +4 -4
  210. package/f-minimap/domain/providers.d.ts +1 -1
  211. package/f-minimap/providers.d.ts +1 -1
  212. package/f-node/f-drag-handle.directive.d.ts +1 -6
  213. package/f-node/f-group.directive.d.ts +6 -3
  214. package/f-node/f-node-base.d.ts +4 -0
  215. package/f-node/f-node.directive.d.ts +6 -3
  216. package/f-node/f-resize-handle/f-resize-handle.directive.d.ts +4 -10
  217. package/f-node/f-rotate-handle/f-rotate-handle.directive.d.ts +4 -8
  218. package/f-node/f-rotate-handle/index.d.ts +1 -0
  219. package/f-node/f-rotate-handle/is-rotate-handle.d.ts +1 -0
  220. package/f-node/providers.d.ts +1 -2
  221. package/f-selection-area/domain/providers.d.ts +1 -1
  222. package/f-storage/providers.d.ts +1 -1
  223. package/f-zoom/index.d.ts +1 -0
  224. package/f-zoom/providers.d.ts +2 -0
  225. package/fesm2022/foblex-flow.mjs +755 -476
  226. package/fesm2022/foblex-flow.mjs.map +1 -1
  227. package/package.json +2 -2
  228. package/reactivity/index.d.ts +1 -0
  229. package/reactivity/mediator-effect.d.ts +2 -0
  230. package/errors/conflict-error.d.ts +0 -6
  231. package/errors/create-error-class.d.ts +0 -1
  232. package/errors/errors.d.ts +0 -3
  233. package/errors/index.d.ts +0 -4
  234. package/errors/not-found-error.d.ts +0 -6
  235. package/esm2022/errors/conflict-error.mjs +0 -7
  236. package/esm2022/errors/create-error-class.mjs +0 -10
  237. package/esm2022/errors/errors.mjs +0 -12
  238. package/esm2022/errors/index.mjs +0 -5
  239. package/esm2022/errors/not-found-error.mjs +0 -7
  240. package/esm2022/f-connection/common/f-drag-handle/f-connection-drag-handle.component.mjs +0 -41
  241. package/esm2022/f-draggable/f-injector.mjs +0 -19
  242. package/f-connection/common/f-drag-handle/f-connection-drag-handle.component.d.ts +0 -17
  243. package/f-draggable/f-injector.d.ts +0 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foblex/flow",
3
- "version": "17.4.1",
3
+ "version": "17.4.3",
4
4
  "description": "An Angular library designed to simplify the creation and manipulation of dynamic flow. Provides components for flows, nodes, and connections, automating node manipulation and inter-node connections.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -33,7 +33,7 @@
33
33
  "@angular/core": ">=15.0.0",
34
34
  "@foblex/platform": "1.0.4",
35
35
  "@foblex/mediator": "1.1.2",
36
- "@foblex/2d": "1.1.9",
36
+ "@foblex/2d": "1.2.1",
37
37
  "@foblex/drag-toolkit": "1.1.0",
38
38
  "@foblex/utils": "1.1.1"
39
39
  },
@@ -3,4 +3,5 @@ export * from './f-channel';
3
3
  export * from './f-resize-channel';
4
4
  export * from './types';
5
5
  export * from './f-channel-hub';
6
+ export * from './mediator-effect';
6
7
  export * from './notify-on-start';
@@ -0,0 +1,2 @@
1
+ import { CreateEffectOptions } from '@angular/core';
2
+ export declare function mediatorEffect(fn: () => any, options?: CreateEffectOptions): import("@angular/core").EffectRef;
@@ -1,6 +0,0 @@
1
- export interface ConflictError extends Error {
2
- }
3
- export interface ConflictErrorCtor {
4
- new (message?: string): ConflictError;
5
- }
6
- export declare const ConflictError: ConflictErrorCtor;
@@ -1 +0,0 @@
1
- export declare function createErrorClass<T>(impl: (_super: any) => any): T;
@@ -1,3 +0,0 @@
1
- export declare function OutputNotFound(id: string): Error;
2
- export declare function InputNotFound(id: string): Error;
3
- export declare function RequiredOutput(): Error;
package/errors/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export * from './errors';
2
- export * from './create-error-class';
3
- export * from './not-found-error';
4
- export * from './conflict-error';
@@ -1,6 +0,0 @@
1
- export interface NotFoundError extends Error {
2
- }
3
- export interface NotFoundCtor {
4
- new (message?: string): NotFoundError;
5
- }
6
- export declare const NotFoundError: NotFoundCtor;
@@ -1,7 +0,0 @@
1
- import { createErrorClass } from './create-error-class';
2
- export const ConflictError = createErrorClass((_super) => function error(message) {
3
- _super(this);
4
- this.message = message || 'Conflict error occurred.';
5
- this.code = 409;
6
- });
7
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmxpY3QtZXJyb3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2Vycm9ycy9jb25mbGljdC1lcnJvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQVV4RCxNQUFNLENBQUMsTUFBTSxhQUFhLEdBQXNCLGdCQUFnQixDQUM1RCxDQUFDLE1BQU0sRUFBRSxFQUFFLENBQ1AsU0FBUyxLQUFLLENBQVksT0FBZTtJQUN2QyxNQUFNLENBQUMsSUFBSSxDQUFDLENBQUM7SUFDYixJQUFJLENBQUMsT0FBTyxHQUFHLE9BQU8sSUFBSSwwQkFBMEIsQ0FBQztJQUNyRCxJQUFJLENBQUMsSUFBSSxHQUFHLEdBQUcsQ0FBQztBQUNsQixDQUFDLENBQ1IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNyZWF0ZUVycm9yQ2xhc3MgfSBmcm9tICcuL2NyZWF0ZS1lcnJvci1jbGFzcyc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgQ29uZmxpY3RFcnJvciBleHRlbmRzIEVycm9yIHtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBDb25mbGljdEVycm9yQ3RvciB7XG5cbiAgbmV3KG1lc3NhZ2U/OiBzdHJpbmcpOiBDb25mbGljdEVycm9yO1xufVxuXG5leHBvcnQgY29uc3QgQ29uZmxpY3RFcnJvcjogQ29uZmxpY3RFcnJvckN0b3IgPSBjcmVhdGVFcnJvckNsYXNzKFxuICAgIChfc3VwZXIpID0+XG4gICAgICAgIGZ1bmN0aW9uIGVycm9yKHRoaXM6IGFueSwgbWVzc2FnZTogc3RyaW5nKSB7XG4gICAgICAgICAgX3N1cGVyKHRoaXMpO1xuICAgICAgICAgIHRoaXMubWVzc2FnZSA9IG1lc3NhZ2UgfHwgJ0NvbmZsaWN0IGVycm9yIG9jY3VycmVkLic7XG4gICAgICAgICAgdGhpcy5jb2RlID0gNDA5O1xuICAgICAgICB9XG4pO1xuIl19
@@ -1,10 +0,0 @@
1
- export function createErrorClass(impl) {
2
- const _super = (instance) => {
3
- Error.call(instance);
4
- };
5
- const constructor = impl(_super);
6
- constructor.prototype = Object.create(Error.prototype);
7
- constructor.prototype.constructor = constructor;
8
- return constructor;
9
- }
10
- //# sourceMappingURL=data:application/json;base64,ey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jdG9yO1xuICByZXR1cm4gY29uc3RydWN0b3I7XG59XG4iXX0=
@@ -1,12 +0,0 @@
1
- import { NotFoundError } from './not-found-error';
2
- import { ConflictError } from './conflict-error';
3
- export function OutputNotFound(id) {
4
- return new NotFoundError(`Output with fOutputId ${id} not found. Make sure there is no f-connection to a non-existent fOutput.`);
5
- }
6
- export function InputNotFound(id) {
7
- return new NotFoundError(`Input with fInputId ${id} not found. Make sure there is no f-connection to a non-existent fInput.`);
8
- }
9
- export function RequiredOutput() {
10
- return new ConflictError(`The fNode must contain at least one fOutput if there is an fOutlet`);
11
- }
12
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3JzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9lcnJvcnMvZXJyb3JzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUNsRCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFFakQsTUFBTSxVQUFVLGNBQWMsQ0FBQyxFQUFVO0lBQ3ZDLE9BQU8sSUFBSSxhQUFhLENBQUMseUJBQTBCLEVBQUcsMkVBQTJFLENBQUMsQ0FBQztBQUNySSxDQUFDO0FBRUQsTUFBTSxVQUFVLGFBQWEsQ0FBQyxFQUFVO0lBQ3RDLE9BQU8sSUFBSSxhQUFhLENBQUMsdUJBQXdCLEVBQUcsMEVBQTBFLENBQUMsQ0FBQztBQUNsSSxDQUFDO0FBRUQsTUFBTSxVQUFVLGNBQWM7SUFDNUIsT0FBTyxJQUFJLGFBQWEsQ0FBQyxvRUFBb0UsQ0FBQyxDQUFDO0FBQ2pHLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOb3RGb3VuZEVycm9yIH0gZnJvbSAnLi9ub3QtZm91bmQtZXJyb3InO1xuaW1wb3J0IHsgQ29uZmxpY3RFcnJvciB9IGZyb20gJy4vY29uZmxpY3QtZXJyb3InO1xuXG5leHBvcnQgZnVuY3Rpb24gT3V0cHV0Tm90Rm91bmQoaWQ6IHN0cmluZyk6IEVycm9yIHtcbiAgcmV0dXJuIG5ldyBOb3RGb3VuZEVycm9yKGBPdXRwdXQgd2l0aCBmT3V0cHV0SWQgJHsgaWQgfSBub3QgZm91bmQuIE1ha2Ugc3VyZSB0aGVyZSBpcyBubyBmLWNvbm5lY3Rpb24gdG8gYSBub24tZXhpc3RlbnQgZk91dHB1dC5gKTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIElucHV0Tm90Rm91bmQoaWQ6IHN0cmluZyk6IEVycm9yIHtcbiAgcmV0dXJuIG5ldyBOb3RGb3VuZEVycm9yKGBJbnB1dCB3aXRoIGZJbnB1dElkICR7IGlkIH0gbm90IGZvdW5kLiBNYWtlIHN1cmUgdGhlcmUgaXMgbm8gZi1jb25uZWN0aW9uIHRvIGEgbm9uLWV4aXN0ZW50IGZJbnB1dC5gKTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIFJlcXVpcmVkT3V0cHV0KCk6IEVycm9yIHtcbiAgcmV0dXJuIG5ldyBDb25mbGljdEVycm9yKGBUaGUgZk5vZGUgbXVzdCBjb250YWluIGF0IGxlYXN0IG9uZSBmT3V0cHV0IGlmIHRoZXJlIGlzIGFuIGZPdXRsZXRgKTtcbn1cbiJdfQ==
@@ -1,5 +0,0 @@
1
- export * from './errors';
2
- export * from './create-error-class';
3
- export * from './not-found-error';
4
- export * from './conflict-error';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9mLWZsb3cvc3JjL2Vycm9ycy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLFVBQVUsQ0FBQztBQUV6QixjQUFjLHNCQUFzQixDQUFDO0FBRXJDLGNBQWMsbUJBQW1CLENBQUM7QUFFbEMsY0FBYyxrQkFBa0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZXJyb3JzJztcblxuZXhwb3J0ICogZnJvbSAnLi9jcmVhdGUtZXJyb3ItY2xhc3MnO1xuXG5leHBvcnQgKiBmcm9tICcuL25vdC1mb3VuZC1lcnJvcic7XG5cbmV4cG9ydCAqIGZyb20gJy4vY29uZmxpY3QtZXJyb3InO1xuIl19
@@ -1,7 +0,0 @@
1
- import { createErrorClass } from './create-error-class';
2
- export const NotFoundError = createErrorClass((_super) => function error(message) {
3
- _super(this);
4
- this.message = message || 'The requested resource was not found.';
5
- this.code = 404;
6
- });
7
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90LWZvdW5kLWVycm9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvZi1mbG93L3NyYy9lcnJvcnMvbm90LWZvdW5kLWVycm9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBVXhELE1BQU0sQ0FBQyxNQUFNLGFBQWEsR0FBaUIsZ0JBQWdCLENBQ3ZELENBQUMsTUFBTSxFQUFFLEVBQUUsQ0FDUCxTQUFTLEtBQUssQ0FBWSxPQUFlO0lBQ3ZDLE1BQU0sQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUNiLElBQUksQ0FBQyxPQUFPLEdBQUcsT0FBTyxJQUFJLHVDQUF1QyxDQUFDO0lBQ2xFLElBQUksQ0FBQyxJQUFJLEdBQUcsR0FBRyxDQUFDO0FBQ2xCLENBQUMsQ0FDUixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3JlYXRlRXJyb3JDbGFzcyB9IGZyb20gJy4vY3JlYXRlLWVycm9yLWNsYXNzJztcblxuZXhwb3J0IGludGVyZmFjZSBOb3RGb3VuZEVycm9yIGV4dGVuZHMgRXJyb3Ige1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIE5vdEZvdW5kQ3RvciB7XG5cbiAgbmV3KG1lc3NhZ2U/OiBzdHJpbmcpOiBOb3RGb3VuZEVycm9yO1xufVxuXG5leHBvcnQgY29uc3QgTm90Rm91bmRFcnJvcjogTm90Rm91bmRDdG9yID0gY3JlYXRlRXJyb3JDbGFzcyhcbiAgICAoX3N1cGVyKSA9PlxuICAgICAgICBmdW5jdGlvbiBlcnJvcih0aGlzOiBhbnksIG1lc3NhZ2U6IHN0cmluZykge1xuICAgICAgICAgIF9zdXBlcih0aGlzKTtcbiAgICAgICAgICB0aGlzLm1lc3NhZ2UgPSBtZXNzYWdlIHx8ICdUaGUgcmVxdWVzdGVkIHJlc291cmNlIHdhcyBub3QgZm91bmQuJztcbiAgICAgICAgICB0aGlzLmNvZGUgPSA0MDQ7XG4gICAgICAgIH1cbik7XG4iXX0=
@@ -1,41 +0,0 @@
1
- import { ChangeDetectionStrategy, Component } from "@angular/core";
2
- import * as i0 from "@angular/core";
3
- export const F_CONNECTION_DRAG_HANDLE_CLASS = 'f-connection-drag-handle';
4
- export class FConnectionDragHandleComponent {
5
- elementReference;
6
- point;
7
- radius = 8;
8
- class = F_CONNECTION_DRAG_HANDLE_CLASS;
9
- get hostElement() {
10
- return this.elementReference.nativeElement;
11
- }
12
- constructor(elementReference) {
13
- this.elementReference = elementReference;
14
- }
15
- redraw(penultimatePoint, endPoint) {
16
- this.point = this._calculateCircleCenter(penultimatePoint, endPoint, 8);
17
- this.hostElement.setAttribute('cx', this.point.x.toString());
18
- this.hostElement.setAttribute('cy', this.point.y.toString());
19
- }
20
- _calculateCircleCenter(start, end, radius) {
21
- const direction = { x: end.x - start.x, y: end.y - start.y };
22
- const length = Math.sqrt(direction.x * direction.x + direction.y * direction.y) || 1;
23
- const unitDirection = { x: direction.x / length, y: direction.y / length };
24
- const scaledDirection = { x: unitDirection.x * radius, y: unitDirection.y * radius };
25
- return { x: end.x - scaledDirection.x, y: end.y - scaledDirection.y };
26
- }
27
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: FConnectionDragHandleComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
28
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.4", type: FConnectionDragHandleComponent, selector: "circle[f-connection-drag-handle]", host: { properties: { "class": "class" } }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
29
- }
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.4", ngImport: i0, type: FConnectionDragHandleComponent, decorators: [{
31
- type: Component,
32
- args: [{
33
- selector: "circle[f-connection-drag-handle]",
34
- template: '',
35
- changeDetection: ChangeDetectionStrategy.OnPush,
36
- host: {
37
- '[class]': 'class'
38
- }
39
- }]
40
- }], ctorParameters: () => [{ type: i0.ElementRef }] });
41
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1jb25uZWN0aW9uLWRyYWctaGFuZGxlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZi1jb25uZWN0aW9uL2NvbW1vbi9mLWRyYWctaGFuZGxlL2YtY29ubmVjdGlvbi1kcmFnLWhhbmRsZS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixTQUFTLEVBQ1Ys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50OiBJUG9pbnQsIGVuZFBvaW50OiBJUG9pbnQpOiB2b2lkIHtcbiAgICB0aGlzLnBvaW50ID0gdGhpcy5fY2FsY3VsYXRlQ2lyY2xlQ2VudGVyKHBlbnVsdGltYXRlUG9pbnQsIGVuZFBvaW50LCA4KTtcbiAgICB0aGlzLmhvc3RFbGVtZW50LnNldEF0dHJpYnV0ZSgnY3gnLCB0aGlzLnBvaW50LngudG9TdHJpbmcoKSk7XG4gICAgdGhpcy5ob3N0RWxlbWVudC5zZXRBdHRyaWJ1dGUoJ2N5JywgdGhpcy5wb2ludC55LnRvU3RyaW5nKCkpO1xuICB9XG5cbiAgcHJpdmF0ZSBfY2FsY3VsYXRlQ2lyY2xlQ2VudGVyKHN0YXJ0OiBJUG9pbnQsIGVuZDogSVBvaW50LCByYWRpdXM6IG51bWJlcik6IElQb2ludCB7XG4gICAgY29uc3QgZGlyZWN0aW9uID0geyB4OiBlbmQueCAtIHN0YXJ0LngsIHk6IGVuZC55IC0gc3RhcnQueSB9O1xuICAgIGNvbnN0IGxlbmd0aCA9IE1hdGguc3FydChkaXJlY3Rpb24ueCAqIGRpcmVjdGlvbi54ICsgZGlyZWN0aW9uLnkgKiBkaXJlY3Rpb24ueSkgfHwgMTtcbiAgICBjb25zdCB1bml0RGlyZWN0aW9uID0geyB4OiBkaXJlY3Rpb24ueCAvIGxlbmd0aCwgeTogZGlyZWN0aW9uLnkgLyBsZW5ndGggfTtcbiAgICBjb25zdCBzY2FsZWREaXJlY3Rpb24gPSB7IHg6IHVuaXREaXJlY3Rpb24ueCAqIHJhZGl1cywgeTogdW5pdERpcmVjdGlvbi55ICogcmFkaXVzIH07XG4gICAgcmV0dXJuIHsgeDogZW5kLnggLSBzY2FsZWREaXJlY3Rpb24ueCwgeTogZW5kLnkgLSBzY2FsZWREaXJlY3Rpb24ueSB9O1xuICB9XG59XG5cbiJdfQ==
@@ -1,19 +0,0 @@
1
- export class FInjector {
2
- static _injector;
3
- static set(injector) {
4
- this._injector = injector;
5
- }
6
- static clear() {
7
- this._injector = undefined;
8
- }
9
- static get() {
10
- if (!this._injector) {
11
- throw new Error('No injector available');
12
- }
13
- return this._injector;
14
- }
15
- }
16
- export function fInject(token) {
17
- return FInjector.get().get(token);
18
- }
19
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZi1pbmplY3Rvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2YtZmxvdy9zcmMvZi1kcmFnZ2FibGUvZi1pbmplY3Rvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxNQUFNLE9BQU8sU0FBUztJQUVaLE1BQU0sQ0FBQyxTQUFTLENBQXVCO0lBRXhDLE1BQU0sQ0FBQyxHQUFHLENBQUMsUUFBa0I7UUFDbEMsSUFBSSxDQUFDLFNBQVMsR0FBRyxRQUFRLENBQUM7SUFDNUIsQ0FBQztJQUVNLE1BQU0sQ0FBQyxLQUFLO1FBQ2pCLElBQUksQ0FBQyxTQUFTLEdBQUcsU0FBUyxDQUFDO0lBQzdCLENBQUM7SUFFTSxNQUFNLENBQUMsR0FBRztRQUNmLElBQUksQ0FBQyxJQUFJLENBQUMsU0FBUyxFQUFFLENBQUM7WUFDcEIsTUFBTSxJQUFJLEtBQUssQ0FBQyx1QkFBdUIsQ0FBQyxDQUFDO1FBQzNDLENBQUM7UUFDRCxPQUFPLElBQUksQ0FBQyxTQUFTLENBQUM7SUFDeEIsQ0FBQztDQUNGO0FBRUQsTUFBTSxVQUFVLE9BQU8sQ0FBSSxLQUFjO0lBQ3ZDLE9BQU8sU0FBUyxDQUFDLEdBQUcsRUFBRSxDQUFDLEdBQUcsQ0FBQyxLQUFLLENBQUMsQ0FBQztBQUNwQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtJbmplY3RvciwgVHlwZX0gZnJvbSBcIkBhbmd1bGFyL2NvcmVcIjtcblxuZXhwb3J0IGNsYXNzIEZJbmplY3RvciB7XG5cbiAgcHJpdmF0ZSBzdGF0aWMgX2luamVjdG9yOiBJbmplY3RvciB8IHVuZGVmaW5lZDtcblxuICBwdWJsaWMgc3RhdGljIHNldChpbmplY3RvcjogSW5qZWN0b3IpOiB2b2lkIHtcbiAgICB0aGlzLl9pbmplY3RvciA9IGluamVjdG9yO1xuICB9XG5cbiAgcHVibGljIHN0YXRpYyBjbGVhcigpOiB2b2lkIHtcbiAgICB0aGlzLl9pbmplY3RvciA9IHVuZGVmaW5lZDtcbiAgfVxuXG4gIHB1YmxpYyBzdGF0aWMgZ2V0KCk6IEluamVjdG9yIHtcbiAgICBpZiAoIXRoaXMuX2luamVjdG9yKSB7XG4gICAgICB0aHJvdyBuZXcgRXJyb3IoJ05vIGluamVjdG9yIGF2YWlsYWJsZScpO1xuICAgIH1cbiAgICByZXR1cm4gdGhpcy5faW5qZWN0b3I7XG4gIH1cbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGZJbmplY3Q8VD4odG9rZW46IFR5cGU8VD4pOiBUIHtcbiAgcmV0dXJuIEZJbmplY3Rvci5nZXQoKS5nZXQodG9rZW4pO1xufVxuIl19
@@ -1,17 +0,0 @@
1
- import { ElementRef } from "@angular/core";
2
- import { IPoint } from '@foblex/2d';
3
- import { IHasHostElement } from '../../../i-has-host-element';
4
- import * as i0 from "@angular/core";
5
- export declare const F_CONNECTION_DRAG_HANDLE_CLASS = "f-connection-drag-handle";
6
- export declare class FConnectionDragHandleComponent implements IHasHostElement {
7
- private elementReference;
8
- point: IPoint;
9
- radius: number;
10
- readonly class: string;
11
- get hostElement(): SVGCircleElement;
12
- constructor(elementReference: ElementRef<SVGCircleElement>);
13
- redraw(penultimatePoint: IPoint, endPoint: IPoint): void;
14
- private _calculateCircleCenter;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<FConnectionDragHandleComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<FConnectionDragHandleComponent, "circle[f-connection-drag-handle]", never, {}, {}, never, never, false, never>;
17
- }
@@ -1,8 +0,0 @@
1
- import { Injector, Type } from "@angular/core";
2
- export declare class FInjector {
3
- private static _injector;
4
- static set(injector: Injector): void;
5
- static clear(): void;
6
- static get(): Injector;
7
- }
8
- export declare function fInject<T>(token: Type<T>): T;