From f56800b5d9aceb95b4cec808f05f3dc29d4002d5 Mon Sep 17 00:00:00 2001 From: guonan <guonan201020@163.com> Date: 星期五, 16 五月 2025 16:21:33 +0800 Subject: [PATCH] Merge branch 'master' of http://103.135.160.14:9034/r/NslWeb --- src/utils/water.js | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/utils/water.js b/src/utils/water.js index 22723c3..fc1c05d 100644 --- a/src/utils/water.js +++ b/src/utils/water.js @@ -43,7 +43,7 @@ colorRender, // 鎺у埗鏄惁鍚敤棰滆壊娓叉煋 }); - console.log(`Water simulation started with baseUrl: ${baseUrl}, interval: ${interval}ms, colorRender: ${colorRender}`); + console.log(`浠跨湡妯℃嫙鍙傛暟锛� 璇锋眰璺緞 ${baseUrl}, 甯ч棿闂撮殧 ${interval}ms, 鏄惁寮�鍚笓棰樻覆鏌� ${colorRender}`); } /** * 鍒濆鍖栨按浣撴ā鎷熻鍥� @@ -62,7 +62,7 @@ }, }; viewer.scene.camera.flyTo(view); - console.log("Camera view initialized for water simulation."); + // console.log("Camera view initialized for water simulation."); } /** @@ -71,7 +71,7 @@ export function pauseWaterSimulation() { if (water) { water.pause(); - console.log("Water simulation paused."); + console.log("鏆傚仠浠跨湡"); } else { console.warn("No water simulation to pause."); } @@ -83,7 +83,7 @@ export function resumeWaterSimulation() { if (water) { water.resume(); - console.log("Water simulation resumed."); + console.log("缁х画浠跨湡"); } else { console.warn("No water simulation to resume."); } @@ -101,9 +101,8 @@ console.warn("No timestamps available for water simulation."); return; } - - const idx = Math.floor(Math.random() * imageList.length); - console.log(`Jumping to timestamp: count:[${imageList.length}], index:[${closestIndex}]`); + // const idx = Math.floor(Math.random() * imageList.length); //闅忔満绱㈠紩璺宠浆锛屽疄闄呬腑鐢ㄤ笉鍒帮紝鍙敤浣滄紨绀� + // console.log(`Jumping to timestamp: count:[${imageList.length}], index:[${closestIndex}]`); water.setTime(imageList[closestIndex]); } else { console.warn("No water simulation to set time for."); @@ -117,7 +116,7 @@ export function toggleWaterColorRender(enabled) { if (water) { water.colorRender = enabled; - console.log(`Water color render set to: ${enabled}`); + console.log(`鏄惁寮�鍚笓棰樻覆鏌� ${enabled}`); } else { console.warn("No water simulation to toggle color rendering."); } -- Gitblit v1.9.3