forked from seeksdream/relation-graph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue2.d.ts
79 lines (74 loc) · 2.57 KB
/
vue2.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/**
* relation-graph
* Website: https://ssl.relation-graph.com/
* http://www.relation-graph.com/
* Github: https://github.com/seeksdream/relation-graph
* QQ: 3235808353
*
*/
import vue from 'vue';
import type { VNode } from 'vue';
import type { RelationGraphProps, RelationGraphInstance, RGJsonData, RGLayouter, RGOptions, RGRefreshCallback } from './types';
import BidirectionalTreeLayouter from './types/layouters/SeeksBidirectionalTreeLayouter';
import CenterLayouter from './types/layouters/SeeksCenterLayouter';
import CircleLayouter from './types/layouters/SeeksCircleLayouter';
import FixedLayouter from './types/layouters/SeeksFixedLayouter';
import ForceLayouter from './types/layouters/SeeksForceLayouter';
import * as SeeksRGLink from './types/models/RGLink';
import * as SeeksRGNode from './types/models/RGNode';
import * as SeeksRGOptions from './types/models/RGOptions';
import * as SeeksRGLayouter from './types/models/RGLayouter';
export * from './types/types';
export declare const Layout: {
BidirectionalTreeLayouter: typeof BidirectionalTreeLayouter;
CenterLayouter: typeof CenterLayouter;
CircleLayouter: typeof CircleLayouter;
FixedLayouter: typeof FixedLayouter;
ForceLayouter: typeof ForceLayouter;
};
export declare const RGLayouterUtils: typeof SeeksRGLayouter;
export declare const RGOptionsUtils: typeof SeeksRGOptions;
export declare const RGLinkUtils: typeof SeeksRGLink;
export declare const RGNodeUtils: typeof SeeksRGNode;
export declare class RelationGraphComponent extends vue {
options: RGOptions;
getInstance(): RelationGraphInstance;
setOptions(
options: RGOptions,
callback?: (graphInstance: RelationGraphInstance) => void
);
setJsonData(
jsonData: RGJsonData,
reLayoutOrCallback?: boolean | RGRefreshCallback,
callback?: (graphInstance: RelationGraphInstance) => void
);
appendJsonData(
jsonData: RGJsonData,
reLayout?: boolean | RGRefreshCallback,
callback?: (graphInstance: RelationGraphInstance) => void
);
setLayouter(layouterInstance: RGLayouter);
onGraphResize();
refresh(callback?: RGRefreshCallback);
focusRootNode();
focusNodeById(nodeId: string);
getNodeById(nodeId: string);
removeNodeById(nodeId: string);
getNodes();
getLinks();
getGraphJsonData();
getGraphJsonOptions();
updateView();
$props: RelationGraphProps;
$slots: {
default: VNode[];
canvasPlug: VNode[];
miniToolBar: VNode[];
miniViewPanel: VNode[];
graphPlug: VNode[];
node: VNode[];
line: VNode[];
};
}
export declare const version: string;
export default RelationGraphComponent;