Skip to Content
You are viewing the v1 docs of Svelte Flow. You can find the latest version here.
ReferenceTypes

FitViewOptions

When calling fitView these options can be used to customize the behavior. For example, the duration option can be used to transform the viewport smoothly over a given amount of time.

Fields

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