@yh-ui/flow 0.1.21

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 (354) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +234 -0
  3. package/dist/Flow.d.vue.ts +306 -0
  4. package/dist/Flow.vue +959 -0
  5. package/dist/Flow.vue.d.ts +306 -0
  6. package/dist/__tests__/ai-workflow.ssr.test.cjs +352 -0
  7. package/dist/__tests__/ai-workflow.ssr.test.d.ts +1 -0
  8. package/dist/__tests__/ai-workflow.ssr.test.mjs +283 -0
  9. package/dist/__tests__/ai-workflow.test.cjs +109 -0
  10. package/dist/__tests__/ai-workflow.test.d.ts +1 -0
  11. package/dist/__tests__/ai-workflow.test.mjs +112 -0
  12. package/dist/__tests__/bpmn.ssr.test.cjs +278 -0
  13. package/dist/__tests__/bpmn.ssr.test.d.ts +1 -0
  14. package/dist/__tests__/bpmn.ssr.test.mjs +237 -0
  15. package/dist/__tests__/bpmn.test.cjs +103 -0
  16. package/dist/__tests__/bpmn.test.d.ts +1 -0
  17. package/dist/__tests__/bpmn.test.mjs +106 -0
  18. package/dist/__tests__/custom-types.test.cjs +300 -0
  19. package/dist/__tests__/custom-types.test.d.ts +1 -0
  20. package/dist/__tests__/custom-types.test.mjs +248 -0
  21. package/dist/__tests__/edge.test.cjs +56 -0
  22. package/dist/__tests__/edge.test.d.ts +1 -0
  23. package/dist/__tests__/edge.test.mjs +69 -0
  24. package/dist/__tests__/event-bus.test.cjs +80 -0
  25. package/dist/__tests__/event-bus.test.d.ts +1 -0
  26. package/dist/__tests__/event-bus.test.mjs +51 -0
  27. package/dist/__tests__/flow.ssr.test.cjs +156 -0
  28. package/dist/__tests__/flow.ssr.test.d.ts +1 -0
  29. package/dist/__tests__/flow.ssr.test.mjs +112 -0
  30. package/dist/__tests__/geometry.test.cjs +191 -0
  31. package/dist/__tests__/geometry.test.d.ts +1 -0
  32. package/dist/__tests__/geometry.test.mjs +105 -0
  33. package/dist/__tests__/graph.test.cjs +115 -0
  34. package/dist/__tests__/graph.test.d.ts +1 -0
  35. package/dist/__tests__/graph.test.mjs +85 -0
  36. package/dist/__tests__/history-plugin.test.cjs +191 -0
  37. package/dist/__tests__/history-plugin.test.d.ts +1 -0
  38. package/dist/__tests__/history-plugin.test.mjs +161 -0
  39. package/dist/__tests__/history.test.cjs +81 -0
  40. package/dist/__tests__/history.test.d.ts +1 -0
  41. package/dist/__tests__/history.test.mjs +43 -0
  42. package/dist/__tests__/layout.test.cjs +213 -0
  43. package/dist/__tests__/layout.test.d.ts +1 -0
  44. package/dist/__tests__/layout.test.mjs +170 -0
  45. package/dist/__tests__/node-edit-panel.ssr.test.cjs +168 -0
  46. package/dist/__tests__/node-edit-panel.ssr.test.d.ts +1 -0
  47. package/dist/__tests__/node-edit-panel.ssr.test.mjs +118 -0
  48. package/dist/__tests__/node-group-plugin.test.cjs +235 -0
  49. package/dist/__tests__/node-group-plugin.test.d.ts +1 -0
  50. package/dist/__tests__/node-group-plugin.test.mjs +187 -0
  51. package/dist/__tests__/node-handles.test.cjs +340 -0
  52. package/dist/__tests__/node-handles.test.d.ts +1 -0
  53. package/dist/__tests__/node-handles.test.mjs +230 -0
  54. package/dist/__tests__/plugin.test.cjs +151 -0
  55. package/dist/__tests__/plugin.test.d.ts +1 -0
  56. package/dist/__tests__/plugin.test.mjs +116 -0
  57. package/dist/__tests__/transform.test.cjs +58 -0
  58. package/dist/__tests__/transform.test.d.ts +1 -0
  59. package/dist/__tests__/transform.test.mjs +38 -0
  60. package/dist/__tests__/useAlignment.test.cjs +91 -0
  61. package/dist/__tests__/useAlignment.test.d.ts +1 -0
  62. package/dist/__tests__/useAlignment.test.mjs +52 -0
  63. package/dist/__tests__/useEdges.test.cjs +117 -0
  64. package/dist/__tests__/useEdges.test.d.ts +1 -0
  65. package/dist/__tests__/useEdges.test.mjs +80 -0
  66. package/dist/__tests__/useKeyboard.test.cjs +88 -0
  67. package/dist/__tests__/useKeyboard.test.d.ts +1 -0
  68. package/dist/__tests__/useKeyboard.test.mjs +56 -0
  69. package/dist/__tests__/useNodes.test.cjs +150 -0
  70. package/dist/__tests__/useNodes.test.d.ts +1 -0
  71. package/dist/__tests__/useNodes.test.mjs +80 -0
  72. package/dist/__tests__/useSelection.test.cjs +112 -0
  73. package/dist/__tests__/useSelection.test.d.ts +1 -0
  74. package/dist/__tests__/useSelection.test.mjs +76 -0
  75. package/dist/__tests__/useViewport.test.cjs +171 -0
  76. package/dist/__tests__/useViewport.test.d.ts +1 -0
  77. package/dist/__tests__/useViewport.test.mjs +82 -0
  78. package/dist/__tests__/utils/ssr.cjs +124 -0
  79. package/dist/__tests__/utils/ssr.d.ts +33 -0
  80. package/dist/__tests__/utils/ssr.mjs +129 -0
  81. package/dist/__tests__/validation.test.cjs +95 -0
  82. package/dist/__tests__/validation.test.d.ts +1 -0
  83. package/dist/__tests__/validation.test.mjs +36 -0
  84. package/dist/components/AiNodeEditPanel.d.vue.ts +13 -0
  85. package/dist/components/AiNodeEditPanel.vue +413 -0
  86. package/dist/components/AiNodeEditPanel.vue.d.ts +13 -0
  87. package/dist/components/EdgeEditPanel.d.vue.ts +14 -0
  88. package/dist/components/EdgeEditPanel.vue +205 -0
  89. package/dist/components/EdgeEditPanel.vue.d.ts +14 -0
  90. package/dist/components/NodeEditPanel.d.vue.ts +13 -0
  91. package/dist/components/NodeEditPanel.vue +214 -0
  92. package/dist/components/NodeEditPanel.vue.d.ts +13 -0
  93. package/dist/components/edges/BaseEdge.d.vue.ts +23 -0
  94. package/dist/components/edges/BaseEdge.vue +55 -0
  95. package/dist/components/edges/BaseEdge.vue.d.ts +23 -0
  96. package/dist/components/edges/BezierEdge.d.vue.ts +22 -0
  97. package/dist/components/edges/BezierEdge.vue +57 -0
  98. package/dist/components/edges/BezierEdge.vue.d.ts +22 -0
  99. package/dist/components/edges/DataFlowEdge.d.vue.ts +41 -0
  100. package/dist/components/edges/DataFlowEdge.vue +211 -0
  101. package/dist/components/edges/DataFlowEdge.vue.d.ts +41 -0
  102. package/dist/components/edges/SmoothEdge.d.vue.ts +22 -0
  103. package/dist/components/edges/SmoothEdge.vue +53 -0
  104. package/dist/components/edges/SmoothEdge.vue.d.ts +22 -0
  105. package/dist/components/edges/StepEdge.d.vue.ts +22 -0
  106. package/dist/components/edges/StepEdge.vue +42 -0
  107. package/dist/components/edges/StepEdge.vue.d.ts +22 -0
  108. package/dist/components/edges/index.cjs +41 -0
  109. package/dist/components/edges/index.d.ts +5 -0
  110. package/dist/components/edges/index.mjs +5 -0
  111. package/dist/components/nodes/BaseNode.d.vue.ts +25 -0
  112. package/dist/components/nodes/BaseNode.vue +93 -0
  113. package/dist/components/nodes/BaseNode.vue.d.ts +25 -0
  114. package/dist/components/nodes/CustomNode.d.vue.ts +36 -0
  115. package/dist/components/nodes/CustomNode.vue +44 -0
  116. package/dist/components/nodes/CustomNode.vue.d.ts +36 -0
  117. package/dist/components/nodes/DatabaseNode.d.vue.ts +19 -0
  118. package/dist/components/nodes/DatabaseNode.vue +62 -0
  119. package/dist/components/nodes/DatabaseNode.vue.d.ts +19 -0
  120. package/dist/components/nodes/DiamondNode.d.vue.ts +19 -0
  121. package/dist/components/nodes/DiamondNode.vue +62 -0
  122. package/dist/components/nodes/DiamondNode.vue.d.ts +19 -0
  123. package/dist/components/nodes/GroupNode.d.vue.ts +31 -0
  124. package/dist/components/nodes/GroupNode.vue +48 -0
  125. package/dist/components/nodes/GroupNode.vue.d.ts +31 -0
  126. package/dist/components/nodes/InputNode.d.vue.ts +23 -0
  127. package/dist/components/nodes/InputNode.vue +63 -0
  128. package/dist/components/nodes/InputNode.vue.d.ts +23 -0
  129. package/dist/components/nodes/NodeResizer.d.vue.ts +27 -0
  130. package/dist/components/nodes/NodeResizer.vue +89 -0
  131. package/dist/components/nodes/NodeResizer.vue.d.ts +27 -0
  132. package/dist/components/nodes/NodeToolbar.d.vue.ts +32 -0
  133. package/dist/components/nodes/NodeToolbar.vue +101 -0
  134. package/dist/components/nodes/NodeToolbar.vue.d.ts +32 -0
  135. package/dist/components/nodes/OutputNode.d.vue.ts +21 -0
  136. package/dist/components/nodes/OutputNode.vue +53 -0
  137. package/dist/components/nodes/OutputNode.vue.d.ts +21 -0
  138. package/dist/components/nodes/ai-workflow/AiAgentNode.d.vue.ts +20 -0
  139. package/dist/components/nodes/ai-workflow/AiAgentNode.vue +59 -0
  140. package/dist/components/nodes/ai-workflow/AiAgentNode.vue.d.ts +20 -0
  141. package/dist/components/nodes/ai-workflow/AiConditionNode.d.vue.ts +19 -0
  142. package/dist/components/nodes/ai-workflow/AiConditionNode.vue +65 -0
  143. package/dist/components/nodes/ai-workflow/AiConditionNode.vue.d.ts +19 -0
  144. package/dist/components/nodes/ai-workflow/AiEndNode.d.vue.ts +19 -0
  145. package/dist/components/nodes/ai-workflow/AiEndNode.vue +47 -0
  146. package/dist/components/nodes/ai-workflow/AiEndNode.vue.d.ts +19 -0
  147. package/dist/components/nodes/ai-workflow/AiLlmNode.d.vue.ts +19 -0
  148. package/dist/components/nodes/ai-workflow/AiLlmNode.vue +64 -0
  149. package/dist/components/nodes/ai-workflow/AiLlmNode.vue.d.ts +19 -0
  150. package/dist/components/nodes/ai-workflow/AiMemoryNode.d.vue.ts +19 -0
  151. package/dist/components/nodes/ai-workflow/AiMemoryNode.vue +59 -0
  152. package/dist/components/nodes/ai-workflow/AiMemoryNode.vue.d.ts +19 -0
  153. package/dist/components/nodes/ai-workflow/AiPromptNode.d.vue.ts +19 -0
  154. package/dist/components/nodes/ai-workflow/AiPromptNode.vue +61 -0
  155. package/dist/components/nodes/ai-workflow/AiPromptNode.vue.d.ts +19 -0
  156. package/dist/components/nodes/ai-workflow/AiStartNode.d.vue.ts +19 -0
  157. package/dist/components/nodes/ai-workflow/AiStartNode.vue +47 -0
  158. package/dist/components/nodes/ai-workflow/AiStartNode.vue.d.ts +19 -0
  159. package/dist/components/nodes/ai-workflow/AiToolNode.d.vue.ts +19 -0
  160. package/dist/components/nodes/ai-workflow/AiToolNode.vue +59 -0
  161. package/dist/components/nodes/ai-workflow/AiToolNode.vue.d.ts +19 -0
  162. package/dist/components/nodes/ai-workflow/index.cjs +109 -0
  163. package/dist/components/nodes/ai-workflow/index.d.ts +23 -0
  164. package/dist/components/nodes/ai-workflow/index.mjs +37 -0
  165. package/dist/components/nodes/bpmn/BpmnEndEvent.d.vue.ts +19 -0
  166. package/dist/components/nodes/bpmn/BpmnEndEvent.vue +50 -0
  167. package/dist/components/nodes/bpmn/BpmnEndEvent.vue.d.ts +19 -0
  168. package/dist/components/nodes/bpmn/BpmnExclusiveGateway.d.vue.ts +19 -0
  169. package/dist/components/nodes/bpmn/BpmnExclusiveGateway.vue +60 -0
  170. package/dist/components/nodes/bpmn/BpmnExclusiveGateway.vue.d.ts +19 -0
  171. package/dist/components/nodes/bpmn/BpmnInclusiveGateway.d.vue.ts +19 -0
  172. package/dist/components/nodes/bpmn/BpmnInclusiveGateway.vue +60 -0
  173. package/dist/components/nodes/bpmn/BpmnInclusiveGateway.vue.d.ts +19 -0
  174. package/dist/components/nodes/bpmn/BpmnParallelGateway.d.vue.ts +19 -0
  175. package/dist/components/nodes/bpmn/BpmnParallelGateway.vue +60 -0
  176. package/dist/components/nodes/bpmn/BpmnParallelGateway.vue.d.ts +19 -0
  177. package/dist/components/nodes/bpmn/BpmnServiceTask.d.vue.ts +19 -0
  178. package/dist/components/nodes/bpmn/BpmnServiceTask.vue +55 -0
  179. package/dist/components/nodes/bpmn/BpmnServiceTask.vue.d.ts +19 -0
  180. package/dist/components/nodes/bpmn/BpmnStartEvent.d.vue.ts +19 -0
  181. package/dist/components/nodes/bpmn/BpmnStartEvent.vue +50 -0
  182. package/dist/components/nodes/bpmn/BpmnStartEvent.vue.d.ts +19 -0
  183. package/dist/components/nodes/bpmn/BpmnTask.d.vue.ts +19 -0
  184. package/dist/components/nodes/bpmn/BpmnTask.vue +54 -0
  185. package/dist/components/nodes/bpmn/BpmnTask.vue.d.ts +19 -0
  186. package/dist/components/nodes/bpmn/BpmnUserTask.d.vue.ts +19 -0
  187. package/dist/components/nodes/bpmn/BpmnUserTask.vue +55 -0
  188. package/dist/components/nodes/bpmn/BpmnUserTask.vue.d.ts +19 -0
  189. package/dist/components/nodes/bpmn/index.cjs +109 -0
  190. package/dist/components/nodes/bpmn/index.d.ts +23 -0
  191. package/dist/components/nodes/bpmn/index.mjs +37 -0
  192. package/dist/components/nodes/index.cjs +246 -0
  193. package/dist/components/nodes/index.d.ts +13 -0
  194. package/dist/components/nodes/index.mjs +44 -0
  195. package/dist/core/FlowContext.cjs +21 -0
  196. package/dist/core/FlowContext.d.ts +10 -0
  197. package/dist/core/FlowContext.mjs +13 -0
  198. package/dist/core/index.cjs +104 -0
  199. package/dist/core/index.d.ts +9 -0
  200. package/dist/core/index.mjs +9 -0
  201. package/dist/core/useAlignment.cjs +81 -0
  202. package/dist/core/useAlignment.d.ts +33 -0
  203. package/dist/core/useAlignment.mjs +71 -0
  204. package/dist/core/useEdges.cjs +132 -0
  205. package/dist/core/useEdges.d.ts +29 -0
  206. package/dist/core/useEdges.mjs +89 -0
  207. package/dist/core/useFlow.cjs +40 -0
  208. package/dist/core/useFlow.d.ts +31 -0
  209. package/dist/core/useFlow.mjs +32 -0
  210. package/dist/core/useHistory.cjs +63 -0
  211. package/dist/core/useHistory.d.ts +15 -0
  212. package/dist/core/useHistory.mjs +54 -0
  213. package/dist/core/useKeyboard.cjs +54 -0
  214. package/dist/core/useKeyboard.d.ts +18 -0
  215. package/dist/core/useKeyboard.mjs +45 -0
  216. package/dist/core/useNodeDistribution.cjs +171 -0
  217. package/dist/core/useNodeDistribution.d.ts +12 -0
  218. package/dist/core/useNodeDistribution.mjs +145 -0
  219. package/dist/core/useNodes.cjs +146 -0
  220. package/dist/core/useNodes.d.ts +26 -0
  221. package/dist/core/useNodes.mjs +101 -0
  222. package/dist/core/useSelection.cjs +83 -0
  223. package/dist/core/useSelection.d.ts +18 -0
  224. package/dist/core/useSelection.mjs +53 -0
  225. package/dist/core/useViewport.cjs +157 -0
  226. package/dist/core/useViewport.d.ts +65 -0
  227. package/dist/core/useViewport.mjs +125 -0
  228. package/dist/flow.cjs +240 -0
  229. package/dist/flow.d.ts +276 -0
  230. package/dist/flow.mjs +230 -0
  231. package/dist/index.cjs +378 -0
  232. package/dist/index.d.ts +28 -0
  233. package/dist/index.mjs +50 -0
  234. package/dist/plugins/index.cjs +96 -0
  235. package/dist/plugins/index.d.ts +34 -0
  236. package/dist/plugins/index.mjs +47 -0
  237. package/dist/plugins/plugin.cjs +117 -0
  238. package/dist/plugins/plugin.d.ts +72 -0
  239. package/dist/plugins/plugin.mjs +110 -0
  240. package/dist/plugins/plugins/controls.cjs +38 -0
  241. package/dist/plugins/plugins/controls.d.ts +12 -0
  242. package/dist/plugins/plugins/controls.mjs +28 -0
  243. package/dist/plugins/plugins/export.cjs +102 -0
  244. package/dist/plugins/plugins/export.d.ts +12 -0
  245. package/dist/plugins/plugins/export.mjs +89 -0
  246. package/dist/plugins/plugins/grid.cjs +36 -0
  247. package/dist/plugins/plugins/grid.d.ts +11 -0
  248. package/dist/plugins/plugins/grid.mjs +26 -0
  249. package/dist/plugins/plugins/history.cjs +140 -0
  250. package/dist/plugins/plugins/history.d.ts +53 -0
  251. package/dist/plugins/plugins/history.mjs +132 -0
  252. package/dist/plugins/plugins/index.cjs +104 -0
  253. package/dist/plugins/plugins/index.d.ts +9 -0
  254. package/dist/plugins/plugins/index.mjs +9 -0
  255. package/dist/plugins/plugins/keyboard.cjs +27 -0
  256. package/dist/plugins/plugins/keyboard.d.ts +10 -0
  257. package/dist/plugins/plugins/keyboard.mjs +18 -0
  258. package/dist/plugins/plugins/layout.cjs +275 -0
  259. package/dist/plugins/plugins/layout.d.ts +34 -0
  260. package/dist/plugins/plugins/layout.mjs +246 -0
  261. package/dist/plugins/plugins/minimap.cjs +60 -0
  262. package/dist/plugins/plugins/minimap.d.ts +25 -0
  263. package/dist/plugins/plugins/minimap.mjs +50 -0
  264. package/dist/plugins/plugins/node-group.cjs +209 -0
  265. package/dist/plugins/plugins/node-group.d.ts +26 -0
  266. package/dist/plugins/plugins/node-group.mjs +178 -0
  267. package/dist/plugins/plugins/snap.cjs +36 -0
  268. package/dist/plugins/plugins/snap.d.ts +12 -0
  269. package/dist/plugins/plugins/snap.mjs +26 -0
  270. package/dist/renderer/AlignmentLines.d.vue.ts +5 -0
  271. package/dist/renderer/AlignmentLines.vue +113 -0
  272. package/dist/renderer/AlignmentLines.vue.d.ts +5 -0
  273. package/dist/renderer/Background.d.vue.ts +7 -0
  274. package/dist/renderer/Background.vue +86 -0
  275. package/dist/renderer/Background.vue.d.ts +7 -0
  276. package/dist/renderer/Controls.d.vue.ts +13 -0
  277. package/dist/renderer/Controls.vue +82 -0
  278. package/dist/renderer/Controls.vue.d.ts +13 -0
  279. package/dist/renderer/EdgeHandlesRenderer.d.vue.ts +11 -0
  280. package/dist/renderer/EdgeHandlesRenderer.vue +75 -0
  281. package/dist/renderer/EdgeHandlesRenderer.vue.d.ts +11 -0
  282. package/dist/renderer/EdgeRenderer.d.vue.ts +39 -0
  283. package/dist/renderer/EdgeRenderer.vue +204 -0
  284. package/dist/renderer/EdgeRenderer.vue.d.ts +39 -0
  285. package/dist/renderer/FlowBackground.d.vue.ts +11 -0
  286. package/dist/renderer/FlowBackground.vue +82 -0
  287. package/dist/renderer/FlowBackground.vue.d.ts +11 -0
  288. package/dist/renderer/Minimap.d.vue.ts +30 -0
  289. package/dist/renderer/Minimap.vue +290 -0
  290. package/dist/renderer/Minimap.vue.d.ts +30 -0
  291. package/dist/renderer/NodeRenderer.d.vue.ts +56 -0
  292. package/dist/renderer/NodeRenderer.vue +328 -0
  293. package/dist/renderer/NodeRenderer.vue.d.ts +56 -0
  294. package/dist/renderer/SelectionBox.d.vue.ts +11 -0
  295. package/dist/renderer/SelectionBox.vue +28 -0
  296. package/dist/renderer/SelectionBox.vue.d.ts +11 -0
  297. package/dist/types/edge.cjs +13 -0
  298. package/dist/types/edge.d.ts +65 -0
  299. package/dist/types/edge.mjs +6 -0
  300. package/dist/types/events.cjs +1 -0
  301. package/dist/types/events.d.ts +115 -0
  302. package/dist/types/events.mjs +0 -0
  303. package/dist/types/index.cjs +1 -0
  304. package/dist/types/index.d.ts +366 -0
  305. package/dist/types/index.mjs +0 -0
  306. package/dist/types/node.cjs +9 -0
  307. package/dist/types/node.d.ts +90 -0
  308. package/dist/types/node.mjs +3 -0
  309. package/dist/types/viewport.cjs +42 -0
  310. package/dist/types/viewport.d.ts +62 -0
  311. package/dist/types/viewport.mjs +36 -0
  312. package/dist/utils/bpmn-engine.cjs +390 -0
  313. package/dist/utils/bpmn-engine.d.ts +164 -0
  314. package/dist/utils/bpmn-engine.mjs +378 -0
  315. package/dist/utils/bpmn.cjs +492 -0
  316. package/dist/utils/bpmn.d.ts +53 -0
  317. package/dist/utils/bpmn.mjs +430 -0
  318. package/dist/utils/collaboration.cjs +537 -0
  319. package/dist/utils/collaboration.d.ts +189 -0
  320. package/dist/utils/collaboration.mjs +521 -0
  321. package/dist/utils/custom-types.cjs +138 -0
  322. package/dist/utils/custom-types.d.ts +78 -0
  323. package/dist/utils/custom-types.mjs +108 -0
  324. package/dist/utils/edge.cjs +235 -0
  325. package/dist/utils/edge.d.ts +79 -0
  326. package/dist/utils/edge.mjs +172 -0
  327. package/dist/utils/event-bus.cjs +91 -0
  328. package/dist/utils/event-bus.d.ts +39 -0
  329. package/dist/utils/event-bus.mjs +82 -0
  330. package/dist/utils/geometry.cjs +178 -0
  331. package/dist/utils/geometry.d.ts +186 -0
  332. package/dist/utils/geometry.mjs +144 -0
  333. package/dist/utils/graph.cjs +158 -0
  334. package/dist/utils/graph.d.ts +40 -0
  335. package/dist/utils/graph.mjs +147 -0
  336. package/dist/utils/index.cjs +137 -0
  337. package/dist/utils/index.d.ts +12 -0
  338. package/dist/utils/index.mjs +12 -0
  339. package/dist/utils/performance.cjs +94 -0
  340. package/dist/utils/performance.d.ts +18 -0
  341. package/dist/utils/performance.mjs +82 -0
  342. package/dist/utils/screenshot.cjs +87 -0
  343. package/dist/utils/screenshot.d.ts +22 -0
  344. package/dist/utils/screenshot.mjs +66 -0
  345. package/dist/utils/theme.cjs +228 -0
  346. package/dist/utils/theme.d.ts +92 -0
  347. package/dist/utils/theme.mjs +217 -0
  348. package/dist/utils/transform.cjs +76 -0
  349. package/dist/utils/transform.d.ts +45 -0
  350. package/dist/utils/transform.mjs +57 -0
  351. package/dist/utils/validation.cjs +107 -0
  352. package/dist/utils/validation.d.ts +29 -0
  353. package/dist/utils/validation.mjs +85 -0
  354. package/package.json +61 -0
