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

FitViewOptions

The FitViewOptions type configures a fitView call — padding, animation duration, minZoom / maxZoom, and which nodes to fit. Pass it to the fitView action, the fitViewOptions prop, or the Controls’ fit-view button.

Fields

NameTypeDefault
paddingPadding
includeHiddenNodesboolean
minZoomnumber
maxZoomnumber
durationnumber
ease(t: number) => number
interpolate"smooth" | "linear"
nodes(NodeType | { id: string; })[]