修改tip提示语
This commit is contained in:
@ -28,7 +28,7 @@ class CutFillAnalysis {
|
||||
}
|
||||
this.entities = []
|
||||
this.tools = new Tools(this.sdk)
|
||||
this.Draw = new DrawPolygon(this.sdk)
|
||||
this.Draw = new DrawPolygon(this.sdk, { tipText: '左键单击确定控制点位置,右键单击取消范围绘制! CTRL+右键单击撤销上一个控制点' })
|
||||
YJ.Analysis.AnalysesResults.push(this)
|
||||
// CutFillAnalysis.EditBox(this)
|
||||
}
|
||||
@ -37,11 +37,12 @@ class CutFillAnalysis {
|
||||
this.clean()
|
||||
this.Draw.start((a, positions) => {
|
||||
if (!positions || positions.length < 3) {
|
||||
let _error = '最少需要三个坐标!'
|
||||
this.tools.message({
|
||||
text: _error,
|
||||
type: 'warning',
|
||||
});
|
||||
if (a >= 3) {
|
||||
this.Draw.tipText = '左键单击确定控制点位置,右键单击结束范围绘制! CTRL+右键单击撤销'
|
||||
}
|
||||
else {
|
||||
this.Draw.tipText = '左键单击确定控制点位置,右键单击取消范围绘制! CTRL+右键单击撤销上一个控制点'
|
||||
}
|
||||
return
|
||||
}
|
||||
let fromDegreesArray = []
|
||||
|
||||
Reference in New Issue
Block a user