@rive-app/webgl-advanced-single 2.24.1 → 2.25.1

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-advanced-single",
3
- "version": "2.24.1",
3
+ "version": "2.25.1",
4
4
  "description": "Rive's webgl low-level canvas based web api all in one js file.",
5
5
  "main": "webgl_advanced_single.mjs",
6
6
  "homepage": "https://rive.app",
@@ -730,6 +730,12 @@ export declare class StateMachineInstance {
730
730
  * @param sec - Scrub the state machine instance by a number of seconds
731
731
  */
732
732
  advance(sec: number): boolean;
733
+ /**
734
+ * Advances/scrubs the StateMachineInstance by the set amount of seconds. Note that this will
735
+ * apply changes to the properties of objects in the Artboard.
736
+ * @param sec - Scrub the state machine instance by a number of seconds
737
+ */
738
+ advanceAndApply(sec: number): boolean;
733
739
  /**
734
740
  * Returns the number of states changed while the state machine played
735
741
  * @returns Number of states changed in the duration of the state machine played