@relation-graph/react 3.0.0 → 3.0.1

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 (234) hide show
  1. package/package.json +2 -2
  2. package/relation-graph.js +251 -23
  3. package/relation-graph.mjs +7368 -5902
  4. package/relation-graph.umd.js +251 -23
  5. package/types/packages/platforms/react/src/index.d.ts +98 -64
  6. package/types/packages/platforms/react/src/relation-graph/RGProvider.d.ts +4 -0
  7. package/types/packages/platforms/react/src/relation-graph/RelationGraph.d.ts +7 -3
  8. package/types/packages/platforms/react/src/relation-graph/RelationLinker.d.ts +4 -5
  9. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGCanvas.d.ts +2 -3
  10. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGCanvasContent.d.ts +10 -3
  11. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGCanvasContent4CreatingLine.d.ts +10 -0
  12. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGCanvasContent4FakeLines.d.ts +11 -0
  13. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGCanvasContent4Lines.d.ts +12 -0
  14. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGCanvasContent4Nodes.d.ts +13 -0
  15. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGFakeNode.d.ts +1 -1
  16. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGGraphRefs.d.ts +0 -1
  17. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGLineContent.d.ts +1 -1
  18. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGLinePath.d.ts +1 -1
  19. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGLinePeel.d.ts +2 -3
  20. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGLineText.d.ts +1 -1
  21. package/types/packages/platforms/react/src/relation-graph/src/core4react/RGNodePeel.d.ts +10 -1
  22. package/types/packages/platforms/react/src/relation-graph/src/core4react/RelationGraphUI.d.ts +4 -0
  23. package/types/packages/platforms/react/src/relation-graph/src/core4react/RelationGraphView.d.ts +4 -0
  24. package/types/packages/platforms/react/src/relation-graph/src/core4react/RelationLinkerCanvas.d.ts +4 -5
  25. package/types/packages/platforms/react/src/relation-graph/src/core4react/RelationLinkerUI.d.ts +4 -0
  26. package/types/packages/platforms/react/src/relation-graph/src/core4react/RelationLinkerView.d.ts +4 -0
  27. package/types/packages/platforms/react/src/relation-graph/src/core4react/editing/RGConnectSource.d.ts +1 -1
  28. package/types/packages/platforms/react/src/relation-graph/src/core4react/editing/RGConnectTarget.d.ts +1 -1
  29. package/types/packages/platforms/react/src/relation-graph/src/core4react/editing/RGEditingConnectPoints.d.ts +1 -1
  30. package/types/packages/platforms/react/src/relation-graph/src/core4react/editing/RGEditingLineController.d.ts +1 -1
  31. package/types/packages/platforms/react/src/relation-graph/src/core4react/editing/RGEditingNearNodeWidget.d.ts +1 -1
  32. package/types/packages/platforms/react/src/relation-graph/src/core4react/editing/RGMiniView.d.ts +1 -1
  33. package/types/packages/platforms/react/src/relation-graph/src/core4react/slots/RGSlotOnLine.d.ts +1 -1
  34. package/types/packages/platforms/react/src/relation-graph/src/core4react/slots/RGSlotOnLineText.d.ts +1 -1
  35. package/types/packages/platforms/react/src/relation-graph/src/core4react/slots/RGSlotOnNode.d.ts +1 -1
  36. package/types/packages/platforms/react/src/relation-graph/src/core4react/store/index.d.ts +3 -2
  37. package/types/packages/platforms/react/src/relation-graph/src/core4react/store/reducers/RGStore.d.ts +10 -0
  38. package/types/packages/platforms/react/src/relation-graph/src/core4react/widgets/GraphBackground.d.ts +1 -1
  39. package/types/packages/platforms/react/src/relation-graph/src/core4react/widgets/GraphOperateStuff.d.ts +1 -1
  40. package/types/packages/platforms/react/src/relation-graph/src/core4react/widgets/GraphToolBar.d.ts +1 -1
  41. package/types/packages/platforms/react/src/relation-graph/src/core4react/widgets/GraphWatermark.d.ts +1 -1
  42. package/types/packages/platforms/react/src/relation-graph/src/core4react/widgets/GraphXsToolBar.d.ts +1 -1
  43. package/types/packages/platforms/react/src/relation-graph/src/core4react/widgets/RGDebugView.d.ts +3 -0
  44. package/types/packages/platforms/react/src/relation-graph/src/hooks/RGDataProvider.d.ts +17 -0
  45. package/types/packages/platforms/react/src/relation-graph/src/hooks/RGHooks.d.ts +24 -1
  46. package/types/packages/platforms/react/src/relation-graph/src/hooks/useFakeNodesState.d.ts +1 -1
  47. package/types/packages/platforms/react/src/relation-graph/src/hooks/useGraphInstance.d.ts +2 -12
  48. package/types/packages/platforms/react/src/relation-graph/src/hooks/useGraphStore.d.ts +13 -0
  49. package/types/packages/platforms/react/src/relation-graph/src/hooks/useRelationGraph.d.ts +11 -0
  50. package/types/packages/platforms/react/src/relation-graph/src/hooks/useRelationLinker.d.ts +17 -0
  51. package/types/packages/platforms/react/src/types-react.d.ts +24 -24
  52. package/types/packages/platforms/svelte/src/RGProvider.svelte.d.ts +1 -0
  53. package/types/packages/platforms/svelte/src/context.d.ts +4 -0
  54. package/types/packages/platforms/svelte/src/core4svelte/RGCanvas.svelte.d.ts +1 -0
  55. package/types/packages/platforms/svelte/src/core4svelte/RGCanvasContent.svelte.d.ts +1 -0
  56. package/types/packages/platforms/svelte/src/core4svelte/RGCanvasContent4CreatingLine.svelte.d.ts +1 -0
  57. package/types/packages/platforms/svelte/src/core4svelte/RGCanvasContent4FakeLines.svelte.d.ts +1 -0
  58. package/types/packages/platforms/svelte/src/core4svelte/RGCanvasContent4Lines.svelte.d.ts +1 -0
  59. package/types/packages/platforms/svelte/src/core4svelte/RGCanvasContent4Nodes.svelte.d.ts +1 -0
  60. package/types/packages/platforms/svelte/src/core4svelte/RGEasyView.svelte.d.ts +1 -0
  61. package/types/packages/platforms/svelte/src/core4svelte/RGFakeNode.svelte.d.ts +1 -0
  62. package/types/packages/platforms/svelte/src/core4svelte/RGGraphDefs.svelte.d.ts +1 -0
  63. package/types/packages/platforms/svelte/src/core4svelte/RGLineContent.svelte.d.ts +1 -0
  64. package/types/packages/platforms/svelte/src/core4svelte/RGLinePath.svelte.d.ts +1 -0
  65. package/types/packages/platforms/svelte/src/core4svelte/RGLinePeel.svelte.d.ts +1 -0
  66. package/types/packages/platforms/svelte/src/core4svelte/RGLineText.svelte.d.ts +1 -0
  67. package/types/packages/platforms/svelte/src/core4svelte/RGNodeExpandHolder.svelte.d.ts +1 -0
  68. package/types/packages/platforms/svelte/src/core4svelte/RGNodePeel.svelte.d.ts +1 -0
  69. package/types/packages/platforms/svelte/src/core4svelte/RGProvider4Instance.svelte.d.ts +1 -0
  70. package/types/packages/platforms/svelte/src/core4svelte/RelationGraph.svelte.d.ts +1 -0
  71. package/types/packages/platforms/svelte/src/core4svelte/RelationGraphUI.svelte.d.ts +1 -0
  72. package/types/packages/platforms/svelte/src/core4svelte/RelationLinker.svelte.d.ts +1 -0
  73. package/types/packages/platforms/svelte/src/core4svelte/RelationLinkerCanvas.svelte.d.ts +1 -0
  74. package/types/packages/platforms/svelte/src/core4svelte/RelationLinkerUI.svelte.d.ts +1 -0
  75. package/types/packages/platforms/svelte/src/core4svelte/editing/RGConnectSource.svelte.d.ts +1 -0
  76. package/types/packages/platforms/svelte/src/core4svelte/editing/RGConnectTarget.svelte.d.ts +1 -0
  77. package/types/packages/platforms/svelte/src/core4svelte/editing/RGConnectTargetUI.svelte.d.ts +1 -0
  78. package/types/packages/platforms/svelte/src/core4svelte/editing/RGEditingConnectController.svelte.d.ts +1 -0
  79. package/types/packages/platforms/svelte/src/core4svelte/editing/RGEditingConnectPoints.svelte.d.ts +1 -0
  80. package/types/packages/platforms/svelte/src/core4svelte/editing/RGEditingLineController.svelte.d.ts +1 -0
  81. package/types/packages/platforms/svelte/src/core4svelte/editing/RGEditingLineControllerUI.svelte.d.ts +1 -0
  82. package/types/packages/platforms/svelte/src/core4svelte/editing/RGEditingNearNodeWidget.svelte.d.ts +1 -0
  83. package/types/packages/platforms/svelte/src/core4svelte/editing/RGEditingNodeController.svelte.d.ts +1 -0
  84. package/types/packages/platforms/svelte/src/core4svelte/editing/RGEditingNodeControllerUI.svelte.d.ts +1 -0
  85. package/types/packages/platforms/svelte/src/core4svelte/editing/RGEditingReferenceLine.svelte.d.ts +1 -0
  86. package/types/packages/platforms/svelte/src/core4svelte/editing/RGEditingResize.svelte.d.ts +1 -0
  87. package/types/packages/platforms/svelte/src/core4svelte/editing/RGEditingResizeUI.svelte.d.ts +1 -0
  88. package/types/packages/platforms/svelte/src/core4svelte/editing/RGMiniView.svelte.d.ts +1 -0
  89. package/types/packages/platforms/svelte/src/core4svelte/editing/RGMiniViewContent.svelte.d.ts +1 -0
  90. package/types/packages/platforms/svelte/src/core4svelte/web-components/RGConnectTarget.svelte.d.ts +1 -0
  91. package/types/packages/platforms/svelte/src/core4svelte/web-components/RGEditingConnectController.svelte.d.ts +1 -0
  92. package/types/packages/platforms/svelte/src/core4svelte/web-components/RGEditingLineController.svelte.d.ts +1 -0
  93. package/types/packages/platforms/svelte/src/core4svelte/web-components/RGEditingNearNodeWidget.svelte.d.ts +1 -0
  94. package/types/packages/platforms/svelte/src/core4svelte/web-components/RGEditingNodeController.svelte.d.ts +1 -0
  95. package/types/packages/platforms/svelte/src/core4svelte/web-components/RGEditingReferenceLine.svelte.d.ts +1 -0
  96. package/types/packages/platforms/svelte/src/core4svelte/web-components/RGEditingResize.svelte.d.ts +1 -0
  97. package/types/packages/platforms/svelte/src/core4svelte/web-components/RGMiniView.svelte.d.ts +1 -0
  98. package/types/packages/platforms/svelte/src/core4svelte/web-components/RelationGraphWithProvider.svelte.d.ts +1 -0
  99. package/types/packages/platforms/svelte/src/core4svelte/web-components/WebComponentUtils.d.ts +11 -0
  100. package/types/packages/platforms/svelte/src/core4svelte/widgets/GraphBackground.svelte.d.ts +1 -0
  101. package/types/packages/platforms/svelte/src/core4svelte/widgets/GraphLoading.svelte.d.ts +1 -0
  102. package/types/packages/platforms/svelte/src/core4svelte/widgets/GraphMoveOperator.svelte.d.ts +1 -0
  103. package/types/packages/platforms/svelte/src/core4svelte/widgets/GraphOperateStuff.svelte.d.ts +1 -0
  104. package/types/packages/platforms/svelte/src/core4svelte/widgets/GraphWatermark.svelte.d.ts +1 -0
  105. package/types/packages/platforms/svelte/src/core4svelte/widgets/GraphXsToolBar.svelte.d.ts +1 -0
  106. package/types/packages/platforms/svelte/src/core4svelte/widgets/RGIcons.svelte.d.ts +1 -0
  107. package/types/packages/platforms/svelte/src/hooks/RGHooks.d.ts +27 -0
  108. package/types/packages/platforms/svelte/src/hooks/useGraphInstance.d.ts +2 -0
  109. package/types/packages/platforms/svelte/src/hooks/useGraphStore.d.ts +14 -0
  110. package/types/packages/platforms/svelte/src/hooks/useRGDataProvider.d.ts +19 -0
  111. package/types/packages/platforms/svelte/src/hooks/useRelationGraph.d.ts +48 -0
  112. package/types/packages/platforms/svelte/src/index.d.ts +194 -0
  113. package/types/packages/platforms/svelte/src/types-svelte.d.ts +85 -0
  114. package/types/packages/platforms/vue2/src/core4vue/RGCanvas.vue.d.ts +2 -6
  115. package/types/packages/platforms/vue2/src/core4vue/RGCanvasContent.vue.d.ts +6 -6
  116. package/types/packages/platforms/vue2/src/core4vue/RGCanvasContent4CreatingLine.vue.d.ts +9 -0
  117. package/types/packages/platforms/vue2/src/core4vue/RGCanvasContent4FakeLines.vue.d.ts +9 -0
  118. package/types/packages/platforms/vue2/src/core4vue/RGCanvasContent4Lines.vue.d.ts +9 -0
  119. package/types/packages/platforms/vue2/src/core4vue/RGCanvasContent4Nodes.vue.d.ts +9 -0
  120. package/types/packages/platforms/vue2/src/core4vue/RGEasyView.vue.d.ts +1 -0
  121. package/types/packages/platforms/vue2/src/core4vue/RGGraphDefs.vue.d.ts +1 -0
  122. package/types/packages/platforms/vue2/src/core4vue/RGLineContent.vue.d.ts +18 -18
  123. package/types/packages/platforms/vue2/src/core4vue/RGLinePath.vue.d.ts +4 -28
  124. package/types/packages/platforms/vue2/src/core4vue/RGLinePeel.vue.d.ts +4 -15
  125. package/types/packages/platforms/vue2/src/core4vue/RGNodeExpandHolder.vue.d.ts +3 -9
  126. package/types/packages/platforms/vue2/src/core4vue/RGNodePeel.vue.d.ts +5 -20
  127. package/types/packages/platforms/vue2/src/core4vue/RGProvider.vue.d.ts +50 -0
  128. package/types/packages/platforms/vue2/src/core4vue/RelationGraph.vue.d.ts +5 -773
  129. package/types/packages/platforms/vue2/src/core4vue/RelationGraphUI.vue.d.ts +46 -0
  130. package/types/packages/platforms/vue2/src/core4vue/RelationLinker.vue.d.ts +8 -24
  131. package/types/packages/platforms/vue2/src/core4vue/RelationLinkerCanvas.vue.d.ts +1 -0
  132. package/types/packages/platforms/vue2/src/core4vue/RelationLinkerUI.vue.d.ts +23 -0
  133. package/types/packages/platforms/vue2/src/core4vue/editing/RGConnectSource.vue.d.ts +3 -1
  134. package/types/packages/platforms/vue2/src/core4vue/editing/RGConnectTarget.vue.d.ts +1 -0
  135. package/types/packages/platforms/vue2/src/core4vue/editing/RGEditingConnectController.vue.d.ts +2 -1
  136. package/types/packages/platforms/vue2/src/core4vue/editing/RGEditingConnectPoints.vue.d.ts +1 -0
  137. package/types/packages/platforms/vue2/src/core4vue/editing/RGEditingLineController.vue.d.ts +12 -2
  138. package/types/packages/platforms/vue2/src/core4vue/editing/RGEditingNearNodeWidget.vue.d.ts +1 -0
  139. package/types/packages/platforms/vue2/src/core4vue/editing/RGEditingNodeController.vue.d.ts +1 -0
  140. package/types/packages/platforms/vue2/src/core4vue/editing/RGEditingReferenceLine.vue.d.ts +1 -0
  141. package/types/packages/platforms/vue2/src/core4vue/editing/RGEditingResize.vue.d.ts +1 -0
  142. package/types/packages/platforms/vue2/src/core4vue/editing/RGMiniView.vue.d.ts +3 -1
  143. package/types/packages/platforms/vue2/src/core4vue/widgets/GraphBackground.vue.d.ts +1 -0
  144. package/types/packages/platforms/vue2/src/core4vue/widgets/GraphLoading.vue.d.ts +1 -0
  145. package/types/packages/platforms/vue2/src/core4vue/widgets/GraphMoveOperator.vue.d.ts +1 -1
  146. package/types/packages/platforms/vue2/src/core4vue/widgets/GraphOperateStuff.vue.d.ts +1 -0
  147. package/types/packages/platforms/vue2/src/core4vue/widgets/GraphToolBar.vue.d.ts +1 -1
  148. package/types/packages/platforms/vue2/src/core4vue/widgets/GraphWatermark.vue.d.ts +1 -0
  149. package/types/packages/platforms/vue2/src/core4vue/widgets/GraphXsToolBar.vue.d.ts +1 -1
  150. package/types/packages/platforms/vue2/src/core4vue/widgets/RGDebugView.vue.d.ts +12 -0
  151. package/types/packages/platforms/vue2/src/hooks/GraphStoreMixin.d.ts +40 -0
  152. package/types/packages/platforms/vue2/src/index.d.ts +138 -1692
  153. package/types/packages/platforms/vue2/src/types-vue2.d.ts +3 -0
  154. package/types/packages/platforms/vue3/src/constants.d.ts +0 -1
  155. package/types/packages/platforms/vue3/src/index.d.ts +97 -1404
  156. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/editing/RGConnectSource.vue.d.ts +2 -2
  157. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/editing/RGConnectTarget.vue.d.ts +4 -4
  158. package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/editing/RGEditingLineController.vue.d.ts +2 -2
  159. package/types/packages/platforms/vue3/src/relation-graph/src/hooks/RGHooks.d.ts +27 -2
  160. package/types/packages/platforms/vue3/src/relation-graph/src/hooks/useGraphData.d.ts +2 -0
  161. package/types/packages/platforms/vue3/src/relation-graph/src/hooks/useGraphInstance.d.ts +1 -12
  162. package/types/packages/platforms/vue3/src/relation-graph/src/hooks/useGraphStore.d.ts +16 -0
  163. package/types/packages/platforms/vue3/src/relation-graph/src/hooks/useRGDataProvider.d.ts +17 -0
  164. package/types/packages/platforms/vue3/src/relation-graph/src/hooks/useRelationGraph.d.ts +131 -0
  165. package/types/packages/platforms/vue3/src/relation-graph/src/hooks/useRelationLinker.d.ts +39 -0
  166. package/types/packages/platforms/vue3/src/types-vue3.d.ts +104 -4
  167. package/types/packages/platforms/vue3/src/types.d.ts +3 -1
  168. package/types/packages/relation-graph-models/RGObjectsForExport.d.ts +40 -32
  169. package/types/packages/relation-graph-models/data/RGDataDefine.d.ts +23 -0
  170. package/types/packages/relation-graph-models/data/RGDataGetter.d.ts +36 -0
  171. package/types/packages/relation-graph-models/data/RGDataProvider.d.ts +66 -0
  172. package/types/packages/relation-graph-models/data/RGDataProvider4React.d.ts +9 -0
  173. package/types/packages/relation-graph-models/data/RGDataProvider4Svelte.d.ts +10 -0
  174. package/types/packages/relation-graph-models/data/RGDataProvider4Vue2.d.ts +9 -0
  175. package/types/packages/relation-graph-models/data/RGDataProvider4Vue3.d.ts +10 -0
  176. package/types/packages/relation-graph-models/data/RGDataProvider4Vue3V1.d.ts +10 -0
  177. package/types/packages/relation-graph-models/data/RGLineDataUtils.d.ts +9 -0
  178. package/types/packages/relation-graph-models/data/RGNodeDataUtils.d.ts +14 -0
  179. package/types/packages/relation-graph-models/data/RGOptionsDataUtils.d.ts +9 -0
  180. package/types/packages/relation-graph-models/data/utils/EdgeCounter.d.ts +8 -0
  181. package/types/packages/relation-graph-models/layouts/RGBaseLayout.d.ts +37 -0
  182. package/types/packages/relation-graph-models/layouts/RGCenterLayout.d.ts +9 -0
  183. package/types/packages/relation-graph-models/layouts/RGCircleLayout.d.ts +7 -0
  184. package/types/packages/relation-graph-models/layouts/RGFixedLayout.d.ts +10 -0
  185. package/types/packages/relation-graph-models/layouts/RGFolderLayout.d.ts +15 -0
  186. package/types/packages/relation-graph-models/layouts/RGForceLayout.d.ts +77 -0
  187. package/types/packages/relation-graph-models/layouts/RGIOTreeLayout.d.ts +18 -0
  188. package/types/packages/relation-graph-models/layouts/RGSmartTreeLayout.d.ts +14 -0
  189. package/types/packages/relation-graph-models/layouts/RGTreeLayout.d.ts +17 -0
  190. package/types/packages/relation-graph-models/layouts/analyzers/BasicNetworkAnalyzer.d.ts +27 -0
  191. package/types/packages/relation-graph-models/layouts/analyzers/RGNetworkAnalyzer.d.ts +27 -0
  192. package/types/packages/relation-graph-models/models/RelationGraphBase.d.ts +31 -18
  193. package/types/packages/relation-graph-models/models/RelationGraphCore.d.ts +46 -0
  194. package/types/packages/relation-graph-models/models/RelationGraphWith1View.d.ts +91 -0
  195. package/types/packages/relation-graph-models/models/RelationGraphWith2Data.d.ts +34 -381
  196. package/types/packages/relation-graph-models/models/RelationGraphWith2Data1Getter.d.ts +77 -0
  197. package/types/packages/relation-graph-models/models/RelationGraphWith2Data2Analysis.d.ts +172 -0
  198. package/types/packages/relation-graph-models/models/RelationGraphWith2Data3Update.d.ts +257 -0
  199. package/types/packages/relation-graph-models/models/RelationGraphWith2Data4ConnectTarget.d.ts +85 -0
  200. package/types/packages/relation-graph-models/models/RelationGraphWith2Data5LineConfig.d.ts +35 -0
  201. package/types/packages/relation-graph-models/models/RelationGraphWith3Options1Update.d.ts +75 -0
  202. package/types/packages/relation-graph-models/models/RelationGraphWith3Options2API.d.ts +39 -0
  203. package/types/packages/relation-graph-models/models/RelationGraphWith4Line.d.ts +81 -21
  204. package/types/packages/relation-graph-models/models/RelationGraphWith5Zoom.d.ts +19 -21
  205. package/types/packages/relation-graph-models/models/RelationGraphWith6Effect.d.ts +56 -4
  206. package/types/packages/relation-graph-models/models/RelationGraphWith6Layout.d.ts +60 -12
  207. package/types/packages/relation-graph-models/models/RelationGraphWith7Event.d.ts +233 -36
  208. package/types/packages/relation-graph-models/models/RelationGraphWith91Editing.d.ts +176 -25
  209. package/types/packages/relation-graph-models/models/RelationGraphWith92MiniView.d.ts +70 -13
  210. package/types/packages/relation-graph-models/models/RelationGraphWith93Image.d.ts +36 -0
  211. package/types/packages/relation-graph-models/models/RelationGraphWith93Image_codes.d.ts +36 -0
  212. package/types/packages/relation-graph-models/models/RelationGraphWith95Dom.d.ts +108 -0
  213. package/types/packages/relation-graph-models/models/RelationGraphWith99API.d.ts +125 -0
  214. package/types/packages/relation-graph-models/models/RelationGraphWith9EasyView.d.ts +57 -11
  215. package/types/packages/relation-graph-models/utils/RGCanvasImpl2D.d.ts +2 -3
  216. package/types/packages/relation-graph-models/utils/RGCommon.d.ts +6 -1
  217. package/types/packages/relation-graph-models/utils/RGDragUtils.d.ts +14 -11
  218. package/types/packages/relation-graph-models/utils/RGFullscreenUtils.d.ts +1 -1
  219. package/types/packages/relation-graph-models/utils/RGGraphMath.d.ts +27 -0
  220. package/types/packages/relation-graph-models/utils/RGIntergration.d.ts +32 -34
  221. package/types/packages/relation-graph-models/utils/RGNodesAnalytic.d.ts +6 -15
  222. package/types/packages/relation-graph-models/utils/RGTips.d.ts +7 -0
  223. package/types/packages/relation-graph-models/utils/line/RGLinePath.d.ts +16 -1
  224. package/types/packages/relation-graph-models/utils/line/RGLinePathUtils.d.ts +1 -1
  225. package/types/packages/relation-graph-models/utils/line/RGPathGeneratorFor1.d.ts +1 -1
  226. package/types/packages/relation-graph-models/utils/line/RGPathGeneratorFor4.d.ts +1 -1
  227. package/types/packages/relation-graph-models/utils/line/RGPathGeneratorFor44.d.ts +1 -1
  228. package/types/packages/relation-graph-models/utils/line/RGPathGeneratorFor49.d.ts +1 -1
  229. package/types/packages/relation-graph-models/utils/line/RGPathGeneratorFor6.d.ts +1 -1
  230. package/types/packages/relation-graph-models/utils/line/RGPathGeneratorForCurve.d.ts +1 -1
  231. package/types/packages/types.d.ts +1467 -0
  232. package/types/packages/types.ts +1472 -0
  233. package/types/react.d.ts +38 -38
  234. package/types/vue3.d.ts +229 -229
