Use Object<Foo, Bar> instead of Object.<Foo, Bar>

This commit is contained in:
Tim Schaub
2018-07-25 18:33:49 -07:00
parent d12ef20b12
commit affbf59b77
92 changed files with 334 additions and 334 deletions

View File

@@ -81,7 +81,7 @@ class WebGLImageReplay extends WebGLTextureReplay {
this.indicesBuffer = new WebGLBuffer(indices);
// create textures
/** @type {Object.<string, WebGLTexture>} */
/** @type {Object<string, WebGLTexture>} */
const texturePerImage = {};
this.createTextures(this.textures_, this.images_, texturePerImage, gl);

View File

@@ -160,7 +160,7 @@ class WebGLReplay extends VectorContext {
* @protected
* @param {WebGLRenderingContext} gl gl.
* @param {module:ol/webgl/Context} context Context.
* @param {Object.<string, boolean>} skippedFeaturesHash Ids of features to skip.
* @param {Object<string, boolean>} skippedFeaturesHash Ids of features to skip.
* @param {boolean} hitDetection Hit detection mode.
*/
drawReplay(gl, context, skippedFeaturesHash, hitDetection) {}
@@ -170,7 +170,7 @@ class WebGLReplay extends VectorContext {
* @protected
* @param {WebGLRenderingContext} gl gl.
* @param {module:ol/webgl/Context} context Context.
* @param {Object.<string, boolean>} skippedFeaturesHash Ids of features to skip.
* @param {Object<string, boolean>} skippedFeaturesHash Ids of features to skip.
* @param {function((module:ol/Feature|module:ol/render/Feature)): T|undefined} featureCallback Feature callback.
* @param {module:ol/extent~Extent=} opt_hitExtent Hit extent: Only features intersecting this extent are checked.
* @return {T|undefined} Callback result.
@@ -182,7 +182,7 @@ class WebGLReplay extends VectorContext {
* @protected
* @param {WebGLRenderingContext} gl gl.
* @param {module:ol/webgl/Context} context Context.
* @param {Object.<string, boolean>} skippedFeaturesHash Ids of features to skip.
* @param {Object<string, boolean>} skippedFeaturesHash Ids of features to skip.
* @param {function((module:ol/Feature|module:ol/render/Feature)): T|undefined} featureCallback Feature callback.
* @param {boolean} oneByOne Draw features one-by-one for the hit-detecion.
* @param {module:ol/extent~Extent=} opt_hitExtent Hit extent: Only features intersecting this extent are checked.
@@ -205,7 +205,7 @@ class WebGLReplay extends VectorContext {
* @protected
* @param {WebGLRenderingContext} gl gl.
* @param {module:ol/webgl/Context} context Context.
* @param {Object.<string, boolean>} skippedFeaturesHash Ids of features to skip.
* @param {Object<string, boolean>} skippedFeaturesHash Ids of features to skip.
* @param {function((module:ol/Feature|module:ol/render/Feature)): T|undefined} featureCallback Feature callback.
* @return {T|undefined} Callback result.
* @template T
@@ -230,7 +230,7 @@ class WebGLReplay extends VectorContext {
* @param {module:ol/size~Size} size Size.
* @param {number} pixelRatio Pixel ratio.
* @param {number} opacity Global opacity.
* @param {Object.<string, boolean>} skippedFeaturesHash Ids of features to skip.
* @param {Object<string, boolean>} skippedFeaturesHash Ids of features to skip.
* @param {function((module:ol/Feature|module:ol/render/Feature)): T|undefined} featureCallback Feature callback.
* @param {boolean} oneByOne Draw features one-by-one for the hit-detecion.
* @param {module:ol/extent~Extent=} opt_hitExtent Hit extent: Only features intersecting this extent are checked.

View File

@@ -19,7 +19,7 @@ import WebGLTextReplay from '../webgl/TextReplay.js';
const HIT_DETECTION_SIZE = [1, 1];
/**
* @type {Object.<module:ol/render/ReplayType,
* @type {Object<module:ol/render/ReplayType,
* function(new: module:ol/render/webgl/Replay, number,
* module:ol/extent~Extent)>}
*/
@@ -61,8 +61,8 @@ class WebGLReplayGroup extends ReplayGroup {
/**
* @private
* @type {!Object.<string,
* Object.<module:ol/render/ReplayType, module:ol/render/webgl/Replay>>}
* @type {!Object<string,
* Object<module:ol/render/ReplayType, module:ol/render/webgl/Replay>>}
*/
this.replaysByZIndex_ = {};
@@ -148,7 +148,7 @@ class WebGLReplayGroup extends ReplayGroup {
* @param {module:ol/size~Size} size Size.
* @param {number} pixelRatio Pixel ratio.
* @param {number} opacity Global opacity.
* @param {Object.<string, boolean>} skippedFeaturesHash Ids of features to skip.
* @param {Object<string, boolean>} skippedFeaturesHash Ids of features to skip.
*/
replay(
context,
@@ -188,7 +188,7 @@ class WebGLReplayGroup extends ReplayGroup {
* @param {module:ol/size~Size} size Size.
* @param {number} pixelRatio Pixel ratio.
* @param {number} opacity Global opacity.
* @param {Object.<string, boolean>} skippedFeaturesHash Ids of features to skip.
* @param {Object<string, boolean>} skippedFeaturesHash Ids of features to skip.
* @param {function((module:ol/Feature|module:ol/render/Feature)): T|undefined} featureCallback Feature callback.
* @param {boolean} oneByOne Draw features one-by-one for the hit-detecion.
* @param {module:ol/extent~Extent=} opt_hitExtent Hit extent: Only features intersecting
@@ -242,7 +242,7 @@ class WebGLReplayGroup extends ReplayGroup {
* @param {module:ol/size~Size} size Size.
* @param {number} pixelRatio Pixel ratio.
* @param {number} opacity Global opacity.
* @param {Object.<string, boolean>} skippedFeaturesHash Ids of features to skip.
* @param {Object<string, boolean>} skippedFeaturesHash Ids of features to skip.
* @param {function((module:ol/Feature|module:ol/render/Feature)): T|undefined} callback Feature callback.
* @return {T|undefined} Callback result.
* @template T
@@ -303,7 +303,7 @@ class WebGLReplayGroup extends ReplayGroup {
* @param {module:ol/size~Size} size Size.
* @param {number} pixelRatio Pixel ratio.
* @param {number} opacity Global opacity.
* @param {Object.<string, boolean>} skippedFeaturesHash Ids of features to skip.
* @param {Object<string, boolean>} skippedFeaturesHash Ids of features to skip.
* @return {boolean} Is there a feature at the given coordinate?
*/
hasFeatureAtCoordinate(

View File

@@ -17,7 +17,7 @@ import WebGLBuffer from '../../webgl/Buffer.js';
/**
* @typedef {Object} GlyphAtlas
* @property {module:ol/style/AtlasManager} atlas
* @property {Object.<string, number>} width
* @property {Object<string, number>} width
* @property {number} height
*/
@@ -106,7 +106,7 @@ class WebGLTextReplay extends WebGLTextureReplay {
/**
* @private
* @type {Object.<string, module:ol/render/webgl/TextReplay~GlyphAtlas>}
* @type {Object<string, module:ol/render/webgl/TextReplay~GlyphAtlas>}
*/
this.atlases_ = {};
@@ -313,7 +313,7 @@ class WebGLTextReplay extends WebGLTextureReplay {
this.indicesBuffer = new WebGLBuffer(this.indices);
// create textures
/** @type {Object.<string, WebGLTexture>} */
/** @type {Object<string, WebGLTexture>} */
const texturePerImage = {};
this.createTextures(this.textures_, this.images_, texturePerImage, gl);

View File

@@ -235,7 +235,7 @@ class WebGLTextureReplay extends WebGLReplay {
* @protected
* @param {Array<WebGLTexture>} textures Textures.
* @param {Array<HTMLCanvasElement|HTMLImageElement|HTMLVideoElement>} images Images.
* @param {!Object.<string, WebGLTexture>} texturePerImage Texture cache.
* @param {!Object<string, WebGLTexture>} texturePerImage Texture cache.
* @param {WebGLRenderingContext} gl Gl.
*/
createTextures(textures, images, texturePerImage, gl) {
@@ -351,7 +351,7 @@ class WebGLTextureReplay extends WebGLReplay {
* @protected
* @param {WebGLRenderingContext} gl gl.
* @param {module:ol/webgl/Context} context Context.
* @param {Object.<string, boolean>} skippedFeaturesHash Ids of features
* @param {Object<string, boolean>} skippedFeaturesHash Ids of features
* to skip.
* @param {Array<WebGLTexture>} textures Textures.
* @param {Array<number>} groupIndices Texture group indices.