Move WebGL typedefs out of src/ol/typedefs.js

This commit is contained in:
Frederic Junod
2018-03-23 13:22:51 +01:00
parent 5306490733
commit 873b01bba5
5 changed files with 75 additions and 71 deletions

View File

@@ -14,6 +14,14 @@ import WebGLTextureReplay from '../webgl/TextureReplay.js';
import AtlasManager from '../../style/AtlasManager.js';
import WebGLBuffer from '../../webgl/Buffer.js';
/**
* @typedef {Object} GlyphAtlas
* @property {module:ol/style/AtlasManager~AtlasManager} atlas
* @property {Object.<string, number>} width
* @property {number} height
*/
/**
* @constructor
* @extends {ol.render.webgl.TextureReplay}
@@ -100,13 +108,13 @@ const WebGLTextReplay = function(tolerance, maxExtent) {
/**
* @private
* @type {Object.<string, ol.WebglGlyphAtlas>}
* @type {Object.<string, module:ol/render/webgl/TextReplay~GlyphAtlas>}
*/
this.atlases_ = {};
/**
* @private
* @type {ol.WebglGlyphAtlas|undefined}
* @type {module:ol/render/webgl/TextReplay~GlyphAtlas|undefined}
*/
this.currAtlas_ = undefined;
@@ -397,7 +405,7 @@ WebGLTextReplay.prototype.setTextStyle = function(textStyle) {
/**
* @private
* @param {Object} state Font attributes.
* @return {ol.WebglGlyphAtlas} Glyph atlas.
* @return {module:ol/render/webgl/TextReplay~GlyphAtlas} Glyph atlas.
*/
WebGLTextReplay.prototype.getAtlas_ = function(state) {
let params = [];