Use named exports from ol/index.js

This commit is contained in:
Tim Schaub
2017-12-12 10:24:58 -07:00
parent fce644556b
commit 87295a74dd
250 changed files with 874 additions and 887 deletions

View File

@@ -1,7 +1,7 @@
/**
* @module ol/reproj/Image
*/
import _ol_ from '../index.js';
import {DEFAULT_RASTER_REPROJECTION_ERROR_THRESHOLD, inherits} from '../index.js';
import _ol_ImageBase_ from '../ImageBase.js';
import _ol_ImageState_ from '../ImageState.js';
import _ol_events_ from '../events.js';
@@ -48,7 +48,7 @@ var _ol_reproj_Image_ = function(sourceProj, targetProj,
var sourceResolution = _ol_reproj_.calculateSourceResolution(
sourceProj, targetProj, targetCenter, targetResolution);
var errorThresholdInPixels = _ol_.DEFAULT_RASTER_REPROJECTION_ERROR_THRESHOLD;
var errorThresholdInPixels = DEFAULT_RASTER_REPROJECTION_ERROR_THRESHOLD;
/**
* @private
@@ -108,7 +108,7 @@ var _ol_reproj_Image_ = function(sourceProj, targetProj,
_ol_ImageBase_.call(this, targetExtent, targetResolution, this.sourcePixelRatio_, state);
};
_ol_.inherits(_ol_reproj_Image_, _ol_ImageBase_);
inherits(_ol_reproj_Image_, _ol_ImageBase_);
/**

View File

@@ -1,7 +1,7 @@
/**
* @module ol/reproj/Tile
*/
import _ol_ from '../index.js';
import {DEFAULT_RASTER_REPROJECTION_ERROR_THRESHOLD, inherits} from '../index.js';
import _ol_Tile_ from '../Tile.js';
import _ol_TileState_ from '../TileState.js';
import _ol_events_ from '../events.js';
@@ -136,7 +136,7 @@ var _ol_reproj_Tile_ = function(sourceProj, sourceTileGrid,
}
var errorThresholdInPixels = opt_errorThreshold !== undefined ?
opt_errorThreshold : _ol_.DEFAULT_RASTER_REPROJECTION_ERROR_THRESHOLD;
opt_errorThreshold : DEFAULT_RASTER_REPROJECTION_ERROR_THRESHOLD;
/**
* @private
@@ -187,7 +187,7 @@ var _ol_reproj_Tile_ = function(sourceProj, sourceTileGrid,
}
};
_ol_.inherits(_ol_reproj_Tile_, _ol_Tile_);
inherits(_ol_reproj_Tile_, _ol_Tile_);
/**

View File

@@ -1,7 +1,7 @@
/**
* @module ol/reproj/Triangulation
*/
import _ol_ from '../index.js';
import {RASTER_REPROJECTION_MAX_SUBDIVISION, RASTER_REPROJECTION_MAX_TRIANGLE_WIDTH} from '../index.js';
import _ol_extent_ from '../extent.js';
import _ol_math_ from '../math.js';
import _ol_proj_ from '../proj.js';
@@ -112,7 +112,7 @@ var _ol_reproj_Triangulation_ = function(sourceProj, targetProj, targetExtent,
destinationTopLeft, destinationTopRight,
destinationBottomRight, destinationBottomLeft,
sourceTopLeft, sourceTopRight, sourceBottomRight, sourceBottomLeft,
_ol_.RASTER_REPROJECTION_MAX_SUBDIVISION);
RASTER_REPROJECTION_MAX_SUBDIVISION);
if (this.wrapsXInSource_) {
var leftBound = Infinity;
@@ -213,11 +213,11 @@ _ol_reproj_Triangulation_.prototype.addQuad_ = function(a, b, c, d,
var targetCoverageX =
_ol_extent_.getWidth(targetQuadExtent) / this.targetWorldWidth_;
needsSubdivision |=
targetCoverageX > _ol_.RASTER_REPROJECTION_MAX_TRIANGLE_WIDTH;
targetCoverageX > RASTER_REPROJECTION_MAX_TRIANGLE_WIDTH;
}
if (!wrapsX && this.sourceProj_.isGlobal() && sourceCoverageX) {
needsSubdivision |=
sourceCoverageX > _ol_.RASTER_REPROJECTION_MAX_TRIANGLE_WIDTH;
sourceCoverageX > RASTER_REPROJECTION_MAX_TRIANGLE_WIDTH;
}
}