Remove unnecessary type casts in canvas layer renderer

This commit is contained in:
Tim Schaub
2018-11-04 09:57:19 -07:00
parent 765d2cdc9f
commit 0091bfa106

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