From b399d0e41b3b46d67904852fbee1e5e7f93c3674 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E5=A4=A7=E8=83=86?= <1101282782@qq.com> Date: Fri, 19 Dec 2025 12:03:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Obj/Analysis/Submerge/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Obj/Analysis/Submerge/index.js b/src/Obj/Analysis/Submerge/index.js index 6c09863..49a7caf 100644 --- a/src/Obj/Analysis/Submerge/index.js +++ b/src/Obj/Analysis/Submerge/index.js @@ -271,8 +271,10 @@ class Submerge extends Tools { that.options.waterVolume = Math.floor(value * 10000) / 10000; if (that.area) { + that.waterLevel = Number((that.options.waterVolume / that.area).toFixed(4)) - that.options.maxWaterLevel = that.options.minWaterLevel + that.waterLevel + console.log(that.options.minWaterLevel, that.options.minWaterLevel, 'klklklkl') + that.options.maxWaterLevel = Math.floor((that.options.minWaterLevel) * 10000) / 10000 + Math.floor((that.options.minWaterLevel) * 10000) / 10000 } } });