UNPKG

react-easy-diagram

Version:

<img src="https://github.com/tokarchyn/react-easy-diagram/blob/main/repo/logo-with-name.png?raw=true" alt="React Easy Diagram logo" height="50">

16 lines 708 B
import { LinkState } from "./linkState"; import { NodeState } from "./nodeState"; export declare class SelectionState { private _selectedItems; constructor(); get selectedItems(): SelectableItem[]; get selectedNodes(): NodeState[]; get selectedLinks(): LinkState[]; select: (item: SelectableItem, unselectOther?: boolean) => boolean; switch: (item: SelectableItem, unselectOtherOnSelection?: boolean) => void; unselect: (item: SelectableItem) => boolean; unselectAll: () => void; unselectItems: (itemsToClear: Readonly<SelectableItem[]>) => void; } export declare type SelectableItem = NodeState | LinkState; //# sourceMappingURL=selectionState.d.ts.map