From a05c4b01591ac7dd3a73c15be93b5d3eb197e75d Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Wed, 7 Mar 2018 13:54:43 +0100 Subject: [PATCH] New typedef syntax for TransformFunction --- src/ol/typedefs.js | 11 ----------- src/ol/types.js | 9 +++++++++ 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/src/ol/typedefs.js b/src/ol/typedefs.js index 09090ce105..88c9a8c950 100644 --- a/src/ol/typedefs.js +++ b/src/ol/typedefs.js @@ -646,17 +646,6 @@ ol.TileReplayState; ol.TileUrlFunctionType; -/** - * A transform function accepts an array of input coordinate values, an optional - * output array, and an optional dimension (default should be 2). The function - * transforms the input coordinate values, populates the output array, and - * returns the output array. - * - * @typedef {function(Array., Array.=, number=): Array.} - */ -ol.TransformFunction; - - /** * An animation configuration * diff --git a/src/ol/types.js b/src/ol/types.js index 72fcca14dc..50eda27d03 100644 --- a/src/ol/types.js +++ b/src/ol/types.js @@ -57,3 +57,12 @@ * @typedef {!Array.} Transform */ +/** + * A transform function accepts an array of input coordinate values, an optional + * output array, and an optional dimension (default should be 2). The function + * transforms the input coordinate values, populates the output array, and + * returns the output array. + * + * @typedef {function(Array., Array.=, number=): Array.} TransformFunction + * @api + */