@angflow/system 0.0.94 → 0.1.2

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 (368) hide show
  1. package/dist/esm/constants.d.ts +0 -1
  2. package/dist/esm/index.d.ts +0 -1
  3. package/dist/esm/index.js +30 -9
  4. package/dist/esm/index.mjs +30 -9
  5. package/dist/esm/types/changes.d.ts +0 -1
  6. package/dist/esm/types/edges.d.ts +0 -1
  7. package/dist/esm/types/general.d.ts +0 -1
  8. package/dist/esm/types/handles.d.ts +0 -1
  9. package/dist/esm/types/index.d.ts +0 -1
  10. package/dist/esm/types/nodes.d.ts +0 -1
  11. package/dist/esm/types/panzoom.d.ts +2 -3
  12. package/dist/esm/types/utils.d.ts +0 -1
  13. package/dist/esm/utils/connections.d.ts +0 -1
  14. package/dist/esm/utils/dom.d.ts +0 -1
  15. package/dist/esm/utils/edge-toolbar.d.ts +0 -1
  16. package/dist/esm/utils/edges/bezier-edge.d.ts +0 -1
  17. package/dist/esm/utils/edges/floating.d.ts +0 -1
  18. package/dist/esm/utils/edges/general.d.ts +0 -1
  19. package/dist/esm/utils/edges/index.d.ts +0 -1
  20. package/dist/esm/utils/edges/positions.d.ts +0 -1
  21. package/dist/esm/utils/edges/smoothstep-edge.d.ts +0 -1
  22. package/dist/esm/utils/edges/straight-edge.d.ts +0 -1
  23. package/dist/esm/utils/general.d.ts +0 -1
  24. package/dist/esm/utils/graph.d.ts +0 -1
  25. package/dist/esm/utils/index.d.ts +0 -1
  26. package/dist/esm/utils/marker.d.ts +0 -1
  27. package/dist/esm/utils/node-toolbar.d.ts +0 -1
  28. package/dist/esm/utils/shallow-node-data.d.ts +0 -1
  29. package/dist/esm/utils/store.d.ts +0 -1
  30. package/dist/esm/utils/types.d.ts +0 -1
  31. package/dist/esm/xydrag/XYDrag.d.ts +0 -1
  32. package/dist/esm/xydrag/index.d.ts +0 -1
  33. package/dist/esm/xydrag/utils.d.ts +0 -1
  34. package/dist/esm/xyhandle/XYHandle.d.ts +0 -1
  35. package/dist/esm/xyhandle/index.d.ts +0 -1
  36. package/dist/esm/xyhandle/types.d.ts +8 -5
  37. package/dist/esm/xyhandle/utils.d.ts +3 -4
  38. package/dist/esm/xyminimap/index.d.ts +0 -1
  39. package/dist/esm/xypanzoom/XYPanZoom.d.ts +0 -1
  40. package/dist/esm/xypanzoom/eventhandler.d.ts +0 -1
  41. package/dist/esm/xypanzoom/filter.d.ts +2 -3
  42. package/dist/esm/xypanzoom/index.d.ts +0 -1
  43. package/dist/esm/xypanzoom/utils.d.ts +0 -1
  44. package/dist/esm/xyresizer/XYResizer.d.ts +0 -1
  45. package/dist/esm/xyresizer/index.d.ts +0 -1
  46. package/dist/esm/xyresizer/types.d.ts +0 -1
  47. package/dist/esm/xyresizer/utils.d.ts +0 -1
  48. package/dist/umd/constants.d.ts +0 -1
  49. package/dist/umd/index.d.ts +0 -1
  50. package/dist/umd/index.js +1 -1
  51. package/dist/umd/types/changes.d.ts +0 -1
  52. package/dist/umd/types/edges.d.ts +0 -1
  53. package/dist/umd/types/general.d.ts +0 -1
  54. package/dist/umd/types/handles.d.ts +0 -1
  55. package/dist/umd/types/index.d.ts +0 -1
  56. package/dist/umd/types/nodes.d.ts +0 -1
  57. package/dist/umd/types/panzoom.d.ts +2 -3
  58. package/dist/umd/types/utils.d.ts +0 -1
  59. package/dist/umd/utils/connections.d.ts +0 -1
  60. package/dist/umd/utils/dom.d.ts +0 -1
  61. package/dist/umd/utils/edge-toolbar.d.ts +0 -1
  62. package/dist/umd/utils/edges/bezier-edge.d.ts +0 -1
  63. package/dist/umd/utils/edges/floating.d.ts +0 -1
  64. package/dist/umd/utils/edges/general.d.ts +0 -1
  65. package/dist/umd/utils/edges/index.d.ts +0 -1
  66. package/dist/umd/utils/edges/positions.d.ts +0 -1
  67. package/dist/umd/utils/edges/smoothstep-edge.d.ts +0 -1
  68. package/dist/umd/utils/edges/straight-edge.d.ts +0 -1
  69. package/dist/umd/utils/general.d.ts +0 -1
  70. package/dist/umd/utils/graph.d.ts +0 -1
  71. package/dist/umd/utils/index.d.ts +0 -1
  72. package/dist/umd/utils/marker.d.ts +0 -1
  73. package/dist/umd/utils/node-toolbar.d.ts +0 -1
  74. package/dist/umd/utils/shallow-node-data.d.ts +0 -1
  75. package/dist/umd/utils/store.d.ts +0 -1
  76. package/dist/umd/utils/types.d.ts +0 -1
  77. package/dist/umd/xydrag/XYDrag.d.ts +0 -1
  78. package/dist/umd/xydrag/index.d.ts +0 -1
  79. package/dist/umd/xydrag/utils.d.ts +0 -1
  80. package/dist/umd/xyhandle/XYHandle.d.ts +0 -1
  81. package/dist/umd/xyhandle/index.d.ts +0 -1
  82. package/dist/umd/xyhandle/types.d.ts +8 -5
  83. package/dist/umd/xyhandle/utils.d.ts +3 -4
  84. package/dist/umd/xyminimap/index.d.ts +0 -1
  85. package/dist/umd/xypanzoom/XYPanZoom.d.ts +0 -1
  86. package/dist/umd/xypanzoom/eventhandler.d.ts +0 -1
  87. package/dist/umd/xypanzoom/filter.d.ts +2 -3
  88. package/dist/umd/xypanzoom/index.d.ts +0 -1
  89. package/dist/umd/xypanzoom/utils.d.ts +0 -1
  90. package/dist/umd/xyresizer/XYResizer.d.ts +0 -1
  91. package/dist/umd/xyresizer/index.d.ts +0 -1
  92. package/dist/umd/xyresizer/types.d.ts +0 -1
  93. package/dist/umd/xyresizer/utils.d.ts +0 -1
  94. package/package.json +6 -2
  95. package/dist/esm/constants.d.ts.map +0 -1
  96. package/dist/esm/index.d.ts.map +0 -1
  97. package/dist/esm/src/constants.d.ts +0 -43
  98. package/dist/esm/src/constants.d.ts.map +0 -1
  99. package/dist/esm/src/index.d.ts +0 -9
  100. package/dist/esm/src/index.d.ts.map +0 -1
  101. package/dist/esm/src/types/changes.d.ts +0 -64
  102. package/dist/esm/src/types/changes.d.ts.map +0 -1
  103. package/dist/esm/src/types/edges.d.ts +0 -140
  104. package/dist/esm/src/types/edges.d.ts.map +0 -1
  105. package/dist/esm/src/types/general.d.ts +0 -296
  106. package/dist/esm/src/types/general.d.ts.map +0 -1
  107. package/dist/esm/src/types/handles.d.ts +0 -65
  108. package/dist/esm/src/types/handles.d.ts.map +0 -1
  109. package/dist/esm/src/types/index.d.ts +0 -8
  110. package/dist/esm/src/types/index.d.ts.map +0 -1
  111. package/dist/esm/src/types/nodes.d.ts +0 -157
  112. package/dist/esm/src/types/nodes.d.ts.map +0 -1
  113. package/dist/esm/src/types/panzoom.d.ts +0 -55
  114. package/dist/esm/src/types/panzoom.d.ts.map +0 -1
  115. package/dist/esm/src/types/utils.d.ts +0 -61
  116. package/dist/esm/src/types/utils.d.ts.map +0 -1
  117. package/dist/esm/src/utils/connections.d.ts +0 -13
  118. package/dist/esm/src/utils/connections.d.ts.map +0 -1
  119. package/dist/esm/src/utils/dom.d.ts +0 -21
  120. package/dist/esm/src/utils/dom.d.ts.map +0 -1
  121. package/dist/esm/src/utils/edge-toolbar.d.ts +0 -2
  122. package/dist/esm/src/utils/edge-toolbar.d.ts.map +0 -1
  123. package/dist/esm/src/utils/edges/bezier-edge.d.ts +0 -77
  124. package/dist/esm/src/utils/edges/bezier-edge.d.ts.map +0 -1
  125. package/dist/esm/src/utils/edges/floating.d.ts +0 -32
  126. package/dist/esm/src/utils/edges/floating.d.ts.map +0 -1
  127. package/dist/esm/src/utils/edges/general.d.ts +0 -91
  128. package/dist/esm/src/utils/edges/general.d.ts.map +0 -1
  129. package/dist/esm/src/utils/edges/index.d.ts +0 -7
  130. package/dist/esm/src/utils/edges/index.d.ts.map +0 -1
  131. package/dist/esm/src/utils/edges/positions.d.ts +0 -17
  132. package/dist/esm/src/utils/edges/positions.d.ts.map +0 -1
  133. package/dist/esm/src/utils/edges/smoothstep-edge.d.ts +0 -66
  134. package/dist/esm/src/utils/edges/smoothstep-edge.d.ts.map +0 -1
  135. package/dist/esm/src/utils/edges/straight-edge.d.ts +0 -41
  136. package/dist/esm/src/utils/edges/straight-edge.d.ts.map +0 -1
  137. package/dist/esm/src/utils/general.d.ts +0 -86
  138. package/dist/esm/src/utils/general.d.ts.map +0 -1
  139. package/dist/esm/src/utils/graph.d.ts +0 -191
  140. package/dist/esm/src/utils/graph.d.ts.map +0 -1
  141. package/dist/esm/src/utils/index.d.ts +0 -12
  142. package/dist/esm/src/utils/index.d.ts.map +0 -1
  143. package/dist/esm/src/utils/marker.d.ts +0 -9
  144. package/dist/esm/src/utils/marker.d.ts.map +0 -1
  145. package/dist/esm/src/utils/node-toolbar.d.ts +0 -3
  146. package/dist/esm/src/utils/node-toolbar.d.ts.map +0 -1
  147. package/dist/esm/src/utils/shallow-node-data.d.ts +0 -5
  148. package/dist/esm/src/utils/shallow-node-data.d.ts.map +0 -1
  149. package/dist/esm/src/utils/store.d.ts +0 -34
  150. package/dist/esm/src/utils/store.d.ts.map +0 -1
  151. package/dist/esm/src/utils/types.d.ts +0 -8
  152. package/dist/esm/src/utils/types.d.ts.map +0 -1
  153. package/dist/esm/src/xydrag/XYDrag.d.ts +0 -55
  154. package/dist/esm/src/xydrag/XYDrag.d.ts.map +0 -1
  155. package/dist/esm/src/xydrag/index.d.ts +0 -2
  156. package/dist/esm/src/xydrag/index.d.ts.map +0 -1
  157. package/dist/esm/src/xydrag/utils.d.ts +0 -24
  158. package/dist/esm/src/xydrag/utils.d.ts.map +0 -1
  159. package/dist/esm/src/xyhandle/XYHandle.d.ts +0 -3
  160. package/dist/esm/src/xyhandle/XYHandle.d.ts.map +0 -1
  161. package/dist/esm/src/xyhandle/index.d.ts +0 -2
  162. package/dist/esm/src/xyhandle/index.d.ts.map +0 -1
  163. package/dist/esm/src/xyhandle/types.d.ts +0 -51
  164. package/dist/esm/src/xyhandle/types.d.ts.map +0 -1
  165. package/dist/esm/src/xyhandle/utils.d.ts +0 -29
  166. package/dist/esm/src/xyhandle/utils.d.ts.map +0 -1
  167. package/dist/esm/src/xyminimap/index.d.ts +0 -28
  168. package/dist/esm/src/xyminimap/index.d.ts.map +0 -1
  169. package/dist/esm/src/xypanzoom/XYPanZoom.d.ts +0 -12
  170. package/dist/esm/src/xypanzoom/XYPanZoom.d.ts.map +0 -1
  171. package/dist/esm/src/xypanzoom/eventhandler.d.ts +0 -46
  172. package/dist/esm/src/xypanzoom/eventhandler.d.ts.map +0 -1
  173. package/dist/esm/src/xypanzoom/filter.d.ts +0 -15
  174. package/dist/esm/src/xypanzoom/filter.d.ts.map +0 -1
  175. package/dist/esm/src/xypanzoom/index.d.ts +0 -2
  176. package/dist/esm/src/xypanzoom/index.d.ts.map +0 -1
  177. package/dist/esm/src/xypanzoom/utils.d.ts +0 -9
  178. package/dist/esm/src/xypanzoom/utils.d.ts.map +0 -1
  179. package/dist/esm/src/xyresizer/XYResizer.d.ts +0 -49
  180. package/dist/esm/src/xyresizer/XYResizer.d.ts.map +0 -1
  181. package/dist/esm/src/xyresizer/index.d.ts +0 -3
  182. package/dist/esm/src/xyresizer/index.d.ts.map +0 -1
  183. package/dist/esm/src/xyresizer/types.d.ts +0 -59
  184. package/dist/esm/src/xyresizer/types.d.ts.map +0 -1
  185. package/dist/esm/src/xyresizer/utils.d.ts +0 -76
  186. package/dist/esm/src/xyresizer/utils.d.ts.map +0 -1
  187. package/dist/esm/types/changes.d.ts.map +0 -1
  188. package/dist/esm/types/edges.d.ts.map +0 -1
  189. package/dist/esm/types/general.d.ts.map +0 -1
  190. package/dist/esm/types/handles.d.ts.map +0 -1
  191. package/dist/esm/types/index.d.ts.map +0 -1
  192. package/dist/esm/types/nodes.d.ts.map +0 -1
  193. package/dist/esm/types/panzoom.d.ts.map +0 -1
  194. package/dist/esm/types/utils.d.ts.map +0 -1
  195. package/dist/esm/utils/connections.d.ts.map +0 -1
  196. package/dist/esm/utils/dom.d.ts.map +0 -1
  197. package/dist/esm/utils/edge-toolbar.d.ts.map +0 -1
  198. package/dist/esm/utils/edges/bezier-edge.d.ts.map +0 -1
  199. package/dist/esm/utils/edges/floating.d.ts.map +0 -1
  200. package/dist/esm/utils/edges/general.d.ts.map +0 -1
  201. package/dist/esm/utils/edges/index.d.ts.map +0 -1
  202. package/dist/esm/utils/edges/positions.d.ts.map +0 -1
  203. package/dist/esm/utils/edges/smoothstep-edge.d.ts.map +0 -1
  204. package/dist/esm/utils/edges/straight-edge.d.ts.map +0 -1
  205. package/dist/esm/utils/general.d.ts.map +0 -1
  206. package/dist/esm/utils/graph.d.ts.map +0 -1
  207. package/dist/esm/utils/index.d.ts.map +0 -1
  208. package/dist/esm/utils/marker.d.ts.map +0 -1
  209. package/dist/esm/utils/node-toolbar.d.ts.map +0 -1
  210. package/dist/esm/utils/shallow-node-data.d.ts.map +0 -1
  211. package/dist/esm/utils/store.d.ts.map +0 -1
  212. package/dist/esm/utils/types.d.ts.map +0 -1
  213. package/dist/esm/vitest.config.d.ts +0 -3
  214. package/dist/esm/vitest.config.d.ts.map +0 -1
  215. package/dist/esm/xydrag/XYDrag.d.ts.map +0 -1
  216. package/dist/esm/xydrag/index.d.ts.map +0 -1
  217. package/dist/esm/xydrag/utils.d.ts.map +0 -1
  218. package/dist/esm/xyhandle/XYHandle.d.ts.map +0 -1
  219. package/dist/esm/xyhandle/index.d.ts.map +0 -1
  220. package/dist/esm/xyhandle/types.d.ts.map +0 -1
  221. package/dist/esm/xyhandle/utils.d.ts.map +0 -1
  222. package/dist/esm/xyminimap/index.d.ts.map +0 -1
  223. package/dist/esm/xypanzoom/XYPanZoom.d.ts.map +0 -1
  224. package/dist/esm/xypanzoom/eventhandler.d.ts.map +0 -1
  225. package/dist/esm/xypanzoom/filter.d.ts.map +0 -1
  226. package/dist/esm/xypanzoom/index.d.ts.map +0 -1
  227. package/dist/esm/xypanzoom/utils.d.ts.map +0 -1
  228. package/dist/esm/xyresizer/XYResizer.d.ts.map +0 -1
  229. package/dist/esm/xyresizer/index.d.ts.map +0 -1
  230. package/dist/esm/xyresizer/types.d.ts.map +0 -1
  231. package/dist/esm/xyresizer/utils.d.ts.map +0 -1
  232. package/dist/umd/constants.d.ts.map +0 -1
  233. package/dist/umd/index.d.ts.map +0 -1
  234. package/dist/umd/src/constants.d.ts +0 -43
  235. package/dist/umd/src/constants.d.ts.map +0 -1
  236. package/dist/umd/src/index.d.ts +0 -9
  237. package/dist/umd/src/index.d.ts.map +0 -1
  238. package/dist/umd/src/types/changes.d.ts +0 -64
  239. package/dist/umd/src/types/changes.d.ts.map +0 -1
  240. package/dist/umd/src/types/edges.d.ts +0 -140
  241. package/dist/umd/src/types/edges.d.ts.map +0 -1
  242. package/dist/umd/src/types/general.d.ts +0 -296
  243. package/dist/umd/src/types/general.d.ts.map +0 -1
  244. package/dist/umd/src/types/handles.d.ts +0 -65
  245. package/dist/umd/src/types/handles.d.ts.map +0 -1
  246. package/dist/umd/src/types/index.d.ts +0 -8
  247. package/dist/umd/src/types/index.d.ts.map +0 -1
  248. package/dist/umd/src/types/nodes.d.ts +0 -157
  249. package/dist/umd/src/types/nodes.d.ts.map +0 -1
  250. package/dist/umd/src/types/panzoom.d.ts +0 -55
  251. package/dist/umd/src/types/panzoom.d.ts.map +0 -1
  252. package/dist/umd/src/types/utils.d.ts +0 -61
  253. package/dist/umd/src/types/utils.d.ts.map +0 -1
  254. package/dist/umd/src/utils/connections.d.ts +0 -13
  255. package/dist/umd/src/utils/connections.d.ts.map +0 -1
  256. package/dist/umd/src/utils/dom.d.ts +0 -21
  257. package/dist/umd/src/utils/dom.d.ts.map +0 -1
  258. package/dist/umd/src/utils/edge-toolbar.d.ts +0 -2
  259. package/dist/umd/src/utils/edge-toolbar.d.ts.map +0 -1
  260. package/dist/umd/src/utils/edges/bezier-edge.d.ts +0 -77
  261. package/dist/umd/src/utils/edges/bezier-edge.d.ts.map +0 -1
  262. package/dist/umd/src/utils/edges/floating.d.ts +0 -32
  263. package/dist/umd/src/utils/edges/floating.d.ts.map +0 -1
  264. package/dist/umd/src/utils/edges/general.d.ts +0 -91
  265. package/dist/umd/src/utils/edges/general.d.ts.map +0 -1
  266. package/dist/umd/src/utils/edges/index.d.ts +0 -7
  267. package/dist/umd/src/utils/edges/index.d.ts.map +0 -1
  268. package/dist/umd/src/utils/edges/positions.d.ts +0 -17
  269. package/dist/umd/src/utils/edges/positions.d.ts.map +0 -1
  270. package/dist/umd/src/utils/edges/smoothstep-edge.d.ts +0 -66
  271. package/dist/umd/src/utils/edges/smoothstep-edge.d.ts.map +0 -1
  272. package/dist/umd/src/utils/edges/straight-edge.d.ts +0 -41
  273. package/dist/umd/src/utils/edges/straight-edge.d.ts.map +0 -1
  274. package/dist/umd/src/utils/general.d.ts +0 -86
  275. package/dist/umd/src/utils/general.d.ts.map +0 -1
  276. package/dist/umd/src/utils/graph.d.ts +0 -191
  277. package/dist/umd/src/utils/graph.d.ts.map +0 -1
  278. package/dist/umd/src/utils/index.d.ts +0 -12
  279. package/dist/umd/src/utils/index.d.ts.map +0 -1
  280. package/dist/umd/src/utils/marker.d.ts +0 -9
  281. package/dist/umd/src/utils/marker.d.ts.map +0 -1
  282. package/dist/umd/src/utils/node-toolbar.d.ts +0 -3
  283. package/dist/umd/src/utils/node-toolbar.d.ts.map +0 -1
  284. package/dist/umd/src/utils/shallow-node-data.d.ts +0 -5
  285. package/dist/umd/src/utils/shallow-node-data.d.ts.map +0 -1
  286. package/dist/umd/src/utils/store.d.ts +0 -34
  287. package/dist/umd/src/utils/store.d.ts.map +0 -1
  288. package/dist/umd/src/utils/types.d.ts +0 -8
  289. package/dist/umd/src/utils/types.d.ts.map +0 -1
  290. package/dist/umd/src/xydrag/XYDrag.d.ts +0 -55
  291. package/dist/umd/src/xydrag/XYDrag.d.ts.map +0 -1
  292. package/dist/umd/src/xydrag/index.d.ts +0 -2
  293. package/dist/umd/src/xydrag/index.d.ts.map +0 -1
  294. package/dist/umd/src/xydrag/utils.d.ts +0 -24
  295. package/dist/umd/src/xydrag/utils.d.ts.map +0 -1
  296. package/dist/umd/src/xyhandle/XYHandle.d.ts +0 -3
  297. package/dist/umd/src/xyhandle/XYHandle.d.ts.map +0 -1
  298. package/dist/umd/src/xyhandle/index.d.ts +0 -2
  299. package/dist/umd/src/xyhandle/index.d.ts.map +0 -1
  300. package/dist/umd/src/xyhandle/types.d.ts +0 -51
  301. package/dist/umd/src/xyhandle/types.d.ts.map +0 -1
  302. package/dist/umd/src/xyhandle/utils.d.ts +0 -29
  303. package/dist/umd/src/xyhandle/utils.d.ts.map +0 -1
  304. package/dist/umd/src/xyminimap/index.d.ts +0 -28
  305. package/dist/umd/src/xyminimap/index.d.ts.map +0 -1
  306. package/dist/umd/src/xypanzoom/XYPanZoom.d.ts +0 -12
  307. package/dist/umd/src/xypanzoom/XYPanZoom.d.ts.map +0 -1
  308. package/dist/umd/src/xypanzoom/eventhandler.d.ts +0 -46
  309. package/dist/umd/src/xypanzoom/eventhandler.d.ts.map +0 -1
  310. package/dist/umd/src/xypanzoom/filter.d.ts +0 -15
  311. package/dist/umd/src/xypanzoom/filter.d.ts.map +0 -1
  312. package/dist/umd/src/xypanzoom/index.d.ts +0 -2
  313. package/dist/umd/src/xypanzoom/index.d.ts.map +0 -1
  314. package/dist/umd/src/xypanzoom/utils.d.ts +0 -9
  315. package/dist/umd/src/xypanzoom/utils.d.ts.map +0 -1
  316. package/dist/umd/src/xyresizer/XYResizer.d.ts +0 -49
  317. package/dist/umd/src/xyresizer/XYResizer.d.ts.map +0 -1
  318. package/dist/umd/src/xyresizer/index.d.ts +0 -3
  319. package/dist/umd/src/xyresizer/index.d.ts.map +0 -1
  320. package/dist/umd/src/xyresizer/types.d.ts +0 -59
  321. package/dist/umd/src/xyresizer/types.d.ts.map +0 -1
  322. package/dist/umd/src/xyresizer/utils.d.ts +0 -76
  323. package/dist/umd/src/xyresizer/utils.d.ts.map +0 -1
  324. package/dist/umd/types/changes.d.ts.map +0 -1
  325. package/dist/umd/types/edges.d.ts.map +0 -1
  326. package/dist/umd/types/general.d.ts.map +0 -1
  327. package/dist/umd/types/handles.d.ts.map +0 -1
  328. package/dist/umd/types/index.d.ts.map +0 -1
  329. package/dist/umd/types/nodes.d.ts.map +0 -1
  330. package/dist/umd/types/panzoom.d.ts.map +0 -1
  331. package/dist/umd/types/utils.d.ts.map +0 -1
  332. package/dist/umd/utils/connections.d.ts.map +0 -1
  333. package/dist/umd/utils/dom.d.ts.map +0 -1
  334. package/dist/umd/utils/edge-toolbar.d.ts.map +0 -1
  335. package/dist/umd/utils/edges/bezier-edge.d.ts.map +0 -1
  336. package/dist/umd/utils/edges/floating.d.ts.map +0 -1
  337. package/dist/umd/utils/edges/general.d.ts.map +0 -1
  338. package/dist/umd/utils/edges/index.d.ts.map +0 -1
  339. package/dist/umd/utils/edges/positions.d.ts.map +0 -1
  340. package/dist/umd/utils/edges/smoothstep-edge.d.ts.map +0 -1
  341. package/dist/umd/utils/edges/straight-edge.d.ts.map +0 -1
  342. package/dist/umd/utils/general.d.ts.map +0 -1
  343. package/dist/umd/utils/graph.d.ts.map +0 -1
  344. package/dist/umd/utils/index.d.ts.map +0 -1
  345. package/dist/umd/utils/marker.d.ts.map +0 -1
  346. package/dist/umd/utils/node-toolbar.d.ts.map +0 -1
  347. package/dist/umd/utils/shallow-node-data.d.ts.map +0 -1
  348. package/dist/umd/utils/store.d.ts.map +0 -1
  349. package/dist/umd/utils/types.d.ts.map +0 -1
  350. package/dist/umd/vitest.config.d.ts +0 -3
  351. package/dist/umd/vitest.config.d.ts.map +0 -1
  352. package/dist/umd/xydrag/XYDrag.d.ts.map +0 -1
  353. package/dist/umd/xydrag/index.d.ts.map +0 -1
  354. package/dist/umd/xydrag/utils.d.ts.map +0 -1
  355. package/dist/umd/xyhandle/XYHandle.d.ts.map +0 -1
  356. package/dist/umd/xyhandle/index.d.ts.map +0 -1
  357. package/dist/umd/xyhandle/types.d.ts.map +0 -1
  358. package/dist/umd/xyhandle/utils.d.ts.map +0 -1
  359. package/dist/umd/xyminimap/index.d.ts.map +0 -1
  360. package/dist/umd/xypanzoom/XYPanZoom.d.ts.map +0 -1
  361. package/dist/umd/xypanzoom/eventhandler.d.ts.map +0 -1
  362. package/dist/umd/xypanzoom/filter.d.ts.map +0 -1
  363. package/dist/umd/xypanzoom/index.d.ts.map +0 -1
  364. package/dist/umd/xypanzoom/utils.d.ts.map +0 -1
  365. package/dist/umd/xyresizer/XYResizer.d.ts.map +0 -1
  366. package/dist/umd/xyresizer/index.d.ts.map +0 -1
  367. package/dist/umd/xyresizer/types.d.ts.map +0 -1
  368. package/dist/umd/xyresizer/utils.d.ts.map +0 -1
