@eva/plugin-renderer-lottie 1.2.7-editor.6 → 1.2.7-editor.7

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.
@@ -22,7 +22,7 @@ var _EVA_IIFE_lottie = function (exports, eva_js, pluginRenderer, pixi_js) {
22
22
  d.__proto__ = b;
23
23
  } || function (d, b) {
24
24
  for (var p in b) {
25
- if (b.hasOwnProperty(p)) d[p] = b[p];
25
+ if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
26
26
  }
27
27
  };
28
28
 
@@ -30,6 +30,8 @@ var _EVA_IIFE_lottie = function (exports, eva_js, pluginRenderer, pixi_js) {
30
30
  };
31
31
 
32
32
  function __extends(d, b) {
33
+ if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
34
+
33
35
  _extendStatics(d, b);
34
36
 
35
37
  function __() {
@@ -78,6 +80,10 @@ var _EVA_IIFE_lottie = function (exports, eva_js, pluginRenderer, pixi_js) {
78
80
  return c > 3 && r && Object.defineProperty(target, key, r), r;
79
81
  }
80
82
 
83
+ function __metadata(metadataKey, metadataValue) {
84
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
85
+ }
86
+
81
87
  function __awaiter(thisArg, _arguments, P, generator) {
82
88
  function adopt(value) {
83
89
  return value instanceof P ? value : new P(function (resolve) {
@@ -5329,6 +5335,117 @@ var _EVA_IIFE_lottie = function (exports, eva_js, pluginRenderer, pixi_js) {
5329
5335
 
5330
5336
  var LottieSystem$1 = LottieSystem;
5331
5337
 
5338
+ var SymbolKeysNotSupportedError = function (_super) {
5339
+ __extends(SymbolKeysNotSupportedError, _super);
5340
+
5341
+ function SymbolKeysNotSupportedError() {
5342
+ var _newTarget = this.constructor;
5343
+
5344
+ var _this = _super.call(this, 'Symbol keys are not supported yet!') || this;
5345
+
5346
+ Object.setPrototypeOf(_this, _newTarget.prototype);
5347
+ return _this;
5348
+ }
5349
+
5350
+ return SymbolKeysNotSupportedError;
5351
+ }(Error);
5352
+
5353
+ (function (_super) {
5354
+ __extends(StaticGetPropertiesIsNotAFunctionError, _super);
5355
+
5356
+ function StaticGetPropertiesIsNotAFunctionError() {
5357
+ var _newTarget = this.constructor;
5358
+
5359
+ var _this = _super.call(this, 'getProperties is not a function!') || this;
5360
+
5361
+ Object.setPrototypeOf(_this, _newTarget.prototype);
5362
+ return _this;
5363
+ }
5364
+
5365
+ return StaticGetPropertiesIsNotAFunctionError;
5366
+ })(Error);
5367
+
5368
+ var IDE_PROPERTY_METADATA = 'IDE_PROPERTY_METADATA';
5369
+
5370
+ function transformBasicType(type) {
5371
+ if (type === String) {
5372
+ return 'string';
5373
+ }
5374
+
5375
+ if (type === Number) {
5376
+ return 'number';
5377
+ }
5378
+
5379
+ if (type === Boolean) {
5380
+ return 'boolean';
5381
+ }
5382
+
5383
+ return 'unknown';
5384
+ }
5385
+
5386
+ function defineTypes(target, key, options, returnTypeFunction) {
5387
+ var type = Reflect.getMetadata('design:type', target, key);
5388
+ var isArray = type === Array;
5389
+ var str = transformBasicType(type);
5390
+
5391
+ if (str !== 'unknown') {
5392
+ type = str;
5393
+ }
5394
+
5395
+ if (returnTypeFunction) {
5396
+ var returnType = returnTypeFunction();
5397
+
5398
+ if (Array.isArray(returnType)) {
5399
+ isArray = true;
5400
+ type = returnType[0];
5401
+ } else {
5402
+ type = returnType;
5403
+ }
5404
+ }
5405
+
5406
+ var properties = Reflect.getMetadata(IDE_PROPERTY_METADATA, target.constructor) || {};
5407
+ properties[key] = _assign({
5408
+ type: type,
5409
+ isArray: isArray
5410
+ }, options);
5411
+ Reflect.defineMetadata(IDE_PROPERTY_METADATA, properties, target.constructor);
5412
+ }
5413
+
5414
+ function getTypeDecoratorParams(returnTypeFuncOrOptions, maybeOptions) {
5415
+ if (typeof returnTypeFuncOrOptions === 'function') {
5416
+ return {
5417
+ returnTypeFunc: returnTypeFuncOrOptions,
5418
+ options: maybeOptions || {}
5419
+ };
5420
+ }
5421
+
5422
+ return {
5423
+ options: returnTypeFuncOrOptions || {}
5424
+ };
5425
+ }
5426
+
5427
+ function Field(returnTypeFunction, maybeOptions) {
5428
+ return function (target, propertyKey) {
5429
+ if (typeof propertyKey === 'symbol') {
5430
+ throw new SymbolKeysNotSupportedError();
5431
+ }
5432
+
5433
+ var _a = getTypeDecoratorParams(returnTypeFunction, maybeOptions),
5434
+ options = _a.options,
5435
+ returnTypeFunc = _a.returnTypeFunc;
5436
+
5437
+ defineTypes(target, propertyKey, options, returnTypeFunc);
5438
+ };
5439
+ }
5440
+
5441
+ var ExecuteMode;
5442
+
5443
+ (function (ExecuteMode) {
5444
+ ExecuteMode[ExecuteMode["Edit"] = 2] = "Edit";
5445
+ ExecuteMode[ExecuteMode["Game"] = 4] = "Game";
5446
+ ExecuteMode[ExecuteMode["All"] = 6] = "All";
5447
+ })(ExecuteMode || (ExecuteMode = {}));
5448
+
5332
5449
  var Lottie = function (_super) {
5333
5450
  __extends(Lottie, _super);
5334
5451
 
@@ -5469,6 +5586,11 @@ var _EVA_IIFE_lottie = function (exports, eva_js, pluginRenderer, pixi_js) {
5469
5586
  };
5470
5587
 
5471
5588
  Lottie.componentName = 'Lottie';
5589
+
5590
+ __decorate([Field({
5591
+ type: 'resource'
5592
+ }), __metadata("design:type", String)], Lottie.prototype, "resource", void 0);
5593
+
5472
5594
  return Lottie;
5473
5595
  }(eva_js.Component);
5474
5596