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.
12 lines
469 B
12 lines
469 B
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>[];
|
|
};
|
|
|