@rive-app/canvas 2.25.3 → 2.25.5
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 -2
- package/rive.js +16 -13
- package/rive.js.map +1 -1
- package/rive.wasm +0 -0
- package/rive_fallback.wasm +0 -0
package/package.json
CHANGED
package/rive.d.ts
CHANGED
|
@@ -137,8 +137,8 @@ export interface Event {
|
|
|
137
137
|
* Looping types: one-shot, loop, and ping-pong
|
|
138
138
|
*/
|
|
139
139
|
export declare enum LoopType {
|
|
140
|
-
OneShot = "oneshot"
|
|
141
|
-
Loop = "loop"
|
|
140
|
+
OneShot = "oneshot",// has value 0 in runtime
|
|
141
|
+
Loop = "loop",// has value 1 in runtime
|
|
142
142
|
PingPong = "pingpong"
|
|
143
143
|
}
|
|
144
144
|
/**
|
package/rive.js
CHANGED
|
@@ -746,7 +746,7 @@ function Ya(a, b) {
|
|
|
746
746
|
return Xa(c, a, b);
|
|
747
747
|
}));
|
|
748
748
|
}
|
|
749
|
-
var Za, $a, db = {
|
|
749
|
+
var Za, $a, db = {446236:(a, b, c, d, e) => {
|
|
750
750
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
751
751
|
return 0;
|
|
752
752
|
}
|
|
@@ -809,9 +809,9 @@ var Za, $a, db = {445532:(a, b, c, d, e) => {
|
|
|
809
809
|
}
|
|
810
810
|
window.h.Aa += 1;
|
|
811
811
|
return 1;
|
|
812
|
-
},
|
|
812
|
+
}, 448414:() => {
|
|
813
813
|
"undefined" !== typeof window.h && (--window.h.Aa, 0 === window.h.Aa && delete window.h);
|
|
814
|
-
},
|
|
814
|
+
}, 448578:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 448682:() => {
|
|
815
815
|
try {
|
|
816
816
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
817
817
|
a.close();
|
|
@@ -819,7 +819,7 @@ var Za, $a, db = {445532:(a, b, c, d, e) => {
|
|
|
819
819
|
} catch (c) {
|
|
820
820
|
return 0;
|
|
821
821
|
}
|
|
822
|
-
},
|
|
822
|
+
}, 448853:(a, b, c, d, e, f) => {
|
|
823
823
|
if ("undefined" === typeof window.h) {
|
|
824
824
|
return -1;
|
|
825
825
|
}
|
|
@@ -865,7 +865,7 @@ var Za, $a, db = {445532:(a, b, c, d, e) => {
|
|
|
865
865
|
a == window.h.I.ya && g.Z.connect(g.J.destination);
|
|
866
866
|
g.pb = f;
|
|
867
867
|
return window.h.yc(g);
|
|
868
|
-
},
|
|
868
|
+
}, 451730:a => window.h.ra(a).J.sampleRate, 451803:a => {
|
|
869
869
|
a = window.h.ra(a);
|
|
870
870
|
void 0 !== a.Z && (a.Z.onaudioprocess = function() {
|
|
871
871
|
}, a.Z.disconnect(), a.Z = void 0);
|
|
@@ -873,13 +873,13 @@ var Za, $a, db = {445532:(a, b, c, d, e) => {
|
|
|
873
873
|
a.J.close();
|
|
874
874
|
a.J = void 0;
|
|
875
875
|
a.pb = void 0;
|
|
876
|
-
},
|
|
876
|
+
}, 452203:a => {
|
|
877
877
|
window.h.Cb(a);
|
|
878
|
-
},
|
|
878
|
+
}, 452253:a => {
|
|
879
879
|
a = window.h.ra(a);
|
|
880
880
|
a.J.resume();
|
|
881
881
|
a.state = window.h.ga.xb;
|
|
882
|
-
},
|
|
882
|
+
}, 452392:a => {
|
|
883
883
|
a = window.h.ra(a);
|
|
884
884
|
a.J.suspend();
|
|
885
885
|
a.state = window.h.ga.stopped;
|
|
@@ -3365,7 +3365,7 @@ $d();
|
|
|
3365
3365
|
/* 2 */
|
|
3366
3366
|
/***/ ((module) => {
|
|
3367
3367
|
|
|
3368
|
-
module.exports = JSON.parse('{"name":"@rive-app/canvas","version":"2.25.
|
|
3368
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/canvas","version":"2.25.5","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}}');
|
|
3369
3369
|
|
|
3370
3370
|
/***/ }),
|
|
3371
3371
|
/* 3 */
|
|
@@ -3819,7 +3819,7 @@ function sanitizeUrl(url) {
|
|
|
3819
3819
|
/******/
|
|
3820
3820
|
/************************************************************************/
|
|
3821
3821
|
var __webpack_exports__ = {};
|
|
3822
|
-
// This entry
|
|
3822
|
+
// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
|
|
3823
3823
|
(() => {
|
|
3824
3824
|
__webpack_require__.r(__webpack_exports__);
|
|
3825
3825
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
@@ -3868,8 +3868,8 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
|
|
|
3868
3868
|
});
|
|
3869
3869
|
};
|
|
3870
3870
|
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
|
|
3871
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
3872
|
-
return g =
|
|
3871
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
3872
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
3873
3873
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
3874
3874
|
function step(op) {
|
|
3875
3875
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -5294,6 +5294,9 @@ var Rive = /** @class */ (function () {
|
|
|
5294
5294
|
*/
|
|
5295
5295
|
Rive.prototype.setupRiveListeners = function (riveListenerOptions) {
|
|
5296
5296
|
var _this = this;
|
|
5297
|
+
if (this.eventCleanup) {
|
|
5298
|
+
this.eventCleanup();
|
|
5299
|
+
}
|
|
5297
5300
|
if (!this.shouldDisableRiveListeners) {
|
|
5298
5301
|
var activeStateMachines = (this.animator.stateMachines || [])
|
|
5299
5302
|
.filter(function (sm) { return sm.playing && _this.runtime.hasListeners(sm.instance); })
|
|
@@ -5355,9 +5358,9 @@ var Rive = /** @class */ (function () {
|
|
|
5355
5358
|
};
|
|
5356
5359
|
// Initializes runtime with Rive data and preps for playing
|
|
5357
5360
|
Rive.prototype.initData = function (artboardName, animationNames, stateMachineNames, autoplay) {
|
|
5358
|
-
var _a;
|
|
5359
5361
|
return __awaiter(this, void 0, void 0, function () {
|
|
5360
5362
|
var error_1, msg;
|
|
5363
|
+
var _a;
|
|
5361
5364
|
return __generator(this, function (_b) {
|
|
5362
5365
|
switch (_b.label) {
|
|
5363
5366
|
case 0:
|