@rive-app/webgl-single 2.33.3 → 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 +1 -1
- package/rive.d.ts +4 -0
- package/rive.js +37 -17
- package/rive.js.map +1 -1
- package/rive_advanced.mjs.d.ts +1 -0
package/package.json
CHANGED
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;
|