New typedef syntax for TransformFunction

This commit is contained in:
Andreas Hocevar
2018-03-07 13:54:43 +01:00
parent d324398b5b
commit a05c4b0159
2 changed files with 9 additions and 11 deletions

View File

@@ -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.<number>, Array.<number>=, number=): Array.<number>}
*/
ol.TransformFunction;
/**
* An animation configuration
*

View File

@@ -57,3 +57,12 @@
* @typedef {!Array.<number>} 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.<number>, Array.<number>=, number=): Array.<number>} TransformFunction
* @api
*/