Module type for ol.ImageState

This commit is contained in:
Frederic Junod
2018-03-19 09:31:18 +01:00
parent 3edbbf0b46
commit ded99ccad7
3 changed files with 6 additions and 6 deletions

View File

@@ -92,7 +92,7 @@ const Icon = function(opt_options) {
6); // A defined and non-empty `src` or `image` must be provided
/**
* @type {ol.ImageState}
* @type {module:ol/ImageState~ImageState}
*/
const imageState = options.src !== undefined ?
ImageState.IDLE : ImageState.LOADED;

View File

@@ -15,7 +15,7 @@ import {iconImageCache} from '../style.js';
* @param {string|undefined} src Src.
* @param {module:ol/size~Size} size Size.
* @param {?string} crossOrigin Cross origin.
* @param {ol.ImageState} imageState Image state.
* @param {module:ol/ImageState~ImageState} imageState Image state.
* @param {module:ol/color~Color} color Color.
* @extends {module:ol/events/EventTarget~EventTarget}
*/
@@ -61,7 +61,7 @@ const IconImage = function(image, src, size, crossOrigin, imageState, color) {
/**
* @private
* @type {ol.ImageState}
* @type {module:ol/ImageState~ImageState}
*/
this.imageState_ = imageState;
@@ -96,7 +96,7 @@ inherits(IconImage, EventTarget);
* @param {string} src Src.
* @param {module:ol/size~Size} size Size.
* @param {?string} crossOrigin Cross origin.
* @param {ol.ImageState} imageState Image state.
* @param {module:ol/ImageState~ImageState} imageState Image state.
* @param {module:ol/color~Color} color Color.
* @return {ol.style.IconImage} Icon image.
*/
@@ -169,7 +169,7 @@ IconImage.prototype.getImage = function(pixelRatio) {
/**
* @return {ol.ImageState} Image state.
* @return {module:ol/ImageState~ImageState} Image state.
*/
IconImage.prototype.getImageState = function() {
return this.imageState_;

View File

@@ -125,7 +125,7 @@ ImageStyle.prototype.getHitDetectionImage = function(pixelRatio) {};
/**
* @abstract
* @return {ol.ImageState} Image state.
* @return {module:ol/ImageState~ImageState} Image state.
*/
ImageStyle.prototype.getImageState = function() {};