1 |
|
2 |
|
3 |
|
4 |
|
5 | import { PointTuple, OutNode, Edge } from './types';
|
6 | import { Base } from './base';
|
7 |
|
8 |
|
9 |
|
10 | export declare class RandomLayout extends Base {
|
11 |
|
12 | center: PointTuple;
|
13 |
|
14 | width: number;
|
15 |
|
16 | height: number;
|
17 | nodes: OutNode[];
|
18 | edges: Edge[];
|
19 | constructor(options?: RandomLayout.RandomLayoutOptions);
|
20 | getDefaultCfg(): {
|
21 | center: number[];
|
22 | width: number;
|
23 | height: number;
|
24 | };
|
25 | |
26 |
|
27 |
|
28 | execute(): {
|
29 | nodes: OutNode[];
|
30 | edges: Edge[];
|
31 | };
|
32 | getType(): string;
|
33 | }
|
34 | export declare namespace RandomLayout {
|
35 | interface RandomLayoutOptions {
|
36 | type: 'random';
|
37 | center?: PointTuple;
|
38 | width?: number;
|
39 | height?: number;
|
40 | workerEnabled?: boolean;
|
41 | }
|
42 | }
|