@rive-app/webgl2 2.37.0 → 2.37.1
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 +4 -2
- package/rive.d.ts +2 -2
- package/rive.js +9 -9
- package/rive.js.map +1 -1
- package/rive.wasm +0 -0
- package/runtimeLoader.d.ts +20 -0
- package/utils/finalizationRegistry.d.ts +94 -0
- package/utils/index.d.ts +4 -0
- package/utils/registerTouchInteractions.d.ts +19 -0
- package/utils/riveFont.d.ts +15 -0
- package/utils/sanitizeUrl.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rive-app/webgl2",
|
|
3
|
-
"version": "2.37.
|
|
3
|
+
"version": "2.37.1",
|
|
4
4
|
"description": "Rive's webgl2 based web api.",
|
|
5
5
|
"main": "rive.js",
|
|
6
6
|
"homepage": "https://rive.app",
|
|
@@ -27,7 +27,9 @@
|
|
|
27
27
|
"rive.wasm",
|
|
28
28
|
"rive.js.map",
|
|
29
29
|
"rive.d.ts",
|
|
30
|
-
"rive_advanced.mjs.d.ts"
|
|
30
|
+
"rive_advanced.mjs.d.ts",
|
|
31
|
+
"runtimeLoader.d.ts",
|
|
32
|
+
"utils"
|
|
31
33
|
],
|
|
32
34
|
"typings": "rive.d.ts",
|
|
33
35
|
"dependencies": {},
|
package/rive.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as rc from "./rive_advanced.mjs";
|
|
2
2
|
import { RuntimeLoader, type RuntimeCallback } from "./runtimeLoader";
|
|
3
3
|
import { ImageWrapper, AudioWrapper, FontWrapper, RiveFont as RiveFontClassUtil } from "./utils";
|
|
4
|
-
export type AssetLoadCallback = (asset: rc.FileAsset, bytes: Uint8Array) =>
|
|
4
|
+
export type AssetLoadCallback = (asset: rc.FileAsset, bytes: Uint8Array) => boolean;
|
|
5
5
|
export { RiveFontClassUtil as RiveFont };
|
|
6
6
|
export type { FileAsset, AudioAsset, FontAsset, ImageAsset, } from "./rive_advanced.mjs";
|
|
7
7
|
/**
|
|
@@ -285,7 +285,7 @@ export interface RiveParameters {
|
|
|
285
285
|
*/
|
|
286
286
|
onloaderror?: EventCallback;
|
|
287
287
|
/**
|
|
288
|
-
* @deprecated Use `
|
|
288
|
+
* @deprecated Use `onPlay()` instead
|
|
289
289
|
*/
|
|
290
290
|
onplay?: EventCallback;
|
|
291
291
|
/**
|
package/rive.js
CHANGED
|
@@ -691,7 +691,7 @@ function Na(a, b) {
|
|
|
691
691
|
return Ma(c, a, b);
|
|
692
692
|
}));
|
|
693
693
|
}
|
|
694
|
-
var Oa, Pa, Ta = {
|
|
694
|
+
var Oa, Pa, Ta = {564097:(a, b, c, d, e) => {
|
|
695
695
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
696
696
|
return 0;
|
|
697
697
|
}
|
|
@@ -754,11 +754,11 @@ var Oa, Pa, Ta = {563953:(a, b, c, d, e) => {
|
|
|
754
754
|
}
|
|
755
755
|
window.h.Ea += 1;
|
|
756
756
|
return 1;
|
|
757
|
-
},
|
|
757
|
+
}, 566275:() => {
|
|
758
758
|
"undefined" !== typeof window.h && (window.h.Xa.map(function(a) {
|
|
759
759
|
document.removeEventListener(a, window.h.unlock, !0);
|
|
760
760
|
}), --window.h.Ea, 0 === window.h.Ea && delete window.h);
|
|
761
|
-
},
|
|
761
|
+
}, 566579:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 566683:() => {
|
|
762
762
|
try {
|
|
763
763
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
764
764
|
a.close();
|
|
@@ -766,7 +766,7 @@ var Oa, Pa, Ta = {563953:(a, b, c, d, e) => {
|
|
|
766
766
|
} catch (c) {
|
|
767
767
|
return 0;
|
|
768
768
|
}
|
|
769
|
-
},
|
|
769
|
+
}, 566854:(a, b, c, d, e, f) => {
|
|
770
770
|
if ("undefined" === typeof window.h) {
|
|
771
771
|
return -1;
|
|
772
772
|
}
|
|
@@ -812,7 +812,7 @@ var Oa, Pa, Ta = {563953:(a, b, c, d, e) => {
|
|
|
812
812
|
a == window.h.I.Ca && g.Y.connect(g.K.destination);
|
|
813
813
|
g.nb = f;
|
|
814
814
|
return window.h.lc(g);
|
|
815
|
-
},
|
|
815
|
+
}, 569731:a => window.h.ta(a).K.sampleRate, 569804:a => {
|
|
816
816
|
a = window.h.ta(a);
|
|
817
817
|
void 0 !== a.Y && (a.Y.onaudioprocess = function() {
|
|
818
818
|
}, a.Y.disconnect(), a.Y = void 0);
|
|
@@ -820,13 +820,13 @@ var Oa, Pa, Ta = {563953:(a, b, c, d, e) => {
|
|
|
820
820
|
a.K.close();
|
|
821
821
|
a.K = void 0;
|
|
822
822
|
a.nb = void 0;
|
|
823
|
-
},
|
|
823
|
+
}, 570204:a => {
|
|
824
824
|
window.h.yb(a);
|
|
825
|
-
},
|
|
825
|
+
}, 570254:a => {
|
|
826
826
|
a = window.h.ta(a);
|
|
827
827
|
a.K.resume();
|
|
828
828
|
a.state = window.h.ia.ub;
|
|
829
|
-
},
|
|
829
|
+
}, 570393:a => {
|
|
830
830
|
a = window.h.ta(a);
|
|
831
831
|
a.K.suspend();
|
|
832
832
|
a.state = window.h.ia.stopped;
|
|
@@ -3814,7 +3814,7 @@ moduleRtn = ca;
|
|
|
3814
3814
|
/* 5 */
|
|
3815
3815
|
/***/ ((module) => {
|
|
3816
3816
|
|
|
3817
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/webgl2","version":"2.37.
|
|
3817
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/webgl2","version":"2.37.1","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","runtimeLoader.d.ts","utils"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
|
|
3818
3818
|
|
|
3819
3819
|
/***/ }),
|
|
3820
3820
|
/* 6 */
|