@rive-app/canvas 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
|
@@ -746,7 +746,7 @@ function Ya(a, b) {
|
|
|
746
746
|
return Xa(c, a, b);
|
|
747
747
|
}));
|
|
748
748
|
}
|
|
749
|
-
var Za, $a, db = {
|
|
749
|
+
var Za, $a, db = {442780:(a, b, c, d, e) => {
|
|
750
750
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
751
751
|
return 0;
|
|
752
752
|
}
|
|
@@ -809,9 +809,9 @@ var Za, $a, db = {441740:(a, b, c, d, e) => {
|
|
|
809
809
|
}
|
|
810
810
|
window.h.Aa += 1;
|
|
811
811
|
return 1;
|
|
812
|
-
},
|
|
812
|
+
}, 444958:() => {
|
|
813
813
|
"undefined" !== typeof window.h && (--window.h.Aa, 0 === window.h.Aa && delete window.h);
|
|
814
|
-
},
|
|
814
|
+
}, 445122:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 445226:() => {
|
|
815
815
|
try {
|
|
816
816
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
817
817
|
a.close();
|
|
@@ -819,7 +819,7 @@ var Za, $a, db = {441740:(a, b, c, d, e) => {
|
|
|
819
819
|
} catch (c) {
|
|
820
820
|
return 0;
|
|
821
821
|
}
|
|
822
|
-
},
|
|
822
|
+
}, 445397:(a, b, c, d, e, f) => {
|
|
823
823
|
if ("undefined" === typeof window.h) {
|
|
824
824
|
return -1;
|
|
825
825
|
}
|
|
@@ -865,7 +865,7 @@ var Za, $a, db = {441740:(a, b, c, d, e) => {
|
|
|
865
865
|
a == window.h.I.ya && g.Z.connect(g.J.destination);
|
|
866
866
|
g.pb = f;
|
|
867
867
|
return window.h.yc(g);
|
|
868
|
-
},
|
|
868
|
+
}, 448274:a => window.h.ra(a).J.sampleRate, 448347:a => {
|
|
869
869
|
a = window.h.ra(a);
|
|
870
870
|
void 0 !== a.Z && (a.Z.onaudioprocess = function() {
|
|
871
871
|
}, a.Z.disconnect(), a.Z = void 0);
|
|
@@ -873,13 +873,13 @@ var Za, $a, db = {441740:(a, b, c, d, e) => {
|
|
|
873
873
|
a.J.close();
|
|
874
874
|
a.J = void 0;
|
|
875
875
|
a.pb = void 0;
|
|
876
|
-
},
|
|
876
|
+
}, 448747:a => {
|
|
877
877
|
window.h.Cb(a);
|
|
878
|
-
},
|
|
878
|
+
}, 448797:a => {
|
|
879
879
|
a = window.h.ra(a);
|
|
880
880
|
a.J.resume();
|
|
881
881
|
a.state = window.h.ga.xb;
|
|
882
|
-
},
|
|
882
|
+
}, 448936:a => {
|
|
883
883
|
a = window.h.ra(a);
|
|
884
884
|
a.J.suspend();
|
|
885
885
|
a.state = window.h.ga.stopped;
|
|
@@ -3365,7 +3365,7 @@ $d();
|
|
|
3365
3365
|
/* 2 */
|
|
3366
3366
|
/***/ ((module) => {
|
|
3367
3367
|
|
|
3368
|
-
module.exports = JSON.parse('{"name":"@rive-app/canvas","version":"2.23.
|
|
3368
|
+
module.exports = JSON.parse('{"name":"@rive-app/canvas","version":"2.23.4","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"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
|
|
3369
3369
|
|
|
3370
3370
|
/***/ }),
|
|
3371
3371
|
/* 3 */
|
|
@@ -6305,7 +6305,7 @@ var Rive = /** @class */ (function () {
|
|
|
6305
6305
|
/**
|
|
6306
6306
|
* The width of the artboard.
|
|
6307
6307
|
*
|
|
6308
|
-
* This will return
|
|
6308
|
+
* This will return 0 if the artboard is not loaded yet and a custom
|
|
6309
6309
|
* width has not been set.
|
|
6310
6310
|
*
|
|
6311
6311
|
* Do not set this value manually when using {@link resizeDrawingSurfaceToCanvas}
|
|
@@ -6313,10 +6313,11 @@ var Rive = /** @class */ (function () {
|
|
|
6313
6313
|
* automatically set.
|
|
6314
6314
|
*/
|
|
6315
6315
|
get: function () {
|
|
6316
|
+
var _a;
|
|
6316
6317
|
if (this.artboard) {
|
|
6317
6318
|
return this.artboard.width;
|
|
6318
6319
|
}
|
|
6319
|
-
return this._artboardWidth;
|
|
6320
|
+
return (_a = this._artboardWidth) !== null && _a !== void 0 ? _a : 0;
|
|
6320
6321
|
},
|
|
6321
6322
|
set: function (value) {
|
|
6322
6323
|
this._artboardWidth = value;
|
|
@@ -6331,7 +6332,7 @@ var Rive = /** @class */ (function () {
|
|
|
6331
6332
|
/**
|
|
6332
6333
|
* The height of the artboard.
|
|
6333
6334
|
*
|
|
6334
|
-
* This will return
|
|
6335
|
+
* This will return 0 if the artboard is not loaded yet and a custom
|
|
6335
6336
|
* height has not been set.
|
|
6336
6337
|
*
|
|
6337
6338
|
* Do not set this value manually when using {@link resizeDrawingSurfaceToCanvas}
|
|
@@ -6339,10 +6340,11 @@ var Rive = /** @class */ (function () {
|
|
|
6339
6340
|
* automatically set.
|
|
6340
6341
|
*/
|
|
6341
6342
|
get: function () {
|
|
6343
|
+
var _a;
|
|
6342
6344
|
if (this.artboard) {
|
|
6343
6345
|
return this.artboard.height;
|
|
6344
6346
|
}
|
|
6345
|
-
return this._artboardHeight;
|
|
6347
|
+
return (_a = this._artboardHeight) !== null && _a !== void 0 ? _a : 0;
|
|
6346
6348
|
},
|
|
6347
6349
|
set: function (value) {
|
|
6348
6350
|
this._artboardHeight = value;
|