@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 +1 -1
- package/rive.d.ts +3 -1
- package/rive.js +16 -2
- package/rive.js.map +1 -1
package/package.json
CHANGED
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
|
*/
|