@galacean/effects-core 2.1.4 → 2.1.5

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: v2.1.4
6
+ * Version: v2.1.5
7
7
  */
8
8
 
9
9
  'use strict';
@@ -23308,7 +23308,7 @@ var RuntimeClip = /*#__PURE__*/ function() {
23308
23308
  this.playable.play();
23309
23309
  }
23310
23310
  this.parentMixer.setInputWeight(this.playable, weight);
23311
- var clipTime = clip.toLocalTime(localTime);
23311
+ var clipTime = parseFloat(clip.toLocalTime(localTime).toFixed(3));
23312
23312
  this.playable.setTime(clipTime);
23313
23313
  // 判断动画是否结束
23314
23314
  if (ended) {
@@ -28908,7 +28908,7 @@ var LateUpdateTickData = /*#__PURE__*/ function(TickData) {
28908
28908
  if (!this.assigned || this.paused) {
28909
28909
  return;
28910
28910
  }
28911
- var dt = this.getUpdateTime(deltaTime * this.speed);
28911
+ var dt = parseFloat(this.getUpdateTime(deltaTime * this.speed).toFixed(0));
28912
28912
  this.updateRootComposition(dt / 1000);
28913
28913
  this.updateVideo();
28914
28914
  // 更新 model-tree-plugin
@@ -31385,7 +31385,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem, true);
31385
31385
  registerPlugin("particle", ParticleLoader, exports.VFXItem, true);
31386
31386
  registerPlugin("cal", CalculateLoader, exports.VFXItem, true);
31387
31387
  registerPlugin("interact", InteractLoader, exports.VFXItem, true);
31388
- var version = "2.1.4";
31388
+ var version = "2.1.5";
31389
31389
  logger.info("Core version: " + version + ".");
31390
31390
 
31391
31391
  exports.AbstractPlugin = AbstractPlugin;