Module types for ol/proj
This commit is contained in:
@@ -18,8 +18,8 @@ import Triangulation from '../reproj/Triangulation.js';
|
||||
*
|
||||
* @constructor
|
||||
* @extends {ol.ImageBase}
|
||||
* @param {ol.proj.Projection} sourceProj Source projection (of the data).
|
||||
* @param {ol.proj.Projection} targetProj Target projection.
|
||||
* @param {module:ol/proj/Projection~Projection} sourceProj Source projection (of the data).
|
||||
* @param {module:ol/proj/Projection~Projection} targetProj Target projection.
|
||||
* @param {module:ol/extent~Extent} targetExtent Target extent.
|
||||
* @param {number} targetResolution Target resolution.
|
||||
* @param {number} pixelRatio Pixel ratio.
|
||||
@@ -31,7 +31,7 @@ const ReprojImage = function(sourceProj, targetProj,
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {ol.proj.Projection}
|
||||
* @type {module:ol/proj/Projection~Projection}
|
||||
*/
|
||||
this.targetProj_ = targetProj;
|
||||
|
||||
@@ -132,7 +132,7 @@ ReprojImage.prototype.getImage = function() {
|
||||
|
||||
|
||||
/**
|
||||
* @return {ol.proj.Projection} Projection.
|
||||
* @return {module:ol/proj/Projection~Projection} Projection.
|
||||
*/
|
||||
ReprojImage.prototype.getProjection = function() {
|
||||
return this.targetProj_;
|
||||
|
||||
@@ -19,9 +19,9 @@ import Triangulation from '../reproj/Triangulation.js';
|
||||
*
|
||||
* @constructor
|
||||
* @extends {ol.Tile}
|
||||
* @param {ol.proj.Projection} sourceProj Source projection.
|
||||
* @param {module:ol/proj/Projection~Projection} sourceProj Source projection.
|
||||
* @param {ol.tilegrid.TileGrid} sourceTileGrid Source tile grid.
|
||||
* @param {ol.proj.Projection} targetProj Target projection.
|
||||
* @param {module:ol/proj/Projection~Projection} targetProj Target projection.
|
||||
* @param {ol.tilegrid.TileGrid} targetTileGrid Target tile grid.
|
||||
* @param {module:ol/tilecoord~TileCoord} tileCoord Coordinate of the tile.
|
||||
* @param {module:ol/tilecoord~TileCoord} wrappedTileCoord Coordinate of the tile wrapped in X.
|
||||
|
||||
@@ -33,8 +33,8 @@ const MAX_TRIANGLE_WIDTH = 0.25;
|
||||
* Class containing triangulation of the given target extent.
|
||||
* Used for determining source data and the reprojection itself.
|
||||
*
|
||||
* @param {ol.proj.Projection} sourceProj Source projection.
|
||||
* @param {ol.proj.Projection} targetProj Target projection.
|
||||
* @param {module:ol/proj/Projection~Projection} sourceProj Source projection.
|
||||
* @param {module:ol/proj/Projection~Projection} targetProj Target projection.
|
||||
* @param {module:ol/extent~Extent} targetExtent Target extent to triangulate.
|
||||
* @param {module:ol/extent~Extent} maxSourceExtent Maximal source extent that can be used.
|
||||
* @param {number} errorThreshold Acceptable error (in source units).
|
||||
@@ -44,13 +44,13 @@ const Triangulation = function(sourceProj, targetProj, targetExtent,
|
||||
maxSourceExtent, errorThreshold) {
|
||||
|
||||
/**
|
||||
* @type {ol.proj.Projection}
|
||||
* @type {module:ol/proj/Projection~Projection}
|
||||
* @private
|
||||
*/
|
||||
this.sourceProj_ = sourceProj;
|
||||
|
||||
/**
|
||||
* @type {ol.proj.Projection}
|
||||
* @type {module:ol/proj/Projection~Projection}
|
||||
* @private
|
||||
*/
|
||||
this.targetProj_ = targetProj;
|
||||
|
||||
Reference in New Issue
Block a user