renamed callbacks to be lowercase
This commit is contained in:
@@ -29,9 +29,9 @@
|
||||
zoomActivationKey,
|
||||
paneClickDistance = 1,
|
||||
nodeClickDistance = 1,
|
||||
onMoveStart,
|
||||
onMoveEnd,
|
||||
onMove,
|
||||
onmovestart,
|
||||
onmoveend,
|
||||
onmove,
|
||||
oninit,
|
||||
onnodeclick,
|
||||
onnodecontextmenu,
|
||||
@@ -134,9 +134,6 @@
|
||||
/>
|
||||
<Zoom
|
||||
{store}
|
||||
{onMoveStart}
|
||||
{onMove}
|
||||
{onMoveEnd}
|
||||
{panOnScrollMode}
|
||||
{preventScrolling}
|
||||
{zoomOnScroll}
|
||||
@@ -145,6 +142,9 @@
|
||||
{panOnScroll}
|
||||
{panOnDrag}
|
||||
{paneClickDistance}
|
||||
{onmovestart}
|
||||
{onmove}
|
||||
{onmoveend}
|
||||
{oninit}
|
||||
>
|
||||
<Pane {store} {onpaneclick} {onpanecontextmenu} {panOnDrag} {selectionOnDrag}>
|
||||
|
||||
@@ -335,11 +335,11 @@ export type SvelteFlowProps = NodeEvents &
|
||||
elevateNodesOnSelect?: boolean;
|
||||
isValidConnection?: IsValidConnection;
|
||||
/** This event handler is called when the user begins to pan or zoom the viewport */
|
||||
onMoveStart?: OnMoveStart;
|
||||
onmovestart?: OnMoveStart;
|
||||
/** This event handler is called when the user pans or zooms the viewport */
|
||||
onMove?: OnMove;
|
||||
onmove?: OnMove;
|
||||
/** This event handler is called when the user stops panning or zooming the viewport */
|
||||
onMoveEnd?: OnMoveEnd;
|
||||
onmoveend?: OnMoveEnd;
|
||||
/** Ocassionally something may happen that causes Svelte Flow to throw an error.
|
||||
*
|
||||
* Instead of exploding your application, we log a message to the console and then call this event handler.
|
||||
|
||||
Reference in New Issue
Block a user