Skip to Content
✨ Svelte Flow 1.0 is here! Rewritten for Svelte 5 with many new features and improvements.
ReferenceTypesOnConnectStart

OnConnectStart

Source on GitHub 

The OnConnectStart type is a callback function that is called when starting to create a connection between nodes. It receives the mouse or touch event and parameters about the connection being started.

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