d3-dag
Version:
Layout algorithms for visualizing directed acylic graphs.
17 lines (16 loc) • 525 B
TypeScript
/**
* Verify an ID is a valid ID.
*/
export declare function verifyId(id: string): string;
/**
* an accessor for getting ids from node data
*
* The accessor must return an appropriate unique string id for given datum.
* This operator will only be called once for each input.
*
* `index` will increment in the order data are processed.
*
* This is used in {@link Stratify#id}, {@link Connect#sourceId}, and
* {@link Connect#targetId}.
*/
export type Id<in Datum = never> = (datum: Datum, index: number) => string;