pixi-viewport
    Preparing search index...

    Interface IClampZoomOptions

    Options for ClampZoom.

    Use either minimum width/height or minimum scale

    interface IClampZoomOptions {
        keepAspectRatio?: boolean;
        maxHeight?: number | null;
        maxScale?: number | IScale | null;
        maxWidth?: number | null;
        minHeight?: number | null;
        minScale?: number | IScale | null;
        minWidth?: number | null;
    }
    Index
    keepAspectRatio?: boolean

    When clamping by width or height, scale the other axis by the same amount. Set to false when zooming along a single axis (e.g., wheel({ axis: 'x' })).

    true
    
    maxHeight?: number | null

    Maximum height

    maxScale?: number | IScale | null

    Maximum scale

    maxWidth?: number | null

    Maximum width

    minHeight?: number | null

    Minimum height

    minScale?: number | IScale | null

    Minimum scale

    minWidth?: number | null

    Minimum width