Skip to Content
参考手册类型

OnConnectStart

GitHub 上的源代码 

¥Source on GitHub 

OnConnectStart 类型表示在开始创建节点间连接时调用的回调函数。它接收鼠标或触摸事件以及有关源节点和句柄的信息。

¥The OnConnectStart type represents a callback function that is called when starting to create a connection between nodes. It receives the mouse or touch event and information about the source node and handle.

type OnConnectStart = ( event: MouseEvent | TouchEvent, params: OnConnectStartParams, ) => void;
Parameters:
NameTypeDefault
eventMouseEvent | TouchEvent
paramsOnConnectStartParams
Returns:
void
Last updated on