@rive-app/canvas-advanced-lite 2.45.1 → 2.46.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/canvas-advanced-lite",
3
- "version": "2.45.1",
3
+ "version": "2.46.0",
4
4
  "description": "Rive's lite low-level canvas based web api.",
5
5
  "main": "canvas_advanced.mjs",
6
6
  "homepage": "https://rive.app",
@@ -27,7 +27,7 @@
27
27
  "rive_fallback.wasm",
28
28
  "rive_advanced.mjs.d.ts"
29
29
  ],
30
- "typings": "rive_advanced.d.ts",
30
+ "typings": "rive_advanced.mjs.d.ts",
31
31
  "dependencies": {},
32
32
  "browser": {
33
33
  "fs": false,
package/rive.wasm CHANGED
Binary file
@@ -1,8 +1,18 @@
1
- import type {
2
- ImageWrapper,
3
- AudioWrapper,
4
- FontWrapper,
5
- } from "./utils/finalizationRegistry";
1
+ // The high level wrappers by shape, since the advanced packages ship no utils.
2
+ interface ImageWrapper {
3
+ readonly nativeImage: ImageInternal;
4
+ unref(): void;
5
+ }
6
+
7
+ interface AudioWrapper {
8
+ readonly nativeAudio: AudioInternal;
9
+ unref(): void;
10
+ }
11
+
12
+ interface FontWrapper {
13
+ readonly nativeFont: FontInternal;
14
+ unref(): void;
15
+ }
6
16
 
7
17
  interface RiveOptions {
8
18
  locateFile(file: string): string;
Binary file