@@ -0,0 +1,172 @@
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
+ */
59
+ getNodeRelatedNodes(node: RGNode): RGNode[];
60
+ /**
61
+ * Get all nodes that have an incoming relationship to the given node
62
+ * - e.g.
63
+ * ```
64
+ * A --> X
65
+ * B --> X
66
+ * C --> X
67
+ * X --> F
68
+ * X --> M
69
+ * getNodeIncomingNodes(X) will return [A,B,C]
70
+ * ```
71
+ * @param node
72
+ */
73
+ getNodeIncomingNodes(node: RGNode): RGNode[];
74
+ /**
75
+ * Get all nodes that have an outgoing relationship from the given node
76
+ * - e.g.
77
+ * ```
78
+ * A --> X
79
+ * B --> X
80
+ * C --> X
81
+ * X --> F
82
+ * X --> M
83
+ * getNodeOutgoingNodes(X) will return [F,M]
84
+ * ```
85
+ * @param node
86
+ */
87
+ getNodeOutgoingNodes(node: RGNode): RGNode[];
88
+ /**
89
+ * Get all nodes that have a direct or indirect relationship with a given node
90
+ * @deprecated Please use getNetworkNodesByNode instead
91
+ */
92
+ findGroupNodes(node: RGNode, groupNodes?: 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
+ getGroupNodesByNode(node: RGNode, groupNodes?: RGNode[]): RGNode[];
98
+ /**
99
+ * Get all nodes that have a direct or indirect relationship with a given node
100
+ * @param node
101
+ * @param networkNodes
102
+ */
103
+ getNetworkNodesByNode(node: RGNode): RGNode[];
104
+ /**
105
+ * Get all nodes that have a direct or indirect relationship with a given node
106
+ * @param node
107
+ * @param networkNodes
108
+ */
109
+ private _getNetworkNodesByNode;
110
+ /**
111
+ * @deprecated
112
+ * @param nodes
113
+ * @protected
114
+ */
115
+ protected getStuffSize(nodes?: (RGNode | RGRectTarget)[]): RGNodesRectBox;
116
+ /**
117
+ * @deprecated
118
+ * @param nodes
119
+ * @protected
120
+ */
121
+ protected getNodesViewInfo(nodes?: (RGNode | RGRectTarget)[]): RGNodesRectBox;
122
+ /**
123
+ * Calculate the plane space information occupied by all nodes
124
+ * @param nodes Optional, if not specified, it will be calculated based on all nodes
125
+ */
126
+ getNodesRectBox(nodes?: (RGNode | RGRectTarget)[]): RGNodesRectBox;
127
+ /**
128
+ * Get the center coordinates of the plane space occupied by the node collection
129
+ * @param nodes Optional, if not specified, it will be calculated based on all nodes
130
+ */
131
+ getNodesCenter(nodes?: (RGNode | RGRectTarget)[]): {
132
+ x: number;
133
+ y: number;
134
+ };
135
+ /**
136
+ * 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).
137
+ * @return All descendant nodes
138
+ */
139
+ getDescendantNodes(node: RGNode): RGNode[];
140
+ /**
141
+ * Get nodes within the selection area
142
+ * - 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.
143
+ * - 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.
144
+ * @param selectionView The position and size of the selection area in the view
145
+ * @return Nodes within the selection area
146
+ */
147
+ getNodesInSelectionView(selectionView: RGSelectionView): RGNode[];
148
+ /**
149
+ * Get the list of nodes to be rendered, this method is used internally by relation-graph
150
+ * - To get the list of nodes to be rendered outside the <relation-graph> component, please use hook: const { shouldRenderNodes } = useGraphStore();
151
+ * This allows you to get reactive data and let the data drive your UI
152
+ * @param nodes
153
+ * @return RGNode[]
154
+ */
155
+ getShouldRenderNodes(nodes?: (RGNode | RGRectTarget)[]): RGNode[];
156
+ /**
157
+ * Get the list of lines to be rendered, this method is used internally by relation-graph
158
+ - To get the list of lines to be rendered outside the <relation-graph> component, please use hook: const { shouldRenderLines } = useGraphStore();
159
+ * This allows you to get reactive data and let the data drive your UI
160
+ * @param lines
161
+ * @return RGLine[]
162
+ */
163
+ getShouldRenderLines(lines?: RGLine[]): RGLine[];
164
+ /**
165
+ * Get the list of fake lines to be rendered, this method is used internally by relation-graph
166
+ - To get the list of fake lines to be rendered outside the <relation-graph> component, please use hook: const { shouldRenderFakeLines } = useGraphStore();
167
+ * This allows you to get reactive data and let the data drive your UI
168
+ * @param fakeLines
169
+ * @return RGFakeLine[]
170
+ */
171
+ getShouldRenderFakeLines(fakeLines?: RGFakeLine[]): RGFakeLine[];
172
+ }
@@ -0,0 +1,257 @@
1
+ import { JsonLine, JsonNode, RGFakeLine, RGJsonData, RGLine, RGLink, RGNode } from '../../types';
2
+ import { RelationGraphWith2Data2Analysis } from './RelationGraphWith2Data2Analysis';
3
+ /**
4
+ * API class related to data (nodes, lines, etc.) updates in the relation-graph component, providing operations such as adding, deleting, and modifying graph data
5
+ */
6
+ export declare class RelationGraphWith2Data3Update extends RelationGraphWith2Data2Analysis {
7
+ constructor();
8
+ /**
9
+ * Remove a line
10
+ * @param line
11
+ */
12
+ removeLine(line: RGLine): void;
13
+ /**
14
+ * Remove multiple lines
15
+ * @param lines
16
+ */
17
+ removeLines(lines: RGLine[]): void;
18
+ /**
19
+ * Remove line by lineId
20
+ * @param lineId
21
+ */
22
+ removeLineById(lineId: string): void;
23
+ /**
24
+ * Remove multiple lines by lineIds
25
+ * @param lineIds
26
+ */
27
+ removeLineByIds(lineIds: string[]): void;
28
+ /**
29
+ * Remove a fake line
30
+ * @param line
31
+ */
32
+ removeFakeLine(line: RGFakeLine): void;
33
+ /**
34
+ * Remove a fake line by lineId
35
+ * @param lineId
36
+ */
37
+ removeFakeLineById(lineId: string): void;
38
+ /**
39
+ * Remove a link
40
+ * @param link
41
+ */
42
+ removeLink(link: RGLink): void;
43
+ /**
44
+ * Remove a link by lineId
45
+ * @param lineId
46
+ */
47
+ removeLinkByLineId(lineId: string): void;
48
+ /**
49
+ * Remove node by nodeId
50
+ * @param nodeId
51
+ */
52
+ removeNodeById(nodeId: string): void;
53
+ /**
54
+ * Remove multiple nodes by nodeIds
55
+ * @param nodeIds
56
+ */
57
+ removeNodesByIds(nodeIds: string[]): void;
58
+ /**
59
+ * Remove multiple nodes
60
+ * @param nodes
61
+ */
62
+ removeNodes(nodes: RGNode[]): void;
63
+ /**
64
+ * Remove a node
65
+ * @param node
66
+ */
67
+ removeNode(node: RGNode): void;
68
+ /**
69
+ * @deprecated Use removeFakeLineById instead of removeELementLineById, this method is compatible with older api versions.
70
+ * @param elementLineId
71
+ */
72
+ removeELementLineById(elementLineId: string): void;
73
+ /**
74
+ * Add a node
75
+ * @param node
76
+ */
77
+ addNode(node: JsonNode): void;
78
+ /**
79
+ * Add multiple nodes
80
+ * @param nodes
81
+ */
82
+ addNodes(nodes: JsonNode[]): void;
83
+ /**
84
+ * Add a line
85
+ * @param line
86
+ */
87
+ addLine(line: JsonLine): void;
88
+ /**
89
+ * Add multiple lines
90
+ * @param lines
91
+ */
92
+ addLines(lines: JsonLine[]): void;
93
+ /**
94
+ * @inner
95
+ * @protected
96
+ */
97
+ protected _addFakeLines(lines: JsonLine[]): void;
98
+ /**
99
+ * Add multiple fake lines
100
+ * @param lines
101
+ */
102
+ addFakeLines(lines: JsonLine[]): void;
103
+ private _elLineUpdateTimer;
104
+ /**
105
+ * Update the position information of all element lines
106
+ * - Generally, there is no need to call this method, relation-graph will automatically call this method to update the position information of element lines at appropriate times. This method is only for special scenarios.
107
+ */
108
+ updateElementLines(): void;
109
+ /**
110
+ * @inner
111
+ * @private
112
+ */
113
+ private _updateElementLines;
114
+ /**
115
+ * @inner
116
+ * @private
117
+ */
118
+ private _updateCanvasBoxInfo;
119
+ /**
120
+ * @inner
121
+ * @private
122
+ */
123
+ private updateElementTarget;
124
+ private _canvasCurrentInfo;
125
+ /**
126
+ * @inner
127
+ * @private
128
+ */
129
+ private _getElementTargetPosition;
130
+ /**
131
+ * Add multiple element lines
132
+ * @deprecated Please use addFakeLines instead of addElementLines, this method is compatible with older api versions.
133
+ * @param lines
134
+ */
135
+ addElementLines(lines: JsonLine[]): void;
136
+ private _nodeResizeEffectTimer;
137
+ /**
138
+ * @inner
139
+ * @private
140
+ */
141
+ protected updateNodeOffsetSize(nodeId: string, width: number, height: number): void;
142
+ /**
143
+ * Clear all fake lines
144
+ */
145
+ clearFakeLines(): void;
146
+ /**
147
+ * Clear all element lines
148
+ * @deprecated Please use clearFakeLines instead of clearElementLines, this method is compatible with older api versions.
149
+ */
150
+ clearElementLines(): void;
151
+ protected prevAddNodeTimestamp: number;
152
+ /**
153
+ * Convert JsonNode to RGNode object and add it to the graph
154
+ * @inner
155
+ * @param _nodes
156
+ * @protected
157
+ */
158
+ protected _addNodes(_nodes: JsonNode[]): void;
159
+ /**
160
+ * Convert JsonLine to RGLine object and add it to the graph
161
+ * @inner
162
+ * @param _lines
163
+ * @protected
164
+ */
165
+ protected _addLines(_lines: JsonLine[]): void;
166
+ /**
167
+ * Modify node property values, you only need to pass in the properties you want to modify, and the properties that are not passed in will remain unchanged
168
+ * @param nodeOrId RGNode object or nodeId
169
+ * @param nodeProperties
170
+ */
171
+ updateNode(nodeOrId: RGNode | string, nodeProperties: Partial<RGNode>): void;
172
+ /**
173
+ * Modify node position
174
+ * @param nodeOrId RGNode object or nodeId
175
+ * @param x
176
+ * @param y
177
+ */
178
+ updateNodePosition(nodeOrId: RGNode | string, x: number, y: number): void;
179
+ /**
180
+ * Modify the specified attribute values in node.data. It is a shortcut method, equivalent to:
181
+ * ```ts
182
+ * this.updateNode(node.id, {
183
+ * data: {...node.data, ...nodeData}
184
+ * });
185
+ * ```
186
+ * @param nodeOrId RGNode object or nodeId
187
+ * @param nodeData
188
+ *
189
+ */
190
+ updateNodeData(nodeOrId: RGNode | string, nodeData: Record<string, any>): void;
191
+ /**
192
+ * Modify line property values, you only need to pass in the properties you want to modify, and the properties that are not passed in will remain unchanged
193
+ * @param lineOrId RGLine object or lineId
194
+ * @param lineProperties
195
+ */
196
+ updateLine(lineOrId: string | RGLine, lineProperties: Partial<RGLine>): void;
197
+ /**
198
+ * Modify the specified attribute values in line.data. It is a shortcut method, equivalent to:
199
+ * ```ts
200
+ * this.updateLine(line.id, {
201
+ * data: {...line.data, ...lineData}
202
+ * });
203
+ * ```
204
+ * @param lineOrId RGLine object or lineId
205
+ * @param lineData
206
+ */
207
+ updateLineData(lineOrId: string | RGLine, lineData: Record<string, any>): void;
208
+ /**
209
+ * Modify fake line property values, you only need to pass in the properties you want to modify, and the properties that are not passed in will remain unchanged
210
+ * @param lineOrId RGLine object or lineId
211
+ * @param lineProperties
212
+ */
213
+ updateFakeLine(lineOrId: string | RGLine, lineProperties: Partial<RGFakeLine>): void;
214
+ /**
215
+ * Expand tree-structured data into flattened data
216
+ * @param orign_nodes Tree-structured data, e.g., [{id:'a',children:[{id:'a-1'},{id:'a-1', children: [{id:'a-1-1'}]}]}]
217
+ * @param parentNode Please pass null
218
+ * @param nodes_collect All expanded nodes will be stored here
219
+ * @param lines_collect All expanded lines will be stored here
220
+ */
221
+ flatNodeData(orign_nodes: JsonNode[], parentNode: JsonNode | null, nodes_collect: JsonNode[], lines_collect: JsonLine[]): void;
222
+ /**
223
+ * @inner
224
+ * @param jsonData
225
+ * @protected
226
+ */
227
+ protected loadGraphJsonData(jsonData: RGJsonData): void;
228
+ /**
229
+ * Recalculate all visible nodes
230
+ * relation-graph外部无需调用这个方法,因为当你修改数据后,relation-graph会自动调用这个方法
231
+ * @inner
232
+ * @param force
233
+ */
234
+ protected updateShouldRenderGraphData(force?: boolean): void;
235
+ /**
236
+ * Update the visible property of nodes
237
+ * - When you expand/collapse nodes, there is no need to call this method outside of relation-graph, because relation-graph will automatically call this method. However, when you directly modify the visibility property of a node (for example, if you modify a node's parent node to be hidden, then you need to call this method to make the child node invisible), you need to call this method to update the visibility of the nodes.
238
+ * @param nodes
239
+ */
240
+ updateNodesVisibleProperty(nodes?: RGNode[]): void;
241
+ /**
242
+ * @inner
243
+ */
244
+ updateVisibleNodesSize(): void;
245
+ /**
246
+ * @inner
247
+ * @protected
248
+ */
249
+ protected _clearGraph(): void;
250
+ /**
251
+ * @inner
252
+ * @param jsonData
253
+ * @param resetViewSize
254
+ * @protected
255
+ */
256
+ protected _setJsonData(jsonData: RGJsonData, resetViewSize?: boolean): void;
257
+ }
@@ -0,0 +1,85 @@
1
+ import { RGConnectTarget4NodePoint, RGJunctionPoint } from '../../types';
2
+ import { RelationGraphWith2Data3Update } from './RelationGraphWith2Data3Update';
3
+ /**
4
+ * The class related to connection point management in the relation-graph component, where the connection point refers to the connection point registered through the <RGConnectTarget> component
5
+ */
6
+ export declare class RelationGraphWith2Data4ConnectTarget extends RelationGraphWith2Data3Update {
7
+ constructor();
8
+ private canvasConnectTargetsMap;
9
+ private nodeConnectTargetsMap;
10
+ private connectTargetElementMap;
11
+ /**
12
+ * In general, relation-graph will automatically update the position of the connection points.
13
+ * - This method is only used for manual calls in some special scenarios.
14
+ * - It is provided for external calls to update the connection point positions of the specified canvas slot, and is not suitable for high-frequency calls.
15
+ * @param by
16
+ * @param canvasSlotDom
17
+ * @protected
18
+ */
19
+ protected updateConnectTargetsOnCanvas(by: string, canvasSlotDom: Element): void;
20
+ /**
21
+ * In general, relation-graph will automatically update the position of the connection points.
22
+ * - This method is only used for manual calls in some special scenarios.
23
+ * - It is provided for external calls to update the connection point positions of the specified node, and is not suitable for high-frequency calls.
24
+ *
25
+ */
26
+ updateConnectTargetsByNodeId(nodeId: string): void;
27
+ /**
28
+ * @inner
29
+ */
30
+ private getNodeElByNodeId;
31
+ /**
32
+ * @inner
33
+ */
34
+ protected updateConnectTargetsOnNode(by: string, nodeId: string, nodeEl: HTMLDivElement): void;
35
+ /**
36
+ * @inner
37
+ */
38
+ protected updateConnectTargetList(by: string, relativeNodeEl: Element, connectTargetList: RGConnectTarget4NodePoint[]): void;
39
+ /**
40
+ * @inner
41
+ */
42
+ private _connectTargetUpdateRequestedSet;
43
+ /**
44
+ * @inner
45
+ */
46
+ private _requestUpdateConnectTargetOffset;
47
+ private _updateTimer;
48
+ /**
49
+ * @inner
50
+ */
51
+ private _updateAllRequestedConnectTargetOffsets;
52
+ /**
53
+ * @inner
54
+ */
55
+ private _updateConnectTargetOffset;
56
+ /**
57
+ * @inner
58
+ */
59
+ private _onConnectTargetMounted;
60
+ /**
61
+ * @inner
62
+ */
63
+ private getNodeElByChildrenTarget;
64
+ /**
65
+ * @inner
66
+ */
67
+ registerConnectTarget(connectTargetEl: HTMLDivElement, targetId: string, targetType: string, junctionPoint: RGJunctionPoint, targetData?: Record<string, any>): RGConnectTarget4NodePoint | undefined;
68
+ /**
69
+ * @inner
70
+ */
71
+ private _addConnectTargetToNodeMap;
72
+ /**
73
+ * @inner
74
+ */
75
+ private _addConnectTargetToCanvasMap;
76
+ /**
77
+ * @inner
78
+ */
79
+ unregisterConnectTarget(targetId: string): void;
80
+ private _removedConnectTargetMap;
81
+ /**
82
+ * @inner
83
+ */
84
+ private reuseConnectTarget;
85
+ }
@@ -0,0 +1,35 @@
1
+ import { RGFakeLine, RGFakeLineTargetRender, RGGenerateLineConfig, RGLine, RGLineTarget, RGOptionsFull } from '../../types';
2
+ import { RelationGraphWith2Data4ConnectTarget } from './RelationGraphWith2Data4ConnectTarget';
3
+ /**
4
+ * API class for generating line configuration and line connection point information in relation-graph component, providing data support for drawing lines
5
+ */
6
+ export declare class RelationGraphWith2Data5LineConfig extends RelationGraphWith2Data4ConnectTarget {
7
+ constructor();
8
+ /**
9
+ * @inner
10
+ */
11
+ generateCreatingLineConfig(options?: RGOptionsFull): RGGenerateLineConfig;
12
+ /**
13
+ * Generate configuration information for drawing lines based on line information
14
+ * @param line
15
+ */
16
+ generateLineConfig(line: RGLine): RGGenerateLineConfig | false;
17
+ /**
18
+ * Generate configuration information for drawing fake lines based on fake line information
19
+ * @param fakeLine
20
+ */
21
+ generateFakeLineConfig(fakeLine: RGFakeLine): RGGenerateLineConfig | false;
22
+ private fakeLineTargetRender;
23
+ /**
24
+ * Set a custom render method for fake line targets, to provide more types of target rendering capabilities for fake lines
25
+ * @param fakeLineTargetRender
26
+ */
27
+ setFakeLineTargetRender(fakeLineTargetRender: RGFakeLineTargetRender): void;
28
+ /**
29
+ * Get the target information of a fake line based on the target type and target ID
30
+ * @param targetType
31
+ * @param targetId
32
+ * @param fakeLine
33
+ */
34
+ getFakeLineTarget(targetType: string, targetId: string, fakeLine: RGFakeLine): RGLineTarget | undefined;
35
+ }
@@ -0,0 +1,75 @@
1
+ import { RGLine, RGNode, RGOptions } from '../../types';
2
+ import { RelationGraphWith2Data5LineConfig } from './RelationGraphWith2Data5LineConfig';
3
+ /**
4
+ * Class related to options data update of relation-graph component
5
+ */
6
+ export declare class RelationGraphWith3Options1Update extends RelationGraphWith2Data5LineConfig {
7
+ constructor();
8
+ /**
9
+ * @inner
10
+ */
11
+ protected _updateOptions(options: RGOptions): void;
12
+ /**
13
+ * When the size of the parent element of the relation-graph component changes, you can call this method to recalculate the view size
14
+ * @param zoomTo100
15
+ * @protected
16
+ * @inner
17
+ */
18
+ protected resetViewSize(zoomTo100?: boolean): void;
19
+ /**
20
+ * Lock the graph component screen and display a piece of text
21
+ * @param graphLoadingText The text to display
22
+ */
23
+ loading(graphLoadingText?: string): void;
24
+ /**
25
+ * Clear the lock on the graph component screen
26
+ */
27
+ clearLoading(): void;
28
+ /**
29
+ * Set the checked node
30
+ * @param node
31
+ */
32
+ setCheckedNode(node: string | RGNode): void;
33
+ /**
34
+ * Set the checked line
35
+ * @param line
36
+ */
37
+ setCheckedLine(line: string | RGLine): void;
38
+ /**
39
+ * Clear all checked nodes and lines
40
+ */
41
+ clearChecked(): void;
42
+ /**
43
+ * Clear all selected nodes and lines
44
+ */
45
+ clearSelected(): void;
46
+ /**
47
+ * Set the canvas offset, used when dragging the canvas
48
+ * @param x
49
+ * @param y
50
+ */
51
+ setCanvasOffset(x: number, y: number): void;
52
+ /**
53
+ * Set the current canvas to move mode
54
+ * @param newValue
55
+ * @protected
56
+ * @inner
57
+ */
58
+ protected setCanvasMoveMode(newValue: boolean): void;
59
+ /**
60
+ * @inner
61
+ */
62
+ onMiniViewMounted(): void;
63
+ /**
64
+ * @inner
65
+ */
66
+ onMiniViewUnMounted(): void;
67
+ /**
68
+ * @inner
69
+ */
70
+ onReferenceLineMounted(adsorption: boolean): void;
71
+ /**
72
+ * @inner
73
+ */
74
+ onReferenceLineUnMounted(): void;
75
+ }
@@ -0,0 +1,39 @@
1
+ import { JsonLine, JsonNode, RGLineTarget, RGOptionsFull } from '../../types';
2
+ import { RelationGraphWith3Options1Update } from './RelationGraphWith3Options1Update';
3
+ /**
4
+ * API class to obtain some derived or abstract information from options data
5
+ */
6
+ export declare class RelationGraphWith3Options2API extends RelationGraphWith3Options1Update {
7
+ constructor();
8
+ /**
9
+ * Get the currently creating line information through data options
10
+ * - This method is only for Hook (useCreatingLine). When using it, it should be obtained through the hook:
11
+ * ```ts
12
+ * import { RGHooks } from 'relation-graph-react';
13
+ * const creatingLine = RGHooks.useCreatingLine(graphInstance);
14
+ * ```
15
+ * @param options
16
+ * @inner
17
+ *
18
+ */
19
+ getCreatingLine(options?: RGOptionsFull): {
20
+ creating: boolean;
21
+ fromTarget?: RGLineTarget;
22
+ toTarget?: RGLineTarget;
23
+ lineJson?: JsonLine;
24
+ };
25
+ /**
26
+ * Get the currently creating node information through data options
27
+ * - This method is only for Hook (useCreatingNode). When using it, it should be obtained through the hook:
28
+ * ```ts
29
+ * import { RGHooks } from 'relation-graph-react';
30
+ * const creatingNode = RGHooks.useCreatingNode();
31
+ * ```
32
+ * @param options
33
+ * @inner
34
+ */
35
+ getCreatingNode(options?: RGOptionsFull): {
36
+ creating: boolean;
37
+ nodeJson?: JsonNode;
38
+ };
39
+ }