@rive-app/webgl-single 1.2.1 → 1.2.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rive-app/webgl-single",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Rive's webgl based web api with bundled wasm.",
5
5
  "main": "rive.js",
6
6
  "homepage": "https://rive.app",
package/rive.d.ts CHANGED
@@ -106,11 +106,12 @@ export declare enum EventType {
106
106
  Stop = "stop",
107
107
  Loop = "loop",
108
108
  Draw = "draw",
109
+ Advance = "advance",
109
110
  StateChange = "statechange"
110
111
  }
111
112
  export interface Event {
112
113
  type: EventType;
113
- data?: string | string[] | LoopEvent;
114
+ data?: string | string[] | LoopEvent | number;
114
115
  }
115
116
  /**
116
117
  * Looping types: one-shot, loop, and ping-pong
@@ -195,6 +196,7 @@ export interface RiveParameters {
195
196
  onStop?: EventCallback;
196
197
  onLoop?: EventCallback;
197
198
  onStateChange?: EventCallback;
199
+ onAdvance?: EventCallback;
198
200
  /**
199
201
  * @deprecated Use `onLoad()` instead
200
202
  */