Type alias ZoomPluginOptions

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

Type declaration

  • Optional 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).

    Default

    5
    
  • Optional 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.

    Default

    false
    
  • Optional iterations?: number

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

    Default

    20
    
  • Optional maxZoom?: number
  • Optional scale?: number

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

    Default

    0.5
    

Generated using TypeDoc