|
@@ -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 +
|