@moxa/graph 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/worker-DNGSJ4Eg.js +13 -0
- package/index.cjs +3987 -0
- package/index.d.ts +5 -0
- package/index.d.ts.map +1 -0
- package/index.js +61993 -0
- package/lib/data/data.d.ts +2 -0
- package/lib/data/data.d.ts.map +1 -0
- package/lib/data/index.d.ts +2 -0
- package/lib/data/index.d.ts.map +1 -0
- package/lib/edge/edge.controller.d.ts +17 -0
- package/lib/edge/edge.controller.d.ts.map +1 -0
- package/lib/edge/edge.helper.d.ts +5 -0
- package/lib/edge/edge.helper.d.ts.map +1 -0
- package/lib/edge/index.d.ts +6 -0
- package/lib/edge/index.d.ts.map +1 -0
- package/lib/graph/extendGraph.d.ts +25 -0
- package/lib/graph/extendGraph.d.ts.map +1 -0
- package/lib/graph/graph.d.ts +325 -0
- package/lib/graph/graph.d.ts.map +1 -0
- package/lib/graph/index.d.ts +2 -0
- package/lib/graph/index.d.ts.map +1 -0
- package/lib/group/group.controller.d.ts +19 -0
- package/lib/group/group.controller.d.ts.map +1 -0
- package/lib/group/group.helper.d.ts +5 -0
- package/lib/group/group.helper.d.ts.map +1 -0
- package/lib/group/index.d.ts +3 -0
- package/lib/group/index.d.ts.map +1 -0
- package/lib/interaction/index.d.ts +5 -0
- package/lib/interaction/index.d.ts.map +1 -0
- package/lib/interaction/interaction.controller.d.ts +16 -0
- package/lib/interaction/interaction.controller.d.ts.map +1 -0
- package/lib/interaction/mapping/edge-mapping.behavior.d.ts +4 -0
- package/lib/interaction/mapping/edge-mapping.behavior.d.ts.map +1 -0
- package/lib/interaction/mapping/graph-mapping.behavior.d.ts +4 -0
- package/lib/interaction/mapping/graph-mapping.behavior.d.ts.map +1 -0
- package/lib/interaction/mapping/group-mapping.behavior.d.ts +4 -0
- package/lib/interaction/mapping/group-mapping.behavior.d.ts.map +1 -0
- package/lib/interaction/mapping/node-mapping.behavior.d.ts +4 -0
- package/lib/interaction/mapping/node-mapping.behavior.d.ts.map +1 -0
- package/lib/interaction/select-all-item.behavior.d.ts +6 -0
- package/lib/interaction/select-all-item.behavior.d.ts.map +1 -0
- package/lib/model/background.model.d.ts +7 -0
- package/lib/model/background.model.d.ts.map +1 -0
- package/lib/model/behavior.model.d.ts +15 -0
- package/lib/model/behavior.model.d.ts.map +1 -0
- package/lib/model/edge.model.d.ts +53 -0
- package/lib/model/edge.model.d.ts.map +1 -0
- package/lib/model/event.model.d.ts +6 -0
- package/lib/model/event.model.d.ts.map +1 -0
- package/lib/model/extension.model.d.ts +15 -0
- package/lib/model/extension.model.d.ts.map +1 -0
- package/lib/model/graph.model.d.ts +43 -0
- package/lib/model/graph.model.d.ts.map +1 -0
- package/lib/model/group.model.d.ts +61 -0
- package/lib/model/group.model.d.ts.map +1 -0
- package/lib/model/icon.model.d.ts +9 -0
- package/lib/model/icon.model.d.ts.map +1 -0
- package/lib/model/image.model.d.ts +8 -0
- package/lib/model/image.model.d.ts.map +1 -0
- package/lib/model/index.d.ts +15 -0
- package/lib/model/index.d.ts.map +1 -0
- package/lib/model/item.model.d.ts +11 -0
- package/lib/model/item.model.d.ts.map +1 -0
- package/lib/model/label.model.d.ts +17 -0
- package/lib/model/label.model.d.ts.map +1 -0
- package/lib/model/layout.model.d.ts +2 -0
- package/lib/model/layout.model.d.ts.map +1 -0
- package/lib/model/node.model.d.ts +58 -0
- package/lib/model/node.model.d.ts.map +1 -0
- package/lib/model/plugin.model.d.ts +32 -0
- package/lib/model/plugin.model.d.ts.map +1 -0
- package/lib/model/shape.model.d.ts +8 -0
- package/lib/model/shape.model.d.ts.map +1 -0
- package/lib/model/theme.model.d.ts +7 -0
- package/lib/model/theme.model.d.ts.map +1 -0
- package/lib/node/index.d.ts +3 -0
- package/lib/node/index.d.ts.map +1 -0
- package/lib/node/node.controller.d.ts +21 -0
- package/lib/node/node.controller.d.ts.map +1 -0
- package/lib/node/node.helper.d.ts +5 -0
- package/lib/node/node.helper.d.ts.map +1 -0
- package/lib/plugin/index.d.ts +4 -0
- package/lib/plugin/index.d.ts.map +1 -0
- package/lib/plugin/minimap.d.ts +3 -0
- package/lib/plugin/minimap.d.ts.map +1 -0
- package/lib/plugin/toolbar.d.ts +3 -0
- package/lib/plugin/toolbar.d.ts.map +1 -0
- package/lib/plugin/tooltip.d.ts +3 -0
- package/lib/plugin/tooltip.d.ts.map +1 -0
- package/lib/themes/dark.theme.d.ts +4 -0
- package/lib/themes/dark.theme.d.ts.map +1 -0
- package/lib/themes/index.d.ts +4 -0
- package/lib/themes/index.d.ts.map +1 -0
- package/lib/themes/light.theme.d.ts +4 -0
- package/lib/themes/light.theme.d.ts.map +1 -0
- package/package.json +9 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/data/data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/data/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EdgeDisplayModel, EdgeShapeStyles, ID } from '@antv/g6';
|
|
2
|
+
import { MxEdgeArrow, MxEdgeEvents, MxEdgeLabel, MxEdgeModel } from '../model/index.ts';
|
|
3
|
+
import { MxGraph } from '../graph';
|
|
4
|
+
export declare class MxEdgeController {
|
|
5
|
+
private mxGraph;
|
|
6
|
+
events: MxEdgeEvents;
|
|
7
|
+
private supportEvents;
|
|
8
|
+
constructor(mxGraph: MxGraph);
|
|
9
|
+
private initEvents;
|
|
10
|
+
private registryUpdateEdgeStates;
|
|
11
|
+
private registryChangeStates;
|
|
12
|
+
edgeMapper(edge: MxEdgeModel): EdgeDisplayModel;
|
|
13
|
+
convertEdgeLabel(label: MxEdgeLabel): EdgeShapeStyles['labelShape'];
|
|
14
|
+
convertEdgeArrows(arrows: MxEdgeArrow): EdgeShapeStyles['keyShape'];
|
|
15
|
+
showHideEdges(id: ID | ID[], action: 'show' | 'hide'): void;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=edge.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edge.controller.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/edge/edge.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,EACL,WAAW,EAEX,YAAY,EACZ,WAAW,EACX,WAAW,EACZ,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAInC,qBAAa,gBAAgB;IAWf,OAAO,CAAC,OAAO;IAV3B,MAAM,EAAG,YAAY,CAAC;IACtB,OAAO,CAAC,aAAa,CAOnB;gBAEkB,OAAO,EAAE,OAAO;IAQpC,OAAO,CAAC,UAAU;IAiBlB,OAAO,CAAC,wBAAwB;IAUhC,OAAO,CAAC,oBAAoB;IAY5B,UAAU,CAAC,IAAI,EAAE,WAAW,GAAG,gBAAgB;IA2D/C,gBAAgB,CAAC,KAAK,EAAE,WAAW,GAAG,eAAe,CAAC,YAAY,CAAC;IAMnE,iBAAiB,CAAC,MAAM,EAAE,WAAW,GAAG,eAAe,CAAC,UAAU,CAAC;IASnE,aAAa,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM;CAUrD"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { EdgeUserModel } from '@antv/g6';
|
|
2
|
+
import { MxEdgeModel, MxEdgeUserData } from '../model';
|
|
3
|
+
export declare function convertEdge2Model(edge: MxEdgeUserData): MxEdgeModel | EdgeUserModel;
|
|
4
|
+
export declare function convertEdge2Data(edge: MxEdgeModel | EdgeUserModel): MxEdgeUserData;
|
|
5
|
+
//# sourceMappingURL=edge.helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edge.helper.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/edge/edge.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAEvD,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,cAAc,GACnB,WAAW,GAAG,aAAa,CAU7B;AAED,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,WAAW,GAAG,aAAa,GAChC,cAAc,CAShB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { G6AcceptEdgeType, MxEdgeTypeSupport } from '../model/index.ts';
|
|
2
|
+
export * from './edge.controller';
|
|
3
|
+
export * from './edge.helper';
|
|
4
|
+
export declare const DEFAULT_USER_EDGE: MxEdgeTypeSupport[];
|
|
5
|
+
export declare const MxEdgeTypeMap: Record<MxEdgeTypeSupport, G6AcceptEdgeType>;
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/edge/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACxE,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAE9B,eAAO,MAAM,iBAAiB,EAAE,iBAAiB,EAAuB,CAAC;AAEzE,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,iBAAiB,EAAE,gBAAgB,CAQrE,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MxGraphConfig } from '../model';
|
|
2
|
+
export declare function extendGraph(config: MxGraphConfig): new (spec: import("@antv/g6").Specification<{
|
|
3
|
+
'drag-canvas': typeof import("@antv/g6/lib/stdlib/behavior").DragCanvas;
|
|
4
|
+
'zoom-canvas': typeof import("@antv/g6/lib/stdlib/behavior").ZoomCanvas;
|
|
5
|
+
'drag-node': typeof import("@antv/g6/lib/stdlib/behavior").DragNode;
|
|
6
|
+
'drag-combo': typeof import("@antv/g6/lib/stdlib/behavior").DragCombo;
|
|
7
|
+
'collapse-expand-combo': typeof import("@antv/g6/lib/stdlib/behavior").CollapseExpandCombo;
|
|
8
|
+
'collapse-expand-tree': typeof import("@antv/g6/lib/stdlib/behavior").CollapseExpandTree;
|
|
9
|
+
'click-select': typeof import("@antv/g6/lib/stdlib/behavior").ClickSelect;
|
|
10
|
+
} & import("@antv/g6").BehaviorRegistry, import("@antv/g6/lib/types/theme").ThemeRegistry & {
|
|
11
|
+
spec: typeof import("@antv/g6/lib/stdlib/themeSolver").SpecThemeSolver;
|
|
12
|
+
subject: typeof import("@antv/g6/lib/stdlib/themeSolver").SubjectThemeSolver;
|
|
13
|
+
}>) => import("@antv/g6/lib/runtime/graph").Graph<{
|
|
14
|
+
'drag-canvas': typeof import("@antv/g6/lib/stdlib/behavior").DragCanvas;
|
|
15
|
+
'zoom-canvas': typeof import("@antv/g6/lib/stdlib/behavior").ZoomCanvas;
|
|
16
|
+
'drag-node': typeof import("@antv/g6/lib/stdlib/behavior").DragNode;
|
|
17
|
+
'drag-combo': typeof import("@antv/g6/lib/stdlib/behavior").DragCombo;
|
|
18
|
+
'collapse-expand-combo': typeof import("@antv/g6/lib/stdlib/behavior").CollapseExpandCombo;
|
|
19
|
+
'collapse-expand-tree': typeof import("@antv/g6/lib/stdlib/behavior").CollapseExpandTree;
|
|
20
|
+
'click-select': typeof import("@antv/g6/lib/stdlib/behavior").ClickSelect;
|
|
21
|
+
} & import("@antv/g6").BehaviorRegistry, import("@antv/g6/lib/types/theme").ThemeRegistry & {
|
|
22
|
+
spec: typeof import("@antv/g6/lib/stdlib/themeSolver").SpecThemeSolver;
|
|
23
|
+
subject: typeof import("@antv/g6/lib/stdlib/themeSolver").SubjectThemeSolver;
|
|
24
|
+
}>;
|
|
25
|
+
//# sourceMappingURL=extendGraph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extendGraph.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/graph/extendGraph.ts"],"names":[],"mappings":"AAGA,OAAO,EAAqB,aAAa,EAAE,MAAM,UAAU,CAAC;AAE5D,wBAAgB,WAAW,CAAC,MAAM,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;GAgDhD"}
|
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
import { ID } from '@antv/g6';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
import { MxEdgeModel, MxEdgeState, MxEdgeUserData, MxGraphConfig, MxGraphData, MxGraphRenderer, MxGraphUserEvents, MxGroupUserData, MxGroupUserDataPartial, MxItemType, MxLayoutType, MxNodeState, MxNodeUserData, MxNodeUserDataPartial, MxPluginConfig, MxThemeConfig, MxUserBehavior, StandardGraph } from '../model';
|
|
4
|
+
declare class MxGraph {
|
|
5
|
+
private config;
|
|
6
|
+
graph: StandardGraph;
|
|
7
|
+
private nodeController;
|
|
8
|
+
private edgeController;
|
|
9
|
+
private groupController;
|
|
10
|
+
private interactionController;
|
|
11
|
+
private supportEvents;
|
|
12
|
+
events: MxGraphUserEvents;
|
|
13
|
+
loadGraph$: Subject<StandardGraph>;
|
|
14
|
+
constructor(config: MxGraphConfig);
|
|
15
|
+
isIsolated(nodeId: ID): boolean;
|
|
16
|
+
private initEvents;
|
|
17
|
+
private convertGraphConfig;
|
|
18
|
+
private convertGraphData;
|
|
19
|
+
private convertGraphRenderer;
|
|
20
|
+
/**
|
|
21
|
+
* Get node data by id
|
|
22
|
+
* @param {ID} id node id
|
|
23
|
+
* @returns MxNodeData | null
|
|
24
|
+
*/
|
|
25
|
+
getNodeData(id: ID): MxNodeUserData | null;
|
|
26
|
+
/**
|
|
27
|
+
* Get all nodes data
|
|
28
|
+
* @returns MxNodeUserData[]
|
|
29
|
+
*/
|
|
30
|
+
getAllNodesData(): MxNodeUserData[];
|
|
31
|
+
/**
|
|
32
|
+
* Get all edge data
|
|
33
|
+
* @param {string} id node id
|
|
34
|
+
* @returns MxNodeData | null
|
|
35
|
+
*/
|
|
36
|
+
getAllEdgesData(): MxEdgeUserData[];
|
|
37
|
+
/**
|
|
38
|
+
* Get edge data by id
|
|
39
|
+
* @param {string} id edge id
|
|
40
|
+
* @returns MxEdgeUserData | null
|
|
41
|
+
*/
|
|
42
|
+
getEdgeData(id: string): MxEdgeUserData | null;
|
|
43
|
+
/**
|
|
44
|
+
* Get all group data
|
|
45
|
+
* @returns MxGroupUserData[]
|
|
46
|
+
*/
|
|
47
|
+
getAllGroupsData(): MxGroupUserData[];
|
|
48
|
+
/**
|
|
49
|
+
* Get group data by id
|
|
50
|
+
* @param {string} id group id
|
|
51
|
+
* @returns MxGroupData | null
|
|
52
|
+
*/
|
|
53
|
+
getGroupData(id: string): MxGroupUserData | null;
|
|
54
|
+
/**
|
|
55
|
+
* Get item type by id
|
|
56
|
+
* @param {string} id item id
|
|
57
|
+
* @returns MxItemType
|
|
58
|
+
*/
|
|
59
|
+
getItemType(id: string): MxItemType | null;
|
|
60
|
+
/**
|
|
61
|
+
* Get item state by id or filter function
|
|
62
|
+
* @param {string} id node id
|
|
63
|
+
* @param {Function} filterFunction
|
|
64
|
+
* @returns MxItemState
|
|
65
|
+
*/
|
|
66
|
+
getItemByState(): void;
|
|
67
|
+
/**
|
|
68
|
+
* Get Item state
|
|
69
|
+
* @param id - ID
|
|
70
|
+
* @returns void
|
|
71
|
+
*/
|
|
72
|
+
getItemAllStates(id: ID): void;
|
|
73
|
+
/**
|
|
74
|
+
* Get children data by group id
|
|
75
|
+
* @param {string} id group id
|
|
76
|
+
* @returns MxNodeData[]
|
|
77
|
+
*/
|
|
78
|
+
getChildrenData(id: string): MxNodeUserData[];
|
|
79
|
+
/**
|
|
80
|
+
* Get neighbor node data by node id
|
|
81
|
+
* @param {string} id node id
|
|
82
|
+
* @returns MxNodeData[]
|
|
83
|
+
*/
|
|
84
|
+
getNeighborNodes(nodeId: ID): import("@antv/g6").NodeModel[];
|
|
85
|
+
/**
|
|
86
|
+
* Get current zoom level
|
|
87
|
+
* @returns number
|
|
88
|
+
*/
|
|
89
|
+
getZoom(): number;
|
|
90
|
+
/**
|
|
91
|
+
* Render nodes, edges, groups to graph
|
|
92
|
+
* @param {MxGraphData} data
|
|
93
|
+
* @returns void
|
|
94
|
+
*/
|
|
95
|
+
renderData(data: MxGraphData): void;
|
|
96
|
+
/**
|
|
97
|
+
* Change graph renderer
|
|
98
|
+
* @param {MxGraphRenderer} renderer
|
|
99
|
+
* @returns void
|
|
100
|
+
*/
|
|
101
|
+
changeRenderer(renderer: MxGraphRenderer): void;
|
|
102
|
+
/**
|
|
103
|
+
* Update theme
|
|
104
|
+
* @param theme: MxThemeConfig
|
|
105
|
+
* @returns void
|
|
106
|
+
*/
|
|
107
|
+
changeTheme(theme: MxThemeConfig): void;
|
|
108
|
+
/**
|
|
109
|
+
* Update theme
|
|
110
|
+
* @param {MxLayoutType[]} behaviors - multiple behaviors
|
|
111
|
+
* @returns void
|
|
112
|
+
*/
|
|
113
|
+
changeLayout(layout: MxLayoutType): void;
|
|
114
|
+
/**
|
|
115
|
+
* Enable/disable behaviors
|
|
116
|
+
* @param {MxUserBehavior} behavior - one behavior
|
|
117
|
+
* @param {MxBehaviorType[]} behavior - multiple behaviors
|
|
118
|
+
* @returns void
|
|
119
|
+
*/
|
|
120
|
+
changeBehavior(behavior: MxUserBehavior | MxUserBehavior[], enable: boolean): void;
|
|
121
|
+
/**
|
|
122
|
+
* Zoom view relative level
|
|
123
|
+
* @param
|
|
124
|
+
* @returns void
|
|
125
|
+
*/
|
|
126
|
+
zoom(ratio: number): void;
|
|
127
|
+
/**
|
|
128
|
+
* Zoom view to specific level
|
|
129
|
+
* @param
|
|
130
|
+
* @returns void
|
|
131
|
+
*/
|
|
132
|
+
zoomTo(ratio: number): void;
|
|
133
|
+
/**
|
|
134
|
+
* Make view to fit content
|
|
135
|
+
* @returns void
|
|
136
|
+
*/
|
|
137
|
+
fitView(): void;
|
|
138
|
+
/**
|
|
139
|
+
* Make view to fit center
|
|
140
|
+
* @returns void
|
|
141
|
+
*/
|
|
142
|
+
fitCenter(): void;
|
|
143
|
+
/**
|
|
144
|
+
* Focus item and move center
|
|
145
|
+
* @param {ID} id item id
|
|
146
|
+
* @returns void
|
|
147
|
+
*/
|
|
148
|
+
focusItem(id: ID): void;
|
|
149
|
+
/**
|
|
150
|
+
* Undo task
|
|
151
|
+
* @returns void
|
|
152
|
+
*/
|
|
153
|
+
undo(): void;
|
|
154
|
+
/**
|
|
155
|
+
* Redo task
|
|
156
|
+
* @returns void
|
|
157
|
+
*/
|
|
158
|
+
redo(): void;
|
|
159
|
+
/**
|
|
160
|
+
* Clear all items
|
|
161
|
+
* @returns void
|
|
162
|
+
*/
|
|
163
|
+
clear(): void;
|
|
164
|
+
/**
|
|
165
|
+
* Add one or multiple nodes to graph
|
|
166
|
+
* @param node - MxNodeUserData
|
|
167
|
+
* @param node - MxNodeUserData[]
|
|
168
|
+
* @returns void
|
|
169
|
+
*/
|
|
170
|
+
addNode(node: MxNodeUserData | MxNodeUserData[]): void;
|
|
171
|
+
/**
|
|
172
|
+
* Remove one or multiple nodes from graph
|
|
173
|
+
* @param id - string
|
|
174
|
+
* @param id - string[]
|
|
175
|
+
* @returns void
|
|
176
|
+
*/
|
|
177
|
+
removeNode(id: ID | ID[]): void;
|
|
178
|
+
/**
|
|
179
|
+
* Update one or multiple nodes data or config
|
|
180
|
+
* @param node - MxNodeData (need to provide id)
|
|
181
|
+
* @param node - MxNodeData[] (need to provide id)
|
|
182
|
+
* @returns void
|
|
183
|
+
*/
|
|
184
|
+
updateNode(node: MxNodeUserDataPartial | MxNodeUserDataPartial[]): void;
|
|
185
|
+
/**
|
|
186
|
+
* Show one or multiple nodes
|
|
187
|
+
* @param id - ID
|
|
188
|
+
* @param id - ID[]
|
|
189
|
+
* @returns void
|
|
190
|
+
*/
|
|
191
|
+
showNode(id: ID | ID[]): void;
|
|
192
|
+
/**
|
|
193
|
+
* Hide one or multiple nodes
|
|
194
|
+
* @param id - ID
|
|
195
|
+
* @param id - ID[]
|
|
196
|
+
* @returns void
|
|
197
|
+
*/
|
|
198
|
+
hideNode(id: ID | ID[]): void;
|
|
199
|
+
/**
|
|
200
|
+
* Update node state
|
|
201
|
+
* @param id - ID
|
|
202
|
+
* @param id - ID[]
|
|
203
|
+
* @param state - MxNodeState[]
|
|
204
|
+
* @param value - boolean
|
|
205
|
+
* @returns void
|
|
206
|
+
*/
|
|
207
|
+
updateNodeStates(id: ID | ID[], states: MxNodeState[], value: boolean): void;
|
|
208
|
+
/**
|
|
209
|
+
* Clear node state
|
|
210
|
+
* @param id - ID
|
|
211
|
+
* @param id - ID[]
|
|
212
|
+
* @returns void
|
|
213
|
+
*/
|
|
214
|
+
clearNodeStates(id: ID | ID[]): void;
|
|
215
|
+
/**
|
|
216
|
+
* Add one or multiple edges to graph
|
|
217
|
+
* @param edge - MxEdgeUserData
|
|
218
|
+
* @param edge - MxEdgeUserData[]
|
|
219
|
+
* @returns void
|
|
220
|
+
*/
|
|
221
|
+
addEdge(edges: MxEdgeUserData[]): void;
|
|
222
|
+
/**
|
|
223
|
+
* Remove one or multiple edges to graph
|
|
224
|
+
* @param id - ID
|
|
225
|
+
* @param id - ID[]
|
|
226
|
+
* @returns void
|
|
227
|
+
*/
|
|
228
|
+
removeEdge(edges: ID | ID[]): void;
|
|
229
|
+
/**
|
|
230
|
+
* Update one or multiple edges to graph
|
|
231
|
+
* @param edge - MxEdgeUserData (need to provide id)
|
|
232
|
+
* @param edge - MxEdgeUserData[] (need to provide id)
|
|
233
|
+
* @returns void
|
|
234
|
+
*/
|
|
235
|
+
updateEdge(edge: MxEdgeUserData[]): void;
|
|
236
|
+
/**
|
|
237
|
+
* Show one or multiple edges
|
|
238
|
+
* @param id - ID
|
|
239
|
+
* @param id - ID[]
|
|
240
|
+
* @returns void
|
|
241
|
+
*/
|
|
242
|
+
showEdge(id: ID | ID[]): void;
|
|
243
|
+
/**
|
|
244
|
+
* Hide one or multiple edges
|
|
245
|
+
* @param id - ID
|
|
246
|
+
* @param id - ID[]
|
|
247
|
+
* @returns void
|
|
248
|
+
*/
|
|
249
|
+
hideEdge(id: ID | ID[]): void;
|
|
250
|
+
/**
|
|
251
|
+
* Update edge state
|
|
252
|
+
* @param id - ID
|
|
253
|
+
* @param id - ID[]
|
|
254
|
+
* @param state - MxEdgeState[]
|
|
255
|
+
* @param value - boolean
|
|
256
|
+
* @returns void
|
|
257
|
+
*/
|
|
258
|
+
updateEdgeState(id: ID | ID[], states: MxEdgeState[], value: boolean): void;
|
|
259
|
+
/**
|
|
260
|
+
* get edge state
|
|
261
|
+
* @param id - ID
|
|
262
|
+
* @param id - ID[]
|
|
263
|
+
* @param state
|
|
264
|
+
* @returns void
|
|
265
|
+
*/
|
|
266
|
+
getEdgeState(edge: string): MxEdgeModel;
|
|
267
|
+
/**
|
|
268
|
+
* Add one or multiple groups to graph
|
|
269
|
+
* @param group - MxGroupUserData
|
|
270
|
+
* @param group - MxGroupUserData[]
|
|
271
|
+
* @returns void
|
|
272
|
+
*/
|
|
273
|
+
addGroup(group: MxGroupUserData | MxGroupUserData[]): void;
|
|
274
|
+
/**
|
|
275
|
+
* Remove one or multiple groups from graph
|
|
276
|
+
* @param id - ID
|
|
277
|
+
* @param id - ID[]
|
|
278
|
+
* @returns void
|
|
279
|
+
*/
|
|
280
|
+
removeGroup(id: ID | ID[]): void;
|
|
281
|
+
/**
|
|
282
|
+
* Update one or multiple nodes data or config
|
|
283
|
+
* @param group - MxGroupData (need to provide id)
|
|
284
|
+
* @param group - MxGroupData[] (need to provide id)
|
|
285
|
+
* @returns void
|
|
286
|
+
*/
|
|
287
|
+
updateGroup(group: MxGroupUserDataPartial | MxGroupUserDataPartial[]): void;
|
|
288
|
+
/**
|
|
289
|
+
* Show one or multiple groups
|
|
290
|
+
* @param id - ID
|
|
291
|
+
* @param id - ID[]
|
|
292
|
+
* @returns void
|
|
293
|
+
*/
|
|
294
|
+
showGroup(id: ID | ID[]): void;
|
|
295
|
+
/**
|
|
296
|
+
* Hide one or multiple groups
|
|
297
|
+
* @param id - ID
|
|
298
|
+
* @param id - ID[]
|
|
299
|
+
* @returns void
|
|
300
|
+
*/
|
|
301
|
+
hideGroup(id: ID | ID[]): void;
|
|
302
|
+
/**
|
|
303
|
+
* Expand one or multiple groups
|
|
304
|
+
* @param id - ID
|
|
305
|
+
* @param id - ID[]
|
|
306
|
+
* @returns void
|
|
307
|
+
*/
|
|
308
|
+
expandGroup(id: ID | ID[]): void;
|
|
309
|
+
/**
|
|
310
|
+
* Collapse one or multiple groups
|
|
311
|
+
* @param id - ID
|
|
312
|
+
* @param id - ID[]
|
|
313
|
+
* @returns void
|
|
314
|
+
*/
|
|
315
|
+
collapseGroup(id: ID | ID[]): void;
|
|
316
|
+
addPlugin(plugin: MxPluginConfig | MxPluginConfig[]): void;
|
|
317
|
+
updatePlugin(plugin: MxPluginConfig | MxPluginConfig[]): void;
|
|
318
|
+
removePlugin(key: string | string[]): void;
|
|
319
|
+
/**
|
|
320
|
+
* Dump all info for debug
|
|
321
|
+
*/
|
|
322
|
+
dumpInfo(): void;
|
|
323
|
+
}
|
|
324
|
+
export { MxGraph };
|
|
325
|
+
//# sourceMappingURL=graph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/graph/graph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,EAAE,EAAiB,MAAM,UAAU,CAAC;AAIxD,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAS/B,OAAO,EAEL,WAAW,EACX,WAAW,EACX,cAAc,EACd,aAAa,EACb,WAAW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AE,EAAE,GAAG,EAAE,EAAE,GAAG,IAAI;IAI9B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,GAAG,IAAI;IAIhC;;;;;OAKG;IACH,aAAa,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,GAAG,IAAI;IAMlC,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,cAAc,EAAE,GAAG,IAAI;IAQ1D,YAAY,CAAC,MAAM,EAAE,cAAc,GAAG,cAAc,EAAE,GAAG,IAAI;IAU7D,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI;IAQ1C;;OAEG;IACH,QAAQ;CAgBT;AAED,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/graph/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ComboDisplayModel, ComboShapeStyles } from '@antv/g6';
|
|
2
|
+
import { ItemShapeStyles } from '@antv/g6/lib/types/item';
|
|
3
|
+
import { MxGraph } from '../graph';
|
|
4
|
+
import { MxGroupEvents, MxGroupLabelConfig, MxGroupModel, MxGroupType, MxIconConfig } from '../model';
|
|
5
|
+
import { MxImageConfig } from '../model/image.model';
|
|
6
|
+
export declare class MxGroupController {
|
|
7
|
+
private mxGraph;
|
|
8
|
+
events: MxGroupEvents;
|
|
9
|
+
private supportEvents;
|
|
10
|
+
constructor(mxGraph: MxGraph);
|
|
11
|
+
private handleCollapseGroups;
|
|
12
|
+
initEvents(): void;
|
|
13
|
+
groupMapper(group: MxGroupModel): ComboDisplayModel;
|
|
14
|
+
convertGroupType(type: MxGroupType): "circle-combo" | "rect-combo";
|
|
15
|
+
convertIconShape(config: MxIconConfig): ItemShapeStyles['iconShape'];
|
|
16
|
+
convertKeyShape(config: MxImageConfig): ItemShapeStyles['keyShape'];
|
|
17
|
+
convertLabelShape(label: MxGroupLabelConfig): ComboShapeStyles['labelShape'];
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=group.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.controller.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/group/group.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEnC,OAAO,EAEL,aAAa,EACb,kBAAkB,EAClB,YAAY,EACZ,WAAW,EACX,YAAY,EACb,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAGrD,qBAAa,iBAAiB;IAShB,OAAO,CAAC,OAAO;IAR3B,MAAM,EAAG,aAAa,CAAC;IACvB,OAAO,CAAC,aAAa,CAKnB;gBAEkB,OAAO,EAAE,OAAO;IAOpC,OAAO,CAAC,oBAAoB,CAY1B;IAEF,UAAU;IAiBV,WAAW,CAAC,KAAK,EAAE,YAAY,GAAG,iBAAiB;IA+EnD,gBAAgB,CAAC,IAAI,EAAE,WAAW;IAUlC,gBAAgB,CAAC,MAAM,EAAE,YAAY,GAAG,eAAe,CAAC,WAAW,CAAC;IAapE,eAAe,CAAC,MAAM,EAAE,aAAa,GAAG,eAAe,CAAC,UAAU,CAAC;IASnE,iBAAiB,CAAC,KAAK,EAAE,kBAAkB,GAAG,gBAAgB,CAAC,YAAY,CAAC;CAc7E"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ComboDisplayModel, ComboUserModel } from '@antv/g6';
|
|
2
|
+
import { MxGroupModel, MxGroupUserData, MxGroupUserDataPartial } from '../model';
|
|
3
|
+
export declare function convertGroup2Model(node: MxGroupUserData | MxGroupUserDataPartial): MxGroupModel | ComboUserModel | ComboDisplayModel;
|
|
4
|
+
export declare function convertGroup2Data(group: MxGroupModel | ComboUserModel | ComboDisplayModel): MxGroupUserData;
|
|
5
|
+
//# sourceMappingURL=group.helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.helper.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/group/group.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC7D,OAAO,EACL,YAAY,EACZ,eAAe,EACf,sBAAsB,EACvB,MAAM,UAAU,CAAC;AAElB,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,eAAe,GAAG,sBAAsB,GAC7C,YAAY,GAAG,cAAc,GAAG,iBAAiB,CAkBnD;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,YAAY,GAAG,cAAc,GAAG,iBAAiB,GACvD,eAAe,CAgBjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/group/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { G6AcceptBehavior, MxUserBehavior } from '../model';
|
|
2
|
+
export * from './interaction.controller';
|
|
3
|
+
export declare const DEFAULT_USER_BEHAVIORS: MxUserBehavior[];
|
|
4
|
+
export declare const MxBehaviorMap: Record<MxUserBehavior, G6AcceptBehavior>;
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/interaction/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAM5D,cAAc,0BAA0B,CAAC;AAEzC,eAAO,MAAM,sBAAsB,EAAE,cAAc,EAQlD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,cAAc,EAAE,gBAAgB,CAKlE,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Specification } from '@antv/g6';
|
|
2
|
+
import { MxGraph } from '../../index.ts';
|
|
3
|
+
import { B, MxBehaviorOption, MxUserBehavior, T } from '../model';
|
|
4
|
+
export declare class MxInteractionController {
|
|
5
|
+
private mxGraph;
|
|
6
|
+
behaviors: MxUserBehavior[];
|
|
7
|
+
constructor(mxGraph: MxGraph);
|
|
8
|
+
get mode(): string;
|
|
9
|
+
convertBehaviors(behaviors?: MxUserBehavior[]): Specification<B, T>['modes'];
|
|
10
|
+
addBehaviors(behavior: MxUserBehavior | MxUserBehavior[]): void;
|
|
11
|
+
removeBehaviors(behavior: MxUserBehavior | MxUserBehavior[]): void;
|
|
12
|
+
dragNodeBehaviorOption(): MxBehaviorOption;
|
|
13
|
+
dragComboBehaviorOption(): MxBehaviorOption;
|
|
14
|
+
createEdgeBehaviorOption(): MxBehaviorOption;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=interaction.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interaction.controller.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/interaction/interaction.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAA0B,OAAO,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,CAAC,EAAE,gBAAgB,EAAE,cAAc,EAAE,CAAC,EAAE,MAAM,UAAU,CAAC;AAGlE,qBAAa,uBAAuB;IAGtB,OAAO,CAAC,OAAO;IAF3B,SAAS,EAAE,cAAc,EAAE,CAAM;gBAEb,OAAO,EAAE,OAAO;IAIpC,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,gBAAgB,CAAC,SAAS,CAAC,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;IAkB5E,YAAY,CAAC,QAAQ,EAAE,cAAc,GAAG,cAAc,EAAE;IAcxD,eAAe,CAAC,QAAQ,EAAE,cAAc,GAAG,cAAc,EAAE;IAkB3D,sBAAsB,IAAI,gBAAgB;IAU1C,uBAAuB,IAAI,gBAAgB;IAS3C,wBAAwB,IAAI,gBAAgB;CAW7C"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { G6AcceptBehavior, MxEdgeEventName, MxEdgeUserBehavior } from '../../model';
|
|
2
|
+
export declare const MxEdgeBehaviorMap: Record<MxEdgeUserBehavior, G6AcceptBehavior>;
|
|
3
|
+
export declare const MxEdgeEventMap: Record<MxEdgeEventName, string>;
|
|
4
|
+
//# sourceMappingURL=edge-mapping.behavior.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edge-mapping.behavior.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/lib/interaction/mapping/edge-mapping.behavior.ts"],"names":[],"mappings":"AACA,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EACnB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,kBAAkB,EAAE,gBAAgB,CAE1E,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAO1D,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { G6AcceptBehavior, MxGraphEvent, MxGraphUserBehavior } from '../../model';
|
|
2
|
+
export declare const MxGraphBehaviorMap: Record<MxGraphUserBehavior, G6AcceptBehavior>;
|
|
3
|
+
export declare const MxGraphEventMap: Record<MxGraphEvent, string>;
|
|
4
|
+
//# sourceMappingURL=graph-mapping.behavior.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-mapping.behavior.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/lib/interaction/mapping/graph-mapping.behavior.ts"],"names":[],"mappings":"AACA,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACpB,MAAM,aAAa,CAAC;AAGrB,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,mBAAmB,EAAE,gBAAgB,CAQ1E,CAAC;AAEJ,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAKxD,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { G6AcceptBehavior, MxGroupEventKey, MxGroupUserBehavior } from '../../model';
|
|
2
|
+
export declare const MxGroupBehaviorMap: Record<MxGroupUserBehavior, G6AcceptBehavior>;
|
|
3
|
+
export declare const MxGroupEventsMap: Record<MxGroupEventKey, string>;
|
|
4
|
+
//# sourceMappingURL=group-mapping.behavior.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group-mapping.behavior.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/lib/interaction/mapping/group-mapping.behavior.ts"],"names":[],"mappings":"AACA,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACpB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,mBAAmB,EAAE,gBAAgB,CAI1E,CAAC;AAEJ,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAU5D,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { G6AcceptBehavior, MxNodeEventName, MxNodeUserBehavior } from '../../model';
|
|
2
|
+
export declare const MxNodeBehaviorMap: Record<MxNodeUserBehavior, G6AcceptBehavior>;
|
|
3
|
+
export declare const MxNodeEventsMap: Record<MxNodeEventName, string>;
|
|
4
|
+
//# sourceMappingURL=node-mapping.behavior.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-mapping.behavior.d.ts","sourceRoot":"","sources":["../../../../../libs/graph/src/lib/interaction/mapping/node-mapping.behavior.ts"],"names":[],"mappings":"AACA,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EACnB,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,kBAAkB,EAAE,gBAAgB,CAE1E,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAS3D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-all-item.behavior.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/interaction/select-all-item.behavior.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,qBAAa,uBAAwB,SAAQ,UAAU,CAAC,YAAY;IAClE,QAAQ,EAAE,OAAO,CAAS;IAE1B,SAAS;CAcV"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"background.model.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/model/background.model.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BehaviorOptionsOf, Extensions } from '@antv/g6';
|
|
2
|
+
export type MxGraphUserBehavior = 'click-select' | 'marquee-select' | 'drag-canvas' | 'zoom-canvas' | 'select-all-item' | 'hover-activate';
|
|
3
|
+
export type MxNodeUserBehavior = 'drag-node';
|
|
4
|
+
export type MxEdgeUserBehavior = 'create-edge';
|
|
5
|
+
export type MxGroupUserBehavior = 'drag-combo' | 'collapse-expand-combo';
|
|
6
|
+
export type MxUserBehavior = MxGraphUserBehavior | MxNodeUserBehavior | MxEdgeUserBehavior | MxGroupUserBehavior;
|
|
7
|
+
export type MxBehaviorOption = MxUserBehavior | BehaviorOptionsOf<{
|
|
8
|
+
'drag-node': typeof Extensions.DragNode;
|
|
9
|
+
'drag-combo': typeof Extensions.DragCombo;
|
|
10
|
+
'create-edge': typeof Extensions.CreateEdge;
|
|
11
|
+
}>;
|
|
12
|
+
export type G6BehaviorExtensions = Pick<typeof Extensions, 'DragCanvas' | 'ZoomCanvas' | 'BrushSelect' | 'DragNode' | 'CreateEdge' | 'DragCombo' | 'CollapseExpandCombo' | 'HoverActivate'>;
|
|
13
|
+
export type G6Behavior = G6BehaviorExtensions[keyof G6BehaviorExtensions];
|
|
14
|
+
export type G6AcceptBehavior = G6Behavior | typeof Extensions.BaseBehavior | null;
|
|
15
|
+
//# sourceMappingURL=behavior.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"behavior.model.d.ts","sourceRoot":"","sources":["../../../../libs/graph/src/lib/model/behavior.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEzD,MAAM,MAAM,mBAAmB,GAC3B,cAAc,GACd,gBAAgB,GAChB,aAAa,GACb,aAAa,GACb,iBAAiB,GACjB,gBAAgB,CAAC;AAErB,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC;AAE7C,MAAM,MAAM,kBAAkB,GAAG,aAAa,CAAC;AAE/C,MAAM,MAAM,mBAAmB,GAAG,YAAY,GAAG,uBAAuB,CAAC;AAEzE,MAAM,MAAM,cAAc,GACtB,mBAAmB,GACnB,kBAAkB,GAClB,kBAAkB,GAClB,mBAAmB,CAAC;AAExB,MAAM,MAAM,gBAAgB,GACxB,cAAc,GACd,iBAAiB,CAAC;IAChB,WAAW,EAAE,OAAO,UAAU,CAAC,QAAQ,CAAC;IACxC,YAAY,EAAE,OAAO,UAAU,CAAC,SAAS,CAAC;IAC1C,aAAa,EAAE,OAAO,UAAU,CAAC,UAAU,CAAC;CAC7C,CAAC,CAAC;AAEP,MAAM,MAAM,oBAAoB,GAAG,IAAI,CACrC,OAAO,UAAU,EACf,YAAY,GACZ,YAAY,GACZ,aAAa,GACb,UAAU,GACV,YAAY,GACZ,WAAW,GACX,qBAAqB,GACrB,eAAe,CAClB,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,oBAAoB,CAAC,MAAM,oBAAoB,CAAC,CAAC;AAE1E,MAAM,MAAM,gBAAgB,GACxB,UAAU,GACV,OAAO,UAAU,CAAC,YAAY,GAC9B,IAAI,CAAC"}
|