修改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

@ -48,7 +48,7 @@ export default class DrawAttackArrow extends Draw {
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
@ -71,6 +71,7 @@ export default class DrawAttackArrow extends Draw {
this.points_ids.push(this.create_point(cartesian))
cache_positions.push(pos84)
isMove = false
cb(cache_positions.length)
})
this.event.mouse_right((movement, cartesian) => {
if(into === '2D') {
@ -110,6 +111,7 @@ export default class DrawAttackArrow extends Draw {
if (this.points_ids.length > 1) {
this.remove_entity(this.points_ids.pop()) //移除point
cache_positions.pop()
cb(cache_positions.length)
}
})