@rive-app/webgl 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 +20 -10
- package/rive.js.map +1 -1
- package/rive.wasm +0 -0
- package/rive_advanced.mjs.d.ts +2 -1
- package/rive_fallback.wasm +0 -0
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
|
@@ -408,7 +408,7 @@ function Qa(a, b) {
|
|
|
408
408
|
return Pa(c, a, b);
|
|
409
409
|
}));
|
|
410
410
|
}
|
|
411
|
-
var Ra, Sa, Wa = {
|
|
411
|
+
var Ra, Sa, Wa = {711388:(a, b, c, d, e) => {
|
|
412
412
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
413
413
|
return 0;
|
|
414
414
|
}
|
|
@@ -471,11 +471,11 @@ var Ra, Sa, Wa = {711180:(a, b, c, d, e) => {
|
|
|
471
471
|
}
|
|
472
472
|
window.h.Ea += 1;
|
|
473
473
|
return 1;
|
|
474
|
-
},
|
|
474
|
+
}, 713566:() => {
|
|
475
475
|
"undefined" !== typeof window.h && (window.h.Ta.map(function(a) {
|
|
476
476
|
document.removeEventListener(a, window.h.unlock, !0);
|
|
477
477
|
}), --window.h.Ea, 0 === window.h.Ea && delete window.h);
|
|
478
|
-
},
|
|
478
|
+
}, 713870:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 713974:() => {
|
|
479
479
|
try {
|
|
480
480
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
481
481
|
a.close();
|
|
@@ -483,7 +483,7 @@ var Ra, Sa, Wa = {711180:(a, b, c, d, e) => {
|
|
|
483
483
|
} catch (c) {
|
|
484
484
|
return 0;
|
|
485
485
|
}
|
|
486
|
-
},
|
|
486
|
+
}, 714145:(a, b, c, d, e, f) => {
|
|
487
487
|
if ("undefined" === typeof window.h) {
|
|
488
488
|
return -1;
|
|
489
489
|
}
|
|
@@ -529,7 +529,7 @@ var Ra, Sa, Wa = {711180:(a, b, c, d, e) => {
|
|
|
529
529
|
a == window.h.H.Ca && g.X.connect(g.I.destination);
|
|
530
530
|
g.mb = f;
|
|
531
531
|
return window.h.nc(g);
|
|
532
|
-
},
|
|
532
|
+
}, 717022:a => window.h.ta(a).I.sampleRate, 717095:a => {
|
|
533
533
|
a = window.h.ta(a);
|
|
534
534
|
void 0 !== a.X && (a.X.onaudioprocess = function() {
|
|
535
535
|
}, a.X.disconnect(), a.X = void 0);
|
|
@@ -537,13 +537,13 @@ var Ra, Sa, Wa = {711180:(a, b, c, d, e) => {
|
|
|
537
537
|
a.I.close();
|
|
538
538
|
a.I = void 0;
|
|
539
539
|
a.mb = void 0;
|
|
540
|
-
},
|
|
540
|
+
}, 717495:a => {
|
|
541
541
|
window.h.xb(a);
|
|
542
|
-
},
|
|
542
|
+
}, 717545:a => {
|
|
543
543
|
a = window.h.ta(a);
|
|
544
544
|
a.I.resume();
|
|
545
545
|
a.state = window.h.ha.tb;
|
|
546
|
-
},
|
|
546
|
+
}, 717684:a => {
|
|
547
547
|
a = window.h.ta(a);
|
|
548
548
|
a.I.suspend();
|
|
549
549
|
a.state = window.h.ha.stopped;
|
|
@@ -4065,7 +4065,7 @@ Je();
|
|
|
4065
4065
|
/* 2 */
|
|
4066
4066
|
/***/ ((module) => {
|
|
4067
4067
|
|
|
4068
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/webgl","version":"2.29.
|
|
4068
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/webgl","version":"2.29.4","description":"Rive\'s webgl 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)"],"license":"MIT","files":["rive.js","rive.wasm","rive_fallback.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
|
|
4069
4069
|
|
|
4070
4070
|
/***/ }),
|
|
4071
4071
|
/* 3 */
|
|
@@ -8266,6 +8266,15 @@ var ViewModelInstanceList = /** @class */ (function (_super) {
|
|
|
8266
8266
|
instance.addParent(this._parentViewModel);
|
|
8267
8267
|
}
|
|
8268
8268
|
};
|
|
8269
|
+
ViewModelInstanceList.prototype.addInstanceAt = function (instance, index) {
|
|
8270
|
+
if (instance.runtimeInstance != null) {
|
|
8271
|
+
if (this._viewModelInstanceValue.addInstanceAt(instance.runtimeInstance, index)) {
|
|
8272
|
+
instance.addParent(this._parentViewModel);
|
|
8273
|
+
return true;
|
|
8274
|
+
}
|
|
8275
|
+
}
|
|
8276
|
+
return false;
|
|
8277
|
+
};
|
|
8269
8278
|
ViewModelInstanceList.prototype.removeInstance = function (instance) {
|
|
8270
8279
|
if (instance.runtimeInstance != null) {
|
|
8271
8280
|
this._viewModelInstanceValue.removeInstance(instance.runtimeInstance);
|
|
@@ -8337,7 +8346,8 @@ var ViewModelInstanceAssetImage = /** @class */ (function (_super) {
|
|
|
8337
8346
|
}
|
|
8338
8347
|
Object.defineProperty(ViewModelInstanceAssetImage.prototype, "value", {
|
|
8339
8348
|
set: function (image) {
|
|
8340
|
-
|
|
8349
|
+
var _a;
|
|
8350
|
+
this._viewModelInstanceValue.value((_a = image === null || image === void 0 ? void 0 : image.nativeImage) !== null && _a !== void 0 ? _a : null);
|
|
8341
8351
|
},
|
|
8342
8352
|
enumerable: false,
|
|
8343
8353
|
configurable: true
|