Module type for ol.ImageState
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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_;
|
||||
|
||||
@@ -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() {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user