@rive-app/webgl-single 1.1.3 → 1.1.5
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 +9 -0
- package/rive.js +31 -18
- package/rive.js.map +1 -1
- package/rive_advanced.mjs.d.ts +61 -20
package/package.json
CHANGED
package/rive.d.ts
CHANGED
|
@@ -182,6 +182,12 @@ export interface RiveParameters {
|
|
|
182
182
|
layout?: Layout;
|
|
183
183
|
autoplay?: boolean;
|
|
184
184
|
useOffscreenRenderer?: boolean;
|
|
185
|
+
/**
|
|
186
|
+
* Turn off Rive Listeners. This means state machines that have Listeners
|
|
187
|
+
* will not be invoked, and also, no event listeners pertaining to Listeners
|
|
188
|
+
* will be attached to the <canvas> element
|
|
189
|
+
*/
|
|
190
|
+
shouldDisableRiveListeners?: boolean;
|
|
185
191
|
onLoad?: EventCallback;
|
|
186
192
|
onLoadError?: EventCallback;
|
|
187
193
|
onPlay?: EventCallback;
|
|
@@ -226,6 +232,7 @@ export interface RiveLoadParameters {
|
|
|
226
232
|
animations?: string | string[];
|
|
227
233
|
stateMachines?: string | string[];
|
|
228
234
|
useOffscreenRenderer?: boolean;
|
|
235
|
+
shouldDisableRiveListeners?: boolean;
|
|
229
236
|
}
|
|
230
237
|
export interface RiveResetParameters {
|
|
231
238
|
artboard?: string;
|
|
@@ -261,12 +268,14 @@ export declare class Rive {
|
|
|
261
268
|
private taskQueue;
|
|
262
269
|
private animator;
|
|
263
270
|
private static readonly missingErrorMessage;
|
|
271
|
+
private shouldDisableRiveListeners;
|
|
264
272
|
durations: number[];
|
|
265
273
|
frameTimes: number[];
|
|
266
274
|
frameCount: number;
|
|
267
275
|
constructor(params: RiveParameters);
|
|
268
276
|
static new(params: RiveParameters): Rive;
|
|
269
277
|
private init;
|
|
278
|
+
private setupRiveListeners;
|
|
270
279
|
private initData;
|
|
271
280
|
private initArtboard;
|
|
272
281
|
drawFrame(): void;
|