@rive-app/webgl2-advanced 2.25.0 → 2.25.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 +6 -0
- package/webgl2_advanced.mjs +10 -10
package/package.json
CHANGED
package/rive.wasm
CHANGED
|
Binary file
|
package/rive_advanced.mjs.d.ts
CHANGED
|
@@ -730,6 +730,12 @@ export declare class StateMachineInstance {
|
|
|
730
730
|
* @param sec - Scrub the state machine instance by a number of seconds
|
|
731
731
|
*/
|
|
732
732
|
advance(sec: number): boolean;
|
|
733
|
+
/**
|
|
734
|
+
* Advances/scrubs the StateMachineInstance by the set amount of seconds. Note that this will
|
|
735
|
+
* apply changes to the properties of objects in the Artboard.
|
|
736
|
+
* @param sec - Scrub the state machine instance by a number of seconds
|
|
737
|
+
*/
|
|
738
|
+
advanceAndApply(sec: number): boolean;
|
|
733
739
|
/**
|
|
734
740
|
* Returns the number of states changed while the state machine played
|
|
735
741
|
* @returns Number of states changed in the duration of the state machine played
|
package/webgl2_advanced.mjs
CHANGED
|
@@ -406,7 +406,7 @@ function Na(a, b) {
|
|
|
406
406
|
return Ma(c, a, b);
|
|
407
407
|
}));
|
|
408
408
|
}
|
|
409
|
-
var Oa, Pa, Ta = {
|
|
409
|
+
var Oa, Pa, Ta = {494414:(a, b, c, d, e) => {
|
|
410
410
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
411
411
|
return 0;
|
|
412
412
|
}
|
|
@@ -469,9 +469,9 @@ var Oa, Pa, Ta = {494190:(a, b, c, d, e) => {
|
|
|
469
469
|
}
|
|
470
470
|
window.h.Da += 1;
|
|
471
471
|
return 1;
|
|
472
|
-
},
|
|
472
|
+
}, 496592:() => {
|
|
473
473
|
"undefined" !== typeof window.h && (--window.h.Da, 0 === window.h.Da && delete window.h);
|
|
474
|
-
},
|
|
474
|
+
}, 496756:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 496860:() => {
|
|
475
475
|
try {
|
|
476
476
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
477
477
|
a.close();
|
|
@@ -479,7 +479,7 @@ var Oa, Pa, Ta = {494190:(a, b, c, d, e) => {
|
|
|
479
479
|
} catch (c) {
|
|
480
480
|
return 0;
|
|
481
481
|
}
|
|
482
|
-
},
|
|
482
|
+
}, 497031:(a, b, c, d, e, f) => {
|
|
483
483
|
if ("undefined" === typeof window.h) {
|
|
484
484
|
return -1;
|
|
485
485
|
}
|
|
@@ -525,7 +525,7 @@ var Oa, Pa, Ta = {494190:(a, b, c, d, e) => {
|
|
|
525
525
|
a == window.h.H.Ba && g.Z.connect(g.I.destination);
|
|
526
526
|
g.kb = f;
|
|
527
527
|
return window.h.mc(g);
|
|
528
|
-
},
|
|
528
|
+
}, 499908:a => window.h.va(a).I.sampleRate, 499981:a => {
|
|
529
529
|
a = window.h.va(a);
|
|
530
530
|
void 0 !== a.Z && (a.Z.onaudioprocess = function() {
|
|
531
531
|
}, a.Z.disconnect(), a.Z = void 0);
|
|
@@ -533,13 +533,13 @@ var Oa, Pa, Ta = {494190:(a, b, c, d, e) => {
|
|
|
533
533
|
a.I.close();
|
|
534
534
|
a.I = void 0;
|
|
535
535
|
a.kb = void 0;
|
|
536
|
-
},
|
|
536
|
+
}, 500381:a => {
|
|
537
537
|
window.h.xb(a);
|
|
538
|
-
},
|
|
538
|
+
}, 500431:a => {
|
|
539
539
|
a = window.h.va(a);
|
|
540
540
|
a.I.resume();
|
|
541
541
|
a.state = window.h.ia.sb;
|
|
542
|
-
},
|
|
542
|
+
}, 500570:a => {
|
|
543
543
|
a = window.h.va(a);
|
|
544
544
|
a.I.suspend();
|
|
545
545
|
a.state = window.h.ia.stopped;
|
|
@@ -3445,8 +3445,8 @@ m.dynCall_viijii = (a, b, c, d, e, f, g) => (m.dynCall_viijii = A.dynCall_viijii
|
|
|
3445
3445
|
m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij = A.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3446
3446
|
m.dynCall_iiiiijj = (a, b, c, d, e, f, g, n, p) => (m.dynCall_iiiiijj = A.dynCall_iiiiijj)(a, b, c, d, e, f, g, n, p);
|
|
3447
3447
|
m.dynCall_iiiiiijj = (a, b, c, d, e, f, g, n, p, l) => (m.dynCall_iiiiiijj = A.dynCall_iiiiiijj)(a, b, c, d, e, f, g, n, p, l);
|
|
3448
|
-
m.___start_em_js =
|
|
3449
|
-
m.___stop_em_js =
|
|
3448
|
+
m.___start_em_js = 491980;
|
|
3449
|
+
m.___stop_em_js = 494414;
|
|
3450
3450
|
var Xd;
|
|
3451
3451
|
Ga = function Yd() {
|
|
3452
3452
|
Xd || Zd();
|