Merge pull request #8874 from tschaub/uncast

Remove unnecessary type casts in canvas layer renderer
This commit is contained in:
Tim Schaub
2018-11-04 10:12:20 -07:00
committed by GitHub

View File

@@ -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);