Revise the description of applyTransform

Revise the description of applyTransform and transformFn (loosely based on that used in ol/extent) to avoid any misunderstanding that the function is called inside a forEach method.
This commit is contained in:
mike-000
2019-10-16 13:59:38 +01:00
committed by GitHub
parent cfac31799b
commit 2b1417df3f

View File

@@ -229,12 +229,13 @@ class Geometry extends BaseObject {
}
/**
* Apply a transform function to each coordinate of the geometry.
* Apply a transform function to the coordinates of the geometry.
* The geometry is modified in place.
* If you do not want the geometry modified in place, first `clone()` it and
* then use this function on the clone.
* @abstract
* @param {import("../proj.js").TransformFunction} transformFn Transform.
* @param {import("../proj.js").TransformFunction} transformFn Transform function.
* Called with a flat array of geometry coordinates.
*/
applyTransform(transformFn) {
abstract();