Skip to Content

OnConnect

GitHub 上的源代码 

¥Source on 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