@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rive-app/webgl-single",
3
- "version": "1.0.84",
3
+ "version": "1.0.86",
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
@@ -1,4 +1,4 @@
1
- import * as rc from './rive_advanced.mjs';
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
- cleanup(): void;
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;