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
|
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 ?
|
const imageState = options.src !== undefined ?
|
||||||
ImageState.IDLE : ImageState.LOADED;
|
ImageState.IDLE : ImageState.LOADED;
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import {iconImageCache} from '../style.js';
|
|||||||
* @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 {ol.ImageState} imageState Image state.
|
* @param {module:ol/ImageState~ImageState} imageState Image state.
|
||||||
* @param {module:ol/color~Color} color Color.
|
* @param {module:ol/color~Color} color Color.
|
||||||
* @extends {module:ol/events/EventTarget~EventTarget}
|
* @extends {module:ol/events/EventTarget~EventTarget}
|
||||||
*/
|
*/
|
||||||
@@ -61,7 +61,7 @@ const IconImage = function(image, src, size, crossOrigin, imageState, color) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {ol.ImageState}
|
* @type {module:ol/ImageState~ImageState}
|
||||||
*/
|
*/
|
||||||
this.imageState_ = imageState;
|
this.imageState_ = imageState;
|
||||||
|
|
||||||
@@ -96,7 +96,7 @@ inherits(IconImage, EventTarget);
|
|||||||
* @param {string} src Src.
|
* @param {string} 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 {ol.ImageState} imageState Image state.
|
* @param {module:ol/ImageState~ImageState} imageState Image state.
|
||||||
* @param {module:ol/color~Color} color Color.
|
* @param {module:ol/color~Color} color Color.
|
||||||
* @return {ol.style.IconImage} Icon image.
|
* @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() {
|
IconImage.prototype.getImageState = function() {
|
||||||
return this.imageState_;
|
return this.imageState_;
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ ImageStyle.prototype.getHitDetectionImage = function(pixelRatio) {};
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @abstract
|
* @abstract
|
||||||
* @return {ol.ImageState} Image state.
|
* @return {module:ol/ImageState~ImageState} Image state.
|
||||||
*/
|
*/
|
||||||
ImageStyle.prototype.getImageState = function() {};
|
ImageStyle.prototype.getImageState = function() {};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user