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
| Name | Type | Default |
|---|---|---|
padding | Padding | |
minZoom | number | |
maxZoom | number | |
duration | number | |
ease | (t: number) => number | |
interpolate | "smooth" | "linear" | |
nodes | (NodeType | { id: string; })[] |