New eslint config with no-multi-assign

This commit is contained in:
Andreas Hocevar
2019-11-02 15:20:21 +01:00
parent 06ae419db6
commit ac50cc3460
35 changed files with 162 additions and 85 deletions
+2 -1
View File
@@ -92,7 +92,8 @@ class CanvasImageLayerRenderer extends CanvasLayerRenderer {
const rotation = viewState.rotation;
if (rotation) {
const size = Math.round(Math.sqrt(width * width + height * height));
width = height = size;
width = size;
height = size;
}
// set forward and inverse pixel transforms
+2 -1
View File
@@ -175,7 +175,8 @@ class CanvasTileLayerRenderer extends CanvasLayerRenderer {
if (rotation) {
const size = Math.round(Math.sqrt(width * width + height * height));
width = height = size;
width = size;
height = size;
}
const dx = tileResolution * width / 2 / tilePixelRatio;