@rive-app/webgl-single 2.27.1 → 2.27.2

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.27.1",
3
+ "version": "2.27.2",
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
@@ -799,6 +799,12 @@ export declare class ViewModelInstance {
799
799
  * @param path - path to the enum property
800
800
  */
801
801
  enum(path: string): ViewModelInstanceEnum | null;
802
+ /**
803
+ * method to access a property instance of type list belonging
804
+ * to the view model instance or to a nested view model instance
805
+ * @param path - path to the list property
806
+ */
807
+ list(path: string): ViewModelInstanceList | null;
802
808
  /**
803
809
  * method to access a view model property instance belonging
804
810
  * to the view model instance or to a nested view model instance
@@ -863,6 +869,15 @@ export declare class ViewModelInstanceEnum extends ViewModelInstanceValue {
863
869
  get values(): string[];
864
870
  internalHandleCallback(callback: Function): void;
865
871
  }
872
+ export declare class ViewModelInstanceList extends ViewModelInstanceValue {
873
+ constructor(instance: rc.ViewModelInstanceList, parent: ViewModelInstance);
874
+ get length(): number;
875
+ addInstance(instance: ViewModelInstance): void;
876
+ removeInstance(instance: ViewModelInstance): void;
877
+ removeInstanceAt(index: number): void;
878
+ instanceAt(index: number): ViewModelInstance | null;
879
+ internalHandleCallback(callback: Function): void;
880
+ }
866
881
  export declare class ViewModelInstanceColor extends ViewModelInstanceValue {
867
882
  constructor(instance: rc.ViewModelInstanceColor, parent: ViewModelInstance);
868
883
  get value(): number;