fromRatio only supports RGB
mikaello opened this issue Β· comments
The documentation says that fromRatio
accepts both RGB, HSL and HSV objects, but only RGB objects is actually accepted:
See from-ratio.ts
:
https://github.com/TypeCtrl/tinycolor/blob/3fb24fbc4e649d6ec25bf12041659a64daefd062/src/from-ratio.ts#L16-L27
This also fails typescript compilation if you try to provide HSL or HSV objects:
π This issue has been resolved in version 2.5.3 π
The release is available on:
Your semantic-release bot π¦π