From 20c972a9f0a3abfc260b37c080c40a15d6ebeba6 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期四, 10 四月 2025 16:28:19 +0800 Subject: [PATCH] Merge branch 'master' of ssh://114.215.109.124:29418/underway-vue --- src/utils/map/animation.js | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/utils/map/animation.js b/src/utils/map/animation.js index 6ac8216..4180e7d 100644 --- a/src/utils/map/animation.js +++ b/src/utils/map/animation.js @@ -83,7 +83,7 @@ if (i == endIndex || i == factorDatas.length() - 1) { break; } - // 鍔ㄧ敾杞ㄨ抗 + // 鍔ㄧ敾杞ㄨ抗锛堝凡缁樺埗閮ㄥ垎锛� var animationData = factorDatas.getByIndex(0, i + 1); // 璺緞鐐� @@ -105,14 +105,14 @@ var d = distance / count; // 姣忎釜fps瀵瑰簲鐨勫疄闄呮椂闀�(榛樿1绉�) var t = 1; - // 涓ょ偣闂翠笉杩炵画鏃� + // 涓ょ偣闂翠笉杩炵画鏃讹紝浣跨敤榛樿鏃堕暱锛岄伩鍏� if (distance > this.maxD) { - count = 4 * this._fps; + count = this.frameAnimation.taskPeriod * this._fps; d = distance / count; t = duration / (count / this._fps); } - // 鐩戞祴鏁版嵁 + // 鐩戞祴鏁版嵁锛堝緟缁樺埗鏁版嵁鐐癸紝鍦ㄥ凡缁樺埗閮ㄥ垎鍜岃鏁版嵁鐐逛箣闂达紝鎻掑叆鍔ㄧ敾甯ф暟鎹偣锛� // var fData1 = factorDatas.getByIndex(i, i + 1) var fData2 = factorDatas.getByIndex(i + 1, i + 2); @@ -135,7 +135,7 @@ } animationData.times.push(time); } - // factor + // 缁欐瘡涓洃娴嬪洜瀛愯繘琛屾彃甯� for (const key in animationData.factor) { var factor = animationData.factor[key]; factor.insertFrame(fData2.factor[key], count, distance <= this.maxD); -- Gitblit v1.9.3