@antv/layout
Version:
graph layout algorithm
13 lines (10 loc) • 385 B
TypeScript
import { Point } from '../types/point.js';
import { GraphLib } from '../model/data.js';
/**
* Return the layout result for a graph with zero or one node.
* @param graph original graph
* @param center the layout center
* @returns layout result
*/
declare function applySingleNodeLayout(model: GraphLib, center: Point, dimensions?: 2 | 3): void;
export { applySingleNodeLayout };