feat(autoPan): add props, handle scale

This commit is contained in:
moklick
2023-01-17 16:26:04 +01:00
parent 86f7a9a43d
commit f2a4260ac9
7 changed files with 27 additions and 6 deletions
@@ -160,6 +160,8 @@ const ReactFlow = forwardRef<ReactFlowRefType, ReactFlowProps>(
elevateNodesOnSelect = true,
elevateEdgesOnSelect = false,
disableKeyboardA11y = false,
autoPanOnConnect = true,
autoPanOnNodeDrag = true,
style,
id,
...rest
@@ -287,6 +289,8 @@ const ReactFlow = forwardRef<ReactFlowRefType, ReactFlowProps>(
noPanClassName={noPanClassName}
nodeOrigin={nodeOrigin}
rfId={rfId}
autoPanOnConnect={autoPanOnConnect}
autoPanOnNodeDrag={autoPanOnNodeDrag}
/>
<SelectionListener onSelectionChange={onSelectionChange} />
{children}