@galacean/effects-specification 1.0.0 → 1.1.0-alpha.0

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/fallback.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  * Name: @galacean/effects-specification
3
3
  * Description: Galacean Effects JSON Specification
4
4
  * Author: Ant Group CO., Ltd.
5
- * Version: v1.0.0
5
+ * Version: v1.1.0-alpha.0
6
6
  */
7
7
 
8
8
  /*********************************************/
@@ -381,6 +381,16 @@ var CompositionEndBehavior;
381
381
  CompositionEndBehavior[CompositionEndBehavior["pause_destroy"] = END_BEHAVIOR_PAUSE_AND_DESTROY] = "pause_destroy";
382
382
  })(CompositionEndBehavior || (CompositionEndBehavior = {}));
383
383
 
384
+ /**
385
+ * 动态换图类型
386
+ * @since 1.3.0
387
+ */
388
+ var BackgroundType;
389
+ (function (BackgroundType) {
390
+ BackgroundType["video"] = "video";
391
+ BackgroundType["image"] = "image";
392
+ })(BackgroundType || (BackgroundType = {}));
393
+
384
394
  /*********************************************/
385
395
  /* 基本数值属性参数 */
386
396
  /*********************************************/
@@ -877,9 +887,9 @@ function ensureFixedVec3(a) {
877
887
  function objectValueToNumber(o) {
878
888
  var e_1, _a;
879
889
  try {
880
- for (var _b = __values(Object.entries(o)), _c = _b.next(); !_c.done; _c = _b.next()) {
881
- var _d = __read(_c.value, 2), key = _d[0], value = _d[1];
882
- o[key] = Number(value);
890
+ for (var _b = __values(Object.keys(o)), _c = _b.next(); !_c.done; _c = _b.next()) {
891
+ var key = _c.value;
892
+ o[key] = Number(o[key]);
883
893
  }
884
894
  }
885
895
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
@@ -1465,11 +1475,9 @@ function getStandardImage(image, index, imageTags) {
1465
1475
  else if (image.url) {
1466
1476
  return {
1467
1477
  url: image.url,
1468
- type: image.type,
1469
1478
  webp: image.webp,
1470
1479
  renderLevel: renderLevel,
1471
1480
  oriY: oriY,
1472
- loop: image.loop,
1473
1481
  };
1474
1482
  }
1475
1483
  else if (image && image.sourceType) {