ZoomOptions: {
    animated?: boolean;
    maxZoom?: number;
    minZoom?: number;
    noPan?: boolean;
    outOnly?: boolean;
}

Options that influence how fit-to-zoom should behave

Type declaration

  • Optionalanimated?: boolean

    If true, will not animate the zoom/pan transition.

  • OptionalmaxZoom?: number

    The maximum zoom value for the fit-to-zoom operation.

  • OptionalminZoom?: number

    The minimum zoom value for the fit-to-zoom operation.

  • OptionalnoPan?: boolean

    If true, will zoom out to fit the specified nodes without changing the pan of the viewport.

  • OptionaloutOnly?: boolean

    If true, will only zoom out if specified nodes won't fit into viewport but won't zoom in any further.