@antv/g6 5.0.0-beta.30 → 5.0.0-beta.32

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 (748) hide show
  1. package/dist/g6.min.js +2 -2
  2. package/dist/lib/{src/behaviors → behaviors}/collapse-expand.d.ts +4 -5
  3. package/dist/lib/behaviors/create-edge.d.ts +55 -0
  4. package/dist/lib/{src/behaviors → behaviors}/drag-canvas.d.ts +6 -6
  5. package/dist/lib/{src/behaviors → behaviors}/drag-element.d.ts +5 -3
  6. package/dist/lib/behaviors/focus-element.d.ts +30 -0
  7. package/dist/lib/behaviors/hover-element.d.ts +60 -0
  8. package/dist/lib/{src/behaviors → behaviors}/index.d.ts +6 -0
  9. package/dist/lib/{src/behaviors → behaviors}/zoom-canvas.d.ts +7 -6
  10. package/dist/lib/{src/constants → constants}/element.d.ts +1 -0
  11. package/dist/lib/{src/constants → constants}/events/animation.d.ts +1 -1
  12. package/dist/lib/{src/constants → constants}/events/canvas.d.ts +1 -1
  13. package/dist/lib/{src/constants → constants}/events/common.d.ts +1 -1
  14. package/dist/lib/{src/constants → constants}/events/container.d.ts +1 -1
  15. package/dist/lib/{src/constants → constants}/events/edge.d.ts +1 -1
  16. package/dist/lib/{src/constants → constants}/events/graph.d.ts +6 -14
  17. package/dist/lib/{src/constants → constants}/events/node.d.ts +1 -1
  18. package/dist/lib/{src/constants → constants}/index.d.ts +1 -0
  19. package/dist/lib/constants/registry.d.ts +20 -0
  20. package/dist/lib/{src/elements → elements}/combos/base-combo.d.ts +21 -0
  21. package/dist/lib/{src/elements → elements}/edges/base-edge.d.ts +21 -0
  22. package/dist/lib/{src/elements → elements}/nodes/base-node.d.ts +21 -0
  23. package/dist/lib/elements/nodes/hexagon.d.ts +21 -0
  24. package/dist/lib/{src/elements → elements}/nodes/index.d.ts +2 -0
  25. package/dist/lib/{src/elements → elements}/shapes/badge.d.ts +1 -1
  26. package/dist/lib/{src/elements → elements}/shapes/base-shape.d.ts +2 -1
  27. package/dist/lib/exports.d.ts +34 -0
  28. package/dist/lib/{src/layouts → layouts}/index.d.ts +1 -1
  29. package/dist/lib/plugins/camera-setting.d.ts +95 -0
  30. package/dist/lib/{src/plugins → plugins}/contextmenu.d.ts +8 -5
  31. package/dist/lib/{src/plugins → plugins}/index.d.ts +6 -0
  32. package/dist/lib/plugins/legend.d.ts +49 -0
  33. package/dist/lib/plugins/toolbar/index.d.ts +62 -0
  34. package/dist/lib/plugins/toolbar/util.d.ts +34 -0
  35. package/dist/lib/{src/plugins → plugins}/tooltip.d.ts +13 -11
  36. package/dist/lib/{src/registry → registry}/extension/index.d.ts +2 -2
  37. package/dist/lib/{src/registry → registry}/index.d.ts +6 -4
  38. package/dist/lib/{src/registry → registry}/types.d.ts +0 -6
  39. package/dist/lib/{src/runtime → runtime}/behavior.d.ts +1 -0
  40. package/dist/lib/{src/runtime → runtime}/canvas.d.ts +2 -1
  41. package/dist/lib/{src/runtime → runtime}/data.d.ts +1 -1
  42. package/dist/lib/{src/runtime → runtime}/element.d.ts +2 -3
  43. package/dist/lib/{src/runtime → runtime}/graph.d.ts +31 -4
  44. package/dist/lib/{src/runtime → runtime}/plugin.d.ts +1 -0
  45. package/dist/lib/types/event.d.ts +43 -0
  46. package/dist/lib/{src/types → types}/index.d.ts +0 -1
  47. package/dist/lib/{src/utils → utils}/bbox.d.ts +1 -1
  48. package/dist/lib/{src/utils → utils}/dom.d.ts +10 -0
  49. package/dist/lib/{src/utils → utils}/element.d.ts +25 -11
  50. package/dist/lib/{src/utils → utils}/event/events.d.ts +8 -13
  51. package/dist/lib/{src/utils → utils}/id.d.ts +9 -1
  52. package/dist/lib/utils/relation.d.ts +34 -0
  53. package/dist/lib/{src/utils → utils}/shortcut.d.ts +10 -0
  54. package/dist/lib/{src/utils → utils}/traverse.d.ts +9 -0
  55. package/esm/behaviors/collapse-expand.d.ts +4 -5
  56. package/esm/behaviors/collapse-expand.js +8 -4
  57. package/esm/behaviors/collapse-expand.js.map +1 -1
  58. package/esm/behaviors/create-edge.d.ts +55 -0
  59. package/esm/behaviors/create-edge.js +141 -0
  60. package/esm/behaviors/create-edge.js.map +1 -0
  61. package/esm/behaviors/drag-canvas.d.ts +6 -6
  62. package/esm/behaviors/drag-canvas.js +15 -7
  63. package/esm/behaviors/drag-canvas.js.map +1 -1
  64. package/esm/behaviors/drag-element.d.ts +5 -3
  65. package/esm/behaviors/drag-element.js.map +1 -1
  66. package/esm/behaviors/focus-element.d.ts +30 -0
  67. package/esm/behaviors/focus-element.js +57 -0
  68. package/esm/behaviors/focus-element.js.map +1 -0
  69. package/esm/behaviors/hover-element.d.ts +60 -0
  70. package/esm/behaviors/hover-element.js +85 -0
  71. package/esm/behaviors/hover-element.js.map +1 -0
  72. package/esm/behaviors/index.d.ts +6 -0
  73. package/esm/behaviors/index.js +3 -0
  74. package/esm/behaviors/index.js.map +1 -1
  75. package/esm/behaviors/zoom-canvas.d.ts +7 -6
  76. package/esm/behaviors/zoom-canvas.js +6 -2
  77. package/esm/behaviors/zoom-canvas.js.map +1 -1
  78. package/esm/constants/element.d.ts +1 -0
  79. package/esm/constants/element.js +1 -0
  80. package/esm/constants/element.js.map +1 -1
  81. package/esm/constants/events/animation.d.ts +1 -1
  82. package/esm/constants/events/animation.js.map +1 -1
  83. package/esm/constants/events/canvas.d.ts +1 -1
  84. package/esm/constants/events/canvas.js.map +1 -1
  85. package/esm/constants/events/common.d.ts +1 -1
  86. package/esm/constants/events/common.js.map +1 -1
  87. package/esm/constants/events/container.d.ts +1 -1
  88. package/esm/constants/events/container.js.map +1 -1
  89. package/esm/constants/events/edge.d.ts +1 -1
  90. package/esm/constants/events/edge.js.map +1 -1
  91. package/esm/constants/events/graph.d.ts +6 -14
  92. package/esm/constants/events/graph.js +4 -12
  93. package/esm/constants/events/graph.js.map +1 -1
  94. package/esm/constants/events/node.d.ts +1 -1
  95. package/esm/constants/events/node.js.map +1 -1
  96. package/esm/constants/index.d.ts +1 -0
  97. package/esm/constants/index.js +1 -0
  98. package/esm/constants/index.js.map +1 -1
  99. package/esm/constants/registry.d.ts +20 -0
  100. package/esm/constants/registry.js +22 -0
  101. package/esm/constants/registry.js.map +1 -0
  102. package/esm/elements/combos/base-combo.d.ts +21 -0
  103. package/esm/elements/combos/base-combo.js +21 -0
  104. package/esm/elements/combos/base-combo.js.map +1 -1
  105. package/esm/elements/edges/base-edge.d.ts +21 -0
  106. package/esm/elements/edges/base-edge.js +21 -0
  107. package/esm/elements/edges/base-edge.js.map +1 -1
  108. package/esm/elements/nodes/base-node.d.ts +21 -0
  109. package/esm/elements/nodes/base-node.js +21 -0
  110. package/esm/elements/nodes/base-node.js.map +1 -1
  111. package/esm/elements/nodes/hexagon.d.ts +21 -0
  112. package/esm/elements/nodes/hexagon.js +20 -0
  113. package/esm/elements/nodes/hexagon.js.map +1 -0
  114. package/esm/elements/nodes/index.d.ts +2 -0
  115. package/esm/elements/nodes/index.js +1 -0
  116. package/esm/elements/nodes/index.js.map +1 -1
  117. package/esm/elements/shapes/badge.d.ts +1 -1
  118. package/esm/elements/shapes/base-shape.d.ts +2 -1
  119. package/esm/elements/shapes/base-shape.js +6 -1
  120. package/esm/elements/shapes/base-shape.js.map +1 -1
  121. package/esm/exports.d.ts +20 -10
  122. package/esm/exports.js +11 -5
  123. package/esm/exports.js.map +1 -1
  124. package/esm/plugins/camera-setting.d.ts +95 -0
  125. package/esm/plugins/camera-setting.js +65 -0
  126. package/esm/plugins/camera-setting.js.map +1 -0
  127. package/esm/plugins/contextmenu.d.ts +8 -5
  128. package/esm/plugins/contextmenu.js +2 -3
  129. package/esm/plugins/contextmenu.js.map +1 -1
  130. package/esm/plugins/index.d.ts +6 -0
  131. package/esm/plugins/index.js +3 -0
  132. package/esm/plugins/index.js.map +1 -1
  133. package/esm/plugins/legend.d.ts +49 -0
  134. package/esm/plugins/legend.js +267 -0
  135. package/esm/plugins/legend.js.map +1 -0
  136. package/esm/plugins/toolbar/index.d.ts +62 -0
  137. package/esm/plugins/toolbar/index.js +68 -0
  138. package/esm/plugins/toolbar/index.js.map +1 -0
  139. package/esm/plugins/toolbar/util.d.ts +34 -0
  140. package/esm/plugins/toolbar/util.js +88 -0
  141. package/esm/plugins/toolbar/util.js.map +1 -0
  142. package/esm/plugins/tooltip.d.ts +13 -11
  143. package/esm/plugins/tooltip.js +3 -4
  144. package/esm/plugins/tooltip.js.map +1 -1
  145. package/esm/preset.js +2 -5
  146. package/esm/preset.js.map +1 -1
  147. package/esm/registry/build-in.js +9 -3
  148. package/esm/registry/build-in.js.map +1 -1
  149. package/esm/registry/extension/index.d.ts +2 -2
  150. package/esm/registry/extension/index.js +5 -7
  151. package/esm/registry/extension/index.js.map +1 -1
  152. package/esm/registry/index.d.ts +6 -4
  153. package/esm/registry/index.js.map +1 -1
  154. package/esm/registry/types.d.ts +0 -6
  155. package/esm/runtime/behavior.d.ts +1 -0
  156. package/esm/runtime/behavior.js +15 -4
  157. package/esm/runtime/behavior.js.map +1 -1
  158. package/esm/runtime/canvas.d.ts +2 -1
  159. package/esm/runtime/canvas.js +74 -31
  160. package/esm/runtime/canvas.js.map +1 -1
  161. package/esm/runtime/data.d.ts +1 -1
  162. package/esm/runtime/data.js +1 -1
  163. package/esm/runtime/data.js.map +1 -1
  164. package/esm/runtime/element.d.ts +2 -3
  165. package/esm/runtime/element.js +40 -16
  166. package/esm/runtime/element.js.map +1 -1
  167. package/esm/runtime/graph.d.ts +31 -4
  168. package/esm/runtime/graph.js +52 -12
  169. package/esm/runtime/graph.js.map +1 -1
  170. package/esm/runtime/layout.js +5 -1
  171. package/esm/runtime/layout.js.map +1 -1
  172. package/esm/runtime/plugin.d.ts +1 -0
  173. package/esm/runtime/plugin.js +3 -0
  174. package/esm/runtime/plugin.js.map +1 -1
  175. package/esm/themes/base.js +7 -0
  176. package/esm/themes/base.js.map +1 -1
  177. package/esm/types/event.d.ts +42 -7
  178. package/esm/types/index.d.ts +0 -1
  179. package/esm/utils/bbox.d.ts +1 -1
  180. package/esm/utils/dom.d.ts +10 -0
  181. package/esm/utils/dom.js +22 -0
  182. package/esm/utils/dom.js.map +1 -1
  183. package/esm/utils/element.d.ts +25 -11
  184. package/esm/utils/element.js +34 -9
  185. package/esm/utils/element.js.map +1 -1
  186. package/esm/utils/event/events.d.ts +8 -13
  187. package/esm/utils/event/events.js +3 -8
  188. package/esm/utils/event/events.js.map +1 -1
  189. package/esm/utils/id.d.ts +9 -1
  190. package/esm/utils/id.js +10 -0
  191. package/esm/utils/id.js.map +1 -1
  192. package/esm/utils/relation.d.ts +34 -0
  193. package/esm/utils/relation.js +72 -0
  194. package/esm/utils/relation.js.map +1 -0
  195. package/esm/utils/shortcut.d.ts +10 -0
  196. package/esm/utils/shortcut.js +24 -3
  197. package/esm/utils/shortcut.js.map +1 -1
  198. package/esm/utils/traverse.d.ts +9 -0
  199. package/esm/utils/traverse.js +21 -0
  200. package/esm/utils/traverse.js.map +1 -1
  201. package/lib/behaviors/collapse-expand.d.ts +4 -5
  202. package/lib/behaviors/collapse-expand.js +8 -4
  203. package/lib/behaviors/collapse-expand.js.map +1 -1
  204. package/lib/behaviors/create-edge.d.ts +55 -0
  205. package/lib/behaviors/create-edge.js +145 -0
  206. package/lib/behaviors/create-edge.js.map +1 -0
  207. package/lib/behaviors/drag-canvas.d.ts +6 -6
  208. package/lib/behaviors/drag-canvas.js +15 -7
  209. package/lib/behaviors/drag-canvas.js.map +1 -1
  210. package/lib/behaviors/drag-element.d.ts +5 -3
  211. package/lib/behaviors/drag-element.js.map +1 -1
  212. package/lib/behaviors/focus-element.d.ts +30 -0
  213. package/lib/behaviors/focus-element.js +61 -0
  214. package/lib/behaviors/focus-element.js.map +1 -0
  215. package/lib/behaviors/hover-element.d.ts +60 -0
  216. package/lib/behaviors/hover-element.js +89 -0
  217. package/lib/behaviors/hover-element.js.map +1 -0
  218. package/lib/behaviors/index.d.ts +6 -0
  219. package/lib/behaviors/index.js +7 -1
  220. package/lib/behaviors/index.js.map +1 -1
  221. package/lib/behaviors/zoom-canvas.d.ts +7 -6
  222. package/lib/behaviors/zoom-canvas.js +6 -2
  223. package/lib/behaviors/zoom-canvas.js.map +1 -1
  224. package/lib/constants/element.d.ts +1 -0
  225. package/lib/constants/element.js +2 -1
  226. package/lib/constants/element.js.map +1 -1
  227. package/lib/constants/events/animation.d.ts +1 -1
  228. package/lib/constants/events/animation.js.map +1 -1
  229. package/lib/constants/events/canvas.d.ts +1 -1
  230. package/lib/constants/events/canvas.js.map +1 -1
  231. package/lib/constants/events/common.d.ts +1 -1
  232. package/lib/constants/events/common.js.map +1 -1
  233. package/lib/constants/events/container.d.ts +1 -1
  234. package/lib/constants/events/container.js.map +1 -1
  235. package/lib/constants/events/edge.d.ts +1 -1
  236. package/lib/constants/events/edge.js.map +1 -1
  237. package/lib/constants/events/graph.d.ts +6 -14
  238. package/lib/constants/events/graph.js +4 -12
  239. package/lib/constants/events/graph.js.map +1 -1
  240. package/lib/constants/events/node.d.ts +1 -1
  241. package/lib/constants/events/node.js.map +1 -1
  242. package/lib/constants/index.d.ts +1 -0
  243. package/lib/constants/index.js +1 -0
  244. package/lib/constants/index.js.map +1 -1
  245. package/lib/constants/registry.d.ts +20 -0
  246. package/lib/constants/registry.js +25 -0
  247. package/lib/constants/registry.js.map +1 -0
  248. package/lib/elements/combos/base-combo.d.ts +21 -0
  249. package/lib/elements/combos/base-combo.js +21 -0
  250. package/lib/elements/combos/base-combo.js.map +1 -1
  251. package/lib/elements/edges/base-edge.d.ts +21 -0
  252. package/lib/elements/edges/base-edge.js +21 -0
  253. package/lib/elements/edges/base-edge.js.map +1 -1
  254. package/lib/elements/nodes/base-node.d.ts +21 -0
  255. package/lib/elements/nodes/base-node.js +21 -0
  256. package/lib/elements/nodes/base-node.js.map +1 -1
  257. package/lib/elements/nodes/hexagon.d.ts +21 -0
  258. package/lib/elements/nodes/hexagon.js +24 -0
  259. package/lib/elements/nodes/hexagon.js.map +1 -0
  260. package/lib/elements/nodes/index.d.ts +2 -0
  261. package/lib/elements/nodes/index.js +3 -1
  262. package/lib/elements/nodes/index.js.map +1 -1
  263. package/lib/elements/shapes/badge.d.ts +1 -1
  264. package/lib/elements/shapes/base-shape.d.ts +2 -1
  265. package/lib/elements/shapes/base-shape.js +6 -1
  266. package/lib/elements/shapes/base-shape.js.map +1 -1
  267. package/lib/exports.d.ts +20 -10
  268. package/lib/exports.js +30 -1
  269. package/lib/exports.js.map +1 -1
  270. package/lib/plugins/camera-setting.d.ts +95 -0
  271. package/lib/plugins/camera-setting.js +69 -0
  272. package/lib/plugins/camera-setting.js.map +1 -0
  273. package/lib/plugins/contextmenu.d.ts +8 -5
  274. package/lib/plugins/contextmenu.js +1 -2
  275. package/lib/plugins/contextmenu.js.map +1 -1
  276. package/lib/plugins/index.d.ts +6 -0
  277. package/lib/plugins/index.js +7 -1
  278. package/lib/plugins/index.js.map +1 -1
  279. package/lib/plugins/legend.d.ts +49 -0
  280. package/lib/plugins/legend.js +271 -0
  281. package/lib/plugins/legend.js.map +1 -0
  282. package/lib/plugins/toolbar/index.d.ts +62 -0
  283. package/lib/plugins/toolbar/index.js +72 -0
  284. package/lib/plugins/toolbar/index.js.map +1 -0
  285. package/lib/plugins/toolbar/util.d.ts +34 -0
  286. package/lib/plugins/toolbar/util.js +92 -0
  287. package/lib/plugins/toolbar/util.js.map +1 -0
  288. package/lib/plugins/tooltip.d.ts +13 -11
  289. package/lib/plugins/tooltip.js +3 -4
  290. package/lib/plugins/tooltip.js.map +1 -1
  291. package/lib/preset.js +2 -5
  292. package/lib/preset.js.map +1 -1
  293. package/lib/registry/build-in.js +6 -0
  294. package/lib/registry/build-in.js.map +1 -1
  295. package/lib/registry/extension/index.d.ts +2 -2
  296. package/lib/registry/extension/index.js +5 -7
  297. package/lib/registry/extension/index.js.map +1 -1
  298. package/lib/registry/index.d.ts +6 -4
  299. package/lib/registry/index.js.map +1 -1
  300. package/lib/registry/types.d.ts +0 -6
  301. package/lib/runtime/behavior.d.ts +1 -0
  302. package/lib/runtime/behavior.js +15 -4
  303. package/lib/runtime/behavior.js.map +1 -1
  304. package/lib/runtime/canvas.d.ts +2 -1
  305. package/lib/runtime/canvas.js +74 -31
  306. package/lib/runtime/canvas.js.map +1 -1
  307. package/lib/runtime/data.d.ts +1 -1
  308. package/lib/runtime/data.js +1 -1
  309. package/lib/runtime/data.js.map +1 -1
  310. package/lib/runtime/element.d.ts +2 -3
  311. package/lib/runtime/element.js +42 -18
  312. package/lib/runtime/element.js.map +1 -1
  313. package/lib/runtime/graph.d.ts +31 -4
  314. package/lib/runtime/graph.js +51 -11
  315. package/lib/runtime/graph.js.map +1 -1
  316. package/lib/runtime/layout.js +5 -1
  317. package/lib/runtime/layout.js.map +1 -1
  318. package/lib/runtime/plugin.d.ts +1 -0
  319. package/lib/runtime/plugin.js +3 -0
  320. package/lib/runtime/plugin.js.map +1 -1
  321. package/lib/themes/base.js +7 -0
  322. package/lib/themes/base.js.map +1 -1
  323. package/lib/types/event.d.ts +42 -7
  324. package/lib/types/index.d.ts +0 -1
  325. package/lib/utils/bbox.d.ts +1 -1
  326. package/lib/utils/dom.d.ts +10 -0
  327. package/lib/utils/dom.js +24 -1
  328. package/lib/utils/dom.js.map +1 -1
  329. package/lib/utils/element.d.ts +25 -11
  330. package/lib/utils/element.js +37 -10
  331. package/lib/utils/element.js.map +1 -1
  332. package/lib/utils/event/events.d.ts +8 -13
  333. package/lib/utils/event/events.js +4 -10
  334. package/lib/utils/event/events.js.map +1 -1
  335. package/lib/utils/id.d.ts +9 -1
  336. package/lib/utils/id.js +12 -1
  337. package/lib/utils/id.js.map +1 -1
  338. package/lib/utils/relation.d.ts +34 -0
  339. package/lib/utils/relation.js +77 -0
  340. package/lib/utils/relation.js.map +1 -0
  341. package/lib/utils/shortcut.d.ts +10 -0
  342. package/lib/utils/shortcut.js +24 -3
  343. package/lib/utils/shortcut.js.map +1 -1
  344. package/lib/utils/traverse.d.ts +9 -0
  345. package/lib/utils/traverse.js +23 -1
  346. package/lib/utils/traverse.js.map +1 -1
  347. package/package.json +14 -14
  348. package/src/behaviors/collapse-expand.ts +13 -11
  349. package/src/behaviors/create-edge.ts +206 -0
  350. package/src/behaviors/drag-canvas.ts +22 -14
  351. package/src/behaviors/drag-element.ts +8 -11
  352. package/src/behaviors/focus-element.ts +90 -0
  353. package/src/behaviors/hover-element.ts +151 -0
  354. package/src/behaviors/index.ts +6 -0
  355. package/src/behaviors/zoom-canvas.ts +14 -9
  356. package/src/constants/element.ts +2 -0
  357. package/src/constants/events/animation.ts +1 -1
  358. package/src/constants/events/canvas.ts +1 -1
  359. package/src/constants/events/common.ts +1 -1
  360. package/src/constants/events/container.ts +1 -1
  361. package/src/constants/events/edge.ts +1 -1
  362. package/src/constants/events/graph.ts +5 -13
  363. package/src/constants/events/node.ts +1 -1
  364. package/src/constants/index.ts +1 -0
  365. package/src/constants/registry.ts +20 -0
  366. package/src/elements/combos/base-combo.ts +24 -0
  367. package/src/elements/edges/base-edge.ts +25 -1
  368. package/src/elements/nodes/base-node.ts +25 -1
  369. package/src/elements/nodes/hexagon.ts +37 -0
  370. package/src/elements/nodes/index.ts +2 -0
  371. package/src/elements/shapes/base-shape.ts +8 -2
  372. package/src/exports.ts +61 -10
  373. package/src/plugins/camera-setting.ts +153 -0
  374. package/src/plugins/contextmenu.ts +12 -10
  375. package/src/plugins/index.ts +6 -0
  376. package/src/plugins/legend.ts +321 -0
  377. package/src/plugins/toolbar/index.ts +125 -0
  378. package/src/plugins/toolbar/util.ts +117 -0
  379. package/src/plugins/tooltip.ts +19 -18
  380. package/src/preset.ts +2 -6
  381. package/src/registry/build-in.ts +17 -2
  382. package/src/registry/extension/index.ts +9 -11
  383. package/src/registry/index.ts +10 -4
  384. package/src/registry/types.ts +0 -7
  385. package/src/runtime/behavior.ts +16 -4
  386. package/src/runtime/canvas.ts +86 -41
  387. package/src/runtime/data.ts +1 -1
  388. package/src/runtime/element.ts +60 -23
  389. package/src/runtime/graph.ts +60 -15
  390. package/src/runtime/layout.ts +5 -1
  391. package/src/runtime/plugin.ts +4 -0
  392. package/src/themes/base.ts +7 -0
  393. package/src/types/event.ts +62 -7
  394. package/src/types/index.ts +0 -1
  395. package/src/utils/bbox.ts +1 -1
  396. package/src/utils/dom.ts +32 -0
  397. package/src/utils/element.ts +38 -11
  398. package/src/utils/event/events.ts +15 -17
  399. package/src/utils/id.ts +12 -1
  400. package/src/utils/relation.ts +84 -0
  401. package/src/utils/shortcut.ts +28 -3
  402. package/src/utils/traverse.ts +26 -0
  403. package/dist/lib/__tests__/demo/animation/animation-breathe.d.ts +0 -2
  404. package/dist/lib/__tests__/demo/animation/animation-fade-in.d.ts +0 -2
  405. package/dist/lib/__tests__/demo/animation/animation-translate.d.ts +0 -2
  406. package/dist/lib/__tests__/demo/animation/animation-wave.d.ts +0 -2
  407. package/dist/lib/__tests__/demo/animation/animation-zoom-in.d.ts +0 -2
  408. package/dist/lib/__tests__/demo/animation/controller-element-position.d.ts +0 -2
  409. package/dist/lib/__tests__/demo/animation/controller-element-state.d.ts +0 -2
  410. package/dist/lib/__tests__/demo/animation/controller-element.d.ts +0 -2
  411. package/dist/lib/__tests__/demo/animation/edge-cubic.d.ts +0 -2
  412. package/dist/lib/__tests__/demo/animation/edge-line.d.ts +0 -2
  413. package/dist/lib/__tests__/demo/animation/edge-quadratic.d.ts +0 -2
  414. package/dist/lib/__tests__/demo/animation/index.d.ts +0 -12
  415. package/dist/lib/__tests__/demo/animation/shape-label.d.ts +0 -2
  416. package/dist/lib/__tests__/demo/case/behavior-drag-canvas.d.ts +0 -2
  417. package/dist/lib/__tests__/demo/case/behavior-drag-element.d.ts +0 -2
  418. package/dist/lib/__tests__/demo/case/behavior-zoom-canvas.d.ts +0 -2
  419. package/dist/lib/__tests__/demo/case/combo-expand-collapse.d.ts +0 -2
  420. package/dist/lib/__tests__/demo/case/combo.d.ts +0 -2
  421. package/dist/lib/__tests__/demo/case/common-graph.d.ts +0 -2
  422. package/dist/lib/__tests__/demo/case/edge-polyline.d.ts +0 -2
  423. package/dist/lib/__tests__/demo/case/element-change-type.d.ts +0 -2
  424. package/dist/lib/__tests__/demo/case/element-port.d.ts +0 -2
  425. package/dist/lib/__tests__/demo/case/element-position-combo.d.ts +0 -2
  426. package/dist/lib/__tests__/demo/case/element-position.d.ts +0 -2
  427. package/dist/lib/__tests__/demo/case/element-state.d.ts +0 -2
  428. package/dist/lib/__tests__/demo/case/element-visibility.d.ts +0 -2
  429. package/dist/lib/__tests__/demo/case/element-z-index.d.ts +0 -2
  430. package/dist/lib/__tests__/demo/case/graph-event.d.ts +0 -2
  431. package/dist/lib/__tests__/demo/case/index.d.ts +0 -52
  432. package/dist/lib/__tests__/demo/case/layout-antv-dagre-flow-combo.d.ts +0 -2
  433. package/dist/lib/__tests__/demo/case/layout-antv-dagre-flow.d.ts +0 -2
  434. package/dist/lib/__tests__/demo/case/layout-circular-basic.d.ts +0 -2
  435. package/dist/lib/__tests__/demo/case/layout-circular-configuration-translate.d.ts +0 -2
  436. package/dist/lib/__tests__/demo/case/layout-circular-degree.d.ts +0 -2
  437. package/dist/lib/__tests__/demo/case/layout-circular-division.d.ts +0 -2
  438. package/dist/lib/__tests__/demo/case/layout-circular-spiral.d.ts +0 -2
  439. package/dist/lib/__tests__/demo/case/layout-combo-combined.d.ts +0 -2
  440. package/dist/lib/__tests__/demo/case/layout-compact-box-basic.d.ts +0 -2
  441. package/dist/lib/__tests__/demo/case/layout-compact-box-left-align.d.ts +0 -2
  442. package/dist/lib/__tests__/demo/case/layout-compact-box-top-to-bottom.d.ts +0 -2
  443. package/dist/lib/__tests__/demo/case/layout-concentric.d.ts +0 -2
  444. package/dist/lib/__tests__/demo/case/layout-dagre.d.ts +0 -2
  445. package/dist/lib/__tests__/demo/case/layout-dendrogram-basic.d.ts +0 -2
  446. package/dist/lib/__tests__/demo/case/layout-dendrogram-tb.d.ts +0 -2
  447. package/dist/lib/__tests__/demo/case/layout-force.d.ts +0 -2
  448. package/dist/lib/__tests__/demo/case/layout-fruchterman-basic.d.ts +0 -2
  449. package/dist/lib/__tests__/demo/case/layout-fruchterman-cluster.d.ts +0 -2
  450. package/dist/lib/__tests__/demo/case/layout-fruchterman-fix.d.ts +0 -2
  451. package/dist/lib/__tests__/demo/case/layout-grid.d.ts +0 -2
  452. package/dist/lib/__tests__/demo/case/layout-mds.d.ts +0 -2
  453. package/dist/lib/__tests__/demo/case/layout-mindmap-h-custom-side.d.ts +0 -2
  454. package/dist/lib/__tests__/demo/case/layout-mindmap-h-left.d.ts +0 -2
  455. package/dist/lib/__tests__/demo/case/layout-mindmap-h-right.d.ts +0 -2
  456. package/dist/lib/__tests__/demo/case/layout-mindmap-h.d.ts +0 -2
  457. package/dist/lib/__tests__/demo/case/layout-radial-basic.d.ts +0 -2
  458. package/dist/lib/__tests__/demo/case/layout-radial-configuration-translate.d.ts +0 -2
  459. package/dist/lib/__tests__/demo/case/layout-radial-prevent-overlap-unstrict.d.ts +0 -2
  460. package/dist/lib/__tests__/demo/case/layout-radial-prevent-overlap.d.ts +0 -2
  461. package/dist/lib/__tests__/demo/case/layout-radial-sort.d.ts +0 -2
  462. package/dist/lib/__tests__/demo/case/plugin-contextmenu.d.ts +0 -2
  463. package/dist/lib/__tests__/demo/case/plugin-grid-line.d.ts +0 -2
  464. package/dist/lib/__tests__/demo/case/plugin-tooltip.d.ts +0 -2
  465. package/dist/lib/__tests__/demo/case/plugin-watermark-image.d.ts +0 -2
  466. package/dist/lib/__tests__/demo/case/plugin-watermark.d.ts +0 -2
  467. package/dist/lib/__tests__/demo/case/theme.d.ts +0 -2
  468. package/dist/lib/__tests__/demo/case/viewport-fit.d.ts +0 -2
  469. package/dist/lib/__tests__/demo/index.d.ts +0 -3
  470. package/dist/lib/__tests__/demo/static/common.d.ts +0 -45
  471. package/dist/lib/__tests__/demo/static/controller-element-position.d.ts +0 -2
  472. package/dist/lib/__tests__/demo/static/controller-element-visibility.d.ts +0 -2
  473. package/dist/lib/__tests__/demo/static/controller-element-z-index.d.ts +0 -2
  474. package/dist/lib/__tests__/demo/static/controller-element.d.ts +0 -2
  475. package/dist/lib/__tests__/demo/static/controller-layout-antv-dagre.d.ts +0 -2
  476. package/dist/lib/__tests__/demo/static/controller-layout-circular.d.ts +0 -2
  477. package/dist/lib/__tests__/demo/static/controller-layout-compact-box.d.ts +0 -2
  478. package/dist/lib/__tests__/demo/static/controller-layout-d3-force.d.ts +0 -2
  479. package/dist/lib/__tests__/demo/static/controller-layout-dendrogram.d.ts +0 -2
  480. package/dist/lib/__tests__/demo/static/controller-layout-force.d.ts +0 -2
  481. package/dist/lib/__tests__/demo/static/controller-layout-forceatlas2-wasm.d.ts +0 -2
  482. package/dist/lib/__tests__/demo/static/controller-layout-fruchterman-gpu.d.ts +0 -2
  483. package/dist/lib/__tests__/demo/static/controller-layout-fruchterman-wasm.d.ts +0 -2
  484. package/dist/lib/__tests__/demo/static/controller-layout-grid.d.ts +0 -2
  485. package/dist/lib/__tests__/demo/static/controller-layout-indented.d.ts +0 -2
  486. package/dist/lib/__tests__/demo/static/controller-layout-mindmap.d.ts +0 -2
  487. package/dist/lib/__tests__/demo/static/controller-layout-radial.d.ts +0 -2
  488. package/dist/lib/__tests__/demo/static/controller-viewport.d.ts +0 -2
  489. package/dist/lib/__tests__/demo/static/edge-arrow.d.ts +0 -2
  490. package/dist/lib/__tests__/demo/static/edge-cubic-horizontal.d.ts +0 -2
  491. package/dist/lib/__tests__/demo/static/edge-cubic-vertical.d.ts +0 -2
  492. package/dist/lib/__tests__/demo/static/edge-cubic.d.ts +0 -2
  493. package/dist/lib/__tests__/demo/static/edge-custom-arrow.d.ts +0 -2
  494. package/dist/lib/__tests__/demo/static/edge-line.d.ts +0 -2
  495. package/dist/lib/__tests__/demo/static/edge-loop-curve.d.ts +0 -2
  496. package/dist/lib/__tests__/demo/static/edge-loop-polyline.d.ts +0 -2
  497. package/dist/lib/__tests__/demo/static/edge-polyline.d.ts +0 -2
  498. package/dist/lib/__tests__/demo/static/edge-port.d.ts +0 -2
  499. package/dist/lib/__tests__/demo/static/edge-quadratic.d.ts +0 -2
  500. package/dist/lib/__tests__/demo/static/element-label-background.d.ts +0 -2
  501. package/dist/lib/__tests__/demo/static/element-label-oversized.d.ts +0 -2
  502. package/dist/lib/__tests__/demo/static/graph-element.d.ts +0 -2
  503. package/dist/lib/__tests__/demo/static/index.d.ts +0 -9
  504. package/dist/lib/__tests__/demo/static/layered-canvas.d.ts +0 -2
  505. package/dist/lib/__tests__/demo/static/node-circle.d.ts +0 -2
  506. package/dist/lib/__tests__/demo/static/node-diamond.d.ts +0 -2
  507. package/dist/lib/__tests__/demo/static/node-ellipse.d.ts +0 -2
  508. package/dist/lib/__tests__/demo/static/node-image.d.ts +0 -2
  509. package/dist/lib/__tests__/demo/static/node-rect.d.ts +0 -2
  510. package/dist/lib/__tests__/demo/static/node-star.d.ts +0 -2
  511. package/dist/lib/__tests__/demo/static/node-triangle.d.ts +0 -2
  512. package/dist/lib/__tests__/demo/static/shape-badge.d.ts +0 -2
  513. package/dist/lib/__tests__/demo/static/shape-icon.d.ts +0 -2
  514. package/dist/lib/__tests__/demo/static/shape-label.d.ts +0 -2
  515. package/dist/lib/__tests__/demo/types.d.ts +0 -33
  516. package/dist/lib/__tests__/integration/animation.spec.d.ts +0 -1
  517. package/dist/lib/__tests__/integration/static.spec.d.ts +0 -1
  518. package/dist/lib/__tests__/main.d.ts +0 -1
  519. package/dist/lib/__tests__/setup.d.ts +0 -4
  520. package/dist/lib/__tests__/unit/behaviors/behavior-collapse-expand.spec.d.ts +0 -1
  521. package/dist/lib/__tests__/unit/behaviors/behavior-drag-canvas.spec.d.ts +0 -1
  522. package/dist/lib/__tests__/unit/behaviors/behavior-drag-element-combo.spec.d.ts +0 -1
  523. package/dist/lib/__tests__/unit/behaviors/behavior-drag-element.spec.d.ts +0 -1
  524. package/dist/lib/__tests__/unit/behaviors/behavior-zoom-canvas.spec.d.ts +0 -1
  525. package/dist/lib/__tests__/unit/behaviors/drag-element-bug.spec.d.ts +0 -1
  526. package/dist/lib/__tests__/unit/elements/change-type.spec.d.ts +0 -1
  527. package/dist/lib/__tests__/unit/elements/combo.spec.d.ts +0 -1
  528. package/dist/lib/__tests__/unit/elements/edge-polyline.spec.d.ts +0 -1
  529. package/dist/lib/__tests__/unit/elements/port.spec.d.ts +0 -1
  530. package/dist/lib/__tests__/unit/elements/position-combo.spec.d.ts +0 -1
  531. package/dist/lib/__tests__/unit/elements/position.spec.d.ts +0 -1
  532. package/dist/lib/__tests__/unit/elements/state.spec.d.ts +0 -1
  533. package/dist/lib/__tests__/unit/elements/visibility.spec.d.ts +0 -1
  534. package/dist/lib/__tests__/unit/elements/z-index.spec.d.ts +0 -1
  535. package/dist/lib/__tests__/unit/layouts/circular.spec.d.ts +0 -1
  536. package/dist/lib/__tests__/unit/layouts/combo-layout.spec.d.ts +0 -1
  537. package/dist/lib/__tests__/unit/layouts/compact-box.spec.d.ts +0 -1
  538. package/dist/lib/__tests__/unit/layouts/dagre.spec.d.ts +0 -1
  539. package/dist/lib/__tests__/unit/layouts/dendrogram.spec.d.ts +0 -1
  540. package/dist/lib/__tests__/unit/layouts/fruchterman.spec.d.ts +0 -1
  541. package/dist/lib/__tests__/unit/layouts/grid.spec.d.ts +0 -1
  542. package/dist/lib/__tests__/unit/layouts/layout-concentric.spec.d.ts +0 -1
  543. package/dist/lib/__tests__/unit/layouts/mds.spec.d.ts +0 -1
  544. package/dist/lib/__tests__/unit/layouts/mindmap.spec.d.ts +0 -1
  545. package/dist/lib/__tests__/unit/layouts/radial-layout.spec.d.ts +0 -1
  546. package/dist/lib/__tests__/unit/plugins/plugin-contextmenu.spec.d.ts +0 -1
  547. package/dist/lib/__tests__/unit/plugins/plugin-grid-line.spec.d.ts +0 -1
  548. package/dist/lib/__tests__/unit/plugins/plugin-watermark.spec.d.ts +0 -1
  549. package/dist/lib/__tests__/unit/plugins/tooltip.spec.d.ts +0 -1
  550. package/dist/lib/__tests__/unit/registry.spec.d.ts +0 -1
  551. package/dist/lib/__tests__/unit/runtime/canvas.spec.d.ts +0 -1
  552. package/dist/lib/__tests__/unit/runtime/data.spec.d.ts +0 -1
  553. package/dist/lib/__tests__/unit/runtime/element/visibility.spec.d.ts +0 -1
  554. package/dist/lib/__tests__/unit/runtime/element/z-index.spec.d.ts +0 -1
  555. package/dist/lib/__tests__/unit/runtime/element.spec.d.ts +0 -1
  556. package/dist/lib/__tests__/unit/runtime/graph/auto-resize.spec.d.ts +0 -1
  557. package/dist/lib/__tests__/unit/runtime/graph/graph.spec.d.ts +0 -1
  558. package/dist/lib/__tests__/unit/runtime/viewport.spec.d.ts +0 -1
  559. package/dist/lib/__tests__/unit/spec/behavior.spec.d.ts +0 -1
  560. package/dist/lib/__tests__/unit/spec/canvas.spec.d.ts +0 -1
  561. package/dist/lib/__tests__/unit/spec/data.spec.d.ts +0 -1
  562. package/dist/lib/__tests__/unit/spec/element/combo.spec.d.ts +0 -1
  563. package/dist/lib/__tests__/unit/spec/element/edge.spec.d.ts +0 -1
  564. package/dist/lib/__tests__/unit/spec/element/node.spec.d.ts +0 -1
  565. package/dist/lib/__tests__/unit/spec/index.spec.d.ts +0 -1
  566. package/dist/lib/__tests__/unit/spec/layout.spec.d.ts +0 -1
  567. package/dist/lib/__tests__/unit/spec/plugin.spec.d.ts +0 -1
  568. package/dist/lib/__tests__/unit/spec/theme.spec.d.ts +0 -1
  569. package/dist/lib/__tests__/unit/spec/viewport.spec.d.ts +0 -1
  570. package/dist/lib/__tests__/unit/utils/anchor.spec.d.ts +0 -1
  571. package/dist/lib/__tests__/unit/utils/animation.spec.d.ts +0 -1
  572. package/dist/lib/__tests__/unit/utils/array.spec.d.ts +0 -1
  573. package/dist/lib/__tests__/unit/utils/bbox.spec.d.ts +0 -1
  574. package/dist/lib/__tests__/unit/utils/cache.spec.d.ts +0 -1
  575. package/dist/lib/__tests__/unit/utils/change.spec.d.ts +0 -1
  576. package/dist/lib/__tests__/unit/utils/combo.spec.d.ts +0 -1
  577. package/dist/lib/__tests__/unit/utils/data.spec.d.ts +0 -1
  578. package/dist/lib/__tests__/unit/utils/diff.spec.d.ts +0 -1
  579. package/dist/lib/__tests__/unit/utils/dom.spec.d.ts +0 -1
  580. package/dist/lib/__tests__/unit/utils/edge.spec.d.ts +0 -1
  581. package/dist/lib/__tests__/unit/utils/element.spec.d.ts +0 -1
  582. package/dist/lib/__tests__/unit/utils/event.spec.d.ts +0 -1
  583. package/dist/lib/__tests__/unit/utils/extension.spec.d.ts +0 -1
  584. package/dist/lib/__tests__/unit/utils/graphlib.spec.d.ts +0 -1
  585. package/dist/lib/__tests__/unit/utils/id.spec.d.ts +0 -1
  586. package/dist/lib/__tests__/unit/utils/is.spec.d.ts +0 -1
  587. package/dist/lib/__tests__/unit/utils/layout.spec.d.ts +0 -1
  588. package/dist/lib/__tests__/unit/utils/math.spec.d.ts +0 -1
  589. package/dist/lib/__tests__/unit/utils/padding.spec.d.ts +0 -1
  590. package/dist/lib/__tests__/unit/utils/palette.spec.d.ts +0 -1
  591. package/dist/lib/__tests__/unit/utils/placement.spec.d.ts +0 -1
  592. package/dist/lib/__tests__/unit/utils/point.spec.d.ts +0 -1
  593. package/dist/lib/__tests__/unit/utils/position.spec.d.ts +0 -1
  594. package/dist/lib/__tests__/unit/utils/prefix.spec.d.ts +0 -1
  595. package/dist/lib/__tests__/unit/utils/random.spec.d.ts +0 -1
  596. package/dist/lib/__tests__/unit/utils/router.spec.d.ts +0 -1
  597. package/dist/lib/__tests__/unit/utils/shape.spec.d.ts +0 -1
  598. package/dist/lib/__tests__/unit/utils/shortcut.spec.d.ts +0 -1
  599. package/dist/lib/__tests__/unit/utils/size.spec.d.ts +0 -1
  600. package/dist/lib/__tests__/unit/utils/style.spec.d.ts +0 -1
  601. package/dist/lib/__tests__/unit/utils/symbol.spec.d.ts +0 -1
  602. package/dist/lib/__tests__/unit/utils/text.spec.d.ts +0 -1
  603. package/dist/lib/__tests__/unit/utils/traverse.spec.d.ts +0 -1
  604. package/dist/lib/__tests__/unit/utils/tree.spec.d.ts +0 -1
  605. package/dist/lib/__tests__/unit/utils/vector.spec.d.ts +0 -1
  606. package/dist/lib/__tests__/unit/utils/visibility.spec.d.ts +0 -1
  607. package/dist/lib/__tests__/utils/create.d.ts +0 -15
  608. package/dist/lib/__tests__/utils/dir.d.ts +0 -9
  609. package/dist/lib/__tests__/utils/get-cases.d.ts +0 -2
  610. package/dist/lib/__tests__/utils/index.d.ts +0 -4
  611. package/dist/lib/__tests__/utils/offscreen-canvas-context.d.ts +0 -21
  612. package/dist/lib/__tests__/utils/random.d.ts +0 -5
  613. package/dist/lib/__tests__/utils/sleep.d.ts +0 -1
  614. package/dist/lib/__tests__/utils/to-be-close-to.d.ts +0 -10
  615. package/dist/lib/__tests__/utils/to-match-svg-snapshot.d.ts +0 -14
  616. package/dist/lib/__tests__/utils/use-snapshot-matchers.d.ts +0 -9
  617. package/dist/lib/src/exports.d.ts +0 -24
  618. package/dist/lib/src/types/behavior.d.ts +0 -5
  619. package/dist/lib/src/types/event.d.ts +0 -8
  620. package/esm/types/behavior.d.ts +0 -5
  621. package/esm/types/behavior.js +0 -2
  622. package/esm/types/behavior.js.map +0 -1
  623. package/lib/types/behavior.d.ts +0 -5
  624. package/lib/types/behavior.js +0 -3
  625. package/lib/types/behavior.js.map +0 -1
  626. package/src/types/behavior.ts +0 -6
  627. /package/dist/lib/{src/animations → animations}/executor.d.ts +0 -0
  628. /package/dist/lib/{src/animations → animations}/index.d.ts +0 -0
  629. /package/dist/lib/{src/animations → animations}/types.d.ts +0 -0
  630. /package/dist/lib/{src/behaviors → behaviors}/base-behavior.d.ts +0 -0
  631. /package/dist/lib/{src/behaviors → behaviors}/types.d.ts +0 -0
  632. /package/dist/lib/{src/constants → constants}/animation.d.ts +0 -0
  633. /package/dist/lib/{src/constants → constants}/change.d.ts +0 -0
  634. /package/dist/lib/{src/constants → constants}/events/combo.d.ts +0 -0
  635. /package/dist/lib/{src/constants → constants}/events/index.d.ts +0 -0
  636. /package/dist/lib/{src/constants → constants}/graphlib.d.ts +0 -0
  637. /package/dist/lib/{src/elements → elements}/combos/circle.d.ts +0 -0
  638. /package/dist/lib/{src/elements → elements}/combos/index.d.ts +0 -0
  639. /package/dist/lib/{src/elements → elements}/combos/rect.d.ts +0 -0
  640. /package/dist/lib/{src/elements → elements}/edges/cubic-horizontal.d.ts +0 -0
  641. /package/dist/lib/{src/elements → elements}/edges/cubic-vertical.d.ts +0 -0
  642. /package/dist/lib/{src/elements → elements}/edges/cubic.d.ts +0 -0
  643. /package/dist/lib/{src/elements → elements}/edges/index.d.ts +0 -0
  644. /package/dist/lib/{src/elements → elements}/edges/line.d.ts +0 -0
  645. /package/dist/lib/{src/elements → elements}/edges/polyline.d.ts +0 -0
  646. /package/dist/lib/{src/elements → elements}/edges/quadratic.d.ts +0 -0
  647. /package/dist/lib/{src/elements → elements}/index.d.ts +0 -0
  648. /package/dist/lib/{src/elements → elements}/nodes/circle.d.ts +0 -0
  649. /package/dist/lib/{src/elements → elements}/nodes/diamond.d.ts +0 -0
  650. /package/dist/lib/{src/elements → elements}/nodes/ellipse.d.ts +0 -0
  651. /package/dist/lib/{src/elements → elements}/nodes/image.d.ts +0 -0
  652. /package/dist/lib/{src/elements → elements}/nodes/polygon.d.ts +0 -0
  653. /package/dist/lib/{src/elements → elements}/nodes/rect.d.ts +0 -0
  654. /package/dist/lib/{src/elements → elements}/nodes/star.d.ts +0 -0
  655. /package/dist/lib/{src/elements → elements}/nodes/triangle.d.ts +0 -0
  656. /package/dist/lib/{src/elements → elements}/shapes/icon.d.ts +0 -0
  657. /package/dist/lib/{src/elements → elements}/shapes/index.d.ts +0 -0
  658. /package/dist/lib/{src/elements → elements}/shapes/label.d.ts +0 -0
  659. /package/dist/lib/{src/index.d.ts → index.d.ts} +0 -0
  660. /package/dist/lib/{src/layouts → layouts}/types.d.ts +0 -0
  661. /package/dist/lib/{src/palettes → palettes}/index.d.ts +0 -0
  662. /package/dist/lib/{src/palettes → palettes}/types.d.ts +0 -0
  663. /package/dist/lib/{src/plugins → plugins}/base-plugin.d.ts +0 -0
  664. /package/dist/lib/{src/plugins → plugins}/grid-line.d.ts +0 -0
  665. /package/dist/lib/{src/plugins → plugins}/types.d.ts +0 -0
  666. /package/dist/lib/{src/plugins → plugins}/watermark.d.ts +0 -0
  667. /package/dist/lib/{src/preset.d.ts → preset.d.ts} +0 -0
  668. /package/dist/lib/{src/registry → registry}/build-in.d.ts +0 -0
  669. /package/dist/lib/{src/registry → registry}/extension/types.d.ts +0 -0
  670. /package/dist/lib/{src/runtime → runtime}/index.d.ts +0 -0
  671. /package/dist/lib/{src/runtime → runtime}/layout.d.ts +0 -0
  672. /package/dist/lib/{src/runtime → runtime}/types.d.ts +0 -0
  673. /package/dist/lib/{src/runtime → runtime}/viewport.d.ts +0 -0
  674. /package/dist/lib/{src/spec → spec}/behavior.d.ts +0 -0
  675. /package/dist/lib/{src/spec → spec}/canvas.d.ts +0 -0
  676. /package/dist/lib/{src/spec → spec}/data.d.ts +0 -0
  677. /package/dist/lib/{src/spec → spec}/element/animation.d.ts +0 -0
  678. /package/dist/lib/{src/spec → spec}/element/base.d.ts +0 -0
  679. /package/dist/lib/{src/spec → spec}/element/combo.d.ts +0 -0
  680. /package/dist/lib/{src/spec → spec}/element/edge.d.ts +0 -0
  681. /package/dist/lib/{src/spec → spec}/element/node.d.ts +0 -0
  682. /package/dist/lib/{src/spec → spec}/element/palette.d.ts +0 -0
  683. /package/dist/lib/{src/spec → spec}/index.d.ts +0 -0
  684. /package/dist/lib/{src/spec → spec}/layout.d.ts +0 -0
  685. /package/dist/lib/{src/spec → spec}/plugin.d.ts +0 -0
  686. /package/dist/lib/{src/spec → spec}/spec.d.ts +0 -0
  687. /package/dist/lib/{src/spec → spec}/theme.d.ts +0 -0
  688. /package/dist/lib/{src/spec → spec}/viewport.d.ts +0 -0
  689. /package/dist/lib/{src/themes → themes}/base.d.ts +0 -0
  690. /package/dist/lib/{src/themes → themes}/dark.d.ts +0 -0
  691. /package/dist/lib/{src/themes → themes}/index.d.ts +0 -0
  692. /package/dist/lib/{src/themes → themes}/light.d.ts +0 -0
  693. /package/dist/lib/{src/themes → themes}/types.d.ts +0 -0
  694. /package/dist/lib/{src/types → types}/anchor.d.ts +0 -0
  695. /package/dist/lib/{src/types → types}/animation.d.ts +0 -0
  696. /package/dist/lib/{src/types → types}/callable.d.ts +0 -0
  697. /package/dist/lib/{src/types → types}/canvas.d.ts +0 -0
  698. /package/dist/lib/{src/types → types}/change.d.ts +0 -0
  699. /package/dist/lib/{src/types → types}/data.d.ts +0 -0
  700. /package/dist/lib/{src/types → types}/edge.d.ts +0 -0
  701. /package/dist/lib/{src/types → types}/element.d.ts +0 -0
  702. /package/dist/lib/{src/types → types}/enum.d.ts +0 -0
  703. /package/dist/lib/{src/types → types}/graphlib.d.ts +0 -0
  704. /package/dist/lib/{src/types → types}/node.d.ts +0 -0
  705. /package/dist/lib/{src/types → types}/padding.d.ts +0 -0
  706. /package/dist/lib/{src/types → types}/placement.d.ts +0 -0
  707. /package/dist/lib/{src/types → types}/plugin.d.ts +0 -0
  708. /package/dist/lib/{src/types → types}/point.d.ts +0 -0
  709. /package/dist/lib/{src/types → types}/position.d.ts +0 -0
  710. /package/dist/lib/{src/types → types}/prefix.d.ts +0 -0
  711. /package/dist/lib/{src/types → types}/size.d.ts +0 -0
  712. /package/dist/lib/{src/types → types}/state.d.ts +0 -0
  713. /package/dist/lib/{src/types → types}/style.d.ts +0 -0
  714. /package/dist/lib/{src/types → types}/tree.d.ts +0 -0
  715. /package/dist/lib/{src/types → types}/vector.d.ts +0 -0
  716. /package/dist/lib/{src/types → types}/viewport.d.ts +0 -0
  717. /package/dist/lib/{src/utils → utils}/anchor.d.ts +0 -0
  718. /package/dist/lib/{src/utils → utils}/animation.d.ts +0 -0
  719. /package/dist/lib/{src/utils → utils}/array.d.ts +0 -0
  720. /package/dist/lib/{src/utils → utils}/cache.d.ts +0 -0
  721. /package/dist/lib/{src/utils → utils}/change.d.ts +0 -0
  722. /package/dist/lib/{src/utils → utils}/combo.d.ts +0 -0
  723. /package/dist/lib/{src/utils → utils}/contextmenu.d.ts +0 -0
  724. /package/dist/lib/{src/utils → utils}/data.d.ts +0 -0
  725. /package/dist/lib/{src/utils → utils}/diff.d.ts +0 -0
  726. /package/dist/lib/{src/utils → utils}/edge.d.ts +0 -0
  727. /package/dist/lib/{src/utils → utils}/event/index.d.ts +0 -0
  728. /package/dist/lib/{src/utils → utils}/extension.d.ts +0 -0
  729. /package/dist/lib/{src/utils → utils}/graphlib.d.ts +0 -0
  730. /package/dist/lib/{src/utils → utils}/is.d.ts +0 -0
  731. /package/dist/lib/{src/utils → utils}/layout.d.ts +0 -0
  732. /package/dist/lib/{src/utils → utils}/math.d.ts +0 -0
  733. /package/dist/lib/{src/utils → utils}/padding.d.ts +0 -0
  734. /package/dist/lib/{src/utils → utils}/palette.d.ts +0 -0
  735. /package/dist/lib/{src/utils → utils}/placement.d.ts +0 -0
  736. /package/dist/lib/{src/utils → utils}/point.d.ts +0 -0
  737. /package/dist/lib/{src/utils → utils}/position.d.ts +0 -0
  738. /package/dist/lib/{src/utils → utils}/prefix.d.ts +0 -0
  739. /package/dist/lib/{src/utils → utils}/router/orth.d.ts +0 -0
  740. /package/dist/lib/{src/utils → utils}/shape.d.ts +0 -0
  741. /package/dist/lib/{src/utils → utils}/size.d.ts +0 -0
  742. /package/dist/lib/{src/utils → utils}/style.d.ts +0 -0
  743. /package/dist/lib/{src/utils → utils}/symbol.d.ts +0 -0
  744. /package/dist/lib/{src/utils → utils}/text.d.ts +0 -0
  745. /package/dist/lib/{src/utils → utils}/tree.d.ts +0 -0
  746. /package/dist/lib/{src/utils → utils}/vector.d.ts +0 -0
  747. /package/dist/lib/{src/utils → utils}/visibility.d.ts +0 -0
  748. /package/dist/lib/{src/utils → utils}/watermark.d.ts +0 -0
