xushiting 2 years ago
parent
commit
6e545e6953
2 changed files with 5 additions and 0 deletions
  1. 3 0
      src/graphic/Coordinate.js
  2. 2 0
      src/graphic/ListenLayer.js

+ 3 - 0
src/graphic/Coordinate.js

@@ -1,7 +1,9 @@
+import Constant from "./Constant";
 import { dataService } from "./Service/DataService";
 
 const defaultZoom = 100;
 const defaultRes = 1;
+const minAdsorbPix = 20;
 
 export default class Coordinate {
   constructor() {
@@ -91,6 +93,7 @@ export default class Coordinate {
       this.height = canvas.height;
     }
     this.setCenter(canvas);
+    Constant.minAdsorbPix = minAdsorbPix * this.ratio;
     console.log(
       "updateForCanvas" +
         canvas.offsetWidth +

+ 2 - 0
src/graphic/ListenLayer.js

@@ -1308,6 +1308,8 @@ export default class ListenLayer {
         VectorType.Circle,
         this.modifyPoint.index
       );
+    } else {
+      stateService.clearSelectItem();
     }
 
     let newSelectItem = stateService.getSelectItem();