@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,91 @@
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
+ /**
26
+ * Get the RelationGraph component DOM
27
+ * @return relationGraphDom:HTMLDivElement RelationGraph container DOM
28
+ */
29
+ getViewBoundingClientRect(): DOMRect | null;
30
+ /**
31
+ * @deprecated Please use getViewBoundingClientRect instead of getBoundingClientRect, this method is compatible with older api versions.
32
+ */
33
+ getBoundingClientRect(): DOMRect | null;
34
+ /**
35
+ * Compatible with older api versions
36
+ * @param e
37
+ * @protected
38
+ * @inner
39
+ */
40
+ protected _getEventPoint(e: RGUserEvent): {
41
+ x: number;
42
+ y: number;
43
+ };
44
+ /**
45
+ * Get the coordinates mapped on the "relation-graph Component viewport" from the Event
46
+ * @param e
47
+ */
48
+ getViewXyByEvent(e: RGUserEvent): {
49
+ x: number;
50
+ y: number;
51
+ };
52
+ /**
53
+ * Get the coordinates mapped on the "relation-graph Component viewport" from the canvas coordinates
54
+ * @param clientXY = {x: e.clientX, y: e.clientY}
55
+ */
56
+ getCanvasXyByClientXy(clientXY: RGCoordinate): RGCoordinate;
57
+ /**
58
+ * Get the coordinates mapped on the "relation-graph Component viewport" from the canvas coordinates
59
+ * @param viewXy = {x: e.clientX - relationGraphViewBox.left, y: e.clientY - relationGraphViewBox.top}
60
+ */
61
+ getCanvasXyByViewXy(viewXy: RGCoordinate): RGCoordinate;
62
+ /**
63
+ * Get the coordinates mapped on the canvas from the "relation-graph Component viewport" coordinates
64
+ * @param canvasCoordinate = {x: node.x, y: node.y}
65
+ */
66
+ getViewXyByCanvasXy(canvasCoordinate: RGCoordinate): RGCoordinate;
67
+ /**
68
+ * @deprecated Please use getCanvasXyByClientXy instead of getCanvasCoordinateByClientCoordinate, this method is compatible with older api versions.
69
+ * @param clientXY
70
+ */
71
+ getCanvasCoordinateByClientCoordinate(clientXY: RGCoordinate): RGCoordinate;
72
+ /**
73
+ * Check if el is a node element, if so, return the corresponding node object
74
+ * - You can use this method to determine if the element currently under the mouse is a node element, and get the corresponding node object
75
+ * @param el
76
+ * @return RGNode | undefined
77
+ */
78
+ isNode(el: HTMLElement): RGNode | undefined;
79
+ /**
80
+ * Check if el is a line element, if so, return the corresponding line object
81
+ * - You can use this method to determine if the element currently under the mouse is a line element, and get the corresponding line object
82
+ * @param el
83
+ * @return RGLine | undefined
84
+ */
85
+ isLine(el: HTMLElement): RGLine | undefined;
86
+ /**
87
+ * @deprecated Please use isLine instead of isLink, this method is compatible with older api versions.
88
+ * @param el
89
+ */
90
+ isLink(el: HTMLElement): RGLink | undefined;
91
+ }
@@ -1,398 +1,51 @@
1
- import { JsonLine, JsonNode, RGConnectTarget4NodePoint, RGFakeLine, RGFakeLineTargetRender, RGGenerateLineConfig, RGGraphData, RGGraphReactiveData, RGJsonData, RGJunctionPoint, RGLine, RGLineTarget, RGLink, RGListeners, RGNode, RGRectTarget, RGOptions, RGPosition } from '../types';
2
- import { RelationGraphWith1Dom } from './RelationGraphWith1Dom';
3
- export declare class RelationGraphWith2Data extends RelationGraphWith1Dom {
4
- /**
5
- * All data managed in RelationGraph, including all nodes RGNode, all relationships RGLink, the current root node, and all element lines elementLines
6
- */
7
- graphData: RGGraphData;
8
- runtimeDATA4Links: RGLink[];
9
- runtimeDATA4NodeMap: Record<string, RGNode>;
10
- runtimeDATA4ConnectTargets: RGConnectTarget4NodePoint[];
11
- /**
12
- * [Used internally by relation-graph] The reactive data object of the current RelationGraph component
13
- */
14
- reactiveData: RGGraphReactiveData;
15
- constructor(options: RGOptions, listeners: RGListeners);
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;
16
9
  /**
17
10
  * [Used internally by relation-graph] Set reactive data objects
18
11
  * @param graphData
19
12
  * @param reactiveData
13
+ * @inner
20
14
  */
21
- setReactiveData4Vue2(graphData: RGGraphData, reactiveData: RGGraphReactiveData, runtimeData: any): void;
22
- runtimeDATA4ShouldRenderGraphData: {
23
- nodes: RGLineTarget[];
24
- lines: RGLine[];
25
- };
15
+ setReactiveData4Vue2(graphData: RGGraphData, reactiveOptions: RGOptions, runtimeData: any, initRawPropertyFn: (item: any, propertyName: string, initialValue: any) => void): void;
26
16
  /**
27
17
  * [Used internally by relation-graph] Set reactive data objects
28
18
  * @param graphData
29
19
  * @param reactiveData
30
- */
31
- setReactiveData4Vue3(graphData: RGGraphData, reactiveData: RGGraphReactiveData, runtimeData: any): void;
32
- protected _setOptions(options: RGOptions): void;
33
- protected _setJsonData(jsonData: RGJsonData, resetViewSize?: boolean): void;
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
+ };
34
40
  /**
35
- * Clear all data in RelationGraph, including nodes, lines, element lines, and the root node
41
+ * @inner
42
+ * @param dataStores
43
+ * @param updaters
36
44
  */
