diff --git a/package-lock.json b/package-lock.json index 79cb160b07..d3b8dd0337 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6454,9 +6454,9 @@ } }, "jsdoc-plugin-typescript": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/jsdoc-plugin-typescript/-/jsdoc-plugin-typescript-2.0.1.tgz", - "integrity": "sha512-2/Kr+Roo36G8Kci+UY1bM2XUDCxjHD1cVxBKHgzLTCfmapR2fjf+ijjnyrHO+lXc3sn9xXjeChy9pznue+qKKg==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/jsdoc-plugin-typescript/-/jsdoc-plugin-typescript-2.0.2.tgz", + "integrity": "sha512-4/SveLQzTCkcQFfx9bDtVNRASmpv9E7iKncbSPkjnb+tm+9qHhCkF1Ewml3vBKZKU58LgW1zUsn4JYRlowP7NQ==", "dev": true }, "jsesc": { diff --git a/package.json b/package.json index 515d7b819f..5a912e0e7f 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "istanbul-instrumenter-loader": "^3.0.1", "jquery": "3.4.1", "jsdoc": "3.6.3", - "jsdoc-plugin-typescript": "^2.0.1", + "jsdoc-plugin-typescript": "^2.0.2", "karma": "^4.1.0", "karma-chrome-launcher": "3.1.0", "karma-coverage": "^2.0.1", diff --git a/src/ol/format/Feature.js b/src/ol/format/Feature.js index ec462816bd..afc8aab5a1 100644 --- a/src/ol/format/Feature.js +++ b/src/ol/format/Feature.js @@ -55,7 +55,7 @@ import Units from '../proj/Units.js'; * Abstract base class; normally only used for creating subclasses and not * instantiated in apps. * Base class for feature formats. - * {FeatureFormat} subclasses provide the ability to decode and encode + * {@link module:ol/format/Feature~FeatureFormat} subclasses provide the ability to decode and encode * {@link module:ol/Feature~Feature} objects from a variety of commonly used geospatial * file formats. See the documentation for each format for more details. * diff --git a/src/ol/format/IIIFInfo.js b/src/ol/format/IIIFInfo.js index a7d40d8658..8a3bd27bd5 100644 --- a/src/ol/format/IIIFInfo.js +++ b/src/ol/format/IIIFInfo.js @@ -40,8 +40,8 @@ import {assert} from '../asserts.js'; */ /** - * @typedef {Object|Object - * |TileInfo>} ImageInformationResponse + * @typedef {Object|Object|TileInfo>} + * ImageInformationResponse */ /** diff --git a/src/ol/style/Style.js b/src/ol/style/Style.js index ed7e53eec9..5d44dc6c6c 100644 --- a/src/ol/style/Style.js +++ b/src/ol/style/Style.js @@ -2,8 +2,67 @@ * @module ol/style/Style */ +import {assert} from '../asserts.js'; +import GeometryType from '../geom/GeometryType.js'; +import CircleStyle from './Circle.js'; +import Fill from './Fill.js'; +import Stroke from './Stroke.js'; + + /** - * Feature styles. + * A function that takes an {@link module:ol/Feature} and a `{number}` + * representing the view's resolution. The function should return a + * {@link module:ol/style/Style} or an array of them. This way e.g. a + * vector layer can be styled. + * + * @typedef {function(import("../Feature.js").FeatureLike, number):(Style|Array