@@ -1,9 +1,9 @@
1
1
  import type { AABB, DisplayObject, TextStyleProps } from '@antv/g';
2
2
  import { get, isString } from '@antv/util';
3
3
  import { BaseCombo, BaseEdge, BaseNode } from '../elements';
4
- import { NodePortStyleProps } from '../elements/nodes/base-node';
4
+ import type { NodePortStyleProps } from '../elements/nodes/base-node';
5
5
  import type { TriangleDirection } from '../elements/nodes/triangle';
6
- import type { Combo, Edge, Node, Placement, Point, Position } from '../types';
6
+ import type { Combo, Edge, Element, Node, Placement, Point, Position } from '../types';
7
7
  import type { LabelPlacement, Port } from '../types/node';
8
8
  import { getBBoxHeight, getBBoxWidth } from './bbox';
9
9
  import { isPoint } from './is';
@@ -11,38 +11,49 @@ import { findNearestPoints, getEllipseIntersectPoint } from './point';
11
11
  import { getXYByPlacement } from './position';
12
12
 
13
13
  /**
14
- * <zh/> 判断是否是 BaseNode 的实例
14
+ * <zh/> 判断是否是 Node 的实例
15
15
  *
16
- * <en/> Judge whether the instance is BaseNode
16
+ * <en/> Judge whether the instance is Node
17
17
  * @param shape - <zh/> 实例 | <en/> instance
18
- * @returns <zh/> 是否是 BaseNode 的实例 | <en/> whether the instance is BaseNode
18
+ * @returns <zh/> 是否是 Node 的实例 | <en/> whether the instance is Node
19
19
  */
