OnDelete
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;| Name | Type | Default |
|---|---|---|
params | { nodes: NodeType[]; edges: EdgeType[]; } |
Last updated on