Type annotation corrections

This commit is contained in:
Tim Schaub
2018-05-07 22:16:08 -06:00
parent 5a9fad218b
commit 5707cdf3b6
4 changed files with 9 additions and 9 deletions

View File

@@ -146,9 +146,9 @@ WebGLReplay.prototype.finish = function(context) {};
* @param {module:ol/size~Size} size Size. * @param {module:ol/size~Size} size Size.
* @param {number} pixelRatio Pixel ratio. * @param {number} pixelRatio Pixel ratio.
* @return {module:ol/render/webgl/circlereplay/defaultshader/Locations| * @return {module:ol/render/webgl/circlereplay/defaultshader/Locations|
ol/render/webgl/linestringreplay/defaultshader/Locations| module:ol/render/webgl/linestringreplay/defaultshader/Locations|
ol/render/webgl/polygonreplay/defaultshader/Locations| module:ol/render/webgl/polygonreplay/defaultshader/Locations|
ol/render/webgl/texturereplay/defaultshader/Locations} Locations. module:ol/render/webgl/texturereplay/defaultshader/Locations} Locations.
*/ */
WebGLReplay.prototype.setUpProgram = function(gl, context, size, pixelRatio) {}; WebGLReplay.prototype.setUpProgram = function(gl, context, size, pixelRatio) {};
@@ -158,9 +158,9 @@ WebGLReplay.prototype.setUpProgram = function(gl, context, size, pixelRatio) {};
* @protected * @protected
* @param {WebGLRenderingContext} gl gl. * @param {WebGLRenderingContext} gl gl.
* @param {module:ol/render/webgl/circlereplay/defaultshader/Locations| * @param {module:ol/render/webgl/circlereplay/defaultshader/Locations|
ol/render/webgl/linestringreplay/defaultshader/Locations| module:ol/render/webgl/linestringreplay/defaultshader/Locations|
ol/render/webgl/polygonreplay/defaultshader/Locations| module:ol/render/webgl/polygonreplay/defaultshader/Locations|
ol/render/webgl/texturereplay/defaultshader/Locations} locations Locations. module:ol/render/webgl/texturereplay/defaultshader/Locations} locations Locations.
*/ */
WebGLReplay.prototype.shutDownProgram = function(gl, locations) {}; WebGLReplay.prototype.shutDownProgram = function(gl, locations) {};

View File

@@ -152,7 +152,7 @@ const RasterSource = function(options) {
/** /**
* @private * @private
* @type {module:ol/source/RasterOperationType} * @type {module:ol/source/Raster~RasterOperationType}
*/ */
this.operationType_ = options.operationType !== undefined ? this.operationType_ = options.operationType !== undefined ?
options.operationType : RasterOperationType.PIXEL; options.operationType : RasterOperationType.PIXEL;

View File

@@ -116,7 +116,7 @@ inherits(TileDebug, TileSource);
TileDebug.prototype.getTile = function(z, x, y) { TileDebug.prototype.getTile = function(z, x, y) {
const tileCoordKey = getKeyZXY(z, x, y); const tileCoordKey = getKeyZXY(z, x, y);
if (this.tileCache.containsKey(tileCoordKey)) { if (this.tileCache.containsKey(tileCoordKey)) {
return /** @type {!module:ol/source/LabeledTile} */ (this.tileCache.get(tileCoordKey)); return /** @type {!module:ol/source/TileDebug~LabeledTile} */ (this.tileCache.get(tileCoordKey));
} else { } else {
const tileSize = toSize(this.tileGrid.getTileSize(z)); const tileSize = toSize(this.tileGrid.getTileSize(z));
const tileCoord = [z, x, y]; const tileCoord = [z, x, y];

View File

@@ -384,7 +384,7 @@ UTFGrid.prototype.forDataAtCoordinateAndResolution = function(
if (this.tileGrid) { if (this.tileGrid) {
const tileCoord = this.tileGrid.getTileCoordForCoordAndResolution( const tileCoord = this.tileGrid.getTileCoordForCoordAndResolution(
coordinate, resolution); coordinate, resolution);
const tile = /** @type {!module:ol/source/CustomTile} */(this.getTile( const tile = /** @type {!module:ol/source/TileUTFGrid~CustomTile} */(this.getTile(
tileCoord[0], tileCoord[1], tileCoord[2], 1, this.getProjection())); tileCoord[0], tileCoord[1], tileCoord[2], 1, this.getProjection()));
tile.forDataAtCoordinate(coordinate, callback, null, opt_request); tile.forDataAtCoordinate(coordinate, callback, null, opt_request);
} else { } else {