diff --git a/src/ol/control/ZoomSlider.js b/src/ol/control/ZoomSlider.js index 6e24cc0c2f..0f5f886af5 100644 --- a/src/ol/control/ZoomSlider.js +++ b/src/ol/control/ZoomSlider.js @@ -52,7 +52,7 @@ class ZoomSlider extends Control { }); /** - * @type {!Array.} + * @type {!Array} * @private */ this.dragListenerKeys_ = []; diff --git a/src/ol/interaction/Select.js b/src/ol/interaction/Select.js index 7430b7de85..3769125606 100644 --- a/src/ol/interaction/Select.js +++ b/src/ol/interaction/Select.js @@ -130,7 +130,7 @@ export class SelectEvent extends Event { /** * Original feature styles to reset to when features are no longer selected. - * @type {Object.|import("../style/Style.js").StyleFunction>} + * @type {Object|import("../style/Style.js").StyleFunction>} */ const originalFeatureStyles = {}; @@ -216,7 +216,7 @@ class Select extends Interaction { /** * @private - * @type {import("../style/Style.js").default|Array.|import("../style/Style.js").StyleFunction|null} + * @type {import("../style/Style.js").default|Array|import("../style/Style.js").StyleFunction|null} */ this.style_ = options.style !== undefined ? options.style : getDefaultStyleFunction(); diff --git a/src/ol/renderer/webgl/Layer.js b/src/ol/renderer/webgl/Layer.js index 24398625c2..8c178a6da9 100644 --- a/src/ol/renderer/webgl/Layer.js +++ b/src/ol/renderer/webgl/Layer.js @@ -32,13 +32,13 @@ export const WebGLWorkerMessageType = { * the main canvas that will then be sampled up (useful for saving resource on blur steps). * @property {string} [vertexShader] Vertex shader source * @property {string} [fragmentShader] Fragment shader source - * @property {Object.} [uniforms] Uniform definitions for the post process step + * @property {Object} [uniforms] Uniform definitions for the post process step */ /** * @typedef {Object} Options * @property {string} [className='ol-layer'] A CSS class name to set to the canvas element. - * @property {Object.} [uniforms] Uniform definitions for the post process steps + * @property {Object} [uniforms] Uniform definitions for the post process steps * @property {Array} [postProcesses] Post-processes definitions */ diff --git a/src/ol/renderer/webgl/PointsLayer.js b/src/ol/renderer/webgl/PointsLayer.js index 8a01e04d19..a97c36cf0c 100644 --- a/src/ol/renderer/webgl/PointsLayer.js +++ b/src/ol/renderer/webgl/PointsLayer.js @@ -54,7 +54,7 @@ import {listen, unlistenByKey} from '../../events.js'; * @property {string} fragmentShader Fragment shader source, mandatory. * @property {string} [hitVertexShader] Vertex shader source for hit detection rendering. * @property {string} [hitFragmentShader] Fragment shader source for hit detection rendering. - * @property {Object.} [uniforms] Uniform definitions for the post process steps + * @property {Object} [uniforms] Uniform definitions for the post process steps * Please note that `u_texture` is reserved for the main texture slot. * @property {Array} [postProcesses] Post-processes definitions */ diff --git a/src/ol/source/Raster.js b/src/ol/source/Raster.js index 8f6ea35d7f..0d0ee5bb26 100644 --- a/src/ol/source/Raster.js +++ b/src/ol/source/Raster.js @@ -223,7 +223,7 @@ export class Processor extends Disposable { /** * Run operation on input data. - * @param {Array.} inputs Array of pixels or image data + * @param {Array} inputs Array of pixels or image data * (depending on the operation type). * @param {Object} meta A user data object. This is passed to all operations * and must be serializable. diff --git a/src/ol/webgl/Helper.js b/src/ol/webgl/Helper.js index fdf441e1b8..ec1aafa9c5 100644 --- a/src/ol/webgl/Helper.js +++ b/src/ol/webgl/Helper.js @@ -92,12 +92,12 @@ export const AttributeType = { * the main canvas which will then be sampled up (useful for saving resource on blur steps). * @property {string} [vertexShader] Vertex shader source * @property {string} [fragmentShader] Fragment shader source - * @property {Object.} [uniforms] Uniform definitions for the post process step + * @property {Object} [uniforms] Uniform definitions for the post process step */ /** * @typedef {Object} Options - * @property {Object.} [uniforms] Uniform definitions; property names must match the uniform + * @property {Object} [uniforms] Uniform definitions; property names must match the uniform * names in the provided or default shaders. * @property {Array} [postProcesses] Post-processes definitions */ @@ -311,13 +311,13 @@ class WebGLHelper extends Disposable { /** * @private - * @type {Object.} + * @type {Object} */ this.uniformLocations_ = {}; /** * @private - * @type {Object.} + * @type {Object} */ this.attribLocations_ = {}; diff --git a/src/ol/webgl/PostProcessingPass.js b/src/ol/webgl/PostProcessingPass.js index a334823bc3..ca15518c7f 100644 --- a/src/ol/webgl/PostProcessingPass.js +++ b/src/ol/webgl/PostProcessingPass.js @@ -37,7 +37,7 @@ const DEFAULT_FRAGMENT_SHADER = ` * the main canvas that will then be sampled up (useful for saving resource on blur steps). * @property {string} [vertexShader] Vertex shader source * @property {string} [fragmentShader] Fragment shader source - * @property {Object.} [uniforms] Uniform definitions for the post process step + * @property {Object} [uniforms] Uniform definitions for the post process step */ /** diff --git a/src/ol/webgl/ShaderBuilder.js b/src/ol/webgl/ShaderBuilder.js index ab9a3957f9..7f27246416 100644 --- a/src/ol/webgl/ShaderBuilder.js +++ b/src/ol/webgl/ShaderBuilder.js @@ -408,7 +408,7 @@ ${hitDetectionBypass} /** * @typedef {Object} StyleParseResult * @property {ShaderBuilder} builder Shader builder pre-configured according to a given style - * @property {Object.} uniforms Uniform definitions. + * @property {Object} uniforms Uniform definitions. * @property {Array} attributes Attribute descriptions. */ @@ -522,7 +522,7 @@ export function parseLiteralStyle(style) { builder.setFragmentDiscardExpression(`!${parsedFilter}`); } - /** @type {Object.} */ + /** @type {Object} */ const uniforms = {}; // define one uniform per variable