Type alias MinimapPluginEvents

MinimapPluginEvents: BasePluginEvents & {
    audioprocess: [currentTime: number];
    click: [relativeX: number, relativeY: number];
    dblclick: [relativeX: number, relativeY: number];
    decode: [duration: number];
    drag: [relativeX: number];
    dragend: [relativeX: number];
    dragstart: [relativeX: number];
    init: [];
    interaction: [];
    ready: [];
    redraw: [];
    redrawcomplete: [];
    seeking: [currentTime: number];
    timeupdate: [currentTime: number];
}

Type declaration

  • audioprocess: [currentTime: number]

    An alias of timeupdate but only when the audio is playing

  • click: [relativeX: number, relativeY: number]

    When the user clicks on the waveform

  • dblclick: [relativeX: number, relativeY: number]

    When the user double-clicks on the waveform

  • decode: [duration: number]

    When the audio has been decoded

  • drag: [relativeX: number]

    When the user drags the cursor

  • dragend: [relativeX: number]

    When the user ends dragging the cursor

  • dragstart: [relativeX: number]

    When the user starts dragging the cursor

  • init: []

    After the minimap is created

  • interaction: []

    When the user interacts with the waveform (i.g. clicks or drags on it)

  • ready: []

    When the audio is both decoded and can play

  • redraw: []

    When visible waveform is drawn

  • redrawcomplete: []

    When all audio channel chunks of the waveform have drawn

  • seeking: [currentTime: number]

    When the user seeks to a new position

  • timeupdate: [currentTime: number]

    On audio position change, fires continuously during playback

Generated using TypeDoc