From 1154dcfb9d9aee5b8c2d4f025688e90ea6fb6dd6 Mon Sep 17 00:00:00 2001
From: wangjuncheng <1>
Date: 星期二, 08 七月 2025 10:17:12 +0800
Subject: [PATCH] 更新sdk

---
 src/utils/water.js |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/utils/water.js b/src/utils/water.js
index 4338630..2884c4b 100644
--- a/src/utils/water.js
+++ b/src/utils/water.js
@@ -80,7 +80,6 @@
   waterLegendData.value = waterHeightLevels;
   // console.log(waterLegendData.value, "鍥句緥鏁版嵁");
 
-
   water = await earthCtrl.simulate.createWaterSimulateLayer({
     baseUrl,
     interval,
@@ -94,6 +93,7 @@
   });
   enableWaterArrowFlow(false);
   toggleWaterShadow(false);
+
   // console.log(
   //   `浠跨湡妯℃嫙鍙傛暟锛氳姹傝矾寰� ${baseUrl}, 甯ч棿闂撮殧 ${interval}ms, 鏄惁寮�鍚笓棰樻覆鏌� ${colorRender}`
   // );
@@ -120,7 +120,7 @@
 /**
  * 鏇存崲姘撮�忔槑搴�
  */
-export function updateWaterColor(color,alpha) {
+export function updateWaterColor(color, alpha) {
   if (water) {
     water.color = Cesium.Color.fromCssColorString(color);
     water.alphaByDepth = alpha;
@@ -193,6 +193,10 @@
  * @param {boolean} enabled - 鏄惁鍚敤绠ご鍔ㄧ敾
  */
 export function enableWaterArrowFlow(enabled) {
+  water.clampMinHeight = 0; //鐩告満鐩稿浜庢按闈㈡渶灏忛珮搴�
+  water.clampMaxHeight = 1000; //鐩告満鐩稿浜庢按闈㈡渶澶ч珮搴�
+  water.offsetMinHeight = 0; //姘村亸绉绘渶灏忛珮搴�
+  water.offsetMaxHeight = 100; //姘村亸绉绘渶澶ч珮搴�
   if (water) {
     // 榛樿鍏抽棴鐘舵��
     water.flowEnabled = enabled; // 鍋囪 SDK 鏀寔姝ゅ睘鎬�

--
Gitblit v1.9.3