@rive-app/canvas-single 2.35.2 → 2.35.4

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/canvas-single",
3
- "version": "2.35.2",
3
+ "version": "2.35.4",
4
4
  "description": "Rive's high-level canvas based web api all in one js file.",
5
5
  "main": "rive.js",
6
6
  "homepage": "https://rive.app",
package/rive.d.ts CHANGED
@@ -792,6 +792,21 @@ export declare class Rive {
792
792
  getBindableArtboard(name: string): BindableArtboard | null;
793
793
  getDefaultBindableArtboard(): BindableArtboard | null;
794
794
  }
795
+ export declare enum DataType {
796
+ none = "none",
797
+ string = "string",
798
+ number = "number",
799
+ boolean = "boolean",
800
+ color = "color",
801
+ list = "list",
802
+ enumType = "enumType",
803
+ trigger = "trigger",
804
+ viewModel = "viewModel",
805
+ integer = "integer",
806
+ listIndex = "listIndex",
807
+ image = "image",
808
+ artboard = "artboard"
809
+ }
795
810
  export declare class ViewModel {
796
811
  private _viewModel;
797
812
  constructor(viewModel: rc.ViewModel);
@@ -800,7 +815,7 @@ export declare class ViewModel {
800
815
  instanceByIndex(index: number): ViewModelInstance | null;
801
816
  instanceByName(name: string): ViewModelInstance | null;
802
817
  defaultInstance(): ViewModelInstance | null;
803
- instance(): ViewModelInstance | null;
818
+ instance(): ViewModelInstance;
804
819
  get properties(): rc.ViewModelProperty[];
805
820
  get instanceNames(): string[];
806
821
  }