Remove @extends and @constructor annotations

This commit is contained in:
Tim Schaub
2018-07-18 00:36:29 -06:00
parent b7b15eb7f0
commit 9ce36da349
87 changed files with 110 additions and 282 deletions

View File

@@ -7,7 +7,6 @@ import {VERSION} from './util.js';
* Error object thrown when an assertion failed. This is an ECMA-262 Error, * Error object thrown when an assertion failed. This is an ECMA-262 Error,
* extended with a `code` property. * extended with a `code` property.
* @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error} * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error}
* @extends {Error}
*/ */
class AssertionError extends Error { class AssertionError extends Error {

View File

@@ -5,7 +5,6 @@ import {UNDEFINED} from './functions.js';
/** /**
* Objects that need to clean up after themselves. * Objects that need to clean up after themselves.
* @constructor
*/ */
class Disposable { class Disposable {
/** /**

View File

@@ -11,12 +11,12 @@
* `stopPropagation` and `preventDefault` methods. It is meant as base class * `stopPropagation` and `preventDefault` methods. It is meant as base class
* for higher level events defined in the library, and works with * for higher level events defined in the library, and works with
* {@link module:ol/events/EventTarget~EventTarget}. * {@link module:ol/events/EventTarget~EventTarget}.
*
* @constructor
* @param {string} type Type.
*/ */
class Event { class Event {
/**
* @param {string} type Type.
*/
constructor(type) { constructor(type) {
/** /**

View File

@@ -26,8 +26,6 @@ import Event from '../events/Event.js';
* `stopPropagation` or `preventDefault` on an event object, it means that no * `stopPropagation` or `preventDefault` on an event object, it means that no
* more listeners after this one will be called. Same as when the listener * more listeners after this one will be called. Same as when the listener
* returns false. * returns false.
*
* @constructor
*/ */
class EventTarget extends Disposable { class EventTarget extends Disposable {
constructor() { constructor() {

View File

@@ -9,10 +9,8 @@ import GML3 from '../format/GML3.js';
* version 3.1.1. * version 3.1.1.
* Currently only supports GML 3.1.1 Simple Features profile. * Currently only supports GML 3.1.1 Simple Features profile.
* *
* @constructor
* @param {module:ol/format/GMLBase~Options=} opt_options * @param {module:ol/format/GMLBase~Options=} opt_options
* Optional configuration object. * Optional configuration object.
* @extends {module:ol/format/GMLBase}
* @api * @api
*/ */
const GML = GML3; const GML = GML3;

View File

@@ -31,9 +31,6 @@ class BaseLayer extends BaseObject {
* the options is set as a {@link module:ol/Object} property on the layer object, so * the options is set as a {@link module:ol/Object} property on the layer object, so
* is observable, and has get/set accessors. * is observable, and has get/set accessors.
* *
* @constructor
* @abstract
* @extends {module:ol/Object}
* @param {module:ol/layer/Base~Options} options Layer options. * @param {module:ol/layer/Base~Options} options Layer options.
* @api * @api
*/ */

View File

@@ -47,8 +47,6 @@ class LayerGroup extends BaseLayer {
* *
* A generic `change` event is triggered when the group/Collection changes. * A generic `change` event is triggered when the group/Collection changes.
* *
* @constructor
* @extends {module:ol/layer/Base}
* @param {module:ol/layer/Group~Options=} opt_options Layer options. * @param {module:ol/layer/Group~Options=} opt_options Layer options.
* @api * @api
*/ */

View File

@@ -67,8 +67,6 @@ class Heatmap extends VectorLayer {
* property on the layer object; for example, setting `title: 'My Title'` in the * property on the layer object; for example, setting `title: 'My Title'` in the
* options means that `title` is observable, and has get/set accessors. * options means that `title` is observable, and has get/set accessors.
* *
* @constructor
* @extends {module:ol/layer/Vector}
* @fires module:ol/render/Event~RenderEvent * @fires module:ol/render/Event~RenderEvent
* @param {module:ol/layer/Heatmap~Options=} opt_options Options. * @param {module:ol/layer/Heatmap~Options=} opt_options Options.
* @api * @api

View File

@@ -35,8 +35,6 @@ class ImageLayer extends Layer {
* property on the layer object; for example, setting `title: 'My Title'` in the * property on the layer object; for example, setting `title: 'My Title'` in the
* options means that `title` is observable, and has get/set accessors. * options means that `title` is observable, and has get/set accessors.
* *
* @constructor
* @extends {module:ol/layer/Layer}
* @fires module:ol/render/Event~RenderEvent * @fires module:ol/render/Event~RenderEvent
* @param {module:ol/layer/Image~Options=} opt_options Layer options. * @param {module:ol/layer/Image~Options=} opt_options Layer options.
* @api * @api

View File

@@ -60,9 +60,6 @@ class Layer extends BaseLayer {
* *
* A generic `change` event is fired when the state of the source changes. * A generic `change` event is fired when the state of the source changes.
* *
* @constructor
* @abstract
* @extends {module:ol/layer/Base}
* @fires module:ol/render/Event~RenderEvent * @fires module:ol/render/Event~RenderEvent
* @param {module:ol/layer/Layer~Options} options Layer options. * @param {module:ol/layer/Layer~Options} options Layer options.
* @api * @api

View File

@@ -39,9 +39,6 @@ class TileLayer extends Layer {
* property on the layer object; for example, setting `title: 'My Title'` in the * property on the layer object; for example, setting `title: 'My Title'` in the
* options means that `title` is observable, and has get/set accessors. * options means that `title` is observable, and has get/set accessors.
* *
* @constructor
* @extends {module:ol/layer/Layer}
* @fires module:ol/render/Event~RenderEvent
* @param {module:ol/layer/Tile~Options=} opt_options Tile layer options. * @param {module:ol/layer/Tile~Options=} opt_options Tile layer options.
* @api * @api
*/ */

View File

@@ -85,9 +85,6 @@ class VectorLayer extends Layer {
* property on the layer object; for example, setting `title: 'My Title'` in the * property on the layer object; for example, setting `title: 'My Title'` in the
* options means that `title` is observable, and has get/set accessors. * options means that `title` is observable, and has get/set accessors.
* *
* @constructor
* @extends {module:ol/layer/Layer}
* @fires module:ol/render/Event~RenderEvent
* @param {module:ol/layer/Vector~Options=} opt_options Options. * @param {module:ol/layer/Vector~Options=} opt_options Options.
* @api * @api
*/ */

View File

@@ -94,8 +94,6 @@ class VectorTileLayer extends VectorLayer {
* property on the layer object; for example, setting `title: 'My Title'` in the * property on the layer object; for example, setting `title: 'My Title'` in the
* options means that `title` is observable, and has get/set accessors. * options means that `title` is observable, and has get/set accessors.
* *
* @constructor
* @extends {module:ol/layer/Vector}
* @param {module:ol/layer/VectorTile~Options=} opt_options Options. * @param {module:ol/layer/VectorTile~Options=} opt_options Options.
* @api * @api
*/ */

View File

@@ -7,8 +7,6 @@ import Polygon from '../geom/Polygon.js';
class RenderBox extends Disposable { class RenderBox extends Disposable {
/** /**
* @constructor
* @extends {module:ol/Disposable}
* @param {string} className CSS class name. * @param {string} className CSS class name.
*/ */
constructor(className) { constructor(className) {

View File

@@ -7,8 +7,6 @@ import Event from '../events/Event.js';
class RenderEvent extends Event { class RenderEvent extends Event {
/** /**
* @constructor
* @extends {module:ol/events/Event}
* @param {module:ol/render/EventType} type Type. * @param {module:ol/render/EventType} type Type.
* @param {module:ol/render/VectorContext=} opt_vectorContext Vector context. * @param {module:ol/render/VectorContext=} opt_vectorContext Vector context.
* @param {module:ol/PluggableMap~FrameState=} opt_frameState Frame state. * @param {module:ol/PluggableMap~FrameState=} opt_frameState Frame state.

View File

@@ -24,7 +24,6 @@ const tmpTransform = createTransform();
* structure, optimized for vector tile rendering and styling. Geometry access * structure, optimized for vector tile rendering and styling. Geometry access
* through the API is limited to getting the type and extent of the geometry. * through the API is limited to getting the type and extent of the geometry.
* *
* @constructor
* @param {module:ol/geom/GeometryType} type Geometry type. * @param {module:ol/geom/GeometryType} type Geometry type.
* @param {Array.<number>} flatCoordinates Flat coordinates. These always need * @param {Array.<number>} flatCoordinates Flat coordinates. These always need
* to be right-handed for polygons. * to be right-handed for polygons.

View File

@@ -3,22 +3,20 @@
*/ */
/** /**
* Base class for replay groups. * Base class for replay groups.
* @constructor
* @abstract
*/ */
class ReplayGroup { class ReplayGroup {
/** /**
* @abstract * @abstract
* @param {number|undefined} zIndex Z index. * @param {number|undefined} zIndex Z index.
* @param {module:ol/render/ReplayType} replayType Replay type. * @param {module:ol/render/ReplayType} replayType Replay type.
* @return {module:ol/render/VectorContext} Replay. * @return {module:ol/render/VectorContext} Replay.
*/ */
getReplay(zIndex, replayType) {} getReplay(zIndex, replayType) {}
/** /**
* @abstract * @abstract
* @return {boolean} Is empty. * @return {boolean} Is empty.
*/ */
isEmpty() {} isEmpty() {}
} }

View File

@@ -1,11 +1,10 @@
/** /**
* @module ol/render/VectorContext * @module ol/render/VectorContext
*/ */
/** /**
* Context for drawing geometries. A vector context is available on render * Context for drawing geometries. A vector context is available on render
* events and does not need to be constructed directly. * events and does not need to be constructed directly.
* @constructor
* @abstract
* @struct * @struct
* @api * @api
*/ */

View File

@@ -6,8 +6,6 @@ import CanvasReplay from '../canvas/Replay.js';
class CanvasImageReplay extends CanvasReplay { class CanvasImageReplay extends CanvasReplay {
/** /**
* @constructor
* @extends {module:ol/render/canvas/Replay}
* @param {number} tolerance Tolerance. * @param {number} tolerance Tolerance.
* @param {module:ol/extent~Extent} maxExtent Maximum extent. * @param {module:ol/extent~Extent} maxExtent Maximum extent.
* @param {number} resolution Resolution. * @param {number} resolution Resolution.

View File

@@ -26,8 +26,6 @@ class CanvasImmediateRenderer extends VectorContext {
* {@link module:ol/render/Event~RenderEvent} object associated with postcompose, precompose and * {@link module:ol/render/Event~RenderEvent} object associated with postcompose, precompose and
* render events emitted by layers and maps. * render events emitted by layers and maps.
* *
* @constructor
* @extends {module:ol/render/VectorContext}
* @param {CanvasRenderingContext2D} context Context. * @param {CanvasRenderingContext2D} context Context.
* @param {number} pixelRatio Pixel ratio. * @param {number} pixelRatio Pixel ratio.
* @param {module:ol/extent~Extent} extent Extent. * @param {module:ol/extent~Extent} extent Extent.

View File

@@ -6,8 +6,6 @@ import CanvasReplay from '../canvas/Replay.js';
class CanvasLineStringReplay extends CanvasReplay { class CanvasLineStringReplay extends CanvasReplay {
/** /**
* @constructor
* @extends {module:ol/render/canvas/Replay}
* @param {number} tolerance Tolerance. * @param {number} tolerance Tolerance.
* @param {module:ol/extent~Extent} maxExtent Maximum extent. * @param {module:ol/extent~Extent} maxExtent Maximum extent.
* @param {number} resolution Resolution. * @param {number} resolution Resolution.

View File

@@ -12,8 +12,6 @@ import CanvasReplay from '../canvas/Replay.js';
class CanvasPolygonReplay extends CanvasReplay { class CanvasPolygonReplay extends CanvasReplay {
/** /**
* @constructor
* @extends {module:ol/render/canvas/Replay}
* @param {number} tolerance Tolerance. * @param {number} tolerance Tolerance.
* @param {module:ol/extent~Extent} maxExtent Maximum extent. * @param {module:ol/extent~Extent} maxExtent Maximum extent.
* @param {number} resolution Resolution. * @param {number} resolution Resolution.

View File

@@ -43,8 +43,6 @@ const tmpTransform = createTransform();
class CanvasReplay extends VectorContext { class CanvasReplay extends VectorContext {
/** /**
* @constructor
* @extends {module:ol/render/VectorContext}
* @param {number} tolerance Tolerance. * @param {number} tolerance Tolerance.
* @param {module:ol/extent~Extent} maxExtent Maximum extent. * @param {module:ol/extent~Extent} maxExtent Maximum extent.
* @param {number} resolution Resolution. * @param {number} resolution Resolution.

View File

@@ -35,8 +35,6 @@ const BATCH_CONSTRUCTORS = {
class CanvasReplayGroup extends ReplayGroup { class CanvasReplayGroup extends ReplayGroup {
/** /**
* @constructor
* @extends {module:ol/render/ReplayGroup}
* @param {number} tolerance Tolerance. * @param {number} tolerance Tolerance.
* @param {module:ol/extent~Extent} maxExtent Max extent. * @param {module:ol/extent~Extent} maxExtent Max extent.
* @param {number} resolution Resolution. * @param {number} resolution Resolution.

View File

@@ -16,8 +16,6 @@ import TextPlacement from '../../style/TextPlacement.js';
class CanvasTextReplay extends CanvasReplay { class CanvasTextReplay extends CanvasReplay {
/** /**
* @constructor
* @extends {module:ol/render/canvas/Replay}
* @param {number} tolerance Tolerance. * @param {number} tolerance Tolerance.
* @param {module:ol/extent~Extent} maxExtent Maximum extent. * @param {module:ol/extent~Extent} maxExtent Maximum extent.
* @param {number} resolution Resolution. * @param {number} resolution Resolution.

View File

@@ -17,8 +17,6 @@ import WebGLBuffer from '../../webgl/Buffer.js';
class WebGLCircleReplay extends WebGLReplay { class WebGLCircleReplay extends WebGLReplay {
/** /**
* @constructor
* @extends {module:ol/render/webgl/Replay}
* @param {number} tolerance Tolerance. * @param {number} tolerance Tolerance.
* @param {module:ol/extent~Extent} maxExtent Max extent. * @param {module:ol/extent~Extent} maxExtent Max extent.
* @struct * @struct

View File

@@ -7,8 +7,6 @@ import WebGLBuffer from '../../webgl/Buffer.js';
class WebGLImageReplay extends WebGLTextureReplay { class WebGLImageReplay extends WebGLTextureReplay {
/** /**
* @constructor
* @extends {module:ol/render/webgl/TextureReplay}
* @param {number} tolerance Tolerance. * @param {number} tolerance Tolerance.
* @param {module:ol/extent~Extent} maxExtent Max extent. * @param {module:ol/extent~Extent} maxExtent Max extent.
* @struct * @struct

View File

@@ -10,8 +10,6 @@ import WebGLReplayGroup from '../webgl/ReplayGroup.js';
class WebGLImmediateRenderer extends VectorContext { class WebGLImmediateRenderer extends VectorContext {
/** /**
* @constructor
* @extends {module:ol/render/VectorContext}
* @param {module:ol/webgl/Context} context Context. * @param {module:ol/webgl/Context} context Context.
* @param {module:ol/coordinate~Coordinate} center Center. * @param {module:ol/coordinate~Coordinate} center Center.
* @param {number} resolution Resolution. * @param {number} resolution Resolution.

View File

@@ -37,8 +37,6 @@ const Instruction = {
class WebGLLineStringReplay extends WebGLReplay { class WebGLLineStringReplay extends WebGLReplay {
/** /**
* @constructor
* @extends {module:ol/render/webgl/Replay}
* @param {number} tolerance Tolerance. * @param {number} tolerance Tolerance.
* @param {module:ol/extent~Extent} maxExtent Max extent. * @param {module:ol/extent~Extent} maxExtent Max extent.
* @struct * @struct

View File

@@ -38,8 +38,6 @@ import WebGLBuffer from '../../webgl/Buffer.js';
class WebGLPolygonReplay extends WebGLReplay { class WebGLPolygonReplay extends WebGLReplay {
/** /**
* @constructor
* @extends {module:ol/render/webgl/Replay}
* @param {number} tolerance Tolerance. * @param {number} tolerance Tolerance.
* @param {module:ol/extent~Extent} maxExtent Max extent. * @param {module:ol/extent~Extent} maxExtent Max extent.
* @struct * @struct

View File

@@ -17,9 +17,6 @@ import {ARRAY_BUFFER, ELEMENT_ARRAY_BUFFER, TRIANGLES,
class WebGLReplay extends VectorContext { class WebGLReplay extends VectorContext {
/** /**
* @constructor
* @abstract
* @extends {module:ol/render/VectorContext}
* @param {number} tolerance Tolerance. * @param {number} tolerance Tolerance.
* @param {module:ol/extent~Extent} maxExtent Max extent. * @param {module:ol/extent~Extent} maxExtent Max extent.
* @struct * @struct

View File

@@ -34,8 +34,6 @@ const BATCH_CONSTRUCTORS = {
class WebGLReplayGroup extends ReplayGroup { class WebGLReplayGroup extends ReplayGroup {
/** /**
* @constructor
* @extends {module:ol/render/ReplayGroup}
* @param {number} tolerance Tolerance. * @param {number} tolerance Tolerance.
* @param {module:ol/extent~Extent} maxExtent Max extent. * @param {module:ol/extent~Extent} maxExtent Max extent.
* @param {number=} opt_renderBuffer Render buffer. * @param {number=} opt_renderBuffer Render buffer.

View File

@@ -24,8 +24,6 @@ import WebGLBuffer from '../../webgl/Buffer.js';
class WebGLTextReplay extends WebGLTextureReplay { class WebGLTextReplay extends WebGLTextureReplay {
/** /**
* @constructor
* @extends {module:ol/render/webgl/TextureReplay}
* @param {number} tolerance Tolerance. * @param {number} tolerance Tolerance.
* @param {module:ol/extent~Extent} maxExtent Max extent. * @param {module:ol/extent~Extent} maxExtent Max extent.
* @struct * @struct

View File

@@ -12,9 +12,6 @@ import {createTexture} from '../../webgl/Context.js';
class WebGLTextureReplay extends WebGLReplay { class WebGLTextureReplay extends WebGLReplay {
/** /**
* @constructor
* @abstract
* @extends {module:ol/render/webgl/Replay}
* @param {number} tolerance Tolerance. * @param {number} tolerance Tolerance.
* @param {module:ol/extent~Extent} maxExtent Max extent. * @param {module:ol/extent~Extent} maxExtent Max extent.
* @struct * @struct

View File

@@ -16,8 +16,6 @@ import {create as createTransform, compose as composeTransform} from '../../tran
class CanvasImageLayerRenderer extends IntermediateCanvasRenderer { class CanvasImageLayerRenderer extends IntermediateCanvasRenderer {
/** /**
* @constructor
* @extends {module:ol/renderer/canvas/IntermediateCanvas}
* @param {module:ol/layer/Image|module:ol/layer/Vector} imageLayer Image or vector layer. * @param {module:ol/layer/Image|module:ol/layer/Vector} imageLayer Image or vector layer.
* @api * @api
*/ */

View File

@@ -50,8 +50,6 @@ const VECTOR_REPLAYS = {
class CanvasVectorTileLayerRenderer extends CanvasTileLayerRenderer { class CanvasVectorTileLayerRenderer extends CanvasTileLayerRenderer {
/** /**
* @constructor
* @extends {module:ol/renderer/canvas/TileLayer}
* @param {module:ol/layer/VectorTile} layer VectorTile layer. * @param {module:ol/layer/VectorTile} layer VectorTile layer.
* @api * @api
*/ */

View File

@@ -23,8 +23,6 @@ class ReprojImage extends ImageBase {
* Class encapsulating single reprojected image. * Class encapsulating single reprojected image.
* See {@link module:ol/source/Image~ImageSource}. * See {@link module:ol/source/Image~ImageSource}.
* *
* @constructor
* @extends {module:ol/ImageBase}
* @param {module:ol/proj/Projection} sourceProj Source projection (of the data). * @param {module:ol/proj/Projection} sourceProj Source projection (of the data).
* @param {module:ol/proj/Projection} targetProj Target projection. * @param {module:ol/proj/Projection} targetProj Target projection.
* @param {module:ol/extent~Extent} targetExtent Target extent. * @param {module:ol/extent~Extent} targetExtent Target extent.

View File

@@ -24,8 +24,6 @@ class ReprojTile extends Tile {
* Class encapsulating single reprojected tile. * Class encapsulating single reprojected tile.
* See {@link module:ol/source/TileImage~TileImage}. * See {@link module:ol/source/TileImage~TileImage}.
* *
* @constructor
* @extends {module:ol/Tile}
* @param {module:ol/proj/Projection} sourceProj Source projection. * @param {module:ol/proj/Projection} sourceProj Source projection.
* @param {module:ol/tilegrid/TileGrid} sourceTileGrid Source tile grid. * @param {module:ol/tilegrid/TileGrid} sourceTileGrid Source tile grid.
* @param {module:ol/proj/Projection} targetProj Target projection. * @param {module:ol/proj/Projection} targetProj Target projection.

View File

@@ -40,15 +40,16 @@ const MAX_TRIANGLE_WIDTH = 0.25;
* @classdesc * @classdesc
* Class containing triangulation of the given target extent. * Class containing triangulation of the given target extent.
* Used for determining source data and the reprojection itself. * Used for determining source data and the reprojection itself.
*
* @param {module:ol/proj/Projection} sourceProj Source projection.
* @param {module:ol/proj/Projection} targetProj Target projection.
* @param {module:ol/extent~Extent} targetExtent Target extent to triangulate.
* @param {module:ol/extent~Extent} maxSourceExtent Maximal source extent that can be used.
* @param {number} errorThreshold Acceptable error (in source units).
* @constructor
*/ */
class Triangulation { class Triangulation {
/**
* @param {module:ol/proj/Projection} sourceProj Source projection.
* @param {module:ol/proj/Projection} targetProj Target projection.
* @param {module:ol/extent~Extent} targetExtent Target extent to triangulate.
* @param {module:ol/extent~Extent} maxSourceExtent Maximal source extent that can be used.
* @param {number} errorThreshold Acceptable error (in source units).
*/
constructor(sourceProj, targetProj, targetExtent, maxSourceExtent, errorThreshold) { constructor(sourceProj, targetProj, targetExtent, maxSourceExtent, errorThreshold) {
/** /**

View File

@@ -49,8 +49,6 @@ class BingMaps extends TileImage {
* @classdesc * @classdesc
* Layer source for Bing Maps tile data. * Layer source for Bing Maps tile data.
* *
* @constructor
* @extends {module:ol/source/TileImage}
* @param {module:ol/source/BingMaps~Options=} options Bing Maps options. * @param {module:ol/source/BingMaps~Options=} options Bing Maps options.
* @api * @api
*/ */

View File

@@ -36,8 +36,6 @@ class CartoDB extends XYZ {
* @classdesc * @classdesc
* Layer source for the CartoDB Maps API. * Layer source for the CartoDB Maps API.
* *
* @constructor
* @extends {module:ol/source/XYZ}
* @param {module:ol/source/CartoDB~Options=} options CartoDB options. * @param {module:ol/source/CartoDB~Options=} options CartoDB options.
* @api * @api
*/ */

View File

@@ -43,9 +43,7 @@ class Cluster extends VectorSource {
* geometries. For other geometry types, or if not all geometries should be * geometries. For other geometry types, or if not all geometries should be
* considered for clustering, a custom `geometryFunction` can be defined. * considered for clustering, a custom `geometryFunction` can be defined.
* *
* @constructor
* @param {module:ol/source/Cluster~Options=} options Cluster options. * @param {module:ol/source/Cluster~Options=} options Cluster options.
* @extends {module:ol/source/Vector}
* @api * @api
*/ */
constructor(options) { constructor(options) {

View File

@@ -48,8 +48,6 @@ class ImageSourceEvent extends Event {
* Events emitted by {@link module:ol/source/Image~ImageSource} instances are instances of this * Events emitted by {@link module:ol/source/Image~ImageSource} instances are instances of this
* type. * type.
* *
* @constructor
* @extends {module:ol/events/Event}
* @param {string} type Type. * @param {string} type Type.
* @param {module:ol/Image} image The image. * @param {module:ol/Image} image The image.
*/ */
@@ -86,9 +84,6 @@ class ImageSource extends Source {
* instantiated in apps. * instantiated in apps.
* Base class for sources providing a single image. * Base class for sources providing a single image.
* *
* @constructor
* @abstract
* @extends {module:ol/source/Source}
* @param {module:ol/source/Image~Options} options Single image source options. * @param {module:ol/source/Image~Options} options Single image source options.
* @api * @api
*/ */

View File

@@ -49,9 +49,7 @@ class ImageArcGISRest extends ImageSource {
* take advantage of ol image caching and use * take advantage of ol image caching and use
* {@link module:ol/source/TileArcGISRest} data source. * {@link module:ol/source/TileArcGISRest} data source.
* *
* @constructor
* @fires ol/source/Image~ImageSourceEvent * @fires ol/source/Image~ImageSourceEvent
* @extends {module:ol/source/Image}
* @param {module:ol/source/ImageArcGISRest~Options=} opt_options Image ArcGIS Rest Options. * @param {module:ol/source/ImageArcGISRest~Options=} opt_options Image ArcGIS Rest Options.
* @api * @api
*/ */

View File

@@ -47,8 +47,6 @@ class ImageCanvasSource extends ImageSource {
* @classdesc * @classdesc
* Base class for image sources where a canvas element is the image. * Base class for image sources where a canvas element is the image.
* *
* @constructor
* @extends {module:ol/source/Image}
* @param {module:ol/source/ImageCanvas~Options=} options ImageCanvas options. * @param {module:ol/source/ImageCanvas~Options=} options ImageCanvas options.
* @api * @api
*/ */

View File

@@ -37,9 +37,7 @@ class ImageMapGuide extends ImageSource {
* @classdesc * @classdesc
* Source for images from Mapguide servers * Source for images from Mapguide servers
* *
* @constructor
* @fires ol/source/Image~ImageSourceEvent * @fires ol/source/Image~ImageSourceEvent
* @extends {module:ol/source/Image}
* @param {module:ol/source/ImageMapGuide~Options=} options ImageMapGuide options. * @param {module:ol/source/ImageMapGuide~Options=} options ImageMapGuide options.
* @api * @api
*/ */

View File

@@ -33,8 +33,6 @@ class Static extends ImageSource {
* @classdesc * @classdesc
* A layer source for displaying a single, static image. * A layer source for displaying a single, static image.
* *
* @constructor
* @extends {module:ol/source/Image}
* @param {module:ol/source/ImageStatic~Options=} options ImageStatic options. * @param {module:ol/source/ImageStatic~Options=} options ImageStatic options.
* @api * @api
*/ */

View File

@@ -56,9 +56,7 @@ class ImageWMS extends ImageSource {
* @classdesc * @classdesc
* Source for WMS servers providing single, untiled images. * Source for WMS servers providing single, untiled images.
* *
* @constructor
* @fires ol/source/Image~ImageSourceEvent * @fires ol/source/Image~ImageSourceEvent
* @extends {module:ol/source/Image}
* @param {module:ol/source/ImageWMS~Options=} [opt_options] ImageWMS options. * @param {module:ol/source/ImageWMS~Options=} [opt_options] ImageWMS options.
* @api * @api
*/ */

View File

@@ -47,8 +47,6 @@ class OSM extends XYZ {
* @classdesc * @classdesc
* Layer source for the OpenStreetMap tile server. * Layer source for the OpenStreetMap tile server.
* *
* @constructor
* @extends {module:ol/source/XYZ}
* @param {module:ol/source/OSM~Options=} [opt_options] Open Street Map options. * @param {module:ol/source/OSM~Options=} [opt_options] Open Street Map options.
* @api * @api
*/ */

View File

@@ -79,8 +79,6 @@ class RasterSourceEvent extends Event {
* Events emitted by {@link module:ol/source/Raster} instances are instances of this * Events emitted by {@link module:ol/source/Raster} instances are instances of this
* type. * type.
* *
* @constructor
* @extends {module:ol/events/Event}
* @param {string} type Type. * @param {string} type Type.
* @param {module:ol/PluggableMap~FrameState} frameState The frame state. * @param {module:ol/PluggableMap~FrameState} frameState The frame state.
* @param {Object} data An object made available to operations. * @param {Object} data An object made available to operations.
@@ -142,8 +140,6 @@ class RasterSource extends ImageSource {
* {@link module:ol/source/Raster~Operation} function to transform input pixel values into * {@link module:ol/source/Raster~Operation} function to transform input pixel values into
* output pixel values. * output pixel values.
* *
* @constructor
* @extends {module:ol/source/Image}
* @fires ol/source/Raster~RasterSourceEvent * @fires ol/source/Raster~RasterSourceEvent
* @param {module:ol/source/Raster~Options=} options Options. * @param {module:ol/source/Raster~Options=} options Options.
* @api * @api

View File

@@ -46,9 +46,6 @@ class Source extends BaseObject {
* *
* A generic `change` event is triggered when the state of the source changes. * A generic `change` event is triggered when the state of the source changes.
* *
* @constructor
* @abstract
* @extends {module:ol/Object}
* @param {module:ol/source/Source~Options} options Source options. * @param {module:ol/source/Source~Options} options Source options.
* @api * @api
*/ */

View File

@@ -115,8 +115,6 @@ class Stamen extends XYZ {
* @classdesc * @classdesc
* Layer source for the Stamen tile server. * Layer source for the Stamen tile server.
* *
* @constructor
* @extends {module:ol/source/XYZ}
* @param {module:ol/source/Stamen~Options=} options Stamen options. * @param {module:ol/source/Stamen~Options=} options Stamen options.
* @api * @api
*/ */

View File

@@ -34,9 +34,6 @@ class TileSource extends Source {
* instantiated in apps. * instantiated in apps.
* Base class for sources providing images divided into a tile grid. * Base class for sources providing images divided into a tile grid.
* *
* @constructor
* @abstract
* @extends {module:ol/source/Source}
* @param {module:ol/source/Tile~Options=} options SourceTile source options. * @param {module:ol/source/Tile~Options=} options SourceTile source options.
* @api * @api
*/ */
@@ -311,8 +308,6 @@ TileSource.prototype.useTile = UNDEFINED;
* Events emitted by {@link module:ol/source/Tile~TileSource} instances are instances of this * Events emitted by {@link module:ol/source/Tile~TileSource} instances are instances of this
* type. * type.
* *
* @constructor
* @extends {module:ol/events/Event}
* @param {string} type Type. * @param {string} type Type.
* @param {module:ol/Tile} tile The tile. * @param {module:ol/Tile} tile The tile.
*/ */

View File

@@ -60,8 +60,6 @@ class TileArcGISRest extends TileImage {
* For cached ArcGIS services, better performance is available using the * For cached ArcGIS services, better performance is available using the
* {@link module:ol/source/XYZ~XYZ} data source. * {@link module:ol/source/XYZ~XYZ} data source.
* *
* @constructor
* @extends {module:ol/source/TileImage}
* @param {module:ol/source/TileArcGISRest~Options=} opt_options Tile ArcGIS Rest options. * @param {module:ol/source/TileArcGISRest~Options=} opt_options Tile ArcGIS Rest options.
* @api * @api
*/ */

View File

@@ -12,8 +12,6 @@ import {getKeyZXY} from '../tilecoord.js';
class LabeledTile extends Tile { class LabeledTile extends Tile {
/** /**
* @constructor
* @extends {module:ol/Tile}
* @param {module:ol/tilecoord~TileCoord} tileCoord Tile coordinate. * @param {module:ol/tilecoord~TileCoord} tileCoord Tile coordinate.
* @param {module:ol/size~Size} tileSize Tile size. * @param {module:ol/size~Size} tileSize Tile size.
* @param {string} text Text. * @param {string} text Text.
@@ -91,8 +89,6 @@ class TileDebug extends TileSource {
* *
* Uses Canvas context2d, so requires Canvas support. * Uses Canvas context2d, so requires Canvas support.
* *
* @constructor
* @extends {module:ol/source/Tile}
* @param {module:ol/source/TileDebug~Options=} options Debug tile options. * @param {module:ol/source/TileDebug~Options=} options Debug tile options.
* @api * @api
*/ */

View File

@@ -59,9 +59,7 @@ class TileImage extends UrlTile {
* @classdesc * @classdesc
* Base class for sources providing images divided into a tile grid. * Base class for sources providing images divided into a tile grid.
* *
* @constructor
* @fires module:ol/source/Tile~TileSourceEvent * @fires module:ol/source/Tile~TileSourceEvent
* @extends {module:ol/source/UrlTile}
* @param {module:ol/source/TileImage~Options=} options Image tile options. * @param {module:ol/source/TileImage~Options=} options Image tile options.
* @api * @api
*/ */

View File

@@ -49,8 +49,6 @@ class TileJSON extends TileImage {
* @classdesc * @classdesc
* Layer source for tile data in TileJSON format. * Layer source for tile data in TileJSON format.
* *
* @constructor
* @extends {module:ol/source/TileImage}
* @param {module:ol/source/TileJSON~Options=} options TileJSON options. * @param {module:ol/source/TileJSON~Options=} options TileJSON options.
* @api * @api
*/ */

View File

@@ -76,8 +76,6 @@ class TileWMS extends TileImage {
* @classdesc * @classdesc
* Layer source for tile data from WMS servers. * Layer source for tile data from WMS servers.
* *
* @constructor
* @extends {module:ol/source/TileImage}
* @param {module:ol/source/TileWMS~Options=} [opt_options] Tile WMS options. * @param {module:ol/source/TileWMS~Options=} [opt_options] Tile WMS options.
* @api * @api
*/ */

View File

@@ -18,8 +18,6 @@ import {createXYZ, extentFromProjection} from '../tilegrid.js';
/** /**
* @constructor
* @extends {module:ol/Tile}
* @param {module:ol/tilecoord~TileCoord} tileCoord Tile coordinate. * @param {module:ol/tilecoord~TileCoord} tileCoord Tile coordinate.
* @param {module:ol/TileState} state State. * @param {module:ol/TileState} state State.
* @param {string} src Image source URI. * @param {string} src Image source URI.
@@ -275,8 +273,6 @@ class UTFGrid extends TileSource {
* @classdesc * @classdesc
* Layer source for UTFGrid interaction data loaded from TileJSON format. * Layer source for UTFGrid interaction data loaded from TileJSON format.
* *
* @constructor
* @extends {module:ol/source/Tile}
* @param {module:ol/source/UTFGrid~Options=} options Source options. * @param {module:ol/source/UTFGrid~Options=} options Source options.
* @api * @api
*/ */

View File

@@ -32,10 +32,7 @@ class UrlTile extends TileSource {
* @classdesc * @classdesc
* Base class for sources providing tiles divided into a tile grid over http. * Base class for sources providing tiles divided into a tile grid over http.
* *
* @constructor
* @abstract
* @fires module:ol/source/TileEvent * @fires module:ol/source/TileEvent
* @extends {module:ol/source/Tile}
* @param {module:ol/source/UrlTile~Options=} options Image tile options. * @param {module:ol/source/UrlTile~Options=} options Image tile options.
*/ */
constructor(options) { constructor(options) {

View File

@@ -36,8 +36,6 @@ import RBush from '../structs/RBush.js';
* Events emitted by {@link module:ol/source/Vector} instances are instances of this * Events emitted by {@link module:ol/source/Vector} instances are instances of this
* type. * type.
* *
* @constructor
* @extends {module:ol/events/Event}
* @param {string} type Type. * @param {string} type Type.
* @param {module:ol/Feature=} opt_feature Feature. * @param {module:ol/Feature=} opt_feature Feature.
*/ */
@@ -157,8 +155,6 @@ class VectorSource extends Source {
* by this source are suitable for editing. See {@link module:ol/source/VectorTile~VectorTile} for * by this source are suitable for editing. See {@link module:ol/source/VectorTile~VectorTile} for
* vector data that is optimized for rendering. * vector data that is optimized for rendering.
* *
* @constructor
* @extends {module:ol/source/Source}
* @fires ol/source/Vector~VectorSourceEvent * @fires ol/source/Vector~VectorSourceEvent
* @param {module:ol/source/Vector~Options=} opt_options Vector source options. * @param {module:ol/source/Vector~Options=} opt_options Vector source options.
* @api * @api

View File

@@ -70,9 +70,7 @@ class VectorTile extends UrlTile {
* {@link module:ol/source/Vector} for vector sources that are suitable for feature * {@link module:ol/source/Vector} for vector sources that are suitable for feature
* editing. * editing.
* *
* @constructor
* @fires module:ol/source/Tile~TileSourceEvent * @fires module:ol/source/Tile~TileSourceEvent
* @extends {module:ol/source/UrlTile}
* @param {module:ol/source/VectorTile~Options=} options Vector tile options. * @param {module:ol/source/VectorTile~Options=} options Vector tile options.
* @api * @api
*/ */

View File

@@ -62,8 +62,6 @@ class WMTS extends TileImage {
* @classdesc * @classdesc
* Layer source for tile data from WMTS servers. * Layer source for tile data from WMTS servers.
* *
* @constructor
* @extends {module:ol/source/TileImage}
* @param {module:ol/source/WMTS~Options=} options WMTS options. * @param {module:ol/source/WMTS~Options=} options WMTS options.
* @api * @api
*/ */

View File

@@ -63,8 +63,6 @@ class XYZ extends TileImage {
* } * }
* *
* *
* @constructor
* @extends {module:ol/source/TileImage}
* @param {module:ol/source/XYZ~Options=} opt_options XYZ options. * @param {module:ol/source/XYZ~Options=} opt_options XYZ options.
* @api * @api
*/ */

View File

@@ -24,8 +24,6 @@ const TierSizeCalculation = {
/** /**
* @constructor
* @extends {module:ol/ImageTile}
* @param {module:ol/tilegrid/TileGrid} tileGrid TileGrid that the tile belongs to. * @param {module:ol/tilegrid/TileGrid} tileGrid TileGrid that the tile belongs to.
* @param {module:ol/tilecoord~TileCoord} tileCoord Tile coordinate. * @param {module:ol/tilecoord~TileCoord} tileCoord Tile coordinate.
* @param {module:ol/TileState} state State. * @param {module:ol/TileState} state State.
@@ -124,8 +122,6 @@ class Zoomify extends TileImage {
* Layer source for tile data in Zoomify format (both Zoomify and Internet * Layer source for tile data in Zoomify format (both Zoomify and Internet
* Imaging Protocol are supported). * Imaging Protocol are supported).
* *
* @constructor
* @extends {module:ol/source/TileImage}
* @param {module:ol/source/Zoomify~Options=} opt_options Options. * @param {module:ol/source/Zoomify~Options=} opt_options Options.
* @api * @api
*/ */

View File

@@ -22,8 +22,7 @@ class LRUCache extends EventTarget {
* Implements a Least-Recently-Used cache where the keys do not conflict with * Implements a Least-Recently-Used cache where the keys do not conflict with
* Object's properties (e.g. 'hasOwnProperty' is not allowed as a key). Expiring * Object's properties (e.g. 'hasOwnProperty' is not allowed as a key). Expiring
* items from the cache is the responsibility of the user. * items from the cache is the responsibility of the user.
* @constructor *
* @extends {module:ol/events/EventTarget}
* @fires module:ol/events/Event~Event * @fires module:ol/events/Event~Event
* @struct * @struct
* @template T * @template T

View File

@@ -11,16 +11,14 @@
*/ */
/**
* Creates an empty linked list structure.
*
* @constructor
* @struct
* @param {boolean=} opt_circular The last item is connected to the first one,
* and the first item to the last one. Default is true.
*/
class LinkedList { class LinkedList {
/**
* Creates an empty linked list structure.
*
* @param {boolean=} opt_circular The last item is connected to the first one,
* and the first item to the last one. Default is true.
*/
constructor(opt_circular) { constructor(opt_circular) {
/** /**

View File

@@ -11,23 +11,21 @@ import {clear} from '../obj.js';
export const DROP = Infinity; export const DROP = Infinity;
/**
* Priority queue.
*
* The implementation is inspired from the Closure Library's Heap class and
* Python's heapq module.
*
* @see http://closure-library.googlecode.com/svn/docs/closure_goog_structs_heap.js.source.html
* @see http://hg.python.org/cpython/file/2.7/Lib/heapq.py
*
* @constructor
* @param {function(T): number} priorityFunction Priority function.
* @param {function(T): string} keyFunction Key function.
* @struct
* @template T
*/
class PriorityQueue { class PriorityQueue {
/**
* Priority queue.
*
* The implementation is inspired from the Closure Library's Heap class and
* Python's heapq module.
*
* @see http://closure-library.googlecode.com/svn/docs/closure_goog_structs_heap.js.source.html
* @see http://hg.python.org/cpython/file/2.7/Lib/heapq.py
*
* @param {function(T): number} priorityFunction Priority function.
* @param {function(T): string} keyFunction Key function.
* @struct
* @template T
*/
constructor(priorityFunction, keyFunction) { constructor(priorityFunction, keyFunction) {
/** /**

View File

@@ -15,17 +15,16 @@ import {isEmpty} from '../obj.js';
* @property {Object} [value] * @property {Object} [value]
*/ */
/**
* Wrapper around the RBush by Vladimir Agafonkin.
*
* @constructor
* @param {number=} opt_maxEntries Max entries.
* @see https://github.com/mourner/rbush
* @struct
* @template T
*/
class RBush { class RBush {
/**
* Wrapper around the RBush by Vladimir Agafonkin.
*
* @param {number=} opt_maxEntries Max entries.
* @see https://github.com/mourner/rbush
* @struct
* @template T
*/
constructor(opt_maxEntries) { constructor(opt_maxEntries) {
/** /**

View File

@@ -21,24 +21,24 @@ import {createCanvasContext2D} from '../dom.js';
* @property {HTMLCanvasElement} image * @property {HTMLCanvasElement} image
*/ */
/**
* This class facilitates the creation of image atlases.
*
* Images added to an atlas will be rendered onto a single
* atlas canvas. The distribution of images on the canvas is
* managed with the bin packing algorithm described in:
* http://www.blackpawn.com/texts/lightmaps/
*
* @constructor
* @struct
* @param {number} size The size in pixels of the sprite image.
* @param {number} space The space in pixels between images.
* Because texture coordinates are float values, the edges of
* images might not be completely correct (in a way that the
* edges overlap when being rendered). To avoid this we add a
* padding around each image.
*/
class Atlas { class Atlas {
/**
* This class facilitates the creation of image atlases.
*
* Images added to an atlas will be rendered onto a single
* atlas canvas. The distribution of images on the canvas is
* managed with the bin packing algorithm described in:
* http://www.blackpawn.com/texts/lightmaps/
*
* @struct
* @param {number} size The size in pixels of the sprite image.
* @param {number} space The space in pixels between images.
* Because texture coordinates are float values, the edges of
* images might not be completely correct (in a way that the
* edges overlap when being rendered). To avoid this we add a
* padding around each image.
*/
constructor(size, space) { constructor(size, space) {
/** /**

View File

@@ -41,24 +41,23 @@ const INITIAL_ATLAS_SIZE = 256;
const MAX_ATLAS_SIZE = -1; const MAX_ATLAS_SIZE = -1;
/**
* Manages the creation of image atlases.
*
* Images added to this manager will be inserted into an atlas, which
* will be used for rendering.
* The `size` given in the constructor is the size for the first
* atlas. After that, when new atlases are created, they will have
* twice the size as the latest atlas (until `maxSize` is reached).
*
* If an application uses many images or very large images, it is recommended
* to set a higher `size` value to avoid the creation of too many atlases.
*
* @constructor
* @struct
* @api
* @param {module:ol/style/AtlasManager~Options=} opt_options Options.
*/
class AtlasManager { class AtlasManager {
/**
* Manages the creation of image atlases.
*
* Images added to this manager will be inserted into an atlas, which
* will be used for rendering.
* The `size` given in the constructor is the size for the first
* atlas. After that, when new atlases are created, they will have
* twice the size as the latest atlas (until `maxSize` is reached).
*
* If an application uses many images or very large images, it is recommended
* to set a higher `size` value to avoid the creation of too many atlases.
*
* @struct
* @api
* @param {module:ol/style/AtlasManager~Options=} opt_options Options.
*/
constructor(opt_options) { constructor(opt_options) {
const options = opt_options || {}; const options = opt_options || {};

View File

@@ -25,9 +25,7 @@ class CircleStyle extends RegularShape {
* @classdesc * @classdesc
* Set circle style for vector features. * Set circle style for vector features.
* *
* @constructor
* @param {module:ol/style/Circle~Options=} opt_options Options. * @param {module:ol/style/Circle~Options=} opt_options Options.
* @extends {module:ol/style/RegularShape}
* @api * @api
*/ */
constructor(opt_options) { constructor(opt_options) {

View File

@@ -16,12 +16,12 @@ import {asString} from '../color.js';
/** /**
* @classdesc * @classdesc
* Set fill style for vector features. * Set fill style for vector features.
*
* @constructor
* @param {module:ol/style/Fill~Options=} opt_options Options.
* @api
*/ */
class Fill { class Fill {
/**
* @param {module:ol/style/Fill~Options=} opt_options Options.
* @api
*/
constructor(opt_options) { constructor(opt_options) {
const options = opt_options || {}; const options = opt_options || {};

View File

@@ -57,9 +57,7 @@ class Icon extends ImageStyle {
* @classdesc * @classdesc
* Set icon style for vector features. * Set icon style for vector features.
* *
* @constructor
* @param {module:ol/style/Icon~Options=} opt_options Options. * @param {module:ol/style/Icon~Options=} opt_options Options.
* @extends {module:ol/style/Image}
* @api * @api
*/ */
constructor(opt_options) { constructor(opt_options) {

View File

@@ -11,14 +11,12 @@ import {shared as iconImageCache} from '../style/IconImageCache.js';
class IconImage extends EventTarget { class IconImage extends EventTarget {
/** /**
* @constructor
* @param {HTMLImageElement|HTMLCanvasElement} image Image. * @param {HTMLImageElement|HTMLCanvasElement} image Image.
* @param {string|undefined} src Src. * @param {string|undefined} src Src.
* @param {module:ol/size~Size} size Size. * @param {module:ol/size~Size} size Size.
* @param {?string} crossOrigin Cross origin. * @param {?string} crossOrigin Cross origin.
* @param {module:ol/ImageState} imageState Image state. * @param {module:ol/ImageState} imageState Image state.
* @param {module:ol/color~Color} color Color. * @param {module:ol/color~Color} color Color.
* @extends {module:ol/events/EventTarget}
*/ */
constructor(image, src, size, crossOrigin, imageState, color) { constructor(image, src, size, crossOrigin, imageState, color) {

View File

@@ -5,7 +5,6 @@ import {asString} from '../color.js';
/** /**
* Singleton class. Available through {@link module:ol/style/IconImageCache~shared}. * Singleton class. Available through {@link module:ol/style/IconImageCache~shared}.
* @constructor
*/ */
class IconImageCache { class IconImageCache {
constructor() { constructor() {

View File

@@ -18,13 +18,12 @@
* A base class used for creating subclasses and not instantiated in * A base class used for creating subclasses and not instantiated in
* apps. Base class for {@link module:ol/style/Icon~Icon}, {@link module:ol/style/Circle~CircleStyle} and * apps. Base class for {@link module:ol/style/Icon~Icon}, {@link module:ol/style/Circle~CircleStyle} and
* {@link module:ol/style/RegularShape~RegularShape}. * {@link module:ol/style/RegularShape~RegularShape}.
*
* @constructor
* @abstract
* @param {module:ol/style/Image~Options} options Options.
* @api
*/ */
class ImageStyle { class ImageStyle {
/**
* @param {module:ol/style/Image~Options} options Options.
* @api
*/
constructor(options) { constructor(options) {
/** /**

View File

@@ -53,9 +53,7 @@ class RegularShape extends ImageStyle {
* a regular polygon when `radius` is provided, or a star when `radius1` and * a regular polygon when `radius` is provided, or a star when `radius1` and
* `radius2` are provided. * `radius2` are provided.
* *
* @constructor
* @param {module:ol/style/RegularShape~Options} options Options. * @param {module:ol/style/RegularShape~Options} options Options.
* @extends {module:ol/style/Image}
* @api * @api
*/ */
constructor(options) { constructor(options) {

View File

@@ -26,12 +26,13 @@ import {getUid} from '../util.js';
* Note that the defaults given are the Canvas defaults, which will be used if * Note that the defaults given are the Canvas defaults, which will be used if
* option is not defined. The `get` functions return whatever was entered in * option is not defined. The `get` functions return whatever was entered in
* the options; they will not return the default. * the options; they will not return the default.
*
* @constructor
* @param {module:ol/style/Stroke~Options=} opt_options Options.
* @api
*/ */
class Stroke { class Stroke {
/**
* @param {module:ol/style/Stroke~Options=} opt_options Options.
* @api
*/
constructor(opt_options) { constructor(opt_options) {
const options = opt_options || {}; const options = opt_options || {};

View File

@@ -143,13 +143,13 @@ import Stroke from '../style/Stroke.js';
* Container for vector feature rendering styles. Any changes made to the style * Container for vector feature rendering styles. Any changes made to the style
* or its children through `set*()` methods will not take effect until the * or its children through `set*()` methods will not take effect until the
* feature or layer that uses the style is re-rendered. * feature or layer that uses the style is re-rendered.
*
* @constructor
* @struct
* @param {module:ol/style/Style~Options=} opt_options Style options.
* @api
*/ */
class Style { class Style {
/**
* @param {module:ol/style/Style~Options=} opt_options Style options.
* @api
*/
constructor(opt_options) { constructor(opt_options) {
const options = opt_options || {}; const options = opt_options || {};

View File

@@ -48,12 +48,13 @@ const DEFAULT_FILL_COLOR = '#333';
/** /**
* @classdesc * @classdesc
* Set text style for vector features. * Set text style for vector features.
*
* @constructor
* @param {module:ol/style/Text~Options=} opt_options Options.
* @api
*/ */
class Text { class Text {
/**
* @param {module:ol/style/Text~Options=} opt_options Options.
* @api
*/
constructor(opt_options) { constructor(opt_options) {
const options = opt_options || {}; const options = opt_options || {};

View File

@@ -48,13 +48,13 @@ const tmpTileCoord = [0, 0, 0];
* @classdesc * @classdesc
* Base class for setting the grid pattern for sources accessing tiled-image * Base class for setting the grid pattern for sources accessing tiled-image
* servers. * servers.
*
* @constructor
* @param {module:ol/tilegrid/TileGrid~Options} options Tile grid options.
* @struct
* @api
*/ */
class TileGrid { class TileGrid {
/**
* @param {module:ol/tilegrid/TileGrid~Options} options Tile grid options.
* @api
*/
constructor(options) { constructor(options) {
/** /**

View File

@@ -50,8 +50,6 @@ class WMTSTileGrid extends TileGrid {
* @classdesc * @classdesc
* Set the grid pattern for sources accessing WMTS tiled-image servers. * Set the grid pattern for sources accessing WMTS tiled-image servers.
* *
* @constructor
* @extends {module:ol/tilegrid/TileGrid}
* @param {module:ol/tilegrid/WMTS~Options} options WMTS options. * @param {module:ol/tilegrid/WMTS~Options} options WMTS options.
* @struct * @struct
* @api * @api

View File

@@ -21,8 +21,6 @@ import ContextEventType from '../webgl/ContextEventType.js';
/** /**
* @classdesc * @classdesc
* A WebGL context for accessing low-level WebGL capabilities. * A WebGL context for accessing low-level WebGL capabilities.
*
* @extends {module:ol/Disposable}
*/ */
class WebGLContext extends Disposable { class WebGLContext extends Disposable {

View File

@@ -5,9 +5,6 @@
import {FRAGMENT_SHADER} from '../webgl.js'; import {FRAGMENT_SHADER} from '../webgl.js';
import WebGLShader from '../webgl/Shader.js'; import WebGLShader from '../webgl/Shader.js';
/**
* @extends {module:ol/webgl/Shader}
*/
class WebGLFragment extends WebGLShader { class WebGLFragment extends WebGLShader {
/** /**

View File

@@ -5,9 +5,6 @@
import {VERTEX_SHADER} from '../webgl.js'; import {VERTEX_SHADER} from '../webgl.js';
import WebGLShader from '../webgl/Shader.js'; import WebGLShader from '../webgl/Shader.js';
/**
* @extends {module:ol/webgl/Shader}
*/
class WebGLVertex extends WebGLShader { class WebGLVertex extends WebGLShader {
/** /**

View File

@@ -13,8 +13,6 @@ import TileGrid from '../../../../src/ol/tilegrid/TileGrid.js';
* Tile source for tests that uses a EPSG:4326 based grid with 4 resolutions and * Tile source for tests that uses a EPSG:4326 based grid with 4 resolutions and
* 256x256 tiles. * 256x256 tiles.
* *
* @constructor
* @extends {ol.source.Tile}
* @param {Object.<string, ol.TileState>} tileStates Lookup of tile key to * @param {Object.<string, ol.TileState>} tileStates Lookup of tile key to
* tile state. * tile state.
*/ */