@rive-app/webgl-single 1.0.84 → 1.0.86
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 +11 -2
- package/rive.js +45 -25
- package/rive.js.map +1 -1
- package/rive_advanced.mjs.d.ts +14 -5
package/package.json
CHANGED
package/rive.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as rc from
|
|
1
|
+
import * as rc from "./rive_advanced.mjs";
|
|
2
2
|
/**
|
|
3
3
|
* Generic type for a parameterless void callback
|
|
4
4
|
*/
|
|
@@ -288,6 +288,15 @@ export declare class Rive {
|
|
|
288
288
|
private alignRenderer;
|
|
289
289
|
get fps(): number;
|
|
290
290
|
get frameTime(): string | 0;
|
|
291
|
+
/**
|
|
292
|
+
* Cleans up all Wasm-generated objects that need to be manually destroyed:
|
|
293
|
+
* artboard instances, animation instances, state machine instances,
|
|
294
|
+
* renderer instance, file and runtime.
|
|
295
|
+
*
|
|
296
|
+
* Once this is called, you will need to initialise a new instance of the
|
|
297
|
+
* Rive class
|
|
298
|
+
*/
|
|
299
|
+
cleanup(): void;
|
|
291
300
|
/**
|
|
292
301
|
* Cleans up any Wasm-generated objects that need to be manually destroyed:
|
|
293
302
|
* artboard instances, animation instances, state machine instances.
|
|
@@ -295,7 +304,7 @@ export declare class Rive {
|
|
|
295
304
|
* Once this is called, things will need to be reinitialized or bad things
|
|
296
305
|
* might happen.
|
|
297
306
|
*/
|
|
298
|
-
|
|
307
|
+
cleanupInstances(): void;
|
|
299
308
|
play(animationNames?: string | string[], autoplay?: true): void;
|
|
300
309
|
pause(animationNames?: string | string[]): void;
|
|
301
310
|
scrub(animationNames?: string | string[], value?: number): void;
|