跳到主要内容

mind-elixir.selectioneventmap

Home > mind-elixir > SelectionEventMap

SelectionEventMap type​

Selection state events for nodes, arrows and summaries.

Signature:

export type SelectionEventMap = {
selectNewNode: (node: NodeObj) => void;
selectNodes: (nodes: NodeObj[]) => void;
unselectNodes: (nodes: NodeObj[]) => void;
selectArrow: (arrow: Arrow) => void;
unselectArrow: () => void;
selectSummary: (summary: Summary) => void;
unselectSummary: () => void;
};

References: NodeObj, Arrow, Summary