@rive-app/webgl2 2.29.0 → 2.29.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.d.ts +1 -0
- package/rive.js +23 -15
- package/rive.js.map +1 -1
- package/rive.wasm +0 -0
- package/rive_advanced.mjs.d.ts +1 -0
package/package.json
CHANGED
package/rive.d.ts
CHANGED
|
@@ -883,6 +883,7 @@ export declare class ViewModelInstanceList extends ViewModelInstanceValue {
|
|
|
883
883
|
removeInstance(instance: ViewModelInstance): void;
|
|
884
884
|
removeInstanceAt(index: number): void;
|
|
885
885
|
instanceAt(index: number): ViewModelInstance | null;
|
|
886
|
+
swap(a: number, b: number): void;
|
|
886
887
|
internalHandleCallback(callback: Function): void;
|
|
887
888
|
}
|
|
888
889
|
export declare class ViewModelInstanceColor extends ViewModelInstanceValue {
|
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 = {522327:(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 = {518071:(a, b, c, d, e) => {
|
|
|
505
505
|
}
|
|
506
506
|
window.h.Da += 1;
|
|
507
507
|
return 1;
|
|
508
|
-
},
|
|
508
|
+
}, 524505:() => {
|
|
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
|
+
}, 524809:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 524913:() => {
|
|
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 = {518071:(a, b, c, d, e) => {
|
|
|
517
517
|
} catch (c) {
|
|
518
518
|
return 0;
|
|
519
519
|
}
|
|
520
|
-
},
|
|
520
|
+
}, 525084:(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 = {518071:(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
|
+
}, 527961:a => window.h.va(a).J.sampleRate, 528034: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 = {518071:(a, b, c, d, e) => {
|
|
|
571
571
|
a.J.close();
|
|
572
572
|
a.J = void 0;
|
|
573
573
|
a.mb = void 0;
|
|
574
|
-
},
|
|
574
|
+
}, 528434:a => {
|
|
575
575
|
window.h.yb(a);
|
|
576
|
-
},
|
|
576
|
+
}, 528484:a => {
|
|
577
577
|
a = window.h.va(a);
|
|
578
578
|
a.J.resume();
|
|
579
579
|
a.state = window.h.ja.ub;
|
|
580
|
-
},
|
|
580
|
+
}, 528623: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 = 519572;
|
|
3505
|
+
k.___stop_em_js = 522327;
|
|
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.2","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 */
|
|
@@ -7228,9 +7228,12 @@ var ViewModelInstance = /** @class */ (function () {
|
|
|
7228
7228
|
this._children.forEach(function (child) { return child.handleCallbacks(); });
|
|
7229
7229
|
};
|
|
7230
7230
|
ViewModelInstance.prototype.addParent = function (parent) {
|
|
7231
|
-
this._parents.
|
|
7232
|
-
|
|
7233
|
-
|
|
7231
|
+
if (!this._parents.includes(parent)) {
|
|
7232
|
+
this._parents.push(parent);
|
|
7233
|
+
if (this._propertiesWithCallbacks.length > 0 ||
|
|
7234
|
+
this._children.length > 0) {
|
|
7235
|
+
parent.addToViewModelCallbacks(this);
|
|
7236
|
+
}
|
|
7234
7237
|
}
|
|
7235
7238
|
};
|
|
7236
7239
|
ViewModelInstance.prototype.removeParent = function (parent) {
|
|
@@ -7757,11 +7760,13 @@ var ViewModelInstanceList = /** @class */ (function (_super) {
|
|
|
7757
7760
|
ViewModelInstanceList.prototype.addInstance = function (instance) {
|
|
7758
7761
|
if (instance.runtimeInstance != null) {
|
|
7759
7762
|
this._viewModelInstanceValue.addInstance(instance.runtimeInstance);
|
|
7763
|
+
instance.addParent(this._parentViewModel);
|
|
7760
7764
|
}
|
|
7761
7765
|
};
|
|
7762
7766
|
ViewModelInstanceList.prototype.removeInstance = function (instance) {
|
|
7763
7767
|
if (instance.runtimeInstance != null) {
|
|
7764
7768
|
this._viewModelInstanceValue.removeInstance(instance.runtimeInstance);
|
|
7769
|
+
instance.removeParent(this._parentViewModel);
|
|
7765
7770
|
}
|
|
7766
7771
|
};
|
|
7767
7772
|
ViewModelInstanceList.prototype.removeInstanceAt = function (index) {
|
|
@@ -7770,11 +7775,14 @@ var ViewModelInstanceList = /** @class */ (function (_super) {
|
|
|
7770
7775
|
ViewModelInstanceList.prototype.instanceAt = function (index) {
|
|
7771
7776
|
var runtimeInstance = this._viewModelInstanceValue.instanceAt(index);
|
|
7772
7777
|
if (runtimeInstance != null) {
|
|
7773
|
-
var viewModelInstance = new ViewModelInstance(runtimeInstance,
|
|
7778
|
+
var viewModelInstance = new ViewModelInstance(runtimeInstance, this._parentViewModel);
|
|
7774
7779
|
return viewModelInstance;
|
|
7775
7780
|
}
|
|
7776
7781
|
return null;
|
|
7777
7782
|
};
|
|
7783
|
+
ViewModelInstanceList.prototype.swap = function (a, b) {
|
|
7784
|
+
this._viewModelInstanceValue.swap(a, b);
|
|
7785
|
+
};
|
|
7778
7786
|
ViewModelInstanceList.prototype.internalHandleCallback = function (callback) {
|
|
7779
7787
|
callback();
|
|
7780
7788
|
};
|