@galacean/effects-core 1.4.0 → 1.4.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.
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * Description: Galacean Effects runtime core for the web
4
4
  * Author: Ant Group CO., Ltd.
5
5
  * Contributors: 燃然,飂兮,十弦,云垣,茂安,意绮
6
- * Version: v1.4.0
6
+ * Version: v1.4.2
7
7
  */
8
8
 
9
9
  'use strict';
@@ -8197,19 +8197,19 @@ var BezierCurvePath = /** @class */ (function (_super) {
8197
8197
  var perc = 0, point = new Vector3();
8198
8198
  var keyTimeData = Object.keys(this.curveSegments);
8199
8199
  if (!keyTimeData.length) {
8200
- return point.toArray();
8200
+ return point;
8201
8201
  }
8202
8202
  var keyTimeStart = Number(keyTimeData[0].split('&')[0]);
8203
8203
  var keyTimeEnd = Number(keyTimeData[keyTimeData.length - 1].split('&')[1]);
8204
8204
  if (t <= keyTimeStart) {
8205
8205
  var pathCurve = this.curveSegments[keyTimeData[0]].pathCurve;
8206
8206
  point = pathCurve.getPointInPercent(0);
8207
- return point.toArray();
8207
+ return point;
8208
8208
  }
8209
8209
  if (t >= keyTimeEnd) {
8210
8210
  var pathCurve = this.curveSegments[keyTimeData[keyTimeData.length - 1]].pathCurve;
8211
8211
  point = pathCurve.getPointInPercent(1);
8212
- return point.toArray();
8212
+ return point;
8213
8213
  }
8214
8214
  for (var i = 0; i < keyTimeData.length; i++) {
8215
8215
  var _a = __read$3(keyTimeData[i].split('&'), 2), xMin = _a[0], xMax = _a[1];
@@ -8219,7 +8219,7 @@ var BezierCurvePath = /** @class */ (function (_super) {
8219
8219
  point = bezierPath.getPointInPercent(perc);
8220
8220
  }
8221
8221
  }
8222
- return point.toArray();
8222
+ return point;
8223
8223
  };
8224
8224
  BezierCurvePath.prototype.getPercValue = function (curveKey, time) {
8225
8225
  var curveInfo = this.curveSegments[curveKey];
@@ -8277,7 +8277,7 @@ var map$1 = (_a$4 = {},
8277
8277
  },
8278
8278
  _a$4[ValueType$1.BEZIER_CURVE_PATH] = function (props) {
8279
8279
  if (props[0].length === 1) {
8280
- return new StaticValue(new Vector3(props[0][0][1][1], props[1][0][1][1], props[2][0][1][1]));
8280
+ return new StaticValue(new (Vector3.bind.apply(Vector3, __spreadArray$2([void 0], __read$3(props[1][0]), false)))());
8281
8281
  }
8282
8282
  return new BezierCurvePath(props);
8283
8283
  },
@@ -9940,9 +9940,7 @@ var CameraController = /** @class */ (function () {
9940
9940
  position.z += translateOverLifetime.z.getValue(lifetime);
9941
9941
  if (translateOverLifetime.path) {
9942
9942
  var val = translateOverLifetime.path.getValue(lifetime);
9943
- position.x += val[0];
9944
- position.y += val[1];
9945
- position.z += val[2];
9943
+ position.add(val);
9946
9944
  }
9947
9945
  }
9948
9946
  if (rotationOverLifetime) {