From 401b6d7cbe1d1fb48001e960075b0251e145aa4c Mon Sep 17 00:00:00 2001 From: DanielJDufour Date: Mon, 7 Mar 2022 16:59:47 -0500 Subject: [PATCH] fixed linting issue --- package.json | 2 +- src/georaster-layer-for-leaflet.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 649b2b3..57b2e34 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "build:webpack": "webpack", "build": "npm run clean && npm run build:babel && npm run build:webpack && npm run build:webpack:lite && npm run build:main", "dev": "concurrently \"npm run serve\" \"webpack --watch\" ", - "format": "prettier --write ./src/georaster-layer-for-leaflet.ts webpack.config.js", + "format": "prettier --write ./src/georaster-layer-for-leaflet.ts webpack.config.js && npm run fix", "check-types": "tsc", "fix": "eslint ./src/georaster-layer-for-leaflet.ts --fix", "lint": "eslint ./src/georaster-layer-for-leaflet.ts", diff --git a/src/georaster-layer-for-leaflet.ts b/src/georaster-layer-for-leaflet.ts index 7bff85a..ab2f267 100644 --- a/src/georaster-layer-for-leaflet.ts +++ b/src/georaster-layer-for-leaflet.ts @@ -369,11 +369,11 @@ const GeoRasterLayer: (new (options: GeoRasterLayerOptions) => any) & typeof L.C // pad xmax and ymin of container to tolerate ceil() and floor() in snap() container: inSimpleCRS ? [ - extentOfLayer.xmin, - extentOfLayer.ymin - 0.25 * pixelHeight, - extentOfLayer.xmax + 0.25 * pixelWidth, - extentOfLayer.ymax - ] + extentOfLayer.xmin, + extentOfLayer.ymin - 0.25 * pixelHeight, + extentOfLayer.xmax + 0.25 * pixelWidth, + extentOfLayer.ymax + ] : [xmin, ymin - 0.25 * pixelHeight, xmax + 0.25 * pixelWidth, ymax], debug: debugLevel >= 2, origin: inSimpleCRS ? [extentOfLayer.xmin, extentOfLayer.ymax] : [xmin, ymax],