Change 'Image' type to 'HTMLImageElement'

This commit is contained in:
Frederic Junod
2018-06-28 13:44:09 +02:00
parent 52e286b03c
commit 0c300d651f
12 changed files with 22 additions and 22 deletions

View File

@@ -50,7 +50,7 @@ const ImageWrapper = function(extent, resolution, pixelRatio, src, crossOrigin,
/**
* @private
* @type {HTMLCanvasElement|Image|HTMLVideoElement}
* @type {HTMLCanvasElement|HTMLImageElement|HTMLVideoElement}
*/
this.image_ = new Image();
if (crossOrigin !== null) {
@@ -139,7 +139,7 @@ ImageWrapper.prototype.load = function() {
/**
* @param {HTMLCanvasElement|Image|HTMLVideoElement} image Image.
* @param {HTMLCanvasElement|HTMLImageElement|HTMLVideoElement} image Image.
*/
ImageWrapper.prototype.setImage = function(image) {
this.image_ = image;