@rive-app/canvas-lite 2.23.2 → 2.23.3
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 +7 -5
- 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
|
@@ -2269,7 +2269,7 @@ Qc();
|
|
|
2269
2269
|
/* 2 */
|
|
2270
2270
|
/***/ ((module) => {
|
|
2271
2271
|
|
|
2272
|
-
module.exports = JSON.parse('{"name":"@rive-app/canvas-lite","version":"2.23.
|
|
2272
|
+
module.exports = JSON.parse('{"name":"@rive-app/canvas-lite","version":"2.23.3","description":"A lite version of 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}}');
|
|
2273
2273
|
|
|
2274
2274
|
/***/ }),
|
|
2275
2275
|
/* 3 */
|
|
@@ -5209,7 +5209,7 @@ var Rive = /** @class */ (function () {
|
|
|
5209
5209
|
/**
|
|
5210
5210
|
* The width of the artboard.
|
|
5211
5211
|
*
|
|
5212
|
-
* This will return
|
|
5212
|
+
* This will return 0 if the artboard is not loaded yet and a custom
|
|
5213
5213
|
* width has not been set.
|
|
5214
5214
|
*
|
|
5215
5215
|
* Do not set this value manually when using {@link resizeDrawingSurfaceToCanvas}
|
|
@@ -5217,10 +5217,11 @@ var Rive = /** @class */ (function () {
|
|
|
5217
5217
|
* automatically set.
|
|
5218
5218
|
*/
|
|
5219
5219
|
get: function () {
|
|
5220
|
+
var _a;
|
|
5220
5221
|
if (this.artboard) {
|
|
5221
5222
|
return this.artboard.width;
|
|
5222
5223
|
}
|
|
5223
|
-
return this._artboardWidth;
|
|
5224
|
+
return (_a = this._artboardWidth) !== null && _a !== void 0 ? _a : 0;
|
|
5224
5225
|
},
|
|
5225
5226
|
set: function (value) {
|
|
5226
5227
|
this._artboardWidth = value;
|
|
@@ -5235,7 +5236,7 @@ var Rive = /** @class */ (function () {
|
|
|
5235
5236
|
/**
|
|
5236
5237
|
* The height of the artboard.
|
|
5237
5238
|
*
|
|
5238
|
-
* This will return
|
|
5239
|
+
* This will return 0 if the artboard is not loaded yet and a custom
|
|
5239
5240
|
* height has not been set.
|
|
5240
5241
|
*
|
|
5241
5242
|
* Do not set this value manually when using {@link resizeDrawingSurfaceToCanvas}
|
|
@@ -5243,10 +5244,11 @@ var Rive = /** @class */ (function () {
|
|
|
5243
5244
|
* automatically set.
|
|
5244
5245
|
*/
|
|
5245
5246
|
get: function () {
|
|
5247
|
+
var _a;
|
|
5246
5248
|
if (this.artboard) {
|
|
5247
5249
|
return this.artboard.height;
|
|
5248
5250
|
}
|
|
5249
|
-
return this._artboardHeight;
|
|
5251
|
+
return (_a = this._artboardHeight) !== null && _a !== void 0 ? _a : 0;
|
|
5250
5252
|
},
|
|
5251
5253
|
set: function (value) {
|
|
5252
5254
|
this._artboardHeight = value;
|