@joint/react
Version:
React bindings and hooks for JointJS to build interactive diagrams and graphs.
15 lines (14 loc) • 498 B
TypeScript
import type { dia } from '@joint/core';
export interface CellBase {
readonly id?: dia.Cell.ID;
}
/**
* CellMap is a custom Map implementation that extends the native Map class.
* It provides additional utility methods for working with working with nodes & edges.
* @group Utils
*/
export declare class CellMap<V extends CellBase> extends Map<dia.Cell.ID, V> {
map<Item = V>(selector: (item: V) => Item): Item[];
filter(predicate: (item: V) => boolean): V[];
toJSON(): string;
}