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
684 B
20 lines
684 B
import type { ConcentricLayoutOptions, Graph, Layout, LayoutMapping } from './types';
|
|
/**
|
|
* <zh/> 同心圆布局
|
|
*
|
|
* <en/> Concentric layout
|
|
*/
|
|
export declare class ConcentricLayout implements Layout<ConcentricLayoutOptions> {
|
|
options: ConcentricLayoutOptions;
|
|
id: string;
|
|
constructor(options?: ConcentricLayoutOptions);
|
|
/**
|
|
* Return the positions of nodes and edges(if needed).
|
|
*/
|
|
execute(graph: Graph, options?: ConcentricLayoutOptions): Promise<LayoutMapping>;
|
|
/**
|
|
* To directly assign the positions to the nodes.
|
|
*/
|
|
assign(graph: Graph, options?: ConcentricLayoutOptions): Promise<void>;
|
|
private genericConcentricLayout;
|
|
}
|
|
|