@rive-app/canvas
Advanced tools
Comparing version 2.16.0 to 2.17.0
{ | ||
"name": "@rive-app/canvas", | ||
"version": "2.16.0", | ||
"version": "2.17.0", | ||
"description": "Rive's canvas based web api.", | ||
@@ -5,0 +5,0 @@ "main": "rive.js", |
@@ -453,2 +453,8 @@ interface RiveOptions { | ||
textRun(name: string): TextValueRun; | ||
/** | ||
* Returns a reference for a SMIInput object to get/set an input value for | ||
* @param name - Name of the Input to grab a reference to | ||
* @param path - Path of where the input exists at an artboard level | ||
*/ | ||
inputByPath(name: string, path: string): SMIInput; | ||
} | ||
@@ -455,0 +461,0 @@ |
@@ -498,2 +498,23 @@ import * as rc from "./rive_advanced.mjs"; | ||
stateMachineInputs(name: string): StateMachineInput[]; | ||
private retrieveInputAtPath; | ||
/** | ||
* Set the boolean input with the provided name at the given path with value | ||
* @param input the state machine input name | ||
* @param value the value to set the input to | ||
* @param path the path the input is located at an artboard level | ||
*/ | ||
setBooleanStateAtPath(inputName: string, value: boolean, path: string): void; | ||
/** | ||
* Set the number input with the provided name at the given path with value | ||
* @param input the state machine input name | ||
* @param value the value to set the input to | ||
* @param path the path the input is located at an artboard level | ||
*/ | ||
setNumberStateAtPath(inputName: string, value: number, path: string): void; | ||
/** | ||
* Fire the trigger with the provided name at the given path | ||
* @param input the state machine input name | ||
* @param path the path the input is located at an artboard level | ||
*/ | ||
fireStateAtPath(inputName: string, path: string): void; | ||
get playingStateMachineNames(): string[]; | ||
@@ -500,0 +521,0 @@ get playingAnimationNames(): string[]; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2690126
7697
77