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.
10 lines
413 B
10 lines
413 B
|
4 months ago
|
import { Edge, Node } from '../types';
|
||
|
|
export declare const clone: <T>(target: T) => T;
|
||
|
|
/**
|
||
|
|
* Clone node or edge data and format it
|
||
|
|
* @param target node/edge to be cloned
|
||
|
|
* @param initRange whether init the x and y in data with the range, which means [xRange, yRange]
|
||
|
|
* @returns cloned node/edge
|
||
|
|
*/
|
||
|
|
export declare const cloneFormatData: <T extends Node | Edge>(target: T, initRange?: [number, number]) => T;
|