@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,72 @@
1
+ import { RGNode, RGRectTarget } from '../../types';
2
+ import { RelationGraphWith5Zoom } from './RelationGraphWith5Zoom';
3
+ /**
4
+ * Methods related to effects in the relation-graph component
5
+ */
6
+ export declare class RelationGraphWith6Effect extends RelationGraphWith5Zoom {
7
+ constructor();
8
+ /**
9
+ * <RelationGraph/> Automatically adjust the height of the canvas to fit the content, while maintaining the width of the canvas unchanged.
10
+ * - By default, the height of the <RelationGraph/> component is the height of the parent element. Sometimes we want to automatically adjust the height according to the amount of content to fit the content. This method can achieve this function.
11
+ * - Note: This method will modify the height attribute of the canvas. Please ensure that the parent element allows the height of the child element to change, otherwise it may not achieve the expected effect.
12
+ * - Note: This method is suitable for scenarios where there is less content and you want the canvas height to adapt to the content. If there is more content, it is recommended to use the zoomToFit method to ensure that the content is fully displayed.
13
+ * @param padding Padding around the content, default is 20px
14
+ *
15
+ */
16
+ fitContentHeight(padding?: number): void;
17
+ /**
18
+ * Move the specified nodes to the center of the visible area
19
+ * @param nodes Optional, defaults to all nodes in the graph
20
+ * @inner
21
+ * @protected
22
+ */
23
+ protected _moveToCenter(nodes?: (RGNode | RGRectTarget)[]): void;
24
+ /**
25
+ * Move the specified coordinates on the canvas to the center of the visible area
26
+ * @param x X coordinate on the canvas
27
+ * @param y Y coordinate on the canvas
28
+ */
29
+ setCanvasCenter(x: number, y: number): void;
30
+ /**
31
+ * Zoom to fit the appropriate size, which means making the specified nodes visible in the view and occupying the view as much as possible.
32
+ * @param nodes Optional, defaults to all nodes in the graph
33
+ */
34
+ zoomToFit(nodes?: (RGNode | RGRectTarget)[]): void;
35
+ zoomToFitWithAnimation(nodes?: (RGNode | RGRectTarget)[]): Promise<void>;
36
+ moveToCenterWithAnimation(nodes?: (RGNode | RGRectTarget)[]): Promise<void>;
37
+ /**
38
+ * Enable node position animation
39
+ * - After enabling, when the node position changes, there will be a smooth transition animation effect.
40
+ */
41
+ enableNodeXYAnimation(): void;
42
+ /**
43
+ * Disable node position animation
44
+ * - After disabling, when the node position changes, it will directly jump to the new position without animation.
45
+ */
46
+ disableNodeXYAnimation(): void;
47
+ /**
48
+ * Enable canvas transformation animation
49
+ * - After enabling, when the canvas is panned or zoomed, there will be a smooth transition animation effect.
50
+ */
51
+ enableCanvasAnimation(): void;
52
+ /**
53
+ * Disable canvas transformation animation
54
+ * - After disabling, when the canvas is panned or zoomed, it will directly jump to the new position or scale without animation.
55
+ */
56
+ disableCanvasAnimation(): void;
57
+ /**
58
+ * Focus on the specified node by its ID
59
+ * @param nodeId The ID of the node to focus on
60
+ */
61
+ focusNodeById(nodeId: string): void;
62
+ /**
63
+ * @deprecated
64
+ */
65
+ focusRootNode(): void;
66
+ /**
67
+ * @inner
68
+ * @param thisNode
69
+ * @private
70
+ */
71
+ private focusNode;
72
+ }
@@ -0,0 +1,85 @@
1
+ import { RGLayout, RGLayoutOptions, RGNode } from '../../types';
2
+ import { RelationGraphWith6Effect } from './RelationGraphWith6Effect';
3
+ /**
4
+ * Methods related to layout in the relation-graph component
5
+ */
6
+ export declare class RelationGraphWith6Layout extends RelationGraphWith6Effect {
7
+ constructor();
8
+ /**
9
+ * Assign positions to the nodes in the current graph based on the layout configuration set in the options
10
+ * - By default, the first node in the graph is used as the root node for layout. You can also specify a custom root node by passing a node object or node id as a parameter.
11
+ * - If nodes were added to the graph shortly before calling this method, it will wait for a short time to ensure that the addition of nodes is completed before performing the layout.
12
+ * @param customRootNode Optional, specify a custom root node for layout, can be a node object or node id
13
+ * @return Promise<void>
14
+ */
15
+ doLayout(customRootNode?: RGNode | string): Promise<void>;
16
+ private _layoutTimer;
17
+ private _layoutPromise;
18
+ private _layoutResolve;
19
+ /**
20
+ * @inner
21
+ * @private
22
+ */
23
+ private _doLayout;
24
+ /**
25
+ * @inner
26
+ * @protected
27
+ * @param doLayout
28
+ */
29
+ refresh(doLayout?: boolean): Promise<void>;
30
+ /**
31
+ * @inner
32
+ * @private
33
+ */
34
+ private placeOtherNodes;
35
+ /**
36
+ * @inner
37
+ * @private
38
+ */
39
+ private placeSingleNodes;
40
+ /**
41
+ * @inner
42
+ * @private
43
+ */
44
+ private sortGroups;
45
+ /**
46
+ * @inner
47
+ * @private
48
+ */
49
+ private placeNextNetwork;
50
+ /**
51
+ * If the current layout is force-directed, you can call this method to start or stop the real-time force-directed calculation
52
+ * - Note: The center layout inherits the force layout and also supports auto layout functionality.
53
+ */
54
+ toggleAutoLayout(): void;
55
+ layoutor: RGLayout | undefined;
56
+ /**
57
+ * If the current layout is force, you can call this method to start the force-directed calculation
58
+ * - Note: The center layout inherits the force layout and also supports auto layout functionality.
59
+ */
60
+ startAutoLayout(): void;
61
+ /**
62
+ * If the current layout is force, you can call this method to stop the force-directed calculation
63
+ */
64
+ stopAutoLayout(): void;
65
+ /**
66
+ * Create a layout instance. After creating the layout instance, you can use the placeNodes method of the layout instance to layout nodes.
67
+ * - Through this method, you can create multiple layout instances with different configurations to layout different nodes of the same graph in different ways, forming a composite layout effect.
68
+ * - Example:
69
+ * ```ts
70
+ * const layoutor = graphInstance.createLayout({
71
+ * layoutName: 'tree',
72
+ * from: 'left', // left, right, top, bottom
73
+ * treeNodeGapH: 200, // Horizontal spacing between nodes
74
+ * treeNodeGapV: 50, // Vertical spacing between nodes
75
+ * });
76
+ * layoutor.placeNodes(nodes, rootNode);
77
+ * ```
78
+ * @param layoutOptions Layout configuration items, type: RGLayoutOptions. When isMainLayout is true, the configuration items here will override the layout configuration items in the overall configuration items of the graph.
79
+ * @param isMainLayout Whether it is the main layout instance. The main layout instance will affect the layout-related configuration items of the graph, and can control the auto layout function through the startAutoLayout and stopAutoLayout methods of the graph. Default value: false
80
+ * @return Layout instance A layout instance with a placeNodes method
81
+ *
82
+ */
83
+ createLayout<Layout extends RGLayout>(layoutOptions: RGLayoutOptions, isMainLayout?: boolean): Layout;
84
+ setLayoutor(layoutor: RGLayout, isMainLayout: boolean, supportAutoLayout?: boolean): void;
85
+ }
@@ -0,0 +1,270 @@
1
+ import { CreatingLinePlotOptions, CreatingNodePlotOptions, RGLine, RGLineConnectEventHandler, RGLineTarget, RGNode, RGPosition, RGUserEvent, RGCoordinate, JsonLine } from '../../types';
2
+ import { RelationGraphWith6Layout } from './RelationGraphWith6Layout';
3
+ /**
4
+ * The relation-graph component UI and graphInstance event bus handle user interaction events.
5
+ * - Most of the events handled here are user interaction events, while some other events are handled by the following classes:
6
+ * - Editor-related events are handled in RelationGraphWith91Editing
7
+ * - MiniView-related events are handled in RelationGraphWith92MiniView
8
+ *
9
+ */
10
+ export declare class RelationGraphWith7Event extends RelationGraphWith6Layout {
11
+ constructor();
12
+ private _prevClickNodeTime;
13
+ /**
14
+ * Triggered when the user clicks on a node
15
+ * @param node The clicked node object
16
+ * @param e MouseDown or TouchStart event
17
+ *
18
+ */
19
+ onNodeClick(node: RGNode, e: RGUserEvent): void;
20
+ protected _nodeXYMappingBeforeDrag: {
21
+ [nodeId: string]: {
22
+ x: number;
23
+ y: number;
24
+ };
25
+ };
26
+ /**
27
+ * Triggered when the user starts dragging a node
28
+ * - When the user starts dragging but does not move the node, it is considered as clicking the node, and the onNodeClick event will be triggered instead.
29
+ * @param willMoveNode The node object that will be moved
30
+ * @param e MouseDown or TouchStart event
31
+ */
32
+ onNodeDragStart(willMoveNode: RGNode, e: RGUserEvent): void;
33
+ /**
34
+ * @inner
35
+ * @protected
36
+ */
37
+ protected canvasAutoMoving: (draggingEventXy: RGCoordinate) => boolean;
38
+ private _canvasMovingTimer;
39
+ /**
40
+ * @inner
41
+ * @protected
42
+ */
43
+ private _onNodeDragEnd;
44
+ /**
45
+ * Triggered when the user clicks on a line
46
+ * - Triggered when the user clicks on a line path or line text
47
+ * @param line The clicked line object
48
+ * @param e MouseDown or TouchStart event
49
+ */
50
+ onLineClick(line: RGLine, e: RGUserEvent): void;
51
+ /**
52
+ * Triggered when the node's expand/collapse button is clicked.
53
+ * - This method will expand or collapse all descendant nodes of the node.
54
+ * - If the node is collapsed, it will be expanded; if it is expanded, it will be collapsed.
55
+ * @param node The node object to be expanded or collapsed
56
+ * @param e
57
+ */
58
+ expandOrCollapseNode(node: RGNode, e: RGUserEvent): void;
59
+ /**
60
+ * Expand the specified node
61
+ * - This method will expand the specified node and make its child nodes visible.
62
+ * @param node The node object to be expanded
63
+ * @param e
64
+ */
65
+ expandNode(node: RGNode, e?: RGUserEvent): void;
66
+ /**
67
+ * Collapse the specified node
68
+ * - This method will collapse the specified node and hide its child nodes.
69
+ * @param node The node object to be collapsed
70
+ * @param e
71
+ */
72
+ collapseNode(node: RGNode, e?: RGUserEvent): void;
73
+ private _relayoutTaskTimer;
74
+ /**
75
+ * After the node is expanded or collapsed, the visibility of the related nodes needs to be recalculated, and re-layout may be required.
76
+ * @inner
77
+ * @private
78
+ */
79
+ private _effectWhenExpandedOrCollapsed;
80
+ /**
81
+ * @inner
82
+ * @private
83
+ */
84
+ private onCanvasDragEnd;
85
+ /**
86
+ * User clicks on the canvas
87
+ * @param e
88
+ */
89
+ onCanvasClick(e: RGUserEvent): void;
90
+ /**
91
+ * @inner
92
+ * @private
93
+ */
94
+ private getNodeAtEvent;
95
+ /**
96
+ * @inner
97
+ * @private
98
+ */
99
+ private onCanvasSelectionEnd;
100
+ /**
101
+ * Start the "creating node" interaction state
102
+ * - You can set the callback function onCreateNode in the setting, and add the node to the graph data through graphInstance.addNodes([newNodeJson]); in the callback function.
103
+ * - You can also set templateMove in the setting to get the move event of the node during placement, so as to achieve complex logic (such as highlighting an existing node when moving to it, and recording the id of this highlighted node, so that in the onCreateNode callback function, you can directly create a new node associated with the highlighted node)
104
+ * @param e
105
+ * @param setting Settings used to set the template information of the node being created, the callback function when the creation is completed, etc.
106
+ */
107
+ startCreatingNodePlot(e: RGUserEvent, setting: CreatingNodePlotOptions): void;
108
+ /**
109
+ * Start the "creating line" interaction state
110
+ * - When the line creation is completed, you need to call graphInstance.addLines([newLineJson]); in the onCreateLine callback function (or through the onLineBeCreated event of the <RelationGraph> component) to add the new line to the graph data.
111
+ * - You can also set fromNode in the setting to specify the starting node of the line.
112
+ * @param e
113
+ * @param setting Settings used to set the template information of the line being created, the callback function when the creation is completed, etc.
114
+ *
115
+ */
116
+ startCreatingLinePlot(e: RGUserEvent, setting: CreatingLinePlotOptions): void;
117
+ private _onMovingWhenCreatingLine;
118
+ /**
119
+ * Stop the "creating line" interaction state
120
+ * - This method is generally called by relation-graph itself, and users do not need to call this method manually. Unless the user needs to complete complex special interaction logic.
121
+ *
122
+ */
123
+ stopCreatingLinePlot(): void;
124
+ /**
125
+ * @inner
126
+ * @private
127
+ */
128
+ private onMovingWhenCreatingLinePlot;
129
+ /**
130
+ * @inner
131
+ * @private
132
+ */
133
+ private onCanvasClickWhenCreatingLinePlot;
134
+ _step1EventTime: number;
135
+ /**
136
+ * @inner
137
+ * @private
138
+ */
139
+ private onNodeClickWhenCreatingLinePlot;
140
+ _onCreateLineCallback: RGLineConnectEventHandler | undefined;
141
+ /**
142
+ * Triggered when the creation of a line is ready. You can modify the line data in this event, or return true to prevent the line from being created (for example, if the user selects a node that is not allowed to be connected and requires the user to select another node).
143
+ * - This method will ultimately trigger the `onLineBeCreated` event of the <RelationGraph /> component. In this event, users can obtain the line data and use the graphInstance.addLines([newLineJson]) method to complete the data change and add the line to the graph.
144
+ * @param from Current line start node, may be null
145
+ * @param to Current line end node, may be null or RGPosition, Position type means the user did not select a node to connect to, but clicked on the canvas to create a line to that position.
146
+ * @returns Return true to prevent the line from being created.
147
+ * @protected
148
+ */
149
+ protected onReadyToCreateLine(from: RGNode, to: RGNode | RGPosition): false | RGCoordinate | undefined;
150
+ /**
151
+ * User right-click context menu event
152
+ * - Finally, you can get this event through the onContextmenu event, and you can get the position where the user right-clicked and the type of object clicked (canvas | line | node) and the object through this event.
153
+ * @param e
154
+ */
155
+ onContextmenu(e: RGUserEvent): void;
156
+ /**
157
+ * Toggle fullscreen mode
158
+ - If newValue is true, enter fullscreen mode
159
+ - If newValue is false, exit fullscreen mode
160
+ - If newValue is not provided, toggle fullscreen mode
161
+ * @param newValue
162
+ */
163
+ fullscreen(newValue?: boolean): Promise<void>;
164
+ /**
165
+ * User scroll mouse wheel event
166
+ * - Supports touchpad and mouse wheel
167
+ * - This event will determine whether to zoom the canvas or scroll the canvas based on whether the user presses the Ctrl/Cmd key and options.wheelEventAction
168
+ * - When options.disableWheelEvent is true, there will be no response
169
+ * @param e
170
+ */
171
+ onMouseWheel(e: WheelEvent): true | undefined;
172
+ /**
173
+ * @inner
174
+ * @private
175
+ */
176
+ private _applyWheelEvent;
177
+ private _mouseWheelTimer;
178
+ private _mouseWheelEventPrevApplyTime;
179
+ private _mouseWheelForce;
180
+ /**
181
+ * @inner
182
+ * @private
183
+ */
184
+ private _onMouseWheel;
185
+ /**
186
+ * Scroll the canvas
187
+ * @param buffX - The amount to scroll
188
+ * @param buffY - The amount to scroll
189
+ */
190
+ scrollView(buffX: number, buffY: number): void;
191
+ /**
192
+ * @inner
193
+ * @private
194
+ */
195
+ private onLineDragStart;
196
+ onLineDragEnd(x_buff: number, y_buff: number, e: RGUserEvent): void;
197
+ /**
198
+ * User Start Drag Canvas
199
+ * - This method will determine whether to create a selection area or move the canvas based on whether the user is holding down the Shift key or the configuration item options.dragEventAction.
200
+ * - When options.dragEventAction is set to 'none', clicking and dragging on the canvas will only trigger a click event and will not create a selection area or move the canvas.
201
+ * @param e
202
+ */
203
+ onCanvasDragStart(e: RGUserEvent): void;
204
+ /**
205
+ * User Start Move Canvas
206
+ *
207
+ * @param e
208
+ * @param forceStartMove
209
+ */
210
+ startMoveCanvas(e: RGUserEvent, forceStartMove?: boolean): void;
211
+ /**
212
+ * @inner
213
+ * @private
214
+ */
215
+ protected onCanvasDragging(newX: number, newY: number, buffX: number, buffY: number): void;
216
+ /**
217
+ * @inner
218
+ * @param e
219
+ */
220
+ private onCanvasDragStop;
221
+ /**
222
+ * @inner
223
+ * @param e
224
+ */
225
+ private startCreateSelection;
226
+ private _fullscreenchangeHandler;
227
+ /**
228
+ * Monitor fullscreen changes
229
+ * @inner
230
+ * @private
231
+ */
232
+ protected addFullscreenListener(): void;
233
+ /**
234
+ * Remove fullscreen change monitoring
235
+ * @inner
236
+ * @private
237
+ */
238
+ protected removeFullscreenListener(): void;
239
+ /**
240
+ * Default line connect end handler for <RGConnectTarget /> component
241
+ * - This method does not make any data changes. Users need to obtain the line information through the onLineConnectEnd event of the <RGConnectTarget /> component, and use the graphInstance.addLines([newLineJson]) method to complete the data change.
242
+ *
243
+ * @inner
244
+ * @private
245
+ */
246
+ defaultLineConnectEndHandler(from: RGNode | RGLineTarget | RGPosition, to: RGNode | RGLineTarget | RGPosition, newLine?: JsonLine): void;
247
+ /**
248
+ * Default line vertex change handler
249
+ * - This method does not make any data changes. Users need to obtain the line information through the onLineBeCreated event when the line is created or the line vertex is changed, and use the graphInstance.addLines([newLineJson]) method to complete the data change.
250
+ * - Why does the line vertex change also need to be added through addLines to add data?
251
+ * - Because the implementation of line vertex change is to delete the original line data first, and then add a new line data to achieve it. However, the line data obtained through the onLineBeCreated event will be a line data with an id and all information identical to the original line.
252
+ *
253
+ * @inner
254
+ * @param from
255
+ * @param to
256
+ * @param newLine
257
+ */
258
+ defaultLineVertexBeChangedHandler(from: RGNode | RGLineTarget | RGPosition, to: RGNode | RGLineTarget | RGPosition, newLine?: JsonLine): void;
259
+ /**
260
+ * Sleep for a specified amount of time
261
+ * @param time - The time to sleep in milliseconds
262
+ */
263
+ sleep(time: number): Promise<void>;
264
+ /**
265
+ * This method is called by the force layout engine to update the view after each iteration of the force layout calculation is completed.
266
+ * @inner
267
+ * @private
268
+ */
269
+ forceLayoutTickCallback(): void;
270
+ }
@@ -0,0 +1,210 @@
1
+ import { RelationGraphWith9EasyView } from './RelationGraphWith9EasyView';
2
+ import { JsonLineLike, RGCtrlPointForLine44, RGJunctionPoint, RGLine, RGLineConnectEventHandler, RGLineVertexBeDroppedEventHandler, RGNode, RGResizeHandlePosition, RGUserEvent } from '../../types';
3
+ /**
4
+ * Capability extension class related to the editor of the relation-graph component
5
+ */
6
+ export declare class RelationGraphWith91Editing extends RelationGraphWith9EasyView {
7
+ constructor();
8
+ /**
9
+ * Set the nodes being edited
10
+ * - Set to null or an empty array to cancel all nodes being edited
11
+ * - After setting, the position and size of the editing controller (<RGEditingNodeController>) will be automatically updated. If there are no editing nodes, the controller will be hidden.
12
+ * @param nodes
13
+ *
14
+ */
15
+ setEditingNodes(nodes: RGNode[] | null): void;
16
+ /**
17
+ * Add a node to the editing nodes
18
+ * @param node
19
+ */
20
+ addEditingNode(node: RGNode): void;
21
+ /**
22
+ * Remove a node from the editing nodes
23
+ * @param node
24
+ */
25
+ removeEditingNode(node: RGNode): void;
26
+ /**
27
+ * Toggle the editing state of a node
28
+ * @param node
29
+ */
30
+ toggleEditingNode(node: RGNode): void;
31
+ /**
32
+ * Update the view of the editing controller
33
+ * - This method is automatically called when the editing nodes are set or changed.
34
+ */
35
+ updateEditingControllerView(): void;
36
+ /**
37
+ * @inner
38
+ * @protected
39
+ */
40
+ protected _updateEditingControllerView(): void;
41
+ protected _onResizing: any;
42
+ protected _onResizeEnd: any;
43
+ protected _startPoint: {
44
+ x: number;
45
+ y: number;
46
+ };
47
+ protected _startEventCanvasXy: {
48
+ x: number;
49
+ y: number;
50
+ };
51
+ protected _startSizeCanvasXy: {
52
+ x: number;
53
+ y: number;
54
+ };
55
+ protected _startSize: {
56
+ x: number;
57
+ y: number;
58
+ width: number;
59
+ height: number;
60
+ widthOnCanvas: number;
61
+ heightOnCanvas: number;
62
+ };
63
+ protected _resizeType: RGResizeHandlePosition;
64
+ protected _nodeStartSizeMap: WeakMap<RGNode, any>;
65
+ protected resizeMinLimit: {
66
+ width: number;
67
+ height: number;
68
+ };
69
+ /**
70
+ * User starts resizing the editing controller
71
+ * @param type User handles the resize handle position: "t" | "r" | "b" | "l" | "tl" | "tr" | "bl" | "br"
72
+ * @param e
73
+ */
74
+ onResizeStart(type: RGResizeHandlePosition, e: RGUserEvent): void;
75
+ private _resizeDraggingTimer;
76
+ private _resizeDraggingEvent;
77
+ private _resizeDraggingStoped;
78
+ /**
79
+ * @inner
80
+ * @private
81
+ */
82
+ private onResizing;
83
+ /**
84
+ * @inner
85
+ * @private
86
+ */
87
+ private onResizingRequest;
88
+ /**
89
+ * @inner
90
+ * @private
91
+ */
92
+ private _applyResizeScale;
93
+ /**
94
+ * @inner
95
+ * @private
96
+ */
97
+ private onResizeEnd;
98
+ /**
99
+ * When dragging a node, update the position of the dragged node and other nodes being edited
100
+ * - This method is called internally by relation-graph and does not need to be called by the user
101
+ * @inner
102
+ * @private
103
+ */
104
+ protected draggingSelectedNodes(draggedNode: RGNode, newX: number, newY: number, buff_x: number, buff_y: number): void;
105
+ /**
106
+ * @inner
107
+ * @private
108
+ */
109
+ protected _updateEditingConnectControllerView(): void;
110
+ /**
111
+ * Set the line being edited
112
+ * - When set to null, the line being edited is canceled
113
+ * - When the line being edited is not null, the <RGEditingLineController> controller will automatically display and update its position
114
+ * @param line The line being edited
115
+ */
116
+ setEditingLine(line: RGLine | null): void;
117
+ /**
118
+ * @inner
119
+ * @private
120
+ */
121
+ private updateReferenceLineView;
122
+ /**
123
+ * Hide the editing line view
124
+ * - Generally used in this scenario: when editing a line, the line editing controller may block the display of the line. When modifying the appearance of the line (such as arrows, etc.), this method can be called to hide the line editing controller view, allowing users to preview the final effect of the line in time.
125
+ */
126
+ hideEditingLineView(): void;
127
+ /**
128
+ * Update the view of the editing line controller
129
+ * - This method is automatically called when the editing line is set or changed.
130
+ */
131
+ updateEditingLineView(): void;
132
+ /**
133
+ * @inner
134
+ * @private
135
+ */
136
+ protected _updateEditingLineView(): void;
137
+ /**
138
+ * Start dragging the start or end point of the line to reselect the start or end point of the line
139
+ * - During the process of changing the start or end point of the line, the line will be removed. When reconnecting, you can get the new line information (the new line information id and other attributes will be retained) through onLineConnectEventHandler(or through the onLineBeCreated event of the <RelationGraph> component). You need to complete the data change through graphInstance.addLines([newJsonLine]) to finally complete the modification of the line endpoint.
140
+ * @param type Choose to drag the start point or end point of the line, 'start' means dragging the start point, 'end' means dragging the end point
141
+ * @param $event
142
+ * @param onLineConnectEventHandler Callback function after line connection is completed, you can get the new line information through the parameters, you need to complete the data change through graphInstance.addLines([newJsonLine])
143
+ *
144
+ */
145
+ startMoveLineVertex(type: 'start' | 'end', $event: RGUserEvent, onLineConnectEventHandler: RGLineConnectEventHandler): void;
146
+ private _startCreateLineFromNodeTime;
147
+ /**
148
+ * Start creating a line from a specified starting point
149
+ * - The <RGConnectSource> and <RGConnectTarget> components will use this method, and you can call this method yourself to create a line from a specified node
150
+ * - It is worth noting that: fromNode can be empty. If it is empty, it will try to automatically find the starting point. The logic is:
151
+ * - 1. Determine whether lineTemplate.from is empty. If it is not empty, use the node corresponding to lineTemplate.from as the starting point
152
+ * - 2. Find the only node from the currently edited nodes as the starting node.
153
+ * - 3. If the starting node still cannot be found, an exception is thrown
154
+ * - When the user completes the connection of the line, the onLineConnectEventHandler callback will be triggered (or through the onLineBeCreated event of the <RelationGraph> component), and you need to add the line data in the callback, through
155
+ *
156
+ * @param fromNode
157
+ * @param useLineTemplate
158
+ * @param $event
159
+ * @param onLineConnectEventHandler
160
+ */
161
+ startCreateLineFromNode(fromNode: RGNode | null | undefined, useLineTemplate: JsonLineLike, $event: RGUserEvent, onLineConnectEventHandler: RGLineConnectEventHandler): void;
162
+ /**
163
+ * When the start or end point of the line is connected to the junction point of a node, this method is called
164
+ * - This method is called internally by relation-graph and does not need to be called by the user
165
+ * @param type
166
+ * @param $event
167
+ * @param junctionPointOffset
168
+ * @param onLineVertexBeDropped
169
+ * @inner
170
+ */
171
+ onLineVertexBeDropped(type: RGJunctionPoint, $event: RGUserEvent, junctionPointOffset?: {
172
+ x: number;
173
+ y: number;
174
+ }, onLineVertexBeDropped?: RGLineVertexBeDroppedEventHandler): void;
175
+ /**
176
+ * Start dragging the line text position
177
+ * - This method is called internally by relation-graph and does not need to be called by the user
178
+ * @param $event
179
+ * @param moveEndCallback
180
+ * @inner
181
+ */
182
+ startMoveLineText($event: RGUserEvent, moveEndCallback: () => void): void;
183
+ /**
184
+ * Start dragging the line control point (applicable to lines with curved line types)
185
+ * - This method is called internally by relation-graph and does not need to be called by the user
186
+ * @param ctrlPointIndex
187
+ * @param $event
188
+ * @param onLinePathChanged
189
+ * @inner
190
+ */
191
+ startMoveLine6CtrlPoint(ctrlPointIndex: number, $event: RGUserEvent, onLinePathChanged: (line: RGLine) => void): void;
192
+ /**
193
+ * Start dragging the line control point (applicable to lines with line type RGLineShape.StandardOrthogonal)
194
+ * - This method is called internally by relation-graph and does not need to be called by the user
195
+ * @param split
196
+ * @param $event
197
+ * @param onLinePathChanged
198
+ */
199
+ startMoveLine44CtrlPoint(split: RGCtrlPointForLine44, $event: RGUserEvent, onLinePathChanged: (line: RGLine) => void): void;
200
+ /**
201
+ * When the start or end point of the line is dropped onto the connection point on the node connection controller (<RGEditingConnectController />), this method is called
202
+ * - This method is called internally by relation-graph and does not need to be called by the user
203
+ * @param junctionPoint
204
+ * @param $event
205
+ * @param connectBoxDom
206
+ * @param lineVertexBeDroppedEventHandler
207
+ * @inner
208
+ */
209
+ onLineVertexBeDroppedOnConnectController(junctionPoint: RGJunctionPoint, $event: RGUserEvent, connectBoxDom?: HTMLElement, lineVertexBeDroppedEventHandler?: RGLineVertexBeDroppedEventHandler): void;
210
+ }