wavesurfer.js
    Preparing search index...

    Type Alias ZoomPluginOptions

    type ZoomPluginOptions = {
        deltaThreshold?: number;
        exponentialZooming?: boolean;
        iterations?: number;
        maxZoom?: number;
        scale?: number;
    }
    Index
    deltaThreshold?: number

    The amount the wheel or trackpad needs to be moved before zooming the waveform. Set this value to 0 to have totally fluid zooming (this has a high CPU cost).

    5
    
    exponentialZooming?: boolean

    Whether to zoom into the waveform using a consistent exponential factor instead of a linear scale. Exponential zooming ensures the zoom steps feel uniform regardless of scale. When disabled, the zooming is linear and influenced by the scale parameter.

    false
    
    iterations?: number

    Number of steps required to zoom from the initial zoom level to maxZoom.

    20
    
    maxZoom?: number
    scale?: number

    The amount of zoom per wheel step, e.g. 0.5 means a 50% magnification per scroll

    0.5