onbeforeconnect instead of onedgecreate

This commit is contained in:
peterkogo
2025-04-09 15:29:13 +02:00
parent 108f1ce81c
commit 95df44d5d1
5 changed files with 7 additions and 7 deletions
@@ -35,7 +35,7 @@
onerror,
ondelete,
onbeforedelete,
onedgecreate,
onbeforeconnect,
onconnect,
onconnectstart,
onconnectend,
@@ -30,7 +30,7 @@ import type {
DefaultEdgeOptions,
FitViewOptions,
OnDelete,
OnEdgeCreate,
OnBeforeConnect,
OnBeforeDelete,
IsValidConnection
} from '$lib/types';
@@ -358,7 +358,7 @@ export type SvelteFlowProps = NodeEvents &
onbeforedelete?: OnBeforeDelete;
/** This handler gets called when a new edge is created. You can use it to modify the newly created edge. */
onedgecreate?: OnEdgeCreate;
onbeforeconnect?: OnBeforeConnect;
/** This event gets fired when a connection successfully completes and an edge is created. */
onconnect?: OnConnect;