吉安感知网项目-前端
shuishen
2026-02-02 1d3e8e3a14f09e42ee47d8e8b6cc5feb6c4f7c79
applications/drone-command/src/utils/cesium/shapeTools/edit/EditEllipseTool.js
@@ -117,7 +117,7 @@
      this.handler.setInputAction(evt => this.handleLeftDown(evt), Cesium.ScreenSpaceEventType.LEFT_DOWN)
      this.handler.setInputAction(evt => this.handleMouseMove(evt), Cesium.ScreenSpaceEventType.MOUSE_MOVE)
      this.handler.setInputAction(() => this.handleLeftUp(), Cesium.ScreenSpaceEventType.LEFT_UP)
      this.tooltip.show('拖动控制点编辑', { x: 0, y: 0 })
      this.tooltip.hide()
   }
   handleLeftDown(evt) {
@@ -130,7 +130,12 @@
   }
   handleMouseMove(evt) {
      this.tooltip.move(evt.endPosition)
      if (!this.tooltip?.isVisible) {
         this.tooltip.show('拖动控制点编辑', evt.endPosition)
      } else {
         this.tooltip.show('拖动控制点编辑')
         this.tooltip.move(evt.endPosition)
      }
      if (!this.dragType) return
      const position = this.getPositionFromScreen(evt.endPosition)
      if (!position) return