Skip to Content
参考手册类型

OnConnectEnd

GitHub 上的源代码 

¥Source on GitHub 

OnConnectEnd 类型表示在完成或取消连接尝试时调用的回调函数。它接收鼠标或触摸事件以及连接尝试的最终状态。

¥The OnConnectEnd type represents a callback function that is called when finishing or canceling a connection attempt. It receives the mouse or touch event and the final state of the connection attempt.

type OnConnectEnd = ( event: MouseEvent | TouchEvent, connectionState: FinalConnectionState, ) => void;
Parameters:
NameTypeDefault
eventMouseEvent | TouchEvent
connectionStateFinalConnectionState<InternalNodeBase>
Returns:
void
Last updated on