Skip to content

Commit

Permalink
fixed linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielJDufour committed Mar 7, 2022
1 parent 1bef5cd commit 401b6d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 5 additions & 5 deletions src/georaster-layer-for-leaflet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 401b6d7

Please sign in to comment.