@relation-graph/react 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/relation-graph.js +251 -23
- package/relation-graph.mjs +7368 -5902
- package/relation-graph.umd.js +251 -23
- package/types/packages/platforms/react/src/index.d.ts +98 -64
- package/types/packages/platforms/react/src/relation-graph/RGProvider.d.ts +4 -0
- package/types/packages/platforms/react/src/relation-graph/RelationGraph.d.ts +7 -3
- package/types/packages/platforms/react/src/relation-graph/RelationLinker.d.ts +4 -5
- package/types/packages/platforms/react/src/relation-graph/src/core4react/RGCanvas.d.ts +2 -3
- package/types/packages/platforms/react/src/relation-graph/src/core4react/RGCanvasContent.d.ts +10 -3
- package/types/packages/platforms/react/src/relation-graph/src/core4react/RGCanvasContent4CreatingLine.d.ts +10 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/RGCanvasContent4FakeLines.d.ts +11 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/RGCanvasContent4Lines.d.ts +12 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/RGCanvasContent4Nodes.d.ts +13 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/RGFakeNode.d.ts +1 -1
- package/types/packages/platforms/react/src/relation-graph/src/core4react/RGGraphRefs.d.ts +0 -1
- package/types/packages/platforms/react/src/relation-graph/src/core4react/RGLineContent.d.ts +1 -1
- package/types/packages/platforms/react/src/relation-graph/src/core4react/RGLinePath.d.ts +1 -1
- package/types/packages/platforms/react/src/relation-graph/src/core4react/RGLinePeel.d.ts +2 -3
- package/types/packages/platforms/react/src/relation-graph/src/core4react/RGLineText.d.ts +1 -1
- package/types/packages/platforms/react/src/relation-graph/src/core4react/RGNodePeel.d.ts +10 -1
- package/types/packages/platforms/react/src/relation-graph/src/core4react/RelationGraphUI.d.ts +4 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/RelationGraphView.d.ts +4 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/RelationLinkerCanvas.d.ts +4 -5
- package/types/packages/platforms/react/src/relation-graph/src/core4react/RelationLinkerUI.d.ts +4 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/RelationLinkerView.d.ts +4 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/editing/RGConnectSource.d.ts +1 -1
- package/types/packages/platforms/react/src/relation-graph/src/core4react/editing/RGConnectTarget.d.ts +1 -1
- package/types/packages/platforms/react/src/relation-graph/src/core4react/editing/RGEditingConnectPoints.d.ts +1 -1
- package/types/packages/platforms/react/src/relation-graph/src/core4react/editing/RGEditingLineController.d.ts +1 -1
- package/types/packages/platforms/react/src/relation-graph/src/core4react/editing/RGEditingNearNodeWidget.d.ts +1 -1
- package/types/packages/platforms/react/src/relation-graph/src/core4react/editing/RGMiniView.d.ts +1 -1
- package/types/packages/platforms/react/src/relation-graph/src/core4react/slots/RGSlotOnLine.d.ts +1 -1
- package/types/packages/platforms/react/src/relation-graph/src/core4react/slots/RGSlotOnLineText.d.ts +1 -1
- package/types/packages/platforms/react/src/relation-graph/src/core4react/slots/RGSlotOnNode.d.ts +1 -1
- package/types/packages/platforms/react/src/relation-graph/src/core4react/store/index.d.ts +3 -2
- package/types/packages/platforms/react/src/relation-graph/src/core4react/store/reducers/RGStore.d.ts +10 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/widgets/GraphBackground.d.ts +1 -1
- package/types/packages/platforms/react/src/relation-graph/src/core4react/widgets/GraphOperateStuff.d.ts +1 -1
- package/types/packages/platforms/react/src/relation-graph/src/core4react/widgets/GraphToolBar.d.ts +1 -1
- package/types/packages/platforms/react/src/relation-graph/src/core4react/widgets/GraphWatermark.d.ts +1 -1
- package/types/packages/platforms/react/src/relation-graph/src/core4react/widgets/GraphXsToolBar.d.ts +1 -1
- package/types/packages/platforms/react/src/relation-graph/src/core4react/widgets/RGDebugView.d.ts +3 -0
- package/types/packages/platforms/react/src/relation-graph/src/hooks/RGDataProvider.d.ts +17 -0
- package/types/packages/platforms/react/src/relation-graph/src/hooks/RGHooks.d.ts +24 -1
- package/types/packages/platforms/react/src/relation-graph/src/hooks/useFakeNodesState.d.ts +1 -1
- package/types/packages/platforms/react/src/relation-graph/src/hooks/useGraphInstance.d.ts +2 -12
- package/types/packages/platforms/react/src/relation-graph/src/hooks/useGraphStore.d.ts +13 -0
- package/types/packages/platforms/react/src/relation-graph/src/hooks/useRelationGraph.d.ts +11 -0
- package/types/packages/platforms/react/src/relation-graph/src/hooks/useRelationLinker.d.ts +17 -0
- package/types/packages/platforms/react/src/types-react.d.ts +24 -24
- package/types/packages/platforms/svelte/src/RGProvider.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/context.d.ts +4 -0
- package/types/packages/platforms/svelte/src/core4svelte/RGCanvas.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/RGCanvasContent.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/RGCanvasContent4CreatingLine.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/RGCanvasContent4FakeLines.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/RGCanvasContent4Lines.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/RGCanvasContent4Nodes.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/RGEasyView.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/RGFakeNode.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/RGGraphDefs.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/RGLineContent.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/RGLinePath.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/RGLinePeel.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/RGLineText.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/RGNodeExpandHolder.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/RGNodePeel.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/RGProvider4Instance.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/RelationGraph.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/RelationGraphUI.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/RelationLinker.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/RelationLinkerCanvas.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/RelationLinkerUI.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/editing/RGConnectSource.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/editing/RGConnectTarget.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/editing/RGConnectTargetUI.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/editing/RGEditingConnectController.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/editing/RGEditingConnectPoints.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/editing/RGEditingLineController.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/editing/RGEditingLineControllerUI.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/editing/RGEditingNearNodeWidget.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/editing/RGEditingNodeController.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/editing/RGEditingNodeControllerUI.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/editing/RGEditingReferenceLine.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/editing/RGEditingResize.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/editing/RGEditingResizeUI.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/editing/RGMiniView.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/editing/RGMiniViewContent.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/web-components/RGConnectTarget.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/web-components/RGEditingConnectController.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/web-components/RGEditingLineController.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/web-components/RGEditingNearNodeWidget.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/web-components/RGEditingNodeController.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/web-components/RGEditingReferenceLine.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/web-components/RGEditingResize.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/web-components/RGMiniView.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/web-components/RelationGraphWithProvider.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/web-components/WebComponentUtils.d.ts +11 -0
- package/types/packages/platforms/svelte/src/core4svelte/widgets/GraphBackground.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/widgets/GraphLoading.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/widgets/GraphMoveOperator.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/widgets/GraphOperateStuff.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/widgets/GraphWatermark.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/widgets/GraphXsToolBar.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/core4svelte/widgets/RGIcons.svelte.d.ts +1 -0
- package/types/packages/platforms/svelte/src/hooks/RGHooks.d.ts +27 -0
- package/types/packages/platforms/svelte/src/hooks/useGraphInstance.d.ts +2 -0
- package/types/packages/platforms/svelte/src/hooks/useGraphStore.d.ts +14 -0
- package/types/packages/platforms/svelte/src/hooks/useRGDataProvider.d.ts +19 -0
- package/types/packages/platforms/svelte/src/hooks/useRelationGraph.d.ts +48 -0
- package/types/packages/platforms/svelte/src/index.d.ts +194 -0
- package/types/packages/platforms/svelte/src/types-svelte.d.ts +85 -0
- package/types/packages/platforms/vue2/src/core4vue/RGCanvas.vue.d.ts +2 -6
- package/types/packages/platforms/vue2/src/core4vue/RGCanvasContent.vue.d.ts +6 -6
- package/types/packages/platforms/vue2/src/core4vue/RGCanvasContent4CreatingLine.vue.d.ts +9 -0
- package/types/packages/platforms/vue2/src/core4vue/RGCanvasContent4FakeLines.vue.d.ts +9 -0
- package/types/packages/platforms/vue2/src/core4vue/RGCanvasContent4Lines.vue.d.ts +9 -0
- package/types/packages/platforms/vue2/src/core4vue/RGCanvasContent4Nodes.vue.d.ts +9 -0
- package/types/packages/platforms/vue2/src/core4vue/RGEasyView.vue.d.ts +1 -0
- package/types/packages/platforms/vue2/src/core4vue/RGGraphDefs.vue.d.ts +1 -0
- package/types/packages/platforms/vue2/src/core4vue/RGLineContent.vue.d.ts +18 -18
- package/types/packages/platforms/vue2/src/core4vue/RGLinePath.vue.d.ts +4 -28
- package/types/packages/platforms/vue2/src/core4vue/RGLinePeel.vue.d.ts +4 -15
- package/types/packages/platforms/vue2/src/core4vue/RGNodeExpandHolder.vue.d.ts +3 -9
- package/types/packages/platforms/vue2/src/core4vue/RGNodePeel.vue.d.ts +5 -20
- package/types/packages/platforms/vue2/src/core4vue/RGProvider.vue.d.ts +50 -0
- package/types/packages/platforms/vue2/src/core4vue/RelationGraph.vue.d.ts +5 -773
- package/types/packages/platforms/vue2/src/core4vue/RelationGraphUI.vue.d.ts +46 -0
- package/types/packages/platforms/vue2/src/core4vue/RelationLinker.vue.d.ts +8 -24
- package/types/packages/platforms/vue2/src/core4vue/RelationLinkerCanvas.vue.d.ts +1 -0
- package/types/packages/platforms/vue2/src/core4vue/RelationLinkerUI.vue.d.ts +23 -0
- package/types/packages/platforms/vue2/src/core4vue/editing/RGConnectSource.vue.d.ts +3 -1
- package/types/packages/platforms/vue2/src/core4vue/editing/RGConnectTarget.vue.d.ts +1 -0
- package/types/packages/platforms/vue2/src/core4vue/editing/RGEditingConnectController.vue.d.ts +2 -1
- package/types/packages/platforms/vue2/src/core4vue/editing/RGEditingConnectPoints.vue.d.ts +1 -0
- package/types/packages/platforms/vue2/src/core4vue/editing/RGEditingLineController.vue.d.ts +12 -2
- package/types/packages/platforms/vue2/src/core4vue/editing/RGEditingNearNodeWidget.vue.d.ts +1 -0
- package/types/packages/platforms/vue2/src/core4vue/editing/RGEditingNodeController.vue.d.ts +1 -0
- package/types/packages/platforms/vue2/src/core4vue/editing/RGEditingReferenceLine.vue.d.ts +1 -0
- package/types/packages/platforms/vue2/src/core4vue/editing/RGEditingResize.vue.d.ts +1 -0
- package/types/packages/platforms/vue2/src/core4vue/editing/RGMiniView.vue.d.ts +3 -1
- package/types/packages/platforms/vue2/src/core4vue/widgets/GraphBackground.vue.d.ts +1 -0
- package/types/packages/platforms/vue2/src/core4vue/widgets/GraphLoading.vue.d.ts +1 -0
- package/types/packages/platforms/vue2/src/core4vue/widgets/GraphMoveOperator.vue.d.ts +1 -1
- package/types/packages/platforms/vue2/src/core4vue/widgets/GraphOperateStuff.vue.d.ts +1 -0
- package/types/packages/platforms/vue2/src/core4vue/widgets/GraphToolBar.vue.d.ts +1 -1
- package/types/packages/platforms/vue2/src/core4vue/widgets/GraphWatermark.vue.d.ts +1 -0
- package/types/packages/platforms/vue2/src/core4vue/widgets/GraphXsToolBar.vue.d.ts +1 -1
- package/types/packages/platforms/vue2/src/core4vue/widgets/RGDebugView.vue.d.ts +12 -0
- package/types/packages/platforms/vue2/src/hooks/GraphStoreMixin.d.ts +40 -0
- package/types/packages/platforms/vue2/src/index.d.ts +138 -1692
- package/types/packages/platforms/vue2/src/types-vue2.d.ts +3 -0
- package/types/packages/platforms/vue3/src/constants.d.ts +0 -1
- package/types/packages/platforms/vue3/src/index.d.ts +97 -1404
- package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/editing/RGConnectSource.vue.d.ts +2 -2
- package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/editing/RGConnectTarget.vue.d.ts +4 -4
- package/types/packages/platforms/vue3/src/relation-graph/src/core4vue3/editing/RGEditingLineController.vue.d.ts +2 -2
- package/types/packages/platforms/vue3/src/relation-graph/src/hooks/RGHooks.d.ts +27 -2
- package/types/packages/platforms/vue3/src/relation-graph/src/hooks/useGraphData.d.ts +2 -0
- package/types/packages/platforms/vue3/src/relation-graph/src/hooks/useGraphInstance.d.ts +1 -12
- package/types/packages/platforms/vue3/src/relation-graph/src/hooks/useGraphStore.d.ts +16 -0
- package/types/packages/platforms/vue3/src/relation-graph/src/hooks/useRGDataProvider.d.ts +17 -0
- package/types/packages/platforms/vue3/src/relation-graph/src/hooks/useRelationGraph.d.ts +131 -0
- package/types/packages/platforms/vue3/src/relation-graph/src/hooks/useRelationLinker.d.ts +39 -0
- package/types/packages/platforms/vue3/src/types-vue3.d.ts +104 -4
- package/types/packages/platforms/vue3/src/types.d.ts +3 -1
- package/types/packages/relation-graph-models/RGObjectsForExport.d.ts +40 -32
- package/types/packages/relation-graph-models/data/RGDataDefine.d.ts +23 -0
- package/types/packages/relation-graph-models/data/RGDataGetter.d.ts +36 -0
- package/types/packages/relation-graph-models/data/RGDataProvider.d.ts +66 -0
- package/types/packages/relation-graph-models/data/RGDataProvider4React.d.ts +9 -0
- package/types/packages/relation-graph-models/data/RGDataProvider4Svelte.d.ts +10 -0
- package/types/packages/relation-graph-models/data/RGDataProvider4Vue2.d.ts +9 -0
- package/types/packages/relation-graph-models/data/RGDataProvider4Vue3.d.ts +10 -0
- package/types/packages/relation-graph-models/data/RGDataProvider4Vue3V1.d.ts +10 -0
- package/types/packages/relation-graph-models/data/RGLineDataUtils.d.ts +9 -0
- package/types/packages/relation-graph-models/data/RGNodeDataUtils.d.ts +14 -0
- package/types/packages/relation-graph-models/data/RGOptionsDataUtils.d.ts +9 -0
- package/types/packages/relation-graph-models/data/utils/EdgeCounter.d.ts +8 -0
- package/types/packages/relation-graph-models/layouts/RGBaseLayout.d.ts +37 -0
- package/types/packages/relation-graph-models/layouts/RGCenterLayout.d.ts +9 -0
- package/types/packages/relation-graph-models/layouts/RGCircleLayout.d.ts +7 -0
- package/types/packages/relation-graph-models/layouts/RGFixedLayout.d.ts +10 -0
- package/types/packages/relation-graph-models/layouts/RGFolderLayout.d.ts +15 -0
- package/types/packages/relation-graph-models/layouts/RGForceLayout.d.ts +77 -0
- package/types/packages/relation-graph-models/layouts/RGIOTreeLayout.d.ts +18 -0
- package/types/packages/relation-graph-models/layouts/RGSmartTreeLayout.d.ts +14 -0
- package/types/packages/relation-graph-models/layouts/RGTreeLayout.d.ts +17 -0
- package/types/packages/relation-graph-models/layouts/analyzers/BasicNetworkAnalyzer.d.ts +27 -0
- package/types/packages/relation-graph-models/layouts/analyzers/RGNetworkAnalyzer.d.ts +27 -0
- package/types/packages/relation-graph-models/models/RelationGraphBase.d.ts +31 -18
- package/types/packages/relation-graph-models/models/RelationGraphCore.d.ts +46 -0
- package/types/packages/relation-graph-models/models/RelationGraphWith1View.d.ts +91 -0
- package/types/packages/relation-graph-models/models/RelationGraphWith2Data.d.ts +34 -381
- package/types/packages/relation-graph-models/models/RelationGraphWith2Data1Getter.d.ts +77 -0
- package/types/packages/relation-graph-models/models/RelationGraphWith2Data2Analysis.d.ts +172 -0
- package/types/packages/relation-graph-models/models/RelationGraphWith2Data3Update.d.ts +257 -0
- package/types/packages/relation-graph-models/models/RelationGraphWith2Data4ConnectTarget.d.ts +85 -0
- package/types/packages/relation-graph-models/models/RelationGraphWith2Data5LineConfig.d.ts +35 -0
- package/types/packages/relation-graph-models/models/RelationGraphWith3Options1Update.d.ts +75 -0
- package/types/packages/relation-graph-models/models/RelationGraphWith3Options2API.d.ts +39 -0
- package/types/packages/relation-graph-models/models/RelationGraphWith4Line.d.ts +81 -21
- package/types/packages/relation-graph-models/models/RelationGraphWith5Zoom.d.ts +19 -21
- package/types/packages/relation-graph-models/models/RelationGraphWith6Effect.d.ts +56 -4
- package/types/packages/relation-graph-models/models/RelationGraphWith6Layout.d.ts +60 -12
- package/types/packages/relation-graph-models/models/RelationGraphWith7Event.d.ts +233 -36
- package/types/packages/relation-graph-models/models/RelationGraphWith91Editing.d.ts +176 -25
- package/types/packages/relation-graph-models/models/RelationGraphWith92MiniView.d.ts +70 -13
- package/types/packages/relation-graph-models/models/RelationGraphWith93Image.d.ts +36 -0
- package/types/packages/relation-graph-models/models/RelationGraphWith93Image_codes.d.ts +36 -0
- package/types/packages/relation-graph-models/models/RelationGraphWith95Dom.d.ts +108 -0
- package/types/packages/relation-graph-models/models/RelationGraphWith99API.d.ts +125 -0
- package/types/packages/relation-graph-models/models/RelationGraphWith9EasyView.d.ts +57 -11
- package/types/packages/relation-graph-models/utils/RGCanvasImpl2D.d.ts +2 -3
- package/types/packages/relation-graph-models/utils/RGCommon.d.ts +6 -1
- package/types/packages/relation-graph-models/utils/RGDragUtils.d.ts +14 -11
- package/types/packages/relation-graph-models/utils/RGFullscreenUtils.d.ts +1 -1
- package/types/packages/relation-graph-models/utils/RGGraphMath.d.ts +27 -0
- package/types/packages/relation-graph-models/utils/RGIntergration.d.ts +32 -34
- package/types/packages/relation-graph-models/utils/RGNodesAnalytic.d.ts +6 -15
- package/types/packages/relation-graph-models/utils/RGTips.d.ts +7 -0
- package/types/packages/relation-graph-models/utils/line/RGLinePath.d.ts +16 -1
- package/types/packages/relation-graph-models/utils/line/RGLinePathUtils.d.ts +1 -1
- package/types/packages/relation-graph-models/utils/line/RGPathGeneratorFor1.d.ts +1 -1
- package/types/packages/relation-graph-models/utils/line/RGPathGeneratorFor4.d.ts +1 -1
- package/types/packages/relation-graph-models/utils/line/RGPathGeneratorFor44.d.ts +1 -1
- package/types/packages/relation-graph-models/utils/line/RGPathGeneratorFor49.d.ts +1 -1
- package/types/packages/relation-graph-models/utils/line/RGPathGeneratorFor6.d.ts +1 -1
- package/types/packages/relation-graph-models/utils/line/RGPathGeneratorForCurve.d.ts +1 -1
- package/types/packages/types.d.ts +1467 -0
- package/types/packages/types.ts +1472 -0
- package/types/react.d.ts +38 -38
- package/types/vue3.d.ts +229 -229
|
@@ -1,24 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
/**
|
|
2
|
+
* relation-graph
|
|
3
|
+
* Website: http://www.relation-graph.com/
|
|
4
|
+
* Github: https://github.com/seeksdream/relation-graph
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import { default as _RelationGraph } from './relation-graph/RelationGraph';
|
|
8
|
+
import { RelationGraphCore as _RelationGraphCore } from '../../../relation-graph-models/models/RelationGraphCore';
|
|
9
|
+
import { RelationGraphComponent as _RelationGraphComponent } from './types-react';
|
|
10
|
+
import { default as BaseLayout } from '../../../relation-graph-models/layouts/RGBaseLayout';
|
|
11
|
+
import { default as BidirectionalTreeLayout } from '../../../relation-graph-models/layouts/RGTreeLayout';
|
|
12
|
+
import { default as CenterLayout } from '../../../relation-graph-models/layouts/RGCenterLayout';
|
|
13
|
+
import { default as CircleLayout } from '../../../relation-graph-models/layouts/RGCircleLayout';
|
|
14
|
+
import { default as FixedLayout } from '../../../relation-graph-models/layouts/RGFixedLayout';
|
|
15
|
+
import { default as ForceLayout } from '../../../relation-graph-models/layouts/RGForceLayout';
|
|
16
|
+
import { default as RGFolderLayout } from '../../../relation-graph-models/layouts/RGFolderLayout';
|
|
17
|
+
import * as RGOptionsDataUtils from "../../../relation-graph-models/data/RGOptionsDataUtils";
|
|
18
|
+
import * as RGLineDataUtils from "../../../relation-graph-models/data/RGLineDataUtils";
|
|
19
|
+
import * as RGNodeDataUtils from "../../../relation-graph-models/data/RGNodeDataUtils";
|
|
20
|
+
export * from '../../../types';
|
|
21
|
+
export * from './types-react';
|
|
7
22
|
export declare const version: string;
|
|
8
|
-
export declare const RelationGraphCore: typeof
|
|
9
|
-
export declare const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
23
|
+
export declare const RelationGraphCore: typeof _RelationGraphCore;
|
|
24
|
+
export declare const RGLayouts: {
|
|
25
|
+
BaseLayout: typeof BaseLayout;
|
|
26
|
+
BidirectionalTreeLayout: typeof BidirectionalTreeLayout;
|
|
27
|
+
CenterLayout: typeof CenterLayout;
|
|
28
|
+
CircleLayout: typeof CircleLayout;
|
|
29
|
+
FixedLayout: typeof FixedLayout;
|
|
30
|
+
ForceLayout: typeof ForceLayout;
|
|
31
|
+
RGFolderLayout: typeof RGFolderLayout;
|
|
17
32
|
};
|
|
18
33
|
export declare const RGUtils: {
|
|
19
|
-
RGOptionsDataUtils: typeof
|
|
20
|
-
RGLineDataUtils: typeof
|
|
21
|
-
RGNodeDataUtils: typeof
|
|
34
|
+
RGOptionsDataUtils: typeof RGOptionsDataUtils;
|
|
35
|
+
RGLineDataUtils: typeof RGLineDataUtils;
|
|
36
|
+
RGNodeDataUtils: typeof RGNodeDataUtils;
|
|
22
37
|
RGGraphMath: {
|
|
23
38
|
getRectPoint(from_x: number, from_y: number, to_x: number, to_y: number, f_W: number, f_H: number, t_W: number, t_H: number, isReverse?: boolean, totalLines?: number, currentIndex?: number, lineDistance?: number, isEndPoint?: boolean): {
|
|
24
39
|
x: number;
|
|
@@ -29,35 +44,39 @@ export declare const RGUtils: {
|
|
|
29
44
|
y: number;
|
|
30
45
|
_case: string;
|
|
31
46
|
};
|
|
32
|
-
getRectJoinPoint(params: import('
|
|
47
|
+
getRectJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
33
48
|
x: number;
|
|
34
49
|
y: number;
|
|
35
50
|
};
|
|
36
|
-
getRectHJoinPoint(params: import('
|
|
51
|
+
getRectHJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
37
52
|
x: number;
|
|
38
53
|
y: number;
|
|
39
54
|
};
|
|
40
|
-
getRectLeftJoinPoint(params: import('
|
|
55
|
+
getRectLeftJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
41
56
|
x: number;
|
|
42
57
|
y: number;
|
|
43
58
|
};
|
|
44
|
-
getRectRightJoinPoint(params: import('
|
|
59
|
+
getRectRightJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
45
60
|
x: number;
|
|
46
61
|
y: number;
|
|
47
62
|
};
|
|
48
|
-
getRectTopJoinPoint(params: import('
|
|
63
|
+
getRectTopJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
49
64
|
x: number;
|
|
50
65
|
y: number;
|
|
51
66
|
};
|
|
52
|
-
getRectBottomJoinPoint(params: import('
|
|
67
|
+
getRectBottomJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
53
68
|
x: number;
|
|
54
69
|
y: number;
|
|
55
70
|
};
|
|
56
|
-
getRectHorizontalLineJoinPoint(params: import('
|
|
71
|
+
getRectHorizontalLineJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
72
|
+
y: number;
|
|
73
|
+
x: number;
|
|
74
|
+
};
|
|
75
|
+
getRectVerticalLineLineJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
57
76
|
x: number;
|
|
58
77
|
y: number;
|
|
59
78
|
};
|
|
60
|
-
getRectVJoinPoint(params: import('
|
|
79
|
+
getRectVJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
61
80
|
y: number;
|
|
62
81
|
x: number;
|
|
63
82
|
};
|
|
@@ -65,7 +84,7 @@ export declare const RGUtils: {
|
|
|
65
84
|
x: number;
|
|
66
85
|
y: number;
|
|
67
86
|
};
|
|
68
|
-
getBorderPoint4MultiLine(params: import('
|
|
87
|
+
getBorderPoint4MultiLine(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
69
88
|
x: number;
|
|
70
89
|
y: number;
|
|
71
90
|
};
|
|
@@ -89,26 +108,28 @@ export declare const RGUtils: {
|
|
|
89
108
|
x: number;
|
|
90
109
|
y: number;
|
|
91
110
|
};
|
|
111
|
+
getRotatedPoint(x: number, y: number, c_x: number, c_y: number, rotateDeg: number): {
|
|
112
|
+
x: number;
|
|
113
|
+
y: number;
|
|
114
|
+
};
|
|
115
|
+
getFlippedX(x: number, c_x: number): number;
|
|
116
|
+
getFlippedY(y: number, c_y: number): number;
|
|
92
117
|
getAngleType(buffer_x: number, buffer_y: number): 1 | 2 | 3 | 4 | undefined;
|
|
93
118
|
getTextAngle(fx: number, fy: number, tx: number, ty: number): number;
|
|
94
119
|
};
|
|
95
120
|
RGNodesAnalyticUtils: {
|
|
96
|
-
getDescendantNodes(node: import('
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
isVisibleNode(thisNode: import('packages/relation-graph-models/types').RGNode, deep?: number): boolean;
|
|
102
|
-
isAllowShowNode(thisNode: import('packages/relation-graph-models/types').RGNode, deep?: number): boolean;
|
|
103
|
-
getNodeWidth(thisNode: import('packages/relation-graph-models/types').RGNode): number;
|
|
104
|
-
getNodeHeight(thisNode: import('packages/relation-graph-models/types').RGNode): number;
|
|
121
|
+
getDescendantNodes(node: import('../../../types').RGNode, collectList?: import('../../../types').RGNode[]): import('../../../types').RGNode[];
|
|
122
|
+
isVisibleNode(thisNode: import('../../../types').RGNode, deep?: number): boolean;
|
|
123
|
+
isAllowShowNode(thisNode: import('../../../types').RGNode, deep?: number): boolean;
|
|
124
|
+
getNodeWidth(thisNode: import('../../../types').RGNode): number;
|
|
125
|
+
getNodeHeight(thisNode: import('../../../types').RGNode): number;
|
|
105
126
|
getNodeXByLotX(nodeAlignOption: {
|
|
106
127
|
alignItemsX: "start" | "center" | "end";
|
|
107
|
-
}, thisNode: import('
|
|
128
|
+
}, thisNode: import('../../../types').RGNode): number;
|
|
108
129
|
getNodeYByLotY(nodeAlignOption: {
|
|
109
130
|
alignItemsY: "start" | "center" | "end";
|
|
110
|
-
}, thisNode: import('
|
|
111
|
-
getNodeLotXY(nodeAlignOption: import('
|
|
131
|
+
}, thisNode: import('../../../types').RGNode): number;
|
|
132
|
+
getNodeLotXY(nodeAlignOption: import('../../../types').RGLayoutOptions4Alignment, node: import('../../../types').RGNode): {
|
|
112
133
|
x: number;
|
|
113
134
|
y: number;
|
|
114
135
|
};
|
|
@@ -120,41 +141,42 @@ export declare const RGUtils: {
|
|
|
120
141
|
x: any;
|
|
121
142
|
y: any;
|
|
122
143
|
};
|
|
123
|
-
flatNodeData(
|
|
144
|
+
flatNodeData(orignNodes: import('../../../types').JsonNode[], parentNode: import('../../../types').JsonNode | null, nodesCollect: import('../../../types').JsonNode[], linksCollect: import('../../../types').JsonLine[]): void;
|
|
124
145
|
};
|
|
125
146
|
RGEffectUtils: {
|
|
126
|
-
startDrag(e: MouseEvent | TouchEvent,
|
|
147
|
+
startDrag(e: MouseEvent | TouchEvent, startPositionOrModel: import('../../../types').RGCoordinate, onDragged: import('../../../relation-graph-models/utils/RGDragUtils').RGDraggedCallback, onDragging?: import('../../../relation-graph-models/utils/RGDragUtils').RGDraggingCallback): void;
|
|
127
148
|
onNodeMove(e: MouseEvent | TouchEvent): void;
|
|
128
149
|
onNodeDragend(e: MouseEvent | TouchEvent): void;
|
|
129
150
|
};
|
|
130
151
|
};
|
|
131
152
|
export declare const RGFakeNode: import('react').FC<{
|
|
132
|
-
node: import('
|
|
153
|
+
node: import('../../../types').RGNode;
|
|
133
154
|
}>;
|
|
134
|
-
export declare const RGLinePath: import('react').FC<import('
|
|
155
|
+
export declare const RGLinePath: import('react').FC<import('../../../types').RGLinePathProps & {
|
|
135
156
|
onLineClick: (e: React.MouseEvent | React.TouchEvent) => void;
|
|
136
157
|
}>;
|
|
137
|
-
export declare const RGLineText: import('react').FC<import('
|
|
138
|
-
export declare const
|
|
158
|
+
export declare const RGLineText: import('react').FC<import('../../../types').RGLineTextProps>;
|
|
159
|
+
export declare const RGDebugView: import('react').FC<{}>;
|
|
160
|
+
export declare const RGToolBar: import('react').FC<import('../../../types').RGToolBarProps>;
|
|
139
161
|
export declare const RGNodeExpandHolder: import('react').FC<import('./types-react').RGNodeExpandHolderProps>;
|
|
140
|
-
export declare const RGMiniToolBar: import('react').FC<import('
|
|
141
|
-
export declare const RGMiniView: import('react').FC<import('
|
|
142
|
-
export declare const RGBackground: import('react').FC<import('
|
|
143
|
-
export declare const RGWatermark: import('react').FC<import('
|
|
162
|
+
export declare const RGMiniToolBar: import('react').FC<import('../../../types').RGToolBarProps>;
|
|
163
|
+
export declare const RGMiniView: import('react').FC<import('../../../types').RGMiniViewProps>;
|
|
164
|
+
export declare const RGBackground: import('react').FC<import('../../../types').RGBackgroundProps>;
|
|
165
|
+
export declare const RGWatermark: import('react').FC<import('../../../types').RGWatermarkProps>;
|
|
144
166
|
export declare const RGEditingNodeController: import('react').FC<{}>;
|
|
145
167
|
export declare const RGEditingResize: import('react').FC<{
|
|
146
168
|
disableResizeWidth?: boolean;
|
|
147
169
|
disableResizeHeight?: boolean;
|
|
148
170
|
beforeResizeStart?: () => void;
|
|
149
171
|
}>;
|
|
150
|
-
export declare const RGEditingNearNodeWidget: import('react').FC<import('
|
|
151
|
-
export declare const RGEditingLineController: import('react').FC<import('
|
|
172
|
+
export declare const RGEditingNearNodeWidget: import('react').FC<import('../../../types').RGWidgetProps>;
|
|
173
|
+
export declare const RGEditingLineController: import('react').FC<import('../../../types').RGEditingLineControllerProps>;
|
|
152
174
|
export declare const RGEditingConnectController: import('react').FC<{}>;
|
|
153
|
-
export declare const RGConnectSource: import('react').FC<import('
|
|
154
|
-
export declare const RGConnectTarget: import('react').FC<import('
|
|
175
|
+
export declare const RGConnectSource: import('react').FC<import('../../../types').RGConnectSourceProps>;
|
|
176
|
+
export declare const RGConnectTarget: import('react').FC<import('../../../types').RGConnectTargetProps>;
|
|
155
177
|
export declare const RGEditingConnectPoints: import('react').FC<{
|
|
156
|
-
mouseUpOnJunctionPointWithOffset: (junctionPoint: import('
|
|
157
|
-
mouseUpOnJunctionPoint: (junctionPoint: import('
|
|
178
|
+
mouseUpOnJunctionPointWithOffset: (junctionPoint: import('../../../types').RGJunctionPoint, event: any) => void;
|
|
179
|
+
mouseUpOnJunctionPoint: (junctionPoint: import('../../../types').RGJunctionPoint, event: any) => void;
|
|
158
180
|
}>;
|
|
159
181
|
export declare const RGEditingReferenceLine: import('react').FC<{
|
|
160
182
|
showText?: boolean;
|
|
@@ -165,18 +187,30 @@ export declare const RGSlotOnView: import('react').FC<{}>;
|
|
|
165
187
|
export declare const RGSlotOnCanvasAbove: import('react').FC<{}>;
|
|
166
188
|
export declare const RGSlotOnCanvas: import('react').FC<{}>;
|
|
167
189
|
export declare const RGSlotOnNode: import('react').FC<{
|
|
168
|
-
children: (props: import('
|
|
190
|
+
children: (props: import('../../../types').RGNodeSlotProps) => React.ReactNode;
|
|
169
191
|
}>;
|
|
170
192
|
export declare const RGSlotOnLine: import('react').FC<{
|
|
171
|
-
children: (props: import('
|
|
193
|
+
children: (props: import('../../../types').RGLineSlotProps) => React.ReactNode;
|
|
172
194
|
}>;
|
|
173
|
-
export declare const RelationLinker: import('react').
|
|
174
|
-
export { RGHooks } from './relation-graph/src/hooks/RGHooks';
|
|
175
|
-
export declare const
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
195
|
+
export declare const RelationLinker: import('react').FC<import('react').PropsWithChildren<import('./types-react').RelationLinkerProps>>;
|
|
196
|
+
export { RGHooks as _RGHooks } from './relation-graph/src/hooks/RGHooks';
|
|
197
|
+
export declare const RGHooks: {
|
|
198
|
+
useRelationGraph: typeof import('./relation-graph/src/hooks/useRelationGraph').useRelationGraph;
|
|
199
|
+
useGraphInstance: typeof import('./relation-graph/src/hooks/useGraphInstance').useGraphInstance;
|
|
200
|
+
useAutoUpdateView: typeof import('./relation-graph/src/hooks/useGraphInstance').useAutoUpdateView;
|
|
201
|
+
useCreatingLine: typeof import('./relation-graph/src/hooks/useGraphStore').useCreatingLine;
|
|
202
|
+
useCreatingNode: typeof import('./relation-graph/src/hooks/useGraphStore').useCreatingNode;
|
|
203
|
+
useEditingNodes: typeof import('./relation-graph/src/hooks/useGraphStore').useEditingNodes;
|
|
204
|
+
useEditingLine: typeof import('./relation-graph/src/hooks/useGraphStore').useEditingLine;
|
|
205
|
+
useViewInformation: typeof import('./relation-graph/src/hooks/useGraphStore').useViewInformation;
|
|
206
|
+
useSelection: typeof import('./relation-graph/src/hooks/useGraphStore').useSelection;
|
|
207
|
+
useConnectingNode: typeof import('./relation-graph/src/hooks/useGraphStore').useConnectingNode;
|
|
208
|
+
useCheckedItem: typeof import('./relation-graph/src/hooks/useGraphStore').useCheckedItem;
|
|
209
|
+
useGraphStore: typeof import('./relation-graph/src/hooks/useGraphStore').useGraphStore;
|
|
210
|
+
};
|
|
211
|
+
export declare const useRelationGraph: typeof import('./relation-graph/src/hooks/useRelationGraph').useRelationGraph;
|
|
212
|
+
export declare const RGProvider: import('react').FC<import('react').PropsWithChildren<import('./types-react').RelationGraphWithWithCustomCore>>;
|
|
213
|
+
export { RelationGraphStoreContext, RelationGraphStoreContext as RGInstanceContext, RGUpdateContext, RGUpdateSignalContext as RGUpdateSingalContext, RGUpdateSignalContext } from './relation-graph/src/core4react/store/reducers/RGStore';
|
|
180
214
|
export type RelationGraphComponent = _RelationGraphComponent;
|
|
181
215
|
export declare const RelationGraph: RelationGraphComponent;
|
|
182
216
|
export default _RelationGraph;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { RelationGraphExpose } from '../../../../
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { RelationGraphExpose } from '../../../../types';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<import('../../../../types').RGListeners & import('../types-react').RelationGraphWithSlots & {
|
|
4
|
+
options: import('../../../../types').RGOptions;
|
|
5
|
+
initialData?: import('../../../../types').RGJsonData;
|
|
6
|
+
} & import('../types-react').RelationGraphWithWithCustomCore & {
|
|
7
|
+
children?: React.ReactNode | undefined;
|
|
8
|
+
} & React.RefAttributes<RelationGraphExpose>>;
|
|
5
9
|
export default _default;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export default _default;
|
|
1
|
+
import { default as React, PropsWithChildren } from 'react';
|
|
2
|
+
import { RelationLinkerProps } from '../types-react';
|
|
3
|
+
declare const RelationLinker: React.FC<PropsWithChildren<RelationLinkerProps>>;
|
|
4
|
+
export default RelationLinker;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { RGLineSlotProps, RGNodeSlotProps } from '../../../../../../
|
|
2
|
+
import { RGLineSlotProps, RGNodeSlotProps } from '../../../../../../types';
|
|
3
3
|
import { RGNodeExpandHolderProps } from '../../../types-react';
|
|
4
4
|
export interface RGCanvasProps {
|
|
5
5
|
nodeSlot?: React.FC<RGNodeSlotProps> | ((props: RGNodeSlotProps) => React.ReactNode);
|
|
6
6
|
lineSlot?: React.FC<RGLineSlotProps> | ((props: RGLineSlotProps) => React.ReactNode);
|
|
7
|
-
svgDefs?: React.FC | React.ReactNode;
|
|
8
7
|
canvasPlugSlot?: React.FC | React.ReactNode;
|
|
9
8
|
canvasPlugAboveSlot?: React.ReactNode;
|
|
10
|
-
|
|
9
|
+
nodeExpandButtonSlot?: React.FC<RGNodeExpandHolderProps> | ((props: RGNodeExpandHolderProps) => React.ReactNode);
|
|
11
10
|
}
|
|
12
11
|
declare const RGCanvas: React.FC<RGCanvasProps>;
|
|
13
12
|
export default RGCanvas;
|
package/types/packages/platforms/react/src/relation-graph/src/core4react/RGCanvasContent.d.ts
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { RGLineSlotProps, RGNodeSlotProps } from '../../../../../../
|
|
2
|
+
import { RGLineSlotProps, RGNodeSlotProps } from '../../../../../../types';
|
|
3
3
|
import { RGNodeExpandHolderProps } from '../../../types-react';
|
|
4
4
|
export interface RGCanvasContentProps {
|
|
5
5
|
nodeSlot?: React.FC<RGNodeSlotProps> | ((props: RGNodeSlotProps) => React.ReactNode);
|
|
6
6
|
lineSlot?: React.FC<RGLineSlotProps> | ((props: RGLineSlotProps) => React.ReactNode);
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
nodeExpandButtonSlot?: React.FC<RGNodeExpandHolderProps> | ((props: RGNodeExpandHolderProps) => React.ReactNode);
|
|
8
|
+
showEasyView?: boolean;
|
|
9
|
+
creatingLine?: boolean;
|
|
10
|
+
defaultExpandHolderPosition?: string;
|
|
11
|
+
draggingNodeId?: string;
|
|
12
|
+
checkedNodeId?: string;
|
|
13
|
+
checkedLineId?: string;
|
|
14
|
+
lineUseTextPath?: boolean;
|
|
15
|
+
graphInstanceId?: string;
|
|
9
16
|
}
|
|
10
17
|
declare const RGCanvasContent: React.FC<RGCanvasContentProps>;
|
|
11
18
|
export default RGCanvasContent;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { RGLineSlotProps } from '../../../../../../types';
|
|
3
|
+
export interface RGCanvasContent4CreatingLineProps {
|
|
4
|
+
lineSlot?: React.FC<RGLineSlotProps> | ((props: RGLineSlotProps) => React.ReactNode);
|
|
5
|
+
lineUseTextPath?: boolean;
|
|
6
|
+
checkedLineId?: string;
|
|
7
|
+
graphInstanceId?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const RGCanvasContent4CreatingLine: React.FC<RGCanvasContent4CreatingLineProps>;
|
|
10
|
+
export default RGCanvasContent4CreatingLine;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { RGLineSlotProps } from '../../../../../../types';
|
|
3
|
+
export interface RGCanvasContent4FakeLinesProps {
|
|
4
|
+
showEasyView: boolean;
|
|
5
|
+
lineSlot?: React.FC<RGLineSlotProps> | ((props: RGLineSlotProps) => React.ReactNode);
|
|
6
|
+
lineUseTextPath?: boolean;
|
|
7
|
+
checkedLineId?: string;
|
|
8
|
+
graphInstanceId?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const RGCanvasContent4FakeLines: React.FC<RGCanvasContent4FakeLinesProps>;
|
|
11
|
+
export default RGCanvasContent4FakeLines;
|
package/types/packages/platforms/react/src/relation-graph/src/core4react/RGCanvasContent4Lines.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { RGLine, RGLineSlotProps } from '../../../../../../types';
|
|
3
|
+
export interface RGCanvasContent4LinesProps {
|
|
4
|
+
showEasyView: boolean;
|
|
5
|
+
lineSlot?: React.FC<RGLineSlotProps> | ((props: RGLineSlotProps) => React.ReactNode);
|
|
6
|
+
lineUseTextPath?: boolean;
|
|
7
|
+
checkedLineId?: string;
|
|
8
|
+
graphInstanceId?: string;
|
|
9
|
+
allLineConfigList: RGLine[];
|
|
10
|
+
}
|
|
11
|
+
declare const RGCanvasContent4LinesContent: React.FC<RGCanvasContent4LinesProps>;
|
|
12
|
+
export default RGCanvasContent4LinesContent;
|
package/types/packages/platforms/react/src/relation-graph/src/core4react/RGCanvasContent4Nodes.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { RGNode, RGNodeSlotProps } from '../../../../../../types';
|
|
3
|
+
import { RGNodeExpandHolderProps } from '../../../types-react';
|
|
4
|
+
export interface RGCanvasContent4NodesProps {
|
|
5
|
+
nodeSlot?: React.FC<RGNodeSlotProps> | ((props: RGNodeSlotProps) => React.ReactNode);
|
|
6
|
+
nodeExpandButtonSlot?: React.FC<RGNodeExpandHolderProps> | ((props: RGNodeExpandHolderProps) => React.ReactNode);
|
|
7
|
+
defaultExpandHolderPosition?: string;
|
|
8
|
+
draggingNodeId?: string;
|
|
9
|
+
checkedNodeId?: string;
|
|
10
|
+
allNodeConfigList: RGNode[];
|
|
11
|
+
}
|
|
12
|
+
declare const RGCanvasContent4NodesContent: React.FC<RGCanvasContent4NodesProps>;
|
|
13
|
+
export default RGCanvasContent4NodesContent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { RGLineSlotProps } from '../../../../../../
|
|
2
|
+
import { RGLineSlotProps } from '../../../../../../types';
|
|
3
3
|
declare const RGLineContent: React.FC<RGLineSlotProps>;
|
|
4
4
|
export default RGLineContent;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { RGLinePathProps } from '../../../../../../
|
|
2
|
+
import { RGLinePathProps } from '../../../../../../types';
|
|
3
3
|
declare const RGLinePath: React.FC<RGLinePathProps & {
|
|
4
4
|
onLineClick: (e: React.MouseEvent | React.TouchEvent) => void;
|
|
5
5
|
}>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
declare const RGLinePeel: React.FC<{
|
|
4
|
-
line: RGLine | RGFakeLine;
|
|
2
|
+
import { RGLineSlotProps, RGLinePeelProps } from '../../../../../../types';
|
|
3
|
+
declare const RGLinePeel: React.FC<RGLinePeelProps & {
|
|
5
4
|
lineSlot?: React.FC<RGLineSlotProps> | ((props: RGLineSlotProps) => React.ReactNode);
|
|
6
5
|
}>;
|
|
7
6
|
export default RGLinePeel;
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { RGNodeExpandHolderProps } from '../../../types-react';
|
|
3
|
+
import { RGNode, RGNodeSlotProps } from '../../../../../../types';
|
|
4
|
+
export type RGNodeProps = {
|
|
5
|
+
nodeProps: RGNode;
|
|
6
|
+
nodeSlot?: React.FC<RGNodeSlotProps> | ((props: RGNodeSlotProps) => React.ReactNode);
|
|
7
|
+
nodeExpandButtonSlot?: React.FC<RGNodeExpandHolderProps> | ((props: RGNodeExpandHolderProps) => React.ReactNode);
|
|
8
|
+
defaultExpandHolderPosition?: string;
|
|
9
|
+
dragging?: boolean;
|
|
10
|
+
checked?: boolean;
|
|
11
|
+
};
|
|
3
12
|
declare const RGNodePeel: React.FC<RGNodeProps>;
|
|
4
13
|
export default RGNodePeel;
|
package/types/packages/platforms/react/src/relation-graph/src/core4react/RelationLinkerCanvas.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { RGLineSlotProps } from '../../../../../../
|
|
3
|
-
declare const RelationLinkerCanvas: React.FC<{
|
|
1
|
+
import { default as React, PropsWithChildren } from 'react';
|
|
2
|
+
import { RGLineSlotProps } from '../../../../../../types';
|
|
3
|
+
declare const RelationLinkerCanvas: React.FC<PropsWithChildren<{
|
|
4
4
|
lineSlot?: React.FC<RGLineSlotProps> | ((props: RGLineSlotProps) => React.ReactNode);
|
|
5
|
-
svgDefs?: React.FC | React.ReactNode;
|
|
6
5
|
canvasPlugBehindSlot?: React.ReactNode;
|
|
7
|
-
}
|
|
6
|
+
}>>;
|
|
8
7
|
export default RelationLinkerCanvas;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { RGJunctionPoint } from '
|
|
2
|
+
import { RGJunctionPoint } from '../../../../../../../types';
|
|
3
3
|
declare const RGEditingConnectPoints: React.FC<{
|
|
4
4
|
mouseUpOnJunctionPointWithOffset: (junctionPoint: RGJunctionPoint, event: any) => void;
|
|
5
5
|
mouseUpOnJunctionPoint: (junctionPoint: RGJunctionPoint, event: any) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { RGEditingLineControllerProps } from '
|
|
2
|
+
import { RGEditingLineControllerProps } from '../../../../../../../types';
|
|
3
3
|
declare const RGEditingLineController: React.FC<RGEditingLineControllerProps>;
|
|
4
4
|
export default RGEditingLineController;
|
package/types/packages/platforms/react/src/relation-graph/src/core4react/editing/RGMiniView.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { RGMiniViewProps } from '../../../../../../../
|
|
2
|
+
import { RGMiniViewProps } from '../../../../../../../types';
|
|
3
3
|
declare const RGMiniView: React.FC<RGMiniViewProps>;
|
|
4
4
|
export default RGMiniView;
|
package/types/packages/platforms/react/src/relation-graph/src/core4react/slots/RGSlotOnLine.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { RGLineSlotProps } from '../../../../../../../
|
|
2
|
+
import { RGLineSlotProps } from '../../../../../../../types';
|
|
3
3
|
declare const RGSlotOnLine: React.FC<{
|
|
4
4
|
children: (props: RGLineSlotProps) => React.ReactNode;
|
|
5
5
|
}>;
|
package/types/packages/platforms/react/src/relation-graph/src/core4react/slots/RGSlotOnLineText.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { RGGenerateLineConfig } from '../../../../../../../
|
|
2
|
+
import { RGGenerateLineConfig } from '../../../../../../../types';
|
|
3
3
|
declare const RGSlotOnLineText: React.FC<{
|
|
4
4
|
lineConfig: RGGenerateLineConfig;
|
|
5
5
|
}>;
|
package/types/packages/platforms/react/src/relation-graph/src/core4react/slots/RGSlotOnNode.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { RGNodeSlotProps } from '../../../../../../../
|
|
2
|
+
import { RGNodeSlotProps } from '../../../../../../../types';
|
|
3
3
|
declare const RGSlotOnNode: React.FC<{
|
|
4
4
|
children: (props: RGNodeSlotProps) => React.ReactNode;
|
|
5
5
|
}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export declare const RelationGraphProvider: import('react').Provider<import('
|
|
2
|
-
export declare const RGUpdateProvider: import('react').Provider<(v?: import('
|
|
1
|
+
export declare const RelationGraphProvider: import('react').Provider<import('../../../../../../../relation-graph-models/models/RelationGraphCore').RelationGraphCore>;
|
|
2
|
+
export declare const RGUpdateProvider: import('react').Provider<(v?: import('../../../..').RelationGraphInstance) => void>;
|
|
3
3
|
export declare const RGUpdateSignalProvider: import('react').Provider<number>;
|
|
4
|
+
export declare const RGViewDataProvider: import('react').Provider<import('../../../..').RGDataStore>;
|
package/types/packages/platforms/react/src/relation-graph/src/core4react/store/reducers/RGStore.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { RelationGraphInstance } from '../../../../../../../../types';
|
|
3
|
+
import { RGDataStore } from '../../../../../types-react';
|
|
4
|
+
export type RGUpdateAction = (rgInstance: RelationGraphInstance) => void;
|
|
5
|
+
export type RelationGraphReducer = (state: RelationGraphInstance, action: RGUpdateAction) => RelationGraphInstance;
|
|
6
|
+
export declare const relationGraphReducer: RelationGraphReducer;
|
|
7
|
+
export declare const RelationGraphStoreContext: React.Context<RelationGraphInstance>;
|
|
8
|
+
export declare const RGUpdateContext: React.Context<((v?: RelationGraphInstance) => void)>;
|
|
9
|
+
export declare const RGUpdateSignalContext: React.Context<number>;
|
|
10
|
+
export declare const RGViewDataContext: React.Context<RGDataStore>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { RGBackgroundProps } from '../../../../../../../
|
|
2
|
+
import { RGBackgroundProps } from '../../../../../../../types';
|
|
3
3
|
declare const GraphBackground: React.FC<RGBackgroundProps>;
|
|
4
4
|
export default GraphBackground;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { RGNodeSlotProps } from '../../../../../../../
|
|
2
|
+
import { RGNodeSlotProps } from '../../../../../../../types';
|
|
3
3
|
export interface GraphOperateStuffProps {
|
|
4
4
|
nodeSlot?: React.FC<RGNodeSlotProps> | ((props: RGNodeSlotProps) => React.ReactNode);
|
|
5
5
|
}
|