Merge pull request #6916 from marcjansen/eslint-4-upgrade

Upgrade eslint to v4.0.0
This commit is contained in:
Marc Jansen
2017-06-22 07:55:06 +02:00
committed by GitHub
198 changed files with 1810 additions and 1790 deletions

View File

@@ -95,7 +95,7 @@ ol.reproj.render = function(width, height, pixelRatio,
triangulation, sources, gutter, opt_renderEdges) {
var context = ol.dom.createCanvasContext2D(Math.round(pixelRatio * width),
Math.round(pixelRatio * height));
Math.round(pixelRatio * height));
if (sources.length === 0) {
return context.canvas;
@@ -202,10 +202,10 @@ ol.reproj.render = function(width, height, pixelRatio,
affineCoefs[0], affineCoefs[2], affineCoefs[1], affineCoefs[3], u0, v0);
context.translate(sourceDataExtent[0] - sourceNumericalShiftX,
sourceDataExtent[3] - sourceNumericalShiftY);
sourceDataExtent[3] - sourceNumericalShiftY);
context.scale(sourceResolution / pixelRatio,
-sourceResolution / pixelRatio);
-sourceResolution / pixelRatio);
context.drawImage(stitchContext.canvas, 0, 0);
context.restore();