weasel API - v0.8.0
    Preparing search index...

    Interface ViewportZoomOptionsExperimental

    interface ViewportZoomOptions {
        max?: number;
        min?: number;
        wheel?: "plain" | "mod";
    }
    Index

    Properties

    Properties

    max?: number

    Upper clamp on the resulting view scale, forwarded to zoomAt. Default 8.

    min?: number

    Lower clamp on the resulting view scale, forwarded to zoomAt. Default 0.1.

    wheel?: "plain" | "mod"

    Which wheel gesture triggers zoom.

    • 'mod' (default): Cmd/Ctrl+wheel — coexists with plain-wheel pan (viewport.wheelPan) and Mac trackpad pinch (ctrl+wheel).
    • 'plain': bare wheel, no modifier. Pair with viewport.pan: false, since plain wheel otherwise drives pan and the two would compete.