@rive-app/webgl-single 2.14.0 → 2.14.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 +10 -2
- package/rive.js +223 -4
- package/rive.js.map +1 -1
- package/rive_advanced.mjs.d.ts +5 -0
package/package.json
CHANGED
package/rive.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as rc from "./rive_advanced.mjs";
|
|
2
|
-
export type { FileAsset, FontAsset, ImageAsset } from
|
|
2
|
+
export type { FileAsset, FontAsset, ImageAsset } from "./rive_advanced.mjs";
|
|
3
3
|
/**
|
|
4
4
|
* Generic type for a parameterless void callback
|
|
5
5
|
*/
|
|
@@ -117,7 +117,8 @@ export declare enum EventType {
|
|
|
117
117
|
Draw = "draw",
|
|
118
118
|
Advance = "advance",
|
|
119
119
|
StateChange = "statechange",
|
|
120
|
-
RiveEvent = "riveevent"
|
|
120
|
+
RiveEvent = "riveevent",
|
|
121
|
+
AudioStatusChange = "audiostatuschange"
|
|
121
122
|
}
|
|
122
123
|
export type RiveEventPayload = rc.RiveEvent | rc.OpenUrlEvent;
|
|
123
124
|
export interface Event {
|
|
@@ -304,12 +305,14 @@ export declare class Rive {
|
|
|
304
305
|
private shouldDisableRiveListeners;
|
|
305
306
|
private automaticallyHandleEvents;
|
|
306
307
|
private enableRiveAssetCDN;
|
|
308
|
+
private _volume;
|
|
307
309
|
durations: number[];
|
|
308
310
|
frameTimes: number[];
|
|
309
311
|
frameCount: number;
|
|
310
312
|
isTouchScrollEnabled: boolean;
|
|
311
313
|
constructor(params: RiveParameters);
|
|
312
314
|
static new(params: RiveParameters): Rive;
|
|
315
|
+
private onSystemAudioChanged;
|
|
313
316
|
private init;
|
|
314
317
|
/**
|
|
315
318
|
* Setup Rive Listeners on the canvas
|
|
@@ -525,6 +528,11 @@ export declare class Rive {
|
|
|
525
528
|
* Returns the contents of a Rive file: the artboards, animations, and state machines
|
|
526
529
|
*/
|
|
527
530
|
get contents(): RiveFileContents;
|
|
531
|
+
/**
|
|
532
|
+
* getter and setter for the volume of the artboard
|
|
533
|
+
*/
|
|
534
|
+
get volume(): number;
|
|
535
|
+
set volume(value: number);
|
|
528
536
|
}
|
|
529
537
|
/**
|
|
530
538
|
* Contents of a state machine input
|