@rive-app/webgl-single 2.33.2 → 2.34.0

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": "2.33.2",
3
+ "version": "2.34.0",
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
@@ -128,7 +128,9 @@ declare class Artboard extends BaseArtboard {
128
128
  declare class BindableArtboard extends BaseArtboard implements rc.FinalizableTarget {
129
129
  selfUnref: boolean;
130
130
  nativeArtboard: rc.BindableArtboard;
131
+ nativeViewModel: rc.ViewModelInstance | null;
131
132
  constructor(artboard: rc.BindableArtboard);
133
+ set viewModel(value: ViewModelInstance);
132
134
  destroy(): void;
133
135
  }
134
136
  /**
@@ -386,6 +388,7 @@ export declare class RiveFile implements rc.FinalizableTarget {
386
388
  getBindableArtboard(name: string): BindableArtboard | null;
387
389
  getDefaultBindableArtboard(): BindableArtboard | null;
388
390
  internalBindableArtboardFromArtboard(artboard: rc.Artboard): BindableArtboard | null;
391
+ viewModelByName(name: string): ViewModel | null;
389
392
  }
390
393
  export declare class Rive {
391
394
  private readonly canvas;
@@ -425,6 +428,7 @@ export declare class Rive {
425
428
  private _artboardHeight;
426
429
  private _devicePixelRatioUsed;
427
430
  private _hasZeroSize;
431
+ private _needsRedraw;
428
432
  private _audioEventListener;
429
433
  private _boundDraw;
430
434
  private _viewModelInstance;