Hierarchy

Constructors

Properties

options: TimelinePluginOptions & {
    formatTimeCallback: ((seconds) => string);
    height: number;
}

Type declaration

  • formatTimeCallback: ((seconds) => string)
      • (seconds): string
      • Parameters

        • seconds: number

        Returns string

  • height: number
subscriptions: (() => void)[] = []

Type declaration

    • (): void
    • Returns void

timelineWrapper: HTMLElement
wavesurfer?: default

Methods

  • Do not call directly, only called by WavesSurfer internally

    Parameters

    Returns void

  • Parameters

    • pxPerSec: number

    Returns number

  • Parameters

    • pxPerSec: number

    Returns number

  • Parameters

    • pxPerSec: number

    Returns number

  • Emit an event

    Type Parameters

    • EventName extends "ready" | "destroy"

    Parameters

    Returns void

  • Subscribe to an event. Returns an unsubscribe function.

    Type Parameters

    • EventName extends "ready" | "destroy"

    Parameters

    • event: EventName
    • listener: EventListener<TimelinePluginEvents, 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 "ready" | "destroy"

    Parameters

    Returns (() => void)

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

        Returns void

  • Unsubscribe from an event

    Type Parameters

    • EventName extends "ready" | "destroy"

    Parameters

    Returns void

  • Clear all events

    Returns void

  • Parameters

    • start: number
    • container: HTMLElement
    • element: HTMLElement

    Returns void

Generated using TypeDoc