@rive-app/webgl 2.25.3 → 2.25.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 -2
- package/rive.js +8 -5
- 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
|
@@ -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.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}}');
|
|
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:
|