Move ol.ReprojTriangle to ol/reproj/Triangulation
This commit is contained in:
@@ -7,6 +7,14 @@ import {modulo} from '../math.js';
|
|||||||
import {getTransform} from '../proj.js';
|
import {getTransform} from '../proj.js';
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Single triangle; consists of 3 source points and 3 target points.
|
||||||
|
* @typedef {Object} Triangle
|
||||||
|
* @property {Array.<module:ol/coordinate~Coordinate>} source
|
||||||
|
* @property {Array.<module:ol/coordinate~Coordinate>} target
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Maximum number of subdivision steps during raster reprojection triangulation.
|
* Maximum number of subdivision steps during raster reprojection triangulation.
|
||||||
* Prevents high memory usage and large number of proj4 calls (for certain
|
* Prevents high memory usage and large number of proj4 calls (for certain
|
||||||
@@ -85,7 +93,7 @@ const Triangulation = function(sourceProj, targetProj, targetExtent,
|
|||||||
this.errorThresholdSquared_ = errorThreshold * errorThreshold;
|
this.errorThresholdSquared_ = errorThreshold * errorThreshold;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {Array.<ol.ReprojTriangle>}
|
* @type {Array.<module:ol/reproj/Triangulation~Triangle>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
this.triangles_ = [];
|
this.triangles_ = [];
|
||||||
@@ -340,7 +348,7 @@ Triangulation.prototype.calculateSourceExtent = function() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {Array.<ol.ReprojTriangle>} Array of the calculated triangles.
|
* @return {Array.<module:ol/reproj/Triangulation~Triangle>} Array of the calculated triangles.
|
||||||
*/
|
*/
|
||||||
Triangulation.prototype.getTriangles = function() {
|
Triangulation.prototype.getTriangles = function() {
|
||||||
return this.triangles_;
|
return this.triangles_;
|
||||||
|
|||||||
@@ -181,15 +181,6 @@ ol.RasterOperation;
|
|||||||
ol.RegularShapeRenderOptions;
|
ol.RegularShapeRenderOptions;
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Single triangle; consists of 3 source points and 3 target points.
|
|
||||||
*
|
|
||||||
* @typedef {{source: Array.<module:ol/coordinate~Coordinate>,
|
|
||||||
* target: Array.<module:ol/coordinate~Coordinate>}}
|
|
||||||
*/
|
|
||||||
ol.ReprojTriangle;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Number of features; bounds/extent.
|
* Number of features; bounds/extent.
|
||||||
* @typedef {{numberOfFeatures: number,
|
* @typedef {{numberOfFeatures: number,
|
||||||
|
|||||||
Reference in New Issue
Block a user