20
20
  export function isNode(shape: DisplayObject | Port): shape is Node {
21
21
  return shape instanceof BaseNode && shape.type === 'node';
22
22
  }
23
23
 
24
24
  /**
25
- * <zh/> 判断是否是 BaseEdge 的实例
25
+ * <zh/> 判断是否是 Edge 的实例
26
26
  *
27
- * <en/> Judge whether the instance is BaseEdge
27
+ * <en/> Judge whether the instance is Edge
28
28
  * @param shape - <zh/> 实例 | <en/> instance
29
- * @returns <zh/> 是否是 BaseEdge 的实例 | <en/> whether the instance is BaseEdge
29
+ * @returns <zh/> 是否是 Edge 的实例 | <en/> whether the instance is Edge
30
30
  */
31
31
  export function isEdge(shape: DisplayObject): shape is Edge {
32
32
  return shape instanceof BaseEdge;
33
33
  }
34
34
 
35
35
  /**
36
- * <zh/> 判断是否是 BaseCombo 的实例
36
+ * <zh/> 判断是否是 Combo 的实例
37
37
  *
38
- * <en/> Judge whether the instance is BaseCombo
38
+ * <en/> Judge whether the instance is Combo
39
39
  * @param shape - <zh/> 实例 | <en/> instance
40
- * @returns <zh/> 是否是 BaseCombo 的实例 | <en/> whether the instance is BaseCombo
40
+ * @returns <zh/> 是否是 Combo 的实例 | <en/> whether the instance is Combo
41
41
  */
