@rive-app/canvas 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
|
@@ -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.4","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:
|