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