42
42
  export function isCombo(shape: DisplayObject): shape is Combo {
43
43
  return shape instanceof BaseCombo;
44
44
  }
45
45
 
46
+ /**
47
+ * <zh/> 判断是否是 Element 的实例
48
+ *
49
+ * <en/> Judge whether the instance is Element
50
+ * @param shape - <zh/> 实例 | <en/> instance
51
+ * @returns <zh/> 是否是 Element 的实例 | <en/> whether the instance is Element
52
+ */
53
+ export function isElement(shape: any): shape is Element {
54
+ return isNode(shape) || isEdge(shape) || isCombo(shape);
55
+ }
56
+
46
57
  /**
47
58
  * <zh/> 判断两个节点是否相同
48
59
  *
@@ -461,3 +472,19 @@ export function updateStyle<T extends DisplayObject>(shape: T, style: Record<str
461
472
  if ('update' in shape) (shape.update as (style: Record<string, unknown>) => void)(style);
462
473
  else shape.attr(style);
463
474
  }
475
+
476
+ /**
477
+ * Get Hexagon PathArray
478
+ * @param outerR - <zh/> 外接圆半径 | <en/> the radius of circumscribed circle
479
+ * @returns The PathArray for G
480
+ */
481
+ export function getHexagonPoints(outerR: number): Point[] {
482
+ return [
483
+ [0, outerR],
484
+ [(outerR * Math.sqrt(3)) / 2, outerR / 2],
485
+ [(outerR * Math.sqrt(3)) / 2, -outerR / 2],
486
+ [0, -outerR],
487
+ [(-outerR * Math.sqrt(3)) / 2, -outerR / 2],
488
+ [(-outerR * Math.sqrt(3)) / 2, outerR / 2],
489
+ ];
490
+ }
@@ -1,14 +1,20 @@
1
1
  import type { IAnimation } from '@antv/g';
