Commit Graph

39 Commits

Author SHA1 Message Date
ahocevar
9163558511 Replace instanceof checks with other logic 2018-10-12 20:35:59 +02:00
Tim Schaub
ccfacc5ee6 Transformed types
Using the [ts.js codemod](https://gist.github.com/tschaub/1ea498c9d1e5268cf36d212b3949be4e):

    jscodeshift --transform ts.js src
2018-09-05 08:05:29 -06:00
Tim Schaub
affbf59b77 Use Object<Foo, Bar> instead of Object.<Foo, Bar> 2018-07-25 18:33:49 -07:00
Tim Schaub
d12ef20b12 Use Array<Foo> instead of Array.<Foo> 2018-07-25 18:32:43 -07:00
ahocevar
440d1ad3e1 Shorter module paths for default exports 2018-04-25 17:25:39 +02:00
Andreas Hocevar
95d6251dbb Get rid of olx.js and typedef.js typedefs for ol 2018-03-08 18:57:24 +01:00
Frédéric Junod
98ebc570e9 Merge pull request #7698 from fredj/test_typo
Fix for loop in color test
2018-01-18 08:35:24 +01:00
Frederic Junod
4c5ca75ca6 Better variables scoping 2018-01-17 10:54:18 +01:00
Frederic Junod
66d9ef872c Fix color regexp to not match 7 hex digit 2018-01-16 09:08:16 +01:00
Frederic Junod
974f9391f2 Normalize color in place to reduce garbage generation 2018-01-16 08:39:06 +01:00
Frederic Junod
bb0904f20d Fix invalid named color detection
If the named color is invalid, the value is not stored into the property.
2018-01-16 08:37:53 +01:00
Tim Schaub
ad62739a6e Use blocked scoped variables
In addition to using const and let, this also upgrades our linter config and removes lint (mostly whitespace).
2018-01-12 00:50:30 -07:00
Ron Young
a11208d126 rename _ol_math_ imports 2017-12-20 19:31:00 -06:00
Marc Jansen
295c2973b5 Named exports from ol/color module 2017-12-19 13:56:54 +01:00
Frederic Junod
9349ba5403 Named export for ol/asserts 2017-12-18 10:33:41 +01:00
Tim Schaub
7f47883c48 Transformed 2017-12-12 06:53:18 -07:00
Tim Schaub
6668d03122 Add support for hex colors with alpha 2017-11-08 09:53:22 -07:00
Marc Jansen
7d6929c710 Manual adjustment of indentation 2017-06-20 10:41:03 +02:00
Marc Jansen
d0ef05977b Autofix indentation issues (eslint --fix) 2017-06-19 11:58:00 +02:00
Marc Jansen
88cfdb435c Use indexOf instead of RegExp as suggested 2016-11-29 10:55:04 +01:00
Marc Jansen
02d41caa8a Simplify color parsing and allow more decimals 2016-11-23 16:06:08 +01:00
Marc Jansen
9af73a1588 Allow max 16 decimals for alpha when parsing rgba 2016-11-14 08:40:39 +01:00
Frederic Junod
932269c8b6 Remove unused ol.color.isValid function 2016-09-15 16:33:42 +02:00
Tim Schaub
651c6959ab Remove ol.global 2016-09-01 23:13:00 -06:00
Frederic Junod
00a50b3f66 Uppercase ol.color constants 2016-09-01 06:58:12 -06:00
Frederic Junod
d93bb74068 Use ol.global.getComputedStyle instead of window.getComputedStyle 2016-08-31 12:29:38 +02:00
Frederic Junod
ca7fbc25de Add missing goog.require('ol.asserts') 2016-08-17 09:57:21 +02:00
Tim Schaub
d02cf1e7a9 Shuffle assertions 2016-08-12 10:53:47 -06:00
Tim Schaub
cb1b3a09b3 Move ol/color/color.js to ol/color.js 2016-08-07 10:49:06 -06:00
Tom Payne
e1ba9c0322 Move color matrix code into ol.color.Matrix 2013-11-20 11:44:48 +01:00
Tom Payne
e3c3170c39 Refactor ol.color to not use goog.color 2013-11-20 11:44:48 +01:00
Tom Payne
51c201acd7 Refactor ol.color to use Array.<number> 2013-11-20 11:44:48 +01:00
Tom Payne
3d072a1af8 Add ol.Color.parse 2013-11-20 11:39:19 +01:00
Tom Payne
362ace01da Fix opacity in createFromString 2013-08-14 12:02:23 +02:00
Tim Schaub
10672ad303 Standardizing color ranges (see #129) 2013-01-17 14:19:50 -07:00
Tom Payne
e05e0c2f91 Add ol.Color.equals 2013-01-09 18:49:06 +01:00
augustus
f253c1bcf8 Some comments (no changes to code) 2012-11-09 16:26:59 +01:00
Tom Payne
424dbd7582 Remove problematic (and unused) clone methods, move contains out of ol.Rectangle 2012-09-25 00:04:45 +02:00
Tom Payne
f8c31ba45c s/ol3/ol/ 2012-09-24 14:21:41 +02:00