Replace type annotations

This commit is contained in:
Tim Schaub
2018-05-07 20:49:08 -06:00
parent 8e7c88d9a5
commit 34c1a6b9ba
19 changed files with 78 additions and 78 deletions
+4 -4
View File
@@ -19,21 +19,21 @@ const ImageSourceEventType = {
/**
* Triggered when an image starts loading.
* @event ol.source.Image.Event#imageloadstart
* @event ol/source/Image~ImageSourceEvent#imageloadstart
* @api
*/
IMAGELOADSTART: 'imageloadstart',
/**
* Triggered when an image finishes loading.
* @event ol.source.Image.Event#imageloadend
* @event ol/source/Image~ImageSourceEvent#imageloadend
* @api
*/
IMAGELOADEND: 'imageloadend',
/**
* Triggered if image loading results in an error.
* @event ol.source.Image.Event#imageloaderror
* @event ol/source/Image~ImageSourceEvent#imageloaderror
* @api
*/
IMAGELOADERROR: 'imageloaderror'
@@ -107,7 +107,7 @@ const ImageSource = function(options) {
/**
* @private
* @type {ol.reproj.Image}
* @type {module:ol/reproj/Image}
*/
this.reprojectedImage_ = null;
+2 -2
View File
@@ -19,7 +19,7 @@ import {appendParams} from '../uri.js';
* you must provide a `crossOrigin` value if you are using the WebGL renderer or if you want to
* access pixel data with the Canvas renderer. See
* {@link https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image} for more detail.
* @property {boolean} [hidpi=true] Use the `ol.Map#pixelRatio` value when requesting the image from
* @property {boolean} [hidpi=true] Use the `ol/Map#pixelRatio` value when requesting the image from
* the remote server.
* @property {ol.ImageLoadFunctionType} [imageLoadFunction] Optional function to load an image given
* a URL.
@@ -49,7 +49,7 @@ import {appendParams} from '../uri.js';
* {@link module:ol/source/TileArcGISRest} data source.
*
* @constructor
* @fires ol.source.Image.Event
* @fires ol/source/Image~ImageSourceEvent
* @extends {module:ol/source/Image}
* @param {module:ol/source/ImageArcGISRest~Options=} opt_options Image ArcGIS Rest Options.
* @api
+1 -1
View File
@@ -33,7 +33,7 @@ import {appendParams} from '../uri.js';
* Source for images from Mapguide servers
*
* @constructor
* @fires ol.source.Image.Event
* @fires ol/source/Image~ImageSourceEvent
* @extends {module:ol/source/Image}
* @param {module:ol/source/ImageMapGuide~Options=} options ImageMapGuide options.
* @api
+1 -1
View File
@@ -48,7 +48,7 @@ import {appendParams} from '../uri.js';
* Source for WMS servers providing single, untiled images.
*
* @constructor
* @fires ol.source.Image.Event
* @fires ol/source/Image~ImageSourceEvent
* @extends {module:ol/source/Image}
* @param {module:ol/source/ImageWMS~Options=} [opt_options] ImageWMS options.
* @api
+3 -3
View File
@@ -46,14 +46,14 @@ import {create as createTransform} from '../transform.js';
const RasterEventType = {
/**
* Triggered before operations are run.
* @event ol.source.Raster.Event#beforeoperations
* @event ol/source/Raster~RasterSourceEvent#beforeoperations
* @api
*/
BEFOREOPERATIONS: 'beforeoperations',
/**
* Triggered after operations are run.
* @event ol.source.Raster.Event#afteroperations
* @event ol/source/Raster~RasterSourceEvent#afteroperations
* @api
*/
AFTEROPERATIONS: 'afteroperations'
@@ -138,7 +138,7 @@ inherits(RasterSourceEvent, Event);
*
* @constructor
* @extends {module:ol/source/Image}
* @fires ol.source.Raster.Event
* @fires ol/source/Raster~RasterSourceEvent
* @param {module:ol/source/Raster~Options=} options Options.
* @api
*/
+1 -1
View File
@@ -151,7 +151,7 @@ inherits(VectorSourceEvent, Event);
*
* @constructor
* @extends {module:ol/source/Source}
* @fires ol.source.Vector.Event
* @fires ol/source/Vector~VectorSourceEvent
* @param {module:ol/source/Vector~Options=} opt_options Vector source options.
* @api
*/
+4 -4
View File
@@ -8,21 +8,21 @@
export default {
/**
* Triggered when a feature is added to the source.
* @event ol.source.Vector.Event#addfeature
* @event ol/source/Vector~VectorSourceEvent#addfeature
* @api
*/
ADDFEATURE: 'addfeature',
/**
* Triggered when a feature is updated.
* @event ol.source.Vector.Event#changefeature
* @event ol/source/Vector~VectorSourceEvent#changefeature
* @api
*/
CHANGEFEATURE: 'changefeature',
/**
* Triggered when the clear method is called on the source.
* @event ol.source.Vector.Event#clear
* @event ol/source/Vector~VectorSourceEvent#clear
* @api
*/
CLEAR: 'clear',
@@ -30,7 +30,7 @@ export default {
/**
* Triggered when a feature is removed from the source.
* See {@link ol.source.Vector#clear source.clear()} for exceptions.
* @event ol.source.Vector.Event#removefeature
* @event ol/source/Vector~VectorSourceEvent#removefeature
* @api
*/
REMOVEFEATURE: 'removefeature'