@rive-app/canvas-advanced 2.30.1 → 2.30.3

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.
@@ -726,7 +726,7 @@ function Xa(a, b) {
726
726
  return Wa(c, a, b);
727
727
  }));
728
728
  }
729
- var Ya, Za, cb = {458140:(a, b, c, d, e) => {
729
+ var Ya, Za, cb = {459004:(a, b, c, d, e) => {
730
730
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
731
731
  return 0;
732
732
  }
@@ -789,11 +789,11 @@ var Ya, Za, cb = {458140:(a, b, c, d, e) => {
789
789
  }
790
790
  window.h.Aa += 1;
791
791
  return 1;
792
- }, 460318:() => {
792
+ }, 461182:() => {
793
793
  "undefined" !== typeof window.h && (window.h.Ta.map(function(a) {
794
794
  document.removeEventListener(a, window.h.unlock, !0);
795
795
  }), --window.h.Aa, 0 === window.h.Aa && delete window.h);
796
- }, 460622:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 460726:() => {
796
+ }, 461486:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 461590:() => {
797
797
  try {
798
798
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
799
799
  a.close();
@@ -801,7 +801,7 @@ var Ya, Za, cb = {458140:(a, b, c, d, e) => {
801
801
  } catch (c) {
802
802
  return 0;
803
803
  }
804
- }, 460897:(a, b, c, d, e, f) => {
804
+ }, 461761:(a, b, c, d, e, f) => {
805
805
  if ("undefined" === typeof window.h) {
806
806
  return -1;
807
807
  }
@@ -847,7 +847,7 @@ var Ya, Za, cb = {458140:(a, b, c, d, e) => {
847
847
  a == window.h.I.ya && g.Z.connect(g.J.destination);
848
848
  g.qb = f;
849
849
  return window.h.yc(g);
850
- }, 463774:a => window.h.ra(a).J.sampleRate, 463847:a => {
850
+ }, 464638:a => window.h.ra(a).J.sampleRate, 464711:a => {
851
851
  a = window.h.ra(a);
852
852
  void 0 !== a.Z && (a.Z.onaudioprocess = function() {
853
853
  }, a.Z.disconnect(), a.Z = void 0);
@@ -855,13 +855,13 @@ var Ya, Za, cb = {458140:(a, b, c, d, e) => {
855
855
  a.J.close();
856
856
  a.J = void 0;
857
857
  a.qb = void 0;
858
- }, 464247:a => {
858
+ }, 465111:a => {
859
859
  window.h.Cb(a);
860
- }, 464297:a => {
860
+ }, 465161:a => {
861
861
  a = window.h.ra(a);
862
862
  a.J.resume();
863
863
  a.state = window.h.ga.yb;
864
- }, 464436:a => {
864
+ }, 465300:a => {
865
865
  a = window.h.ra(a);
866
866
  a.J.suspend();
867
867
  a.state = window.h.ga.stopped;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rive-app/canvas-advanced",
3
- "version": "2.30.1",
3
+ "version": "2.30.3",
4
4
  "description": "Rive's lightweight low-level canvas based web api.",
5
5
  "main": "canvas_advanced.mjs",
6
6
  "homepage": "https://rive.app",
package/rive.wasm CHANGED
Binary file
@@ -934,6 +934,9 @@ export declare class ViewModelInstanceList extends ViewModelInstanceValue {
934
934
  export declare class ViewModelInstanceAssetImage extends ViewModelInstanceValue {
935
935
  value(image: ImageInternal | null):void;
936
936
  }
937
+ export declare class ViewModelInstanceArtboard extends ViewModelInstanceValue {
938
+ value(artboard: Artboard):void;
939
+ }
937
940
 
938
941
  export declare class ViewModelInstance {
939
942
  get propertyCount(): number;
@@ -946,6 +949,7 @@ export declare class ViewModelInstance {
946
949
  list(path: string): ViewModelInstanceList;
947
950
  viewModel(path: string): ViewModelInstance;
948
951
  image(path: string): ViewModelInstanceAssetImage;
952
+ artboard(path: string): ViewModelInstanceArtboard;
949
953
  replaceViewModel(path: string, value: ViewModelInstance): boolean;
950
954
  incrementReferenceCount(): void;
951
955
  decrementReferenceCount(): void;
Binary file