Hierarchy

Constructors

Properties

accumulatedDelta: number = 0
container: null | HTMLElement = null
endZoom: number = 0
oldX: number = 0
options: ZoomPluginOptions & {
    deltaThreshold: number;
    exponentialZooming: boolean;
    iterations: number;
    scale: number;
}

Type declaration

  • deltaThreshold: number
  • exponentialZooming: boolean
  • iterations: number
  • scale: number
pointerTime: number = 0
startZoom: number = 0
subscriptions: (() => void)[] = []

Type declaration

    • (): void
    • Returns void

wavesurfer?: default
wrapper: undefined | HTMLElement = undefined

Methods

  • Do not call directly, only called by WavesSurfer internally

    Parameters

    Returns void

  • Parameters

    • oldZoom: number
    • delta: number

    Returns number

  • Emit an event

    Type Parameters

    • EventName extends "destroy"

    Parameters

    • eventName: EventName
    • Rest ...args: BasePluginEvents[EventName]

    Returns void

  • Subscribe to an event. Returns an unsubscribe function.

    Type Parameters

    • EventName extends "destroy"

    Parameters

    • event: EventName
    • listener: EventListener<BasePluginEvents, EventName>
    • Optional options: {
          once?: boolean;
      }
      • Optional once?: boolean

    Returns (() => void)

      • (): void
      • Subscribe to an event. Returns an unsubscribe function.

        Returns void

  • Subscribe to an event only once

    Type Parameters

    • EventName extends "destroy"

    Parameters

    • event: EventName
    • listener: EventListener<BasePluginEvents, EventName>

    Returns (() => void)

      • (): void
      • Subscribe to an event only once

        Returns void

  • Unsubscribe from an event

    Type Parameters

    • EventName extends "destroy"

    Parameters

    • event: EventName
    • listener: EventListener<BasePluginEvents, EventName>

    Returns void

  • Clear all events

    Returns void

Generated using TypeDoc