修改tip提示语
This commit is contained in:
@ -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)
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user