From 0091bfa1068b6fb8b7a2b9eb4b385578d8a5bb18 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Sun, 4 Nov 2018 09:57:19 -0700 Subject: [PATCH] Remove unnecessary type casts in canvas layer renderer --- src/ol/renderer/canvas/Layer.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ol/renderer/canvas/Layer.js b/src/ol/renderer/canvas/Layer.js index 4f8b718cc8..4136428322 100644 --- a/src/ol/renderer/canvas/Layer.js +++ b/src/ol/renderer/canvas/Layer.js @@ -48,10 +48,10 @@ class CanvasLayerRenderer extends LayerRenderer { const width = frameState.size[0] * pixelRatio; const height = frameState.size[1] * pixelRatio; const rotation = frameState.viewState.rotation; - const topLeft = getTopLeft(/** @type {import("../../extent.js").Extent} */ (extent)); - const topRight = getTopRight(/** @type {import("../../extent.js").Extent} */ (extent)); - const bottomRight = getBottomRight(/** @type {import("../../extent.js").Extent} */ (extent)); - const bottomLeft = getBottomLeft(/** @type {import("../../extent.js").Extent} */ (extent)); + const topLeft = getTopLeft(extent); + const topRight = getTopRight(extent); + const bottomRight = getBottomRight(extent); + const bottomLeft = getBottomLeft(extent); applyTransform(frameState.coordinateToPixelTransform, topLeft); applyTransform(frameState.coordinateToPixelTransform, topRight);