FitViewOptions

Source on GitHub

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

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

  • padding?: Padding
  • includeHiddenNodes?: boolean
  • minZoom?: number
  • maxZoom?: number
  • duration?: number
  • ease?: (t: number) => number
  • interpolate?: "smooth" | "linear"
  • nodes?: (NodeType | { id: string; })[]