@rive-app/canvas 2.37.6 → 2.37.7
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.js +19 -10
- package/rive.js.map +1 -1
- package/rive.wasm +0 -0
- package/rive_fallback.wasm +0 -0
package/package.json
CHANGED
package/rive.js
CHANGED
|
@@ -1084,7 +1084,7 @@ function Za(a, b) {
|
|
|
1084
1084
|
return Ya(c, a, b);
|
|
1085
1085
|
}));
|
|
1086
1086
|
}
|
|
1087
|
-
var $a, ab, eb = {
|
|
1087
|
+
var $a, ab, eb = {484301:(a, b, c, d, e) => {
|
|
1088
1088
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
1089
1089
|
return 0;
|
|
1090
1090
|
}
|
|
@@ -1147,11 +1147,11 @@ var $a, ab, eb = {484173:(a, b, c, d, e) => {
|
|
|
1147
1147
|
}
|
|
1148
1148
|
window.h.za += 1;
|
|
1149
1149
|
return 1;
|
|
1150
|
-
},
|
|
1150
|
+
}, 486479:() => {
|
|
1151
1151
|
"undefined" !== typeof window.h && (window.h.Sa.map(function(a) {
|
|
1152
1152
|
document.removeEventListener(a, window.h.unlock, !0);
|
|
1153
1153
|
}), --window.h.za, 0 === window.h.za && delete window.h);
|
|
1154
|
-
},
|
|
1154
|
+
}, 486783:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 486887:() => {
|
|
1155
1155
|
try {
|
|
1156
1156
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
1157
1157
|
a.close();
|
|
@@ -1159,7 +1159,7 @@ var $a, ab, eb = {484173:(a, b, c, d, e) => {
|
|
|
1159
1159
|
} catch (c) {
|
|
1160
1160
|
return 0;
|
|
1161
1161
|
}
|
|
1162
|
-
},
|
|
1162
|
+
}, 487058:(a, b, c, d, e, f) => {
|
|
1163
1163
|
if ("undefined" === typeof window.h) {
|
|
1164
1164
|
return -1;
|
|
1165
1165
|
}
|
|
@@ -1205,7 +1205,7 @@ var $a, ab, eb = {484173:(a, b, c, d, e) => {
|
|
|
1205
1205
|
a == window.h.J.xa && g.Z.connect(g.L.destination);
|
|
1206
1206
|
g.pb = f;
|
|
1207
1207
|
return window.h.tc(g);
|
|
1208
|
-
},
|
|
1208
|
+
}, 489935:a => window.h.qa(a).L.sampleRate, 490008:a => {
|
|
1209
1209
|
a = window.h.qa(a);
|
|
1210
1210
|
void 0 !== a.Z && (a.Z.onaudioprocess = function() {
|
|
1211
1211
|
}, a.Z.disconnect(), a.Z = void 0);
|
|
@@ -1213,13 +1213,13 @@ var $a, ab, eb = {484173:(a, b, c, d, e) => {
|
|
|
1213
1213
|
a.L.close();
|
|
1214
1214
|
a.L = void 0;
|
|
1215
1215
|
a.pb = void 0;
|
|
1216
|
-
},
|
|
1216
|
+
}, 490408:a => {
|
|
1217
1217
|
window.h.Ab(a);
|
|
1218
|
-
},
|
|
1218
|
+
}, 490458:a => {
|
|
1219
1219
|
a = window.h.qa(a);
|
|
1220
1220
|
a.L.resume();
|
|
1221
1221
|
a.state = window.h.ga.wb;
|
|
1222
|
-
},
|
|
1222
|
+
}, 490597:a => {
|
|
1223
1223
|
a = window.h.qa(a);
|
|
1224
1224
|
a.L.suspend();
|
|
1225
1225
|
a.state = window.h.ga.stopped;
|
|
@@ -3752,7 +3752,7 @@ moduleRtn = ea;
|
|
|
3752
3752
|
/* 5 */
|
|
3753
3753
|
/***/ ((module) => {
|
|
3754
3754
|
|
|
3755
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/canvas","version":"2.37.
|
|
3755
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/canvas","version":"2.37.7","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","runtimeLoader.d.ts","utils"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
|
|
3756
3756
|
|
|
3757
3757
|
/***/ }),
|
|
3758
3758
|
/* 6 */
|
|
@@ -6215,7 +6215,16 @@ var Rive = /** @class */ (function () {
|
|
|
6215
6215
|
// Get the canvas where you want to render the animation and create a renderer
|
|
6216
6216
|
if (_this.enablePerfMarks)
|
|
6217
6217
|
performance.mark('rive:make-renderer:start');
|
|
6218
|
-
|
|
6218
|
+
try {
|
|
6219
|
+
_this.renderer = _this.runtime.makeRenderer(_this.canvas, useOffscreenRenderer);
|
|
6220
|
+
if (!_this.renderer) {
|
|
6221
|
+
throw new Error("Renderer is null, cannot render Rive on the canvas.");
|
|
6222
|
+
}
|
|
6223
|
+
}
|
|
6224
|
+
catch (e) {
|
|
6225
|
+
console.error(e);
|
|
6226
|
+
throw new RiveError("Unable to create the renderer, your environment may not support WebGL. Try the @rive-app/canvas runtime as an alternative.");
|
|
6227
|
+
}
|
|
6219
6228
|
if (_this.enablePerfMarks) {
|
|
6220
6229
|
performance.mark('rive:make-renderer:end');
|
|
6221
6230
|
performance.measure('rive:make-renderer', 'rive:make-renderer:start', 'rive:make-renderer:end');
|