v1.95.0 #152
prjctimg
announced in
Announcements
v1.95.0
#152
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
1.95.0 (stable)
Notable changes
.d.ts
files. This is eliminate the need for a build step just to be able to test our code. It will also make it possible to run this library on NPM+RunkitNew features 🧰
getFarthestChromaFrom
getFarthestHueFrom
getFarthestLightnessFrom
getNearestChromaFrom
getNearestHueFrom
getNearestLightnessFrom
Which are similar to i.e
getNearestChroma
but take an additional against param which takes every color in the collection as a subtrahend and returning the specified extremum of the factor being queried.Enhancements 💊
ArrayLike
objects as well as plain objects andMap
objects. In short its fully generic. If a plain object is passed as the collection it returns aMap
. This is true for infilterBy
functions which will return aMap
with the falsy colors removed. InsortBy
functions, an orderedMap
is returned because this object remembers insertion order and is more effecient if you want to perform frequent actions on the collection.colorspace
parameter for examplenum2rgb
. See the updated converters hereisAchromatic
now checks if a color is achromatic in additional colorspaces as well. This is optional via a second paramcolorspace
. The default colorspace is 'lch'Bug fixes 🐌
... And more!!!
This discussion was created from the release v1.95.0.
Beta Was this translation helpful? Give feedback.
All reactions