Replace google closure syntax = with brackets around name

This commit is contained in:
Simon Seyock
2021-02-03 14:06:02 +01:00
parent c15faa19fc
commit 8facb252f1
185 changed files with 569 additions and 569 deletions

View File

@@ -64,9 +64,9 @@ function getSmoothClampedResolution(resolution, maxResolution, minResolution) {
/**
* @param {Array<number>} resolutions Resolutions.
* @param {boolean=} opt_smooth If true, the view will be able to slightly exceed resolution limits. Default: true.
* @param {import("./extent.js").Extent=} opt_maxExtent Maximum allowed extent.
* @param {boolean=} opt_showFullExtent If true, allows us to show the full extent. Default: false.
* @param {boolean} [opt_smooth] If true, the view will be able to slightly exceed resolution limits. Default: true.
* @param {import("./extent.js").Extent} [opt_maxExtent] Maximum allowed extent.
* @param {boolean} [opt_showFullExtent] If true, allows us to show the full extent. Default: false.
* @return {Type} Zoom function.
*/
export function createSnapToResolutions(
@@ -80,7 +80,7 @@ export function createSnapToResolutions(
* @param {number|undefined} resolution Resolution.
* @param {number} direction Direction.
* @param {import("./size.js").Size} size Viewport size.
* @param {boolean=} opt_isMoving True if an interaction or animation is in progress.
* @param {boolean} [opt_isMoving] True if an interaction or animation is in progress.
* @return {number|undefined} Resolution.
*/
function (resolution, direction, size, opt_isMoving) {
@@ -125,10 +125,10 @@ export function createSnapToResolutions(
/**
* @param {number} power Power.
* @param {number} maxResolution Maximum resolution.
* @param {number=} opt_minResolution Minimum resolution.
* @param {boolean=} opt_smooth If true, the view will be able to slightly exceed resolution limits. Default: true.
* @param {import("./extent.js").Extent=} opt_maxExtent Maximum allowed extent.
* @param {boolean=} opt_showFullExtent If true, allows us to show the full extent. Default: false.
* @param {number} [opt_minResolution] Minimum resolution.
* @param {boolean} [opt_smooth] If true, the view will be able to slightly exceed resolution limits. Default: true.
* @param {import("./extent.js").Extent} [opt_maxExtent] Maximum allowed extent.
* @param {boolean} [opt_showFullExtent] If true, allows us to show the full extent. Default: false.
* @return {Type} Zoom function.
*/
export function createSnapToPower(
@@ -144,7 +144,7 @@ export function createSnapToPower(
* @param {number|undefined} resolution Resolution.
* @param {number} direction Direction.
* @param {import("./size.js").Size} size Viewport size.
* @param {boolean=} opt_isMoving True if an interaction or animation is in progress.
* @param {boolean} [opt_isMoving] True if an interaction or animation is in progress.
* @return {number|undefined} Resolution.
*/
function (resolution, direction, size, opt_isMoving) {
@@ -195,9 +195,9 @@ export function createSnapToPower(
/**
* @param {number} maxResolution Max resolution.
* @param {number} minResolution Min resolution.
* @param {boolean=} opt_smooth If true, the view will be able to slightly exceed resolution limits. Default: true.
* @param {import("./extent.js").Extent=} opt_maxExtent Maximum allowed extent.
* @param {boolean=} opt_showFullExtent If true, allows us to show the full extent. Default: false.
* @param {boolean} [opt_smooth] If true, the view will be able to slightly exceed resolution limits. Default: true.
* @param {import("./extent.js").Extent} [opt_maxExtent] Maximum allowed extent.
* @param {boolean} [opt_showFullExtent] If true, allows us to show the full extent. Default: false.
* @return {Type} Zoom function.
*/
export function createMinMaxResolution(
@@ -212,7 +212,7 @@ export function createMinMaxResolution(
* @param {number|undefined} resolution Resolution.
* @param {number} direction Direction.
* @param {import("./size.js").Size} size Viewport size.
* @param {boolean=} opt_isMoving True if an interaction or animation is in progress.
* @param {boolean} [opt_isMoving] True if an interaction or animation is in progress.
* @return {number|undefined} Resolution.
*/
function (resolution, direction, size, opt_isMoving) {