xushiting 2 년 전
부모
커밋
6e545e6953
2개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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";
 import { dataService } from "./Service/DataService";
 
 
 const defaultZoom = 100;
 const defaultZoom = 100;
 const defaultRes = 1;
 const defaultRes = 1;
+const minAdsorbPix = 20;
 
 
 export default class Coordinate {
 export default class Coordinate {
   constructor() {
   constructor() {
@@ -91,6 +93,7 @@ export default class Coordinate {
       this.height = canvas.height;
       this.height = canvas.height;
     }
     }
     this.setCenter(canvas);
     this.setCenter(canvas);
+    Constant.minAdsorbPix = minAdsorbPix * this.ratio;
     console.log(
     console.log(
       "updateForCanvas" +
       "updateForCanvas" +
         canvas.offsetWidth +
         canvas.offsetWidth +

+ 2 - 0
src/graphic/ListenLayer.js

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