@kieransimkin/dancemoves 3.1.19 → 3.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,5 @@
1
+ export interface RudimentMediaClock extends EventTarget {readonly nodeType:number;readonly tagName:string;readonly currentTime:number;readonly paused:boolean;readonly ended:boolean;readonly seeking:boolean;readonly playbackRate:number}
2
+ export type RudimentPlaybackMedia = HTMLMediaElement | RudimentMediaClock;
1
3
  /** DanceMoves rudiment animation API v1.1; available on WordPress Page requests. */
2
4
  export type RudimentName = 'bounce' | 'sway' | 'circle' | 'figure_eight' | 'step_touch' |
3
5
  'box_step' | 'helix' | 'clay_background' | 'single_stroke_roll' | 'double_stroke_roll' |
@@ -19,7 +21,7 @@ export interface RudimentFrame {
19
21
  readonly id: string;
20
22
  readonly root: Element;
21
23
  readonly target: Element;
22
- readonly audio: HTMLAudioElement | null;
24
+ readonly audio: RudimentPlaybackMedia | null;
23
25
  readonly rudiment: RudimentName;
24
26
  readonly clock: 'page' | 'audio';
25
27
  readonly sourceBeats: number;
@@ -43,7 +45,7 @@ export interface RudimentOptions {
43
45
  readonly target: Element | string;
44
46
  readonly root?: Element | string;
45
47
  readonly clock?: RudimentClock;
46
- readonly audio?: HTMLAudioElement | string;
48
+ readonly audio?: RudimentPlaybackMedia | string;
47
49
  readonly rate?: number;
48
50
  readonly phasePips?: number;
49
51
  readonly amplitude?: number | Partial<Offset3>;