@rive-app/webgl-single 2.6.0 → 2.7.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.6.0",
3
+ "version": "2.7.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
@@ -533,6 +533,18 @@ export declare const Testing: {
533
533
  EventManager: typeof EventManager;
534
534
  TaskQueueManager: typeof TaskQueueManager;
535
535
  };
536
- export declare const decodeImage: (bytes: Uint8Array) => Promise<any>;
537
- export declare const decodeFont: (bytes: Uint8Array) => Promise<any>;
536
+ /**
537
+ * Decodes bytes into an image.
538
+ *
539
+ * Be sure to call `.dispose()` on the image once it is no longer needed. This
540
+ * allows the engine to clean it up when it is not used by any more animations.
541
+ */
542
+ export declare const decodeImage: (bytes: Uint8Array) => Promise<rc.Image>;
543
+ /**
544
+ * Decodes bytes into a font.
545
+ *
546
+ * Be sure to call `.dispose()` on the font once it is no longer needed. This
547
+ * allows the engine to clean it up when it is not used by any more animations.
548
+ */
549
+ export declare const decodeFont: (bytes: Uint8Array) => Promise<rc.Font>;
538
550
  export {};