@@ -0,0 +1,209 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.createNodeGroupPlugin = createNodeGroupPlugin;
7
+ const defaultOptions = {
8
+ enabled: true,
9
+ groupNodeType: "group",
10
+ paddingX: 40,
11
+ paddingY: 50,
12
+ groupIdPrefix: "group",
13
+ collapseMode: "hide"
14
+ };
15
+ function computeBoundingBox(nodes, paddingX, paddingY) {
16
+ if (nodes.length === 0) return {
17
+ x: 0,
18
+ y: 0,
19
+ width: 200,
20
+ height: 150
21
+ };
22
+ let minX = Infinity,
23
+ minY = Infinity,
24
+ maxX = -Infinity,
25
+ maxY = -Infinity;
26
+ nodes.forEach(node => {
27
+ const w = node.width || 150;
28
+ const h = node.height || 50;
29
+ minX = Math.min(minX, node.position.x);
30
+ minY = Math.min(minY, node.position.y);
31
+ maxX = Math.max(maxX, node.position.x + w);
32
+ maxY = Math.max(maxY, node.position.y + h);
33
+ });
34
+ return {
35
+ x: minX - paddingX,
36
+ y: minY - paddingY,
37
+ width: maxX - minX + paddingX * 2,
38
+ height: maxY - minY + paddingY * 2
39
+ };
40
+ }
41
+ function generateGroupId(prefix, existingIds) {
42
+ let i = 1;
43
+ while (existingIds.includes(`${prefix}-${i}`)) i++;
44
+ return `${prefix}-${i}`;
45
+ }
46
+ function createNodeGroupPlugin(options = {}) {
47
+ const opts = {
48
+ ...defaultOptions,
49
+ ...options
50
+ };
51
+ const groupRegistry = /* @__PURE__ */new Map();
52
+ return {
53
+ id: "node-group",
54
+ name: "NodeGroup",
55
+ version: "1.0.0",
56
+ description: "Enable node grouping, sub-flow nesting and collapse/expand features",
57
+ install(flow) {
58
+ if (!opts.enabled) return;
59
+ flow.groupSelectedNodes = (label = "Group") => {
60
+ const selectedNodes = flow.nodes.value.filter(n => n.selected && n.type !== opts.groupNodeType);
61
+ if (selectedNodes.length < 2) {
62
+ console.warn("[NodeGroup] Please select at least 2 nodes to group");
63
+ return null;
64
+ }
65
+ const existingIds = flow.nodes.value.map(n => n.id);
66
+ const groupId = generateGroupId(opts.groupIdPrefix, existingIds);
67
+ const bbox = computeBoundingBox(selectedNodes, opts.paddingX, opts.paddingY);
68
+ const originalPositions = {};
69
+ selectedNodes.forEach(n => {
70
+ originalPositions[n.id] = {
71
+ x: n.position.x,
72
+ y: n.position.y
73
+ };
74
+ });
75
+ const groupNode = {
76
+ id: groupId,
77
+ type: opts.groupNodeType,
78
+ position: {
79
+ x: bbox.x,
80
+ y: bbox.y
81
+ },
82
+ data: {
83
+ label,
84
+ style: {
85
+ backgroundColor: "rgba(241, 245, 249, 0.8)"
86
+ }
87
+ },
88
+ style: {
89
+ width: bbox.width,
90
+ height: bbox.height,
91
+ minWidth: bbox.width,
92
+ minHeight: bbox.height
93
+ },
94
+ width: bbox.width,
95
+ height: bbox.height,
96
+ selectable: true,
97
+ draggable: true,
98
+ zIndex: -1
99
+ };
100
+ flow.addNode(groupNode);
101
+ selectedNodes.forEach(node => {
102
+ flow.updateNode(node.id, {
103
+ parentId: groupId,
104
+ extent: "parent",
105
+ position: {
106
+ x: node.position.x - bbox.x,
107
+ y: node.position.y - bbox.y
108
+ },
109
+ selected: false
110
+ });
111
+ });
112
+ groupRegistry.set(groupId, {
113
+ groupId,
114
+ childIds: selectedNodes.map(n => n.id),
115
+ collapsed: false,
116
+ originalPositions
117
+ });
118
+ console.log(`[NodeGroup] Created group "${groupId}" with ${selectedNodes.length} nodes`);
119
+ return groupId;
120
+ };
121
+ flow.ungroupNodes = groupId => {
122
+ const groupNode = flow.getNode(groupId);
123
+ if (!groupNode) {
124
+ console.warn(`[NodeGroup] Group "${groupId}" not found`);
125
+ return;
126
+ }
127
+ const groupInfo = groupRegistry.get(groupId);
128
+ const groupPos = groupNode.position;
129
+ const childNodes = flow.nodes.value.filter(n => n.parentId === groupId);
130
+ childNodes.forEach(node => {
131
+ const absPos = groupInfo?.originalPositions[node.id] ?? {
132
+ x: groupPos.x + node.position.x,
133
+ y: groupPos.y + node.position.y
134
+ };
135
+ flow.updateNode(node.id, {
136
+ parentId: void 0,
137
+ extent: void 0,
138
+ position: absPos
139
+ });
140
+ });
141
+ flow.removeNode(groupId);
142
+ groupRegistry.delete(groupId);
143
+ console.log(`[NodeGroup] Ungrouped "${groupId}"`);
144
+ };
145
+ flow.toggleGroupCollapse = groupId => {
146
+ const groupInfo = groupRegistry.get(groupId);
147
+ if (!groupInfo) {
148
+ console.warn(`[NodeGroup] Group "${groupId}" not found in registry`);
149
+ return;
150
+ }
151
+ groupInfo.collapsed = !groupInfo.collapsed;
152
+ const hidden = groupInfo.collapsed;
153
+ groupInfo.childIds.forEach(childId => {
154
+ flow.updateNode(childId, {
155
+ hidden
156
+ });
157
+ });
158
+ flow.edges.value.forEach(edge => {
159
+ const srcHidden = groupInfo.childIds.includes(edge.source);
160
+ const tgtHidden = groupInfo.childIds.includes(edge.target);
161
+ if (srcHidden || tgtHidden) {
162
+ flow.updateEdge(edge.id, {
163
+ hidden
164
+ });
165
+ }
166
+ });
167
+ if (hidden) {
168
+ flow.updateNode(groupId, {
169
+ style: {
170
+ width: 160,
171
+ height: 50,
172
+ minWidth: 160,
173
+ minHeight: 50
174
+ },
175
+ width: 160,
176
+ height: 50
177
+ });
178
+ } else {
179
+ const groupNode = flow.getNode(groupId);
180
+ if (groupNode) {
181
+ const originalW = groupNode.data._origWidth;
182
+ const originalH = groupNode.data._origHeight;
183
+ flow.updateNode(groupId, {
184
+ style: {
185
+ width: originalW || 200,
186
+ height: originalH || 150,
187
+ minWidth: originalW || 200,
188
+ minHeight: originalH || 150
189
+ },
190
+ width: originalW || 200,
191
+ height: originalH || 150
192
+ });
193
+ }
194
+ }
195
+ console.log(`[NodeGroup] Group "${groupId}" ${hidden ? "collapsed" : "expanded"}`);
196
+ };
197
+ flow.isGroupCollapsed = groupId => {
198
+ return groupRegistry.get(groupId)?.collapsed ?? false;
199
+ };
200
+ flow.getGroupChildren = groupId => {
201
+ return flow.nodes.value.filter(n => n.parentId === groupId);
202
+ };
203
+ flow.getGroupRegistry = () => groupRegistry;
204
+ },
205
+ destroy() {
206
+ groupRegistry.clear();
207
+ }
208
+ };
209
+ }
@@ -0,0 +1,26 @@
1
+ import type { FlowPlugin } from '../plugin';
2
+ export interface NodeGroupOptions {
3
+ enabled?: boolean;
4
+ /** 分组时使用的节点类型(需要在 nodeTypes 中有对应渲染) */
5
+ groupNodeType?: string;
6
+ /** 默认分组节点宽度偏移量 */
7
+ paddingX?: number;
8
+ /** 默认分组节点高度偏移量 */
9
+ paddingY?: number;
10
+ /** 分组 id 前缀 */
11
+ groupIdPrefix?: string;
12
+ /** 折叠行为:'collapse'=折叠子节点 | 'hide'=隐藏子节点 */
13
+ collapseMode?: 'collapse' | 'hide';
14
+ }
15
+ export interface GroupInfo {
16
+ groupId: string;
17
+ childIds: string[];
18
+ collapsed: boolean;
19
+ originalPositions: Record<string, {
20
+ x: number;
21
+ y: number;
22
+ }>;
23
+ }
24
+ export declare function createNodeGroupPlugin(options?: NodeGroupOptions): FlowPlugin;
25
+ /** 导出分组信息类型,供外部使用 */
26
+ export type { GroupInfo as NodeGroupInfo };
@@ -0,0 +1,178 @@
1
+ const defaultOptions = {
2
+ enabled: true,
3
+ groupNodeType: "group",
4
+ paddingX: 40,
5
+ paddingY: 50,
6
+ groupIdPrefix: "group",
7
+ collapseMode: "hide"
8
+ };
9
+ function computeBoundingBox(nodes, paddingX, paddingY) {
10
+ if (nodes.length === 0) return { x: 0, y: 0, width: 200, height: 150 };
11
+ let minX = Infinity, minY = Infinity, maxX = -Infinity, maxY = -Infinity;
12
+ nodes.forEach((node) => {
13
+ const w = node.width || 150;
14
+ const h = node.height || 50;
15
+ minX = Math.min(minX, node.position.x);
16
+ minY = Math.min(minY, node.position.y);
17
+ maxX = Math.max(maxX, node.position.x + w);
18
+ maxY = Math.max(maxY, node.position.y + h);
19
+ });
20
+ return {
21
+ x: minX - paddingX,
22
+ y: minY - paddingY,
23
+ width: maxX - minX + paddingX * 2,
24
+ height: maxY - minY + paddingY * 2
25
+ };
26
+ }
27
+ function generateGroupId(prefix, existingIds) {
28
+ let i = 1;
29
+ while (existingIds.includes(`${prefix}-${i}`)) i++;
30
+ return `${prefix}-${i}`;
31
+ }
32
+ export function createNodeGroupPlugin(options = {}) {
33
+ const opts = { ...defaultOptions, ...options };
34
+ const groupRegistry = /* @__PURE__ */ new Map();
35
+ return {
36
+ id: "node-group",
37
+ name: "NodeGroup",
38
+ version: "1.0.0",
39
+ description: "Enable node grouping, sub-flow nesting and collapse/expand features",
40
+ install(flow) {
41
+ if (!opts.enabled)
42
+ return;
43
+ flow.groupSelectedNodes = (label = "Group") => {
44
+ const selectedNodes = flow.nodes.value.filter(
45
+ (n) => n.selected && n.type !== opts.groupNodeType
46
+ );
47
+ if (selectedNodes.length < 2) {
48
+ console.warn("[NodeGroup] Please select at least 2 nodes to group");
49
+ return null;
50
+ }
51
+ const existingIds = flow.nodes.value.map((n) => n.id);
52
+ const groupId = generateGroupId(opts.groupIdPrefix, existingIds);
53
+ const bbox = computeBoundingBox(selectedNodes, opts.paddingX, opts.paddingY);
54
+ const originalPositions = {};
55
+ selectedNodes.forEach((n) => {
56
+ originalPositions[n.id] = { x: n.position.x, y: n.position.y };
57
+ });
58
+ const groupNode = {
59
+ id: groupId,
60
+ type: opts.groupNodeType,
61
+ position: { x: bbox.x, y: bbox.y },
62
+ data: {
63
+ label,
64
+ style: { backgroundColor: "rgba(241, 245, 249, 0.8)" }
65
+ },
66
+ style: {
67
+ width: bbox.width,
68
+ height: bbox.height,
69
+ minWidth: bbox.width,
70
+ minHeight: bbox.height
71
+ },
72
+ width: bbox.width,
73
+ height: bbox.height,
74
+ selectable: true,
75
+ draggable: true,
76
+ zIndex: -1
77
+ };
78
+ flow.addNode(groupNode);
79
+ selectedNodes.forEach((node) => {
80
+ flow.updateNode(node.id, {
81
+ parentId: groupId,
82
+ extent: "parent",
83
+ position: {
84
+ x: node.position.x - bbox.x,
85
+ y: node.position.y - bbox.y
86
+ },
87
+ selected: false
88
+ });
89
+ });
90
+ groupRegistry.set(groupId, {
91
+ groupId,
92
+ childIds: selectedNodes.map((n) => n.id),
93
+ collapsed: false,
94
+ originalPositions
95
+ });
96
+ console.log(`[NodeGroup] Created group "${groupId}" with ${selectedNodes.length} nodes`);
97
+ return groupId;
98
+ };
99
+ flow.ungroupNodes = (groupId) => {
100
+ const groupNode = flow.getNode(groupId);
101
+ if (!groupNode) {
102
+ console.warn(`[NodeGroup] Group "${groupId}" not found`);
103
+ return;
104
+ }
105
+ const groupInfo = groupRegistry.get(groupId);
106
+ const groupPos = groupNode.position;
107
+ const childNodes = flow.nodes.value.filter((n) => n.parentId === groupId);
108
+ childNodes.forEach((node) => {
109
+ const absPos = groupInfo?.originalPositions[node.id] ?? {
110
+ x: groupPos.x + node.position.x,
111
+ y: groupPos.y + node.position.y
112
+ };
113
+ flow.updateNode(node.id, {
114
+ parentId: void 0,
115
+ extent: void 0,
116
+ position: absPos
117
+ });
118
+ });
119
+ flow.removeNode(groupId);
120
+ groupRegistry.delete(groupId);
121
+ console.log(`[NodeGroup] Ungrouped "${groupId}"`);
122
+ };
123
+ flow.toggleGroupCollapse = (groupId) => {
124
+ const groupInfo = groupRegistry.get(groupId);
125
+ if (!groupInfo) {
126
+ console.warn(`[NodeGroup] Group "${groupId}" not found in registry`);
127
+ return;
128
+ }
129
+ groupInfo.collapsed = !groupInfo.collapsed;
130
+ const hidden = groupInfo.collapsed;
131
+ groupInfo.childIds.forEach((childId) => {
132
+ flow.updateNode(childId, { hidden });
133
+ });
134
+ flow.edges.value.forEach((edge) => {
135
+ const srcHidden = groupInfo.childIds.includes(edge.source);
136
+ const tgtHidden = groupInfo.childIds.includes(edge.target);
137
+ if (srcHidden || tgtHidden) {
138
+ flow.updateEdge(edge.id, { hidden });
139
+ }
140
+ });
141
+ if (hidden) {
142
+ flow.updateNode(groupId, {
143
+ style: { width: 160, height: 50, minWidth: 160, minHeight: 50 },
144
+ width: 160,
145
+ height: 50
146
+ });
147
+ } else {
148
+ const groupNode = flow.getNode(groupId);
149
+ if (groupNode) {
150
+ const originalW = groupNode.data._origWidth;
151
+ const originalH = groupNode.data._origHeight;
152
+ flow.updateNode(groupId, {
153
+ style: {
154
+ width: originalW || 200,
155
+ height: originalH || 150,
156
+ minWidth: originalW || 200,
157
+ minHeight: originalH || 150
158
+ },
159
+ width: originalW || 200,
160
+ height: originalH || 150
161
+ });
162
+ }
163
+ }
164
+ console.log(`[NodeGroup] Group "${groupId}" ${hidden ? "collapsed" : "expanded"}`);
165
+ };
166
+ flow.isGroupCollapsed = (groupId) => {
167
+ return groupRegistry.get(groupId)?.collapsed ?? false;
168
+ };
169
+ flow.getGroupChildren = (groupId) => {
170
+ return flow.nodes.value.filter((n) => n.parentId === groupId);
171
+ };
172
+ flow.getGroupRegistry = () => groupRegistry;
173
+ },
174
+ destroy() {
175
+ groupRegistry.clear();
176
+ }
177
+ };
178
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.createSnapPlugin = createSnapPlugin;
7
+ var _vue = require("vue");
8
+ var _AlignmentLines = _interopRequireDefault(require("../../renderer/AlignmentLines.vue"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
+ const defaultSnapOptions = {
11
+ enabled: true,
12
+ snapToGrid: true,
13
+ gridSize: 15,
14
+ snapThreshold: 10,
15
+ showAlignmentLines: true
16
+ };
17
+ function createSnapPlugin(options = {}) {
18
+ const mergedOptions = {
19
+ ...defaultSnapOptions,
20
+ ...options
21
+ };
22
+ return {
23
+ id: "snap",
24
+ name: "Snap",
25
+ version: "1.0.0",
26
+ description: "Enables grid snapping and alignment lines",
27
+ component: mergedOptions.showAlignmentLines ? (0, _vue.markRaw)(_AlignmentLines.default) : void 0,
28
+ componentProps: {
29
+ snapThreshold: mergedOptions.snapThreshold
30
+ },
31
+ install(flow) {
32
+ if (!mergedOptions.enabled) return;
33
+ console.log(`[Snap Plugin] Installed with options:`, mergedOptions, flow);
34
+ }
35
+ };
36
+ }
@@ -0,0 +1,12 @@
1
+ import type { FlowPlugin } from '../plugin';
2
+ export interface SnapPluginOptions {
3
+ enabled?: boolean;
4
+ snapToGrid?: boolean;
5
+ gridSize?: number;
6
+ snapThreshold?: number;
7
+ showAlignmentLines?: boolean;
8
+ }
9
+ /**
10
+ * 创建吸附插件
11
+ */
12
+ export declare function createSnapPlugin(options?: SnapPluginOptions): FlowPlugin;
@@ -0,0 +1,26 @@
1
+ import { markRaw } from "vue";
2
+ import AlignmentLines from "../../renderer/AlignmentLines.vue";
3
+ const defaultSnapOptions = {
4
+ enabled: true,
5
+ snapToGrid: true,
6
+ gridSize: 15,
7
+ snapThreshold: 10,
8
+ showAlignmentLines: true
9
+ };
10
+ export function createSnapPlugin(options = {}) {
11
+ const mergedOptions = { ...defaultSnapOptions, ...options };
12
+ return {
13
+ id: "snap",
14
+ name: "Snap",
15
+ version: "1.0.0",
16
+ description: "Enables grid snapping and alignment lines",
17
+ component: mergedOptions.showAlignmentLines ? markRaw(AlignmentLines) : void 0,
18
+ componentProps: {
19
+ snapThreshold: mergedOptions.snapThreshold
20
+ },
21
+ install(flow) {
22
+ if (!mergedOptions.enabled) return;
23
+ console.log(`[Snap Plugin] Installed with options:`, mergedOptions, flow);
24
+ }
25
+ };
26
+ }
@@ -0,0 +1,5 @@
1
+ type __VLS_Props = {
2
+ snapThreshold?: number;
3
+ };
4
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ export default _default;
@@ -0,0 +1,113 @@
1
+ <template>
2
+ <svg v-if="draggingNodeId && draggingPosition" class="yh-flow-alignment-lines">
3
+ <!-- Horizontal alignment lines -->
4
+ <line
5
+ v-for="(line, index) in horizontalLines"
6
+ :key="`h-${index}`"
7
+ :x1="0"
8
+ :y1="line.y"
9
+ :x2="containerWidth"
10
+ :y2="line.y"
11
+ class="alignment-line horizontal"
12
+ :class="{
13
+ active: line.active
14
+ }"
15
+ />
16
+ <!-- Vertical alignment lines -->
17
+ <line
18
+ v-for="(line, index) in verticalLines"
19
+ :key="`v-${index}`"
20
+ :x1="line.x"
21
+ :y1="0"
22
+ :x2="line.x"
23
+ :y2="containerHeight"
24
+ class="alignment-line vertical"
25
+ :class="{
26
+ active: line.active
27
+ }"
28
+ />
29
+ </svg>
30
+ </template>
31
+
32
+ <script setup>
33
+ import { computed } from "vue";
34
+ import { useFlowContext } from "../core/FlowContext";
35
+ const props = defineProps({
36
+ snapThreshold: { type: Number, required: false }
37
+ });
38
+ const flowInstance = useFlowContext();
39
+ const nodes = flowInstance.nodes;
40
+ const draggingNodeId = flowInstance.draggingNodeId;
41
+ const draggingPosition = flowInstance.draggingPosition;
42
+ const containerWidth = computed(() => flowInstance.$el?.clientWidth || 800);
43
+ const containerHeight = computed(() => flowInstance.$el?.clientHeight || 600);
44
+ const SNAP_THRESHOLD = props.snapThreshold ?? 10;
45
+ const horizontalLines = computed(() => {
46
+ const dNodeId = draggingNodeId.value;
47
+ const dPos = draggingPosition.value;
48
+ if (!dNodeId || !dPos) return [];
49
+ const lines = [];
50
+ const draggingNode = nodes.value.find((n) => n.id === dNodeId);
51
+ if (!draggingNode) return [];
52
+ const nodeHeight = draggingNode.height || 50;
53
+ const otherNodes = nodes.value.filter((n) => n.id !== dNodeId && !n.hidden);
54
+ const positions = [
55
+ { y: draggingNode.position.y, key: "top" },
56
+ { y: draggingNode.position.y + nodeHeight / 2, key: "center" },
57
+ { y: draggingNode.position.y + nodeHeight, key: "bottom" }
58
+ ];
59
+ for (const pos of positions) {
60
+ for (const node of otherNodes) {
61
+ const nHeight = node.height || 50;
62
+ const nodePositions = [
63
+ { y: node.position.y, key: "top" },
64
+ { y: node.position.y + nHeight / 2, key: "center" },
65
+ { y: node.position.y + nHeight, key: "bottom" }
66
+ ];
67
+ for (const np of nodePositions) {
68
+ if (Math.abs(pos.y - np.y) < SNAP_THRESHOLD) {
69
+ lines.push({ y: np.y, active: true });
70
+ break;
71
+ }
72
+ }
73
+ }
74
+ }
75
+ return lines;
76
+ });
77
+ const verticalLines = computed(() => {
78
+ const dNodeId = draggingNodeId.value;
79
+ const dPos = draggingPosition.value;
80
+ if (!dNodeId || !dPos) return [];
81
+ const lines = [];
82
+ const draggingNode = nodes.value.find((n) => n.id === dNodeId);
83
+ if (!draggingNode) return [];
84
+ const nodeWidth = draggingNode.width || 200;
85
+ const otherNodes = nodes.value.filter((n) => n.id !== dNodeId && !n.hidden);
86
+ const positions = [
87
+ { x: draggingNode.position.x, key: "left" },
88
+ { x: draggingNode.position.x + nodeWidth / 2, key: "center" },
89
+ { x: draggingNode.position.x + nodeWidth, key: "right" }
90
+ ];
91
+ for (const pos of positions) {
92
+ for (const node of otherNodes) {
93
+ const nWidth = node.width || 200;
94
+ const nodePositions = [
95
+ { x: node.position.x, key: "left" },
96
+ { x: node.position.x + nWidth / 2, key: "center" },
97
+ { x: node.position.x + nWidth, key: "right" }
98
+ ];
99
+ for (const np of nodePositions) {
100
+ if (Math.abs(pos.x - np.x) < SNAP_THRESHOLD) {
101
+ lines.push({ x: np.x, active: true });
102
+ break;
103
+ }
104
+ }
105
+ }
106
+ }
107
+ return lines;
108
+ });
109
+ </script>
110
+
111
+ <style scoped>
112
+ .yh-flow-alignment-lines{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:100}.alignment-line{opacity:0;stroke:var(--flow-alignment-line-color,#c0c4cc);stroke-dasharray:4 2;stroke-width:1;transition:opacity .15s ease}.alignment-line.active{opacity:1;stroke:var(--flow-alignment-line-active-color,#409eff)}
113
+ </style>
@@ -0,0 +1,5 @@
1
+ type __VLS_Props = {
2
+ snapThreshold?: number;
3
+ };
4
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ export default _default;
@@ -0,0 +1,7 @@
1
+ type __VLS_Props = {
2
+ type?: 'dots' | 'grid' | 'none';
3
+ color?: string;
4
+ gap?: number;
5
+ };
6
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ export default _default;