@rive-app/canvas-lite 2.25.2 → 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
|
@@ -2269,7 +2269,7 @@ Qc();
|
|
|
2269
2269
|
/* 2 */
|
|
2270
2270
|
/***/ ((module) => {
|
|
2271
2271
|
|
|
2272
|
-
module.exports = JSON.parse('{"name":"@rive-app/canvas-lite","version":"2.25.
|
|
2272
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/canvas-lite","version":"2.25.4","description":"A lite version of 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}}');
|
|
2273
2273
|
|
|
2274
2274
|
/***/ }),
|
|
2275
2275
|
/* 3 */
|
|
@@ -2723,7 +2723,7 @@ function sanitizeUrl(url) {
|
|
|
2723
2723
|
/******/
|
|
2724
2724
|
/************************************************************************/
|
|
2725
2725
|
var __webpack_exports__ = {};
|
|
2726
|
-
// This entry
|
|
2726
|
+
// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
|
|
2727
2727
|
(() => {
|
|
2728
2728
|
__webpack_require__.r(__webpack_exports__);
|
|
2729
2729
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
@@ -2772,8 +2772,8 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
|
|
|
2772
2772
|
});
|
|
2773
2773
|
};
|
|
2774
2774
|
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
|
|
2775
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
2776
|
-
return g =
|
|
2775
|
+
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);
|
|
2776
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
2777
2777
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
2778
2778
|
function step(op) {
|
|
2779
2779
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -4198,6 +4198,9 @@ var Rive = /** @class */ (function () {
|
|
|
4198
4198
|
*/
|
|
4199
4199
|
Rive.prototype.setupRiveListeners = function (riveListenerOptions) {
|
|
4200
4200
|
var _this = this;
|
|
4201
|
+
if (this.eventCleanup) {
|
|
4202
|
+
this.eventCleanup();
|
|
4203
|
+
}
|
|
4201
4204
|
if (!this.shouldDisableRiveListeners) {
|
|
4202
4205
|
var activeStateMachines = (this.animator.stateMachines || [])
|
|
4203
4206
|
.filter(function (sm) { return sm.playing && _this.runtime.hasListeners(sm.instance); })
|
|
@@ -4259,9 +4262,9 @@ var Rive = /** @class */ (function () {
|
|
|
4259
4262
|
};
|
|
4260
4263
|
// Initializes runtime with Rive data and preps for playing
|
|
4261
4264
|
Rive.prototype.initData = function (artboardName, animationNames, stateMachineNames, autoplay) {
|
|
4262
|
-
var _a;
|
|
4263
4265
|
return __awaiter(this, void 0, void 0, function () {
|
|
4264
4266
|
var error_1, msg;
|
|
4267
|
+
var _a;
|
|
4265
4268
|
return __generator(this, function (_b) {
|
|
4266
4269
|
switch (_b.label) {
|
|
4267
4270
|
case 0:
|