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.
14 lines
664 B
14 lines
664 B
import type { Edge, Graph as Graphlib, Node } from '@antv/graphlib';
|
|
import type { EdgeData } from '../spec';
|
|
import { NodeLikeData } from '../types/data';
|
|
export declare function toGraphlibData(datums: EdgeData): Edge<EdgeData>;
|
|
export declare function toGraphlibData(datums: NodeLikeData): Node<NodeLikeData>;
|
|
export declare function toG6Data<T extends EdgeData>(data: Edge<T>): T;
|
|
export declare function toG6Data<T extends NodeLikeData>(data: Node<T>): T;
|
|
/**
|
|
* <zh/> 创建树形结构
|
|
*
|
|
* <en/> Create tree structure
|
|
* @param model - <zh/> 数据模型 | <en/> data model
|
|
*/
|
|
export declare function createTreeStructure(model: Graphlib<any, any>): void;
|
|
|