@relation-graph/vue3 3.0.8 → 3.0.10
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/README-zh.md +302 -0
- package/README.md +304 -0
- package/package.json +16 -2
- package/relation-graph.js +9 -9
- package/relation-graph.mjs +1532 -1418
- package/relation-graph.ssr.mjs +9722 -0
- package/relation-graph.umd.js +9 -9
- package/style.css +1 -0
- package/types/packages/platforms/react/src/index.d.ts +2 -218
- package/types/packages/platforms/react/src/index.shared.d.ts +218 -0
- package/types/packages/platforms/react/src/index.ssr.d.ts +2 -0
- package/types/packages/platforms/svelte/src/core4svelte/web-components/WebComponentStyleVariables.d.ts +4 -0
- package/types/packages/platforms/svelte/src/core4svelte/web-components/WebComponentUtils.d.ts +3 -2
- package/types/packages/platforms/svelte/src/index.d.ts +2 -229
- package/types/packages/platforms/svelte/src/index.shared.d.ts +229 -0
- package/types/packages/platforms/svelte/src/index.wc.d.ts +2 -0
- package/types/packages/platforms/vue3/src/index.d.ts +2 -182
- package/types/packages/platforms/vue3/src/index.shared.d.ts +182 -0
- package/types/packages/platforms/vue3/src/index.ssr.d.ts +2 -0
- package/types/packages/relation-graph-models/models/RelationGraphWith5Zoom.d.ts +3 -0
- package/types/packages/relation-graph-models/models/RelationGraphWith95Dom.d.ts +12 -0
- package/types/packages/relation-graph-models/utils/RGCommon.d.ts +2 -2
|
@@ -4,185 +4,5 @@
|
|
|
4
4
|
* Github: https://github.com/seeksdream/relation-graph
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { default as CenterLayout } from '../../../relation-graph-models/layouts/RGCenterLayout';
|
|
10
|
-
import { default as CircleLayout } from '../../../relation-graph-models/layouts/RGCircleLayout';
|
|
11
|
-
import { default as FixedLayout } from '../../../relation-graph-models/layouts/RGFixedLayout';
|
|
12
|
-
import { default as ForceLayout } from '../../../relation-graph-models/layouts/RGForceLayout';
|
|
13
|
-
import { default as RGFolderLayout } from '../../../relation-graph-models/layouts/RGFolderLayout';
|
|
14
|
-
import * as RGOptionsDataUtils from "../../../relation-graph-models/data/RGOptionsDataUtils";
|
|
15
|
-
import * as RGLineDataUtils from "../../../relation-graph-models/data/RGLineDataUtils";
|
|
16
|
-
import * as RGNodeDataUtils from "../../../relation-graph-models/data/RGNodeDataUtils";
|
|
17
|
-
export { RelationGraphCore } from '../../../relation-graph-models/models/RelationGraphCore';
|
|
18
|
-
export * from './types';
|
|
19
|
-
export * from './types-vue3';
|
|
20
|
-
export declare const version: string;
|
|
21
|
-
export declare const RGLayouts: {
|
|
22
|
-
BaseLayout: typeof BaseLayout;
|
|
23
|
-
BidirectionalTreeLayout: typeof BidirectionalTreeLayout;
|
|
24
|
-
CenterLayout: typeof CenterLayout;
|
|
25
|
-
CircleLayout: typeof CircleLayout;
|
|
26
|
-
FixedLayout: typeof FixedLayout;
|
|
27
|
-
ForceLayout: typeof ForceLayout;
|
|
28
|
-
RGFolderLayout: typeof RGFolderLayout;
|
|
29
|
-
};
|
|
30
|
-
export declare const RGUtils: {
|
|
31
|
-
RGOptionsDataUtils: typeof RGOptionsDataUtils;
|
|
32
|
-
RGLineDataUtils: typeof RGLineDataUtils;
|
|
33
|
-
RGNodeDataUtils: typeof RGNodeDataUtils;
|
|
34
|
-
RGGraphMath: {
|
|
35
|
-
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): {
|
|
36
|
-
x: number;
|
|
37
|
-
y: number;
|
|
38
|
-
};
|
|
39
|
-
getRectPointBasic(x1: number, y1: number, x2: number, y2: number, n1w: number, n1h: number, n2w: number, n2h: number): {
|
|
40
|
-
x: number;
|
|
41
|
-
y: number;
|
|
42
|
-
_case: string;
|
|
43
|
-
};
|
|
44
|
-
getRectJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
45
|
-
x: number;
|
|
46
|
-
y: number;
|
|
47
|
-
};
|
|
48
|
-
getRectHJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
49
|
-
x: number;
|
|
50
|
-
y: number;
|
|
51
|
-
};
|
|
52
|
-
getRectLeftJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
53
|
-
x: number;
|
|
54
|
-
y: number;
|
|
55
|
-
};
|
|
56
|
-
getRectRightJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
57
|
-
x: number;
|
|
58
|
-
y: number;
|
|
59
|
-
};
|
|
60
|
-
getRectTopJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
61
|
-
x: number;
|
|
62
|
-
y: number;
|
|
63
|
-
};
|
|
64
|
-
getRectBottomJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
65
|
-
x: number;
|
|
66
|
-
y: number;
|
|
67
|
-
};
|
|
68
|
-
getRectHorizontalLineJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
69
|
-
y: number;
|
|
70
|
-
x: number;
|
|
71
|
-
};
|
|
72
|
-
getRectVerticalLineLineJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
73
|
-
x: number;
|
|
74
|
-
y: number;
|
|
75
|
-
};
|
|
76
|
-
getRectVJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
77
|
-
y: number;
|
|
78
|
-
x: number;
|
|
79
|
-
};
|
|
80
|
-
getBorderPoint(x1: number, y1: number, x2: number, y2: number, n1w: number, n1h: number, n2w: number, n2h: number, n1style: number): {
|
|
81
|
-
x: number;
|
|
82
|
-
y: number;
|
|
83
|
-
};
|
|
84
|
-
getBorderPoint4MultiLine(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
85
|
-
x: number;
|
|
86
|
-
y: number;
|
|
87
|
-
};
|
|
88
|
-
getCirclePoint(x1: number, y1: number, x2: number, y2: number, n1w: number, n1h: number, n2w: number, n2h: number): {
|
|
89
|
-
x: number;
|
|
90
|
-
y: number;
|
|
91
|
-
};
|
|
92
|
-
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): {
|
|
93
|
-
x: number;
|
|
94
|
-
y: number;
|
|
95
|
-
};
|
|
96
|
-
getCirclePointBasic(x1: number, y1: number, x2: number, y2: number, n1w: number, n1h: number, n2w: number, n2h: number, radius: number): {
|
|
97
|
-
x: number;
|
|
98
|
-
y: number;
|
|
99
|
-
};
|
|
100
|
-
getCirclePointPlus(x1: number, y1: number, x2: number, y2: number, n1w: number, n1h: number, n2w: number, n2h: number): {
|
|
101
|
-
x: number;
|
|
102
|
-
y: number;
|
|
103
|
-
};
|
|
104
|
-
getOvalPoint(c_x: number, c_y: number, c_r: number, c_i: number, c_n: number, startAngle?: number): {
|
|
105
|
-
x: number;
|
|
106
|
-
y: number;
|
|
107
|
-
};
|
|
108
|
-
getRotatedPoint(x: number, y: number, c_x: number, c_y: number, rotateDeg: number): {
|
|
109
|
-
x: number;
|
|
110
|
-
y: number;
|
|
111
|
-
};
|
|
112
|
-
getFlippedX(x: number, c_x: number): number;
|
|
113
|
-
getFlippedY(y: number, c_y: number): number;
|
|
114
|
-
getAngleType(buffer_x: number, buffer_y: number): 1 | 2 | 3 | 4 | undefined;
|
|
115
|
-
getTextAngle(fx: number, fy: number, tx: number, ty: number): number;
|
|
116
|
-
};
|
|
117
|
-
RGNodesAnalyticUtils: {
|
|
118
|
-
getDescendantNodes(node: import('./types').RGNode, collectList?: import('./types').RGNode[]): import('./types').RGNode[];
|
|
119
|
-
isVisibleNode(thisNode: import('./types').RGNode, deep?: number): boolean;
|
|
120
|
-
isAllowShowNode(thisNode: import('./types').RGNode, deep?: number): boolean;
|
|
121
|
-
getNodeWidth(thisNode: import('./types').RGNode): number;
|
|
122
|
-
getNodeHeight(thisNode: import('./types').RGNode): number;
|
|
123
|
-
getNodeXByLotX(nodeAlignOption: {
|
|
124
|
-
alignItemsX: "start" | "center" | "end";
|
|
125
|
-
}, thisNode: import('./types').RGNode): number;
|
|
126
|
-
getNodeYByLotY(nodeAlignOption: {
|
|
127
|
-
alignItemsY: "start" | "center" | "end";
|
|
128
|
-
}, thisNode: import('./types').RGNode): number;
|
|
129
|
-
getNodeLotXY(nodeAlignOption: import('./types').RGLayoutOptions4Alignment, node: import('./types').RGNode): {
|
|
130
|
-
x: number;
|
|
131
|
-
y: number;
|
|
132
|
-
};
|
|
133
|
-
isRectangleOverlap(rectA: any, rectB: any): boolean;
|
|
134
|
-
isXOverlap(aX: number, bX: number, a_W: number, b_W: number): boolean;
|
|
135
|
-
isYOverlap(aY: number, bY: number, a_H: number, b_H: number): boolean;
|
|
136
|
-
shapesOverlap(nodeA: any, nodeB: any, shapeA?: number, shapeB?: number): boolean;
|
|
137
|
-
getNoOverlapLimitedPosition(rectA: any, newX: any, newY: any, rectB: any): {
|
|
138
|
-
x: any;
|
|
139
|
-
y: any;
|
|
140
|
-
};
|
|
141
|
-
flatNodeData(orignNodes: import('./types').JsonNode[], parentNode: import('./types').JsonNode | null, nodesCollect: import('./types').JsonNode[], linksCollect: import('./types').JsonLine[]): void;
|
|
142
|
-
};
|
|
143
|
-
RGEffectUtils: {
|
|
144
|
-
startDrag(e: MouseEvent | TouchEvent, startPositionOrModel: import('./types').RGCoordinate, onDragged: import('../../../relation-graph-models/utils/RGDragUtils').RGDraggedCallback, onDragging?: import('../../../relation-graph-models/utils/RGDragUtils').RGDraggingCallback | undefined): void;
|
|
145
|
-
onNodeMove(e: MouseEvent | TouchEvent): void;
|
|
146
|
-
onNodeDragend(e: MouseEvent | TouchEvent): void;
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
|
-
export declare const RGFakeNode: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
150
|
-
export declare const RGLinePath: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
151
|
-
export declare const RGLineText: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
152
|
-
export declare const RGDebugView: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
153
|
-
export declare const RGToolBar: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
154
|
-
export declare const RGNodeExpandHolder: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
155
|
-
export declare const RGMiniToolBar: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
156
|
-
export declare const RGMiniView: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
157
|
-
export declare const RGBackground: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
158
|
-
export declare const RGWatermark: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
159
|
-
export declare const RGEditingNodeController: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
160
|
-
export declare const RGEditingResize: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
161
|
-
export declare const RGEditingNearNodeWidget: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
162
|
-
export declare const RGEditingLineController: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
163
|
-
export declare const RGEditingConnectController: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
164
|
-
export declare const RGConnectSource: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
165
|
-
export declare const RGConnectTarget: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
166
|
-
export declare const RGEditingConnectPoints: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
167
|
-
export declare const RGEditingReferenceLine: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
168
|
-
export declare const RGHooks: {
|
|
169
|
-
useGraphInstance: typeof import('./relation-graph/src/hooks/useGraphInstance').useGraphInstance;
|
|
170
|
-
useRelationGraph: typeof import('./relation-graph/src/hooks/useRelationGraph').useRelationGraph;
|
|
171
|
-
useGraphStore: typeof import('./relation-graph/src/hooks/useGraphStore').useGraphStore;
|
|
172
|
-
useGraphData: typeof import('./relation-graph/src/hooks/useGraphData').useGraphData;
|
|
173
|
-
useGraphOptions: typeof import('./relation-graph/src/hooks/useGraphStore').useGraphOptions;
|
|
174
|
-
useCreatingLine: typeof import('./relation-graph/src/hooks/useGraphStore').useCreatingLine;
|
|
175
|
-
useCreatingNode: typeof import('./relation-graph/src/hooks/useGraphStore').useCreatingNode;
|
|
176
|
-
useEditingNodes: typeof import('./relation-graph/src/hooks/useGraphStore').useEditingNodes;
|
|
177
|
-
useEditingLine: typeof import('./relation-graph/src/hooks/useGraphStore').useEditingLine;
|
|
178
|
-
useViewInformation: typeof import('./relation-graph/src/hooks/useGraphStore').useViewInformation;
|
|
179
|
-
useSelection: typeof import('./relation-graph/src/hooks/useGraphStore').useSelection;
|
|
180
|
-
useConnectingNode: typeof import('./relation-graph/src/hooks/useGraphStore').useConnectingNode;
|
|
181
|
-
useCheckedItem: typeof import('./relation-graph/src/hooks/useGraphStore').useCheckedItem;
|
|
182
|
-
};
|
|
183
|
-
export declare const useRelationGraph: typeof import('./relation-graph/src/hooks/useRelationGraph').useRelationGraph;
|
|
184
|
-
export declare const RGProvider: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
185
|
-
export declare const RelationLinker: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
186
|
-
export * from './constants';
|
|
187
|
-
export declare const RelationGraph: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
188
|
-
export default RelationGraph;
|
|
7
|
+
export * from './index.shared';
|
|
8
|
+
export { default } from './index.shared';
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { default as BaseLayout } from '../../../relation-graph-models/layouts/RGBaseLayout';
|
|
2
|
+
import { default as BidirectionalTreeLayout } from '../../../relation-graph-models/layouts/RGTreeLayout';
|
|
3
|
+
import { default as CenterLayout } from '../../../relation-graph-models/layouts/RGCenterLayout';
|
|
4
|
+
import { default as CircleLayout } from '../../../relation-graph-models/layouts/RGCircleLayout';
|
|
5
|
+
import { default as FixedLayout } from '../../../relation-graph-models/layouts/RGFixedLayout';
|
|
6
|
+
import { default as ForceLayout } from '../../../relation-graph-models/layouts/RGForceLayout';
|
|
7
|
+
import { default as RGFolderLayout } from '../../../relation-graph-models/layouts/RGFolderLayout';
|
|
8
|
+
import * as RGOptionsDataUtils from "../../../relation-graph-models/data/RGOptionsDataUtils";
|
|
9
|
+
import * as RGLineDataUtils from "../../../relation-graph-models/data/RGLineDataUtils";
|
|
10
|
+
import * as RGNodeDataUtils from "../../../relation-graph-models/data/RGNodeDataUtils";
|
|
11
|
+
export { RelationGraphCore } from '../../../relation-graph-models/models/RelationGraphCore';
|
|
12
|
+
export * from './types';
|
|
13
|
+
export * from './types-vue3';
|
|
14
|
+
export declare const version: string;
|
|
15
|
+
export declare const RGLayouts: {
|
|
16
|
+
BaseLayout: typeof BaseLayout;
|
|
17
|
+
BidirectionalTreeLayout: typeof BidirectionalTreeLayout;
|
|
18
|
+
CenterLayout: typeof CenterLayout;
|
|
19
|
+
CircleLayout: typeof CircleLayout;
|
|
20
|
+
FixedLayout: typeof FixedLayout;
|
|
21
|
+
ForceLayout: typeof ForceLayout;
|
|
22
|
+
RGFolderLayout: typeof RGFolderLayout;
|
|
23
|
+
};
|
|
24
|
+
export declare const RGUtils: {
|
|
25
|
+
RGOptionsDataUtils: typeof RGOptionsDataUtils;
|
|
26
|
+
RGLineDataUtils: typeof RGLineDataUtils;
|
|
27
|
+
RGNodeDataUtils: typeof RGNodeDataUtils;
|
|
28
|
+
RGGraphMath: {
|
|
29
|
+
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): {
|
|
30
|
+
x: number;
|
|
31
|
+
y: number;
|
|
32
|
+
};
|
|
33
|
+
getRectPointBasic(x1: number, y1: number, x2: number, y2: number, n1w: number, n1h: number, n2w: number, n2h: number): {
|
|
34
|
+
x: number;
|
|
35
|
+
y: number;
|
|
36
|
+
_case: string;
|
|
37
|
+
};
|
|
38
|
+
getRectJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
39
|
+
x: number;
|
|
40
|
+
y: number;
|
|
41
|
+
};
|
|
42
|
+
getRectHJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
43
|
+
x: number;
|
|
44
|
+
y: number;
|
|
45
|
+
};
|
|
46
|
+
getRectLeftJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
47
|
+
x: number;
|
|
48
|
+
y: number;
|
|
49
|
+
};
|
|
50
|
+
getRectRightJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
51
|
+
x: number;
|
|
52
|
+
y: number;
|
|
53
|
+
};
|
|
54
|
+
getRectTopJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
55
|
+
x: number;
|
|
56
|
+
y: number;
|
|
57
|
+
};
|
|
58
|
+
getRectBottomJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
59
|
+
x: number;
|
|
60
|
+
y: number;
|
|
61
|
+
};
|
|
62
|
+
getRectHorizontalLineJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
63
|
+
y: number;
|
|
64
|
+
x: number;
|
|
65
|
+
};
|
|
66
|
+
getRectVerticalLineLineJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
67
|
+
x: number;
|
|
68
|
+
y: number;
|
|
69
|
+
};
|
|
70
|
+
getRectVJoinPoint(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
71
|
+
y: number;
|
|
72
|
+
x: number;
|
|
73
|
+
};
|
|
74
|
+
getBorderPoint(x1: number, y1: number, x2: number, y2: number, n1w: number, n1h: number, n2w: number, n2h: number, n1style: number): {
|
|
75
|
+
x: number;
|
|
76
|
+
y: number;
|
|
77
|
+
};
|
|
78
|
+
getBorderPoint4MultiLine(params: import('../../../relation-graph-models/utils/RGGraphMath').CreateJunctionPointParams): {
|
|
79
|
+
x: number;
|
|
80
|
+
y: number;
|
|
81
|
+
};
|
|
82
|
+
getCirclePoint(x1: number, y1: number, x2: number, y2: number, n1w: number, n1h: number, n2w: number, n2h: number): {
|
|
83
|
+
x: number;
|
|
84
|
+
y: number;
|
|
85
|
+
};
|
|
86
|
+
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): {
|
|
87
|
+
x: number;
|
|
88
|
+
y: number;
|
|
89
|
+
};
|
|
90
|
+
getCirclePointBasic(x1: number, y1: number, x2: number, y2: number, n1w: number, n1h: number, n2w: number, n2h: number, radius: number): {
|
|
91
|
+
x: number;
|
|
92
|
+
y: number;
|
|
93
|
+
};
|
|
94
|
+
getCirclePointPlus(x1: number, y1: number, x2: number, y2: number, n1w: number, n1h: number, n2w: number, n2h: number): {
|
|
95
|
+
x: number;
|
|
96
|
+
y: number;
|
|
97
|
+
};
|
|
98
|
+
getOvalPoint(c_x: number, c_y: number, c_r: number, c_i: number, c_n: number, startAngle?: number): {
|
|
99
|
+
x: number;
|
|
100
|
+
y: number;
|
|
101
|
+
};
|
|
102
|
+
getRotatedPoint(x: number, y: number, c_x: number, c_y: number, rotateDeg: number): {
|
|
103
|
+
x: number;
|
|
104
|
+
y: number;
|
|
105
|
+
};
|
|
106
|
+
getFlippedX(x: number, c_x: number): number;
|
|
107
|
+
getFlippedY(y: number, c_y: number): number;
|
|
108
|
+
getAngleType(buffer_x: number, buffer_y: number): 1 | 2 | 3 | 4 | undefined;
|
|
109
|
+
getTextAngle(fx: number, fy: number, tx: number, ty: number): number;
|
|
110
|
+
};
|
|
111
|
+
RGNodesAnalyticUtils: {
|
|
112
|
+
getDescendantNodes(node: import('./types').RGNode, collectList?: import('./types').RGNode[]): import('./types').RGNode[];
|
|
113
|
+
isVisibleNode(thisNode: import('./types').RGNode, deep?: number): boolean;
|
|
114
|
+
isAllowShowNode(thisNode: import('./types').RGNode, deep?: number): boolean;
|
|
115
|
+
getNodeWidth(thisNode: import('./types').RGNode): number;
|
|
116
|
+
getNodeHeight(thisNode: import('./types').RGNode): number;
|
|
117
|
+
getNodeXByLotX(nodeAlignOption: {
|
|
118
|
+
alignItemsX: "start" | "center" | "end";
|
|
119
|
+
}, thisNode: import('./types').RGNode): number;
|
|
120
|
+
getNodeYByLotY(nodeAlignOption: {
|
|
121
|
+
alignItemsY: "start" | "center" | "end";
|
|
122
|
+
}, thisNode: import('./types').RGNode): number;
|
|
123
|
+
getNodeLotXY(nodeAlignOption: import('./types').RGLayoutOptions4Alignment, node: import('./types').RGNode): {
|
|
124
|
+
x: number;
|
|
125
|
+
y: number;
|
|
126
|
+
};
|
|
127
|
+
isRectangleOverlap(rectA: any, rectB: any): boolean;
|
|
128
|
+
isXOverlap(aX: number, bX: number, a_W: number, b_W: number): boolean;
|
|
129
|
+
isYOverlap(aY: number, bY: number, a_H: number, b_H: number): boolean;
|
|
130
|
+
shapesOverlap(nodeA: any, nodeB: any, shapeA?: number, shapeB?: number): boolean;
|
|
131
|
+
getNoOverlapLimitedPosition(rectA: any, newX: any, newY: any, rectB: any): {
|
|
132
|
+
x: any;
|
|
133
|
+
y: any;
|
|
134
|
+
};
|
|
135
|
+
flatNodeData(orignNodes: import('./types').JsonNode[], parentNode: import('./types').JsonNode | null, nodesCollect: import('./types').JsonNode[], linksCollect: import('./types').JsonLine[]): void;
|
|
136
|
+
};
|
|
137
|
+
RGEffectUtils: {
|
|
138
|
+
startDrag(e: MouseEvent | TouchEvent, startPositionOrModel: import('./types').RGCoordinate, onDragged: import('../../../relation-graph-models/utils/RGDragUtils').RGDraggedCallback, onDragging?: import('../../../relation-graph-models/utils/RGDragUtils').RGDraggingCallback | undefined): void;
|
|
139
|
+
onNodeMove(e: MouseEvent | TouchEvent): void;
|
|
140
|
+
onNodeDragend(e: MouseEvent | TouchEvent): void;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
export declare const RGFakeNode: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
144
|
+
export declare const RGLinePath: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
145
|
+
export declare const RGLineText: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
146
|
+
export declare const RGDebugView: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
147
|
+
export declare const RGToolBar: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
148
|
+
export declare const RGNodeExpandHolder: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
149
|
+
export declare const RGMiniToolBar: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
150
|
+
export declare const RGMiniView: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
151
|
+
export declare const RGBackground: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
152
|
+
export declare const RGWatermark: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
153
|
+
export declare const RGEditingNodeController: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
154
|
+
export declare const RGEditingResize: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
155
|
+
export declare const RGEditingNearNodeWidget: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
156
|
+
export declare const RGEditingLineController: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
157
|
+
export declare const RGEditingConnectController: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
158
|
+
export declare const RGConnectSource: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
159
|
+
export declare const RGConnectTarget: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
160
|
+
export declare const RGEditingConnectPoints: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
161
|
+
export declare const RGEditingReferenceLine: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
162
|
+
export declare const RGHooks: {
|
|
163
|
+
useGraphInstance: typeof import('./relation-graph/src/hooks/useGraphInstance').useGraphInstance;
|
|
164
|
+
useRelationGraph: typeof import('./relation-graph/src/hooks/useRelationGraph').useRelationGraph;
|
|
165
|
+
useGraphStore: typeof import('./relation-graph/src/hooks/useGraphStore').useGraphStore;
|
|
166
|
+
useGraphData: typeof import('./relation-graph/src/hooks/useGraphData').useGraphData;
|
|
167
|
+
useGraphOptions: typeof import('./relation-graph/src/hooks/useGraphStore').useGraphOptions;
|
|
168
|
+
useCreatingLine: typeof import('./relation-graph/src/hooks/useGraphStore').useCreatingLine;
|
|
169
|
+
useCreatingNode: typeof import('./relation-graph/src/hooks/useGraphStore').useCreatingNode;
|
|
170
|
+
useEditingNodes: typeof import('./relation-graph/src/hooks/useGraphStore').useEditingNodes;
|
|
171
|
+
useEditingLine: typeof import('./relation-graph/src/hooks/useGraphStore').useEditingLine;
|
|
172
|
+
useViewInformation: typeof import('./relation-graph/src/hooks/useGraphStore').useViewInformation;
|
|
173
|
+
useSelection: typeof import('./relation-graph/src/hooks/useGraphStore').useSelection;
|
|
174
|
+
useConnectingNode: typeof import('./relation-graph/src/hooks/useGraphStore').useConnectingNode;
|
|
175
|
+
useCheckedItem: typeof import('./relation-graph/src/hooks/useGraphStore').useCheckedItem;
|
|
176
|
+
};
|
|
177
|
+
export declare const useRelationGraph: typeof import('./relation-graph/src/hooks/useRelationGraph').useRelationGraph;
|
|
178
|
+
export declare const RGProvider: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
179
|
+
export declare const RelationLinker: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
180
|
+
export * from './constants';
|
|
181
|
+
export declare const RelationGraph: import('vue').DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Record<string, unknown>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
182
|
+
export default RelationGraph;
|
|
@@ -6,6 +6,8 @@ export type RGClientXy = RGCoordinate;
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class RelationGraphWith5Zoom extends RelationGraphWith4Line {
|
|
8
8
|
constructor();
|
|
9
|
+
protected getClampedZoom(finalZoom: number): number;
|
|
10
|
+
protected applyZoom(newZoom: number, canvasOffset: RGCoordinate, e?: WheelEvent): void;
|
|
9
11
|
/**
|
|
10
12
|
* Zoom based on the current zoom level
|
|
11
13
|
* @param buff The additional zoom level to be added based on the current zoom level. A positive number indicates zooming in, and a negative number indicates zooming out, in percentage. For example: 10 means zoom in by 10%, -10 means zoom out by 10%
|
|
@@ -14,6 +16,7 @@ export declare class RelationGraphWith5Zoom extends RelationGraphWith4Line {
|
|
|
14
16
|
*
|
|
15
17
|
*/
|
|
16
18
|
zoom(buff: number, userZoomCenter?: RGClientXy, e?: WheelEvent): void;
|
|
19
|
+
protected setZoomAndOffset(finalZoom: number, canvasOffset: RGCoordinate, e?: WheelEvent): void;
|
|
17
20
|
/**
|
|
18
21
|
* @inner
|
|
19
22
|
* @protected
|
|
@@ -8,6 +8,15 @@ export declare class RelationGraphWith95Dom extends RelationGraphWith93Image {
|
|
|
8
8
|
protected resizeObserver: ResizeObserver;
|
|
9
9
|
protected resizeListenerMap: WeakMap<object, any>;
|
|
10
10
|
protected domToNodeIdMap: WeakMap<Element, string>;
|
|
11
|
+
private _trackpadGestureActive;
|
|
12
|
+
private _trackpadGestureStartZoom;
|
|
13
|
+
private _trackpadGestureAnchorView;
|
|
14
|
+
private _trackpadGestureStartOffset;
|
|
15
|
+
private _mouseMoveHandler?;
|
|
16
|
+
private _gestureStartHandler?;
|
|
17
|
+
private _gestureChangeHandler?;
|
|
18
|
+
private _gestureEndHandler?;
|
|
19
|
+
private _lastMouseClientXy?;
|
|
11
20
|
constructor();
|
|
12
21
|
/**
|
|
13
22
|
* [Used internally by relation-graph] This method will be called after the RelationGraph component is mounted, to facilitate DOM operations in the JS instance object (this will only obtain visual information of the DOM and monitor changes in size and position).
|
|
@@ -46,6 +55,9 @@ export declare class RelationGraphWith95Dom extends RelationGraphWith93Image {
|
|
|
46
55
|
protected destroyMutationObserver(): void;
|
|
47
56
|
private onKeyDownHanlder;
|
|
48
57
|
private onKeyUpHanlder;
|
|
58
|
+
private getTrackpadGestureAnchorView;
|
|
59
|
+
protected addTrackpadGestureListeners(): void;
|
|
60
|
+
protected removeTrackpadGestureListeners(): void;
|
|
49
61
|
/**
|
|
50
62
|
* @inner
|
|
51
63
|
* @private
|
|
@@ -7,8 +7,8 @@ export declare const getTextSize: (text: string) => number;
|
|
|
7
7
|
export declare const mergeRGObject: (oldObj: Record<string, any>, newObj: Record<string, any>) => Record<string, any>;
|
|
8
8
|
export declare const isSupportTouch: (e: MouseEvent | TouchEvent) => boolean;
|
|
9
9
|
export declare const getClientCoordinate: (e: MouseEvent | TouchEvent) => {
|
|
10
|
-
clientX:
|
|
11
|
-
clientY:
|
|
10
|
+
clientX: number;
|
|
11
|
+
clientY: number;
|
|
12
12
|
};
|
|
13
13
|
export declare const devLog: (...args: any[]) => void;
|
|
14
14
|
export declare const deprecatedWaring: (...args: any[]) => void;
|