Rename _ol_reproj_Triangulation_ to Triangulation

This commit is contained in:
Tim Schaub
2018-01-11 10:31:07 -07:00
parent 1552f27a43
commit 84e93efe5c
4 changed files with 14 additions and 14 deletions

View File

@@ -9,7 +9,7 @@ import _ol_events_ from '../events.js';
import EventType from '../events/EventType.js';
import {getCenter, getIntersection, getHeight, getWidth} from '../extent.js';
import _ol_reproj_ from '../reproj.js';
import _ol_reproj_Triangulation_ from '../reproj/Triangulation.js';
import Triangulation from '../reproj/Triangulation.js';
/**
* @classdesc
@@ -55,7 +55,7 @@ var ReprojImage = function(sourceProj, targetProj,
* @private
* @type {!ol.reproj.Triangulation}
*/
this.triangulation_ = new _ol_reproj_Triangulation_(
this.triangulation_ = new Triangulation(
sourceProj, targetProj, limitedTargetExtent, this.maxSourceExtent_,
sourceResolution * errorThresholdInPixels);

View File

@@ -10,7 +10,7 @@ import EventType from '../events/EventType.js';
import {getArea, getCenter, getIntersection} from '../extent.js';
import {clamp} from '../math.js';
import _ol_reproj_ from '../reproj.js';
import _ol_reproj_Triangulation_ from '../reproj/Triangulation.js';
import Triangulation from '../reproj/Triangulation.js';
/**
* @classdesc
@@ -142,7 +142,7 @@ var ReprojTile = function(sourceProj, sourceTileGrid,
* @private
* @type {!ol.reproj.Triangulation}
*/
this.triangulation_ = new _ol_reproj_Triangulation_(
this.triangulation_ = new Triangulation(
sourceProj, targetProj, limitedTargetExtent, maxSourceExtent,
sourceResolution * errorThresholdInPixels);

View File

@@ -41,7 +41,7 @@ var MAX_TRIANGLE_WIDTH = 0.25;
* @param {number} errorThreshold Acceptable error (in source units).
* @constructor
*/
var _ol_reproj_Triangulation_ = function(sourceProj, targetProj, targetExtent,
var Triangulation = function(sourceProj, targetProj, targetExtent,
maxSourceExtent, errorThreshold) {
/**
@@ -189,7 +189,7 @@ var _ol_reproj_Triangulation_ = function(sourceProj, targetProj, targetExtent,
* @param {ol.Coordinate} cSrc The source c coordinate.
* @private
*/
_ol_reproj_Triangulation_.prototype.addTriangle_ = function(a, b, c,
Triangulation.prototype.addTriangle_ = function(a, b, c,
aSrc, bSrc, cSrc) {
this.triangles_.push({
source: [aSrc, bSrc, cSrc],
@@ -214,7 +214,7 @@ _ol_reproj_Triangulation_.prototype.addTriangle_ = function(a, b, c,
* @param {number} maxSubdivision Maximal allowed subdivision of the quad.
* @private
*/
_ol_reproj_Triangulation_.prototype.addQuad_ = function(a, b, c, d,
Triangulation.prototype.addQuad_ = function(a, b, c, d,
aSrc, bSrc, cSrc, dSrc, maxSubdivision) {
var sourceQuadExtent = boundingExtent([aSrc, bSrc, cSrc, dSrc]);
@@ -326,7 +326,7 @@ _ol_reproj_Triangulation_.prototype.addQuad_ = function(a, b, c, d,
*
* @return {ol.Extent} Calculated extent.
*/
_ol_reproj_Triangulation_.prototype.calculateSourceExtent = function() {
Triangulation.prototype.calculateSourceExtent = function() {
var extent = createEmpty();
this.triangles_.forEach(function(triangle, i, arr) {
@@ -343,7 +343,7 @@ _ol_reproj_Triangulation_.prototype.calculateSourceExtent = function() {
/**
* @return {Array.<ol.ReprojTriangle>} Array of the calculated triangles.
*/
_ol_reproj_Triangulation_.prototype.getTriangles = function() {
Triangulation.prototype.getTriangles = function() {
return this.triangles_;
};
export default _ol_reproj_Triangulation_;
export default Triangulation;