@rive-app/webgl-advanced 2.27.0 → 2.27.2
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 +9 -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
|
@@ -910,6 +910,14 @@ export declare class ViewModelInstanceEnum extends ViewModelInstanceValue {
|
|
|
910
910
|
get values(): string[];
|
|
911
911
|
}
|
|
912
912
|
|
|
913
|
+
export declare class ViewModelInstanceList extends ViewModelInstanceValue {
|
|
914
|
+
get size(): number;
|
|
915
|
+
addInstance(vmi: ViewModelInstance): void;
|
|
916
|
+
removeInstance(vmi: ViewModelInstance): void;
|
|
917
|
+
removeInstanceAt(index: number): void;
|
|
918
|
+
instanceAt(index: number): ViewModelInstance;
|
|
919
|
+
}
|
|
920
|
+
|
|
913
921
|
export declare class ViewModelInstance {
|
|
914
922
|
get propertyCount(): number;
|
|
915
923
|
number(path: string): ViewModelInstanceNumber;
|
|
@@ -918,6 +926,7 @@ export declare class ViewModelInstance {
|
|
|
918
926
|
color(path: string): ViewModelInstanceColor;
|
|
919
927
|
enum(path: string): ViewModelInstanceEnum;
|
|
920
928
|
trigger(path: string): ViewModelInstanceTrigger;
|
|
929
|
+
list(path: string): ViewModelInstanceList;
|
|
921
930
|
viewModel(path: string): ViewModelInstance;
|
|
922
931
|
replaceViewModel(path: string, value: ViewModelInstance): boolean;
|
|
923
932
|
incrementReferenceCount(): void;
|
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 = {707724:(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 = {704988:(a, b, c, d, e) => {
|
|
|
450
450
|
}
|
|
451
451
|
window.h.Ea += 1;
|
|
452
452
|
return 1;
|
|
453
|
-
},
|
|
453
|
+
}, 709902:() => {
|
|
454
454
|
"undefined" !== typeof window.h && (--window.h.Ea, 0 === window.h.Ea && delete window.h);
|
|
455
|
-
},
|
|
455
|
+
}, 710066:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 710170:() => {
|
|
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 = {704988:(a, b, c, d, e) => {
|
|
|
460
460
|
} catch (c) {
|
|
461
461
|
return 0;
|
|
462
462
|
}
|
|
463
|
-
},
|
|
463
|
+
}, 710341:(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 = {704988:(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
|
+
}, 713218:a => window.h.ta(a).I.sampleRate, 713291: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 = {704988:(a, b, c, d, e) => {
|
|
|
514
514
|
a.I.close();
|
|
515
515
|
a.I = void 0;
|
|
516
516
|
a.lb = void 0;
|
|
517
|
-
},
|
|
517
|
+
}, 713691:a => {
|
|
518
518
|
window.h.xb(a);
|
|
519
|
-
},
|
|
519
|
+
}, 713741:a => {
|
|
520
520
|
a = window.h.ta(a);
|
|
521
521
|
a.I.resume();
|
|
522
522
|
a.state = window.h.ha.sb;
|
|
523
|
-
},
|
|
523
|
+
}, 713880:a => {
|
|
524
524
|
a = window.h.ta(a);
|
|
525
525
|
a.I.suspend();
|
|
526
526
|
a.state = window.h.ha.stopped;
|