Global

Methods


waitForEvents(eventTarget, eventNames)

Waits for multiple DOM events to fire
Parameters:
Name Type Description
eventTarget object element to listen for events on (default document)
eventNames Array.<string> | string array or csv string of event names
Returns:
resolves with array of event objects
Type
Promise.<Array>
Example
waitForEvents(window, 'DOMContentLoaded,online').then(function(result) {
     // do stuff
});

Type Definitions


CanvasWithInterval

Type:
  • Object
Properties:
Name Type Description
image any Annotation canvas in form of a dataURL
startTime number Start time of canvas
endTime number End time of canvas

FormattedTime

Type:
  • Object
Properties:
Name Type Description
value string The formatted time
format string The format of the formatted time