@relation-graph/vue3 3.0.4

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 (254) hide show
  1. package/LICENSE +21 -0
  2. package/package.json +65 -0
  3. package/relation-graph.js +284 -0
  4. package/relation-graph.mjs +9626 -0
  5. package/relation-graph.umd.js +284 -0
  6. package/types/components.d.ts +5 -0
  7. package/types/packages/platforms/react/src/constants.d.ts +1 -0
  8. package/types/packages/platforms/react/src/index.d.ts +224 -0
  9. package/types/packages/platforms/react/src/relation-graph/RGProvider.d.ts +4 -0
  10. package/types/packages/platforms/react/src/relation-graph/RelationGraph.d.ts +9 -0
  11. package/types/packages/platforms/react/src/relation-graph/RelationLinker.d.ts +4 -0
  12. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGCanvas.d.ts +13 -0
  13. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGCanvasContent.d.ts +18 -0
  14. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGCanvasContent4CreatingLine.d.ts +10 -0
  15. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGCanvasContent4FakeLines.d.ts +11 -0
  16. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGCanvasContent4Lines.d.ts +12 -0
  17. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGCanvasContent4Nodes.d.ts +13 -0
  18. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGEasyView.d.ts +4 -0
  19. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGFakeNode.d.ts +6 -0
  20. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGGraphRefs.d.ts +5 -0
  21. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGLineContent.d.ts +4 -0
  22. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGLinePath.d.ts +7 -0
  23. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGLinePeel.d.ts +6 -0
  24. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGLineText.d.ts +6 -0
  25. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGNodeExpandHolder.d.ts +4 -0
  26. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGNodePeel.d.ts +13 -0
  27. package/types/packages/platforms/react/src/relation-graph/src/core4react/RelationGraphUI.d.ts +4 -0
  28. package/types/packages/platforms/react/src/relation-graph/src/core4react/RelationGraphView.d.ts +4 -0
  29. package/types/packages/platforms/react/src/relation-graph/src/core4react/RelationLinkerCanvas.d.ts +7 -0
  30. package/types/packages/platforms/react/src/relation-graph/src/core4react/RelationLinkerUI.d.ts +4 -0
  31. package/types/packages/platforms/react/src/relation-graph/src/core4react/RelationLinkerView.d.ts +4 -0
  32. package/types/packages/platforms/react/src/relation-graph/src/core4react/editing/RGConnectSource.d.ts +4 -0
  33. package/types/packages/platforms/react/src/relation-graph/src/core4react/editing/RGConnectTarget.d.ts +4 -0
  34. package/types/packages/platforms/react/src/relation-graph/src/core4react/editing/RGEditingConnectController.d.ts +3 -0
  35. package/types/packages/platforms/react/src/relation-graph/src/core4react/editing/RGEditingConnectPoints.d.ts +7 -0
  36. package/types/packages/platforms/react/src/relation-graph/src/core4react/editing/RGEditingLineController.d.ts +4 -0
  37. package/types/packages/platforms/react/src/relation-graph/src/core4react/editing/RGEditingNearNodeWidget.d.ts +4 -0
  38. package/types/packages/platforms/react/src/relation-graph/src/core4react/editing/RGEditingNodeController.d.ts +3 -0
  39. package/types/packages/platforms/react/src/relation-graph/src/core4react/editing/RGEditingReferenceLine.d.ts +6 -0
  40. package/types/packages/platforms/react/src/relation-graph/src/core4react/editing/RGEditingResize.d.ts +7 -0
  41. package/types/packages/platforms/react/src/relation-graph/src/core4react/editing/RGMiniView.d.ts +4 -0
  42. package/types/packages/platforms/react/src/relation-graph/src/core4react/slots/RGSlotOnCanvas.d.ts +3 -0
  43. package/types/packages/platforms/react/src/relation-graph/src/core4react/slots/RGSlotOnCanvasAbove.d.ts +3 -0
  44. package/types/packages/platforms/react/src/relation-graph/src/core4react/slots/RGSlotOnLine.d.ts +6 -0
  45. package/types/packages/platforms/react/src/relation-graph/src/core4react/slots/RGSlotOnLineText.d.ts +6 -0
  46. package/types/packages/platforms/react/src/relation-graph/src/core4react/slots/RGSlotOnNode.d.ts +6 -0
  47. package/types/packages/platforms/react/src/relation-graph/src/core4react/slots/RGSlotOnNodeExpandHandle.d.ts +3 -0
  48. package/types/packages/platforms/react/src/relation-graph/src/core4react/slots/RGSlotOnView.d.ts +3 -0
  49. package/types/packages/platforms/react/src/relation-graph/src/core4react/store/index.d.ts +4 -0
  50. package/types/packages/platforms/react/src/relation-graph/src/core4react/store/reducers/RGStore.d.ts +10 -0
  51. package/types/packages/platforms/react/src/relation-graph/src/core4react/widgets/GraphBackground.d.ts +4 -0
  52. package/types/packages/platforms/react/src/relation-graph/src/core4react/widgets/GraphLoading.d.ts +3 -0
  53. package/types/packages/platforms/react/src/relation-graph/src/core4react/widgets/GraphMoveOperator.d.ts +3 -0
  54. package/types/packages/platforms/react/src/relation-graph/src/core4react/widgets/GraphOperateStuff.d.ts +7 -0
  55. package/types/packages/platforms/react/src/relation-graph/src/core4react/widgets/GraphToolBar.d.ts +4 -0
  56. package/types/packages/platforms/react/src/relation-graph/src/core4react/widgets/GraphWatermark.d.ts +4 -0
  57. package/types/packages/platforms/react/src/relation-graph/src/core4react/widgets/GraphXsToolBar.d.ts +4 -0
  58. package/types/packages/platforms/react/src/relation-graph/src/core4react/widgets/RGDebugView.d.ts +3 -0
  59. package/types/packages/platforms/react/src/relation-graph/src/core4react/widgets/RGIcons.d.ts +6 -0
  60. package/types/packages/platforms/react/src/relation-graph/src/hooks/RGDataProvider.d.ts +17 -0
  61. package/types/packages/platforms/react/src/relation-graph/src/hooks/RGHooks.d.ts +30 -0
  62. package/types/packages/platforms/react/src/relation-graph/src/hooks/useFakeNodesState.d.ts +8 -0
  63. package/types/packages/platforms/react/src/relation-graph/src/hooks/useGraphInstance.d.ts +3 -0
  64. package/types/packages/platforms/react/src/relation-graph/src/hooks/useGraphStore.d.ts +13 -0
  65. package/types/packages/platforms/react/src/relation-graph/src/hooks/useRelationGraph.d.ts +11 -0
  66. package/types/packages/platforms/react/src/relation-graph/src/hooks/useRelationLinker.d.ts +17 -0
  67. package/types/packages/platforms/react/src/types-react.d.ts +35 -0
  68. package/types/packages/platforms/svelte/src/RGProvider.svelte.d.ts +1 -0
  69. package/types/packages/platforms/svelte/src/context.d.ts +4 -0
  70. package/types/packages/platforms/svelte/src/core4svelte/RGCanvas.svelte.d.ts +1 -0
  71. package/types/packages/platforms/svelte/src/core4svelte/RGCanvasContent.svelte.d.ts +1 -0
  72. package/types/packages/platforms/svelte/src/core4svelte/RGCanvasContent4CreatingLine.svelte.d.ts +1 -0
  73. package/types/packages/platforms/svelte/src/core4svelte/RGCanvasContent4FakeLines.svelte.d.ts +1 -0
  74. package/types/packages/platforms/svelte/src/core4svelte/RGCanvasContent4Lines.svelte.d.ts +1 -0
  75. package/types/packages/platforms/svelte/src/core4svelte/RGCanvasContent4Nodes.svelte.d.ts +1 -0
  76. package/types/packages/platforms/svelte/src/core4svelte/RGEasyView.svelte.d.ts +1 -0
  77. package/types/packages/platforms/svelte/src/core4svelte/RGFakeNode.svelte.d.ts +1 -0
  78. package/types/packages/platforms/svelte/src/core4svelte/RGGraphDefs.svelte.d.ts +1 -0
  79. package/types/packages/platforms/svelte/src/core4svelte/RGLineContent.svelte.d.ts +1 -0
  80. package/types/packages/platforms/svelte/src/core4svelte/RGLinePath.svelte.d.ts +1 -0
  81. package/types/packages/platforms/svelte/src/core4svelte/RGLinePeel.svelte.d.ts +1 -0
  82. package/types/packages/platforms/svelte/src/core4svelte/RGLineText.svelte.d.ts +1 -0
  83. package/types/packages/platforms/svelte/src/core4svelte/RGNodeExpandHolder.svelte.d.ts +1 -0
  84. package/types/packages/platforms/svelte/src/core4svelte/RGNodePeel.svelte.d.ts +1 -0
  85. package/types/packages/platforms/svelte/src/core4svelte/RGProvider4Instance.svelte.d.ts +1 -0
  86. package/types/packages/platforms/svelte/src/core4svelte/RelationGraph.svelte.d.ts +1 -0
  87. package/types/packages/platforms/svelte/src/core4svelte/RelationGraphUI.svelte.d.ts +1 -0
  88. package/types/packages/platforms/svelte/src/core4svelte/RelationGraphWithProvider.svelte.d.ts +1 -0
  89. package/types/packages/platforms/svelte/src/core4svelte/RelationLinker.svelte.d.ts +1 -0
  90. package/types/packages/platforms/svelte/src/core4svelte/RelationLinkerCanvas.svelte.d.ts +1 -0
  91. package/types/packages/platforms/svelte/src/core4svelte/RelationLinkerUI.svelte.d.ts +1 -0
  92. package/types/packages/platforms/svelte/src/core4svelte/editing/RGConnectSource.svelte.d.ts +1 -0
  93. package/types/packages/platforms/svelte/src/core4svelte/editing/RGConnectTarget.svelte.d.ts +1 -0
  94. package/types/packages/platforms/svelte/src/core4svelte/editing/RGConnectTargetUI.svelte.d.ts +1 -0
  95. package/types/packages/platforms/svelte/src/core4svelte/editing/RGEditingConnectController.svelte.d.ts +1 -0
  96. package/types/packages/platforms/svelte/src/core4svelte/editing/RGEditingConnectPoints.svelte.d.ts +1 -0
  97. package/types/packages/platforms/svelte/src/core4svelte/editing/RGEditingLineController.svelte.d.ts +1 -0
  98. package/types/packages/platforms/svelte/src/core4svelte/editing/RGEditingLineControllerUI.svelte.d.ts +1 -0
  99. package/types/packages/platforms/svelte/src/core4svelte/editing/RGEditingNearNodeWidget.svelte.d.ts +1 -0
  100. package/types/packages/platforms/svelte/src/core4svelte/editing/RGEditingNodeController.svelte.d.ts +1 -0
  101. package/types/packages/platforms/svelte/src/core4svelte/editing/RGEditingNodeControllerUI.svelte.d.ts +1 -0
  102. package/types/packages/platforms/svelte/src/core4svelte/editing/RGEditingReferenceLine.svelte.d.ts +1 -0
  103. package/types/packages/platforms/svelte/src/core4svelte/editing/RGEditingResize.svelte.d.ts +1 -0
  104. package/types/packages/platforms/svelte/src/core4svelte/editing/RGEditingResizeUI.svelte.d.ts +1 -0
  105. package/types/packages/platforms/svelte/src/core4svelte/editing/RGMiniView.svelte.d.ts +1 -0
  106. package/types/packages/platforms/svelte/src/core4svelte/editing/RGMiniViewContent.svelte.d.ts +1 -0
  107. package/types/packages/platforms/svelte/src/core4svelte/web-components/RGConnectTarget.svelte.d.ts +1 -0
  108. package/types/packages/platforms/svelte/src/core4svelte/web-components/RGEditingConnectController.svelte.d.ts +1 -0
  109. package/types/packages/platforms/svelte/src/core4svelte/web-components/RGEditingLineController.svelte.d.ts +1 -0
  110. package/types/packages/platforms/svelte/src/core4svelte/web-components/RGEditingNearNodeWidget.svelte.d.ts +1 -0
  111. package/types/packages/platforms/svelte/src/core4svelte/web-components/RGEditingNodeController.svelte.d.ts +1 -0
  112. package/types/packages/platforms/svelte/src/core4svelte/web-components/RGEditingReferenceLine.svelte.d.ts +1 -0
  113. package/types/packages/platforms/svelte/src/core4svelte/web-components/RGEditingResize.svelte.d.ts +1 -0
  114. package/types/packages/platforms/svelte/src/core4svelte/web-components/RGMiniView.svelte.d.ts +1 -0
  115. package/types/packages/platforms/svelte/src/core4svelte/web-components/RelationGraphWithProvider.svelte.d.ts +1 -0
  116. package/types/packages/platforms/svelte/src/core4svelte/web-components/WebComponentUtils.d.ts +11 -0
  117. package/types/packages/platforms/svelte/src/core4svelte/widgets/GraphBackground.svelte.d.ts +1 -0
  118. package/types/packages/platforms/svelte/src/core4svelte/widgets/GraphLoading.svelte.d.ts +1 -0
  119. package/types/packages/platforms/svelte/src/core4svelte/widgets/GraphMoveOperator.svelte.d.ts +1 -0
  120. package/types/packages/platforms/svelte/src/core4svelte/widgets/GraphOperateStuff.svelte.d.ts +1 -0
  121. package/types/packages/platforms/svelte/src/core4svelte/widgets/GraphWatermark.svelte.d.ts +1 -0
  122. package/types/packages/platforms/svelte/src/core4svelte/widgets/GraphXsToolBar.svelte.d.ts +1 -0
  123. package/types/packages/platforms/svelte/src/core4svelte/widgets/RGIcons.svelte.d.ts +1 -0
  124. package/types/packages/platforms/svelte/src/hooks/RGHooks.d.ts +27 -0
  125. package/types/packages/platforms/svelte/src/hooks/useGraphInstance.d.ts +2 -0
  126. package/types/packages/platforms/svelte/src/hooks/useGraphStore.d.ts +14 -0
  127. package/types/packages/platforms/svelte/src/hooks/useRGDataProvider.d.ts +19 -0
  128. package/types/packages/platforms/svelte/src/hooks/useRelationGraph.d.ts +48 -0
  129. package/types/packages/platforms/svelte/src/index.d.ts +194 -0
  130. package/types/packages/platforms/svelte/src/types-svelte.d.ts +85 -0
  131. package/types/packages/platforms/vue2/src/core4vue/RGCanvas.vue.d.ts +9 -0
  132. package/types/packages/platforms/vue2/src/core4vue/RGCanvasContent.vue.d.ts +10 -0
  133. package/types/packages/platforms/vue2/src/core4vue/RGCanvasContent4CreatingLine.vue.d.ts +9 -0
  134. package/types/packages/platforms/vue2/src/core4vue/RGCanvasContent4FakeLines.vue.d.ts +9 -0
  135. package/types/packages/platforms/vue2/src/core4vue/RGCanvasContent4Lines.vue.d.ts +9 -0
  136. package/types/packages/platforms/vue2/src/core4vue/RGCanvasContent4Nodes.vue.d.ts +9 -0
  137. package/types/packages/platforms/vue2/src/core4vue/RGEasyView.vue.d.ts +7 -0
  138. package/types/packages/platforms/vue2/src/core4vue/RGFakeNode.vue.d.ts +18 -0
  139. package/types/packages/platforms/vue2/src/core4vue/RGGraphDefs.vue.d.ts +19 -0
  140. package/types/packages/platforms/vue2/src/core4vue/RGLineContent.vue.d.ts +23 -0
  141. package/types/packages/platforms/vue2/src/core4vue/RGLinePath.vue.d.ts +14 -0
  142. package/types/packages/platforms/vue2/src/core4vue/RGLinePeel.vue.d.ts +9 -0
  143. package/types/packages/platforms/vue2/src/core4vue/RGNodeExpandHolder.vue.d.ts +30 -0
  144. package/types/packages/platforms/vue2/src/core4vue/RGNodePeel.vue.d.ts +17 -0
  145. package/types/packages/platforms/vue2/src/core4vue/RGProvider.vue.d.ts +50 -0
  146. package/types/packages/platforms/vue2/src/core4vue/RelationGraph.vue.d.ts +52 -0
  147. package/types/packages/platforms/vue2/src/core4vue/RelationGraphUI.vue.d.ts +46 -0
  148. package/types/packages/platforms/vue2/src/core4vue/RelationLinker.vue.d.ts +46 -0
  149. package/types/packages/platforms/vue2/src/core4vue/RelationLinkerCanvas.vue.d.ts +12 -0
  150. package/types/packages/platforms/vue2/src/core4vue/RelationLinkerUI.vue.d.ts +23 -0
  151. package/types/packages/platforms/vue2/src/core4vue/editing/RGConnectSource.vue.d.ts +31 -0
  152. package/types/packages/platforms/vue2/src/core4vue/editing/RGConnectTarget.vue.d.ts +85 -0
  153. package/types/packages/platforms/vue2/src/core4vue/editing/RGEditingConnectController.vue.d.ts +9 -0
  154. package/types/packages/platforms/vue2/src/core4vue/editing/RGEditingConnectPoints.vue.d.ts +25 -0
  155. package/types/packages/platforms/vue2/src/core4vue/editing/RGEditingLineController.vue.d.ts +43 -0
  156. package/types/packages/platforms/vue2/src/core4vue/editing/RGEditingNearNodeWidget.vue.d.ts +21 -0
  157. package/types/packages/platforms/vue2/src/core4vue/editing/RGEditingNodeController.vue.d.ts +5 -0
  158. package/types/packages/platforms/vue2/src/core4vue/editing/RGEditingReferenceLine.vue.d.ts +30 -0
  159. package/types/packages/platforms/vue2/src/core4vue/editing/RGEditingResize.vue.d.ts +32 -0
  160. package/types/packages/platforms/vue2/src/core4vue/editing/RGMiniView.vue.d.ts +40 -0
  161. package/types/packages/platforms/vue2/src/core4vue/widgets/GraphBackground.vue.d.ts +33 -0
  162. package/types/packages/platforms/vue2/src/core4vue/widgets/GraphLoading.vue.d.ts +5 -0
  163. package/types/packages/platforms/vue2/src/core4vue/widgets/GraphMoveOperator.vue.d.ts +8 -0
  164. package/types/packages/platforms/vue2/src/core4vue/widgets/GraphOperateStuff.vue.d.ts +5 -0
  165. package/types/packages/platforms/vue2/src/core4vue/widgets/GraphToolBar.vue.d.ts +46 -0
  166. package/types/packages/platforms/vue2/src/core4vue/widgets/GraphWatermark.vue.d.ts +58 -0
  167. package/types/packages/platforms/vue2/src/core4vue/widgets/GraphXsToolBar.vue.d.ts +46 -0
  168. package/types/packages/platforms/vue2/src/core4vue/widgets/RGDebugView.vue.d.ts +12 -0
  169. package/types/packages/platforms/vue2/src/hooks/GraphStoreMixin.d.ts +40 -0
  170. package/types/packages/platforms/vue2/src/index.d.ts +944 -0
  171. package/types/packages/platforms/vue2/src/types-vue2.d.ts +3 -0
  172. package/types/packages/platforms/vue2/vite.config.d.ts +2 -0
  173. package/types/packages/platforms/vue3/src/constants.d.ts +3 -0
  174. package/types/packages/platforms/vue3/src/index.d.ts +188 -0
  175. package/types/packages/platforms/vue3/src/relation-graph/src/hooks/RGHooks.d.ts +32 -0
  176. package/types/packages/platforms/vue3/src/relation-graph/src/hooks/useGraphData.d.ts +2 -0
  177. package/types/packages/platforms/vue3/src/relation-graph/src/hooks/useGraphInstance.d.ts +2 -0
  178. package/types/packages/platforms/vue3/src/relation-graph/src/hooks/useGraphStore.d.ts +16 -0
  179. package/types/packages/platforms/vue3/src/relation-graph/src/hooks/useRGDataProvider.d.ts +17 -0
  180. package/types/packages/platforms/vue3/src/relation-graph/src/hooks/useRelationGraph.d.ts +131 -0
  181. package/types/packages/platforms/vue3/src/relation-graph/src/hooks/useRelationLinker.d.ts +39 -0
  182. package/types/packages/platforms/vue3/src/types-vue3.d.ts +122 -0
  183. package/types/packages/platforms/vue3/src/types.d.ts +3 -0
  184. package/types/packages/platforms/vue3/vite.config.d.ts +2 -0
  185. package/types/packages/relation-graph-models/RGObjectsForExport.d.ts +140 -0
  186. package/types/packages/relation-graph-models/constants.d.ts +1 -0
  187. package/types/packages/relation-graph-models/data/RGDataDefine.d.ts +23 -0
  188. package/types/packages/relation-graph-models/data/RGDataGetter.d.ts +36 -0
  189. package/types/packages/relation-graph-models/data/RGDataProvider.d.ts +66 -0
  190. package/types/packages/relation-graph-models/data/RGDataProvider4React.d.ts +9 -0
  191. package/types/packages/relation-graph-models/data/RGDataProvider4Svelte.d.ts +10 -0
  192. package/types/packages/relation-graph-models/data/RGDataProvider4Vue2.d.ts +9 -0
  193. package/types/packages/relation-graph-models/data/RGDataProvider4Vue3.d.ts +10 -0
  194. package/types/packages/relation-graph-models/data/RGDataProvider4Vue3V1.d.ts +10 -0
  195. package/types/packages/relation-graph-models/data/RGLineDataUtils.d.ts +9 -0
  196. package/types/packages/relation-graph-models/data/RGNodeDataUtils.d.ts +17 -0
  197. package/types/packages/relation-graph-models/data/RGOptionsDataUtils.d.ts +7 -0
  198. package/types/packages/relation-graph-models/data/utils/EdgeCounter.d.ts +8 -0
  199. package/types/packages/relation-graph-models/layouts/RGBaseLayout.d.ts +37 -0
  200. package/types/packages/relation-graph-models/layouts/RGCenterLayout.d.ts +9 -0
  201. package/types/packages/relation-graph-models/layouts/RGCircleLayout.d.ts +7 -0
  202. package/types/packages/relation-graph-models/layouts/RGFixedLayout.d.ts +10 -0
  203. package/types/packages/relation-graph-models/layouts/RGFolderLayout.d.ts +15 -0
  204. package/types/packages/relation-graph-models/layouts/RGForceLayout.d.ts +82 -0
  205. package/types/packages/relation-graph-models/layouts/RGIOTreeLayout.d.ts +18 -0
  206. package/types/packages/relation-graph-models/layouts/RGSmartTreeLayout.d.ts +14 -0
  207. package/types/packages/relation-graph-models/layouts/RGTreeLayout.d.ts +17 -0
  208. package/types/packages/relation-graph-models/layouts/analyzers/BasicNetworkAnalyzer.d.ts +28 -0
  209. package/types/packages/relation-graph-models/layouts/analyzers/RGNetworkAnalyzer.d.ts +27 -0
  210. package/types/packages/relation-graph-models/layouts/tmp/old.d.ts +1 -0
  211. package/types/packages/relation-graph-models/models/RelationGraphBase.d.ts +80 -0
  212. package/types/packages/relation-graph-models/models/RelationGraphCore.d.ts +46 -0
  213. package/types/packages/relation-graph-models/models/RelationGraphWith1View.d.ts +96 -0
  214. package/types/packages/relation-graph-models/models/RelationGraphWith2Data.d.ts +53 -0
  215. package/types/packages/relation-graph-models/models/RelationGraphWith2Data1Getter.d.ts +85 -0
  216. package/types/packages/relation-graph-models/models/RelationGraphWith2Data2Analysis.d.ts +177 -0
  217. package/types/packages/relation-graph-models/models/RelationGraphWith2Data3Update.d.ts +259 -0
  218. package/types/packages/relation-graph-models/models/RelationGraphWith2Data4ConnectTarget.d.ts +85 -0
  219. package/types/packages/relation-graph-models/models/RelationGraphWith2Data5LineConfig.d.ts +35 -0
  220. package/types/packages/relation-graph-models/models/RelationGraphWith3Options1Update.d.ts +75 -0
  221. package/types/packages/relation-graph-models/models/RelationGraphWith3Options2API.d.ts +39 -0
  222. package/types/packages/relation-graph-models/models/RelationGraphWith4Line.d.ts +112 -0
  223. package/types/packages/relation-graph-models/models/RelationGraphWith5Zoom.d.ts +29 -0
  224. package/types/packages/relation-graph-models/models/RelationGraphWith6Effect.d.ts +72 -0
  225. package/types/packages/relation-graph-models/models/RelationGraphWith6Layout.d.ts +85 -0
  226. package/types/packages/relation-graph-models/models/RelationGraphWith7Event.d.ts +270 -0
  227. package/types/packages/relation-graph-models/models/RelationGraphWith91Editing.d.ts +210 -0
  228. package/types/packages/relation-graph-models/models/RelationGraphWith92MiniView.d.ts +107 -0
  229. package/types/packages/relation-graph-models/models/RelationGraphWith93Image.d.ts +38 -0
  230. package/types/packages/relation-graph-models/models/RelationGraphWith93Image_codes.d.ts +36 -0
  231. package/types/packages/relation-graph-models/models/RelationGraphWith95Dom.d.ts +112 -0
  232. package/types/packages/relation-graph-models/models/RelationGraphWith99API.d.ts +125 -0
  233. package/types/packages/relation-graph-models/models/RelationGraphWith9EasyView.d.ts +74 -0
  234. package/types/packages/relation-graph-models/utils/RGCanvasImpl2D.d.ts +58 -0
  235. package/types/packages/relation-graph-models/utils/RGCanvasImplWebGL.d.ts +47 -0
  236. package/types/packages/relation-graph-models/utils/RGCommon.d.ts +31 -0
  237. package/types/packages/relation-graph-models/utils/RGDragUtils.d.ts +20 -0
  238. package/types/packages/relation-graph-models/utils/RGFullscreenUtils.d.ts +3 -0
  239. package/types/packages/relation-graph-models/utils/RGGraphMath.d.ts +131 -0
  240. package/types/packages/relation-graph-models/utils/RGIconsData.d.ts +41 -0
  241. package/types/packages/relation-graph-models/utils/RGIntergration.d.ts +45 -0
  242. package/types/packages/relation-graph-models/utils/RGNodesAnalytic.d.ts +29 -0
  243. package/types/packages/relation-graph-models/utils/RGTips.d.ts +7 -0
  244. package/types/packages/relation-graph-models/utils/line/RGLinePath.d.ts +105 -0
  245. package/types/packages/relation-graph-models/utils/line/RGLinePathUtils.d.ts +54 -0
  246. package/types/packages/relation-graph-models/utils/line/RGPathGeneratorFor1.d.ts +2 -0
  247. package/types/packages/relation-graph-models/utils/line/RGPathGeneratorFor4.d.ts +2 -0
  248. package/types/packages/relation-graph-models/utils/line/RGPathGeneratorFor44.d.ts +2 -0
  249. package/types/packages/relation-graph-models/utils/line/RGPathGeneratorFor49.d.ts +2 -0
  250. package/types/packages/relation-graph-models/utils/line/RGPathGeneratorFor6.d.ts +6 -0
  251. package/types/packages/relation-graph-models/utils/line/RGPathGeneratorFor8.d.ts +2 -0
  252. package/types/packages/relation-graph-models/utils/line/RGPathGeneratorForCurve.d.ts +2 -0
  253. package/types/packages/types.d.ts +1467 -0
  254. package/types/packages/types.ts +1480 -0
