Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
README.md | 2024-01-13 | 1.9 kB | |
v1.7.94 source code.tar.gz | 2024-01-13 | 537.0 kB | |
v1.7.94 source code.zip | 2024-01-13 | 1.1 MB | |
Totals: 3 Items | 1.6 MB | 0 |
1.7.94 📦
- Deprecated temperature 🌡️ based utilities due to inconsistent results.
- Rewrote the type declarations to make them simpler and more generic.
- Lightness 🕯️ and chroma channels are now normalized against passed in extremums in the filtering utilities.
toHex
now supports RGB channel in the [0,255] range and [0,1] as well. Values above 1 are normalized using a simple formula.ch / 255
.- Removed unnecessary submodules and joined them into grouped modules 📚
- Added Typedoc as the documentation generator of choice. 📜
- Added
getNearestColor
which uses the differenceHyab metric to get the nearest color against a collection. - Collection based utilities that took arrays of colors are now generic! If an object is passed its keys are passsed as an index and the values are treated as valid color tokens. Objects can only have a depth of 1 ie nested properties are not supported (yet).
- Added color vision deficiency simulation support (stable)
- Added a ColorArray class that has all collection based methods on its prototype as methods. The chain is lazy and requires
output()
to be called to retun the final result. Its aliased asload()
which simply wraps around the class and invoking a new instance under the hood. -Added some notes to the docs explaining how some of the utilities work as well as other behaviours of the library. - Slimmer bundle size.
- Fixed import errors. The library is now fully ESM with a UMD build for CDN and minified version for browser.
- Added support for more uniform colorspaces in hueShift. Jch is currently unsupported because of lightness mapping issues. Support is coming soon though.
- Removed cyclic dependencies that caused a stackoverflow error.