@rive-app/webgl 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
|
@@ -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 = {701388:(a, b, c, d, e) => {
|
|
412
412
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
413
413
|
return 0;
|
|
414
414
|
}
|
|
@@ -471,9 +471,9 @@ var Ra, Sa, Wa = {700236:(a, b, c, d, e) => {
|
|
|
471
471
|
}
|
|
472
472
|
window.h.Ea += 1;
|
|
473
473
|
return 1;
|
|
474
|
-
},
|
|
474
|
+
}, 703566:() => {
|
|
475
475
|
"undefined" !== typeof window.h && (--window.h.Ea, 0 === window.h.Ea && delete window.h);
|
|
476
|
-
},
|
|
476
|
+
}, 703730:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 703834:() => {
|
|
477
477
|
try {
|
|
478
478
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
479
479
|
a.close();
|
|
@@ -481,7 +481,7 @@ var Ra, Sa, Wa = {700236:(a, b, c, d, e) => {
|
|
|
481
481
|
} catch (c) {
|
|
482
482
|
return 0;
|
|
483
483
|
}
|
|
484
|
-
},
|
|
484
|
+
}, 704005:(a, b, c, d, e, f) => {
|
|
485
485
|
if ("undefined" === typeof window.h) {
|
|
486
486
|
return -1;
|
|
487
487
|
}
|
|
@@ -527,7 +527,7 @@ var Ra, Sa, Wa = {700236:(a, b, c, d, e) => {
|
|
|
527
527
|
a == window.h.H.Ca && g.X.connect(g.I.destination);
|
|
528
528
|
g.lb = f;
|
|
529
529
|
return window.h.nc(g);
|
|
530
|
-
},
|
|
530
|
+
}, 706882:a => window.h.ta(a).I.sampleRate, 706955:a => {
|
|
531
531
|
a = window.h.ta(a);
|
|
532
532
|
void 0 !== a.X && (a.X.onaudioprocess = function() {
|
|
533
533
|
}, a.X.disconnect(), a.X = void 0);
|
|
@@ -535,13 +535,13 @@ var Ra, Sa, Wa = {700236:(a, b, c, d, e) => {
|
|
|
535
535
|
a.I.close();
|
|
536
536
|
a.I = void 0;
|
|
537
537
|
a.lb = void 0;
|
|
538
|
-
},
|
|
538
|
+
}, 707355:a => {
|
|
539
539
|
window.h.xb(a);
|
|
540
|
-
},
|
|
540
|
+
}, 707405:a => {
|
|
541
541
|
a = window.h.ta(a);
|
|
542
542
|
a.I.resume();
|
|
543
543
|
a.state = window.h.ha.sb;
|
|
544
|
-
},
|
|
544
|
+
}, 707544:a => {
|
|
545
545
|
a = window.h.ta(a);
|
|
546
546
|
a.I.suspend();
|
|
547
547
|
a.state = window.h.ha.stopped;
|
|
@@ -4061,7 +4061,7 @@ Je();
|
|
|
4061
4061
|
/* 2 */
|
|
4062
4062
|
/***/ ((module) => {
|
|
4063
4063
|
|
|
4064
|
-
module.exports = JSON.parse('{"name":"@rive-app/webgl","version":"2.25.
|
|
4064
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/webgl","version":"2.25.5","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}}');
|
|
4065
4065
|
|
|
4066
4066
|
/***/ }),
|
|
4067
4067
|
/* 3 */
|
|
@@ -4515,7 +4515,7 @@ function sanitizeUrl(url) {
|
|
|
4515
4515
|
/******/
|
|
4516
4516
|
/************************************************************************/
|
|
4517
4517
|
var __webpack_exports__ = {};
|
|
4518
|
-
// This entry
|
|
4518
|
+
// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
|
|
4519
4519
|
(() => {
|
|
4520
4520
|
__webpack_require__.r(__webpack_exports__);
|
|
4521
4521
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
@@ -4564,8 +4564,8 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
|
|
|
4564
4564
|
});
|
|
4565
4565
|
};
|
|
4566
4566
|
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
|
|
4567
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
4568
|
-
return g =
|
|
4567
|
+
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);
|
|
4568
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
4569
4569
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
4570
4570
|
function step(op) {
|
|
4571
4571
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -5990,6 +5990,9 @@ var Rive = /** @class */ (function () {
|
|
|
5990
5990
|
*/
|
|
5991
5991
|
Rive.prototype.setupRiveListeners = function (riveListenerOptions) {
|
|
5992
5992
|
var _this = this;
|
|
5993
|
+
if (this.eventCleanup) {
|
|
5994
|
+
this.eventCleanup();
|
|
5995
|
+
}
|
|
5993
5996
|
if (!this.shouldDisableRiveListeners) {
|
|
5994
5997
|
var activeStateMachines = (this.animator.stateMachines || [])
|
|
5995
5998
|
.filter(function (sm) { return sm.playing && _this.runtime.hasListeners(sm.instance); })
|
|
@@ -6051,9 +6054,9 @@ var Rive = /** @class */ (function () {
|
|
|
6051
6054
|
};
|
|
6052
6055
|
// Initializes runtime with Rive data and preps for playing
|
|
6053
6056
|
Rive.prototype.initData = function (artboardName, animationNames, stateMachineNames, autoplay) {
|
|
6054
|
-
var _a;
|
|
6055
6057
|
return __awaiter(this, void 0, void 0, function () {
|
|
6056
6058
|
var error_1, msg;
|
|
6059
|
+
var _a;
|
|
6057
6060
|
return __generator(this, function (_b) {
|
|
6058
6061
|
switch (_b.label) {
|
|
6059
6062
|
case 0:
|