@@ -0,0 +1,27 @@
1
+ import { RGNode } from '../../../types';
2
+ export type NodesAnalyticLevel = {
3
+ level: number;
4
+ all_size: number;
5
+ all_strength: number;
6
+ };
7
+ export type NodesAnalyticResult = {
8
+ direct: number;
9
+ max_deep: number;
10
+ min_deep: number;
11
+ max_length: number;
12
+ max_strength: number;
13
+ levels: Map<number, NodesAnalyticLevel>;
14
+ };
15
+ export type RGLevelDirection = -1 | 0 | 1;
16
+ export interface RGNetworkAnalyzer {
17
+ analyzeNetwork(nodes: RGNode[], rootNode: RGNode, bothWay?: boolean, deepBothWay?: boolean): {
18
+ tree: {
19
+ networkNodes: RGNode[];
20
+ analyticResult: NodesAnalyticResult;
21
+ };
22
+ reverseTree: {
23
+ networkNodes: RGNode[];
24
+ analyticResult: NodesAnalyticResult;
25
+ };
26
+ };
27
+ }
@@ -0,0 +1,80 @@
1
+ import { RGEventEmitHook, RGEventHandler, RGEventNames, RGListeners, RGOptionsFull } from '../../types';
2
+ import { RGDataProvider } from '../data/RGDataProvider';
3
+ /**
4
+ * relation-graph component base class, providing common API methods
5
+ */
6
+ export declare class RelationGraphBase {
7
+ listeners: RGListeners;
8
+ private useReactiveDataToAutoUpdateView;
9
+ protected instanceId: string;
10
+ dataProvider: RGDataProvider;
11
+ options: RGOptionsFull;
12
+ constructor();
13
+ /**
14
+ * Generate a highly likely unique id, the probability of non-duplication depends on the parameter idLength (the length of the id)
15
+ * @param idLength The length of the id, default is 5
16
+ */
17
+ generateNewUUID(idLength?: number): string;
18
+ /**
19
+ * * Enable or disable logging functionality
20
+ * @param enable
21
+ */
22
+ enableDebugLog(enable: boolean): void;
23
+ /**
24
+ * Request view update
25
+ * Used to update canvas drawing, subsequent canvas drawing will be upgraded to use WebGL to improve performance
26
+ * @protected
27
+ */
28
+ protected _dataUpdated(): void;
29
+ private _dataUpdatedRequested;
30
+ /**
31
+ * @inner
32
+ * Reuqest Trigger view update
33
+ * @private
34
+ */
35
+ protected _requestDataUpdate(): void;
36
+ /**
37
+ * Trigger view update for React/Svelte/Canvas
38
+ * @private
39
+ */
40
+ private _doSomethingAfterDataUpdated;
41
+ protected eventHandlers: RGEventHandler[];
42
+ /**
43
+ * * Register event handler
44
+ * @param handler: RGEventHandler
45
+ */
46
+ addEventHandler(handler: RGEventHandler): void;
47
+ /**
48
+ * * Remove event handler
49
+ * @param handler: RGEventHandler
50
+ */
51
+ removeEventHandler(handler: RGEventHandler): void;
52
+ protected _emitHook: RGEventEmitHook;
53
+ /**
54
+ * * Set the event hook, For Vue2,Vue3 only
55
+ * @param emitHook
56
+ */
57
+ setEventEmitHook(emitHook: RGEventEmitHook): void;
58
+ /**
59
+ * Trigger event
60
+ * @param eventName Name of the event
61
+ * @param object Parameters passed to the event handler
62
+ */
63
+ protected emitEvent(eventName: RGEventNames, ...args: any[]): false | import('../../types').RGCoordinate | undefined;
64
+ /**
65
+ * Protected Method to trigger the default event handler, i.e., trigger the events set in jsx
66
+ * @param eventName
67
+ * @param args
68
+ * @protected
69
+ */
70
+ protected defaultEventHandler(eventName: RGEventNames, ...args: any[]): {
71
+ result: false | void | import('../../types').RGCoordinate;
72
+ handled: boolean;
73
+ };
74
+ /**
75
+ * * Set event listeners
76
+ * @param handler
77
+ * @inner
78
+ */
79
+ setEventListener(handler: RGListeners): void;
80
+ }
@@ -0,0 +1,46 @@
1
+ import { RGListeners } from '../../types';
2
+ import { RelationGraphWith99API } from './RelationGraphWith99API';
3
+ /**
4
+ * The final instance class of the relation-graph component, the class that is actually instantiated
5
+ * - Each <RGProvider><RelationGraph /></RGProvider> component creates and binds a RelationGraphCore instance, which allows the component UI and user to call the API for data logic and interaction
6
+ * - It will have all the capabilities of the following classes through integration:
7
+ * - RelationGraphBase.ts
8
+ * - RelationGraphWith1View.ts
9
+ * - RelationGraphWith2Data.ts
10
+ * - RelationGraphWith2Data1Getter.ts
11
+ * - RelationGraphWith2Data2Analysis.ts
12
+ * - RelationGraphWith2Data3Update.ts
13
+ * - RelationGraphWith2Data4ConnectTarget.ts
14
+ * - RelationGraphWith2Data5LineConfig.ts
15
+ * - RelationGraphWith3Options1Update.ts
16
+ * - RelationGraphWith3Options2API.ts
17
+ * - RelationGraphWith4Line.ts
18
+ * - RelationGraphWith5Zoom.ts
19
+ * - RelationGraphWith6Effect.ts
20
+ * - RelationGraphWith6Layout.ts
21
+ * - RelationGraphWith7Event.ts
22
+ * - RelationGraphWith9EasyView.ts
23
+ * - RelationGraphWith91Editing.ts
24
+ * - RelationGraphWith92MiniView.ts
25
+ * - RelationGraphWith93Image.ts
26
+ * - RelationGraphWith95Dom.ts
27
+ * - RelationGraphWith99API.ts
28
+ *
29
+ */
30
+ export declare class RelationGraphCore extends RelationGraphWith99API {
31
+ constructor();
32
+ setListeners(listeners: RGListeners): void;
33
+ /**
34
+ * [Used internally by relation-graph], this method will be called to initialize some configurations based on options (such as creating a layoutor based on the options.layout configuration), and to obtain information such as viewport size.
35
+ * @inner
36
+ */
37
+ ready(): void;
38
+ /**
39
+ * @inner
40
+ */
41
+ viewComponentUnmounted: boolean;
42
+ /**
43
+ * @inner
44
+ */
45
+ beforeUnmount(): void;
46
+ }
@@ -0,0 +1,96 @@
1
+ import { RGLine, RGUserEvent, RGCoordinate, RGNode, RGLink } from '../../types';
2
+ import { RelationGraphBase } from './RelationGraphBase';
3
+ /**
4
+ * Relation-graph component view related class
5
+ */
6
+ export declare class RelationGraphWith1View extends RelationGraphBase {
7
+ $dom: HTMLDivElement;
8
+ $canvasDom: HTMLDivElement;
9
+ /**
10
+ * @inner
11
+ */
12
+ _rgAsConnectArea: boolean;
13
+ /**
14
+ * @inner
15
+ */
16
+ private $lineTextContainer4NormalLine;
17
+ /**
18
+ * @inner
19
+ */
20
+ private $lineTextContainer4FakeLine;
21
+ /**
22
+ * @inner
23
+ */
24
+ getLineTextContainer(line: RGLine): HTMLDivElement | undefined;
25
+ private viewBoundingClientRect;
26
+ /**
27
+ * Get the RelationGraph component DOM
28
+ * @return relationGraphDom:HTMLDivElement RelationGraph container DOM
29
+ */
30
+ getViewBoundingClientRect(): DOMRect | null;
31
+ /**
32
+ * @deprecated Please use getViewBoundingClientRect instead of getBoundingClientRect, this method is compatible with older api versions.
33
+ */
34
+ getBoundingClientRect(): DOMRect | null;
35
+ /**
36
+ * Compatible with older api versions
37
+ * @param e
38
+ * @protected
39
+ * @inner
40
+ */
41
+ protected _getEventPoint(e: RGUserEvent): {
42
+ x: number;
43
+ y: number;
44
+ };
45
+ /**
46
+ * Get the coordinates mapped on the "relation-graph Component viewport" from the Event
47
+ * @param e
48
+ */
49
+ getViewXyByEvent(e: RGUserEvent): {
50
+ x: number;
51
+ y: number;
52
+ };
53
+ getViewXyByClientXy(clientXY: RGCoordinate): {
54
+ x: number;
55
+ y: number;
56
+ };
57
+ /**
58
+ * Get the coordinates mapped on the "relation-graph Component viewport" from the canvas coordinates
59
+ * @param clientXY = {x: e.clientX, y: e.clientY}
60
+ */
61
+ getCanvasXyByClientXy(clientXY: RGCoordinate): RGCoordinate;
62
+ /**
63
+ * Get the coordinates mapped on the "relation-graph Component viewport" from the canvas coordinates
64
+ * @param viewXy = {x: e.clientX - relationGraphViewBox.left, y: e.clientY - relationGraphViewBox.top}
65
+ */
66
+ getCanvasXyByViewXy(viewXy: RGCoordinate): RGCoordinate;
67
+ /**
68
+ * Get the coordinates mapped on the canvas from the "relation-graph Component viewport" coordinates
69
+ * @param canvasCoordinate = {x: node.x, y: node.y}
70
+ */
71
+ getViewXyByCanvasXy(canvasCoordinate: RGCoordinate): RGCoordinate;
72
+ /**
73
+ * @deprecated Please use getCanvasXyByClientXy instead of getCanvasCoordinateByClientCoordinate, this method is compatible with older api versions.
74
+ * @param clientXY
75
+ */
76
+ getCanvasCoordinateByClientCoordinate(clientXY: RGCoordinate): RGCoordinate;
77
+ /**
78
+ * Check if el is a node element, if so, return the corresponding node object
79
+ * - You can use this method to determine if the element currently under the mouse is a node element, and get the corresponding node object
80
+ * @param el
81
+ * @return RGNode | undefined
82
+ */
83
+ isNode(el: HTMLElement): RGNode | undefined;
84
+ /**
85
+ * Check if el is a line element, if so, return the corresponding line object
86
+ * - You can use this method to determine if the element currently under the mouse is a line element, and get the corresponding line object
87
+ * @param el
88
+ * @return RGLine | undefined
89
+ */
90
+ isLine(el: HTMLElement): RGLine | undefined;
91
+ /**
92
+ * @deprecated Please use isLine instead of isLink, this method is compatible with older api versions.
93
+ * @param el
94
+ */
95
+ isLink(el: HTMLElement): RGLink | undefined;
96
+ }
@@ -0,0 +1,53 @@
1
+ import { ReactiveDataStores, ReactiveDataUpdaters, RGGraphData, RGOptions } from '../../types';
2
+ import { RelationGraphWith1View } from './RelationGraphWith1View';
3
+ /**
4
+ * Data handling class for relation-graph component integrated with different data reactive frameworks
5
+ */
6
+ export declare class RelationGraphWith2Data extends RelationGraphWith1View {
7
+ constructor();
8
+ private _initRawPropertyFn;
9
+ /**
10
+ * [Used internally by relation-graph] Set reactive data objects
11
+ * @param graphData
12
+ * @param reactiveData
13
+ * @inner
14
+ */
15
+ setReactiveData4Vue2(graphData: RGGraphData, reactiveOptions: RGOptions, runtimeData: any, initRawPropertyFn: (item: any, propertyName: string, initialValue: any) => void): void;
16
+ /**
17
+ * [Used internally by relation-graph] Set reactive data objects
18
+ * @param graphData
19
+ * @param reactiveData
20
+ * @inner
21
+ */
22
+ setReactiveData4Vue3(dataStores: ReactiveDataStores, graphData: RGGraphData, reactiveOptions: RGOptions, runtimeData: any, initRawPropertyFn: (item: any, propertyName: string, initialValue: any) => void): void;
23
+ /**
24
+ *
25
+ * @inner
26
+ * @param dataStores
27
+ * @param updateViewHook
28
+ */
29
+ setReactiveData4React(dataStores: ReactiveDataStores, updateViewHook: () => void): void;
30
+ dataStores: {
31
+ optionsStore: any;
32
+ shouldRenderNodesStore: any;
33
+ shouldRenderLinesStore: any;
34
+ shouldRenderFakeLinesStore: any;
35
+ optionsRef?: any;
36
+ shouldRenderNodesRef?: any;
37
+ shouldRenderLinesRef?: any;
38
+ shouldRenderFakeLinesRef?: any;
39
+ textContainer4NormalRef?: any;
40
+ textContainer4FakeLineRef?: any;
41
+ };
42
+ /**
43
+ * @inner
44
+ * @param dataStores
45
+ * @param updaters
46
+ */
47
+ setReactiveData4Svelte(dataStores: ReactiveDataStores, updaters: ReactiveDataUpdaters): void;
48
+ /**
49
+ * Generate a unique Node id relative to the current existing nodes
50
+ * @param idLength The minimum length of the id, default is 5
51
+ */
52
+ generateNewNodeId(idLength?: number): string;
53
+ }
@@ -0,0 +1,85 @@
1
+ import { RGFakeLine, RGLine, RGLink, RGNode } from '../../types';
2
+ import { RelationGraphWith2Data } from './RelationGraphWith2Data';
3
+ /**
4
+ * The instance class of the relation-graph component, providing read-only API methods based on data
5
+ */
6
+ export declare class RelationGraphWith2Data1Getter extends RelationGraphWith2Data {
7
+ constructor();
8
+ /**
9
+ * Get current options
10
+ * @return options RGOptionsFull
11
+ */
12
+ getOptions(): import('../../types').RGOptionsFull;
13
+ /**
14
+ * Get node by nodeId
15
+ * @param nodeId
16
+ * @return RGNode | undefined
17
+ */
18
+ getNodeById(nodeId: string): RGNode | undefined;
19
+ /**
20
+ * Get line by lineId
21
+ * @param lineId
22
+ * @return RGLine | undefined
23
+ */
24
+ getLineById(lineId: string): RGLine | undefined;
25
+ /**
26
+ * Get link by lineId
27
+ * @param lineId
28
+ * @return RGLink | undefined
29
+ */
30
+ getLinkByLineId(lineId: string): RGLink | undefined;
31
+ /**
32
+ * Get link by line
33
+ * @param line
34
+ * @return RGLink | undefined
35
+ */
36
+ getLinkByLine(line: RGLine): RGLink | undefined;
37
+ /**
38
+ * Get all lines
39
+ * @return RGLine[]
40
+ */
41
+ getLines(): RGLine[];
42
+ /**
43
+ * @deprecated Please use getFakeLineById instead of getElementLineById, this method is compatible with older api versions.
44
+ * @param elLineId
45
+ */
46
+ getElementLineById(elLineId: string): RGFakeLine | undefined;
47
+ /**
48
+ * @deprecated Please use getFakeLines instead of getElementLines, this method is compatible with older api versions.
49
+ */
50
+ getElementLines(): RGLine[];
51
+ /**
52
+ * Get all fake lines
53
+ * @return RGFakeLine[]
54
+ */
55
+ getFakeLines(): RGFakeLine[];
56
+ /**
57
+ * Get fake line by lineId
58
+ * @param lineId
59
+ * @return RGFakeLine | undefined
60
+ */
61
+ getFakeLineById(lineId: string): RGFakeLine | undefined;
62
+ /**
63
+ * Get all nodes
64
+ * @return RGNode[]
65
+ */
66
+ getNodes(): RGNode[];
67
+ /**
68
+ * Get all links
69
+ * @return RGLink[]
70
+ */
71
+ getLinks(): RGLink[];
72
+ /**
73
+ * Get all links, Inlcuding fakeLine links
74
+ * @return RGLink[]
75
+ */
76
+ protected _getAllLinks(): RGLink[];
77
+ private getNodeByTargetId;
78
+ protected _getFakeLineLinks(): RGLink[];
79
+ /**
80
+ * Get all connect targets
81
+ * @return RGLineTarget[]
82
+ */
83
+ getConnectTargets(): import('../../types').RGConnectTargetData[];
84
+ getConnectTargetById(targetId: string): import('../../types').RGConnectTargetData | undefined;
85
+ }
@@ -0,0 +1,177 @@
1
+ import { RGFakeLine, RGLine, RGLink, RGNode, RGNodesRectBox, RGRectTarget, RGSelectionView } from '../../types';
2
+ import { RelationGraphWith2Data1Getter } from './RelationGraphWith2Data1Getter';
3
+ /**
4
+ * The relation-graph component class related to data analysis functions
5
+ */
6
+ export declare class RelationGraphWith2Data2Analysis extends RelationGraphWith2Data1Getter {
7
+ constructor();
8
+ /**
9
+ * Get all lines related to the given node
10
+ * - e.g.
11
+ * ```
12
+ * A --> B
13
+ * A --> C
14
+ * D --> A
15
+ * getRelatedLinesByNode(A) will return [A-->B, A-->C, D-->A]
16
+ * ```
17
+ * @param node
18
+ */
19
+ getRelatedLinesByNode(node: RGNode): RGLine[];
20
+ /**
21
+ * Get all links between the given nodes
22
+ * - e.g.
23
+ * ```
24
+ * A --> B
25
+ * A --> C
26
+ * B --> C
27
+ * D --> E
28
+ * getLinksBetweenNodes([A,B,C]) will return [A-->B, A-->C, B-->C]
29
+ * ```
30
+ * @param nodes
31
+ */
32
+ getLinksBetweenNodes(nodes: RGNode[]): RGLink[];
33
+ /**
34
+ * Get all lines between the given nodes
35
+ * - e.g.
36
+ * ```
37
+ * A --> B
38
+ * A --> C
39
+ * B --> C
40
+ * D --> E
41
+ * getLinesBetweenNodes([A,B,C]) will return [A-->B, A-->C, B-->C]
42
+ * ```
43
+ * @param nodes
44
+ */
45
+ getLinesBetweenNodes(nodes: RGNode[]): RGLine[];
46
+ /**
47
+ * Get all nodes that have a direct relationship with the given node
48
+ * - e.g.
49
+ * ```
50
+ * A --> X
51
+ * B --> X
52
+ * C --> X
53
+ * X --> F
54
+ * X --> M
55
+ * getNodeRelatedNodes(X) will return [A,B,C,F,M]
56
+ * ```
57
+ * @param node
58
+ * @param options
59
+ * @return RGNode[]
60
+ */
61
+ getNodeRelatedNodes(node: RGNode, options?: {
62
+ incoming: boolean;
63
+ outgoing: boolean;
64
+ }): RGNode[];
65
+ /**
66
+ * Get all nodes that have an incoming relationship to the given node
67
+ * - e.g.
68
+ * ```
69
+ * A --> X
70
+ * B --> X
71
+ * C --> X
72
+ * X --> F
73
+ * X --> M
74
+ * getNodeIncomingNodes(X) will return [A,B,C]
75
+ * ```
76
+ * @param node
77
+ */
78
+ getNodeIncomingNodes(node: RGNode): RGNode[];
79
+ /**
80
+ * Get all nodes that have an outgoing relationship from the given node
81
+ * - e.g.
82
+ * ```
83
+ * A --> X
84
+ * B --> X
85
+ * C --> X
86
+ * X --> F
87
+ * X --> M
88
+ * getNodeOutgoingNodes(X) will return [F,M]
89
+ * ```
90
+ * @param node
91
+ */
92
+ getNodeOutgoingNodes(node: RGNode): RGNode[];
93
+ /**
94
+ * Get all nodes that have a direct or indirect relationship with a given node
95
+ * @deprecated Please use getNetworkNodesByNode instead
96
+ */
97
+ findGroupNodes(node: RGNode, groupNodes?: RGNode[]): RGNode[];
98
+ /**
99
+ * Get all nodes that have a direct or indirect relationship with a given node
100
+ * @deprecated Please use getNetworkNodesByNode instead
101
+ */
102
+ getGroupNodesByNode(node: RGNode, groupNodes?: RGNode[]): RGNode[];
103
+ /**
104
+ * Get all nodes that have a direct or indirect relationship with a given node
105
+ * @param node
106
+ * @param networkNodes
107
+ */
108
+ getNetworkNodesByNode(node: RGNode): RGNode[];
109
+ /**
110
+ * Get all nodes that have a direct or indirect relationship with a given node
111
+ * @param node
112
+ * @param networkNodes
113
+ */
114
+ private _getNetworkNodesByNode;
115
+ /**
116
+ * @deprecated
117
+ * @param nodes
118
+ * @protected
119
+ */
120
+ protected getStuffSize(nodes?: (RGNode | RGRectTarget)[]): RGNodesRectBox;
121
+ /**
122
+ * @deprecated
123
+ * @param nodes
124
+ * @protected
125
+ */
126
+ protected getNodesViewInfo(nodes?: (RGNode | RGRectTarget)[]): RGNodesRectBox;
127
+ /**
128
+ * Calculate the plane space information occupied by all nodes
129
+ * @param nodes Optional, if not specified, it will be calculated based on all nodes
130
+ */
131
+ getNodesRectBox(nodes?: (RGNode | RGRectTarget)[]): RGNodesRectBox;
132
+ /**
133
+ * Get the center coordinates of the plane space occupied by the node collection
134
+ * @param nodes Optional, if not specified, it will be calculated based on all nodes
135
+ */
136
+ getNodesCenter(nodes?: (RGNode | RGRectTarget)[]): {
137
+ x: number;
138
+ y: number;
139
+ };
140
+ /**
141
+ * Get all descendant nodes in the relationship network where the node is located. Descendant nodes are completely calculated based on the connection relationship and the root node used by the current layout (for the same node, using different root nodes for layout will result in different descendants).
142
+ * @return All descendant nodes
143
+ */
144
+ getDescendantNodes(node: RGNode): RGNode[];
145
+ /**
146
+ * Get nodes within the selection area
147
+ * - This method is generally used in conjunction with the onCanvasSelectionEnd event, where you can obtain information about the selection area through the event's parameters.
148
+ * - After obtaining the nodes within this area, you can use the graphInstance.getLinesBetweenNodes(nodesInSelection) method to get the lines between the nodes in the area.
149
+ * @param selectionView The position and size of the selection area in the view
150
+ * @return Nodes within the selection area
151
+ */
152
+ getNodesInSelectionView(selectionView: RGSelectionView): RGNode[];
153
+ /**
154
+ * Get the list of nodes to be rendered, this method is used internally by relation-graph
155
+ * - To get the list of nodes to be rendered outside the <relation-graph> component, please use hook: const { shouldRenderNodes } = useGraphStore();
156
+ * This allows you to get reactive data and let the data drive your UI
157
+ * @param nodes
158
+ * @return RGNode[]
159
+ */
160
+ getShouldRenderNodes(nodes?: (RGNode | RGRectTarget)[]): RGNode[];
161
+ /**
162
+ * Get the list of lines to be rendered, this method is used internally by relation-graph
163
+ - To get the list of lines to be rendered outside the <relation-graph> component, please use hook: const { shouldRenderLines } = useGraphStore();
164
+ * This allows you to get reactive data and let the data drive your UI
165
+ * @param lines
166
+ * @return RGLine[]
167
+ */
168
+ getShouldRenderLines(lines?: RGLine[]): RGLine[];
169
+ /**
170
+ * Get the list of fake lines to be rendered, this method is used internally by relation-graph
171
+ - To get the list of fake lines to be rendered outside the <relation-graph> component, please use hook: const { shouldRenderFakeLines } = useGraphStore();
172
+ * This allows you to get reactive data and let the data drive your UI
173
+ * @param fakeLines
174
+ * @return RGFakeLine[]
175
+ */
176
+ getShouldRenderFakeLines(fakeLines?: RGFakeLine[]): RGFakeLine[];
177
+ }