@eva/plugin-renderer-lottie 1.2.7-editor.7 → 1.2.8-fix.1
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/dist/EVA.plugin.renderer.lottie.js +2 -124
- package/dist/EVA.plugin.renderer.lottie.min.js +1 -1
- package/dist/plugin-renderer-lottie.cjs.js +1 -10
- package/dist/plugin-renderer-lottie.cjs.prod.js +3 -3
- package/dist/plugin-renderer-lottie.d.ts +0 -1
- package/dist/plugin-renderer-lottie.esm.js +0 -9
- package/package.json +3 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
2
2
|
|
|
3
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps);
|
|
3
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
4
4
|
|
|
5
5
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
6
6
|
|
|
@@ -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 (
|
|
25
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
|
|
@@ -30,8 +30,6 @@ 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
|
-
|
|
35
33
|
_extendStatics(d, b);
|
|
36
34
|
|
|
37
35
|
function __() {
|
|
@@ -80,10 +78,6 @@ var _EVA_IIFE_lottie = function (exports, eva_js, pluginRenderer, pixi_js) {
|
|
|
80
78
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
81
79
|
}
|
|
82
80
|
|
|
83
|
-
function __metadata(metadataKey, metadataValue) {
|
|
84
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
81
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
88
82
|
function adopt(value) {
|
|
89
83
|
return value instanceof P ? value : new P(function (resolve) {
|
|
@@ -5335,117 +5329,6 @@ var _EVA_IIFE_lottie = function (exports, eva_js, pluginRenderer, pixi_js) {
|
|
|
5335
5329
|
|
|
5336
5330
|
var LottieSystem$1 = LottieSystem;
|
|
5337
5331
|
|
|
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
|
-
|
|
5449
5332
|
var Lottie = function (_super) {
|
|
5450
5333
|
__extends(Lottie, _super);
|
|
5451
5334
|
|
|
@@ -5586,11 +5469,6 @@ var _EVA_IIFE_lottie = function (exports, eva_js, pluginRenderer, pixi_js) {
|
|
|
5586
5469
|
};
|
|
5587
5470
|
|
|
5588
5471
|
Lottie.componentName = 'Lottie';
|
|
5589
|
-
|
|
5590
|
-
__decorate([Field({
|
|
5591
|
-
type: 'resource'
|
|
5592
|
-
}), __metadata("design:type", String)], Lottie.prototype, "resource", void 0);
|
|
5593
|
-
|
|
5594
5472
|
return Lottie;
|
|
5595
5473
|
}(eva_js.Component);
|
|
5596
5474
|
|