Updates for TypeScript v4

This commit is contained in:
Andreas Hocevar
2020-08-25 13:03:58 +02:00
parent 53dee97af5
commit fda93cee23
6 changed files with 43 additions and 34 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ import {linearFindNearest} from './array.js';
* Returns a modified resolution taking into account the viewport size and maximum
* allowed extent.
* @param {number} resolution Resolution
* @param {import("./extent.js").Extent=} maxExtent Maximum allowed extent.
* @param {import("./extent.js").Extent} maxExtent Maximum allowed extent.
* @param {import("./size.js").Size} viewportSize Viewport size.
* @param {boolean} showFullExtent Whether to show the full extent.
* @return {number} Capped resolution.