Skip to Content
✨ Svelte Flow 1.0 is here! Rewritten for Svelte 5 with many new features and improvements.
ReferenceTypesFitViewOptions

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
nodes(NodeType | { id: string; })[]
Last updated on