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.
21 lines
663 B
21 lines
663 B
|
4 months ago
|
import type { CircularLayoutOptions, Graph, Layout, LayoutMapping } from './types';
|
||
|
|
/**
|
||
|
|
* <zh/> 环形布局
|
||
|
|
*
|
||
|
|
* <en/> Circular layout
|
||
|
|
*/
|
||
|
|
export declare class CircularLayout implements Layout<CircularLayoutOptions> {
|
||
|
|
options: CircularLayoutOptions;
|
||
|
|
id: string;
|
||
|
|
constructor(options?: CircularLayoutOptions);
|
||
|
|
/**
|
||
|
|
* Return the positions of nodes and edges(if needed).
|
||
|
|
*/
|
||
|
|
execute(graph: Graph, options?: CircularLayoutOptions): Promise<LayoutMapping>;
|
||
|
|
/**
|
||
|
|
* To directly assign the positions to the nodes.
|
||
|
|
*/
|
||
|
|
assign(graph: Graph, options?: CircularLayoutOptions): Promise<void>;
|
||
|
|
private genericCircularLayout;
|
||
|
|
}
|