From 2b1417df3f9200b68711883ecff77998fc345293 Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Wed, 16 Oct 2019 13:59:38 +0100 Subject: [PATCH] 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. --- src/ol/geom/Geometry.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ol/geom/Geometry.js b/src/ol/geom/Geometry.js index bab5f4f68b..bc6092d06b 100644 --- a/src/ol/geom/Geometry.js +++ b/src/ol/geom/Geometry.js @@ -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();