修改tip提示语

This commit is contained in:
zh
2025-12-10 14:59:18 +08:00
parent 5b200529b5
commit 44d9ace1c7
30 changed files with 448 additions and 172 deletions

View File

@ -47,7 +47,7 @@ export default class DrawPincerArrow extends Draw {
super.start()
let into
YJ.Measure.SetMeasureStatus(true)
this.tip = new MouseTip('左键确定右键取消CTRL+右键撤销', this.sdk)
this.tip = new MouseTip(this.tipText || '左键确定右键取消CTRL+右键撤销', this.sdk)
this.event = new MouseEvent(this.sdk)
this.positions = []
this.points_ids = [] //存放左键点击时临时添加的point的id
@ -74,6 +74,9 @@ export default class DrawPincerArrow extends Draw {
this.end()
cb(null, cache_positions, c)
}
else {
cb(cache_positions.length)
}
})
this.event.mouse_right((movement, cartesian) => {
if(into === '2D') {
@ -102,6 +105,7 @@ export default class DrawPincerArrow extends Draw {
if (this.points_ids.length > 1) {
this.remove_entity(this.points_ids.pop()) //移除point
cache_positions.pop()
cb(cache_positions.length)
}
})
@ -155,6 +159,9 @@ export default class DrawPincerArrow extends Draw {
this.end()
cb(null, cache_positions, c)
}
else {
cb(cache_positions.length)
}
}
})
})
@ -183,6 +190,9 @@ export default class DrawPincerArrow extends Draw {
this.end()
cb(null, cache_positions, c)
}
else {
cb(cache_positions.length)
}
})
this.event2D.mouse_right((movement, cartesian) => {
if(into === '3D') {
@ -211,6 +221,7 @@ export default class DrawPincerArrow extends Draw {
if (this.points_ids.length > 1) {
this.remove_entity(this.points_ids.pop()) //移除point
cache_positions.pop()
cb(cache_positions.length)
}
})
@ -264,6 +275,9 @@ export default class DrawPincerArrow extends Draw {
this.end()
cb(null, cache_positions, c)
}
else {
cb(cache_positions.length)
}
}
})
})