You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
651 B
20 lines
651 B
import type { Graph, Layout, LayoutMapping, MDSLayoutOptions } from './types';
|
|
/**
|
|
* <zh/> 多维缩放算法布局
|
|
*
|
|
* <en/> Multidimensional scaling layout
|
|
*/
|
|
export declare class MDSLayout implements Layout<MDSLayoutOptions> {
|
|
options: MDSLayoutOptions;
|
|
id: string;
|
|
constructor(options?: MDSLayoutOptions);
|
|
/**
|
|
* Return the positions of nodes and edges(if needed).
|
|
*/
|
|
execute(graph: Graph, options?: MDSLayoutOptions): Promise<LayoutMapping>;
|
|
/**
|
|
* To directly assign the positions to the nodes.
|
|
*/
|
|
assign(graph: Graph, options?: MDSLayoutOptions): Promise<void>;
|
|
private genericMDSLayout;
|
|
}
|
|
|