From 639000a60307a3af0d267d942f0d078e0bfbe2c3 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Mon, 22 Jul 2013 18:22:13 +0200 Subject: [PATCH] Add some type hints in ol.extent --- src/ol/extent.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ol/extent.js b/src/ol/extent.js index 2333999ba5..e70dcf2227 100644 --- a/src/ol/extent.js +++ b/src/ol/extent.js @@ -215,7 +215,9 @@ ol.extent.getForView2DAndSize = var dy = resolution * size[1] / 2; var cosRotation = Math.cos(rotation); var sinRotation = Math.sin(rotation); + /** @type {Array.} */ var xs = [-dx, -dx, dx, dx]; + /** @type {Array.} */ var ys = [-dy, dy, -dy, dy]; var i, x, y; for (i = 0; i < 4; ++i) {