@rive-app/canvas-single 2.37.0 → 2.37.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 +4 -2
- package/rive.d.ts +2 -2
- package/rive.js +12 -12
- package/rive.js.map +1 -1
- package/runtimeLoader.d.ts +20 -0
- package/utils/finalizationRegistry.d.ts +94 -0
- package/utils/index.d.ts +4 -0
- package/utils/registerTouchInteractions.d.ts +19 -0
- package/utils/riveFont.d.ts +15 -0
- package/utils/sanitizeUrl.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rive-app/canvas-single",
|
|
3
|
-
"version": "2.37.
|
|
3
|
+
"version": "2.37.1",
|
|
4
4
|
"description": "Rive's high-level canvas based web api all in one js file.",
|
|
5
5
|
"main": "rive.js",
|
|
6
6
|
"homepage": "https://rive.app",
|
|
@@ -25,7 +25,9 @@
|
|
|
25
25
|
"rive.js",
|
|
26
26
|
"rive.js.map",
|
|
27
27
|
"rive.d.ts",
|
|
28
|
-
"rive_advanced.mjs.d.ts"
|
|
28
|
+
"rive_advanced.mjs.d.ts",
|
|
29
|
+
"runtimeLoader.d.ts",
|
|
30
|
+
"utils"
|
|
29
31
|
],
|
|
30
32
|
"typings": "rive.d.ts",
|
|
31
33
|
"dependencies": {},
|
package/rive.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as rc from "./rive_advanced.mjs";
|
|
2
2
|
import { RuntimeLoader, type RuntimeCallback } from "./runtimeLoader";
|
|
3
3
|
import { ImageWrapper, AudioWrapper, FontWrapper, RiveFont as RiveFontClassUtil } from "./utils";
|
|
4
|
-
export type AssetLoadCallback = (asset: rc.FileAsset, bytes: Uint8Array) =>
|
|
4
|
+
export type AssetLoadCallback = (asset: rc.FileAsset, bytes: Uint8Array) => boolean;
|
|
5
5
|
export { RiveFontClassUtil as RiveFont };
|
|
6
6
|
export type { FileAsset, AudioAsset, FontAsset, ImageAsset, } from "./rive_advanced.mjs";
|
|
7
7
|
/**
|
|
@@ -285,7 +285,7 @@ export interface RiveParameters {
|
|
|
285
285
|
*/
|
|
286
286
|
onloaderror?: EventCallback;
|
|
287
287
|
/**
|
|
288
|
-
* @deprecated Use `
|
|
288
|
+
* @deprecated Use `onPlay()` instead
|
|
289
289
|
*/
|
|
290
290
|
onplay?: EventCallback;
|
|
291
291
|
/**
|