Commit Graph

34 Commits

Author SHA1 Message Date
Tim Schaub
4c0d857f41 Remove goog.isDef from colormatrix.js (-12 B) 2015-09-25 11:28:54 -06:00
Tim Schaub
c8e9525f3b Remove goog.isDef from attribution.js through color.js (-54 B) 2015-09-25 11:28:54 -06:00
Marc Jansen
b6a4188ce4 Fix and test ol.color.blend 2015-05-20 12:50:52 +02:00
Éric Lemoine
e45c44fa01 Add missing goog.provide's 2015-04-07 13:49:36 +02:00
Bart van den Eijnden
47ce127a10 Add assert messages for all assertions up until ol.renderer.vector. 2015-03-30 22:55:23 +02:00
Bart van den Eijnden
ccc7c1b9b7 Remove code that suggests that color arrays may be modified 2014-12-04 09:24:18 +01:00
Bart van den Eijnden
22e33519c8 Explain that return of ol.color.asArray should not be modified 2014-12-04 09:07:21 +01:00
Frederic Junod
fb1d7e0c50 Replace 'throw new Error' by 'goog.asserts.fail' 2014-08-21 15:22:01 +02:00
Peter Robins
d5e1c27fc1 Expand docs for color options 2014-08-18 14:37:38 +00:00
Peter Robins
2b1c96a7ea Add color to api docs 2014-07-16 19:50:06 +00:00
Tim Schaub
4cf5ab4620 Use @api annotation instead of @todo api 2014-07-05 15:41:14 -04:00
Frederic Junod
54ea8dc52b Mark the color argument to ol.color.transform non-nullable
Inside this function goog.vec.Mat4.multVec3 is called and and its
arguments must not be null.
2014-07-02 14:43:29 +02:00
Frederic Junod
b2ab73e78b Remove unused goog.require 2014-05-21 09:46:49 +02:00
Tim Schaub
24498fa9d0 Defines in a namespace that can be required
For consistency, all defines are in the ol namespace.  If they are to be moved to another namespace, they need to be requireable.
2014-04-30 09:14:10 -06:00
Andreas Hocevar
fbdbbfb7a7 Get rid of stability annotations and document stability with api
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.
2014-04-29 09:53:07 -06:00
Andreas Hocevar
c17ac0cae3 Greatly simplify and document the usage of JSDoc
This commit simplifies the exports.js plugin so it only relies
on the stability notes to generate the documentation, which
completely decouples it from the exportable API.

As a rule of thumb, whenever something has an 'api' annotation,
it should also have a 'stability' annotation. A more verbose
documentation of ol3 specific annotation usage is available in
the new 'apidoc/readme.md' file.

This commit also modifies all source files to implement these
usage suggestions.
2014-04-29 09:53:06 -06:00
Tim Schaub
fb497f5288 Annotations for exports 2014-04-29 09:53:05 -06:00
Éric Lemoine
9428fb109f Fix handling of the color cache 2014-02-20 11:26:02 +01:00
Éric Lemoine
9a68f27eae Correctry handle color cache size 2014-01-22 10:17:15 +01:00
Frederic Junod
b53ddf5b42 Create 'type' annotation for 'const' variables 2014-01-13 08:53:36 +01:00
oterral
1d9d67f524 Add ol.color.asArray and ol.color.asString exports 2014-01-09 14:14:27 +01:00
Tom Payne
7ee2747948 Always use goog.vec.Mat4.Number instead of goog.vec.Mat.AnyType 2014-01-06 09:29:36 +01:00
Tom Payne
8ed6d760f7 Improve type checking in ol.color.fromString 2014-01-06 09:29:36 +01:00
Tom Payne
c29c292efd Mark constant RegExps, thanks @fredj 2013-11-20 11:45:24 +01:00
Tom Payne
1fe9f25359 Correct order of jsdoc comments, thanks @fredj 2013-11-20 11:45:24 +01:00
Tom Payne
0746715231 Remove unused RegExp, thanks @fredj 2013-11-20 11:45:23 +01:00
Tom Payne
2ecd4013ea Improve type checking in ol.color 2013-11-20 11:45:23 +01:00
Tom Payne
6b61f45379 Remove support for 4- and 8- digit hex colors
These are not supported by canvas.
2013-11-20 11:44:49 +01:00
Tom Payne
6796b9735e Add ol.color.blend 2013-11-20 11:44:49 +01:00
Tom Payne
97745f06ac Allow named colors to be disabled 2013-11-20 11:44:49 +01:00
Tom Payne
47820440ed Add ol.color.stringOrColorEquals 2013-11-20 11:44:48 +01:00
Tom Payne
d882d00c65 Add ol.color.asArray and ol.color.asString 2013-11-20 11:44:48 +01:00
Tom Payne
02604745ca Add ol.color.equals 2013-11-20 11:44:48 +01:00
Tom Payne
e1ba9c0322 Move color matrix code into ol.color.Matrix 2013-11-20 11:44:48 +01:00