@rive-app/canvas 2.29.1 → 2.29.3
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
|
@@ -747,7 +747,7 @@ function Xa(a, b) {
|
|
|
747
747
|
return Wa(c, a, b);
|
|
748
748
|
}));
|
|
749
749
|
}
|
|
750
|
-
var Ya, Za, cb = {
|
|
750
|
+
var Ya, Za, cb = {456204:(a, b, c, d, e) => {
|
|
751
751
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
752
752
|
return 0;
|
|
753
753
|
}
|
|
@@ -810,11 +810,11 @@ var Ya, Za, cb = {456172:(a, b, c, d, e) => {
|
|
|
810
810
|
}
|
|
811
811
|
window.h.Aa += 1;
|
|
812
812
|
return 1;
|
|
813
|
-
},
|
|
813
|
+
}, 458382:() => {
|
|
814
814
|
"undefined" !== typeof window.h && (window.h.Ta.map(function(a) {
|
|
815
815
|
document.removeEventListener(a, window.h.unlock, !0);
|
|
816
816
|
}), --window.h.Aa, 0 === window.h.Aa && delete window.h);
|
|
817
|
-
},
|
|
817
|
+
}, 458686:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 458790:() => {
|
|
818
818
|
try {
|
|
819
819
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
820
820
|
a.close();
|
|
@@ -822,7 +822,7 @@ var Ya, Za, cb = {456172:(a, b, c, d, e) => {
|
|
|
822
822
|
} catch (c) {
|
|
823
823
|
return 0;
|
|
824
824
|
}
|
|
825
|
-
},
|
|
825
|
+
}, 458961:(a, b, c, d, e, f) => {
|
|
826
826
|
if ("undefined" === typeof window.h) {
|
|
827
827
|
return -1;
|
|
828
828
|
}
|
|
@@ -868,7 +868,7 @@ var Ya, Za, cb = {456172:(a, b, c, d, e) => {
|
|
|
868
868
|
a == window.h.I.ya && g.Z.connect(g.J.destination);
|
|
869
869
|
g.qb = f;
|
|
870
870
|
return window.h.yc(g);
|
|
871
|
-
},
|
|
871
|
+
}, 461838:a => window.h.ra(a).J.sampleRate, 461911:a => {
|
|
872
872
|
a = window.h.ra(a);
|
|
873
873
|
void 0 !== a.Z && (a.Z.onaudioprocess = function() {
|
|
874
874
|
}, a.Z.disconnect(), a.Z = void 0);
|
|
@@ -876,13 +876,13 @@ var Ya, Za, cb = {456172:(a, b, c, d, e) => {
|
|
|
876
876
|
a.J.close();
|
|
877
877
|
a.J = void 0;
|
|
878
878
|
a.qb = void 0;
|
|
879
|
-
},
|
|
879
|
+
}, 462311:a => {
|
|
880
880
|
window.h.Cb(a);
|
|
881
|
-
},
|
|
881
|
+
}, 462361:a => {
|
|
882
882
|
a = window.h.ra(a);
|
|
883
883
|
a.J.resume();
|
|
884
884
|
a.state = window.h.ga.yb;
|
|
885
|
-
},
|
|
885
|
+
}, 462500:a => {
|
|
886
886
|
a = window.h.ra(a);
|
|
887
887
|
a.J.suspend();
|
|
888
888
|
a.state = window.h.ga.stopped;
|
|
@@ -3370,7 +3370,7 @@ $d();
|
|
|
3370
3370
|
/* 2 */
|
|
3371
3371
|
/***/ ((module) => {
|
|
3372
3372
|
|
|
3373
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/canvas","version":"2.29.
|
|
3373
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/canvas","version":"2.29.3","description":"Rive\'s canvas 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.js.map","rive.wasm","rive_fallback.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
|
|
3374
3374
|
|
|
3375
3375
|
/***/ }),
|
|
3376
3376
|
/* 3 */
|
|
@@ -7571,6 +7571,15 @@ var ViewModelInstanceList = /** @class */ (function (_super) {
|
|
|
7571
7571
|
instance.addParent(this._parentViewModel);
|
|
7572
7572
|
}
|
|
7573
7573
|
};
|
|
7574
|
+
ViewModelInstanceList.prototype.addInstanceAt = function (instance, index) {
|
|
7575
|
+
if (instance.runtimeInstance != null) {
|
|
7576
|
+
if (this._viewModelInstanceValue.addInstanceAt(instance.runtimeInstance, index)) {
|
|
7577
|
+
instance.addParent(this._parentViewModel);
|
|
7578
|
+
return true;
|
|
7579
|
+
}
|
|
7580
|
+
}
|
|
7581
|
+
return false;
|
|
7582
|
+
};
|
|
7574
7583
|
ViewModelInstanceList.prototype.removeInstance = function (instance) {
|
|
7575
7584
|
if (instance.runtimeInstance != null) {
|
|
7576
7585
|
this._viewModelInstanceValue.removeInstance(instance.runtimeInstance);
|
|
@@ -7642,7 +7651,8 @@ var ViewModelInstanceAssetImage = /** @class */ (function (_super) {
|
|
|
7642
7651
|
}
|
|
7643
7652
|
Object.defineProperty(ViewModelInstanceAssetImage.prototype, "value", {
|
|
7644
7653
|
set: function (image) {
|
|
7645
|
-
|
|
7654
|
+
var _a;
|
|
7655
|
+
this._viewModelInstanceValue.value((_a = image === null || image === void 0 ? void 0 : image.nativeImage) !== null && _a !== void 0 ? _a : null);
|
|
7646
7656
|
},
|
|
7647
7657
|
enumerable: false,
|
|
7648
7658
|
configurable: true
|