@rive-app/webgl-single 2.14.3 → 2.15.0

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": "2.14.3",
3
+ "version": "2.15.0",
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
@@ -1,5 +1,5 @@
1
1
  import * as rc from "./rive_advanced.mjs";
2
- export type { FileAsset, FontAsset, ImageAsset } from "./rive_advanced.mjs";
2
+ export type { FileAsset, AudioAsset, FontAsset, ImageAsset, } from "./rive_advanced.mjs";
3
3
  /**
4
4
  * Generic type for a parameterless void callback
5
5
  */
@@ -567,17 +567,24 @@ export declare const Testing: {
567
567
  EventManager: typeof EventManager;
568
568
  TaskQueueManager: typeof TaskQueueManager;
569
569
  };
570
+ /**
571
+ * Decodes bytes into an audio asset.
572
+ *
573
+ * Be sure to call `.unref()` on the audio once it is no longer needed. This
574
+ * allows the engine to clean it up when it is not used by any more animations.
575
+ */
576
+ export declare const decodeAudio: (bytes: Uint8Array) => Promise<rc.Audio>;
570
577
  /**
571
578
  * Decodes bytes into an image.
572
579
  *
573
- * Be sure to call `.dispose()` on the image once it is no longer needed. This
580
+ * Be sure to call `.unref()` on the image once it is no longer needed. This
574
581
  * allows the engine to clean it up when it is not used by any more animations.
575
582
  */
576
583
  export declare const decodeImage: (bytes: Uint8Array) => Promise<rc.Image>;
577
584
  /**
578
585
  * Decodes bytes into a font.
579
586
  *
580
- * Be sure to call `.dispose()` on the font once it is no longer needed. This
587
+ * Be sure to call `.unref()` on the font once it is no longer needed. This
581
588
  * allows the engine to clean it up when it is not used by any more animations.
582
589
  */
583
590
  export declare const decodeFont: (bytes: Uint8Array) => Promise<rc.Font>;