12-17
This commit is contained in:
@ -545,7 +545,7 @@ class EllipseObject extends Base {
|
||||
return this._areaChangeCallBack
|
||||
}
|
||||
|
||||
set areaChangeCallBack (cd) {
|
||||
set areaChangeCallBack(cd) {
|
||||
this._areaChangeCallBack = cd
|
||||
}
|
||||
|
||||
@ -1344,7 +1344,7 @@ class EllipseObject extends Base {
|
||||
center: this.deepCopyObj(this.options.center)
|
||||
}
|
||||
this.positionEditing = false
|
||||
if(this._positionEditingCallback) {
|
||||
if (this._positionEditingCallback) {
|
||||
this._positionEditingCallback()
|
||||
this._positionEditingCallback = null
|
||||
}
|
||||
@ -1571,20 +1571,22 @@ class EllipseObject extends Base {
|
||||
|
||||
that.heightMode = that.heightMode
|
||||
|
||||
cb('', {...this.options.center})
|
||||
cb('', { ...this.options.center })
|
||||
})
|
||||
|
||||
|
||||
that.getClampToHeight({
|
||||
lng: that.center.lng,
|
||||
lat: that.center.lat
|
||||
}, objectsToExclude).then(height => {
|
||||
that.label && (that.label.position = [
|
||||
that.center.lng,
|
||||
that.center.lat,
|
||||
height
|
||||
])
|
||||
})
|
||||
setTimeout(() => {
|
||||
that.getClampToHeight({
|
||||
lng: that.center.lng,
|
||||
lat: that.center.lat
|
||||
}, objectsToExclude).then(height => {
|
||||
that.label && (that.label.position = [
|
||||
that.center.lng,
|
||||
that.center.lat,
|
||||
height
|
||||
])
|
||||
})
|
||||
}, 200);
|
||||
createNodePoints(positions[0], 'semiMajorAxis')
|
||||
createNodePoints(positions[(length - 2) / 4], 'semiMinorAxis')
|
||||
createNodePoints(positions[(length - 2) / 2], 'semiMajorAxis')
|
||||
@ -1611,7 +1613,7 @@ class EllipseObject extends Base {
|
||||
}
|
||||
}
|
||||
|
||||
closeNodeEdit() {
|
||||
closeNodeEdit() {
|
||||
YJ.Measure.SetMeasureStatus(false)
|
||||
this.event && this.event.destroy()
|
||||
this.tip && this.tip.destroy()
|
||||
|
||||
Reference in New Issue
Block a user