@rive-app/webgl 2.23.2 → 2.23.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 +4 -4
- package/rive.js +15 -13
- package/rive.js.map +1 -1
- package/rive.wasm +0 -0
- package/rive_advanced.mjs.d.ts +2 -2
- package/rive_fallback.wasm +0 -0
package/package.json
CHANGED
package/rive.d.ts
CHANGED
|
@@ -663,26 +663,26 @@ export declare class Rive {
|
|
|
663
663
|
/**
|
|
664
664
|
* The width of the artboard.
|
|
665
665
|
*
|
|
666
|
-
* This will return
|
|
666
|
+
* This will return 0 if the artboard is not loaded yet and a custom
|
|
667
667
|
* width has not been set.
|
|
668
668
|
*
|
|
669
669
|
* Do not set this value manually when using {@link resizeDrawingSurfaceToCanvas}
|
|
670
670
|
* with a {@link Layout.fit} of {@link Fit.Layout}, as the artboard width is
|
|
671
671
|
* automatically set.
|
|
672
672
|
*/
|
|
673
|
-
get artboardWidth(): number
|
|
673
|
+
get artboardWidth(): number;
|
|
674
674
|
set artboardWidth(value: number);
|
|
675
675
|
/**
|
|
676
676
|
* The height of the artboard.
|
|
677
677
|
*
|
|
678
|
-
* This will return
|
|
678
|
+
* This will return 0 if the artboard is not loaded yet and a custom
|
|
679
679
|
* height has not been set.
|
|
680
680
|
*
|
|
681
681
|
* Do not set this value manually when using {@link resizeDrawingSurfaceToCanvas}
|
|
682
682
|
* with a {@link Layout.fit} of {@link Fit.Layout}, as the artboard height is
|
|
683
683
|
* automatically set.
|
|
684
684
|
*/
|
|
685
|
-
get artboardHeight(): number
|
|
685
|
+
get artboardHeight(): number;
|
|
686
686
|
set artboardHeight(value: number);
|
|
687
687
|
/**
|
|
688
688
|
* Reset the artboard size to its original values.
|
package/rive.js
CHANGED
|
@@ -408,7 +408,7 @@ function Qa(a, b) {
|
|
|
408
408
|
return Pa(c, a, b);
|
|
409
409
|
}));
|
|
410
410
|
}
|
|
411
|
-
var Ra, Sa, Wa = {
|
|
411
|
+
var Ra, Sa, Wa = {697468:(a, b, c, d, e) => {
|
|
412
412
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
413
413
|
return 0;
|
|
414
414
|
}
|
|
@@ -471,9 +471,9 @@ var Ra, Sa, Wa = {696428:(a, b, c, d, e) => {
|
|
|
471
471
|
}
|
|
472
472
|
window.h.Ea += 1;
|
|
473
473
|
return 1;
|
|
474
|
-
},
|
|
474
|
+
}, 699646:() => {
|
|
475
475
|
"undefined" !== typeof window.h && (--window.h.Ea, 0 === window.h.Ea && delete window.h);
|
|
476
|
-
},
|
|
476
|
+
}, 699810:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 699914:() => {
|
|
477
477
|
try {
|
|
478
478
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
479
479
|
a.close();
|
|
@@ -481,7 +481,7 @@ var Ra, Sa, Wa = {696428:(a, b, c, d, e) => {
|
|
|
481
481
|
} catch (c) {
|
|
482
482
|
return 0;
|
|
483
483
|
}
|
|
484
|
-
},
|
|
484
|
+
}, 700085:(a, b, c, d, e, f) => {
|
|
485
485
|
if ("undefined" === typeof window.h) {
|
|
486
486
|
return -1;
|
|
487
487
|
}
|
|
@@ -527,7 +527,7 @@ var Ra, Sa, Wa = {696428:(a, b, c, d, e) => {
|
|
|
527
527
|
a == window.h.H.Ca && g.X.connect(g.I.destination);
|
|
528
528
|
g.lb = f;
|
|
529
529
|
return window.h.nc(g);
|
|
530
|
-
},
|
|
530
|
+
}, 702962:a => window.h.ta(a).I.sampleRate, 703035:a => {
|
|
531
531
|
a = window.h.ta(a);
|
|
532
532
|
void 0 !== a.X && (a.X.onaudioprocess = function() {
|
|
533
533
|
}, a.X.disconnect(), a.X = void 0);
|
|
@@ -535,13 +535,13 @@ var Ra, Sa, Wa = {696428:(a, b, c, d, e) => {
|
|
|
535
535
|
a.I.close();
|
|
536
536
|
a.I = void 0;
|
|
537
537
|
a.lb = void 0;
|
|
538
|
-
},
|
|
538
|
+
}, 703435:a => {
|
|
539
539
|
window.h.xb(a);
|
|
540
|
-
},
|
|
540
|
+
}, 703485:a => {
|
|
541
541
|
a = window.h.ta(a);
|
|
542
542
|
a.I.resume();
|
|
543
543
|
a.state = window.h.ha.sb;
|
|
544
|
-
},
|
|
544
|
+
}, 703624:a => {
|
|
545
545
|
a = window.h.ta(a);
|
|
546
546
|
a.I.suspend();
|
|
547
547
|
a.state = window.h.ha.stopped;
|
|
@@ -4061,7 +4061,7 @@ Je();
|
|
|
4061
4061
|
/* 2 */
|
|
4062
4062
|
/***/ ((module) => {
|
|
4063
4063
|
|
|
4064
|
-
module.exports = JSON.parse('{"name":"@rive-app/webgl","version":"2.23.
|
|
4064
|
+
module.exports = JSON.parse('{"name":"@rive-app/webgl","version":"2.23.4","description":"Rive\'s webgl 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.wasm","rive_fallback.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
|
|
4065
4065
|
|
|
4066
4066
|
/***/ }),
|
|
4067
4067
|
/* 3 */
|
|
@@ -7001,7 +7001,7 @@ var Rive = /** @class */ (function () {
|
|
|
7001
7001
|
/**
|
|
7002
7002
|
* The width of the artboard.
|
|
7003
7003
|
*
|
|
7004
|
-
* This will return
|
|
7004
|
+
* This will return 0 if the artboard is not loaded yet and a custom
|
|
7005
7005
|
* width has not been set.
|
|
7006
7006
|
*
|
|
7007
7007
|
* Do not set this value manually when using {@link resizeDrawingSurfaceToCanvas}
|
|
@@ -7009,10 +7009,11 @@ var Rive = /** @class */ (function () {
|
|
|
7009
7009
|
* automatically set.
|
|
7010
7010
|
*/
|
|
7011
7011
|
get: function () {
|
|
7012
|
+
var _a;
|
|
7012
7013
|
if (this.artboard) {
|
|
7013
7014
|
return this.artboard.width;
|
|
7014
7015
|
}
|
|
7015
|
-
return this._artboardWidth;
|
|
7016
|
+
return (_a = this._artboardWidth) !== null && _a !== void 0 ? _a : 0;
|
|
7016
7017
|
},
|
|
7017
7018
|
set: function (value) {
|
|
7018
7019
|
this._artboardWidth = value;
|
|
@@ -7027,7 +7028,7 @@ var Rive = /** @class */ (function () {
|
|
|
7027
7028
|
/**
|
|
7028
7029
|
* The height of the artboard.
|
|
7029
7030
|
*
|
|
7030
|
-
* This will return
|
|
7031
|
+
* This will return 0 if the artboard is not loaded yet and a custom
|
|
7031
7032
|
* height has not been set.
|
|
7032
7033
|
*
|
|
7033
7034
|
* Do not set this value manually when using {@link resizeDrawingSurfaceToCanvas}
|
|
@@ -7035,10 +7036,11 @@ var Rive = /** @class */ (function () {
|
|
|
7035
7036
|
* automatically set.
|
|
7036
7037
|
*/
|
|
7037
7038
|
get: function () {
|
|
7039
|
+
var _a;
|
|
7038
7040
|
if (this.artboard) {
|
|
7039
7041
|
return this.artboard.height;
|
|
7040
7042
|
}
|
|
7041
|
-
return this._artboardHeight;
|
|
7043
|
+
return (_a = this._artboardHeight) !== null && _a !== void 0 ? _a : 0;
|
|
7042
7044
|
},
|
|
7043
7045
|
set: function (value) {
|
|
7044
7046
|
this._artboardHeight = value;
|