37
- clearGraph(): void;
38
- clearFakeLines(): void;
39
- clearElementLines(): void;
45
+ setReactiveData4Svelte(dataStores: ReactiveDataStores, updaters: ReactiveDataUpdaters): void;
40
46
  /**
41
47
  * Generate a unique Node id relative to the current existing nodes
42
48
  * @param idLength The minimum length of the id, default is 5
43
49
  */
44
50
  generateNewNodeId(idLength?: number): string;
45
- /**
46
- * Generate a highly likely unique id, the probability of non-duplication depends on the parameter idLength (the length of the id)
47
- * @param idLength The length of the id, default is 5
48
- */
49
- generateNewUUID(idLength?: number): string;
50
- protected prevAddNodeTimestamp: number;
51
- /**
52
- * Convert JsonNode to RGNode object and add it to the graph
53
- * @param _nodes
54
- * @protected
55
- */
56
- protected loadNodes(_nodes: JsonNode[]): void;
57
- /**
58
- * Convert JsonLine to RGLine object and add it to the graph
59
- * @param _lines
60
- * @protected
61
- */
62
- protected loadLines(_lines: JsonLine[]): void;
63
- private updateLinks;
64
- /**
65
- * Expand tree-structured data into flattened data
66
- * @param orign_nodes Tree-structured data, e.g., [{id:'a',children:[{id:'a-1'},{id:'a-1', children: [{id:'a-1-1'}]}]}]
67
- * @param parentNode Please pass null
68
- * @param nodes_collect All expanded nodes will be stored here
69
- * @param lines_collect All expanded lines will be stored here
70
- */
71
- flatNodeData(orign_nodes: JsonNode[], parentNode: JsonNode | null, nodes_collect: JsonNode[], lines_collect: JsonLine[]): void;
72
- protected loadGraphJsonData(jsonData: RGJsonData): void;
73
- protected getLineArrow(_color: string | undefined, isStartArrow?: boolean, checked?: boolean): string;
74
- /**
75
- * Get all node objects
76
- */
77
- getNodes(): RGNode[];
78
- getShouldRenderNodes(): RGNode[] | RGLineTarget[];
79
- protected calcShouldRenderNodes(): RGNode[];
80
- getShouldRenderLines(): RGLine[];
81
- protected calcShouldRenderLines(): RGLine[];
82
- private mutationObserver4Nodes?;
83
- private mutationObserver4CanvasSlotBehind?;
84
- private mutationObserver4CanvasSlotAbove?;
85
- private canvasConnectTargetsMap;
86
- private reinitMutationObservers;
87
- protected destroyMutationObserver(): void;
88
- private updateConnectTargetsOnCanvas;
89
- /**
90
- * 供外部调用,更新指定节点的连接点位置,不适用于高频次调用
91
- * @param nodeId
92
- */
93
- updateConnectTargetsByNodeId(nodeId: string): void;
94
- private updateConnectTargetsOnNode;
95
- private updateConnectTargetList;
96
- private updateConnectTargetOffset;
97
- private _onConnectTargetMounted;
98
- private nodeConnectTargetsMap;
99
- private getNodeElByNodeId;
100
- private getNodeElByChildrenTarget;
101
- getConnectTargetById(targetId: string): RGConnectTarget4NodePoint | undefined;
102
- registerConnectTarget(connectTargetEl: HTMLDivElement, targetId: string, targetType: string, junctionPoint: RGJunctionPoint, targetData?: {}): RGConnectTarget4NodePoint | undefined;
103
- unregisterConnectTarget(targetId: string): void;
104
- private fakeLineTargetRender;
105
- setFakeLineTargetRender(fakeLineTargetRender: RGFakeLineTargetRender): void;
106
- generateCreatingLineConfig(): RGGenerateLineConfig;
107
- private getFakeLineTargetNode;
108
- private runtimeDATA4ElLineTargets;
109
- getFakeLineTarget(targetType: string, targetId: string, fakeLine: RGFakeLine): RGLineTarget | undefined;
110
- generateLineConfig(line: RGLine): RGGenerateLineConfig | false;
111
- generateFakeLineConfig(fakeLine: RGFakeLine): RGGenerateLineConfig | false;
112
- getShouldRenderFakeLines(): RGFakeLine[];
113
- /**
114
- * Get all relationship objects, note that here Link is not a line.
115
- * Line: The lines refer to the connections between nodes, and the graph will generate lines based on these lines.
116
- * Relationship (Link): The graph will also generate a Link to summarize the associations between nodes based on the lines (there is only one Link between two directly related nodes, and all relationship lines (Line[]) between nodes will be placed in link.relations).
117
- * You can traverse and get all lines like this:
118
- * const allLines: RGLine[] = [];
119
- * for (const link of graphInstance.getLinks()) {
120
- * allLines.push(link.line);
121
- * }
122
- * // The Line object has all the properties of JsonLine, you can change these properties. For example, change the color of all lines to red:
123
- * for (const line of allLines) {
124
- * line.color = 'red';
125
- * }
126
- */
127
- getLinks(): RGLink[];
128
- getRelatedLinesByNode(node: RGNode): RGLine[];
129
- getLinesBetweenNodes(nodes: RGNode[]): RGLine[];
130
- /**
131
- * Convert an RGNode object to a JSON-serializable object
132
- * @param nodeJson: JsonNode
133
- */
134
- transRGNodeToJsonObject(node: RGNode): JsonNode;
135
- /**
136
- * Convert an RGLink object to a JSON-serializable object
137
- * @param lines: JsonLine[]
138
- */
139
- transRGLinkToJsonObject(link: RGLink): JsonLine[];
140
- /**
141
- * Convert an RGLine object to a JSON-serializable object
142
- * @param lineJson: JsonLine
143
- */
144
- transRGLineToJsonObject(line: RGLine): JsonLine;
145
- /**
146
- * Get all nodes and lines data in the current graph.
147
- * @param graphJsonData: RGJsonData
148
- */
149
- getGraphJsonData(): RGJsonData;
150
- /**
151
- * Get the configuration information of the current graph
152
- */
153
- getGraphJsonOptions(): {};
154
- /**
155
- * Print the current graph configuration and JSON data to the console
156
- */
157
- printGraphJsonData(): void;
158
- /**
159
- * Get the node object by node id
160
- * @param nodeId: RGNode
161
- */
162
- getNodeById(nodeId: string): RGNode | undefined;
163
- /**
164
- * Add node
165
- * @param node: JsonNode
166
- */
167
- addNode(node: JsonNode): void;
168
- /**
169
- * Add multiple nodes
170
- * @param nodes: JsonNode[]
171
- */
172
- addNodes(nodes: JsonNode[]): void;
173
- /**
174
- * Get the RGLink object by relationship id
175
- * @param linkId: string
176
- */
177
- getLinkById(linkId: string): RGLink | undefined;
178
- /**
179
- * Get the RGLink object by line id
180
- * @param line: RGLine
181
- */
182
- getLinkByLineId(lineId: string): RGLink | undefined;
183
- /**
184
- * Get the RGLink object by line
185
- * @param line: RGLine
186
- */
187
- getLinkByLine(line: RGLine): RGLink | undefined;
188
- /**
189
- * Get the RGLine object by line id
190
- * @param line: RGLine
191
- */
192
- getLineById(lineId: string): RGLine | undefined;
193
- getLines(): RGLine[];
194
- /**
195
- * Add line
196
- * @param line: JsonLine
197
- */
198
- addLine(line: JsonLine): void;
199
- /**
200
- * Add multiple lines
201
- * @param lines: JsonLine[]
202
- */
203
- addLines(lines: JsonLine[]): void;
204
- /**
205
- * Remove the specified RGLine object
206
- * @param line
207
- */
208
- removeLine(line: RGLine): void;
209
- /**
210
- * Remove the specified RGLine object by line id
211
- * @param lineId
212
- */
213
- removeLineById(lineId: string): void;
214
- /**
215
- * Remove the RGLink object from the graph
216
- * @param link
217
- */
218
- removeLink(link: RGLink): void;
219
- /**
220
- * Delete the Link object by its id, usually used to delete all lines and data relationships between two nodes
221
- * @param linkId
222
- */
223
- removeLinkById(linkId: string): void;
224
- getFakeLines(): RGFakeLine[];
225
- /**
226
- * Add multiple lines
227
- * @param lines: JsonLine[]
228
- */
229
- addFakeLines(lines: RGFakeLine[]): void;
230
- /**
231
- * Remove the specified RGLine object
232
- * @param line
233
- */
234
- removeFakeLine(line: RGFakeLine): void;
235
- getFakeLineById(lineId: string): RGFakeLine | undefined;
236
- /**
237
- * Remove the specified RGLine object by line id
238
- * @param lineId
239
- */
240
- removeFakeLineById(lineId: string): void;
241
- /**
242
- * Add multiple element lines
243
- * @param lines: JsonLine[]
244
- */
245
- addElementLines(lines: JsonLine[]): void;
246
- /**
247
- * 根据元素连线id获取元素连线
248
- * @param elLink: RGLink
249
- */
250
- getElementLineById(elLineId: string): RGFakeLine | undefined;
251
- /**
252
- * Get all element lines
253
- */
254
- getElementLines(): RGLine[];
255
- /**
256
- * Delete element line by element line id
257
- * @param elementLineId: string Element line id
258
- */
259
- removeELementLineById(elementLineId: string): void;
260
- private elLineUpdating;
261
- /**
262
- * Update the position information of all element lines
263
- */
264
- updateElementLines(): void;
265
- private _updateElementLines;
266
- private updateCanvasBoxInfo;
267
- private updateElementTarget;
268
- private _canvasBoxXY;
269
- private _updateElementLinePosition;
270
- getElementPosition(elementId: string): {
271
- x: number;
272
- y: number;
273
- };
274
- /**
275
- * Remove a node from the graph
276
- * @param nodeId
277
- */
278
- removeNodeById(nodeId: string): void;
279
- /**
280
- * Remove a node from the graph
281
- * @param node
282
- */
283
- removeNode(node: RGNode): void;
284
- getNodeRelatedNodes(node: RGNode): RGNode[];
285
- getNodeRelatedNodes4From(node: RGNode): RGNode[];
286
- getNodeRelatedNodes4To(node: RGNode): RGNode[];
287
- private beforeNodeBeRemove;
288
- /**
289
- * Set the coordinates of a node. Generally, you do not need to call this method; you can directly modify the x and y properties of the node.
290
- * @param node
291
- * @param x
292
- * @param y
293
- */
294
- setNodePosition(node: RGNode, x: number, y: number): void;
295
- getGraphOffet(): {
296
- offset_x: number;
297
- offset_y: number;
298
- };
299
- /**
300
- * Display the specified canvas coordinates in the center of the visible area
301
- * @param x
302
- * @param y
303
- */
304
- setCanvasCenter(x: number, y: number): void;
305
- private canvasDragging;
306
- /**
307
- * Set the canvas offset, used when dragging the canvas
308
- * @param x
309
- * @param y
310
- */
311
- setCanvasOffset(x: number, y: number): void;
312
- /**
313
- * Oh my, this seems to be a duplicate method, it seems to have the same effect as the getGroupNodesByNode method
314
- * @param node
315
- * @param groupNodes
316
- */
317
- findGroupNodes(node: RGNode, groupNodes?: RGNode[]): RGNode[];
318
- /**
319
- * Get all nodes that have a direct or indirect relationship with a given node
320
- * @param node
321
- * @param groupNodes Used to collect the found nodes
322
- * @return All nodes that have a direct or indirect relationship with the node, including the node itself
323
- */
324
- getGroupNodesByNode(node: RGNode, groupNodes?: RGNode[]): RGNode[];
325
- getNetworkNodesByNode(node: RGNode, networkNodes?: RGNode[]): RGNode[];
326
- getDescendantNodes(node: RGNode): RGNode[];
327
- /**
328
- * When the size of the parent element of the relation-graph component changes, you can call this method to recalculate the view size
329
- * @param zoomTo100
330
- * @protected
331
- */
332
- resetViewSize(zoomTo100?: boolean): void;
333
- /**
334
- * This is an internal method, generally not needed to be called
335
- */
336
- updateViewBoxInfo(): void;
337
- /**
338
- * Calculate the plane space information occupied by all nodes
339
- * @param nodes Optional, if not specified, it will be calculated based on all nodes
340
- */
341
- protected getStuffSize(nodes?: (RGNode | RGRectTarget)[]): {
342
- width: number;
343
- height: number;
344
- minX: number;
345
- minY: number;
346
- maxX: number;
347
- maxY: number;
348
- };
349
- getNodesViewInfo(nodes?: (RGNode | RGRectTarget)[]): {
350
- width: number;
351
- height: number;
352
- minX: number;
353
- minY: number;
354
- maxX: number;
355
- maxY: number;
356
- };
357
- /**
358
- * Get the center coordinates of the plane space occupied by the node collection
359
- * @param nodes Optional, if not specified, it will be calculated based on all nodes
360
- */
361
- getNodesCenter(nodes?: (RGNode | RGRectTarget)[]): {
362
- x: number;
363
- y: number;
364
- };
365
- /**
366
- * Print the current graph configuration information to the console
367
- */
368
- printOptions(): void;
369
- /**
370
- * Print all data of the current graph to the console
371
- */
372
- printData(): void;
373
- /**
374
- * Lock the graph component screen and display a piece of text
375
- * @param graphLoadingText The text to display
376
- */
377
- loading(graphLoadingText?: string): void;
378
- /**
379
- * Clear the lock on the graph component screen
380
- */
381
- clearLoading(): void;
382
- /**
383
- * Recalculate all visible nodes
384
- * @param force
385
- */
386
- updateShouldRenderGraphData(force?: boolean): void;
387
- protected _updateShouldRenderGraphData(): void;
388
- updateNodesVisibleProperty(): void;
389
- setCanvasMoveMode(newValue: boolean): void;
390
- defaultLineConnectEndHandler(from: RGNode | RGLineTarget, to: RGNode | RGLineTarget | RGPosition, newLine?: JsonLine): void;
391
- /**
392
- * 在线条的起点或者终点发生变化后,重新修正 isReverse,因为在开始拖动线条端点时,有可能会修改这个属性。这一步完成后才会触发 onLineBeCreated事件,在onLineBeCreated事件中可以无需考虑 isReverse属性,直接添加线条
393
- * @param from
394
- * @param to
395
- * @param newLine
396
- */
397
- defaultLineVertexBeChangedHandler(from: RGNode, to: RGNode | RGPosition, newLine?: JsonLine): void;
398
51
  }
@@ -0,0 +1,77 @@
1
+ import { RGFakeLine, RGLine } 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): import('../../types').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): import('../../types').RGLink | undefined;
31
+ /**
32
+ * Get link by line
33
+ * @param line
34
+ * @return RGLink | undefined
35
+ */
36
+ getLinkByLine(line: RGLine): import('../../types').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(): import('../../types').RGNode[];
67
+ /**
68
+ * Get all links
69
+ * @return RGLink[]
70
+ */
71
+ getLinks(): import('../../types').RGLink[];
72
+ /**
73
+ * Get all connect targets
74
+ * @return RGLineTarget[]
75
+ */
76
+ getConnectTargets(): import('../../types').RGConnectTarget4NodePoint[];
77
+ }