@rive-app/webgl 1.0.35 → 1.0.38

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/rive.wasm CHANGED
Binary file
@@ -159,14 +159,13 @@ interface RiveOptions {
159
159
  /** Time of the animation in seconds */
160
160
  time: number;
161
161
  didLoop: boolean;
162
- constructor(animation: LinearAnimation);
162
+ constructor(animation: LinearAnimation, artboard: Artboard);
163
163
  advance(sec: number): any;
164
164
  /**
165
165
  * Apply animation on the artboard
166
- * @param artboard the Artboard on which apply the frame.
167
166
  * @param mix 0-1 the strength of the animation in the animations mix.
168
167
  */
169
- apply(artboard: Artboard, mix: number): any;
168
+ apply(mix: number): any;
170
169
  // Deletes the backing Wasm animation instance
171
170
  delete(): void;
172
171
  }
@@ -176,10 +175,10 @@ interface RiveOptions {
176
175
  }
177
176
 
178
177
  export declare class StateMachineInstance {
179
- constructor(stateMachine: StateMachine);
178
+ constructor(stateMachine: StateMachine, artboard: Artboard);
180
179
  inputCount(): number;
181
180
  input(i: number): SMIInput;
182
- advance(artboard: Artboard, sec: number): any;
181
+ advance(sec: number): any;
183
182
  stateChangedCount(): number;
184
183
  stateChangedNameByIndex(i: number): string;
185
184
  // Deletes the backing Wasm state machine instance