@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.
- package/LICENSE +21 -0
- package/package.json +65 -0
- package/relation-graph.js +284 -0
- package/relation-graph.mjs +9626 -0
- package/relation-graph.umd.js +284 -0
- package/types/components.d.ts +5 -0
- package/types/packages/platforms/react/src/constants.d.ts +1 -0
- package/types/packages/platforms/react/src/index.d.ts +224 -0
- package/types/packages/platforms/react/src/relation-graph/RGProvider.d.ts +4 -0
- package/types/packages/platforms/react/src/relation-graph/RelationGraph.d.ts +9 -0
- package/types/packages/platforms/react/src/relation-graph/RelationLinker.d.ts +4 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/RGCanvas.d.ts +13 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/RGCanvasContent.d.ts +18 -0
- 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/RGEasyView.d.ts +4 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/RGFakeNode.d.ts +6 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/RGGraphRefs.d.ts +5 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/RGLineContent.d.ts +4 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/RGLinePath.d.ts +7 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/RGLinePeel.d.ts +6 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/RGLineText.d.ts +6 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/RGNodeExpandHolder.d.ts +4 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/RGNodePeel.d.ts +13 -0
- 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 +7 -0
- 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 +4 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/editing/RGConnectTarget.d.ts +4 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/editing/RGEditingConnectController.d.ts +3 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/editing/RGEditingConnectPoints.d.ts +7 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/editing/RGEditingLineController.d.ts +4 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/editing/RGEditingNearNodeWidget.d.ts +4 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/editing/RGEditingNodeController.d.ts +3 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/editing/RGEditingReferenceLine.d.ts +6 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/editing/RGEditingResize.d.ts +7 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/editing/RGMiniView.d.ts +4 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/slots/RGSlotOnCanvas.d.ts +3 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/slots/RGSlotOnCanvasAbove.d.ts +3 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/slots/RGSlotOnLine.d.ts +6 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/slots/RGSlotOnLineText.d.ts +6 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/slots/RGSlotOnNode.d.ts +6 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/slots/RGSlotOnNodeExpandHandle.d.ts +3 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/slots/RGSlotOnView.d.ts +3 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/store/index.d.ts +4 -0
- 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 +4 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/widgets/GraphLoading.d.ts +3 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/widgets/GraphMoveOperator.d.ts +3 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/widgets/GraphOperateStuff.d.ts +7 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/widgets/GraphToolBar.d.ts +4 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/widgets/GraphWatermark.d.ts +4 -0
- package/types/packages/platforms/react/src/relation-graph/src/core4react/widgets/GraphXsToolBar.d.ts +4 -0
- 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/core4react/widgets/RGIcons.d.ts +6 -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 +30 -0
- package/types/packages/platforms/react/src/relation-graph/src/hooks/useFakeNodesState.d.ts +8 -0
- package/types/packages/platforms/react/src/relation-graph/src/hooks/useGraphInstance.d.ts +3 -0
- 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 +35 -0
- 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/RelationGraphWithProvider.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 +9 -0
- package/types/packages/platforms/vue2/src/core4vue/RGCanvasContent.vue.d.ts +10 -0
- 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 +7 -0
- package/types/packages/platforms/vue2/src/core4vue/RGFakeNode.vue.d.ts +18 -0
- package/types/packages/platforms/vue2/src/core4vue/RGGraphDefs.vue.d.ts +19 -0
- package/types/packages/platforms/vue2/src/core4vue/RGLineContent.vue.d.ts +23 -0
- package/types/packages/platforms/vue2/src/core4vue/RGLinePath.vue.d.ts +14 -0
- package/types/packages/platforms/vue2/src/core4vue/RGLinePeel.vue.d.ts +9 -0
- package/types/packages/platforms/vue2/src/core4vue/RGNodeExpandHolder.vue.d.ts +30 -0
- package/types/packages/platforms/vue2/src/core4vue/RGNodePeel.vue.d.ts +17 -0
- package/types/packages/platforms/vue2/src/core4vue/RGProvider.vue.d.ts +50 -0
- package/types/packages/platforms/vue2/src/core4vue/RelationGraph.vue.d.ts +52 -0
- package/types/packages/platforms/vue2/src/core4vue/RelationGraphUI.vue.d.ts +46 -0
- package/types/packages/platforms/vue2/src/core4vue/RelationLinker.vue.d.ts +46 -0
- package/types/packages/platforms/vue2/src/core4vue/RelationLinkerCanvas.vue.d.ts +12 -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 +31 -0
- package/types/packages/platforms/vue2/src/core4vue/editing/RGConnectTarget.vue.d.ts +85 -0
- package/types/packages/platforms/vue2/src/core4vue/editing/RGEditingConnectController.vue.d.ts +9 -0
- package/types/packages/platforms/vue2/src/core4vue/editing/RGEditingConnectPoints.vue.d.ts +25 -0
- package/types/packages/platforms/vue2/src/core4vue/editing/RGEditingLineController.vue.d.ts +43 -0
- package/types/packages/platforms/vue2/src/core4vue/editing/RGEditingNearNodeWidget.vue.d.ts +21 -0
- package/types/packages/platforms/vue2/src/core4vue/editing/RGEditingNodeController.vue.d.ts +5 -0
- package/types/packages/platforms/vue2/src/core4vue/editing/RGEditingReferenceLine.vue.d.ts +30 -0
- package/types/packages/platforms/vue2/src/core4vue/editing/RGEditingResize.vue.d.ts +32 -0
- package/types/packages/platforms/vue2/src/core4vue/editing/RGMiniView.vue.d.ts +40 -0
- package/types/packages/platforms/vue2/src/core4vue/widgets/GraphBackground.vue.d.ts +33 -0
- package/types/packages/platforms/vue2/src/core4vue/widgets/GraphLoading.vue.d.ts +5 -0
- package/types/packages/platforms/vue2/src/core4vue/widgets/GraphMoveOperator.vue.d.ts +8 -0
- package/types/packages/platforms/vue2/src/core4vue/widgets/GraphOperateStuff.vue.d.ts +5 -0
- package/types/packages/platforms/vue2/src/core4vue/widgets/GraphToolBar.vue.d.ts +46 -0
- package/types/packages/platforms/vue2/src/core4vue/widgets/GraphWatermark.vue.d.ts +58 -0
- package/types/packages/platforms/vue2/src/core4vue/widgets/GraphXsToolBar.vue.d.ts +46 -0
- 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 +944 -0
- package/types/packages/platforms/vue2/src/types-vue2.d.ts +3 -0
- package/types/packages/platforms/vue2/vite.config.d.ts +2 -0
- package/types/packages/platforms/vue3/src/constants.d.ts +3 -0
- package/types/packages/platforms/vue3/src/index.d.ts +188 -0
- package/types/packages/platforms/vue3/src/relation-graph/src/hooks/RGHooks.d.ts +32 -0
- 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 +2 -0
- 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 +122 -0
- package/types/packages/platforms/vue3/src/types.d.ts +3 -0
- package/types/packages/platforms/vue3/vite.config.d.ts +2 -0
- package/types/packages/relation-graph-models/RGObjectsForExport.d.ts +140 -0
- package/types/packages/relation-graph-models/constants.d.ts +1 -0
- 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 +17 -0
- package/types/packages/relation-graph-models/data/RGOptionsDataUtils.d.ts +7 -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 +82 -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 +28 -0
- package/types/packages/relation-graph-models/layouts/analyzers/RGNetworkAnalyzer.d.ts +27 -0
- package/types/packages/relation-graph-models/layouts/tmp/old.d.ts +1 -0
- package/types/packages/relation-graph-models/models/RelationGraphBase.d.ts +80 -0
- package/types/packages/relation-graph-models/models/RelationGraphCore.d.ts +46 -0
- package/types/packages/relation-graph-models/models/RelationGraphWith1View.d.ts +96 -0
- package/types/packages/relation-graph-models/models/RelationGraphWith2Data.d.ts +53 -0
- package/types/packages/relation-graph-models/models/RelationGraphWith2Data1Getter.d.ts +85 -0
- package/types/packages/relation-graph-models/models/RelationGraphWith2Data2Analysis.d.ts +177 -0
- package/types/packages/relation-graph-models/models/RelationGraphWith2Data3Update.d.ts +259 -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 +112 -0
- package/types/packages/relation-graph-models/models/RelationGraphWith5Zoom.d.ts +29 -0
- package/types/packages/relation-graph-models/models/RelationGraphWith6Effect.d.ts +72 -0
- package/types/packages/relation-graph-models/models/RelationGraphWith6Layout.d.ts +85 -0
- package/types/packages/relation-graph-models/models/RelationGraphWith7Event.d.ts +270 -0
- package/types/packages/relation-graph-models/models/RelationGraphWith91Editing.d.ts +210 -0
- package/types/packages/relation-graph-models/models/RelationGraphWith92MiniView.d.ts +107 -0
- package/types/packages/relation-graph-models/models/RelationGraphWith93Image.d.ts +38 -0
- package/types/packages/relation-graph-models/models/RelationGraphWith93Image_codes.d.ts +36 -0
- package/types/packages/relation-graph-models/models/RelationGraphWith95Dom.d.ts +112 -0
- package/types/packages/relation-graph-models/models/RelationGraphWith99API.d.ts +125 -0
- package/types/packages/relation-graph-models/models/RelationGraphWith9EasyView.d.ts +74 -0
- package/types/packages/relation-graph-models/utils/RGCanvasImpl2D.d.ts +58 -0
- package/types/packages/relation-graph-models/utils/RGCanvasImplWebGL.d.ts +47 -0
- package/types/packages/relation-graph-models/utils/RGCommon.d.ts +31 -0
- package/types/packages/relation-graph-models/utils/RGDragUtils.d.ts +20 -0
- package/types/packages/relation-graph-models/utils/RGFullscreenUtils.d.ts +3 -0
- package/types/packages/relation-graph-models/utils/RGGraphMath.d.ts +131 -0
- package/types/packages/relation-graph-models/utils/RGIconsData.d.ts +41 -0
- package/types/packages/relation-graph-models/utils/RGIntergration.d.ts +45 -0
- package/types/packages/relation-graph-models/utils/RGNodesAnalytic.d.ts +29 -0
- package/types/packages/relation-graph-models/utils/RGTips.d.ts +7 -0
- package/types/packages/relation-graph-models/utils/line/RGLinePath.d.ts +105 -0
- package/types/packages/relation-graph-models/utils/line/RGLinePathUtils.d.ts +54 -0
- package/types/packages/relation-graph-models/utils/line/RGPathGeneratorFor1.d.ts +2 -0
- package/types/packages/relation-graph-models/utils/line/RGPathGeneratorFor4.d.ts +2 -0
- package/types/packages/relation-graph-models/utils/line/RGPathGeneratorFor44.d.ts +2 -0
- package/types/packages/relation-graph-models/utils/line/RGPathGeneratorFor49.d.ts +2 -0
- package/types/packages/relation-graph-models/utils/line/RGPathGeneratorFor6.d.ts +6 -0
- package/types/packages/relation-graph-models/utils/line/RGPathGeneratorFor8.d.ts +2 -0
- package/types/packages/relation-graph-models/utils/line/RGPathGeneratorForCurve.d.ts +2 -0
- package/types/packages/types.d.ts +1467 -0
- package/types/packages/types.ts +1480 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { version } from '../../../../package.json';
|
|
@@ -0,0 +1,224 @@
|
|
|
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';
|
|
22
|
+
export declare const version: string;
|
|
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;
|
|
32
|
+
};
|
|
33
|
+
export declare const RGUtils: {
|
|
34
|
+
RGOptionsDataUtils: typeof RGOptionsDataUtils;
|
|
35
|
+
RGLineDataUtils: typeof RGLineDataUtils;
|
|
36
|
+
RGNodeDataUtils: typeof RGNodeDataUtils;
|
|
37
|
+
RGGraphMath: {
|
|
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): {
|
|
39
|
+
x: number;
|
|
40
|
+
y: number;
|
|
41
|
+
};
|
|
42
|
+
getRectPointBasic(x1: number, y1: number, x2: number, y2: number, n1w: number, n1h: number, n2w: number, n2h: number): {
|
|
43
|
+
x: number;
|
|
44
|
+
y: number;
|
|
45
|
+
_case: string;
|
|
46
|
+
};
|
|
47
|
+
getRectJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
48
|
+
x: number;
|
|
49
|
+
y: number;
|
|
50
|
+
};
|
|
51
|
+
getRectHJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
52
|
+
x: number;
|
|
53
|
+
y: number;
|
|
54
|
+
};
|
|
55
|
+
getRectLeftJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
56
|
+
x: number;
|
|
57
|
+
y: number;
|
|
58
|
+
};
|
|
59
|
+
getRectRightJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
60
|
+
x: number;
|
|
61
|
+
y: number;
|
|
62
|
+
};
|
|
63
|
+
getRectTopJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
64
|
+
x: number;
|
|
65
|
+
y: number;
|
|
66
|
+
};
|
|
67
|
+
getRectBottomJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
68
|
+
x: number;
|
|
69
|
+
y: number;
|
|
70
|
+
};
|
|
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): {
|
|
76
|
+
x: number;
|
|
77
|
+
y: number;
|
|
78
|
+
};
|
|
79
|
+
getRectVJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
80
|
+
y: number;
|
|
81
|
+
x: number;
|
|
82
|
+
};
|
|
83
|
+
getBorderPoint(x1: number, y1: number, x2: number, y2: number, n1w: number, n1h: number, n2w: number, n2h: number, n1style: number): {
|
|
84
|
+
x: number;
|
|
85
|
+
y: number;
|
|
86
|
+
};
|
|
87
|
+
getBorderPoint4MultiLine(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
88
|
+
x: number;
|
|
89
|
+
y: number;
|
|
90
|
+
};
|
|
91
|
+
getCirclePoint(x1: number, y1: number, x2: number, y2: number, n1w: number, n1h: number, n2w: number, n2h: number): {
|
|
92
|
+
x: number;
|
|
93
|
+
y: number;
|
|
94
|
+
};
|
|
95
|
+
getCirclePoint4MultiLine(x1: number, y1: number, x2: number, y2: number, n1w: number, n1h: number, n2w: number, n2h: number, isReverse: boolean, totalLines: number, currentIndex: number, lineDistance: number, isEndPoint: boolean): {
|
|
96
|
+
x: number;
|
|
97
|
+
y: number;
|
|
98
|
+
};
|
|
99
|
+
getCirclePointBasic(x1: number, y1: number, x2: number, y2: number, n1w: number, n1h: number, n2w: number, n2h: number, radius: number): {
|
|
100
|
+
x: number;
|
|
101
|
+
y: number;
|
|
102
|
+
};
|
|
103
|
+
getCirclePointPlus(x1: number, y1: number, x2: number, y2: number, n1w: number, n1h: number, n2w: number, n2h: number): {
|
|
104
|
+
x: number;
|
|
105
|
+
y: number;
|
|
106
|
+
};
|
|
107
|
+
getOvalPoint(c_x: number, c_y: number, c_r: number, c_i: number, c_n: number, startAngle?: number): {
|
|
108
|
+
x: number;
|
|
109
|
+
y: number;
|
|
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;
|
|
117
|
+
getAngleType(buffer_x: number, buffer_y: number): 1 | 2 | 3 | 4 | undefined;
|
|
118
|
+
getTextAngle(fx: number, fy: number, tx: number, ty: number): number;
|
|
119
|
+
};
|
|
120
|
+
RGNodesAnalyticUtils: {
|
|
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;
|
|
126
|
+
getNodeXByLotX(nodeAlignOption: {
|
|
127
|
+
alignItemsX: "start" | "center" | "end";
|
|
128
|
+
}, thisNode: import('../../../types').RGNode): number;
|
|
129
|
+
getNodeYByLotY(nodeAlignOption: {
|
|
130
|
+
alignItemsY: "start" | "center" | "end";
|
|
131
|
+
}, thisNode: import('../../../types').RGNode): number;
|
|
132
|
+
getNodeLotXY(nodeAlignOption: import('../../../types').RGLayoutOptions4Alignment, node: import('../../../types').RGNode): {
|
|
133
|
+
x: number;
|
|
134
|
+
y: number;
|
|
135
|
+
};
|
|
136
|
+
isRectangleOverlap(rectA: any, rectB: any): boolean;
|
|
137
|
+
isXOverlap(aX: number, bX: number, a_W: number, b_W: number): boolean;
|
|
138
|
+
isYOverlap(aY: number, bY: number, a_H: number, b_H: number): boolean;
|
|
139
|
+
shapesOverlap(nodeA: any, nodeB: any, shapeA?: number, shapeB?: number): boolean;
|
|
140
|
+
getNoOverlapLimitedPosition(rectA: any, newX: any, newY: any, rectB: any): {
|
|
141
|
+
x: any;
|
|
142
|
+
y: any;
|
|
143
|
+
};
|
|
144
|
+
flatNodeData(orignNodes: import('../../../types').JsonNode[], parentNode: import('../../../types').JsonNode | null, nodesCollect: import('../../../types').JsonNode[], linksCollect: import('../../../types').JsonLine[]): void;
|
|
145
|
+
};
|
|
146
|
+
RGEffectUtils: {
|
|
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;
|
|
148
|
+
onNodeMove(e: MouseEvent | TouchEvent): void;
|
|
149
|
+
onNodeDragend(e: MouseEvent | TouchEvent): void;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
export declare const RGFakeNode: import('react').FC<{
|
|
153
|
+
node: import('../../../types').RGNode;
|
|
154
|
+
}>;
|
|
155
|
+
export declare const RGLinePath: import('react').FC<import('../../../types').RGLinePathProps & {
|
|
156
|
+
onLineClick: (e: React.MouseEvent | React.TouchEvent) => void;
|
|
157
|
+
children?: React.ReactNode;
|
|
158
|
+
}>;
|
|
159
|
+
export declare const RGLineText: import('react').FC<import('../../../types').RGLineTextProps & {
|
|
160
|
+
children?: React.ReactNode;
|
|
161
|
+
}>;
|
|
162
|
+
export declare const RGDebugView: import('react').FC<{}>;
|
|
163
|
+
export declare const RGToolBar: import('react').FC<import('../../../types').RGToolBarProps>;
|
|
164
|
+
export declare const RGNodeExpandHolder: import('react').FC<import('./types-react').RGNodeExpandHolderProps>;
|
|
165
|
+
export declare const RGMiniToolBar: import('react').FC<import('../../../types').RGToolBarProps>;
|
|
166
|
+
export declare const RGMiniView: import('react').FC<import('../../../types').RGMiniViewProps>;
|
|
167
|
+
export declare const RGBackground: import('react').FC<import('../../../types').RGBackgroundProps>;
|
|
168
|
+
export declare const RGWatermark: import('react').FC<import('../../../types').RGWatermarkProps>;
|
|
169
|
+
export declare const RGEditingNodeController: import('react').FC<{}>;
|
|
170
|
+
export declare const RGEditingResize: import('react').FC<{
|
|
171
|
+
disableResizeWidth?: boolean;
|
|
172
|
+
disableResizeHeight?: boolean;
|
|
173
|
+
beforeResizeStart?: () => void;
|
|
174
|
+
}>;
|
|
175
|
+
export declare const RGEditingNearNodeWidget: import('react').FC<import('../../../types').RGWidgetProps>;
|
|
176
|
+
export declare const RGEditingLineController: import('react').FC<import('../../../types').RGEditingLineControllerProps>;
|
|
177
|
+
export declare const RGEditingConnectController: import('react').FC<{}>;
|
|
178
|
+
export declare const RGConnectSource: import('react').FC<import('../../../types').RGConnectSourceProps>;
|
|
179
|
+
export declare const RGConnectTarget: import('react').FC<import('../../../types').RGConnectTargetProps>;
|
|
180
|
+
export declare const RGEditingConnectPoints: import('react').FC<{
|
|
181
|
+
mouseUpOnJunctionPointWithOffset: (junctionPoint: import('../../../types').RGJunctionPoint, event: any) => void;
|
|
182
|
+
mouseUpOnJunctionPoint: (junctionPoint: import('../../../types').RGJunctionPoint, event: any) => void;
|
|
183
|
+
}>;
|
|
184
|
+
export declare const RGEditingReferenceLine: import('react').FC<{
|
|
185
|
+
showText?: boolean;
|
|
186
|
+
adsorption?: boolean;
|
|
187
|
+
}>;
|
|
188
|
+
export declare const RGSlotOnGraph: import('react').FC<{}>;
|
|
189
|
+
export declare const RGSlotOnView: import('react').FC<{}>;
|
|
190
|
+
export declare const RGSlotOnCanvasAbove: import('react').FC<{}>;
|
|
191
|
+
export declare const RGSlotOnCanvas: import('react').FC<{}>;
|
|
192
|
+
export declare const RGSlotOnNode: import('react').FC<{
|
|
193
|
+
children: (props: import('../../../types').RGNodeSlotProps) => React.ReactNode;
|
|
194
|
+
}>;
|
|
195
|
+
export declare const RGSlotOnLine: import('react').FC<{
|
|
196
|
+
children: (props: import('../../../types').RGLineSlotProps) => React.ReactNode;
|
|
197
|
+
}>;
|
|
198
|
+
export declare const RelationLinker: import('react').FC<import('react').PropsWithChildren<import('./types-react').RelationLinkerProps>>;
|
|
199
|
+
export { RGHooks as _RGHooks } from './relation-graph/src/hooks/RGHooks';
|
|
200
|
+
export declare const RGHooks: {
|
|
201
|
+
useRelationGraph: typeof import('./relation-graph/src/hooks/useRelationGraph').useRelationGraph;
|
|
202
|
+
useGraphInstance: typeof import('./relation-graph/src/hooks/useGraphInstance').useGraphInstance;
|
|
203
|
+
useAutoUpdateView: typeof import('./relation-graph/src/hooks/useGraphInstance').useAutoUpdateView;
|
|
204
|
+
useCreatingLine: typeof import('./relation-graph/src/hooks/useGraphStore').useCreatingLine;
|
|
205
|
+
useCreatingNode: typeof import('./relation-graph/src/hooks/useGraphStore').useCreatingNode;
|
|
206
|
+
useEditingNodes: typeof import('./relation-graph/src/hooks/useGraphStore').useEditingNodes;
|
|
207
|
+
useEditingLine: typeof import('./relation-graph/src/hooks/useGraphStore').useEditingLine;
|
|
208
|
+
useViewInformation: typeof import('./relation-graph/src/hooks/useGraphStore').useViewInformation;
|
|
209
|
+
useSelection: typeof import('./relation-graph/src/hooks/useGraphStore').useSelection;
|
|
210
|
+
useConnectingNode: typeof import('./relation-graph/src/hooks/useGraphStore').useConnectingNode;
|
|
211
|
+
useCheckedItem: typeof import('./relation-graph/src/hooks/useGraphStore').useCheckedItem;
|
|
212
|
+
useGraphStore: typeof import('./relation-graph/src/hooks/useGraphStore').useGraphStore;
|
|
213
|
+
};
|
|
214
|
+
export declare const useRelationGraph: typeof import('./relation-graph/src/hooks/useRelationGraph').useRelationGraph;
|
|
215
|
+
export declare const RGProvider: import('react').FC<import('react').PropsWithChildren<import('./types-react').RelationGraphWithWithCustomCore>>;
|
|
216
|
+
export { RelationGraphStoreContext, RelationGraphStoreContext as RGInstanceContext, RGUpdateContext, RGUpdateSignalContext as RGUpdateSingalContext, RGUpdateSignalContext } from './relation-graph/src/core4react/store/reducers/RGStore';
|
|
217
|
+
export type RelationGraphComponent = _RelationGraphComponent;
|
|
218
|
+
export declare const RelationGraph: import('react').ForwardRefExoticComponent<import('../../../types').RGListeners & import('./types-react').RelationGraphWithSlots & {
|
|
219
|
+
options: import('../../../types').RGOptions;
|
|
220
|
+
initialData?: import('../../../types').RGJsonData;
|
|
221
|
+
} & import('./types-react').RelationGraphWithWithCustomCore & {
|
|
222
|
+
children?: import('react').ReactNode | undefined;
|
|
223
|
+
} & import('react').RefAttributes<import('../../../types').RelationGraphExpose>>;
|
|
224
|
+
export default _RelationGraph;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
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>>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { RGLineSlotProps, RGNodeSlotProps } from '../../../../../../types';
|
|
3
|
+
import { RGNodeExpandHolderProps } from '../../../types-react';
|
|
4
|
+
export interface RGCanvasProps {
|
|
5
|
+
nodeSlot?: React.FC<RGNodeSlotProps> | ((props: RGNodeSlotProps) => React.ReactNode);
|
|
6
|
+
lineSlot?: React.FC<RGLineSlotProps> | ((props: RGLineSlotProps) => React.ReactNode);
|
|
7
|
+
canvasPlugSlot?: React.FC | React.ReactNode;
|
|
8
|
+
canvasPlugAboveSlot?: React.ReactNode;
|
|
9
|
+
backgroundSlot?: React.ReactNode;
|
|
10
|
+
nodeExpandButtonSlot?: React.FC<RGNodeExpandHolderProps> | ((props: RGNodeExpandHolderProps) => React.ReactNode);
|
|
11
|
+
}
|
|
12
|
+
declare const RGCanvas: React.FC<RGCanvasProps>;
|
|
13
|
+
export default RGCanvas;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { RGLineSlotProps, RGNodeSlotProps } from '../../../../../../types';
|
|
3
|
+
import { RGNodeExpandHolderProps } from '../../../types-react';
|
|
4
|
+
export interface RGCanvasContentProps {
|
|
5
|
+
nodeSlot?: React.FC<RGNodeSlotProps> | ((props: RGNodeSlotProps) => React.ReactNode);
|
|
6
|
+
lineSlot?: React.FC<RGLineSlotProps> | ((props: RGLineSlotProps) => React.ReactNode);
|
|
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
|
+
defaultLineTextOnPath?: boolean;
|
|
15
|
+
graphInstanceId?: string;
|
|
16
|
+
}
|
|
17
|
+
declare const RGCanvasContent: React.FC<RGCanvasContentProps>;
|
|
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
|
+
defaultLineTextOnPath?: 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
|
+
defaultLineTextOnPath?: 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
|
+
defaultLineTextOnPath?: 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;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { RGLinePathProps } from '../../../../../../types';
|
|
3
|
+
declare const RGLinePath: React.FC<RGLinePathProps & {
|
|
4
|
+
onLineClick: (e: React.MouseEvent | React.TouchEvent) => void;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}>;
|
|
7
|
+
export default RGLinePath;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { RGLineSlotProps, RGLinePeelProps } from '../../../../../../types';
|
|
3
|
+
declare const RGLinePeel: React.FC<RGLinePeelProps & {
|
|
4
|
+
lineSlot?: React.FC<RGLineSlotProps> | ((props: RGLineSlotProps) => React.ReactNode);
|
|
5
|
+
}>;
|
|
6
|
+
export default RGLinePeel;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
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
|
+
};
|
|
12
|
+
declare const RGNodePeel: React.FC<RGNodeProps>;
|
|
13
|
+
export default RGNodePeel;
|
package/types/packages/platforms/react/src/relation-graph/src/core4react/RelationLinkerCanvas.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React, PropsWithChildren } from 'react';
|
|
2
|
+
import { RGLineSlotProps } from '../../../../../../types';
|
|
3
|
+
declare const RelationLinkerCanvas: React.FC<PropsWithChildren<{
|
|
4
|
+
lineSlot?: React.FC<RGLineSlotProps> | ((props: RGLineSlotProps) => React.ReactNode);
|
|
5
|
+
canvasPlugBehindSlot?: React.ReactNode;
|
|
6
|
+
}>>;
|
|
7
|
+
export default RelationLinkerCanvas;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { RGJunctionPoint } from '../../../../../../../types';
|
|
3
|
+
declare const RGEditingConnectPoints: React.FC<{
|
|
4
|
+
mouseUpOnJunctionPointWithOffset: (junctionPoint: RGJunctionPoint, event: any) => void;
|
|
5
|
+
mouseUpOnJunctionPoint: (junctionPoint: RGJunctionPoint, event: any) => void;
|
|
6
|
+
}>;
|
|
7
|
+
export default RGEditingConnectPoints;
|
|
@@ -0,0 +1,4 @@
|
|
|
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
|
+
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>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { RGNodeSlotProps } from '../../../../../../../types';
|
|
3
|
+
export interface GraphOperateStuffProps {
|
|
4
|
+
nodeSlot?: React.FC<RGNodeSlotProps> | ((props: RGNodeSlotProps) => React.ReactNode);
|
|
5
|
+
}
|
|
6
|
+
declare const GraphOperateStuff: React.FC<GraphOperateStuffProps>;
|
|
7
|
+
export default GraphOperateStuff;
|