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

    Interface ViewportConfig

    interface ViewportConfig {
        inertia?:
            | boolean
            | {
                boundary?: "stop"
                | "bounce"
                | "spring";
                bounds?: PanBounds;
                friction?: number;
                minSpeed?: number;
            };
        pan?: boolean;
        pinchZoom?: boolean
        | { max?: number; min?: number };
        zoom?: boolean | ViewportZoomOptions;
    }
    Index

    Properties

    inertia?:
        | boolean
        | {
            boundary?: "stop"
            | "bounce"
            | "spring";
            bounds?: PanBounds;
            friction?: number;
            minSpeed?: number;
        }
    pan?: boolean

    Wheel pan (plain wheel → pan). Default: true. Set false to disable.

    pinchZoom?: boolean | { max?: number; min?: number }
    zoom?: boolean | ViewportZoomOptions

    Wheel + keyboard zoom (Cmd+wheel, Cmd+=/-/0). Default: true. Set false to disable, or pass a ViewportZoomOptions object to tune the wheel trigger + scale clamp.