feat: create enablePanOnFocus prop, update onFocus func
This commit is contained in:
@@ -84,6 +84,7 @@
|
||||
elevateNodesOnSelect,
|
||||
elevateEdgesOnSelect,
|
||||
nodesDraggable,
|
||||
enablePanOnFocus,
|
||||
nodesConnectable,
|
||||
elementsSelectable,
|
||||
nodesFocusable,
|
||||
|
||||
@@ -232,6 +232,11 @@ export type SvelteFlowProps<
|
||||
* @default true
|
||||
*/
|
||||
nodesDraggable?: boolean;
|
||||
/**
|
||||
* When `true`, the viewport will pan when a node is focused.
|
||||
* @default false
|
||||
*/
|
||||
enablePanOnFocus?: boolean;
|
||||
/**
|
||||
* Controls if all nodes should be connectable to each other
|
||||
* @default true
|
||||
|
||||
Reference in New Issue
Block a user