@galacean/effects-core 2.5.1 → 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.
@@ -216,7 +216,6 @@ export declare class Composition extends EventEmitter<CompositionEvent<Compositi
216
216
  */
217
217
  postProcessingEnabled: boolean;
218
218
  protected rendererOptions: MeshRendererOptions | null;
219
- protected assigned: boolean;
220
219
  /**
221
220
  * 销毁状态位
222
221
  */
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: v2.5.1
6
+ * Version: v2.5.3
7
7
  */
8
8
 
9
9
  'use strict';
@@ -14290,7 +14290,11 @@ function buildEasingCurve(leftKeyframe, rightKeyframe) {
14290
14290
  if (BezierMap[str]) {
14291
14291
  bezEasing = BezierMap[str];
14292
14292
  } else {
14293
- bezEasing = new BezierEasing(x1, y1, x2, y2);
14293
+ if (decimalEqual(valueInterval, 0)) {
14294
+ bezEasing = new BezierEasing();
14295
+ } else {
14296
+ bezEasing = new BezierEasing(x1, y1, x2, y2);
14297
+ }
14294
14298
  BezierMap[str] = bezEasing;
14295
14299
  }
14296
14300
  return {
@@ -21432,8 +21436,6 @@ var LateUpdateTickData = /*#__PURE__*/ function(TickData) {
21432
21436
  /**
21433
21437
  * 是否开启后处理
21434
21438
  */ _this.postProcessingEnabled = false;
21435
- // TODO: 待优化
21436
- _this.assigned = false;
21437
21439
  /**
21438
21440
  * 销毁状态位
21439
21441
  */ _this.destroyed = false;
@@ -21499,7 +21501,6 @@ var LateUpdateTickData = /*#__PURE__*/ function(TickData) {
21499
21501
  aspect: width / height
21500
21502
  }));
21501
21503
  _this.url = scene.url;
21502
- _this.assigned = true;
21503
21504
  _this.interactive = true;
21504
21505
  _this.handleItemMessage = handleItemMessage;
21505
21506
  _this.createRenderFrame();
@@ -21671,7 +21672,7 @@ var LateUpdateTickData = /*#__PURE__*/ function(TickData) {
21671
21672
  * 合成更新,针对所有 item 的更新
21672
21673
  * @param deltaTime - 更新的时间步长
21673
21674
  */ _proto.update = function update(deltaTime) {
21674
- if (!this.assigned || this.getPaused()) {
21675
+ if (this.getPaused()) {
21675
21676
  return;
21676
21677
  }
21677
21678
  // scene VFXItem components lifetime function.
@@ -28575,7 +28576,7 @@ function getStandardSpriteContent(sprite, transform) {
28575
28576
  return ret;
28576
28577
  }
28577
28578
 
28578
- var version$1 = "2.5.1";
28579
+ var version$1 = "2.5.3";
28579
28580
  var v0 = /^(\d+)\.(\d+)\.(\d+)(-(\w+)\.\d+)?$/;
28580
28581
  var standardVersion = /^(\d+)\.(\d+)$/;
28581
28582
  var reverseParticle = false;
@@ -31825,7 +31826,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem);
31825
31826
  registerPlugin("particle", ParticleLoader, exports.VFXItem);
31826
31827
  registerPlugin("cal", CalculateLoader, exports.VFXItem);
31827
31828
  registerPlugin("interact", InteractLoader, exports.VFXItem);
31828
- var version = "2.5.1";
31829
+ var version = "2.5.3";
31829
31830
  logger.info("Core version: " + version + ".");
31830
31831
 
31831
31832
  exports.AbstractPlugin = AbstractPlugin;