@rive-app/webgl-single 2.14.0 → 2.14.1
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 +7 -1
- package/rive.js +34 -11
- 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
|
*/
|
|
@@ -304,6 +304,7 @@ export declare class Rive {
|
|
|
304
304
|
private shouldDisableRiveListeners;
|
|
305
305
|
private automaticallyHandleEvents;
|
|
306
306
|
private enableRiveAssetCDN;
|
|
307
|
+
private _volume;
|
|
307
308
|
durations: number[];
|
|
308
309
|
frameTimes: number[];
|
|
309
310
|
frameCount: number;
|
|
@@ -525,6 +526,11 @@ export declare class Rive {
|
|
|
525
526
|
* Returns the contents of a Rive file: the artboards, animations, and state machines
|
|
526
527
|
*/
|
|
527
528
|
get contents(): RiveFileContents;
|
|
529
|
+
/**
|
|
530
|
+
* getter and setter for the volume of the artboard
|
|
531
|
+
*/
|
|
532
|
+
get volume(): number;
|
|
533
|
+
set volume(value: number);
|
|
528
534
|
}
|
|
529
535
|
/**
|
|
530
536
|
* Contents of a state machine input
|