SetCenterOptions
The SetCenterOptions type is used to configure the setCenter function you get from
useReactFlow. Next to the shared viewport helper options
duration, ease and interpolate, you can set the zoom level the viewport should have once it is
centered.
Fields
| Name | Type | Default |
|---|---|---|
duration | number | |
ease | (t: number) => number | |
interpolate | "smooth" | "linear" | |
zoom | number |