This commit is contained in:
2025-12-10 17:28:30 +08:00
parent f8df4b73e4
commit 57ff9ca49f

View File

@ -33,7 +33,7 @@ class Submerge extends Tools {
// Submerge.create(this)
}
static create(that) {
static create(that, func) {
that.Draw.start((a, positions) => {
if (!positions || positions.length < 3) {
let _error = '至少需要三个坐标!'
@ -100,7 +100,7 @@ class Submerge extends Tools {
that.waterLevel = that.options.maxWaterLevel - that.options.minWaterLevel
that.options.waterVolume = Number((that.waterLevel * that.area).toFixed(4))
func && func(that.options.waterVolume)
that.clickCallBack(that.area, that._positions)
// let contentElm = that._DialogObject._element.body
// let pauseBtn = contentElm.getElementsByClassName('pause')[0];
@ -111,8 +111,8 @@ class Submerge extends Tools {
// Submerge.EditBox(that)
})
}
draw() {
Submerge.create(this)
draw(func) {
Submerge.create(this, func)
}
static async EditBox(that) {