@rive-app/webgl2 2.31.3 → 2.31.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 +1 -2
- package/rive.js +12 -12
- package/rive.js.map +1 -1
- package/rive.wasm +0 -0
- package/rive_advanced.mjs.d.ts +6 -3
package/package.json
CHANGED
package/rive.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as rc from "./rive_advanced.mjs";
|
|
2
|
-
import { FinalizableTarget } from "./utils";
|
|
3
2
|
export type AssetLoadCallback = (asset: rc.FileAsset, bytes: Uint8Array) => Boolean;
|
|
4
3
|
export type { FileAsset, AudioAsset, FontAsset, ImageAsset, } from "./rive_advanced.mjs";
|
|
5
4
|
/**
|
|
@@ -307,7 +306,7 @@ export interface RiveFileParameters {
|
|
|
307
306
|
onLoad?: EventCallback;
|
|
308
307
|
onLoadError?: EventCallback;
|
|
309
308
|
}
|
|
310
|
-
export declare class RiveFile implements FinalizableTarget {
|
|
309
|
+
export declare class RiveFile implements rc.FinalizableTarget {
|
|
311
310
|
private static readonly missingErrorMessage;
|
|
312
311
|
private static readonly fileLoadErrorMessage;
|
|
313
312
|
private src;
|
package/rive.js
CHANGED
|
@@ -442,7 +442,7 @@ function Oa(a, b) {
|
|
|
442
442
|
return Na(c, a, b);
|
|
443
443
|
}));
|
|
444
444
|
}
|
|
445
|
-
var Pa, Qa, Ua = {
|
|
445
|
+
var Pa, Qa, Ua = {534231:(a, b, c, d, e) => {
|
|
446
446
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
447
447
|
return 0;
|
|
448
448
|
}
|
|
@@ -505,11 +505,11 @@ var Pa, Qa, Ua = {534199:(a, b, c, d, e) => {
|
|
|
505
505
|
}
|
|
506
506
|
window.h.Ga += 1;
|
|
507
507
|
return 1;
|
|
508
|
-
},
|
|
508
|
+
}, 536409:() => {
|
|
509
509
|
"undefined" !== typeof window.h && (window.h.Za.map(function(a) {
|
|
510
510
|
document.removeEventListener(a, window.h.unlock, !0);
|
|
511
511
|
}), --window.h.Ga, 0 === window.h.Ga && delete window.h);
|
|
512
|
-
},
|
|
512
|
+
}, 536713:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 536817:() => {
|
|
513
513
|
try {
|
|
514
514
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
515
515
|
a.close();
|
|
@@ -517,7 +517,7 @@ var Pa, Qa, Ua = {534199:(a, b, c, d, e) => {
|
|
|
517
517
|
} catch (c) {
|
|
518
518
|
return 0;
|
|
519
519
|
}
|
|
520
|
-
},
|
|
520
|
+
}, 536988:(a, b, c, d, e, f) => {
|
|
521
521
|
if ("undefined" === typeof window.h) {
|
|
522
522
|
return -1;
|
|
523
523
|
}
|
|
@@ -563,7 +563,7 @@ var Pa, Qa, Ua = {534199:(a, b, c, d, e) => {
|
|
|
563
563
|
a == window.h.I.Ea && g.Z.connect(g.J.destination);
|
|
564
564
|
g.pb = f;
|
|
565
565
|
return window.h.rc(g);
|
|
566
|
-
},
|
|
566
|
+
}, 539865:a => window.h.va(a).J.sampleRate, 539938:a => {
|
|
567
567
|
a = window.h.va(a);
|
|
568
568
|
void 0 !== a.Z && (a.Z.onaudioprocess = function() {
|
|
569
569
|
}, a.Z.disconnect(), a.Z = void 0);
|
|
@@ -571,13 +571,13 @@ var Pa, Qa, Ua = {534199:(a, b, c, d, e) => {
|
|
|
571
571
|
a.J.close();
|
|
572
572
|
a.J = void 0;
|
|
573
573
|
a.pb = void 0;
|
|
574
|
-
},
|
|
574
|
+
}, 540338:a => {
|
|
575
575
|
window.h.Bb(a);
|
|
576
|
-
},
|
|
576
|
+
}, 540388:a => {
|
|
577
577
|
a = window.h.va(a);
|
|
578
578
|
a.J.resume();
|
|
579
579
|
a.state = window.h.ja.xb;
|
|
580
|
-
},
|
|
580
|
+
}, 540527:a => {
|
|
581
581
|
a = window.h.va(a);
|
|
582
582
|
a.J.suspend();
|
|
583
583
|
a.state = window.h.ja.stopped;
|
|
@@ -3552,8 +3552,8 @@ k.dynCall_viijii = (a, b, c, d, e, f, g) => (k.dynCall_viijii = C.dynCall_viijii
|
|
|
3552
3552
|
k.dynCall_iiiiij = (a, b, c, d, e, f, g) => (k.dynCall_iiiiij = C.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3553
3553
|
k.dynCall_iiiiijj = (a, b, c, d, e, f, g, l, p) => (k.dynCall_iiiiijj = C.dynCall_iiiiijj)(a, b, c, d, e, f, g, l, p);
|
|
3554
3554
|
k.dynCall_iiiiiijj = (a, b, c, d, e, f, g, l, p, m) => (k.dynCall_iiiiiijj = C.dynCall_iiiiiijj)(a, b, c, d, e, f, g, l, p, m);
|
|
3555
|
-
k.___start_em_js =
|
|
3556
|
-
k.___stop_em_js =
|
|
3555
|
+
k.___start_em_js = 531476;
|
|
3556
|
+
k.___stop_em_js = 534231;
|
|
3557
3557
|
var $d;
|
|
3558
3558
|
Ha = function ae() {
|
|
3559
3559
|
$d || be();
|
|
@@ -3613,7 +3613,7 @@ be();
|
|
|
3613
3613
|
/* 2 */
|
|
3614
3614
|
/***/ ((module) => {
|
|
3615
3615
|
|
|
3616
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/webgl2","version":"2.31.
|
|
3616
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/webgl2","version":"2.31.5","description":"Rive\'s webgl2 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)","Chris Dalton <chris@rive.app> (https://rive.app)"],"license":"MIT","files":["rive.js","rive.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
|
|
3617
3617
|
|
|
3618
3618
|
/***/ }),
|
|
3619
3619
|
/* 3 */
|
|
@@ -6086,7 +6086,7 @@ var Rive = /** @class */ (function () {
|
|
|
6086
6086
|
type: EventType.Load,
|
|
6087
6087
|
data: (_a = this.src) !== null && _a !== void 0 ? _a : "buffer",
|
|
6088
6088
|
});
|
|
6089
|
-
// Only initialize paused state machines after the load event has been fired
|
|
6089
|
+
// Only initialize paused state machines after the load event has been fired
|
|
6090
6090
|
// to allow users to initialize inputs and view models before the first advance
|
|
6091
6091
|
this.animator.advanceIfPaused();
|
|
6092
6092
|
// Flag ready for playback commands and clear the task queue; this order
|