@@ -74,4 +74,3 @@ export declare function getBezierEdgeCenter({ sourceX, sourceY, targetX, targetY
74
74
  *work with multiple edge paths at once.
75
75
  */
76
76
  export declare function getBezierPath({ sourceX, sourceY, sourcePosition, targetX, targetY, targetPosition, curvature, }: GetBezierPathParams): [path: string, labelX: number, labelY: number, offsetX: number, offsetY: number];
77
- //# sourceMappingURL=bezier-edge.d.ts.map
@@ -29,4 +29,3 @@ export declare function getFloatingEndpoint(nodeRect: NodeRect, referencePoint:
29
29
  * so the function returns Top or Bottom rather than Left or Right.
30
30
  */
31
31
  export declare function inferSide(intersection: Point, nodeRect: NodeRect): Position;
32
- //# sourceMappingURL=floating.d.ts.map
@@ -88,4 +88,3 @@ export type ReconnectEdgeOptions = {
88
88
  */
89
89
  export declare const reconnectEdge: <EdgeType extends EdgeBase>(oldEdge: EdgeType, newConnection: Connection, edges: EdgeType[], options?: ReconnectEdgeOptions) => EdgeType[];
90
90
  export {};
91
- //# sourceMappingURL=general.d.ts.map
@@ -4,4 +4,3 @@ export * from './smoothstep-edge';
4
4
  export * from './general';
5
5
  export * from './positions';
6
6
  export * from './floating';
7
- //# sourceMappingURL=index.d.ts.map
@@ -14,4 +14,3 @@ export type GetEdgePositionParams = {
14
14
  };
15
15
  export declare function getEdgePosition(params: GetEdgePositionParams): EdgePosition | null;
16
16
  export declare function getHandlePosition(node: InternalNodeBase, handle: Handle | null, fallbackPosition?: Position, center?: boolean): XYPosition;
17
- //# sourceMappingURL=positions.d.ts.map
@@ -63,4 +63,3 @@ export interface GetSmoothStepPathParams {
63
63
  * @remarks This function returns a tuple (aka a fixed-size array) to make it easier to work with multiple edge paths at once.
64
64
  */
65
65
  export declare function getSmoothStepPath({ sourceX, sourceY, sourcePosition, targetX, targetY, targetPosition, borderRadius, centerX, centerY, offset, stepPosition, }: GetSmoothStepPathParams): [path: string, labelX: number, labelY: number, offsetX: number, offsetY: number];
66
- //# sourceMappingURL=smoothstep-edge.d.ts.map
@@ -38,4 +38,3 @@ export type GetStraightPathParams = {
38
38
  * @remarks This function returns a tuple (aka a fixed-size array) to make it easier to work with multiple edge paths at once.
39
39
  */
40
40
  export declare function getStraightPath({ sourceX, sourceY, targetX, targetY, }: GetStraightPathParams): [path: string, labelX: number, labelY: number, offsetX: number, offsetY: number];
41
- //# sourceMappingURL=straight-edge.d.ts.map
@@ -83,4 +83,3 @@ export declare function withResolvers<T>(): {
83
83
  reject: (reason?: unknown) => void;
84
84
  };
85
85
  export declare function mergeAriaLabelConfig(partial?: Partial<AriaLabelConfig>): AriaLabelConfig;
86
- //# sourceMappingURL=general.d.ts.map
@@ -188,4 +188,3 @@ export declare function getElementsToRemove<NodeType extends NodeBase = NodeBase
188
188
  nodes: NodeType[];
189
189
  edges: EdgeType[];
190
190
  }>;
191
- //# sourceMappingURL=graph.d.ts.map
@@ -9,4 +9,3 @@ export * from './edge-toolbar';
9
9
  export * from './store';
10
10
  export * from './types';
11
11
  export * from './shallow-node-data';
12
- //# sourceMappingURL=index.d.ts.map
@@ -6,4 +6,3 @@ export declare function createMarkerIds(edges: EdgeBase[], { id, defaultColor, d
6
6
  defaultMarkerStart?: EdgeMarkerType;
7
7
  defaultMarkerEnd?: EdgeMarkerType;
8
8
  }): MarkerProps[];
9
- //# sourceMappingURL=marker.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { Position, type Rect, type Viewport, type Align } from '../';
2
2
  export declare function getNodeToolbarTransform(nodeRect: Rect, viewport: Viewport, position: Position, offset: number, align: Align): string;
3
- //# sourceMappingURL=node-toolbar.d.ts.map
@@ -2,4 +2,3 @@ import { NodeBase } from '../types';
2
2
  type NodeData = Pick<NodeBase, 'id' | 'type' | 'data'>;
3
3
  export declare function shallowNodeData(a: NodeData | NodeData[] | null, b: NodeData | NodeData[] | null): boolean;
4
4
  export {};
5
- //# sourceMappingURL=shallow-node-data.d.ts.map
@@ -31,4 +31,3 @@ export declare function panBy({ delta, panZoom, transform, translateExtent, widt
31
31
  }): Promise<boolean>;
32
32
  export declare function updateConnectionLookup(connectionLookup: ConnectionLookup, edgeLookup: EdgeLookup, edges: EdgeBase[]): void;
33
33
  export {};
34
- //# sourceMappingURL=store.d.ts.map
@@ -5,4 +5,3 @@ export type ParentExpandChild = {
5
5
  parentId: string;
6
6
  rect: Rect;
7
7
  };
8
- //# sourceMappingURL=types.d.ts.map
@@ -52,4 +52,3 @@ export type DragUpdateParams = {
52
52
  };
53
53
  export declare function XYDrag<OnNodeDrag extends (e: any, nodes: any, node: any) => void | undefined>({ onNodeMouseDown, getStoreItems, onDragStart, onDrag, onDragStop, }: XYDragParams<OnNodeDrag>): XYDragInstance;
54
54
  export {};
55
- //# sourceMappingURL=XYDrag.d.ts.map
@@ -1,2 +1 @@
1
1
  export * from './XYDrag';
2
- //# sourceMappingURL=index.d.ts.map
@@ -21,4 +21,3 @@ export declare function calculateSnapOffset({ dragItems, snapGrid, x, y, }: {
21
21
  x: number;
22
22
  y: number;
23
23
  } | null;
24
- //# sourceMappingURL=utils.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { XYHandleInstance } from './types';
2
2
  export declare const XYHandle: XYHandleInstance;
3
- //# sourceMappingURL=XYHandle.d.ts.map
@@ -1,2 +1 @@
1
1
  export * from './XYHandle';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
- import { ConnectionMode, type Connection, type OnConnect, type OnConnectStart, type HandleType, type PanBy, type Transform, type Handle, type OnConnectEnd, type UpdateConnection, type IsValidConnection, NodeLookup, FinalConnectionState } from '../types';
2
- export type OnPointerDownParams = {
1
+ import { ConnectionMode, type Connection, type OnConnect, type OnConnectStart, type HandleType, type PanBy, type Transform, type Handle, type OnConnectEnd, type UpdateConnection, type IsValidConnection, type InternalNodeBase, NodeLookup, FinalConnectionState } from '../types';
2
+ export type OnPointerDownParams<NodeType extends InternalNodeBase = InternalNodeBase> = {
3
3
  autoPanOnConnect: boolean;
4
4
  connectionMode: ConnectionMode;
5
5
  connectionRadius: number;
@@ -7,7 +7,7 @@ export type OnPointerDownParams = {
7
7
  handleId: string | null;
8
8
  nodeId: string;
9
9
  isTarget: boolean;
10
- nodeLookup: NodeLookup;
10
+ nodeLookup: NodeLookup<NodeType>;
11
11
  lib: string;
12
12
  flowId: string | null;
13
13
  edgeUpdaterType?: HandleType;
@@ -25,6 +25,10 @@ export type OnPointerDownParams = {
25
25
  autoPanSpeed?: number;
26
26
  dragThreshold?: number;
27
27
  handleDomNode: Element;
28
+ /** Optional extra visibility check. Called only for nodes that already pass
29
+ * the `!node.hidden` guard. Return `false` to exclude a node from snap and
30
+ * drop-target search (e.g. collapse-hidden children). */
31
+ isNodeVisible?: (node: InternalNodeBase) => boolean;
28
32
  };
29
33
  export type IsValidParams = {
30
34
  handle: Pick<Handle, 'nodeId' | 'id' | 'type'> | null;
@@ -39,7 +43,7 @@ export type IsValidParams = {
39
43
  nodeLookup: NodeLookup;
40
44
  };
41
45
  export type XYHandleInstance = {
42
- onPointerDown: (event: MouseEvent | TouchEvent, params: OnPointerDownParams) => void;
46
+ onPointerDown: <NodeType extends InternalNodeBase = InternalNodeBase>(event: MouseEvent | TouchEvent, params: OnPointerDownParams<NodeType>) => void;
43
47
  isValid: (event: MouseEvent | TouchEvent, params: IsValidParams) => Result;
44
48
  };
45
49
  export type Result = {
@@ -48,4 +52,3 @@ export type Result = {
48
52
  connection: Connection | null;
49
53
  toHandle: Handle | null;
50
54
  };
51
- //# sourceMappingURL=types.d.ts.map
@@ -1,9 +1,9 @@
1
- import type { HandleType, XYPosition, Handle, NodeLookup, ConnectionMode } from '../types';
1
+ import type { HandleType, XYPosition, Handle, InternalNodeBase, NodeLookup, ConnectionMode } from '../types';
2
2
  export declare function getClosestHandle(position: XYPosition, connectionRadius: number, nodeLookup: NodeLookup, fromHandle: {
3
3
  nodeId: string;
4
4
  type: HandleType;
5
5
  id?: string | null;
6
- }): Handle | null;
6
+ }, isNodeVisible?: (node: InternalNodeBase) => boolean): Handle | null;
7
7
  /**
8
8
  * Stage 2 drop-target resolver for connection drags.
9
9
  *
@@ -22,8 +22,7 @@ export declare function getFloatingDropTarget(position: XYPosition, nodeLookup:
22
22
  nodeId: string;
23
23
  type: HandleType;
24
24
  id?: string | null;
25
- }): Handle | null;
25
+ }, isNodeVisible?: (node: InternalNodeBase) => boolean): Handle | null;
26
26
  export declare function getHandle(nodeId: string, handleType: HandleType, handleId: string | null, nodeLookup: NodeLookup, connectionMode: ConnectionMode, withAbsolutePosition?: boolean): Handle | null;
27
27
  export declare function getHandleType(edgeUpdaterType: HandleType | undefined, handleDomNode: Element | null): HandleType | null;
28
28
  export declare function isConnectionValid(isInsideConnectionRadius: boolean, isHandleValid: boolean): boolean | null;
29
- //# sourceMappingURL=utils.d.ts.map
@@ -25,4 +25,3 @@ export declare function XYMinimap({ domNode, panZoom, getTransform, getViewScale
25
25
  destroy: () => void;
26
26
  pointer: typeof pointer;
27
27
  };
28
- //# sourceMappingURL=index.d.ts.map
@@ -9,4 +9,3 @@ export type ZoomPanValues = {
9
9
  isPanScrolling: boolean;
10
10
  };
11
11
  export declare function XYPanZoom({ domNode, minZoom, maxZoom, translateExtent, viewport, onPanZoom, onPanZoomStart, onPanZoomEnd, onDraggingChange, }: PanZoomParams): PanZoomInstance;
12
- //# sourceMappingURL=XYPanZoom.d.ts.map
@@ -43,4 +43,3 @@ export declare function createZoomOnScrollHandler({ noWheelClassName, preventScr
43
43
  export declare function createPanZoomStartHandler({ zoomPanValues, onDraggingChange, onPanZoomStart }: PanZoomStartParams): (event: D3ZoomEvent<HTMLDivElement, any>) => void;
44
44
  export declare function createPanZoomHandler({ zoomPanValues, panOnDrag, onPaneContextMenu, onTransformChange, onPanZoom, }: PanZoomParams): (event: D3ZoomEvent<HTMLDivElement, any>) => void;
45
45
  export declare function createPanZoomEndHandler({ zoomPanValues, panOnDrag, panOnScroll, onDraggingChange, onPanZoomEnd, onPaneContextMenu, }: PanZoomEndParams): (event: D3ZoomEvent<HTMLDivElement, any>) => void;
46
- //# sourceMappingURL=eventhandler.d.ts.map
@@ -1,5 +1,5 @@
1
1
  export type FilterParams = {
2
- zoomActivationKeyPressed: boolean;
2
+ zoomActivationKeyPressed?: boolean;
3
3
  zoomOnScroll: boolean;
4
4
  zoomOnPinch: boolean;
5
5
  panOnDrag: boolean | number[];
@@ -9,7 +9,6 @@ export type FilterParams = {
9
9
  noWheelClassName: string;
10
10
  noPanClassName: string;
11
11
  lib: string;
12
- connectionInProgress: boolean;
12
+ connectionInProgress?: boolean;
13
13
  };
14
14
  export declare function createFilter({ zoomActivationKeyPressed, zoomOnScroll, zoomOnPinch, panOnDrag, panOnScroll, zoomOnDoubleClick, userSelectionActive, noWheelClassName, noPanClassName, lib, connectionInProgress, }: FilterParams): (event: any) => boolean;
15
- //# sourceMappingURL=filter.d.ts.map
@@ -1,2 +1 @@
1
1
  export * from './XYPanZoom';
2
- //# sourceMappingURL=index.d.ts.map
@@ -6,4 +6,3 @@ export declare const isWrappedWithClass: (event: any, className: string | undefi
6
6
  export declare const isRightClickPan: (panOnDrag: boolean | number[], usedButton: number) => boolean;
7
7
  export declare const getD3Transition: (selection: D3SelectionInstance, duration?: number, ease?: (t: number) => number, onEnd?: () => void) => D3SelectionInstance | import("d3-transition").Transition<Element, unknown, null, undefined>;
8
8
  export declare const wheelDelta: (event: any) => number;
9
- //# sourceMappingURL=utils.d.ts.map
@@ -46,4 +46,3 @@ export type XYResizerInstance = {
46
46
  };
47
47
  export declare function XYResizer({ domNode, nodeId, getStoreItems, onChange, onEnd }: XYResizerParams): XYResizerInstance;
48
48
  export {};
49
- //# sourceMappingURL=XYResizer.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export * from './types';
2
2
  export * from './XYResizer';
3
- //# sourceMappingURL=index.d.ts.map
@@ -56,4 +56,3 @@ export type OnResizeStart = OnResizeHandler;
56
56
  export type OnResize = OnResizeHandler<ResizeParamsWithDirection>;
57
57
  export type OnResizeEnd = OnResizeHandler;
58
58
  export {};
59
- //# sourceMappingURL=types.d.ts.map
@@ -73,4 +73,3 @@ export declare function getDimensionsAfterResize(startValues: StartValues, contr
73
73
  y: number;
74
74
  };
75
75
  export {};
76
- //# sourceMappingURL=utils.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angflow/system",
3
- "version": "0.0.94",
3
+ "version": "0.1.2",
4
4
  "description": "xyflow core system that powers React Flow and Svelte Flow.",
5
5
  "keywords": [
6
6
  "node-based UI",
@@ -28,6 +28,7 @@
28
28
  "import": "./dist/esm/index.mjs"
29
29
  },
30
30
  "browser": {
31
+ "types": "./dist/esm/index.d.ts",
31
32
  "import": "./dist/esm/index.js",
32
33
  "require": "./dist/umd/index.js"
33
34
  },
@@ -36,12 +37,15 @@
36
37
  },
37
38
  "sideEffects": false,
38
39
  "license": "MIT",
40
+ "engines": {
41
+ "node": ">=20"
42
+ },
39
43
  "publishConfig": {
40
44
  "access": "public"
41
45
  },
42
46
  "repository": {
43
47
  "type": "git",
44
- "url": "https://github.com/angflow/angflow.git",
48
+ "url": "git+https://github.com/shisu89/angflow.git",
45
49
  "directory": "packages/system"
46
50
  },
47
51
  "scripts": {
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEvD,eAAO,MAAM,aAAa;;;yBAKH,MAAM;;;;mBAIZ,MAAM;qBACJ,MAAM;2BAET,UAAU,sCACc;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE;;yBAMzF,MAAM;mBACZ,MAAM;qBAEL,MAAM;;;CAMvB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,gBAG5B,CAAC;AAEF,eAAO,MAAM,oBAAoB,UAA2B,CAAC;AAE7D,eAAO,MAAM,sBAAsB;;;kEAK6B;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;CAiB1G,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,OAAO,sBAAsB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
@@ -1,43 +0,0 @@
1
- import { CoordinateExtent, HandleType } from './types';
2
- export declare const errorMessages: {
3
- error001: () => string;
4
- error002: () => string;
5
- error003: (nodeType: string) => string;
6
- error004: () => string;
7
- error005: () => string;
8
- error006: () => string;
9
- error007: (id: string) => string;
10
- error009: (type: string) => string;
11
- error008: (handleType: HandleType, { id, sourceHandle, targetHandle }: {
12
- id: string;
13
- sourceHandle: string | null;
14
- targetHandle: string | null;
15
- }) => string;
16
- error010: () => string;
17
- error011: (edgeType: string) => string;
18
- error012: (id: string) => string;
19
- error013: (lib?: string) => string;
20
- error014: () => string;
21
- error015: () => string;
22
- };
23
- export declare const infiniteExtent: CoordinateExtent;
24
- export declare const elementSelectionKeys: string[];
25
- export declare const defaultAriaLabelConfig: {
26
- 'node.a11yDescription.default': string;
27
- 'node.a11yDescription.keyboardDisabled': string;
28
- 'node.a11yDescription.ariaLiveMessage': ({ direction, x, y }: {
29
- direction: string;
30
- x: number;
31
- y: number;
32
- }) => string;
33
- 'edge.a11yDescription.default': string;
34
- 'controls.ariaLabel': string;
35
- 'controls.zoomIn.ariaLabel': string;
36
- 'controls.zoomOut.ariaLabel': string;
37
- 'controls.fitView.ariaLabel': string;
38
- 'controls.interactive.ariaLabel': string;
39
- 'minimap.ariaLabel': string;
40
- 'handle.ariaLabel': string;
41
- };
42
- export type AriaLabelConfig = typeof defaultAriaLabelConfig;
43
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEvD,eAAO,MAAM,aAAa;;;yBAKH,MAAM;;;;mBAIZ,MAAM;qBACJ,MAAM;2BAET,UAAU,sCACc;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE;;yBAMzF,MAAM;mBACZ,MAAM;qBAEL,MAAM;;;CAMvB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,gBAG5B,CAAC;AAEF,eAAO,MAAM,oBAAoB,UAA2B,CAAC;AAE7D,eAAO,MAAM,sBAAsB;;;kEAK6B;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;CAiB1G,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,OAAO,sBAAsB,CAAC"}
@@ -1,9 +0,0 @@
1
- export * from './constants';
2
- export * from './types';
3
- export * from './utils';
4
- export * from './xydrag';
5
- export * from './xyhandle';
6
- export * from './xyminimap';
7
- export * from './xypanzoom';
8
- export * from './xyresizer';
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
@@ -1,64 +0,0 @@
1
- import type { XYPosition, Dimensions, NodeBase, EdgeBase } from '.';
2
- export type NodeDimensionChange = {
3
- id: string;
4
- type: 'dimensions';
5
- dimensions?: Dimensions;
6
- resizing?: boolean;
7
- setAttributes?: boolean | 'width' | 'height';
8
- };
9
- export type NodePositionChange = {
10
- id: string;
11
- type: 'position';
12
- position?: XYPosition;
13
- positionAbsolute?: XYPosition;
14
- dragging?: boolean;
15
- };
16
- export type NodeSelectionChange = {
17
- id: string;
18
- type: 'select';
19
- selected: boolean;
20
- };
21
- export type NodeRemoveChange = {
22
- id: string;
23
- type: 'remove';
24
- };
25
- export type NodeAddChange<NodeType extends NodeBase = NodeBase> = {
26
- item: NodeType;
27
- type: 'add';
28
- index?: number;
29
- };
30
- export type NodeReplaceChange<NodeType extends NodeBase = NodeBase> = {
31
- id: string;
32
- item: NodeType;
33
- type: 'replace';
34
- };
35
- /**
36
- * The [`onNodesChange`](/api-reference/react-flow#on-nodes-change) callback takes
37
- *an array of `NodeChange` objects that you should use to update your flow's state.
38
- *The `NodeChange` type is a union of six different object types that represent that
39
- *various ways an node can change in a flow.
40
- * @public
41
- */
42
- export type NodeChange<NodeType extends NodeBase = NodeBase> = NodeDimensionChange | NodePositionChange | NodeSelectionChange | NodeRemoveChange | NodeAddChange<NodeType> | NodeReplaceChange<NodeType>;
43
- export type EdgeSelectionChange = NodeSelectionChange;
44
- export type EdgeRemoveChange = NodeRemoveChange;
45
- export type EdgeAddChange<EdgeType extends EdgeBase = EdgeBase> = {
46
- item: EdgeType;
47
- type: 'add';
48
- index?: number;
49
- };
50
- export type EdgeReplaceChange<EdgeType extends EdgeBase = EdgeBase> = {
51
- id: string;
52
- item: EdgeType;
53
- type: 'replace';
54
- };
55
- /**
56
- * The [`onEdgesChange`](/api-reference/react-flow#on-edges-change) callback takes
57
- *an array of `EdgeChange` objects that you should use to update your flow's state.
58
- *The `EdgeChange` type is a union of four different object types that represent that
59
- *various ways an edge can change in a flow.
60
- *
61
- * @public
62
- */
63
- export type EdgeChange<EdgeType extends EdgeBase = EdgeBase> = EdgeSelectionChange | EdgeRemoveChange | EdgeAddChange<EdgeType> | EdgeReplaceChange<EdgeType>;
64
- //# sourceMappingURL=changes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"changes.d.ts","sourceRoot":"","sources":["../../../src/types/changes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,CAAC;AAEpE,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,YAAY,CAAC;IACnB,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC;CAC9C,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB,gBAAgB,CAAC,EAAE,UAAU,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,aAAa,CAAC,QAAQ,SAAS,QAAQ,GAAG,QAAQ,IAAI;IAChE,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,KAAK,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,QAAQ,SAAS,QAAQ,GAAG,QAAQ,IAAI;IACpE,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,CAAC,QAAQ,SAAS,QAAQ,GAAG,QAAQ,IACvD,mBAAmB,GACnB,kBAAkB,GAClB,mBAAmB,GACnB,gBAAgB,GAChB,aAAa,CAAC,QAAQ,CAAC,GACvB,iBAAiB,CAAC,QAAQ,CAAC,CAAC;AAEhC,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;AACtD,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;AAChD,MAAM,MAAM,aAAa,CAAC,QAAQ,SAAS,QAAQ,GAAG,QAAQ,IAAI;IAChE,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,KAAK,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,QAAQ,SAAS,QAAQ,GAAG,QAAQ,IAAI;IACpE,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,CAAC,QAAQ,SAAS,QAAQ,GAAG,QAAQ,IACvD,mBAAmB,GACnB,gBAAgB,GAChB,aAAa,CAAC,QAAQ,CAAC,GACvB,iBAAiB,CAAC,QAAQ,CAAC,CAAC"}
@@ -1,140 +0,0 @@
1
- import { Position } from './utils';
2
- export type EdgeBase<EdgeData extends Record<string, unknown> = Record<string, unknown>, EdgeType extends string | undefined = string | undefined> = {
3
- /** Unique id of an edge. */
4
- id: string;
5
- /** Type of edge defined in `edgeTypes`. */
6
- type?: EdgeType;
7
- /** Id of source node. */
8
- source: string;
9
- /** Id of target node. */
10
- target: string;
11
- /** Id of source handle, only needed if there are multiple handles per node. */
12
- sourceHandle?: string | null;
13
- /** Id of target handle, only needed if there are multiple handles per node. */
14
- targetHandle?: string | null;
15
- animated?: boolean;
16
- hidden?: boolean;
17
- deletable?: boolean;
18
- selectable?: boolean;
19
- /** Arbitrary data passed to an edge. */
20
- data?: EdgeData;
21
- selected?: boolean;
22
- /**
23
- * Set the marker on the beginning of an edge.
24
- * @example 'arrow', 'arrowclosed' or custom marker
25
- */
26
- markerStart?: EdgeMarkerType;
27
- /**
28
- * Set the marker on the end of an edge.
29
- * @example 'arrow', 'arrowclosed' or custom marker
30
- */
31
- markerEnd?: EdgeMarkerType;
32
- zIndex?: number;
33
- ariaLabel?: string;
34
- /**
35
- * ReactFlow renders an invisible path around each edge to make them easier to click or tap on.
36
- * This property sets the width of that invisible path.
37
- */
38
- interactionWidth?: number;
39
- };
40
- export type SmoothStepPathOptions = {
41
- offset?: number;
42
- borderRadius?: number;
43
- stepPosition?: number;
44
- };
45
- export type StepPathOptions = {
46
- offset?: number;
47
- };
48
- export type BezierPathOptions = {
49
- curvature?: number;
50
- };
51
- /**
52
- * @inline
53
- */
54
- export type DefaultEdgeOptionsBase<EdgeType extends EdgeBase> = Omit<EdgeType, 'id' | 'source' | 'target' | 'sourceHandle' | 'targetHandle' | 'selected'>;
55
- /**
56
- * If you set the `connectionLineType` prop on your [`<ReactFlow />`](/api-reference/react-flow#connection-connectionLineType)
57
- *component, it will dictate the style of connection line rendered when creating
58
- *new edges.
59
- *
60
- * @public
61
- *
62
- * @remarks If you choose to render a custom connection line component, this value will be
63
- *passed to your component as part of its [`ConnectionLineComponentProps`](/api-reference/types/connection-line-component-props).
64
- */
65
- export declare enum ConnectionLineType {
66
- Bezier = "default",
67
- Straight = "straight",
68
- Step = "step",
69
- SmoothStep = "smoothstep",
70
- SimpleBezier = "simplebezier"
71
- }
72
- /**
73
- * Edges can optionally have markers at the start and end of an edge. The `EdgeMarker`
74
- *type is used to configure those markers! Check the docs for [`MarkerType`](/api-reference/types/marker-type)
75
- *for details on what types of edge marker are available.
76
- *
77
- * @public
78
- */
79
- export type EdgeMarker = {
80
- type: MarkerType | `${MarkerType}`;
81
- color?: string | null;
82
- width?: number;
83
- height?: number;
84
- markerUnits?: string;
85
- orient?: string;
86
- strokeWidth?: number;
87
- };
88
- export type EdgeMarkerType = string | EdgeMarker;
89
- /**
90
- * Edges may optionally have a marker on either end. The MarkerType type enumerates
91
- * the options available to you when configuring a given marker.
92
- *
93
- * @public
94
- */
95
- export declare enum MarkerType {
96
- Arrow = "arrow",
97
- ArrowClosed = "arrowclosed"
98
- }
99
- export type MarkerProps = EdgeMarker & {
100
- id: string;
101
- };
102
- /**
103
- * @inline
104
- */
105
- export type EdgePosition = {
106
- sourceX: number;
107
- sourceY: number;
108
- targetX: number;
109
- targetY: number;
110
- sourcePosition: Position;
111
- targetPosition: Position;
112
- };
113
- export type EdgeLookup<EdgeType extends EdgeBase = EdgeBase> = Map<string, EdgeType>;
114
- export type EdgeToolbarBaseProps = {
115
- /**
116
- * The `x` position of the edge toolbar.
117
- */
118
- x: number;
119
- /**
120
- * The `y` position of the edge toolbar.
121
- */
122
- y: number;
123
- /** If `true`, edge toolbar is visible even if edge is not selected.
124
- * @default false
125
- */
126
- isVisible?: boolean;
127
- /**
128
- * Align the vertical toolbar position relative to the passed x position.
129
- * @default "center"
130
- * @example 'left', 'center', 'right'
131
- */
132
- alignX?: 'left' | 'center' | 'right';
133
- /**
134
- * Align the horizontal toolbar position relative to the passed y position.
135
- * @default "center"
136
- * @example 'top', 'center', 'bottom'
137
- */
138
- alignY?: 'top' | 'center' | 'bottom';
139
- };
140
- //# sourceMappingURL=edges.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"edges.d.ts","sourceRoot":"","sources":["../../../src/types/edges.ts"],"names":[],"mappings":"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"}