Move WebGL typedefs out of src/ol/typedefs.js
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user