Remove opt_ prefix

This commit is contained in:
Tim Schaub
2022-08-11 17:46:31 -06:00
committed by Tim Schaub
parent dd1edc37ca
commit 99612e7f9a
183 changed files with 1918 additions and 2079 deletions
+9 -9
View File
@@ -39,9 +39,9 @@ class ReprojTile extends Tile {
* @param {number} gutter Gutter of the source tiles.
* @param {FunctionType} getTileFunction
* Function returning source tiles (z, x, y, pixelRatio).
* @param {number} [opt_errorThreshold] Acceptable reprojection error (in px).
* @param {boolean} [opt_renderEdges] Render reprojection edges.
* @param {boolean} [opt_interpolate] Use linear interpolation when resampling.
* @param {number} [errorThreshold] Acceptable reprojection error (in px).
* @param {boolean} [renderEdges] Render reprojection edges.
* @param {boolean} [interpolate] Use linear interpolation when resampling.
*/
constructor(
sourceProj,
@@ -53,17 +53,17 @@ class ReprojTile extends Tile {
pixelRatio,
gutter,
getTileFunction,
opt_errorThreshold,
opt_renderEdges,
opt_interpolate
errorThreshold,
renderEdges,
interpolate
) {
super(tileCoord, TileState.IDLE, {interpolate: !!opt_interpolate});
super(tileCoord, TileState.IDLE, {interpolate: !!interpolate});
/**
* @private
* @type {boolean}
*/
this.renderEdges_ = opt_renderEdges !== undefined ? opt_renderEdges : false;
this.renderEdges_ = renderEdges !== undefined ? renderEdges : false;
/**
* @private
@@ -164,7 +164,7 @@ class ReprojTile extends Tile {
}
const errorThresholdInPixels =
opt_errorThreshold !== undefined ? opt_errorThreshold : ERROR_THRESHOLD;
errorThreshold !== undefined ? errorThreshold : ERROR_THRESHOLD;
/**
* @private
+4 -7
View File
@@ -54,7 +54,7 @@ class Triangulation {
* @param {import("../extent.js").Extent} targetExtent Target extent to triangulate.
* @param {import("../extent.js").Extent} maxSourceExtent Maximal source extent that can be used.
* @param {number} errorThreshold Acceptable error (in source units).
* @param {?number} opt_destinationResolution The (optional) resolution of the destination.
* @param {?number} destinationResolution The (optional) resolution of the destination.
*/
constructor(
sourceProj,
@@ -62,7 +62,7 @@ class Triangulation {
targetExtent,
maxSourceExtent,
errorThreshold,
opt_destinationResolution
destinationResolution
) {
/**
* @type {import("../proj/Projection.js").default}
@@ -165,16 +165,13 @@ class Triangulation {
*/
const maxSubdivision =
MAX_SUBDIVISION +
(opt_destinationResolution
(destinationResolution
? Math.max(
0,
Math.ceil(
Math.log2(
getArea(targetExtent) /
(opt_destinationResolution *
opt_destinationResolution *
256 *
256)
(destinationResolution * destinationResolution * 256 * 256)
)
)
)