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.
19 lines
552 B
19 lines
552 B
import { ID } from '@antv/graphlib';
|
|
import { Graph as IGraph } from '../types';
|
|
import type { DagreAlign, DagreRankdir } from './types';
|
|
export declare const layout: (g: IGraph, options: {
|
|
keepNodeOrder: boolean;
|
|
prevGraph: IGraph | null;
|
|
edgeLabelSpace?: boolean;
|
|
align?: DagreAlign;
|
|
nodesep?: number;
|
|
edgesep?: number;
|
|
ranksep?: number;
|
|
acyclicer: string;
|
|
nodeOrder: ID[];
|
|
ranker: 'network-simplex' | 'tight-tree' | 'longest-path';
|
|
rankdir: DagreRankdir;
|
|
}) => {
|
|
width: number;
|
|
height: number;
|
|
};
|
|
|