@galacean/effects-threejs 2.5.2 → 2.5.3

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 threejs plugin for the web
4
4
  * Author: Ant Group CO., Ltd.
5
5
  * Contributors: 燃然,飂兮,十弦,云垣,茂安,意绮
6
- * Version: v2.5.2
6
+ * Version: v2.5.3
7
7
  */
8
8
 
9
9
  'use strict';
@@ -14312,7 +14312,11 @@ function buildEasingCurve(leftKeyframe, rightKeyframe) {
14312
14312
  if (BezierMap[str]) {
14313
14313
  bezEasing = BezierMap[str];
14314
14314
  } else {
14315
- bezEasing = new BezierEasing(x1, y1, x2, y2);
14315
+ if (decimalEqual(valueInterval, 0)) {
14316
+ bezEasing = new BezierEasing();
14317
+ } else {
14318
+ bezEasing = new BezierEasing(x1, y1, x2, y2);
14319
+ }
14316
14320
  BezierMap[str] = bezEasing;
14317
14321
  }
14318
14322
  return {
@@ -21454,8 +21458,6 @@ var LateUpdateTickData = /*#__PURE__*/ function(TickData) {
21454
21458
  /**
21455
21459
  * 是否开启后处理
21456
21460
  */ _this.postProcessingEnabled = false;
21457
- // TODO: 待优化
21458
- _this.assigned = false;
21459
21461
  /**
21460
21462
  * 销毁状态位
21461
21463
  */ _this.destroyed = false;
@@ -21521,7 +21523,6 @@ var LateUpdateTickData = /*#__PURE__*/ function(TickData) {
21521
21523
  aspect: width / height
21522
21524
  }));
21523
21525
  _this.url = scene.url;
21524
- _this.assigned = true;
21525
21526
  _this.interactive = true;
21526
21527
  _this.handleItemMessage = handleItemMessage;
21527
21528
  _this.createRenderFrame();
@@ -21693,7 +21694,7 @@ var LateUpdateTickData = /*#__PURE__*/ function(TickData) {
21693
21694
  * 合成更新,针对所有 item 的更新
21694
21695
  * @param deltaTime - 更新的时间步长
21695
21696
  */ _proto.update = function update(deltaTime) {
21696
- if (!this.assigned || this.getPaused()) {
21697
+ if (this.getPaused()) {
21697
21698
  return;
21698
21699
  }
21699
21700
  // scene VFXItem components lifetime function.
@@ -28597,7 +28598,7 @@ function getStandardSpriteContent(sprite, transform) {
28597
28598
  return ret;
28598
28599
  }
28599
28600
 
28600
- var version$2 = "2.5.2";
28601
+ var version$2 = "2.5.3";
28601
28602
  var v0 = /^(\d+)\.(\d+)\.(\d+)(-(\w+)\.\d+)?$/;
28602
28603
  var standardVersion = /^(\d+)\.(\d+)$/;
28603
28604
  var reverseParticle = false;
@@ -31847,7 +31848,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem);
31847
31848
  registerPlugin("particle", ParticleLoader, exports.VFXItem);
31848
31849
  registerPlugin("cal", CalculateLoader, exports.VFXItem);
31849
31850
  registerPlugin("interact", InteractLoader, exports.VFXItem);
31850
- var version$1 = "2.5.2";
31851
+ var version$1 = "2.5.3";
31851
31852
  logger.info("Core version: " + version$1 + ".");
31852
31853
 
31853
31854
  var _obj;
@@ -33449,7 +33450,7 @@ setMaxSpriteMeshItemCount(8);
33449
33450
  */ Mesh.create = function(engine, props) {
33450
33451
  return new ThreeMesh(engine, props);
33451
33452
  };
33452
- var version = "2.5.2";
33453
+ var version = "2.5.3";
33453
33454
  logger.info("THREEJS plugin version: " + version + ".");
33454
33455
 
33455
33456
  exports.AbstractPlugin = AbstractPlugin;