diff --git a/src/ol/reproj/Triangulation.js b/src/ol/reproj/Triangulation.js index 3e41359e13..bcb6e4d121 100644 --- a/src/ol/reproj/Triangulation.js +++ b/src/ol/reproj/Triangulation.js @@ -7,6 +7,14 @@ import {modulo} from '../math.js'; import {getTransform} from '../proj.js'; +/** + * Single triangle; consists of 3 source points and 3 target points. + * @typedef {Object} Triangle + * @property {Array.} source + * @property {Array.} target + */ + + /** * Maximum number of subdivision steps during raster reprojection triangulation. * 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; /** - * @type {Array.} + * @type {Array.} * @private */ this.triangles_ = []; @@ -340,7 +348,7 @@ Triangulation.prototype.calculateSourceExtent = function() { /** - * @return {Array.} Array of the calculated triangles. + * @return {Array.} Array of the calculated triangles. */ Triangulation.prototype.getTriangles = function() { return this.triangles_; diff --git a/src/ol/typedefs.js b/src/ol/typedefs.js index c4003291a1..c310d79f04 100644 --- a/src/ol/typedefs.js +++ b/src/ol/typedefs.js @@ -181,15 +181,6 @@ ol.RasterOperation; ol.RegularShapeRenderOptions; -/** - * Single triangle; consists of 3 source points and 3 target points. - * - * @typedef {{source: Array., - * target: Array.}} - */ -ol.ReprojTriangle; - - /** * Number of features; bounds/extent. * @typedef {{numberOfFeatures: number,