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.
22 lines
689 B
22 lines
689 B
import type { Graph, Layout, LayoutMapping, RadialLayoutOptions } from '../types';
|
|
/**
|
|
* <zh/> 径向布局
|
|
*
|
|
* <en/> Radial layout
|
|
*/
|
|
export declare class RadialLayout implements Layout<RadialLayoutOptions> {
|
|
options: RadialLayoutOptions;
|
|
id: string;
|
|
constructor(options?: RadialLayoutOptions);
|
|
/**
|
|
* Return the positions of nodes and edges(if needed).
|
|
*/
|
|
execute(graph: Graph, options?: RadialLayoutOptions): Promise<LayoutMapping>;
|
|
/**
|
|
* To directly assign the positions to the nodes.
|
|
*/
|
|
assign(graph: Graph, options?: RadialLayoutOptions): Promise<void>;
|
|
private genericRadialLayout;
|
|
private run;
|
|
private oneIteration;
|
|
}
|
|
|