@rive-app/canvas-lite 2.29.2 → 2.29.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 +2 -1
- package/rive.js +12 -2
- package/rive.js.map +1 -1
- package/rive.wasm +0 -0
- package/rive_advanced.mjs.d.ts +2 -1
- package/rive_fallback.wasm +0 -0
package/package.json
CHANGED
package/rive.d.ts
CHANGED
|
@@ -880,6 +880,7 @@ export declare class ViewModelInstanceList extends ViewModelInstanceValue {
|
|
|
880
880
|
constructor(instance: rc.ViewModelInstanceList, parent: ViewModelInstance);
|
|
881
881
|
get length(): number;
|
|
882
882
|
addInstance(instance: ViewModelInstance): void;
|
|
883
|
+
addInstanceAt(instance: ViewModelInstance, index: number): boolean;
|
|
883
884
|
removeInstance(instance: ViewModelInstance): void;
|
|
884
885
|
removeInstanceAt(index: number): void;
|
|
885
886
|
instanceAt(index: number): ViewModelInstance | null;
|
|
@@ -899,7 +900,7 @@ export declare class ViewModelInstanceColor extends ViewModelInstanceValue {
|
|
|
899
900
|
}
|
|
900
901
|
export declare class ViewModelInstanceAssetImage extends ViewModelInstanceValue {
|
|
901
902
|
constructor(instance: rc.ViewModelInstanceAssetImage, root: ViewModelInstance);
|
|
902
|
-
set value(image: rc.Image);
|
|
903
|
+
set value(image: rc.Image | null);
|
|
903
904
|
internalHandleCallback(callback: Function): void;
|
|
904
905
|
}
|
|
905
906
|
/**
|
package/rive.js
CHANGED
|
@@ -2272,7 +2272,7 @@ Qc();
|
|
|
2272
2272
|
/* 2 */
|
|
2273
2273
|
/***/ ((module) => {
|
|
2274
2274
|
|
|
2275
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/canvas-lite","version":"2.29.
|
|
2275
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/canvas-lite","version":"2.29.4","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}}');
|
|
2276
2276
|
|
|
2277
2277
|
/***/ }),
|
|
2278
2278
|
/* 3 */
|
|
@@ -6473,6 +6473,15 @@ var ViewModelInstanceList = /** @class */ (function (_super) {
|
|
|
6473
6473
|
instance.addParent(this._parentViewModel);
|
|
6474
6474
|
}
|
|
6475
6475
|
};
|
|
6476
|
+
ViewModelInstanceList.prototype.addInstanceAt = function (instance, index) {
|
|
6477
|
+
if (instance.runtimeInstance != null) {
|
|
6478
|
+
if (this._viewModelInstanceValue.addInstanceAt(instance.runtimeInstance, index)) {
|
|
6479
|
+
instance.addParent(this._parentViewModel);
|
|
6480
|
+
return true;
|
|
6481
|
+
}
|
|
6482
|
+
}
|
|
6483
|
+
return false;
|
|
6484
|
+
};
|
|
6476
6485
|
ViewModelInstanceList.prototype.removeInstance = function (instance) {
|
|
6477
6486
|
if (instance.runtimeInstance != null) {
|
|
6478
6487
|
this._viewModelInstanceValue.removeInstance(instance.runtimeInstance);
|
|
@@ -6544,7 +6553,8 @@ var ViewModelInstanceAssetImage = /** @class */ (function (_super) {
|
|
|
6544
6553
|
}
|
|
6545
6554
|
Object.defineProperty(ViewModelInstanceAssetImage.prototype, "value", {
|
|
6546
6555
|
set: function (image) {
|
|
6547
|
-
|
|
6556
|
+
var _a;
|
|
6557
|
+
this._viewModelInstanceValue.value((_a = image === null || image === void 0 ? void 0 : image.nativeImage) !== null && _a !== void 0 ? _a : null);
|
|
6548
6558
|
},
|
|
6549
6559
|
enumerable: false,
|
|
6550
6560
|
configurable: true
|