This change adds a stability value to the api annotation, with 'experimental' as default value. enum, typedef and event annotations are never exportable, but api annotations are needed there to make them appear in the docs. Nested typedefs are no longer inlined recursively, because the resulting tables get too wide with the current template.
22 lines
377 B
JavaScript
22 lines
377 B
JavaScript
goog.provide('ol.Size');
|
|
goog.provide('ol.size');
|
|
|
|
|
|
/**
|
|
* An array of numbers representing a size: `[width, height]`.
|
|
* @typedef {Array.<number>}
|
|
* @todo api
|
|
*/
|
|
ol.Size;
|
|
|
|
|
|
/**
|
|
* Compares sizes for equality.
|
|
* @param {ol.Size} a Size.
|
|
* @param {ol.Size} b Size.
|
|
* @return {boolean} Equals.
|
|
*/
|
|
ol.size.equals = function(a, b) {
|
|
return a[0] == b[0] && a[1] == b[1];
|
|
};
|