@rive-app/webgl-advanced 2.23.0 → 2.23.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/package.json +1 -1
- package/rive.wasm +0 -0
- package/rive_advanced.mjs.d.ts +23 -0
- 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
|
@@ -366,6 +366,29 @@ export declare class Artboard {
|
|
|
366
366
|
*/
|
|
367
367
|
get volume(): number;
|
|
368
368
|
set volume(val: number);
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Getter and setter for the artboard width
|
|
372
|
+
*/
|
|
373
|
+
get artboardWidth(): number;
|
|
374
|
+
set artboardWidth(val: number);
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Getter and setter for the artboard height
|
|
378
|
+
*/
|
|
379
|
+
get artboardHeight(): number;
|
|
380
|
+
set artboardHeight(val: number);
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Getter and setter used in rendering and canvas/artboard resizing
|
|
384
|
+
*/
|
|
385
|
+
get devicePixelRatioUsed(): number;
|
|
386
|
+
set devicePixelRatioUsed(val: number);
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Reset the artboard size to its original values
|
|
390
|
+
*/
|
|
391
|
+
resetArtboardSize(): void;
|
|
369
392
|
/**
|
|
370
393
|
* Deletes the underlying instance created via the WASM. It's important to clean up this
|
|
371
394
|
* instance when no longer in use
|
package/rive_fallback.wasm
CHANGED
|
Binary file
|
package/webgl_advanced.mjs
CHANGED
|
@@ -387,7 +387,7 @@ function Qa(a, b) {
|
|
|
387
387
|
return Pa(c, a, b);
|
|
388
388
|
}));
|
|
389
389
|
}
|
|
390
|
-
var Ra, Sa, Wa = {
|
|
390
|
+
var Ra, Sa, Wa = {696428:(a, b, c, d, e) => {
|
|
391
391
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
392
392
|
return 0;
|
|
393
393
|
}
|
|
@@ -450,9 +450,9 @@ var Ra, Sa, Wa = {693516:(a, b, c, d, e) => {
|
|
|
450
450
|
}
|
|
451
451
|
window.h.Ea += 1;
|
|
452
452
|
return 1;
|
|
453
|
-
},
|
|
453
|
+
}, 698606:() => {
|
|
454
454
|
"undefined" !== typeof window.h && (--window.h.Ea, 0 === window.h.Ea && delete window.h);
|
|
455
|
-
},
|
|
455
|
+
}, 698770:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 698874:() => {
|
|
456
456
|
try {
|
|
457
457
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
458
458
|
a.close();
|
|
@@ -460,7 +460,7 @@ var Ra, Sa, Wa = {693516:(a, b, c, d, e) => {
|
|
|
460
460
|
} catch (c) {
|
|
461
461
|
return 0;
|
|
462
462
|
}
|
|
463
|
-
},
|
|
463
|
+
}, 699045:(a, b, c, d, e, f) => {
|
|
464
464
|
if ("undefined" === typeof window.h) {
|
|
465
465
|
return -1;
|
|
466
466
|
}
|
|
@@ -506,7 +506,7 @@ var Ra, Sa, Wa = {693516:(a, b, c, d, e) => {
|
|
|
506
506
|
a == window.h.H.Ca && g.X.connect(g.I.destination);
|
|
507
507
|
g.lb = f;
|
|
508
508
|
return window.h.nc(g);
|
|
509
|
-
},
|
|
509
|
+
}, 701922:a => window.h.ta(a).I.sampleRate, 701995:a => {
|
|
510
510
|
a = window.h.ta(a);
|
|
511
511
|
void 0 !== a.X && (a.X.onaudioprocess = function() {
|
|
512
512
|
}, a.X.disconnect(), a.X = void 0);
|
|
@@ -514,13 +514,13 @@ var Ra, Sa, Wa = {693516:(a, b, c, d, e) => {
|
|
|
514
514
|
a.I.close();
|
|
515
515
|
a.I = void 0;
|
|
516
516
|
a.lb = void 0;
|
|
517
|
-
},
|
|
517
|
+
}, 702395:a => {
|
|
518
518
|
window.h.xb(a);
|
|
519
|
-
},
|
|
519
|
+
}, 702445:a => {
|
|
520
520
|
a = window.h.ta(a);
|
|
521
521
|
a.I.resume();
|
|
522
522
|
a.state = window.h.ha.sb;
|
|
523
|
-
},
|
|
523
|
+
}, 702584:a => {
|
|
524
524
|
a = window.h.ta(a);
|
|
525
525
|
a.I.suspend();
|
|
526
526
|
a.state = window.h.ha.stopped;
|