Skip to Content
Vue Flow v2 is here and joins xyflow! Read more here →
ReferenceTypes

FitBoundsOptions

Source on GitHub 

The FitBoundsOptions type is used to configure the fitBounds function you get from useVueFlow. Next to the shared viewport helper options duration, ease and interpolate, you can set a padding that is applied around the bounds.

Fields

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