From abec4f4ba7a8e0c2aedfea419aeac452581ca525 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Tue, 7 Jun 2016 08:36:44 +0200 Subject: [PATCH] Fix ol.raster.Operation type and docs --- src/ol/typedefs.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/ol/typedefs.js b/src/ol/typedefs.js index 5bea318867..26338fbd2c 100644 --- a/src/ol/typedefs.js +++ b/src/ol/typedefs.js @@ -614,16 +614,17 @@ ol.proj.ProjectionLike; * returns an array of ouput data. * For `pixel` type operations, the function will be called with an array of * pixels, where each pixel is an array of four numbers (`[r, g, b, a]`) in the - * range of 0 - 255. It should return an array of the same. + * range of 0 - 255. It should return a single pixel array. * For `'image'` type operations, functions will be called with an array of * {@link ImageData https://developer.mozilla.org/en-US/docs/Web/API/ImageData} - * and should return an array of the same. The operations are called with a - * second "data" argument, which can be used for storage. The data object is - * accessible from raster events, where it can be initialized in + * and should return a single {@link ImageData + * https://developer.mozilla.org/en-US/docs/Web/API/ImageData}. The operations + * are called with a second "data" argument, which can be used for storage. The + * data object is accessible from raster events, where it can be initialized in * "beforeoperations" and accessed again in "afteroperations". * * @typedef {function((Array.>|Array.), Object): - * (Array.>|Array.)} + * (Array.|ImageData)} */ ol.raster.Operation;