Neo4j Visualization Library
    Preparing search index...

    Type Alias ZoomOptions

    Options that influence how fit-to-zoom should behave

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

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

    maxZoom?: number

    The maximum zoom value for the fit-to-zoom operation. This can only lower the NvlOptions.maxZoom limit, not raise it.

    minZoom?: number

    The minimum zoom value for the fit-to-zoom operation. The fit never zooms out further than this. If NvlOptions.allowDynamicMinZoom is true, it can be lower than NvlOptions.minZoom, which is then lowered to the resulting zoom level. If it is false, this can only raise the NvlOptions.minZoom limit, not lower it.

    noPan?: boolean

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

    outOnly?: boolean

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