吉安感知网项目-前端
shuishen
2026-01-28 4b8b4906a8983c811954a074702b0024e7694588
applications/drone-command/src/views/areaManage/partition/shapeTools/edit/EditEllipseTool.js
@@ -85,9 +85,15 @@
      const local = cartesianToLocal(this.centerCartesian, position)
      if (this.dragType === 'major') {
         this.semiMajor = Math.max(1, Math.abs(local.x))
         if (this.semiMajor < this.semiMinor) {
            this.semiMajor = this.semiMinor
         }
      }
      if (this.dragType === 'minor') {
         this.semiMinor = Math.max(1, Math.abs(local.y))
         if (this.semiMinor > this.semiMajor) {
            this.semiMinor = this.semiMajor
         }
      }
      this.updateAxisPoints()
   }