@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,259 @@
1
+ import { JsonLine, JsonNode, RGFakeLine, RGJsonData, RGLine, RGLink, RGNode } from '../../types';
2
+ import { RelationGraphWith2Data2Analysis } from './RelationGraphWith2Data2Analysis';
3
+ /**
4
+ * API class related to data (nodes, lines, etc.) updates in the relation-graph component, providing operations such as adding, deleting, and modifying graph data
5
+ */
6
+ export declare class RelationGraphWith2Data3Update extends RelationGraphWith2Data2Analysis {
7
+ constructor();
8
+ /**
9
+ * Remove a line
10
+ * @param line
11
+ */
12
+ removeLine(line: RGLine): void;
13
+ /**
14
+ * Remove multiple lines
15
+ * @param lines
16
+ */
17
+ removeLines(lines: RGLine[]): void;
18
+ /**
19
+ * Remove line by lineId
20
+ * @param lineId
21
+ */
22
+ removeLineById(lineId: string): void;
23
+ /**
24
+ * Remove multiple lines by lineIds
25
+ * @param lineIds
26
+ */
27
+ removeLineByIds(lineIds: string[]): void;
28
+ /**
29
+ * Remove a fake line
30
+ * @param line
31
+ */
32
+ removeFakeLine(line: RGFakeLine): void;
33
+ /**
34
+ * Remove a fake line by lineId
35
+ * @param lineId
36
+ */
37
+ removeFakeLineById(lineId: string): void;
38
+ /**
39
+ * Remove a link
40
+ * @param link
41
+ */
42
+ removeLink(link: RGLink): void;
43
+ /**
44
+ * Remove a link by lineId
45
+ * @param lineId
46
+ */
47
+ removeLinkByLineId(lineId: string): void;
48
+ /**
49
+ * Remove node by nodeId
50
+ * @param nodeId
51
+ */
52
+ removeNodeById(nodeId: string): void;
53
+ /**
54
+ * Remove multiple nodes by nodeIds
55
+ * @param nodeIds
56
+ */
57
+ removeNodesByIds(nodeIds: string[]): void;
58
+ /**
59
+ * Remove multiple nodes
60
+ * @param nodes
61
+ */
62
+ removeNodes(nodes: RGNode[]): void;
63
+ /**
64
+ * Remove a node
65
+ * @param node
66
+ */
67
+ removeNode(node: RGNode): void;
68
+ /**
69
+ * @deprecated Use removeFakeLineById instead of removeELementLineById, this method is compatible with older api versions.
70
+ * @param elementLineId
71
+ */
72
+ removeELementLineById(elementLineId: string): void;
73
+ /**
74
+ * Add a node
75
+ * @param node
76
+ */
77
+ addNode(node: JsonNode): void;
78
+ /**
79
+ * Add multiple nodes
80
+ * @param nodes
81
+ */
82
+ addNodes(nodes: JsonNode[]): void;
83
+ /**
84
+ * Add a line
85
+ * @param line
86
+ */
87
+ addLine(line: JsonLine): void;
88
+ /**
89
+ * Add multiple lines
90
+ * @param lines
91
+ */
92
+ addLines(lines: JsonLine[]): void;
93
+ /**
94
+ * @inner
95
+ * @protected
96
+ */
97
+ protected _addFakeLines(lines: JsonLine[]): void;
98
+ /**
99
+ * Add multiple fake lines
100
+ * @param lines
101
+ */
102
+ addFakeLines(lines: JsonLine[]): void;
103
+ private _elLineUpdateTimer;
104
+ /**
105
+ * Update the position information of all element lines
106
+ * - Generally, there is no need to call this method, relation-graph will automatically call this method to update the position information of element lines at appropriate times. This method is only for special scenarios.
107
+ */
108
+ updateElementLines(): void;
109
+ /**
110
+ * @inner
111
+ * @private
112
+ */
113
+ private _updateElementLines;
114
+ /**
115
+ * @inner
116
+ * @private
117
+ */
118
+ private _updateCanvasBoxInfo;
119
+ /**
120
+ * @inner
121
+ * @private
122
+ */
123
+ private updateElementTarget;
124
+ private _canvasCurrentInfo;
125
+ /**
126
+ * @inner
127
+ * @private
128
+ */
129
+ private _getElementTargetPosition;
130
+ /**
131
+ * Add multiple element lines
132
+ * @deprecated Please use addFakeLines instead of addElementLines, this method is compatible with older api versions.
133
+ * @param lines
134
+ */
135
+ addElementLines(lines: JsonLine[]): void;
136
+ private _nodeResizeEffectTimer;
137
+ /**
138
+ * @inner
139
+ * @private
140
+ */
141
+ protected updateNodeOffsetSize(nodeId: string, width: number, height: number): void;
142
+ /**
143
+ * Clear all fake lines
144
+ */
145
+ clearFakeLines(): void;
146
+ /**
147
+ * Clear all element lines
148
+ * @deprecated Please use clearFakeLines instead of clearElementLines, this method is compatible with older api versions.
149
+ */
150
+ clearElementLines(): void;
151
+ protected prevAddNodeTimestamp: number;
152
+ /**
153
+ * Convert JsonNode to RGNode object and add it to the graph
154
+ * @inner
155
+ * @param _nodes
156
+ * @protected
157
+ */
158
+ protected _addNodes(_nodes: JsonNode[]): void;
159
+ /**
160
+ * Convert JsonLine to RGLine object and add it to the graph
161
+ * @inner
162
+ * @param _lines
163
+ * @protected
164
+ */
165
+ protected _addLines(_lines: JsonLine[]): void;
166
+ /**
167
+ * Modify node property values, you only need to pass in the properties you want to modify, and the properties that are not passed in will remain unchanged
168
+ * @param nodeOrId RGNode object or nodeId
169
+ * @param nodeProperties
170
+ */
171
+ updateNode(nodeOrId: RGNode | string, nodeProperties: Partial<RGNode>): void;
172
+ /**
173
+ * Modify node position
174
+ * @param nodeOrId RGNode object or nodeId
175
+ * @param x
176
+ * @param y
177
+ */
178
+ updateNodePosition(nodeOrId: RGNode | string, x: number, y: number): void;
179
+ /**
180
+ * Modify the specified attribute values in node.data. It is a shortcut method, equivalent to:
181
+ * ```ts
182
+ * this.updateNode(node.id, {
183
+ * data: {...node.data, ...nodeData}
184
+ * });
185
+ * ```
186
+ * @param nodeOrId RGNode object or nodeId
187
+ * @param nodeData
188
+ *
189
+ */
190
+ updateNodeData(nodeOrId: RGNode | string, nodeData: Record<string, any>): void;
191
+ /**
192
+ * Modify line property values, you only need to pass in the properties you want to modify, and the properties that are not passed in will remain unchanged
193
+ * @param lineOrId RGLine object or lineId
194
+ * @param lineProperties
195
+ */
196
+ updateLine(lineOrId: string | RGLine, lineProperties: Partial<RGLine>): void;
197
+ /**
198
+ * Modify the specified attribute values in line.data. It is a shortcut method, equivalent to:
199
+ * ```ts
200
+ * this.updateLine(line.id, {
201
+ * data: {...line.data, ...lineData}
202
+ * });
203
+ * ```
204
+ * @param lineOrId RGLine object or lineId
205
+ * @param lineData
206
+ */
207
+ updateLineData(lineOrId: string | RGLine, lineData: Record<string, any>): void;
208
+ /**
209
+ * Modify fake line property values, you only need to pass in the properties you want to modify, and the properties that are not passed in will remain unchanged
210
+ * @param lineOrId RGLine object or lineId
211
+ * @param lineProperties
212
+ */
213
+ updateFakeLine(lineOrId: string | RGLine, lineProperties: Partial<RGFakeLine>): void;
214
+ /**
215
+ * Expand tree-structured data into flattened data
216
+ * @param orign_nodes Tree-structured data, e.g., [{id:'a',children:[{id:'a-1'},{id:'a-1', children: [{id:'a-1-1'}]}]}]
217
+ * @param parentNode Please pass null
218
+ * @param nodes_collect All expanded nodes will be stored here
219
+ * @param lines_collect All expanded lines will be stored here
220
+ */
221
+ flatNodeData(orign_nodes: JsonNode[], parentNode: JsonNode | null, nodes_collect: JsonNode[], lines_collect: JsonLine[]): void;
222
+ private _nodesElSizeMap;
223
+ private backupNodesElSize;
224
+ /**
225
+ * @inner
226
+ * @param jsonData
227
+ * @protected
228
+ */
229
+ protected loadGraphJsonData(jsonData: RGJsonData): void;
230
+ /**
231
+ * Recalculate all visible nodes
232
+ * relation-graph外部无需调用这个方法,因为当你修改数据后,relation-graph会自动调用这个方法
233
+ * @inner
234
+ * @param force
235
+ */
236
+ protected updateShouldRenderGraphData(force?: boolean): void;
237
+ /**
238
+ * Update the visible property of nodes
239
+ * - When you expand/collapse nodes, there is no need to call this method outside of relation-graph, because relation-graph will automatically call this method. However, when you directly modify the visibility property of a node (for example, if you modify a node's parent node to be hidden, then you need to call this method to make the child node invisible), you need to call this method to update the visibility of the nodes.
240
+ * @param nodes
241
+ */
242
+ updateNodesVisibleProperty(nodes?: RGNode[]): void;
243
+ /**
244
+ * @inner
245
+ */
246
+ updateVisibleNodesSize(): void;
247
+ /**
248
+ * @inner
249
+ * @protected
250
+ */
251
+ protected _clearGraph(): void;
252
+ /**
253
+ * @inner
254
+ * @param jsonData
255
+ * @param resetViewSize
256
+ * @protected
257
+ */
258
+ protected _setJsonData(jsonData: RGJsonData, resetViewSize?: boolean): void;
259
+ }
@@ -0,0 +1,85 @@
1
+ import { RGConnectTargetData, RGJunctionPoint } from '../../types';
2
+ import { RelationGraphWith2Data3Update } from './RelationGraphWith2Data3Update';
3
+ /**
4
+ * The class related to connection point management in the relation-graph component, where the connection point refers to the connection point registered through the <RGConnectTarget> component
5
+ */
6
+ export declare class RelationGraphWith2Data4ConnectTarget extends RelationGraphWith2Data3Update {
7
+ constructor();
8
+ private canvasConnectTargetsMap;
9
+ private nodeConnectTargetsMap;
10
+ private connectTargetElementMap;
11
+ /**
12
+ * In general, relation-graph will automatically update the position of the connection points.
13
+ * - This method is only used for manual calls in some special scenarios.
14
+ * - It is provided for external calls to update the connection point positions of the specified canvas slot, and is not suitable for high-frequency calls.
15
+ * @param by
16
+ * @param canvasSlotDom
17
+ * @protected
18
+ */
19
+ protected updateConnectTargetsOnCanvas(by: string, canvasSlotDom: Element): void;
20
+ /**
21
+ * In general, relation-graph will automatically update the position of the connection points.
22
+ * - This method is only used for manual calls in some special scenarios.
23
+ * - It is provided for external calls to update the connection point positions of the specified node, and is not suitable for high-frequency calls.
24
+ *
25
+ */
26
+ updateConnectTargetsByNodeId(nodeId: string): void;
27
+ /**
28
+ * @inner
29
+ */
30
+ private getNodeElByNodeId;
31
+ /**
32
+ * @inner
33
+ */
34
+ protected updateConnectTargetsOnNode(by: string, nodeId: string, nodeEl: HTMLDivElement): void;
35
+ /**
36
+ * @inner
37
+ */
38
+ protected updateConnectTargetList(by: string, relativeNodeEl: Element, connectTargetList: RGConnectTargetData[]): void;
39
+ /**
40
+ * @inner
41
+ */
42
+ private _connectTargetUpdateRequestedSet;
43
+ /**
44
+ * @inner
45
+ */
46
+ private _requestUpdateConnectTargetOffset;
47
+ private _updateTimer;
48
+ /**
49
+ * @inner
50
+ */
51
+ private _updateAllRequestedConnectTargetOffsets;
52
+ /**
53
+ * @inner
54
+ */
55
+ private _updateConnectTargetOffset;
56
+ /**
57
+ * @inner
58
+ */
59
+ private _onConnectTargetMounted;
60
+ /**
61
+ * @inner
62
+ */
63
+ private getNodeElByChildrenTarget;
64
+ /**
65
+ * @inner
66
+ */
67
+ registerConnectTarget(connectTargetEl: HTMLDivElement, targetId: string, targetType: string, junctionPoint: RGJunctionPoint, targetData?: Record<string, any>): RGConnectTargetData | undefined;
68
+ /**
69
+ * @inner
70
+ */
71
+ private _addConnectTargetToNodeMap;
72
+ /**
73
+ * @inner
74
+ */
75
+ private _addConnectTargetToCanvasMap;
76
+ /**
77
+ * @inner
78
+ */
79
+ unregisterConnectTarget(targetId: string): void;
80
+ private _removedConnectTargetMap;
81
+ /**
82
+ * @inner
83
+ */
84
+ private reuseConnectTarget;
85
+ }
@@ -0,0 +1,35 @@
1
+ import { RGFakeLine, RGFakeLineTargetRender, RGGenerateLineConfig, RGLine, RGLineTarget, RGOptionsFull } from '../../types';
2
+ import { RelationGraphWith2Data4ConnectTarget } from './RelationGraphWith2Data4ConnectTarget';
3
+ /**
4
+ * API class for generating line configuration and line connection point information in relation-graph component, providing data support for drawing lines
5
+ */
6
+ export declare class RelationGraphWith2Data5LineConfig extends RelationGraphWith2Data4ConnectTarget {
7
+ constructor();
8
+ /**
9
+ * @inner
10
+ */
11
+ generateCreatingLineConfig(options?: RGOptionsFull): RGGenerateLineConfig;
12
+ /**
13
+ * Generate configuration information for drawing lines based on line information
14
+ * @param line
15
+ */
16
+ generateLineConfig(line: RGLine): RGGenerateLineConfig | false;
17
+ /**
18
+ * Generate configuration information for drawing fake lines based on fake line information
19
+ * @param fakeLine
20
+ */
21
+ generateFakeLineConfig(fakeLine: RGFakeLine): RGGenerateLineConfig | false;
22
+ private fakeLineTargetRender;
23
+ /**
24
+ * Set a custom render method for fake line targets, to provide more types of target rendering capabilities for fake lines
25
+ * @param fakeLineTargetRender
26
+ */
27
+ setFakeLineTargetRender(fakeLineTargetRender: RGFakeLineTargetRender): void;
28
+ /**
29
+ * Get the target information of a fake line based on the target type and target ID
30
+ * @param targetType
31
+ * @param targetId
32
+ * @param fakeLine
33
+ */
34
+ getFakeLineTarget(targetType: string, targetId: string, fakeLine: RGFakeLine): RGLineTarget | undefined;
35
+ }
@@ -0,0 +1,75 @@
1
+ import { RGLine, RGNode, RGOptions } from '../../types';
2
+ import { RelationGraphWith2Data5LineConfig } from './RelationGraphWith2Data5LineConfig';
3
+ /**
4
+ * Class related to options data update of relation-graph component
5
+ */
6
+ export declare class RelationGraphWith3Options1Update extends RelationGraphWith2Data5LineConfig {
7
+ constructor();
8
+ /**
9
+ * @inner
10
+ */
11
+ protected _updateOptions(options: RGOptions): void;
12
+ /**
13
+ * When the size of the parent element of the relation-graph component changes, you can call this method to recalculate the view size
14
+ * @param zoomTo100
15
+ * @protected
16
+ * @inner
17
+ */
18
+ protected resetViewSize(zoomTo100?: boolean): void;
19
+ /**
20
+ * Lock the graph component screen and display a piece of text
21
+ * @param graphLoadingText The text to display
22
+ */
23
+ loading(graphLoadingText?: string): void;
24
+ /**
25
+ * Clear the lock on the graph component screen
26
+ */
27
+ clearLoading(): void;
28
+ /**
29
+ * Set the checked node
30
+ * @param node
31
+ */
32
+ setCheckedNode(node: string | RGNode): void;
33
+ /**
34
+ * Set the checked line
35
+ * @param line
36
+ */
37
+ setCheckedLine(line: string | RGLine): void;
38
+ /**
39
+ * Clear all checked nodes and lines
40
+ */
41
+ clearChecked(): void;
42
+ /**
43
+ * Clear all selected nodes and lines
44
+ */
45
+ clearSelected(): void;
46
+ /**
47
+ * Set the canvas offset, used when dragging the canvas
48
+ * @param x
49
+ * @param y
50
+ */
51
+ setCanvasOffset(x: number, y: number): void;
52
+ /**
53
+ * Set the current canvas to move mode
54
+ * @param newValue
55
+ * @protected
56
+ * @inner
57
+ */
58
+ protected setCanvasMoveMode(newValue: boolean): void;
59
+ /**
60
+ * @inner
61
+ */
62
+ onMiniViewMounted(): void;
63
+ /**
64
+ * @inner
65
+ */
66
+ onMiniViewUnMounted(): void;
67
+ /**
68
+ * @inner
69
+ */
70
+ onReferenceLineMounted(adsorption: boolean): void;
71
+ /**
72
+ * @inner
73
+ */
74
+ onReferenceLineUnMounted(): void;
75
+ }
@@ -0,0 +1,39 @@
1
+ import { JsonLine, JsonNode, RGLineTarget, RGOptionsFull } from '../../types';
2
+ import { RelationGraphWith3Options1Update } from './RelationGraphWith3Options1Update';
3
+ /**
4
+ * API class to obtain some derived or abstract information from options data
5
+ */
6
+ export declare class RelationGraphWith3Options2API extends RelationGraphWith3Options1Update {
7
+ constructor();
8
+ /**
9
+ * Get the currently creating line information through data options
10
+ * - This method is only for Hook (useCreatingLine). When using it, it should be obtained through the hook:
11
+ * ```ts
12
+ * import { RGHooks } from 'relation-graph-react';
13
+ * const creatingLine = RGHooks.useCreatingLine(graphInstance);
14
+ * ```
15
+ * @param options
16
+ * @inner
17
+ *
18
+ */
19
+ getCreatingLine(options?: RGOptionsFull): {
20
+ creating: boolean;
21
+ fromTarget?: RGLineTarget;
22
+ toTarget?: RGLineTarget;
23
+ lineJson?: JsonLine;
24
+ };
25
+ /**
26
+ * Get the currently creating node information through data options
27
+ * - This method is only for Hook (useCreatingNode). When using it, it should be obtained through the hook:
28
+ * ```ts
29
+ * import { RGHooks } from 'relation-graph-react';
30
+ * const creatingNode = RGHooks.useCreatingNode();
31
+ * ```
32
+ * @param options
33
+ * @inner
34
+ */
35
+ getCreatingNode(options?: RGOptionsFull): {
36
+ creating: boolean;
37
+ nodeJson?: JsonNode;
38
+ };
39
+ }
@@ -0,0 +1,112 @@
1
+ import { RGElementLine, RGGenerateLineConfig, RGLine, RGLinePathInfo, RGLineTextPosition, RGLink } from '../../types';
2
+ import { RelationGraphWith3Options2API } from './RelationGraphWith3Options2API';
3
+ /**
4
+ * Methods related to line drawing in relation-graph component
5
+ */
6
+ export declare class RelationGraphWith4Line extends RelationGraphWith3Options2API {
7
+ constructor();
8
+ /**
9
+ * Get the specific coordinate position of the junction point according to the junction point style
10
+ * @param junctionPointStyle Junction point position definition, type: RGJunctionPoint
11
+ * @param createJunctionPointParams Parameters required to create junction points
12
+ * @return Returns the coordinate position of the junction point
13
+ *
14
+ */
15
+ private _getJunctionPoint;
16
+ /**
17
+ * @deprecated This method has been removed, please use createLineDrawInfo() instead.
18
+ */
19
+ createLinePath(link: RGLink | RGElementLine, line: RGLine, ri: number): void;
20
+ /**
21
+ * Generate line drawing information based on line information
22
+ * - This method is generally used internally by components, but can also be called for external custom rendering of lines to obtain line drawing information.
23
+ * @param link The connection line object that contains the starting and ending point object information
24
+ * @param line The line object
25
+ * @return Returns the line drawing information object
26
+ *
27
+ */
28
+ createLineDrawInfo(link: RGLink | RGElementLine, line: RGLine): RGLinePathInfo | undefined;
29
+ private _getLineDefaultOptions;
30
+ /**
31
+ * Generate line path data
32
+ * - This method is generally used internally by components, but can also be called for external custom rendering of lines to obtain line drawing information.
33
+ * @param generateConfig Data configuration for generating line paths
34
+ * @return Returns the line path information object
35
+ *
36
+ */
37
+ generateLinePath(generateConfig: RGGenerateLineConfig): RGLinePathInfo;
38
+ /**
39
+ * @inner
40
+ * @private
41
+ */
42
+ private throwLineError;
43
+ /**
44
+ * @inner
45
+ * @private
46
+ */
47
+ private createErrorLineValue;
48
+ /**
49
+ * @inner
50
+ * @private
51
+ */
52
+ private withLineJunctionPoints;
53
+ /**
54
+ * @inner
55
+ * @private
56
+ */
57
+ private createLinePathData;
58
+ /**
59
+ * Get the arrow marker ID based on the line information, used to set the SVG marker-start or marker-end attribute value
60
+ * @param line The line object
61
+ * @param isStartArrow Whether it is the start arrow, the default value is false, indicating the end arrow
62
+ * @return Returns the arrow marker ID string, or undefined if the arrow is not displayed
63
+ *
64
+ */
65
+ getArrowMarkerId(line: RGLine, isStartArrow?: boolean): string | undefined;
66
+ /**
67
+ * @inner
68
+ * @private
69
+ */
70
+ private getLineArrow;
71
+ /**
72
+ * @deprecated Will be removed in future versions
73
+ * @inner
74
+ */
75
+ getTextTransform(line: RGLine, textPosition: RGLineTextPosition): string;
76
+ /**
77
+ * English: Generate text style information on the line, including position, alignment, rotation, and other CSS styles
78
+ * @param lineConfig RGGenerateLineConfig object, configuration information when generating the line
79
+ * @param linePathInfo RGLinePathInfo object, line path information
80
+ * @return Returns an object containing text content and CSS styles
81
+ *
82
+ */
83
+ generateLineTextStyle(lineConfig: RGGenerateLineConfig, linePathInfo: RGLinePathInfo): {
84
+ cssStyles: {
85
+ transform: string;
86
+ transformOrigin: string;
87
+ };
88
+ text?: undefined;
89
+ } | {
90
+ text: string;
91
+ cssStyles: {
92
+ transform: string;
93
+ transformOrigin: string;
94
+ };
95
+ };
96
+ /**
97
+ * Generate text style information for textPath on the line, including position, alignment, rotation, and other CSS styles
98
+ * @param lineConfig RGGenerateLineConfig object, configuration information when generating the line
99
+ * @return Returns an object containing text content and CSS styles
100
+ *
101
+ */
102
+ generateLineTextStyle4TextOnPath(lineConfig: RGGenerateLineConfig): {
103
+ text: string;
104
+ textOffset: {
105
+ x: number;
106
+ y: number;
107
+ };
108
+ textAnchor: string;
109
+ onPathStartOffset: string;
110
+ textRotate: number;
111
+ } | null;
112
+ }
@@ -0,0 +1,29 @@
1
+ import { RGCoordinate } from '../../types';
2
+ import { RelationGraphWith4Line } from './RelationGraphWith4Line';
3
+ export type RGClientXy = RGCoordinate;
4
+ /**
5
+ * Class related to zoom functionality in the relation-graph component
6
+ */
7
+ export declare class RelationGraphWith5Zoom extends RelationGraphWith4Line {
8
+ constructor();
9
+ /**
10
+ * Zoom based on the current zoom level
11
+ * @param buff The additional zoom level to be added based on the current zoom level. A positive number indicates zooming in, and a negative number indicates zooming out, in percentage. For example: 10 means zoom in by 10%, -10 means zoom out by 10%
12
+ * @param userZoomCenter User zoom center point coordinates, default is the center point of the view
13
+ * @param e Mouse wheel event object, optional
14
+ *
15
+ */
16
+ zoom(buff: number, userZoomCenter?: RGClientXy, e?: WheelEvent): void;
17
+ /**
18
+ * @inner
19
+ * @protected
20
+ */
21
+ protected _performanceModeLogicHook(oldZoomValue: number, newZoomValue: number): void;
22
+ /**
23
+ * Set the canvas zoom to the specified zoom level
24
+ * @param finalZoom Target zoom level, expressed as a percentage, for example: 100 means 100%
25
+ * @param userZoomCenter User zoom center point coordinates, default is the center point of the view
26
+ *
27
+ */
28
+ setZoom(finalZoom: number, userZoomCenter?: RGClientXy): void;
29
+ }