Hierarchy

Constructors

Properties

container: null | HTMLElement = null
miniWavesurfer: null | default = null
minimapWrapper: HTMLElement
options: {
    insertPosition?: InsertPosition;
    overlayColor?: string;
} & Partial<WaveSurferOptions> & {
    height: number;
    insertPosition: string;
    overlayColor: string;
}

Type declaration

  • Optional insertPosition?: InsertPosition
  • Optional overlayColor?: string

Type declaration

  • height: number
  • insertPosition: string
  • overlayColor: string
overlay: HTMLElement
subscriptions: (() => void)[] = []

Type declaration

    • (): void
    • Returns void

wavesurfer?: default

Methods

  • Do not call directly, only called by WavesSurfer internally

    Parameters

    Returns void

  • Emit an event

    Type Parameters

    • EventName extends "click" | "dblclick" | "drag" | "dragend" | "dragstart" | "seeking" | "timeupdate" | "init" | "decode" | "ready" | "redraw" | "redrawcomplete" | "audioprocess" | "interaction" | "destroy"

    Parameters

    Returns void

  • Subscribe to an event. Returns an unsubscribe function.

    Type Parameters

    • EventName extends "click" | "dblclick" | "drag" | "dragend" | "dragstart" | "seeking" | "timeupdate" | "init" | "decode" | "ready" | "redraw" | "redrawcomplete" | "audioprocess" | "interaction" | "destroy"

    Parameters

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

    Returns (() => void)

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

        Returns void

  • Called by wavesurfer, don't call manually

    Returns void

  • Subscribe to an event only once

    Type Parameters

    • EventName extends "click" | "dblclick" | "drag" | "dragend" | "dragstart" | "seeking" | "timeupdate" | "init" | "decode" | "ready" | "redraw" | "redrawcomplete" | "audioprocess" | "interaction" | "destroy"

    Parameters

    Returns (() => void)

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

        Returns void

  • Unsubscribe from an event

    Type Parameters

    • EventName extends "click" | "dblclick" | "drag" | "dragend" | "dragstart" | "seeking" | "timeupdate" | "init" | "decode" | "ready" | "redraw" | "redrawcomplete" | "audioprocess" | "interaction" | "destroy"

    Parameters

    Returns void

  • Clear all events

    Returns void

Generated using TypeDoc