@rive-app/webgl2 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 +17 -15
- package/rive.js.map +1 -1
- package/rive.wasm +0 -0
- package/rive_advanced.mjs.d.ts +2 -2
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
|
@@ -423,7 +423,7 @@ function Oa(a, b) {
|
|
|
423
423
|
return Na(c, a, b);
|
|
424
424
|
}));
|
|
425
425
|
}
|
|
426
|
-
var Pa, Qa, Ua = {
|
|
426
|
+
var Pa, Qa, Ua = {490069:(a, b, c, d, e) => {
|
|
427
427
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
428
428
|
return 0;
|
|
429
429
|
}
|
|
@@ -486,9 +486,9 @@ var Pa, Qa, Ua = {488133:(a, b, c, d, e) => {
|
|
|
486
486
|
}
|
|
487
487
|
window.h.Da += 1;
|
|
488
488
|
return 1;
|
|
489
|
-
},
|
|
489
|
+
}, 492247:() => {
|
|
490
490
|
"undefined" !== typeof window.h && (--window.h.Da, 0 === window.h.Da && delete window.h);
|
|
491
|
-
},
|
|
491
|
+
}, 492411:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 492515:() => {
|
|
492
492
|
try {
|
|
493
493
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
494
494
|
a.close();
|
|
@@ -496,7 +496,7 @@ var Pa, Qa, Ua = {488133:(a, b, c, d, e) => {
|
|
|
496
496
|
} catch (c) {
|
|
497
497
|
return 0;
|
|
498
498
|
}
|
|
499
|
-
},
|
|
499
|
+
}, 492686:(a, b, c, d, e, f) => {
|
|
500
500
|
if ("undefined" === typeof window.h) {
|
|
501
501
|
return -1;
|
|
502
502
|
}
|
|
@@ -542,7 +542,7 @@ var Pa, Qa, Ua = {488133:(a, b, c, d, e) => {
|
|
|
542
542
|
a == window.h.I.Ba && g.Y.connect(g.J.destination);
|
|
543
543
|
g.jb = f;
|
|
544
544
|
return window.h.lc(g);
|
|
545
|
-
},
|
|
545
|
+
}, 495563:a => window.h.va(a).J.sampleRate, 495636:a => {
|
|
546
546
|
a = window.h.va(a);
|
|
547
547
|
void 0 !== a.Y && (a.Y.onaudioprocess = function() {
|
|
548
548
|
}, a.Y.disconnect(), a.Y = void 0);
|
|
@@ -550,13 +550,13 @@ var Pa, Qa, Ua = {488133:(a, b, c, d, e) => {
|
|
|
550
550
|
a.J.close();
|
|
551
551
|
a.J = void 0;
|
|
552
552
|
a.jb = void 0;
|
|
553
|
-
},
|
|
553
|
+
}, 496036:a => {
|
|
554
554
|
window.h.wb(a);
|
|
555
|
-
},
|
|
555
|
+
}, 496086:a => {
|
|
556
556
|
a = window.h.va(a);
|
|
557
557
|
a.J.resume();
|
|
558
558
|
a.state = window.h.ha.rb;
|
|
559
|
-
},
|
|
559
|
+
}, 496225:a => {
|
|
560
560
|
a = window.h.va(a);
|
|
561
561
|
a.J.suspend();
|
|
562
562
|
a.state = window.h.ha.stopped;
|
|
@@ -3467,8 +3467,8 @@ n.dynCall_viijii = (a, b, c, d, e, f, g) => (n.dynCall_viijii = z.dynCall_viijii
|
|
|
3467
3467
|
n.dynCall_iiiiij = (a, b, c, d, e, f, g) => (n.dynCall_iiiiij = z.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3468
3468
|
n.dynCall_iiiiijj = (a, b, c, d, e, f, g, m, p) => (n.dynCall_iiiiijj = z.dynCall_iiiiijj)(a, b, c, d, e, f, g, m, p);
|
|
3469
3469
|
n.dynCall_iiiiiijj = (a, b, c, d, e, f, g, m, p, l) => (n.dynCall_iiiiiijj = z.dynCall_iiiiiijj)(a, b, c, d, e, f, g, m, p, l);
|
|
3470
|
-
n.___start_em_js =
|
|
3471
|
-
n.___stop_em_js =
|
|
3470
|
+
n.___start_em_js = 487444;
|
|
3471
|
+
n.___stop_em_js = 490069;
|
|
3472
3472
|
var Xd;
|
|
3473
3473
|
Ha = function Yd() {
|
|
3474
3474
|
Xd || Zd();
|
|
@@ -3528,7 +3528,7 @@ Zd();
|
|
|
3528
3528
|
/* 2 */
|
|
3529
3529
|
/***/ ((module) => {
|
|
3530
3530
|
|
|
3531
|
-
module.exports = JSON.parse('{"name":"@rive-app/webgl2","version":"2.23.
|
|
3531
|
+
module.exports = JSON.parse('{"name":"@rive-app/webgl2","version":"2.23.4","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}}');
|
|
3532
3532
|
|
|
3533
3533
|
/***/ }),
|
|
3534
3534
|
/* 3 */
|
|
@@ -6468,7 +6468,7 @@ var Rive = /** @class */ (function () {
|
|
|
6468
6468
|
/**
|
|
6469
6469
|
* The width of the artboard.
|
|
6470
6470
|
*
|
|
6471
|
-
* This will return
|
|
6471
|
+
* This will return 0 if the artboard is not loaded yet and a custom
|
|
6472
6472
|
* width has not been set.
|
|
6473
6473
|
*
|
|
6474
6474
|
* Do not set this value manually when using {@link resizeDrawingSurfaceToCanvas}
|
|
@@ -6476,10 +6476,11 @@ var Rive = /** @class */ (function () {
|
|
|
6476
6476
|
* automatically set.
|
|
6477
6477
|
*/
|
|
6478
6478
|
get: function () {
|
|
6479
|
+
var _a;
|
|
6479
6480
|
if (this.artboard) {
|
|
6480
6481
|
return this.artboard.width;
|
|
6481
6482
|
}
|
|
6482
|
-
return this._artboardWidth;
|
|
6483
|
+
return (_a = this._artboardWidth) !== null && _a !== void 0 ? _a : 0;
|
|
6483
6484
|
},
|
|
6484
6485
|
set: function (value) {
|
|
6485
6486
|
this._artboardWidth = value;
|
|
@@ -6494,7 +6495,7 @@ var Rive = /** @class */ (function () {
|
|
|
6494
6495
|
/**
|
|
6495
6496
|
* The height of the artboard.
|
|
6496
6497
|
*
|
|
6497
|
-
* This will return
|
|
6498
|
+
* This will return 0 if the artboard is not loaded yet and a custom
|
|
6498
6499
|
* height has not been set.
|
|
6499
6500
|
*
|
|
6500
6501
|
* Do not set this value manually when using {@link resizeDrawingSurfaceToCanvas}
|
|
@@ -6502,10 +6503,11 @@ var Rive = /** @class */ (function () {
|
|
|
6502
6503
|
* automatically set.
|
|
6503
6504
|
*/
|
|
6504
6505
|
get: function () {
|
|
6506
|
+
var _a;
|
|
6505
6507
|
if (this.artboard) {
|
|
6506
6508
|
return this.artboard.height;
|
|
6507
6509
|
}
|
|
6508
|
-
return this._artboardHeight;
|
|
6510
|
+
return (_a = this._artboardHeight) !== null && _a !== void 0 ? _a : 0;
|
|
6509
6511
|
},
|
|
6510
6512
|
set: function (value) {
|
|
6511
6513
|
this._artboardHeight = value;
|