@rive-app/webgl2 2.31.1 → 2.31.3
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 +4 -1
- package/rive.js +682 -593
- package/rive.js.map +1 -1
- package/rive.wasm +0 -0
- package/rive_advanced.mjs.d.ts +1 -1
package/package.json
CHANGED
package/rive.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as rc from "./rive_advanced.mjs";
|
|
2
|
+
import { FinalizableTarget } from "./utils";
|
|
2
3
|
export type AssetLoadCallback = (asset: rc.FileAsset, bytes: Uint8Array) => Boolean;
|
|
3
4
|
export type { FileAsset, AudioAsset, FontAsset, ImageAsset, } from "./rive_advanced.mjs";
|
|
4
5
|
/**
|
|
@@ -306,7 +307,7 @@ export interface RiveFileParameters {
|
|
|
306
307
|
onLoad?: EventCallback;
|
|
307
308
|
onLoadError?: EventCallback;
|
|
308
309
|
}
|
|
309
|
-
export declare class RiveFile {
|
|
310
|
+
export declare class RiveFile implements FinalizableTarget {
|
|
310
311
|
private static readonly missingErrorMessage;
|
|
311
312
|
private static readonly fileLoadErrorMessage;
|
|
312
313
|
private src;
|
|
@@ -318,7 +319,9 @@ export declare class RiveFile {
|
|
|
318
319
|
private eventManager;
|
|
319
320
|
private referenceCount;
|
|
320
321
|
private destroyed;
|
|
322
|
+
selfUnref: boolean;
|
|
321
323
|
constructor(params: RiveFileParameters);
|
|
324
|
+
private releaseFile;
|
|
322
325
|
private initData;
|
|
323
326
|
init(): Promise<void>;
|
|
324
327
|
private fireLoadError;
|