OnConnect
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;| Name | Type | Default |
|---|---|---|
connection | Connection |
Last updated on