@eva/plugin-renderer-lottie 1.1.1-fix.1 → 1.1.1-fix.2

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.
@@ -0,0 +1,6 @@
1
+ import "@eva/eva.js";
2
+ declare module "@eva/eva.js" {
3
+ export enum RESOURCE_TYPE {
4
+ 'LOTTIE' = 'LOTTIE'
5
+ }
6
+ }
@@ -7,7 +7,7 @@ var pluginRenderer = require('@eva/plugin-renderer');
7
7
  var pixi_js = require('pixi.js');
8
8
  var iOSVersion = require('ios-version');
9
9
 
10
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
10
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e['default'] : e; }
11
11
 
12
12
  var iOSVersion__default = /*#__PURE__*/_interopDefaultLegacy(iOSVersion);
13
13
 
@@ -5077,7 +5077,7 @@ var LottieSystem = (function (_super) {
5077
5077
  return _this;
5078
5078
  }
5079
5079
  LottieSystem.prototype.init = function () {
5080
- this.renderSystem = this.game.systems.find(function (s) { return s.application; });
5080
+ this.renderSystem = this.game.getSystem('Renderer');
5081
5081
  this.app = this.renderSystem.application;
5082
5082
  };
5083
5083
  LottieSystem.prototype.componentChanged = function (changed) {
@@ -5134,7 +5134,7 @@ var LottieSystem = (function (_super) {
5134
5134
  var container = this.renderSystem.containerManager.getContainer(changed.gameObject.id);
5135
5135
  if (container) {
5136
5136
  container.removeChild(component.anim.group);
5137
- component.anim.group.destory(true);
5137
+ component.anim.destroy();
5138
5138
  }
5139
5139
  component.anim = null;
5140
5140
  };
@@ -5239,12 +5239,11 @@ var Lottie = (function (_super) {
5239
5239
  });
5240
5240
  };
5241
5241
  Lottie.componentName = 'Lottie';
5242
- __decorate([
5243
- eva_js.decorators.IDEProp
5244
- ], Lottie.prototype, "slot", void 0);
5245
5242
  return Lottie;
5246
5243
  }(eva_js.Component));
5247
5244
  var Lottie$1 = Lottie;
5248
5245
 
5246
+ eva_js.resource.registerResourceType('LOTTIE');
5247
+
5249
5248
  exports.Lottie = Lottie$1;
5250
5249
  exports.LottieSystem = LottieSystem$1;