2
- import type { ID } from '@antv/graphlib';
3
2
  import type { AnimationType, GraphEvent } from '../../constants';
4
- import type { GraphData } from '../../spec';
5
- import type { State, TransformOptions } from '../../types';
3
+ import type {
4
+ ElementDatum,
5
+ ElementType,
6
+ IAnimateEvent,
7
+ IElementLifeCycleEvent,
8
+ IGraphLifeCycleEvent,
9
+ IViewportEvent,
10
+ TransformOptions,
11
+ } from '../../types';
6
12
 
7
13
  export class BaseEvent {
8
14
  constructor(public type: string) {}
9
15
  }
10
16
 
11
- export class GraphLifeCycleEvent extends BaseEvent {
17
+ export class GraphLifeCycleEvent extends BaseEvent implements IGraphLifeCycleEvent {
12
18
  constructor(
13
19
  type:
14
20
  | GraphEvent.BEFORE_RENDER
@@ -25,7 +31,7 @@ export class GraphLifeCycleEvent extends BaseEvent {
25
31
  }
26
32
  }
27
33
 
28
- export class AnimateEvent extends BaseEvent {
34
+ export class AnimateEvent extends BaseEvent implements IAnimateEvent {
29
35
  constructor(
30
36
  type: GraphEvent.BEFORE_ANIMATE | GraphEvent.AFTER_ANIMATE,
31
37
  public animationType: AnimationType,
@@ -36,7 +42,7 @@ export class AnimateEvent extends BaseEvent {
36
42
  }
37
43
  }
38
44
 
39
- export class ElementLifeCycleEvent extends BaseEvent {
45
+ export class ElementLifeCycleEvent extends BaseEvent implements IElementLifeCycleEvent {
40
46
  constructor(
41
47
  type:
42
48
  | GraphEvent.BEFORE_ELEMENT_CREATE
@@ -45,13 +51,14 @@ export class ElementLifeCycleEvent extends BaseEvent {
45
51
  | GraphEvent.AFTER_ELEMENT_UPDATE
46
52
  | GraphEvent.BEFORE_ELEMENT_DESTROY
47
53
  | GraphEvent.AFTER_ELEMENT_DESTROY,
48
- public data: GraphData,
54
+ public elementType: ElementType,
55
+ public data: ElementDatum,
49
56
  ) {
50
57
  super(type);
51
58
  }
52
59
  }
53
60
 
54
- export class ViewportEvent extends BaseEvent {
61
+ export class ViewportEvent extends BaseEvent implements IViewportEvent {
55
62
  constructor(
56
63
  type: GraphEvent.BEFORE_TRANSFORM | GraphEvent.AFTER_TRANSFORM,
57
64
  public data: TransformOptions,
@@ -59,12 +66,3 @@ export class ViewportEvent extends BaseEvent {
59
66
  super(type);
60
67
  }
61
68
  }
62
-
63
- export class ElementStateChangeEvent extends BaseEvent {
64
- constructor(
65
- type: GraphEvent.BEFORE_ELEMENT_STATE_CHANGE | GraphEvent.AFTER_ELEMENT_STATE_CHANGE,
66
- public states: Record<ID, State | State[]>,
67
- ) {
68
- super(type);
69
- }
70
- }
package/src/utils/id.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { ID } from '@antv/graphlib';
2
2
  import { isNumber, isString } from '@antv/util';
3
- import type { ComboData, EdgeData, NodeData } from '../spec';
3
+ import type { ComboData, EdgeData, GraphData, NodeData } from '../spec';
4
4
  import { isEdgeData } from './is';
5
5
 
6
6
  /**
@@ -27,3 +27,14 @@ export function idOf(data: Partial<NodeData | EdgeData | ComboData>): ID {
27
27
  export function parentIdOf(data: Partial<NodeData | ComboData>) {
28
28
  return data.style?.parentId;
29
29
  }
30
+
31
+ /**
32
+ * <zh/> 获取图数据中所有节点/边/Combo 的 ID
33
+ *
34
+ * <en/> Get the IDs of all nodes/edges/combos in the graph data
35
+ * @param data - <zh/> 图数据 | <en/> graph data
36
+ * @returns - <zh/> 返回元素 ID 数组 | <en/> Returns an array of element IDs
37
+ */
38
+ export function getIds(data: GraphData): ID[] {
39
+ return Object.values(data).flatMap((elements: NodeData[] | EdgeData[] | ComboData[]) => elements.map(idOf));
40
+ }
@@ -0,0 +1,84 @@
1
+ import type { ID } from '@antv/graphlib';
2
+ import type { Graph } from '../runtime/graph';
3
+ import type { ElementType } from '../types';
4
+ import { idOf } from './id';
5
+ import { bfs } from './traverse';
6
+
7
+ /**
8
+ * <zh/> 获取指定元素在 n 度关系内的所有元素的 ID
9
+ *
10
+ * <en/> Get the IDs of all elements within an n-degree relationship from the specified element
11
+ * @description
12
+ * <zh/> 对于节点,0 度关系是节点本身,1 度关系包括节点的直接相邻节点和边,以此类推。
13
+ * 对于边,0 度关系是边本身,1 度关系包括边本身及其两个端点,以此类推。
14
+ *
15
+ * <en/> For a node, 0-degree relationship includes the node itself; 1-degree relationship includes the node's direct neighbors and their connecting edges, etc.
16
+ * For an edge, 0-degree relationship includes the edge itself; 1-degree relationship includes the edge and its two endpoints, etc
17
+ * @param graph - <zh/> 图实例 | <en/> graph instance
18
+ * @param elementType - <zh/> 元素类型 | <en/> element type
19
+ * @param elementId - <zh/> 起始元素的 ID | <en/> start element ID
20
+ * @param degree - <zh/> 指定的度数 | <en/> the specified degree
21
+ * @returns - <zh/> 返回节点和边的 ID 数组 | <en/> Returns an array of node and edge IDs
22
+ */
23
+ export function getElementNthDegreeIds(graph: Graph, elementType: ElementType, elementId: ID, degree: number): ID[] {
24
+ if (elementType === 'combo' || elementType === 'node') {
25
+ return getNodeNthDegreeIds(graph, elementId, degree);
26
+ }
27
+
28
+ const edgeData = graph.getEdgeData(elementId);
29
+ if (!edgeData) return [];
30
+
31
+ const sourceRelations = getNodeNthDegreeIds(graph, edgeData.source, degree - 1);
32
+ const targetRelations = getNodeNthDegreeIds(graph, edgeData.target, degree - 1);
33
+
34
+ return Array.from(new Set<ID>([...sourceRelations, ...targetRelations, elementId]));
35
+ }
36
+
37
+ /**
38
+ * <zh/> 获取指定节点在 n 度关系内的所有元素的 ID
39
+ *
40
+ * <en/> Get all elements IDs within n-degree relationship of the specified node
41
+ * @description
42
+ * <zh/> 节点的 0 度关系是节点本身,1 度关系是节点的直接相邻节点和边,以此类推
43
+ *
44
+ * <en/> 0-degree relationship of a node is the node itself; 1-degree relationship is the node's neighboring nodes and related edges, etc
45
+ * @param graph - <zh/> 图实例 | <en/> graph instance
46
+ * @param startNodeId - <zh/> 起始节点的 ID | <en/> The ID of the starting node
47
+ * @param degree - <zh/> 指定的度数 | <en/> The specified degree
48
+ * @returns - <zh/> 返回节点和边的 ID 数组 | <en/> Returns an array of node and edge IDs
49
+ */
50
+ export function getNodeNthDegreeIds(graph: Graph, startNodeId: ID, degree: number): ID[] {
51
+ const visitedNodes = new Set<ID>();
52
+ const visitedEdges = new Set<ID>();
53
+ const relations = new Set<ID>();
54
+
55
+ bfs(
56
+ startNodeId,
57
+ (nodeId: ID, depth: number) => {
58
+ if (depth > degree) return;
59
+ relations.add(nodeId);
60
+
61
+ graph.getRelatedEdgesData(nodeId).forEach((edge) => {
62
+ const edgeId = idOf(edge);
63
+ if (!visitedEdges.has(edgeId) && depth < degree) {
64
+ relations.add(edgeId);
65
+ visitedEdges.add(edgeId);
66
+ }
67
+ });
68
+ },
69
+ (nodeId: ID) => {
70
+ return graph
71
+ .getRelatedEdgesData(nodeId)
72
+ .map((edge) => (edge.source === nodeId ? edge.target : edge.source))
73
+ .filter((neighborNodeId) => {
74
+ if (!visitedNodes.has(neighborNodeId)) {
75
+ visitedNodes.add(neighborNodeId);
76
+ return true;
77
+ }
78
+ return false;
79
+ });
80
+ },
81
+ );
82
+
83
+ return Array.from(relations);
84
+ }
@@ -1,4 +1,5 @@
1
1
  import EventEmitter from '@antv/event-emitter';
2
+ import type { FederatedMouseEvent } from '@antv/g';
2
3
  import { isEqual } from '@antv/util';
3
4
  import { CommonEvent } from '../constants';
4
5
 
@@ -43,6 +44,7 @@ export class Shortcut {
43
44
  emitter.on(CommonEvent.KEY_DOWN, this.onKeyDown);
44
45
  emitter.on(CommonEvent.KEY_UP, this.onKeyUp);
45
46
  emitter.on(CommonEvent.WHEEL, this.onWheel);
47
+ emitter.on(CommonEvent.DRAG, this.onDrag);
46
48
  }
47
49
 
48
50
  private onKeyDown = (event: KeyboardEvent) => {
@@ -60,18 +62,41 @@ export class Shortcut {
60
62
  });
61
63
  }
62
64
 
63
- private onWheel = (event: WheelEvent) => {
65
+ /**
66
+ * <zh/> 扩展 wheel, drag 操作
67
+ *
68
+ * <en/> Extend wheel, drag operations
69
+ * @param eventType - event name
70
+ * @param event - event
71
+ */
72
+ private triggerExtendKey(eventType: CommonEvent, event: unknown) {
64
73
  this.map.forEach((handler, key) => {
65
- if (key.includes(CommonEvent.WHEEL)) {
74
+ if (key.includes(eventType)) {
66
75
  if (
67
76
  isEqual(
68
77
  Array.from(this.recordKey),
69
- key.filter((k) => k !== CommonEvent.WHEEL),
78
+ key.filter((k) => k !== eventType),
70
79
  )
71
80
  ) {
72
81
  handler(event);
73
82
  }
74
83
  }
75
84
  });
85
+ }
86
+
87
+ private onWheel = (event: WheelEvent) => {
88
+ this.triggerExtendKey(CommonEvent.WHEEL, event);
76
89
  };
90
+
91
+ private onDrag = (event: FederatedMouseEvent) => {
92
+ this.triggerExtendKey(CommonEvent.DRAG, event);
93
+ };
94
+
95
+ public destroy() {
96
+ this.unbindAll();
97
+ this.emitter.off(CommonEvent.KEY_DOWN, this.onKeyDown);
98
+ this.emitter.off(CommonEvent.KEY_UP, this.onKeyUp);
99
+ this.emitter.off(CommonEvent.WHEEL, this.onWheel);
100
+ this.emitter.off(CommonEvent.DRAG, this.onDrag);
101
+ }
77
102
  }
@@ -31,3 +31,29 @@ export function dfs<N>(
31
31
 
32
32
  if (mode === 'BT') visitor(node, depth);
33
33
  }
34
+
35
+ /**
36
+ * <zh/> 执行广度优先遍历
37
+ *
38
+ * <en/> perform breadth first traversal
39
+ * @param node - <zh/> 起始节点 | <en/> start node
40
+ * @param visitor - <zh/> 访问节点函数 | <en/> visitor function
41
+ * @param navigator - <zh/> 获取子节点函数 | <en/> get children function
42
+ */
43
+ export function bfs<N>(node: N, visitor: (node: N, depth: number) => void, navigator: (node: N) => N[] | undefined) {
44
+ const queue: [N, number][] = [[node, 0]];
45
+
46
+ while (queue.length) {
47
+ const [current, depth] = queue.shift()!;
48
+
49
+ visitor(current, depth);
50
+
51
+ const children = navigator(current);
52
+
53
+ if (children) {
54
+ for (const child of children) {
55
+ queue.push([child, depth + 1]);
56
+ }
57
+ }
58
+ }
59
+ }
@@ -1,2 +0,0 @@
1
- import type { AnimationTestCase } from '../types';
2
- export declare const animationBreathe: AnimationTestCase;
@@ -1,2 +0,0 @@
1
- import type { AnimationTestCase } from '../types';
2
- export declare const animationFadeIn: AnimationTestCase;
@@ -1,2 +0,0 @@
1
- import type { AnimationTestCase } from '../types';
2
- export declare const animationTranslate: AnimationTestCase;
@@ -1,2 +0,0 @@
1
- import type { AnimationTestCase } from '../types';
2
- export declare const animationWave: AnimationTestCase;
@@ -1,2 +0,0 @@
1
- import type { AnimationTestCase } from '../types';
2
- export declare const animationZoomIn: AnimationTestCase;
@@ -1,2 +0,0 @@
1
- import type { AnimationTestCase } from '../types';
2
- export declare const controllerElementPosition: AnimationTestCase;
@@ -1,2 +0,0 @@
1
- import type { AnimationTestCase } from '../types';
2
- export declare const controllerElementState: AnimationTestCase;
@@ -1,2 +0,0 @@
1
- import type { AnimationTestCase } from '../types';
2
- export declare const controllerElement: AnimationTestCase;
@@ -1,2 +0,0 @@
1
- import type { AnimationTestCase } from '../types';
2
- export declare const edgeCubic: AnimationTestCase;
@@ -1,2 +0,0 @@
1
- import type { AnimationTestCase } from '../types';
2
- export declare const edgeLine: AnimationTestCase;
@@ -1,2 +0,0 @@
1
- import type { AnimationTestCase } from '../types';
2
- export declare const edgeQuadratic: AnimationTestCase;
@@ -1,12 +0,0 @@
1
- export * from './animation-breathe';
2
- export * from './animation-fade-in';
3
- export * from './animation-translate';
4
- export * from './animation-wave';
5
- export * from './animation-zoom-in';
6
- export * from './controller-element';
7
- export * from './controller-element-position';
8
- export * from './controller-element-state';
9
- export * from './edge-cubic';
10
- export * from './edge-line';
11
- export * from './edge-quadratic';
12
- export * from './shape-label';
@@ -1,2 +0,0 @@
1
- import type { AnimationTestCase } from '../types';
2
- export declare const shapeLabel: AnimationTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const behaviorDragCanvas: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const behaviorDragNode: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const behaviorZoomCanvas: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const comboExpandCollapse: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const combo: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const commonGraph: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const edgePolyline: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const elementChangeType: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const elementPort: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const elementPositionCombo: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const elementPosition: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const elementState: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const elementVisibility: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const elementZIndex: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const graphEvent: STDTestCase;
@@ -1,52 +0,0 @@
1
- export * from './behavior-drag-canvas';
2
- export * from './behavior-drag-element';
3
- export * from './behavior-zoom-canvas';
4
- export * from './combo';
5
- export * from './combo-expand-collapse';
6
- export * from './common-graph';
7
- export * from './edge-polyline';
8
- export * from './element-change-type';
9
- export * from './element-port';
10
- export * from './element-position';
11
- export * from './element-position-combo';
12
- export * from './element-state';
13
- export * from './element-visibility';
14
- export * from './element-z-index';
15
- export * from './graph-event';
16
- export * from './layout-antv-dagre-flow';
17
- export * from './layout-antv-dagre-flow-combo';
18
- export * from './layout-circular-basic';
19
- export * from './layout-circular-configuration-translate';
20
- export * from './layout-circular-degree';
21
- export * from './layout-circular-division';
22
- export * from './layout-circular-spiral';
23
- export * from './layout-combo-combined';
24
- export * from './layout-compact-box-basic';
25
- export * from './layout-compact-box-left-align';
26
- export * from './layout-compact-box-top-to-bottom';
27
- export * from './layout-concentric';
28
- export * from './layout-dagre';
29
- export * from './layout-dendrogram-basic';
30
- export * from './layout-dendrogram-tb';
31
- export * from './layout-force';
32
- export * from './layout-fruchterman-basic';
33
- export * from './layout-fruchterman-cluster';
34
- export * from './layout-fruchterman-fix';
35
- export * from './layout-grid';
36
- export * from './layout-mds';
37
- export * from './layout-mindmap-h';
38
- export * from './layout-mindmap-h-custom-side';
39
- export * from './layout-mindmap-h-left';
40
- export * from './layout-mindmap-h-right';
41
- export * from './layout-radial-basic';
42
- export * from './layout-radial-configuration-translate';
43
- export * from './layout-radial-prevent-overlap';
44
- export * from './layout-radial-prevent-overlap-unstrict';
45
- export * from './layout-radial-sort';
46
- export * from './plugin-contextmenu';
47
- export * from './plugin-grid-line';
48
- export * from './plugin-tooltip';
49
- export * from './plugin-watermark';
50
- export * from './plugin-watermark-image';
51
- export * from './theme';
52
- export * from './viewport-fit';
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const layoutAntVDagreFlowCombo: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const layoutAntVDagreFlow: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const layoutCircularBasic: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const layoutCircularConfigurationTranslate: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const layoutCircularDegree: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const layoutCircularDivision: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const layoutCircularSpiral: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const layoutComboCombined: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const layoutCompactBoxBasic: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const layoutCompactBoxTopToBottom: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const layoutCompactBoxLeftAlign: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const layoutConcentric: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const layoutDagre: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const layoutDendrogramBasic: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const layoutDendrogramTb: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const layoutForce: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const layoutFruchtermanBasic: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const layoutFruchtermanCluster: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const layoutFruchtermanFix: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const layoutGrid: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const layoutMDS: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const layoutMindmapHCustomSide: STDTestCase;
@@ -1,2 +0,0 @@
1
- import type { STDTestCase } from '../types';
2
- export declare const layoutMindmapHLeft: STDTestCase;