Hierarchy

Constructors

  • Create an instance of RegionsPlugin

    Parameters

    • Optional options: undefined

    Returns RegionsPlugin

Properties

options: undefined
regions: Region[] = []
regionsContainer: HTMLElement
subscriptions: (() => void)[] = []

Type declaration

    • (): void
    • Returns void

wavesurfer?: WaveSurfer

Methods

  • Destroy the plugin and clean up

    Returns void

  • Enable creation of regions by dragging on an empty space on the waveform. Returns a function to disable the drag selection.

    Parameters

    Returns (() => void)

      • (): void
      • Enable creation of regions by dragging on an empty space on the waveform. Returns a function to disable the drag selection.

        Returns void

  • Subscribe to an event. Returns an unsubscribe function.

    Type Parameters

    Parameters

    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

    Parameters

    Returns (() => void)

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

        Returns void

  • Unsubscribe from an event

    Type Parameters

    Parameters

    Returns void

  • Clear all events

    Returns void

Generated using TypeDoc