@thi.ng/color 3.2.6 → 4.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +162 -230
- package/README.md +31 -15
- package/{ops/alpha.d.ts → alpha.d.ts} +1 -1
- package/{ops/alpha.js → alpha.js} +1 -1
- package/{ops/analog.d.ts → analog.d.ts} +3 -3
- package/{ops/analog.js → analog.js} +10 -10
- package/api/constants.js +18 -73
- package/api/gradients.d.ts +1 -1
- package/api/ranges.d.ts +2 -2
- package/api.d.ts +7 -2
- package/{ops/clamp.d.ts → clamp.d.ts} +1 -1
- package/{ops/clamp.js → clamp.js} +6 -5
- package/{ops/closest-hue.d.ts → closest-hue.d.ts} +1 -1
- package/{ops/closest-hue.js → closest-hue.js} +1 -1
- package/{ops/color-range.d.ts → color-range.d.ts} +2 -2
- package/{ops/color-range.js → color-range.js} +25 -18
- package/color.d.ts +1 -1
- package/color.js +16 -16
- package/convert.d.ts +1 -1
- package/convert.js +4 -4
- package/{ops/cosine-gradients.d.ts → cosine-gradients.d.ts} +2 -2
- package/{ops/cosine-gradients.js → cosine-gradients.js} +13 -5
- package/css/css.d.ts +1 -1
- package/css/css.js +12 -11
- package/css/parse-css.d.ts +1 -1
- package/css/parse-css.js +12 -9
- package/defcolor.d.ts +1 -1
- package/defcolor.js +24 -11
- package/{ops/distance.d.ts → distance.d.ts} +2 -2
- package/{ops/distance.js → distance.js} +7 -5
- package/{ops/gradients.d.ts → gradients.d.ts} +2 -2
- package/{ops/gradients.js → gradients.js} +3 -3
- package/hcy/hcy-rgb.d.ts +1 -1
- package/hcy/hcy-rgb.js +6 -6
- package/hcy/hcy.d.ts +1 -1
- package/hcy/hcy.js +4 -2
- package/hsi/hsi-rgb.d.ts +1 -1
- package/hsi/hsi-rgb.js +2 -2
- package/hsi/hsi.d.ts +1 -1
- package/hsi/hsi.js +4 -2
- package/hsl/hsl-css.d.ts +1 -1
- package/hsl/hsl-css.js +5 -4
- package/hsl/hsl-hsv.d.ts +1 -1
- package/hsl/hsl-hsv.js +1 -1
- package/hsl/hsl-rgb.d.ts +1 -1
- package/hsl/hsl-rgb.js +5 -5
- package/hsl/hsl.d.ts +1 -1
- package/hsl/hsl.js +5 -3
- package/hsv/hsv-css.d.ts +1 -1
- package/hsv/hsv-css.js +2 -2
- package/hsv/hsv-hsl.d.ts +1 -1
- package/hsv/hsv-hsl.js +1 -1
- package/hsv/hsv-rgb.d.ts +1 -1
- package/hsv/hsv-rgb.js +3 -3
- package/hsv/hsv.d.ts +1 -1
- package/hsv/hsv.js +5 -3
- package/index.d.ts +87 -87
- package/index.js +87 -87
- package/int/int-css.js +2 -2
- package/int/int-int.js +1 -1
- package/int/int-rgb.d.ts +1 -1
- package/int/int-rgb.js +2 -2
- package/int/int-srgb.d.ts +1 -1
- package/int/int-srgb.js +2 -2
- package/int/int.d.ts +24 -11
- package/int/int.js +59 -19
- package/internal/ensure.d.ts +5 -0
- package/internal/{ensure-args.js → ensure.js} +4 -1
- package/internal/matrix-ops.d.ts +8 -5
- package/internal/matrix-ops.js +12 -8
- package/internal/scale.d.ts +3 -0
- package/internal/scale.js +2 -0
- package/{ops/invert.d.ts → invert.d.ts} +1 -1
- package/{ops/invert.js → invert.js} +3 -2
- package/is-black.d.ts +3 -0
- package/{ops/is-black.js → is-black.js} +5 -6
- package/is-gray.d.ts +3 -0
- package/{ops/is-gray.js → is-gray.js} +6 -7
- package/is-white.d.ts +3 -0
- package/{ops/is-white.js → is-white.js} +5 -6
- package/lab/lab-css.d.ts +1 -1
- package/lab/lab-css.js +4 -4
- package/lab/lab-lab.d.ts +1 -1
- package/lab/lab-lab.js +3 -3
- package/lab/lab-lch.d.ts +1 -1
- package/lab/lab-lch.js +6 -5
- package/lab/lab-rgb.d.ts +1 -1
- package/lab/lab-rgb.js +2 -2
- package/lab/lab-xyz.d.ts +1 -1
- package/lab/lab-xyz.js +4 -4
- package/lab/lab50.d.ts +1 -1
- package/lab/lab50.js +8 -6
- package/lab/lab65.d.ts +1 -1
- package/lab/lab65.js +8 -6
- package/lch/lch-css.d.ts +1 -1
- package/lch/lch-css.js +5 -4
- package/lch/lch.d.ts +1 -1
- package/lch/lch.js +8 -6
- package/{ops/linear.d.ts → linear.d.ts} +0 -0
- package/{ops/linear.js → linear.js} +0 -0
- package/{ops/luminance-rgb.d.ts → luminance-rgb.d.ts} +1 -1
- package/{ops/luminance-rgb.js → luminance-rgb.js} +2 -2
- package/{ops/luminance.d.ts → luminance.d.ts} +2 -3
- package/{ops/luminance.js → luminance.js} +5 -10
- package/{ops/mix.d.ts → mix.d.ts} +2 -2
- package/{ops/mix.js → mix.js} +7 -6
- package/oklab/oklab-rgb.d.ts +1 -1
- package/oklab/oklab-rgb.js +4 -11
- package/oklab/oklab-xyz.d.ts +1 -1
- package/oklab/oklab-xyz.js +9 -21
- package/oklab/oklab.d.ts +1 -1
- package/oklab/oklab.js +8 -6
- package/package.json +323 -52
- package/rgb/hue-rgb.d.ts +1 -1
- package/rgb/hue-rgb.js +3 -2
- package/rgb/kelvin-rgba.d.ts +1 -1
- package/rgb/kelvin-rgba.js +3 -3
- package/rgb/rgb-css.d.ts +1 -1
- package/rgb/rgb-css.js +2 -2
- package/rgb/rgb-hcv.d.ts +1 -1
- package/rgb/rgb-hcv.js +4 -3
- package/rgb/rgb-hcy.d.ts +1 -1
- package/rgb/rgb-hcy.js +4 -4
- package/rgb/rgb-hsi.d.ts +1 -1
- package/rgb/rgb-hsi.js +4 -3
- package/rgb/rgb-hsl.d.ts +1 -1
- package/rgb/rgb-hsl.js +2 -2
- package/rgb/rgb-hsv.d.ts +1 -1
- package/rgb/rgb-hsv.js +2 -2
- package/rgb/rgb-lab.d.ts +1 -1
- package/rgb/rgb-lab.js +2 -2
- package/rgb/rgb-oklab.d.ts +1 -1
- package/rgb/rgb-oklab.js +6 -13
- package/rgb/rgb-srgb.d.ts +1 -1
- package/rgb/rgb-srgb.js +5 -5
- package/rgb/rgb-xyz.d.ts +1 -1
- package/rgb/rgb-xyz.js +4 -4
- package/rgb/rgb-ycc.d.ts +1 -1
- package/rgb/rgb-ycc.js +5 -4
- package/rgb/rgb.d.ts +1 -1
- package/rgb/rgb.js +15 -14
- package/{ops/sort.d.ts → sort.d.ts} +16 -5
- package/{ops/sort.js → sort.js} +21 -7
- package/srgb/srgb-css.d.ts +1 -1
- package/srgb/srgb-css.js +8 -8
- package/srgb/srgb-int.d.ts +1 -1
- package/srgb/srgb-int.js +4 -4
- package/srgb/srgb-rgb.d.ts +1 -1
- package/srgb/srgb-rgb.js +5 -5
- package/srgb/srgb.d.ts +1 -1
- package/srgb/srgb.js +9 -7
- package/{ops/swatches.d.ts → swatches.d.ts} +1 -1
- package/{ops/swatches.js → swatches.js} +0 -0
- package/{ops/transform.d.ts → transform.d.ts} +1 -1
- package/{ops/transform.js → transform.js} +5 -5
- package/xyy/xyy-xyz.d.ts +1 -1
- package/xyy/xyy-xyz.js +4 -4
- package/xyy/xyy.d.ts +1 -1
- package/xyy/xyy.js +6 -3
- package/xyz/wavelength-xyz.d.ts +1 -1
- package/xyz/wavelength-xyz.js +2 -2
- package/xyz/xyz-lab.d.ts +1 -1
- package/xyz/xyz-lab.js +5 -4
- package/xyz/xyz-oklab.d.ts +1 -1
- package/xyz/xyz-oklab.js +4 -4
- package/xyz/xyz-rgb.d.ts +1 -1
- package/xyz/xyz-rgb.js +3 -3
- package/xyz/xyz-xyy.d.ts +1 -1
- package/xyz/xyz-xyy.js +4 -4
- package/xyz/xyz-xyz.d.ts +1 -1
- package/xyz/xyz-xyz.js +4 -4
- package/xyz/xyz50.d.ts +1 -1
- package/xyz/xyz50.js +10 -8
- package/xyz/xyz65.d.ts +1 -1
- package/xyz/xyz65.js +10 -8
- package/ycc/ycc-rgb.d.ts +1 -1
- package/ycc/ycc-rgb.js +4 -4
- package/ycc/ycc.d.ts +1 -1
- package/ycc/ycc.js +4 -2
- package/internal/ensure-alpha.d.ts +0 -2
- package/internal/ensure-alpha.js +0 -2
- package/internal/ensure-args.d.ts +0 -3
- package/lib/index.js +0 -2236
- package/lib/index.js.map +0 -1
- package/lib/index.umd.js +0 -1
- package/lib/index.umd.js.map +0 -1
- package/ops/is-black.d.ts +0 -3
- package/ops/is-gray.d.ts +0 -3
- package/ops/is-white.d.ts +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [
|
|
6
|
+
## [4.0.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@4.0.2...@thi.ng/color@4.0.3) (2021-10-15)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @thi.ng/color
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
## [
|
|
14
|
+
## [4.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@4.0.1...@thi.ng/color@4.0.2) (2021-10-15)
|
|
15
15
|
|
|
16
16
|
**Note:** Version bump only for package @thi.ng/color
|
|
17
17
|
|
|
@@ -19,7 +19,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
## [
|
|
22
|
+
## [4.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@4.0.0...@thi.ng/color@4.0.1) (2021-10-13)
|
|
23
23
|
|
|
24
24
|
**Note:** Version bump only for package @thi.ng/color
|
|
25
25
|
|
|
@@ -27,162 +27,129 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
**Note:** Version bump only for package @thi.ng/color
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
## [3.2.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@3.2.1...@thi.ng/color@3.2.2) (2021-08-08)
|
|
39
|
-
|
|
40
|
-
**Note:** Version bump only for package @thi.ng/color
|
|
41
|
-
|
|
42
|
-
|
|
30
|
+
# [4.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@3.2.7...@thi.ng/color@4.0.0) (2021-10-12)
|
|
43
31
|
|
|
44
32
|
|
|
33
|
+
### Build System
|
|
45
34
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
**Note:** Version bump only for package @thi.ng/color
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
# [3.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@3.1.18...@thi.ng/color@3.2.0) (2021-08-04)
|
|
35
|
+
* major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
|
|
55
36
|
|
|
56
37
|
|
|
57
38
|
### Features
|
|
58
39
|
|
|
59
|
-
* **color:** add
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
## [3.1.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@3.1.17...@thi.ng/color@3.1.18) (2021-07-27)
|
|
66
|
-
|
|
67
|
-
**Note:** Version bump only for package @thi.ng/color
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
## [3.1.17](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@3.1.16...@thi.ng/color@3.1.17) (2021-07-01)
|
|
74
|
-
|
|
75
|
-
**Note:** Version bump only for package @thi.ng/color
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
## [3.1.16](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@3.1.15...@thi.ng/color@3.1.16) (2021-06-08)
|
|
82
|
-
|
|
83
|
-
**Note:** Version bump only for package @thi.ng/color
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
40
|
+
* **color:** add mandatory toRgb conversions ([6c4c13b](https://github.com/thi-ng/umbrella/commit/6c4c13b375857d886dbfa819ef3e5d530ad9fecb))
|
|
41
|
+
* **color:** Int32/ABGR/ARGB updates/fixes ([d20e77c](https://github.com/thi-ng/umbrella/commit/d20e77c48b4ec5b979e687c01cc457fc3c5ace51))
|
|
88
42
|
|
|
89
|
-
# [3.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@3.0.1...@thi.ng/color@3.1.0) (2021-02-24)
|
|
90
43
|
|
|
44
|
+
### BREAKING CHANGES
|
|
91
45
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
* **color:** add .toString() impl ([cc65bf0](https://github.com/thi-ng/umbrella/commit/cc65bf031e75c4b96c3c0089cf51c62b88187afe))
|
|
46
|
+
* discontinue CommonJS & UMD versions
|
|
95
47
|
|
|
48
|
+
- only ESM modules will be published from now on
|
|
49
|
+
- CJS obsolete due to ESM support in recent versions of node:
|
|
50
|
+
- i.e. launch NodeJS via:
|
|
51
|
+
- `node --experimental-specifier-resolution=node --experimental-repl-await`
|
|
52
|
+
- in the node REPL use `await import(...)` instead of `require()`
|
|
53
|
+
- UMD obsolete due to widespread browser support for ESM
|
|
96
54
|
|
|
55
|
+
Also:
|
|
56
|
+
- normalize/restructure/reorg all package.json files
|
|
57
|
+
- cleanup all build scripts, remove obsolete
|
|
58
|
+
- switch from mocha to @thi.ng/testament for all tests
|
|
97
59
|
|
|
98
60
|
|
|
99
61
|
|
|
100
|
-
## [3.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@3.0.0...@thi.ng/color@3.0.1) (2021-02-22)
|
|
101
62
|
|
|
102
63
|
|
|
103
|
-
### Bug Fixes
|
|
104
64
|
|
|
105
|
-
|
|
65
|
+
# [3.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@3.1.18...@thi.ng/color@3.2.0) (2021-08-04)
|
|
106
66
|
|
|
67
|
+
### Features
|
|
107
68
|
|
|
69
|
+
- **color:** add/update swatch functions ([391ae4a](https://github.com/thi-ng/umbrella/commit/391ae4aa2e57aa14b9a2acdb1e3365b191612470))
|
|
108
70
|
|
|
71
|
+
# [3.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@3.0.1...@thi.ng/color@3.1.0) (2021-02-24)
|
|
109
72
|
|
|
73
|
+
### Features
|
|
110
74
|
|
|
111
|
-
|
|
75
|
+
- **color:** add .toString() impl ([cc65bf0](https://github.com/thi-ng/umbrella/commit/cc65bf031e75c4b96c3c0089cf51c62b88187afe))
|
|
112
76
|
|
|
77
|
+
## [3.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@3.0.0...@thi.ng/color@3.0.1) (2021-02-22)
|
|
113
78
|
|
|
114
|
-
###
|
|
79
|
+
### Bug Fixes
|
|
115
80
|
|
|
116
|
-
|
|
117
|
-
* **color:** don't clamp Oklab/XYZ<>RGB conversions ([fab3639](https://github.com/thi-ng/umbrella/commit/fab3639ec59d8346752bb8a3831e9fac8d1663f7))
|
|
118
|
-
* **color:** fix resolveAsCSS() ([7b1eeff](https://github.com/thi-ng/umbrella/commit/7b1eeff17003229b9d38705dbee8e7da790699a1))
|
|
119
|
-
* **color:** fix typo in parseHex, update parse helpers ([a7315c0](https://github.com/thi-ng/umbrella/commit/a7315c0545bc4ef55f05a3b909f113fb9ca98041))
|
|
120
|
-
* **color:** kelvinRgb() results are sRGB ([31cd4b5](https://github.com/thi-ng/umbrella/commit/31cd4b5af37d72c0eded08c2e5bf9a520dcdd400))
|
|
121
|
-
* **color:** normalize LCH hue channel ([c0b9e9d](https://github.com/thi-ng/umbrella/commit/c0b9e9d90172487c7b0dce7d252d30bba92e425e))
|
|
122
|
-
* **color:** rescale labXyz(), use D50 for LCH->RGB ([9e59545](https://github.com/thi-ng/umbrella/commit/9e59545fb0cca91dfe7050a1a7db70239f818e9d))
|
|
123
|
-
* **color:** unconstrained analog() for some modes ([439265b](https://github.com/thi-ng/umbrella/commit/439265bbc6a2510a8fa6897e6165d805079c6db9))
|
|
124
|
-
* **color:** update Lab/LCH rules in parseCss() ([cb7f15e](https://github.com/thi-ng/umbrella/commit/cb7f15e1a98b78bdc6a61b3cdb5cdc55f2bc828f))
|
|
125
|
-
* **color:** update resolveAsCss() ([0e7e955](https://github.com/thi-ng/umbrella/commit/0e7e955e176bd7b3e440dc7190dee26f9843fe8b))
|
|
81
|
+
- **color:** update compileThemePart() ([b8ceed6](https://github.com/thi-ng/umbrella/commit/b8ceed69e128c9f88999a92dc57971a1ab3c3e33))
|
|
126
82
|
|
|
83
|
+
# [3.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@2.1.5...@thi.ng/color@3.0.0) (2021-02-20)
|
|
127
84
|
|
|
128
|
-
###
|
|
85
|
+
### Bug Fixes
|
|
129
86
|
|
|
130
|
-
|
|
87
|
+
- **color:** div-by-zero in XYY<>XYZ conversions ([8a71c6e](https://github.com/thi-ng/umbrella/commit/8a71c6ec25766967c20e27cfd6a0d44abde85a57))
|
|
88
|
+
- **color:** don't clamp Oklab/XYZ<>RGB conversions ([fab3639](https://github.com/thi-ng/umbrella/commit/fab3639ec59d8346752bb8a3831e9fac8d1663f7))
|
|
89
|
+
- **color:** fix resolveAsCSS() ([7b1eeff](https://github.com/thi-ng/umbrella/commit/7b1eeff17003229b9d38705dbee8e7da790699a1))
|
|
90
|
+
- **color:** fix typo in parseHex, update parse helpers ([a7315c0](https://github.com/thi-ng/umbrella/commit/a7315c0545bc4ef55f05a3b909f113fb9ca98041))
|
|
91
|
+
- **color:** kelvinRgb() results are sRGB ([31cd4b5](https://github.com/thi-ng/umbrella/commit/31cd4b5af37d72c0eded08c2e5bf9a520dcdd400))
|
|
92
|
+
- **color:** normalize LCH hue channel ([c0b9e9d](https://github.com/thi-ng/umbrella/commit/c0b9e9d90172487c7b0dce7d252d30bba92e425e))
|
|
93
|
+
- **color:** rescale labXyz(), use D50 for LCH->RGB ([9e59545](https://github.com/thi-ng/umbrella/commit/9e59545fb0cca91dfe7050a1a7db70239f818e9d))
|
|
94
|
+
- **color:** unconstrained analog() for some modes ([439265b](https://github.com/thi-ng/umbrella/commit/439265bbc6a2510a8fa6897e6165d805079c6db9))
|
|
95
|
+
- **color:** update Lab/LCH rules in parseCss() ([cb7f15e](https://github.com/thi-ng/umbrella/commit/cb7f15e1a98b78bdc6a61b3cdb5cdc55f2bc828f))
|
|
96
|
+
- **color:** update resolveAsCss() ([0e7e955](https://github.com/thi-ng/umbrella/commit/0e7e955e176bd7b3e440dc7190dee26f9843fe8b))
|
|
131
97
|
|
|
98
|
+
### Code Refactoring
|
|
132
99
|
|
|
133
|
-
|
|
100
|
+
- **color:** major update/rename all types/conversions ([4143c8f](https://github.com/thi-ng/umbrella/commit/4143c8fe746a692e61be7696053c883eef7ab326))
|
|
134
101
|
|
|
135
|
-
|
|
136
|
-
* **color:** add AColor.toJSON() ([ee96412](https://github.com/thi-ng/umbrella/commit/ee96412656fb6bd019f356a50f83651150ee7293))
|
|
137
|
-
* **color:** add ARGB32/ABGR32 int types/conversions ([1993beb](https://github.com/thi-ng/umbrella/commit/1993bebce4ee8c44a6dbcde01bc3635757d5d3f2))
|
|
138
|
-
* **color:** add barebones support for LAB & LCH ([6e3b8c9](https://github.com/thi-ng/umbrella/commit/6e3b8c9b84b33b5280247c17ae3f9b862dd44d04))
|
|
139
|
-
* **color:** add generic analog() (for all color types) ([117a5bc](https://github.com/thi-ng/umbrella/commit/117a5bcdcdd3c84f7c9eb8d68197963db4515b07))
|
|
140
|
-
* **color:** add gradient and mix fns ([f31966c](https://github.com/thi-ng/umbrella/commit/f31966ca8612415fb8faaff02a13b5f8eddb2753))
|
|
141
|
-
* **color:** add Int32.alpha accessor, minor update int->srgb ([b65f9ee](https://github.com/thi-ng/umbrella/commit/b65f9ee2896636df5bb5882e07186043d7ddc466))
|
|
142
|
-
* **color:** add lab D50/65 conv, update HSx<>CSS conv ([014e41d](https://github.com/thi-ng/umbrella/commit/014e41de9d7b051c58f4ea4a90ff0d3783884b6f))
|
|
143
|
-
* **color:** add multiColorGradient(), update cos version ([dc88f37](https://github.com/thi-ng/umbrella/commit/dc88f37abed0c5ab7dbdf2ea42fa60ddb4d5a353))
|
|
144
|
-
* **color:** add Oklab color space support ([57a5bad](https://github.com/thi-ng/umbrella/commit/57a5bad8cff99636b28f9d17124c7c445f36eebb))
|
|
145
|
-
* **color:** add rgbSrgbApprox() and vice versa ([c1efada](https://github.com/thi-ng/umbrella/commit/c1efada4f2b546c7515a34e12e31ea6a8857ec03))
|
|
146
|
-
* **color:** add setPrecision(), LCH cleanup ([778f84a](https://github.com/thi-ng/umbrella/commit/778f84aa5a080ffd8afb12967553f53463a34d2c))
|
|
147
|
-
* **color:** add sortMapped() for mapped memory cols ([9a548ec](https://github.com/thi-ng/umbrella/commit/9a548eccf3553d03afaff7817ce47f4bfeb98691))
|
|
148
|
-
* **color:** add SystemColors and defaults ([16bad21](https://github.com/thi-ng/umbrella/commit/16bad2194d52b2aa3880ec8e37cc3a3891f0c20e))
|
|
149
|
-
* **color:** add TypedColor/ColorFactory.range impls ([7ecfa0c](https://github.com/thi-ng/umbrella/commit/7ecfa0c5840722b8f4bb8965063f545a2d5348af))
|
|
150
|
-
* **color:** add wavelengthXyza() ([d29ce23](https://github.com/thi-ng/umbrella/commit/d29ce236e2d0a4a43053b18bc8d4b41f69f4f66b))
|
|
151
|
-
* **color:** add XYY mode ([7a743f2](https://github.com/thi-ng/umbrella/commit/7a743f2cc824ba2a46e32d72be8519a34d99b94c))
|
|
152
|
-
* **color:** add XYZ/Oklab conversions, update/fix XYZ matrices ([e07a038](https://github.com/thi-ng/umbrella/commit/e07a038f9fc0317008c9a2a2e05bdba88eff0712))
|
|
153
|
-
* **color:** add/update conversions ([e979044](https://github.com/thi-ng/umbrella/commit/e9790440dcf37ace01d4ea5f4c42ae76a556dc86))
|
|
154
|
-
* **color:** add/update distance functions ([6d15065](https://github.com/thi-ng/umbrella/commit/6d15065c07cb8e434f0d964c98d5fd1878738868))
|
|
155
|
-
* **color:** add/update Lab/XYZ/LCH conversions ([9feb251](https://github.com/thi-ng/umbrella/commit/9feb251def42ac12b6f522a8ea390e4e836cacaa))
|
|
156
|
-
* **color:** add/update luminance & YCC conversion ([89ca131](https://github.com/thi-ng/umbrella/commit/89ca131a4b3878ca30d3199d8647b67ed426f287))
|
|
157
|
-
* **color:** convert mix() to defmulti, color mode aware ([faed98b](https://github.com/thi-ng/umbrella/commit/faed98b3ced6a6e30bfd3d3afc95f493b39dc707))
|
|
158
|
-
* **color:** generic isBlack/Gray/White, LCH color ranges ([598afdf](https://github.com/thi-ng/umbrella/commit/598afdf045c7a56261a5edb96d21686bd2d2a2d8))
|
|
159
|
-
* **color:** improve int ARGB/ABGR support ([6460e4d](https://github.com/thi-ng/umbrella/commit/6460e4d04db8e548e575a586f24143c1ed674cde))
|
|
160
|
-
* **color:** major restructure, new types/conversions ([6389f7c](https://github.com/thi-ng/umbrella/commit/6389f7c4baf2b8ef184cf76b8d71b8d0a44237a6))
|
|
161
|
-
* **color:** new parseCSS(), add SRGBA, update conversions ([f748d65](https://github.com/thi-ng/umbrella/commit/f748d65934fe9472cc19b3e6bbfcce2578129fb7))
|
|
162
|
-
* **color:** replace proximity functions ([7a0be62](https://github.com/thi-ng/umbrella/commit/7a0be62c08ea2717298f2365292fa4c9eca6f911))
|
|
163
|
-
* **color:** split Lab & XYZ types into D50/D65 ([29e1e74](https://github.com/thi-ng/umbrella/commit/29e1e74a259bc8c73a79ccc77c654649f95c7d8c))
|
|
164
|
-
* **color:** update ColorFactory, TypedColor ([8c5f8fb](https://github.com/thi-ng/umbrella/commit/8c5f8fb5255beed3a272d987c99fd3539f92b9d6))
|
|
165
|
-
* **color:** update ColorMix & gradient types/functions ([829fcf6](https://github.com/thi-ng/umbrella/commit/829fcf6b61079e2ffaafadfd0ac115e341db6743))
|
|
166
|
-
* **color:** update CSS_NAMES ([7ea0cf0](https://github.com/thi-ng/umbrella/commit/7ea0cf073cc39c165b24258be3b13cfddfb3dd41))
|
|
167
|
-
* **color:** update types, CSS formatting ([f0502a2](https://github.com/thi-ng/umbrella/commit/f0502a2518a4e90edf45e35df180d2d273cdff68))
|
|
168
|
-
* **color:** update/restructure types, add buffer mapping ([cebaafa](https://github.com/thi-ng/umbrella/commit/cebaafa3bff43409a39162374ede7b0b07086b05))
|
|
169
|
-
* **color:** use RGB fallbacks for Lab/LCH CSS ([53ddaeb](https://github.com/thi-ng/umbrella/commit/53ddaeb5b3ff18c443b8308ad14ddba468dbe9da))
|
|
102
|
+
### Features
|
|
170
103
|
|
|
104
|
+
- **color:** add AColor.set() ([7e7a05c](https://github.com/thi-ng/umbrella/commit/7e7a05c0a1f9bfe57e304ab2afe3b314b048ea5e))
|
|
105
|
+
- **color:** add AColor.toJSON() ([ee96412](https://github.com/thi-ng/umbrella/commit/ee96412656fb6bd019f356a50f83651150ee7293))
|
|
106
|
+
- **color:** add ARGB32/ABGR32 int types/conversions ([1993beb](https://github.com/thi-ng/umbrella/commit/1993bebce4ee8c44a6dbcde01bc3635757d5d3f2))
|
|
107
|
+
- **color:** add barebones support for LAB & LCH ([6e3b8c9](https://github.com/thi-ng/umbrella/commit/6e3b8c9b84b33b5280247c17ae3f9b862dd44d04))
|
|
108
|
+
- **color:** add generic analog() (for all color types) ([117a5bc](https://github.com/thi-ng/umbrella/commit/117a5bcdcdd3c84f7c9eb8d68197963db4515b07))
|
|
109
|
+
- **color:** add gradient and mix fns ([f31966c](https://github.com/thi-ng/umbrella/commit/f31966ca8612415fb8faaff02a13b5f8eddb2753))
|
|
110
|
+
- **color:** add Int32.alpha accessor, minor update int->srgb ([b65f9ee](https://github.com/thi-ng/umbrella/commit/b65f9ee2896636df5bb5882e07186043d7ddc466))
|
|
111
|
+
- **color:** add lab D50/65 conv, update HSx<>CSS conv ([014e41d](https://github.com/thi-ng/umbrella/commit/014e41de9d7b051c58f4ea4a90ff0d3783884b6f))
|
|
112
|
+
- **color:** add multiColorGradient(), update cos version ([dc88f37](https://github.com/thi-ng/umbrella/commit/dc88f37abed0c5ab7dbdf2ea42fa60ddb4d5a353))
|
|
113
|
+
- **color:** add Oklab color space support ([57a5bad](https://github.com/thi-ng/umbrella/commit/57a5bad8cff99636b28f9d17124c7c445f36eebb))
|
|
114
|
+
- **color:** add rgbSrgbApprox() and vice versa ([c1efada](https://github.com/thi-ng/umbrella/commit/c1efada4f2b546c7515a34e12e31ea6a8857ec03))
|
|
115
|
+
- **color:** add setPrecision(), LCH cleanup ([778f84a](https://github.com/thi-ng/umbrella/commit/778f84aa5a080ffd8afb12967553f53463a34d2c))
|
|
116
|
+
- **color:** add sortMapped() for mapped memory cols ([9a548ec](https://github.com/thi-ng/umbrella/commit/9a548eccf3553d03afaff7817ce47f4bfeb98691))
|
|
117
|
+
- **color:** add SystemColors and defaults ([16bad21](https://github.com/thi-ng/umbrella/commit/16bad2194d52b2aa3880ec8e37cc3a3891f0c20e))
|
|
118
|
+
- **color:** add TypedColor/ColorFactory.range impls ([7ecfa0c](https://github.com/thi-ng/umbrella/commit/7ecfa0c5840722b8f4bb8965063f545a2d5348af))
|
|
119
|
+
- **color:** add wavelengthXyza() ([d29ce23](https://github.com/thi-ng/umbrella/commit/d29ce236e2d0a4a43053b18bc8d4b41f69f4f66b))
|
|
120
|
+
- **color:** add XYY mode ([7a743f2](https://github.com/thi-ng/umbrella/commit/7a743f2cc824ba2a46e32d72be8519a34d99b94c))
|
|
121
|
+
- **color:** add XYZ/Oklab conversions, update/fix XYZ matrices ([e07a038](https://github.com/thi-ng/umbrella/commit/e07a038f9fc0317008c9a2a2e05bdba88eff0712))
|
|
122
|
+
- **color:** add/update conversions ([e979044](https://github.com/thi-ng/umbrella/commit/e9790440dcf37ace01d4ea5f4c42ae76a556dc86))
|
|
123
|
+
- **color:** add/update distance functions ([6d15065](https://github.com/thi-ng/umbrella/commit/6d15065c07cb8e434f0d964c98d5fd1878738868))
|
|
124
|
+
- **color:** add/update Lab/XYZ/LCH conversions ([9feb251](https://github.com/thi-ng/umbrella/commit/9feb251def42ac12b6f522a8ea390e4e836cacaa))
|
|
125
|
+
- **color:** add/update luminance & YCC conversion ([89ca131](https://github.com/thi-ng/umbrella/commit/89ca131a4b3878ca30d3199d8647b67ed426f287))
|
|
126
|
+
- **color:** convert mix() to defmulti, color mode aware ([faed98b](https://github.com/thi-ng/umbrella/commit/faed98b3ced6a6e30bfd3d3afc95f493b39dc707))
|
|
127
|
+
- **color:** generic isBlack/Gray/White, LCH color ranges ([598afdf](https://github.com/thi-ng/umbrella/commit/598afdf045c7a56261a5edb96d21686bd2d2a2d8))
|
|
128
|
+
- **color:** improve int ARGB/ABGR support ([6460e4d](https://github.com/thi-ng/umbrella/commit/6460e4d04db8e548e575a586f24143c1ed674cde))
|
|
129
|
+
- **color:** major restructure, new types/conversions ([6389f7c](https://github.com/thi-ng/umbrella/commit/6389f7c4baf2b8ef184cf76b8d71b8d0a44237a6))
|
|
130
|
+
- **color:** new parseCSS(), add SRGBA, update conversions ([f748d65](https://github.com/thi-ng/umbrella/commit/f748d65934fe9472cc19b3e6bbfcce2578129fb7))
|
|
131
|
+
- **color:** replace proximity functions ([7a0be62](https://github.com/thi-ng/umbrella/commit/7a0be62c08ea2717298f2365292fa4c9eca6f911))
|
|
132
|
+
- **color:** split Lab & XYZ types into D50/D65 ([29e1e74](https://github.com/thi-ng/umbrella/commit/29e1e74a259bc8c73a79ccc77c654649f95c7d8c))
|
|
133
|
+
- **color:** update ColorFactory, TypedColor ([8c5f8fb](https://github.com/thi-ng/umbrella/commit/8c5f8fb5255beed3a272d987c99fd3539f92b9d6))
|
|
134
|
+
- **color:** update ColorMix & gradient types/functions ([829fcf6](https://github.com/thi-ng/umbrella/commit/829fcf6b61079e2ffaafadfd0ac115e341db6743))
|
|
135
|
+
- **color:** update CSS_NAMES ([7ea0cf0](https://github.com/thi-ng/umbrella/commit/7ea0cf073cc39c165b24258be3b13cfddfb3dd41))
|
|
136
|
+
- **color:** update types, CSS formatting ([f0502a2](https://github.com/thi-ng/umbrella/commit/f0502a2518a4e90edf45e35df180d2d273cdff68))
|
|
137
|
+
- **color:** update/restructure types, add buffer mapping ([cebaafa](https://github.com/thi-ng/umbrella/commit/cebaafa3bff43409a39162374ede7b0b07086b05))
|
|
138
|
+
- **color:** use RGB fallbacks for Lab/LCH CSS ([53ddaeb](https://github.com/thi-ng/umbrella/commit/53ddaeb5b3ff18c443b8308ad14ddba468dbe9da))
|
|
171
139
|
|
|
172
140
|
### Performance Improvements
|
|
173
141
|
|
|
174
|
-
|
|
175
|
-
|
|
142
|
+
- **color:** make defColor() fixed for 4 channels ([4ea77ef](https://github.com/thi-ng/umbrella/commit/4ea77eff4ef89b771268c6244628b71ec869ab8b))
|
|
176
143
|
|
|
177
144
|
### BREAKING CHANGES
|
|
178
145
|
|
|
179
|
-
|
|
146
|
+
- **color:** remove obsolete resolveAsCss(), use css() instead
|
|
180
147
|
|
|
181
148
|
- update MaybeColor alias
|
|
182
149
|
- update TypedColor
|
|
183
150
|
- merge resolveAsCss() cases into css()
|
|
184
151
|
- fix color factory for int args
|
|
185
|
-
|
|
152
|
+
- **color:** replace color classes w/ dynamically generated impls
|
|
186
153
|
|
|
187
154
|
- add ColorSpec, ColorType, ColorFactory types
|
|
188
155
|
- add defColor() color type factory based on declarative ColorSpec
|
|
@@ -195,7 +162,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
195
162
|
- parseCss() now returns ParsedColor (circumvents circular deps)
|
|
196
163
|
- replace convert() w/ new simplified version
|
|
197
164
|
- add/update generic isGray(), isBlack(), isWhite(), luminance()
|
|
198
|
-
|
|
165
|
+
- **color:** update/rename all color types/conversions
|
|
199
166
|
|
|
200
167
|
- rename YCbCrA => YCC
|
|
201
168
|
- remove `A` suffix from all color types
|
|
@@ -212,167 +179,132 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
212
179
|
- add distChannel() HOF
|
|
213
180
|
- add basic convert() support for Lab<>LCH<>CSS
|
|
214
181
|
- add/update docstrings
|
|
215
|
-
- rename RANGES => COLOR_RANGES
|
|
216
|
-
- update colorFromRange(), colorsFromRange() and
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
- add
|
|
221
|
-
-
|
|
222
|
-
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
- parseCSS() now
|
|
227
|
-
- all asXXX() functions also return wrapped colors,
|
|
228
|
-
only asCSS() still returns strings
|
|
229
|
-
- add SRGBA type/color mode reserve existing RGBA for
|
|
230
|
-
linear colors (non-gamma corrected)
|
|
231
|
-
- rename existing conversions, now using SRGBA (i.e. srgbaCss(),
|
|
232
|
-
srgbaInt()), add new versions for (now linear) RGBA
|
|
233
|
-
- parseCSS() RGB colors now result in SRGB instances,
|
|
234
|
-
use asRGBA() or srgbRgba() to convert to linear RGB
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
182
|
+
- rename RANGES => COLOR_RANGES
|
|
183
|
+
- update colorFromRange(), colorsFromRange() and colorsFromTheme() to return wrapped HSV colors
|
|
184
|
+
- **color:** multiCosineGradient() args now given as options object
|
|
185
|
+
- add MultiGradientOpts
|
|
186
|
+
- add support for per-interval easing
|
|
187
|
+
- add support for result color coercion
|
|
188
|
+
- **color:** parseCSS() now returns wrapped color types, not raw RGBA arrays as previously
|
|
189
|
+
- parseCSS() now returns SRGBA, HSLA, LAB or LCH color types and supports more CSS syntax opts
|
|
190
|
+
- all asXXX() functions also return wrapped colors, only asCSS() still returns strings
|
|
191
|
+
- add SRGBA type/color mode reserve existing RGBA for linear colors (non-gamma corrected)
|
|
192
|
+
- rename existing conversions, now using SRGBA (i.e. srgbaCss(), srgbaInt()), add new versions for (now linear) RGBA
|
|
193
|
+
- parseCSS() RGB colors now result in SRGB instances, use asRGBA() or srgbRgba() to convert to linear RGB
|
|
239
194
|
|
|
240
|
-
#
|
|
195
|
+
# [2.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@2.0.0...@thi.ng/color@2.1.0) (2021-01-02)
|
|
241
196
|
|
|
197
|
+
### Bug Fixes
|
|
242
198
|
|
|
243
|
-
|
|
199
|
+
- **color:** fix cosineGradient() return type ([651590c](https://github.com/thi-ng/umbrella/commit/651590c2f3c4365e06f4bab85d2c9f9b99d3c4c1))
|
|
244
200
|
|
|
245
|
-
|
|
201
|
+
### Features
|
|
246
202
|
|
|
203
|
+
- **color:** add color swatch hiccup helpers ([5ecc528](https://github.com/thi-ng/umbrella/commit/5ecc5285fdea2d35535e5469d4d81a2b4d6878e9))
|
|
204
|
+
- **color:** add declarative range/theme iterators ([971d5dc](https://github.com/thi-ng/umbrella/commit/971d5dcbf061b0c4c52ffa1aca24d7150dea81e9))
|
|
205
|
+
- **color:** add HSV/RGB distance fns ([3bd3969](https://github.com/thi-ng/umbrella/commit/3bd396927c3aab7942853ec9b9f6013a1248389c))
|
|
206
|
+
- **color:** add HSV/RGB gray axis checks ([927202b](https://github.com/thi-ng/umbrella/commit/927202b77deaa808b57ee189ff483839975804d0))
|
|
207
|
+
- **color:** add sortColors(), comparators ([6761feb](https://github.com/thi-ng/umbrella/commit/6761feb65e24545290547408b8ba62a3ba4baedc))
|
|
208
|
+
- **color:** update ColorRangeOpts, add docstrings ([350fbe5](https://github.com/thi-ng/umbrella/commit/350fbe568b8abfc968a104cbada5abdeeb2b4107))
|
|
247
209
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
* **color:** add color swatch hiccup helpers ([5ecc528](https://github.com/thi-ng/umbrella/commit/5ecc5285fdea2d35535e5469d4d81a2b4d6878e9))
|
|
251
|
-
* **color:** add declarative range/theme iterators ([971d5dc](https://github.com/thi-ng/umbrella/commit/971d5dcbf061b0c4c52ffa1aca24d7150dea81e9))
|
|
252
|
-
* **color:** add HSV/RGB distance fns ([3bd3969](https://github.com/thi-ng/umbrella/commit/3bd396927c3aab7942853ec9b9f6013a1248389c))
|
|
253
|
-
* **color:** add HSV/RGB gray axis checks ([927202b](https://github.com/thi-ng/umbrella/commit/927202b77deaa808b57ee189ff483839975804d0))
|
|
254
|
-
* **color:** add sortColors(), comparators ([6761feb](https://github.com/thi-ng/umbrella/commit/6761feb65e24545290547408b8ba62a3ba4baedc))
|
|
255
|
-
* **color:** update ColorRangeOpts, add docstrings ([350fbe5](https://github.com/thi-ng/umbrella/commit/350fbe568b8abfc968a104cbada5abdeeb2b4107))
|
|
210
|
+
# [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@1.3.2...@thi.ng/color@2.0.0) (2020-12-22)
|
|
256
211
|
|
|
212
|
+
### Code Refactoring
|
|
257
213
|
|
|
214
|
+
- **color:** fix [#256](https://github.com/thi-ng/umbrella/issues/256) replace enum w/ type alias ([17e2449](https://github.com/thi-ng/umbrella/commit/17e244969d2d39e17cdea739308928adc17d5392))
|
|
258
215
|
|
|
216
|
+
### BREAKING CHANGES
|
|
259
217
|
|
|
218
|
+
- **color:** replace ColorMode w/ type alias
|
|
260
219
|
|
|
261
|
-
#
|
|
220
|
+
# [1.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@1.2.18...@thi.ng/color@1.3.0) (2020-11-24)
|
|
262
221
|
|
|
222
|
+
### Features
|
|
263
223
|
|
|
264
|
-
|
|
224
|
+
- **color:** add GradientPresets type, update GRADIENTS ([985b719](https://github.com/thi-ng/umbrella/commit/985b719b61475dfebe080dc1f74e2de9bb005018))
|
|
265
225
|
|
|
266
|
-
|
|
226
|
+
# [1.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@1.1.21...@thi.ng/color@1.2.0) (2020-05-29)
|
|
267
227
|
|
|
228
|
+
### Features
|
|
268
229
|
|
|
269
|
-
|
|
230
|
+
- **color:** add gradient presets ([2f93581](https://github.com/thi-ng/umbrella/commit/2f93581ca69f79df38ee6aa2697632c572fb55fc))
|
|
270
231
|
|
|
271
|
-
|
|
232
|
+
## [1.1.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@1.1.1...@thi.ng/color@1.1.2) (2019-11-09)
|
|
272
233
|
|
|
234
|
+
### Bug Fixes
|
|
273
235
|
|
|
236
|
+
- **color:** update/rename imports (vectors pkg) ([7cb8877](https://github.com/thi-ng/umbrella/commit/7cb88771f88fc329a2728d9f86a18faf04ab0c35))
|
|
274
237
|
|
|
238
|
+
# [1.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@1.0.3...@thi.ng/color@1.1.0) (2019-08-21)
|
|
275
239
|
|
|
240
|
+
### Features
|
|
276
241
|
|
|
277
|
-
|
|
242
|
+
- **color:** add resolveAsCSS(), update deps ([f96ac92](https://github.com/thi-ng/umbrella/commit/f96ac92))
|
|
278
243
|
|
|
244
|
+
## [1.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@1.0.1...@thi.ng/color@1.0.2) (2019-08-16)
|
|
279
245
|
|
|
280
|
-
###
|
|
246
|
+
### Bug Fixes
|
|
281
247
|
|
|
282
|
-
|
|
248
|
+
- **color:** add proper rounding to rgbaInt() ([d956954](https://github.com/thi-ng/umbrella/commit/d956954))
|
|
283
249
|
|
|
250
|
+
# [1.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@0.2.2...@thi.ng/color@1.0.0) (2019-07-31)
|
|
284
251
|
|
|
252
|
+
### Bug Fixes
|
|
285
253
|
|
|
254
|
+
- **color:** update factory fn args for mem-mapped colors ([eae671e](https://github.com/thi-ng/umbrella/commit/eae671e))
|
|
286
255
|
|
|
256
|
+
### Code Refactoring
|
|
287
257
|
|
|
288
|
-
|
|
258
|
+
- **color:** remove PD related functions, update readme ([5d868db](https://github.com/thi-ng/umbrella/commit/5d868db))
|
|
289
259
|
|
|
260
|
+
### Features
|
|
290
261
|
|
|
291
|
-
|
|
262
|
+
- **color:** ([#106](https://github.com/thi-ng/umbrella/issues/106)) add PD int ops, clamp existing `porterDuff()` ([4c975b2](https://github.com/thi-ng/umbrella/commit/4c975b2))
|
|
292
263
|
|
|
293
|
-
|
|
264
|
+
### BREAKING CHANGES
|
|
294
265
|
|
|
266
|
+
- **color:** Porter-Duff ops & pre/post-multiply moved to new package @thi.ng/porter-duff
|
|
295
267
|
|
|
268
|
+
# [0.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@0.1.21...@thi.ng/color@0.2.0) (2019-07-07)
|
|
296
269
|
|
|
270
|
+
### Features
|
|
297
271
|
|
|
272
|
+
- **color:** enable TS strict compiler flags (refactor) ([8c13166](https://github.com/thi-ng/umbrella/commit/8c13166))
|
|
273
|
+
- **color:** TS strictNullChecks, update color conversion fns ([04dc356](https://github.com/thi-ng/umbrella/commit/04dc356))
|
|
298
274
|
|
|
299
|
-
##
|
|
275
|
+
## [0.1.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@0.1.9...@thi.ng/color@0.1.10) (2019-03-04)
|
|
300
276
|
|
|
301
|
-
###
|
|
277
|
+
### Bug Fixes
|
|
302
278
|
|
|
303
|
-
|
|
279
|
+
- **color:** add/update luminanceRGB/luminanceInt, add to re-exports ([566cf02](https://github.com/thi-ng/umbrella/commit/566cf02))
|
|
304
280
|
|
|
305
|
-
|
|
281
|
+
## [0.1.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@0.1.6...@thi.ng/color@0.1.7) (2019-02-28)
|
|
306
282
|
|
|
307
|
-
###
|
|
283
|
+
### Bug Fixes
|
|
308
284
|
|
|
309
|
-
|
|
285
|
+
- **color:** update ColorMode & Hue const enum handling ([bb71b7c](https://github.com/thi-ng/umbrella/commit/bb71b7c))
|
|
310
286
|
|
|
311
|
-
|
|
287
|
+
# 0.1.0 (2019-01-21)
|
|
312
288
|
|
|
313
|
-
###
|
|
289
|
+
### Bug Fixes
|
|
314
290
|
|
|
315
|
-
|
|
291
|
+
- **color:** add/update conversions ([a5c53c3](https://github.com/thi-ng/umbrella/commit/a5c53c3))
|
|
292
|
+
- **color:** HCYA field names ([1c28c22](https://github.com/thi-ng/umbrella/commit/1c28c22))
|
|
316
293
|
|
|
317
|
-
|
|
294
|
+
### Features
|
|
318
295
|
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
296
|
+
- **color:** add alpha()/setAlpha(), add docs, re-exports, update readme ([b849bd1](https://github.com/thi-ng/umbrella/commit/b849bd1))
|
|
297
|
+
- **color:** add convert() fallback, minor other updates ([aa30344](https://github.com/thi-ng/umbrella/commit/aa30344))
|
|
298
|
+
- **color:** add HSI converters, add clampH(), minor refactors ([404ac54](https://github.com/thi-ng/umbrella/commit/404ac54))
|
|
299
|
+
- **color:** add Hue enum, closestHue*() fns, namedHueRgba() ([e7bb46b](https://github.com/thi-ng/umbrella/commit/e7bb46b))
|
|
300
|
+
- **color:** add luminance defmulti ([445b8c1](https://github.com/thi-ng/umbrella/commit/445b8c1))
|
|
301
|
+
- **color:** add more color spaces, refactor, rename, simplify ([e930d73](https://github.com/thi-ng/umbrella/commit/e930d73))
|
|
302
|
+
- **color:** add multiCosineGradient() ([dbbb26c](https://github.com/thi-ng/umbrella/commit/dbbb26c))
|
|
303
|
+
- **color:** add new package ([0b51ef1](https://github.com/thi-ng/umbrella/commit/0b51ef1))
|
|
304
|
+
- **color:** add Porter-Duff ops, pre/post-multiply, update types ([a5d2f98](https://github.com/thi-ng/umbrella/commit/a5d2f98))
|
|
305
|
+
- **color:** add RGBA/HSLA wrapper types, update convert ([610699a](https://github.com/thi-ng/umbrella/commit/610699a))
|
|
306
|
+
- **color:** add/update class wrappers ([5788646](https://github.com/thi-ng/umbrella/commit/5788646))
|
|
328
307
|
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
### BREAKING CHANGES
|
|
332
|
-
|
|
333
|
-
* **color:** Porter-Duff ops & pre/post-multiply moved to
|
|
334
|
-
new package @thi.ng/porter-duff
|
|
335
|
-
|
|
336
|
-
# [0.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@0.1.21...@thi.ng/color@0.2.0) (2019-07-07)
|
|
337
|
-
|
|
338
|
-
### Features
|
|
339
|
-
|
|
340
|
-
* **color:** enable TS strict compiler flags (refactor) ([8c13166](https://github.com/thi-ng/umbrella/commit/8c13166))
|
|
341
|
-
* **color:** TS strictNullChecks, update color conversion fns ([04dc356](https://github.com/thi-ng/umbrella/commit/04dc356))
|
|
342
|
-
|
|
343
|
-
## [0.1.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@0.1.9...@thi.ng/color@0.1.10) (2019-03-04)
|
|
344
|
-
|
|
345
|
-
### Bug Fixes
|
|
346
|
-
|
|
347
|
-
* **color:** add/update luminanceRGB/luminanceInt, add to re-exports ([566cf02](https://github.com/thi-ng/umbrella/commit/566cf02))
|
|
348
|
-
|
|
349
|
-
## [0.1.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/color@0.1.6...@thi.ng/color@0.1.7) (2019-02-28)
|
|
350
|
-
|
|
351
|
-
### Bug Fixes
|
|
352
|
-
|
|
353
|
-
* **color:** update ColorMode & Hue const enum handling ([bb71b7c](https://github.com/thi-ng/umbrella/commit/bb71b7c))
|
|
354
|
-
|
|
355
|
-
# 0.1.0 (2019-01-21)
|
|
356
|
-
|
|
357
|
-
### Bug Fixes
|
|
358
|
-
|
|
359
|
-
* **color:** add/update conversions ([a5c53c3](https://github.com/thi-ng/umbrella/commit/a5c53c3))
|
|
360
|
-
* **color:** HCYA field names ([1c28c22](https://github.com/thi-ng/umbrella/commit/1c28c22))
|
|
361
|
-
|
|
362
|
-
### Features
|
|
363
|
-
|
|
364
|
-
* **color:** add alpha()/setAlpha(), add docs, re-exports, update readme ([b849bd1](https://github.com/thi-ng/umbrella/commit/b849bd1))
|
|
365
|
-
* **color:** add convert() fallback, minor other updates ([aa30344](https://github.com/thi-ng/umbrella/commit/aa30344))
|
|
366
|
-
* **color:** add HSI converters, add clampH(), minor refactors ([404ac54](https://github.com/thi-ng/umbrella/commit/404ac54))
|
|
367
|
-
* **color:** add Hue enum, closestHue*() fns, namedHueRgba() ([e7bb46b](https://github.com/thi-ng/umbrella/commit/e7bb46b))
|
|
368
|
-
* **color:** add luminance defmulti ([445b8c1](https://github.com/thi-ng/umbrella/commit/445b8c1))
|
|
369
|
-
* **color:** add more color spaces, refactor, rename, simplify ([e930d73](https://github.com/thi-ng/umbrella/commit/e930d73))
|
|
370
|
-
* **color:** add multiCosineGradient() ([dbbb26c](https://github.com/thi-ng/umbrella/commit/dbbb26c))
|
|
371
|
-
* **color:** add new package ([0b51ef1](https://github.com/thi-ng/umbrella/commit/0b51ef1))
|
|
372
|
-
* **color:** add Porter-Duff ops, pre/post-multiply, update types ([a5d2f98](https://github.com/thi-ng/umbrella/commit/a5d2f98))
|
|
373
|
-
* **color:** add RGBA/HSLA wrapper types, update convert ([610699a](https://github.com/thi-ng/umbrella/commit/610699a))
|
|
374
|
-
* **color:** add/update class wrappers ([5788646](https://github.com/thi-ng/umbrella/commit/5788646))
|
|
375
|
-
|
|
376
|
-
### Performance Improvements
|
|
308
|
+
### Performance Improvements
|
|
377
309
|
|
|
378
|
-
|
|
310
|
+
- **color:** refactor porterDiff as HOF, update all PD ops, add docs ([714381d](https://github.com/thi-ng/umbrella/commit/714381d))
|