SetCenterOptions
The SetCenterOptions type is used to configure the setCenter function you get from
useSvelteFlow. Next to the shared
ViewportHelperFunctionOptions
like duration, 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 |