@antv/layout
Version:
graph layout algorithm
23 lines (20 loc) • 573 B
TypeScript
import { BaseLayout } from '../base-layout.js';
import { DagreLayoutOptions } from './types.js';
/**
* <zh/> Dagre 布局
*
* <en/> Dagre layout
*/
declare class DagreLayout extends BaseLayout<DagreLayoutOptions> {
id: string;
private isCompoundGraph;
protected config: {
graphAttributes: string[];
nodeAttributes: string[];
edgeAttributes: string[];
};
protected getDefaultOptions(): Partial<DagreLayoutOptions>;
protected layout(): Promise<void>;
private isCompound;
}
export { DagreLayout, DagreLayoutOptions };