Skip to Content

OnDelete

GitHub 上的源代码 

¥Source on GitHub 

OnDelete 类型定义了删除节点或边时调用的回调函数。此回调接收一个包含已删除节点和边的对象。

¥The OnDelete type defines the callback function that is called when nodes or edges are deleted. This callback receives an object containing the deleted nodes and edges.

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