Skip to Content
Svelte Flow 2 is out! Read the announcement →
ReferenceTypes

FitBoundsOptions

Source on GitHub 

The FitBoundsOptions type is used to configure the fitBounds function you get from useSvelteFlow. Next to the shared ViewportHelperFunctionOptions like duration, you can set a padding that is applied around the bounds.

Fields

NameTypeDefault
durationnumber
ease(t: number) => number
interpolate"smooth" | "linear"
paddingPadding