Shorter module paths for default exports
This commit is contained in:
@@ -13,7 +13,7 @@ import Triangulation from '../reproj/Triangulation.js';
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {function(module:ol/extent~Extent, number, number) : module:ol/ImageBase~ImageBase} FunctionType
|
||||
* @typedef {function(module:ol/extent~Extent, number, number) : module:ol/ImageBase} FunctionType
|
||||
*/
|
||||
|
||||
|
||||
@@ -23,9 +23,9 @@ import Triangulation from '../reproj/Triangulation.js';
|
||||
* See {@link module:ol/source/Image~ImageSource}.
|
||||
*
|
||||
* @constructor
|
||||
* @extends {module:ol/ImageBase~ImageBase}
|
||||
* @param {module:ol/proj/Projection~Projection} sourceProj Source projection (of the data).
|
||||
* @param {module:ol/proj/Projection~Projection} targetProj Target projection.
|
||||
* @extends {module:ol/ImageBase}
|
||||
* @param {module:ol/proj/Projection} sourceProj Source projection (of the data).
|
||||
* @param {module:ol/proj/Projection} targetProj Target projection.
|
||||
* @param {module:ol/extent~Extent} targetExtent Target extent.
|
||||
* @param {number} targetResolution Target resolution.
|
||||
* @param {number} pixelRatio Pixel ratio.
|
||||
@@ -37,7 +37,7 @@ const ReprojImage = function(sourceProj, targetProj,
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {module:ol/proj/Projection~Projection}
|
||||
* @type {module:ol/proj/Projection}
|
||||
*/
|
||||
this.targetProj_ = targetProj;
|
||||
|
||||
@@ -59,7 +59,7 @@ const ReprojImage = function(sourceProj, targetProj,
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {!module:ol/reproj/Triangulation~Triangulation}
|
||||
* @type {!module:ol/reproj/Triangulation}
|
||||
*/
|
||||
this.triangulation_ = new Triangulation(
|
||||
sourceProj, targetProj, limitedTargetExtent, this.maxSourceExtent_,
|
||||
@@ -81,7 +81,7 @@ const ReprojImage = function(sourceProj, targetProj,
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {module:ol/ImageBase~ImageBase}
|
||||
* @type {module:ol/ImageBase}
|
||||
*/
|
||||
this.sourceImage_ =
|
||||
getImageFunction(sourceExtent, sourceResolution, pixelRatio);
|
||||
@@ -138,7 +138,7 @@ ReprojImage.prototype.getImage = function() {
|
||||
|
||||
|
||||
/**
|
||||
* @return {module:ol/proj/Projection~Projection} Projection.
|
||||
* @return {module:ol/proj/Projection} Projection.
|
||||
*/
|
||||
ReprojImage.prototype.getProjection = function() {
|
||||
return this.targetProj_;
|
||||
|
||||
+10
-10
@@ -14,7 +14,7 @@ import Triangulation from '../reproj/Triangulation.js';
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {function(number, number, number, number) : module:ol/Tile~Tile} FunctionType
|
||||
* @typedef {function(number, number, number, number) : module:ol/Tile} FunctionType
|
||||
*/
|
||||
|
||||
|
||||
@@ -24,11 +24,11 @@ import Triangulation from '../reproj/Triangulation.js';
|
||||
* See {@link module:ol/source/TileImage~TileImage}.
|
||||
*
|
||||
* @constructor
|
||||
* @extends {module:ol/Tile~Tile}
|
||||
* @param {module:ol/proj/Projection~Projection} sourceProj Source projection.
|
||||
* @param {module:ol/tilegrid/TileGrid~TileGrid} sourceTileGrid Source tile grid.
|
||||
* @param {module:ol/proj/Projection~Projection} targetProj Target projection.
|
||||
* @param {module:ol/tilegrid/TileGrid~TileGrid} targetTileGrid Target tile grid.
|
||||
* @extends {module:ol/Tile}
|
||||
* @param {module:ol/proj/Projection} sourceProj Source projection.
|
||||
* @param {module:ol/tilegrid/TileGrid} sourceTileGrid Source tile grid.
|
||||
* @param {module:ol/proj/Projection} targetProj Target projection.
|
||||
* @param {module: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.
|
||||
* @param {number} pixelRatio Pixel ratio.
|
||||
@@ -70,13 +70,13 @@ const ReprojTile = function(sourceProj, sourceTileGrid,
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {module:ol/tilegrid/TileGrid~TileGrid}
|
||||
* @type {module:ol/tilegrid/TileGrid}
|
||||
*/
|
||||
this.sourceTileGrid_ = sourceTileGrid;
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {module:ol/tilegrid/TileGrid~TileGrid}
|
||||
* @type {module:ol/tilegrid/TileGrid}
|
||||
*/
|
||||
this.targetTileGrid_ = targetTileGrid;
|
||||
|
||||
@@ -88,7 +88,7 @@ const ReprojTile = function(sourceProj, sourceTileGrid,
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {!Array.<module:ol/Tile~Tile>}
|
||||
* @type {!Array.<module:ol/Tile>}
|
||||
*/
|
||||
this.sourceTiles_ = [];
|
||||
|
||||
@@ -146,7 +146,7 @@ const ReprojTile = function(sourceProj, sourceTileGrid,
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {!module:ol/reproj/Triangulation~Triangulation}
|
||||
* @type {!module:ol/reproj/Triangulation}
|
||||
*/
|
||||
this.triangulation_ = new Triangulation(
|
||||
sourceProj, targetProj, limitedTargetExtent, maxSourceExtent,
|
||||
|
||||
@@ -41,8 +41,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 {module:ol/proj/Projection~Projection} sourceProj Source projection.
|
||||
* @param {module:ol/proj/Projection~Projection} targetProj Target projection.
|
||||
* @param {module:ol/proj/Projection} sourceProj Source projection.
|
||||
* @param {module:ol/proj/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).
|
||||
@@ -52,13 +52,13 @@ const Triangulation = function(sourceProj, targetProj, targetExtent,
|
||||
maxSourceExtent, errorThreshold) {
|
||||
|
||||
/**
|
||||
* @type {module:ol/proj/Projection~Projection}
|
||||
* @type {module:ol/proj/Projection}
|
||||
* @private
|
||||
*/
|
||||
this.sourceProj_ = sourceProj;
|
||||
|
||||
/**
|
||||
* @type {module:ol/proj/Projection~Projection}
|
||||
* @type {module:ol/proj/Projection}
|
||||
* @private
|
||||
*/
|
||||
this.targetProj_ = targetProj;
|
||||
|
||||
Reference in New Issue
Block a user