Browse Source

fix: 放大镜bug

jinx 2 years ago
parent
commit
5b2962e21a

File diff suppressed because it is too large
+ 1 - 1
server/test/a0k4xu045_202305311600080410/attach/sceneStore


+ 8 - 8
src/graphic/Layer.js

@@ -1051,14 +1051,14 @@ export default class Layer {
         this.history.save();
         elementService.hideAll();
         //拖拽完放大镜后需要重新打开
-        focusItem = {
-          vectorId: selectItem.vectorId,
-          type: selectItem.type,
-          cursor: { x: this.lastX, y: this.lastY },
-          dir: selectItem.dir,
-        };
-        this.uiControl.focusVector = focusItem;
-        stateService.setFocusItem(focusItem);
+        // focusItem = {
+        //   vectorId: selectItem.vectorId,
+        //   type: selectItem.type,
+        //   cursor: { x: this.lastX, y: this.lastY },
+        //   dir: selectItem.dir,
+        // };
+        // this.uiControl.focusVector = focusItem;
+        // stateService.setFocusItem(focusItem);
 
         break;
       case LayerEvents.MoveSVG:

+ 3 - 3
src/graphic/ListenLayer.js

@@ -1214,16 +1214,16 @@ export default class ListenLayer {
         this.modifyPoint.index
       );
     } else if (this.modifyPoint.magnifierId) {
-      if (this.modifyPoint.index == 0) {
+      // if (this.modifyPoint.index == 0) {
         //点击隐藏的放大镜不显示
         stateService.setSelectItem(
           this.modifyPoint.magnifierId,
           VectorType.Magnifier,
           this.modifyPoint.index
         );
-      } else {
+      // } else {
         stateService.setSelectState(this.modifyPoint.index);
-      }
+      // }
     } else if (this.modifyPoint.linkedEdgeId) {
       stateService.setSelectItem(
         this.modifyPoint.linkedEdgeId,

+ 0 - 1
src/graphic/Load.js

@@ -25,7 +25,6 @@ export default class Load {
 
   async load(dataLocal, data3d) {
     this.layer.initLocation();
-    console.error(dataLocal)
     if (dataLocal) {
       if (dataLocal.backgroundImg) {
         let bgImg = imageService.createBackgroundImg(