@rive-app/webgl2 2.29.2 → 2.29.4
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.d.ts +2 -1
- package/rive.js +22 -12
- package/rive.js.map +1 -1
- package/rive.wasm +0 -0
- package/rive_advanced.mjs.d.ts +2 -1
package/package.json
CHANGED
package/rive.d.ts
CHANGED
|
@@ -880,6 +880,7 @@ export declare class ViewModelInstanceList extends ViewModelInstanceValue {
|
|
|
880
880
|
constructor(instance: rc.ViewModelInstanceList, parent: ViewModelInstance);
|
|
881
881
|
get length(): number;
|
|
882
882
|
addInstance(instance: ViewModelInstance): void;
|
|
883
|
+
addInstanceAt(instance: ViewModelInstance, index: number): boolean;
|
|
883
884
|
removeInstance(instance: ViewModelInstance): void;
|
|
884
885
|
removeInstanceAt(index: number): void;
|
|
885
886
|
instanceAt(index: number): ViewModelInstance | null;
|
|
@@ -899,7 +900,7 @@ export declare class ViewModelInstanceColor extends ViewModelInstanceValue {
|
|
|
899
900
|
}
|
|
900
901
|
export declare class ViewModelInstanceAssetImage extends ViewModelInstanceValue {
|
|
901
902
|
constructor(instance: rc.ViewModelInstanceAssetImage, root: ViewModelInstance);
|
|
902
|
-
set value(image: rc.Image);
|
|
903
|
+
set value(image: rc.Image | null);
|
|
903
904
|
internalHandleCallback(callback: Function): void;
|
|
904
905
|
}
|
|
905
906
|
/**
|
package/rive.js
CHANGED
|
@@ -442,7 +442,7 @@ function Oa(a, b) {
|
|
|
442
442
|
return Na(c, a, b);
|
|
443
443
|
}));
|
|
444
444
|
}
|
|
445
|
-
var Pa, Qa, Ua = {
|
|
445
|
+
var Pa, Qa, Ua = {522615:(a, b, c, d, e) => {
|
|
446
446
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
447
447
|
return 0;
|
|
448
448
|
}
|
|
@@ -505,11 +505,11 @@ var Pa, Qa, Ua = {522327:(a, b, c, d, e) => {
|
|
|
505
505
|
}
|
|
506
506
|
window.h.Da += 1;
|
|
507
507
|
return 1;
|
|
508
|
-
},
|
|
508
|
+
}, 524793:() => {
|
|
509
509
|
"undefined" !== typeof window.h && (window.h.Va.map(function(a) {
|
|
510
510
|
document.removeEventListener(a, window.h.unlock, !0);
|
|
511
511
|
}), --window.h.Da, 0 === window.h.Da && delete window.h);
|
|
512
|
-
},
|
|
512
|
+
}, 525097:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 525201:() => {
|
|
513
513
|
try {
|
|
514
514
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
515
515
|
a.close();
|
|
@@ -517,7 +517,7 @@ var Pa, Qa, Ua = {522327:(a, b, c, d, e) => {
|
|
|
517
517
|
} catch (c) {
|
|
518
518
|
return 0;
|
|
519
519
|
}
|
|
520
|
-
},
|
|
520
|
+
}, 525372:(a, b, c, d, e, f) => {
|
|
521
521
|
if ("undefined" === typeof window.h) {
|
|
522
522
|
return -1;
|
|
523
523
|
}
|
|
@@ -563,7 +563,7 @@ var Pa, Qa, Ua = {522327:(a, b, c, d, e) => {
|
|
|
563
563
|
a == window.h.I.Ba && g.Z.connect(g.J.destination);
|
|
564
564
|
g.mb = f;
|
|
565
565
|
return window.h.oc(g);
|
|
566
|
-
},
|
|
566
|
+
}, 528249:a => window.h.va(a).J.sampleRate, 528322:a => {
|
|
567
567
|
a = window.h.va(a);
|
|
568
568
|
void 0 !== a.Z && (a.Z.onaudioprocess = function() {
|
|
569
569
|
}, a.Z.disconnect(), a.Z = void 0);
|
|
@@ -571,13 +571,13 @@ var Pa, Qa, Ua = {522327:(a, b, c, d, e) => {
|
|
|
571
571
|
a.J.close();
|
|
572
572
|
a.J = void 0;
|
|
573
573
|
a.mb = void 0;
|
|
574
|
-
},
|
|
574
|
+
}, 528722:a => {
|
|
575
575
|
window.h.yb(a);
|
|
576
|
-
},
|
|
576
|
+
}, 528772:a => {
|
|
577
577
|
a = window.h.va(a);
|
|
578
578
|
a.J.resume();
|
|
579
579
|
a.state = window.h.ja.ub;
|
|
580
|
-
},
|
|
580
|
+
}, 528911:a => {
|
|
581
581
|
a = window.h.va(a);
|
|
582
582
|
a.J.suspend();
|
|
583
583
|
a.state = window.h.ja.stopped;
|
|
@@ -3501,8 +3501,8 @@ k.dynCall_viijii = (a, b, c, d, e, f, g) => (k.dynCall_viijii = C.dynCall_viijii
|
|
|
3501
3501
|
k.dynCall_iiiiij = (a, b, c, d, e, f, g) => (k.dynCall_iiiiij = C.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3502
3502
|
k.dynCall_iiiiijj = (a, b, c, d, e, f, g, l, p) => (k.dynCall_iiiiijj = C.dynCall_iiiiijj)(a, b, c, d, e, f, g, l, p);
|
|
3503
3503
|
k.dynCall_iiiiiijj = (a, b, c, d, e, f, g, l, p, m) => (k.dynCall_iiiiiijj = C.dynCall_iiiiiijj)(a, b, c, d, e, f, g, l, p, m);
|
|
3504
|
-
k.___start_em_js =
|
|
3505
|
-
k.___stop_em_js =
|
|
3504
|
+
k.___start_em_js = 519860;
|
|
3505
|
+
k.___stop_em_js = 522615;
|
|
3506
3506
|
var Zd;
|
|
3507
3507
|
Ha = function $d() {
|
|
3508
3508
|
Zd || ae();
|
|
@@ -3562,7 +3562,7 @@ ae();
|
|
|
3562
3562
|
/* 2 */
|
|
3563
3563
|
/***/ ((module) => {
|
|
3564
3564
|
|
|
3565
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/webgl2","version":"2.29.
|
|
3565
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/webgl2","version":"2.29.4","description":"Rive\'s webgl2 based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)","Chris Dalton <chris@rive.app> (https://rive.app)"],"license":"MIT","files":["rive.js","rive.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
|
|
3566
3566
|
|
|
3567
3567
|
/***/ }),
|
|
3568
3568
|
/* 3 */
|
|
@@ -7763,6 +7763,15 @@ var ViewModelInstanceList = /** @class */ (function (_super) {
|
|
|
7763
7763
|
instance.addParent(this._parentViewModel);
|
|
7764
7764
|
}
|
|
7765
7765
|
};
|
|
7766
|
+
ViewModelInstanceList.prototype.addInstanceAt = function (instance, index) {
|
|
7767
|
+
if (instance.runtimeInstance != null) {
|
|
7768
|
+
if (this._viewModelInstanceValue.addInstanceAt(instance.runtimeInstance, index)) {
|
|
7769
|
+
instance.addParent(this._parentViewModel);
|
|
7770
|
+
return true;
|
|
7771
|
+
}
|
|
7772
|
+
}
|
|
7773
|
+
return false;
|
|
7774
|
+
};
|
|
7766
7775
|
ViewModelInstanceList.prototype.removeInstance = function (instance) {
|
|
7767
7776
|
if (instance.runtimeInstance != null) {
|
|
7768
7777
|
this._viewModelInstanceValue.removeInstance(instance.runtimeInstance);
|
|
@@ -7834,7 +7843,8 @@ var ViewModelInstanceAssetImage = /** @class */ (function (_super) {
|
|
|
7834
7843
|
}
|
|
7835
7844
|
Object.defineProperty(ViewModelInstanceAssetImage.prototype, "value", {
|
|
7836
7845
|
set: function (image) {
|
|
7837
|
-
|
|
7846
|
+
var _a;
|
|
7847
|
+
this._viewModelInstanceValue.value((_a = image === null || image === void 0 ? void 0 : image.nativeImage) !== null && _a !== void 0 ? _a : null);
|
|
7838
7848
|
},
|
|
7839
7849
|
enumerable: false,
|
|
7840
7850
|
configurable: true
|