From 0b5231c1d5ec3af4e6f75d80da6ffe350567843d Mon Sep 17 00:00:00 2001 From: wangjuncheng <1> Date: 星期五, 23 五月 2025 13:53:38 +0800 Subject: [PATCH] change --- src/utils/water.js | 17 +++++++++++++---- 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/utils/water.js b/src/utils/water.js index fc1c05d..f288fc1 100644 --- a/src/utils/water.js +++ b/src/utils/water.js @@ -21,7 +21,11 @@ * @param {boolean} options.colorRender - 鏄惁鍚敤棰滆壊娓叉煋 */ export function createWaterPrimitive(options = {}) { - const { baseUrl = "/simu/c2h1dc", interval = 1000, colorRender = true } = options; + const { + baseUrl = "/simu/c2h1dc", + interval = 1000, + colorRender = true, + } = options; water = earthCtrl.simulate.createWaterSimulateLayer({ baseUrl, @@ -39,11 +43,14 @@ { height: 4.0, color: "#feb652" }, { height: 5.0, color: "#fd7f06" }, { height: 10.0, color: "#fe2b07" }, + { height: 30.0, color: "#4d0a08" }, ], colorRender, // 鎺у埗鏄惁鍚敤棰滆壊娓叉煋 }); - console.log(`浠跨湡妯℃嫙鍙傛暟锛� 璇锋眰璺緞 ${baseUrl}, 甯ч棿闂撮殧 ${interval}ms, 鏄惁寮�鍚笓棰樻覆鏌� ${colorRender}`); + console.log( + `浠跨湡妯℃嫙鍙傛暟锛� 璇锋眰璺緞 ${baseUrl}, 甯ч棿闂撮殧 ${interval}ms, 鏄惁寮�鍚笓棰樻覆鏌� ${colorRender}` + ); } /** * 鍒濆鍖栨按浣撴ā鎷熻鍥� @@ -102,7 +109,9 @@ return; } // const idx = Math.floor(Math.random() * imageList.length); //闅忔満绱㈠紩璺宠浆锛屽疄闄呬腑鐢ㄤ笉鍒帮紝鍙敤浣滄紨绀� - // console.log(`Jumping to timestamp: count:[${imageList.length}], index:[${closestIndex}]`); + console.log( + `Jumping to timestamp: count:[${imageList.length}], index:[${closestIndex}]` + ); water.setTime(imageList[closestIndex]); } else { console.warn("No water simulation to set time for."); @@ -128,4 +137,4 @@ */ function timeCallback(timeStamp) { // console.log(`Current timestamp: ${timeStamp}`); -} \ No newline at end of file +} -- Gitblit v1.9.3