1 | import { Arrow, Marker, Shape } from '@antv/g6-core';
|
2 | import { ICanvas, IGroup, IShape } from '@antv/g-base';
|
3 | import * as AlgorithmSync from '@antv/algorithm';
|
4 | import * as AlgorithmAsync from '@antv/algorithm/lib/asyncIndex';
|
5 | import Graph from './graph/graph';
|
6 | import TreeGraph from './graph/tree-graph';
|
7 | import { TreeLayout, Layout, registerLayout } from './layout';
|
8 | import Global from './global';
|
9 | import Util from './util';
|
10 | import './element';
|
11 | import './behavior';
|
12 | declare type IAlgorithm = typeof AlgorithmSync | typeof AlgorithmAsync;
|
13 | declare const Algorithm: IAlgorithm;
|
14 | declare const Grid: typeof import("@antv/g6-plugin").Grid;
|
15 | declare const Minimap: typeof import("@antv/g6-plugin").Minimap;
|
16 | declare const Bundling: typeof import("@antv/g6-plugin").Bundling;
|
17 | declare const Menu: typeof import("@antv/g6-plugin").Menu;
|
18 | declare const Fisheye: typeof import("@antv/g6-plugin").Fisheye;
|
19 | declare const ToolBar: typeof import("@antv/g6-plugin").ToolBar;
|
20 | declare const Tooltip: typeof import("@antv/g6-plugin").Tooltip;
|
21 | declare const TimeBar: typeof import("@antv/g6-plugin").TimeBar;
|
22 | declare const ImageMinimap: typeof import("@antv/g6-plugin").ImageMinimap;
|
23 | declare const EdgeFilterLens: typeof import("@antv/g6-plugin").EdgeFilterLens;
|
24 | declare const SnapLine: typeof import("@antv/g6-plugin").SnapLine;
|
25 | declare const Legend: typeof import("@antv/g6-plugin").Legend;
|
26 | export * from '@antv/g6-core';
|
27 | export * from './types';
|
28 | export * from './interface/graph';
|
29 | export { Graph, TreeGraph, Util, Layout, TreeLayout, registerLayout, Global, Minimap, Grid, Bundling, Menu, Fisheye, Algorithm, ToolBar, Tooltip, TimeBar, ImageMinimap, EdgeFilterLens, SnapLine, Legend, Arrow, Marker, Shape, ICanvas, IGroup, IShape, };
|
30 | declare const _default: {
|
31 | version: string;
|
32 | Graph: typeof Graph;
|
33 | TreeGraph: typeof TreeGraph;
|
34 | Util: any;
|
35 | Layout: {
|
36 | [key: string]: any;
|
37 | };
|
38 | TreeLayout: typeof TreeLayout;
|
39 | registerLayout: (name: string, layoutOverride: any) => void;
|
40 | Global: {
|
41 | version: string;
|
42 | rootContainerClassName: string;
|
43 | nodeContainerClassName: string;
|
44 | edgeContainerClassName: string;
|
45 | comboContainerClassName: string;
|
46 | delegateContainerClassName: string;
|
47 | defaultLoopPosition: string;
|
48 | nodeLabel: {
|
49 | style: {
|
50 | fill: string;
|
51 | fontSize: number;
|
52 | textAlign: string;
|
53 | textBaseline: string;
|
54 | };
|
55 | offset: number;
|
56 | };
|
57 | defaultNode: {
|
58 | type: string;
|
59 | style: {
|
60 | lineWidth: number;
|
61 | stroke: any;
|
62 | fill: any;
|
63 | };
|
64 | size: number;
|
65 | color: any;
|
66 | linkPoints: {
|
67 | size: number;
|
68 | lineWidth: number;
|
69 | fill: any;
|
70 | stroke: any;
|
71 | };
|
72 | };
|
73 | nodeStateStyles: {
|
74 | active: {
|
75 | fill: any;
|
76 | stroke: any;
|
77 | lineWidth: number;
|
78 | shadowColor: any;
|
79 | shadowBlur: number;
|
80 | };
|
81 | selected: {
|
82 | fill: any;
|
83 | stroke: any;
|
84 | lineWidth: number;
|
85 | shadowColor: any;
|
86 | shadowBlur: number;
|
87 | 'text-shape': {
|
88 | fontWeight: number;
|
89 | };
|
90 | };
|
91 | highlight: {
|
92 | fill: any;
|
93 | stroke: any;
|
94 | lineWidth: number;
|
95 | 'text-shape': {
|
96 | fontWeight: number;
|
97 | };
|
98 | };
|
99 | inactive: {
|
100 | fill: any;
|
101 | stroke: any;
|
102 | lineWidth: number;
|
103 | };
|
104 | disable: {
|
105 | fill: any;
|
106 | stroke: any;
|
107 | lineWidth: number;
|
108 | };
|
109 | };
|
110 | edgeLabel: {
|
111 | style: {
|
112 | fill: string;
|
113 | textAlign: string;
|
114 | textBaseline: string;
|
115 | fontSize: number;
|
116 | };
|
117 | };
|
118 | defaultEdge: {
|
119 | type: string;
|
120 | size: number;
|
121 | style: {
|
122 | stroke: any;
|
123 | lineAppendWidth: number;
|
124 | };
|
125 | color: any;
|
126 | };
|
127 | edgeStateStyles: {
|
128 | active: {
|
129 | stroke: any;
|
130 | lineWidth: number;
|
131 | };
|
132 | selected: {
|
133 | stroke: any;
|
134 | lineWidth: number;
|
135 | shadowColor: any;
|
136 | shadowBlur: number;
|
137 | 'text-shape': {
|
138 | fontWeight: number;
|
139 | };
|
140 | };
|
141 | highlight: {
|
142 | stroke: any;
|
143 | lineWidth: number;
|
144 | 'text-shape': {
|
145 | fontWeight: number;
|
146 | };
|
147 | };
|
148 | inactive: {
|
149 | stroke: any;
|
150 | lineWidth: number;
|
151 | };
|
152 | disable: {
|
153 | stroke: any;
|
154 | lineWidth: number;
|
155 | };
|
156 | };
|
157 | comboLabel: {
|
158 | style: {
|
159 | fill: string;
|
160 | textBaseline: string;
|
161 | fontSize: number;
|
162 | };
|
163 | refY: number;
|
164 | refX: number;
|
165 | };
|
166 | defaultCombo: {
|
167 | type: string;
|
168 | style: {
|
169 | fill: any;
|
170 | lineWidth: number;
|
171 | stroke: any;
|
172 | r: number;
|
173 | width: number;
|
174 | height: number;
|
175 | };
|
176 | size: number[];
|
177 | color: any;
|
178 | padding: number[];
|
179 | };
|
180 | comboStateStyles: {
|
181 | active: {
|
182 | stroke: any;
|
183 | lineWidth: number;
|
184 | fill: any;
|
185 | };
|
186 | selected: {
|
187 | stroke: any;
|
188 | lineWidth: number;
|
189 | fill: any;
|
190 | shadowColor: any;
|
191 | shadowBlur: number;
|
192 | 'text-shape': {
|
193 | fontWeight: number;
|
194 | };
|
195 | };
|
196 | highlight: {
|
197 | stroke: any;
|
198 | lineWidth: number;
|
199 | fill: any;
|
200 | 'text-shape': {
|
201 | fontWeight: number;
|
202 | };
|
203 | };
|
204 | inactive: {
|
205 | stroke: any;
|
206 | fill: any;
|
207 | lineWidth: number;
|
208 | };
|
209 | disable: {
|
210 | stroke: any;
|
211 | fill: any;
|
212 | lineWidth: number;
|
213 | };
|
214 | };
|
215 | delegateStyle: {
|
216 | fill: string;
|
217 | fillOpacity: number;
|
218 | stroke: string;
|
219 | strokeOpacity: number;
|
220 | lineDash: number[];
|
221 | };
|
222 | textWaterMarkerConfig: {
|
223 | width: number;
|
224 | height: number;
|
225 | compatible: boolean;
|
226 | text: {
|
227 | x: number;
|
228 | y: number;
|
229 | lineHeight: number;
|
230 | rotate: number;
|
231 | fontSize: number;
|
232 | fontFamily: string;
|
233 | fill: string;
|
234 | baseline: string;
|
235 | };
|
236 | };
|
237 | imageWaterMarkerConfig: {
|
238 | width: number;
|
239 | height: number;
|
240 | compatible: boolean;
|
241 | image: {
|
242 | x: number;
|
243 | y: number;
|
244 | width: number;
|
245 | height: number;
|
246 | rotate: number;
|
247 | };
|
248 | };
|
249 | waterMarkerImage: string;
|
250 | };
|
251 | registerBehavior: (type: string, behavior: import("@antv/g6-core").BehaviorOption) => void;
|
252 | registerCombo: typeof Shape.registerCombo;
|
253 | registerEdge: typeof Shape.registerEdge;
|
254 | registerNode: typeof Shape.registerNode;
|
255 | Minimap: typeof import("@antv/g6-plugin").Minimap;
|
256 | Grid: typeof import("@antv/g6-plugin").Grid;
|
257 | Bundling: typeof import("@antv/g6-plugin").Bundling;
|
258 | Menu: typeof import("@antv/g6-plugin").Menu;
|
259 | ToolBar: typeof import("@antv/g6-plugin").ToolBar;
|
260 | Tooltip: typeof import("@antv/g6-plugin").Tooltip;
|
261 | Legend: typeof import("@antv/g6-plugin").Legend;
|
262 | TimeBar: typeof import("@antv/g6-plugin").TimeBar;
|
263 | SnapLine: typeof import("@antv/g6-plugin").SnapLine;
|
264 | Fisheye: typeof import("@antv/g6-plugin").Fisheye;
|
265 | ImageMinimap: typeof import("@antv/g6-plugin").ImageMinimap;
|
266 | EdgeFilterLens: typeof import("@antv/g6-plugin").EdgeFilterLens;
|
267 | Algorithm: typeof AlgorithmAsync;
|
268 | Arrow: {
|
269 | triangle: (width?: number, length?: number, d?: number) => string;
|
270 | vee: (width?: number, length?: number, d?: number) => string;
|
271 | circle: (r?: number, d?: number) => string;
|
272 | rect: (width?: number, length?: number, d?: number) => string;
|
273 | diamond: (width?: number, length?: number, d?: number) => string;
|
274 | triangleRect: (tWidth?: number, tLength?: number, rWidth?: number, rLength?: number, gap?: number, d?: number) => string;
|
275 | };
|
276 | Marker: {
|
277 | collapse: (x: any, y: any, r: any) => any[][];
|
278 | expand: (x: any, y: any, r: any) => any[][];
|
279 | upTriangle: (x: any, y: any, r: any) => any[][];
|
280 | downTriangle: (x: any, y: any, r: any) => any[][];
|
281 | };
|
282 | Shape: typeof Shape;
|
283 | };
|
284 | export default _default;
|