@rive-app/canvas-advanced 2.13.2 → 2.14.1
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/canvas_advanced.mjs +8 -8
- package/package.json +1 -1
- package/rive.wasm +0 -0
- package/rive_advanced.mjs.d.ts +5 -0
package/canvas_advanced.mjs
CHANGED
|
@@ -710,7 +710,7 @@ function Ya(a, b) {
|
|
|
710
710
|
return Xa(c, a, b);
|
|
711
711
|
}));
|
|
712
712
|
}
|
|
713
|
-
var N, P, bb = {
|
|
713
|
+
var N, P, bb = {433284:(a, b, c, d, e) => {
|
|
714
714
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
715
715
|
return 0;
|
|
716
716
|
}
|
|
@@ -773,9 +773,9 @@ var N, P, bb = {433268:(a, b, c, d, e) => {
|
|
|
773
773
|
}
|
|
774
774
|
window.h.Aa += 1;
|
|
775
775
|
return 1;
|
|
776
|
-
},
|
|
776
|
+
}, 435462:() => {
|
|
777
777
|
"undefined" !== typeof window.h && (--window.h.Aa, 0 === window.h.Aa && delete window.h);
|
|
778
|
-
},
|
|
778
|
+
}, 435626:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 435730:() => {
|
|
779
779
|
try {
|
|
780
780
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
781
781
|
a.close();
|
|
@@ -783,7 +783,7 @@ var N, P, bb = {433268:(a, b, c, d, e) => {
|
|
|
783
783
|
} catch (c) {
|
|
784
784
|
return 0;
|
|
785
785
|
}
|
|
786
|
-
},
|
|
786
|
+
}, 435901:(a, b, c, d, e, f) => {
|
|
787
787
|
if ("undefined" === typeof window.h) {
|
|
788
788
|
return -1;
|
|
789
789
|
}
|
|
@@ -829,7 +829,7 @@ var N, P, bb = {433268:(a, b, c, d, e) => {
|
|
|
829
829
|
a == window.h.H.za && g.$.connect(g.I.destination);
|
|
830
830
|
g.qb = f;
|
|
831
831
|
return window.h.Gc(g);
|
|
832
|
-
},
|
|
832
|
+
}, 438778:a => window.h.sa(a).I.sampleRate, 438851:a => {
|
|
833
833
|
a = window.h.sa(a);
|
|
834
834
|
void 0 !== a.$ && (a.$.onaudioprocess = function() {
|
|
835
835
|
}, a.$.disconnect(), a.$ = void 0);
|
|
@@ -837,13 +837,13 @@ var N, P, bb = {433268:(a, b, c, d, e) => {
|
|
|
837
837
|
a.I.close();
|
|
838
838
|
a.I = void 0;
|
|
839
839
|
a.qb = void 0;
|
|
840
|
-
},
|
|
840
|
+
}, 439251:a => {
|
|
841
841
|
window.h.Db(a);
|
|
842
|
-
},
|
|
842
|
+
}, 439301:a => {
|
|
843
843
|
a = window.h.sa(a);
|
|
844
844
|
a.I.resume();
|
|
845
845
|
a.state = window.h.ga.yb;
|
|
846
|
-
},
|
|
846
|
+
}, 439440:a => {
|
|
847
847
|
a = window.h.sa(a);
|
|
848
848
|
a.I.suspend();
|
|
849
849
|
a.state = window.h.ga.stopped;
|
package/package.json
CHANGED
package/rive.wasm
CHANGED
|
Binary file
|
package/rive_advanced.mjs.d.ts
CHANGED
|
@@ -340,6 +340,11 @@ export declare class Artboard {
|
|
|
340
340
|
get bounds(): AABB;
|
|
341
341
|
get frameOrigin(): boolean;
|
|
342
342
|
set frameOrigin(val: boolean);
|
|
343
|
+
/**
|
|
344
|
+
* Getter and setter for the artboard volume
|
|
345
|
+
*/
|
|
346
|
+
get volume(): number;
|
|
347
|
+
set volume(val: number);
|
|
343
348
|
/**
|
|
344
349
|
* Deletes the underlying instance created via the WASM. It's important to clean up this
|
|
345
350
|
* instance when no longer in use
|