Move top-level typedefs to typedefs.js
With one exception, those directly in the `ol` namespace can be moved without problem. Some left-over goog.requires are also removed.
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
// causes occasional loss of precision and rounding errors, especially in the
|
||||
// alpha channel.
|
||||
|
||||
goog.provide('ol.Color');
|
||||
goog.provide('ol.color');
|
||||
|
||||
goog.require('goog.asserts');
|
||||
@@ -13,17 +12,6 @@ goog.require('ol');
|
||||
goog.require('ol.math');
|
||||
|
||||
|
||||
/**
|
||||
* A color represented as a short array [red, green, blue, alpha].
|
||||
* red, green, and blue should be integers in the range 0..255 inclusive.
|
||||
* alpha should be a float in the range 0..1 inclusive. If no alpha value is
|
||||
* given then `1` will be used.
|
||||
* @typedef {Array.<number>}
|
||||
* @api
|
||||
*/
|
||||
ol.Color;
|
||||
|
||||
|
||||
/**
|
||||
* This RegExp matches # followed by 3 or 6 hex digits.
|
||||
* @const
|
||||
|
||||
Reference in New Issue
Block a user