implement click connection

This commit is contained in:
peterkogo
2025-04-09 18:48:50 +02:00
parent 89b86a5ae7
commit 80a809cc68
4 changed files with 146 additions and 65 deletions
@@ -39,6 +39,9 @@
onconnect,
onconnectstart,
onconnectend,
onclickconnectstart,
onclickconnectend,
clickConnect,
oninit,
fitView,
fitViewOptions,
@@ -366,6 +366,12 @@ export type SvelteFlowProps = NodeEvents &
onconnectstart?: OnConnectStart;
/** When a user stops dragging a connection line, this event gets fired. */
onconnectend?: OnConnectEnd;
/** A connection is started by clicking on a handle */
onclickconnectstart?: OnConnectStart;
/** A connection is finished by clicking on a handle */
onclickconnectend?: OnConnectEnd;
/** Toggles ability to make connections via clicking the handles */
clickConnect?: boolean;
/** This handler gets called when the flow is finished initializing */
oninit?: () => void;
};