@rive-app/canvas-advanced
Advanced tools
Comparing version 1.0.85 to 1.0.86
{ | ||
"name": "@rive-app/canvas-advanced", | ||
"version": "1.0.85", | ||
"version": "1.0.86", | ||
"description": "Rive's lightweight low-level canvas based web api.", | ||
@@ -5,0 +5,0 @@ "main": "canvas_advanced.mjs", |
@@ -94,2 +94,8 @@ interface RiveOptions { | ||
disableFPSCounter(): void; | ||
/** | ||
* Cleans up any WASM-generate objects that need to be destroyed manually. | ||
* This should be called when you wish to remove a rive animation from view. | ||
*/ | ||
cleanup(): void; | ||
} | ||
@@ -130,2 +136,3 @@ | ||
clear(): void; | ||
delete(): void; | ||
flush(): void; | ||
@@ -236,2 +243,4 @@ translate(x: number, y: number): void; | ||
artboardCount(): number; | ||
delete(): void; | ||
} | ||
@@ -314,3 +323,3 @@ | ||
* Learn more: https://help.rive.app/editor/manipulating-shapes/bones | ||
* | ||
* | ||
* @param name - Name of the Bone to grab a reference to | ||
@@ -422,3 +431,3 @@ */ | ||
* multiple animations together and want to dictate a strength for each of the animations played | ||
* back. This also applies new values to properties of objects on the Artboard according to the | ||
* back. This also applies new values to properties of objects on the Artboard according to the | ||
* keys of the animation. | ||
@@ -490,3 +499,3 @@ * This must be called after the `advance()` method of `LinearAnimationInstance` | ||
* interest at a given moment. | ||
* | ||
* | ||
* @param x - X coordinate | ||
@@ -500,3 +509,3 @@ * @param y - Y coordinate | ||
* interest at a given moment. | ||
* | ||
* | ||
* @param x - X coordinate | ||
@@ -657,3 +666,3 @@ * @param y - Y coordinate | ||
* the passed-in `mat` parameter | ||
* | ||
* | ||
* @param mat - Reference Mat2D to store the newly inverted matrix into if successful | ||
@@ -660,0 +669,0 @@ * @returns True if the matrix could be inverted |
256515
819