@rive-app/webgl-advanced 2.34.2 → 2.35.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.wasm +0 -0
- package/rive_advanced.mjs.d.ts +3 -2
- package/rive_fallback.wasm +0 -0
- package/webgl_advanced.mjs +8 -8
package/package.json
CHANGED
package/rive.wasm
CHANGED
|
Binary file
|
package/rive_advanced.mjs.d.ts
CHANGED
|
@@ -395,10 +395,11 @@ export declare class File {
|
|
|
395
395
|
* @returns BindableArtboard
|
|
396
396
|
*/
|
|
397
397
|
internalBindableArtboardFromArtboard(artboard: Artboard): BindableArtboard;
|
|
398
|
+
|
|
398
399
|
/**
|
|
399
|
-
*
|
|
400
|
-
* @param index - Index of the Artboard in the file to create an Artboard instance for
|
|
400
|
+
* If the file has an audio asset, returns true
|
|
401
401
|
*/
|
|
402
|
+
get hasAudio(): boolean;
|
|
402
403
|
}
|
|
403
404
|
|
|
404
405
|
/**
|
package/rive_fallback.wasm
CHANGED
|
Binary file
|
package/webgl_advanced.mjs
CHANGED
|
@@ -372,7 +372,7 @@ function Ra(a, b) {
|
|
|
372
372
|
return Qa(c, a, b);
|
|
373
373
|
}));
|
|
374
374
|
}
|
|
375
|
-
var Sa, Ta, Xa = {
|
|
375
|
+
var Sa, Ta, Xa = {740770:(a, b, c, d, e) => {
|
|
376
376
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
377
377
|
return 0;
|
|
378
378
|
}
|
|
@@ -435,11 +435,11 @@ var Sa, Ta, Xa = {740450:(a, b, c, d, e) => {
|
|
|
435
435
|
}
|
|
436
436
|
window.h.Ca += 1;
|
|
437
437
|
return 1;
|
|
438
|
-
},
|
|
438
|
+
}, 742948:() => {
|
|
439
439
|
"undefined" !== typeof window.h && (window.h.Ra.map(function(a) {
|
|
440
440
|
document.removeEventListener(a, window.h.unlock, !0);
|
|
441
441
|
}), --window.h.Ca, 0 === window.h.Ca && delete window.h);
|
|
442
|
-
},
|
|
442
|
+
}, 743252:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 743356:() => {
|
|
443
443
|
try {
|
|
444
444
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
445
445
|
a.close();
|
|
@@ -447,7 +447,7 @@ var Sa, Ta, Xa = {740450:(a, b, c, d, e) => {
|
|
|
447
447
|
} catch (c) {
|
|
448
448
|
return 0;
|
|
449
449
|
}
|
|
450
|
-
},
|
|
450
|
+
}, 743527:(a, b, c, d, e, f) => {
|
|
451
451
|
if ("undefined" === typeof window.h) {
|
|
452
452
|
return -1;
|
|
453
453
|
}
|
|
@@ -493,7 +493,7 @@ var Sa, Ta, Xa = {740450:(a, b, c, d, e) => {
|
|
|
493
493
|
a == window.h.H.Aa && g.W.connect(g.J.destination);
|
|
494
494
|
g.kb = f;
|
|
495
495
|
return window.h.fc(g);
|
|
496
|
-
},
|
|
496
|
+
}, 746404:a => window.h.ra(a).J.sampleRate, 746477:a => {
|
|
497
497
|
a = window.h.ra(a);
|
|
498
498
|
void 0 !== a.W && (a.W.onaudioprocess = function() {
|
|
499
499
|
}, a.W.disconnect(), a.W = void 0);
|
|
@@ -501,13 +501,13 @@ var Sa, Ta, Xa = {740450:(a, b, c, d, e) => {
|
|
|
501
501
|
a.J.close();
|
|
502
502
|
a.J = void 0;
|
|
503
503
|
a.kb = void 0;
|
|
504
|
-
},
|
|
504
|
+
}, 746877:a => {
|
|
505
505
|
window.h.ub(a);
|
|
506
|
-
},
|
|
506
|
+
}, 746927:a => {
|
|
507
507
|
a = window.h.ra(a);
|
|
508
508
|
a.J.resume();
|
|
509
509
|
a.state = window.h.ga.qb;
|
|
510
|
-
},
|
|
510
|
+
}, 747066:a => {
|
|
511
511
|
a = window.h.ra(a);
|
|
512
512
|
a.J.suspend();
|
|
513
513
|
a.state = window.h.ga.stopped;
|