diff --git a/src/ol/PluggableMap.js b/src/ol/PluggableMap.js index e9347d996e..f043619fa6 100644 --- a/src/ol/PluggableMap.js +++ b/src/ol/PluggableMap.js @@ -61,7 +61,7 @@ import {create as createTransform, apply as applyTransform} from './transform.js /** * @typedef {Object} AtPixelOptions - * @property {((function(module:ol/layer/Layer): boolean)|undefined)} layerFilter Layer filter + * @property {function(module:ol/layer/Layer): boolean|undefined} layerFilter Layer filter * function. The filter function will receive one argument, the * {@link module:ol/layer/Layer layer-candidate} and it should return a boolean value. * Only layers which are visible and for which this function returns `true` diff --git a/src/ol/format/Feature.js b/src/ol/format/Feature.js index f5b49cdc9f..3738d99ca1 100644 --- a/src/ol/format/Feature.js +++ b/src/ol/format/Feature.js @@ -200,7 +200,7 @@ export default FeatureFormat; /** * @param {module:ol/geom/Geometry|module:ol/extent~Extent} geometry Geometry. * @param {boolean} write Set to true for writing, false for reading. - * @param {(module:ol/format/Feature~WriteOptions|module:ol/format/Feature~ReadOptions)=} opt_options + * @param {module:ol/format/Feature~WriteOptions|module:ol/format/Feature~ReadOptions=} opt_options * Options. * @return {module:ol/geom/Geometry|module:ol/extent~Extent} Transformed geometry. */ diff --git a/src/ol/interaction/Pointer.js b/src/ol/interaction/Pointer.js index a488f80727..3f5f6bc201 100644 --- a/src/ol/interaction/Pointer.js +++ b/src/ol/interaction/Pointer.js @@ -40,22 +40,22 @@ const handleMoveEvent = UNDEFINED; /** * @typedef {Object} Options - * @property {(function(module:ol/MapBrowserPointerEvent):boolean)} [handleDownEvent] + * @property {function(module:ol/MapBrowserPointerEvent):boolean} [handleDownEvent] * Function handling "down" events. If the function returns `true` then a drag * sequence is started. - * @property {(function(module:ol/MapBrowserPointerEvent))} [handleDragEvent] + * @property {function(module:ol/MapBrowserPointerEvent)} [handleDragEvent] * Function handling "drag" events. This function is called on "move" events * during a drag sequence. - * @property {(function(module:ol/MapBrowserEvent):boolean)} [handleEvent] + * @property {function(module:ol/MapBrowserEvent):boolean} [handleEvent] * Method called by the map to notify the interaction that a browser event was * dispatched to the map. The function may return `false` to prevent the * propagation of the event to other interactions in the map's interactions * chain. - * @property {(function(module:ol/MapBrowserPointerEvent))} [handleMoveEvent] + * @property {function(module:ol/MapBrowserPointerEvent)} [handleMoveEvent] * Function handling "move" events. This function is called on "move" events, * also during a drag sequence (so during a drag sequence both the * `handleDragEvent` function and this function are called). - * @property {(function(module:ol/MapBrowserPointerEvent):boolean)} [handleUpEvent] + * @property {function(module:ol/MapBrowserPointerEvent):boolean} [handleUpEvent] * Function handling "up" events. If the function returns `false` then the * current drag sequence is stopped. * @property {function(boolean):boolean} stopDown diff --git a/src/ol/layer/Group.js b/src/ol/layer/Group.js index 2a172273c5..e50f398eba 100644 --- a/src/ol/layer/Group.js +++ b/src/ol/layer/Group.js @@ -27,7 +27,7 @@ import SourceState from '../source/State.js'; * visible. * @property {number} [maxResolution] The maximum resolution (exclusive) below which this layer will * be visible. - * @property {(Array.|module:ol/Collection.)} [layers] Child layers. + * @property {Array.|module:ol/Collection.} [layers] Child layers. */ diff --git a/src/ol/layer/VectorTile.js b/src/ol/layer/VectorTile.js index 3e63f51dab..f393f7da44 100644 --- a/src/ol/layer/VectorTile.js +++ b/src/ol/layer/VectorTile.js @@ -80,7 +80,7 @@ export const RenderType = { * means no preloading. * @property {module:ol/render~OrderFunction} [renderOrder] Render order. Function to be used when sorting * features before rendering. By default features are drawn in the order that they are created. - * @property {(module:ol/style/Style|Array.|module:ol/style/Style~StyleFunction)} [style] Layer style. See + * @property {module:ol/style/Style|Array.|module:ol/style/Style~StyleFunction} [style] Layer style. See * {@link module:ol/style} for default style which will be used if this is not defined. * @property {boolean} [useInterimTilesOnError=true] Use interim tiles on error. */ diff --git a/src/ol/renderer/canvas/VectorLayer.js b/src/ol/renderer/canvas/VectorLayer.js index 2e983182cd..b5b60304eb 100644 --- a/src/ol/renderer/canvas/VectorLayer.js +++ b/src/ol/renderer/canvas/VectorLayer.js @@ -384,7 +384,7 @@ class CanvasVectorLayerRenderer extends CanvasLayerRenderer { * @param {module:ol/Feature} feature Feature. * @param {number} resolution Resolution. * @param {number} pixelRatio Pixel ratio. - * @param {(module:ol/style/Style|Array.)} styles The style or array of styles. + * @param {module:ol/style/Style|Array.} styles The style or array of styles. * @param {module:ol/render/canvas/ReplayGroup} replayGroup Replay group. * @return {boolean} `true` if an image is loading. */ diff --git a/src/ol/renderer/canvas/VectorTileLayer.js b/src/ol/renderer/canvas/VectorTileLayer.js index 44918800d5..54ab69d5ac 100644 --- a/src/ol/renderer/canvas/VectorTileLayer.js +++ b/src/ol/renderer/canvas/VectorTileLayer.js @@ -410,7 +410,7 @@ class CanvasVectorTileLayerRenderer extends CanvasTileLayerRenderer { /** * @param {module:ol/Feature|module:ol/render/Feature} feature Feature. * @param {number} squaredTolerance Squared tolerance. - * @param {(module:ol/style/Style|Array.)} styles The style or array of styles. + * @param {module:ol/style/Style|Array.} styles The style or array of styles. * @param {module:ol/render/canvas/ReplayGroup} replayGroup Replay group. * @return {boolean} `true` if an image is loading. */ diff --git a/src/ol/renderer/webgl/VectorLayer.js b/src/ol/renderer/webgl/VectorLayer.js index cbea27b014..5b58cb4164 100644 --- a/src/ol/renderer/webgl/VectorLayer.js +++ b/src/ol/renderer/webgl/VectorLayer.js @@ -276,7 +276,7 @@ class WebGLVectorLayerRenderer extends WebGLLayerRenderer { * @param {module:ol/Feature} feature Feature. * @param {number} resolution Resolution. * @param {number} pixelRatio Pixel ratio. - * @param {(module:ol/style/Style|Array.)} styles The style or array of + * @param {module:ol/style/Style|Array.} styles The style or array of * styles. * @param {module:ol/render/webgl/ReplayGroup} replayGroup Replay group. * @return {boolean} `true` if an image is loading.