Skip to Content
参考类型

OnConnect

GitHub上的源代码 

OnConnect 类型表示在节点之间创建新连接时调用的回调函数。它接收一个 Connection,其中包含源节点和目标节点的 ID 以及它们各自的句柄 ID。

🌐 The OnConnect type represents a callback function that is called when a new connection is created between nodes. It receives a Connection containing the source and target node IDs and their respective handle IDs.

type OnConnect = (connection: Connection) => void;
Parameters:
NameTypeDefault
connectionConnection
Returns:
void
Last updated on