@antv/layout
Version:
graph layout algorithm
13 lines (12 loc) • 469 B
TypeScript
import { Graph, PointTuple } from '../types';
/**
* Assign or only return the result for the graph who has no nodes or only one node.
* @param graph original graph
* @param assign whether assign result to original graph
* @param center the layout center
* @returns
*/
export declare const handleSingleNodeGraph: (graph: Graph, assign: boolean, center: PointTuple) => {
nodes: any[];
edges: import("@antv/graphlib").Edge<import("../types").EdgeData>[];
};