Skip to Content
参考手册类型

OnSelectionChangeFunc

GitHub 上的源代码 

¥Source on GitHub 

OnSelectionChangeFunc 类型是节点或边的选择发生变化时触发的回调函数。它接收一个包含当前选定节点和边的对象。

¥The OnSelectionChangeFunc type is a callback that is triggered when the selection of nodes or edges changes. It receives an object containing the currently selected nodes and edges.

type OnSelectionChangeFunc = (params: { nodes: Node[]; edges: Edge[] }) => void;
Parameters:
NameTypeDefault
paramsOnSelectionChangeParams<NodeType, EdgeType>
Returns:
void
Last updated on