New typedef syntax for Size

This commit is contained in:
Andreas Hocevar
2018-03-07 13:53:37 +01:00
parent 9ca2e4d01f
commit d324398b5b
2 changed files with 6 additions and 7 deletions

View File

@@ -475,13 +475,6 @@ ol.RotationConstraintType;
ol.SelectFilterFunction;
/**
* An array of numbers representing a size: `[width, height]`.
* @typedef {Array.<number>}
*/
ol.Size;
/**
* @typedef {{
* snapped: {boolean},

View File

@@ -45,6 +45,12 @@
* @api
*/
/**
* An array of numbers representing a size: `[width, height]`.
* @typedef {Array.<number>} Size
* @api
*/
/**
* An array representing an affine 2d transformation for use with
* {@link module:ol/transform} functions. The array has 6 elements.