add autoPanSpeed

This commit is contained in:
peterkogo
2025-09-15 16:35:19 +02:00
parent 34929087e1
commit f0eab72ee5
4 changed files with 9 additions and 0 deletions
@@ -94,6 +94,8 @@
noPanClass,
noWheelClass,
ariaLabelConfig,
autoPanSpeed,
panOnScrollSpeed,
...divAttributes
} = $derived(rest);
/* eslint-enable @typescript-eslint/no-unused-vars */
@@ -239,6 +239,11 @@ export type SvelteFlowProps<
* @default true
*/
nodesDraggable?: boolean;
/**
* The speed at which the viewport pans while dragging a node or a selection box.
* @default 15
*/
autoPanSpeed?: number;
/**
* When `true`, the viewport will pan when a node is focused.
* @default true