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

@@ -75,8 +75,8 @@ describe('ol.interaction.Draw', function () {
* @param {string} type Event type.
* @param {number} x Horizontal offset from map center.
* @param {number} y Vertical offset from map center.
* @param {boolean=} opt_shiftKey Shift key is pressed.
* @param {boolean=} opt_pointerId Pointer id.
* @param {boolean} [opt_shiftKey] Shift key is pressed.
* @param {boolean} [opt_pointerId] Pointer id.
* @return {module:ol/MapBrowserEvent} The simulated event.
*/
function simulateEvent(type, x, y, opt_shiftKey, opt_pointerId = 0) {

View File

@@ -41,7 +41,7 @@ describe('ol.interaction.Extent', function () {
* @param {string} type Event type.
* @param {number} x Horizontal offset from map center.
* @param {number} y Vertical offset from map center.
* @param {boolean=} opt_shiftKey Shift key is pressed.
* @param {boolean} [opt_shiftKey] Shift key is pressed.
* @param {number} button The mouse button.
*/
function simulateEvent(type, x, y, opt_shiftKey, button) {

View File

@@ -92,7 +92,7 @@ describe('ol.interaction.Select', function () {
* @param {string} type Event type.
* @param {number} x Horizontal offset from map center.
* @param {number} y Vertical offset from map center.
* @param {boolean=} opt_shiftKey Shift key is pressed.
* @param {boolean} [opt_shiftKey] Shift key is pressed.
*/
function simulateEvent(type, x, y, opt_shiftKey) {
const viewport = map.getViewport();

View File

@@ -62,7 +62,7 @@ describe('ol.interaction.Translate', function () {
* @param {string} type Event type.
* @param {number} x Horizontal offset from map center.
* @param {number} y Vertical offset from map center.
* @param {boolean=} opt_shiftKey Shift key is pressed.
* @param {boolean} [opt_shiftKey] Shift key is pressed.
*/
function simulateEvent(type, x, y, opt_shiftKey) {
const viewport = map.getViewport();

View File

@@ -29,8 +29,8 @@ describe('ol.render.canvas.BuilderGroup', function () {
/**
* @param {BuilderGroup} builder The builder to get instructions from.
* @param {number=} pixelRatio The pixel ratio.
* @param {boolean=} overlaps Whether there is overlaps.
* @param {number} [pixelRatio] The pixel ratio.
* @param {boolean} [overlaps] Whether there is overlaps.
*/
function execute(builder, pixelRatio, overlaps) {
const executor = new ExecutorGroup(