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