You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
would it be possible to expose the functions you use for converting the color values to a different type, e.g. rgba to hex.
I need to let the user choose a color value he wants but save a specific value. Therefore, it'd be great if I could handle it the same way as you so in order to prevent bugs on two sides.
Thanks in advance. :)
The text was updated successfully, but these errors were encountered:
I found the class "ConverterService". That's exaclty what I need. However, it is not part of the public API. Unfortunately, I cannot use it.
Error: Module not found: Error: Package path ./lib/services/converter.service is not exported from package /xyz/node_modules/ngx-colors (see exports field in /xyz/node_modules/ngx-colors/package.json)
I've just noticed that the CMYK option does not seem to be working in the converter service.
As I said, I use the same function as you do since I don't want a different behavior but it's not working for CMYK values.
stringToFormat always returns an empty string for cmyk values.
Therefore, my input field is empty since I transform the value to HEX with stringToFormat.
Edit: Never mind! It's all good. However, you seem to have added CMYK after an update and I have not noticed. Therefore, my local converter service did not include the logic for that. Consider this little problem as a push for exporting the functions. :)
In that case, I could simply use them instead of having to duplicate them in my own code.
Exporting the ColorFormats enum would be nice, too.
In that case, I can even go like this and be safe that the enum does not change:
Hello,
would it be possible to expose the functions you use for converting the color values to a different type, e.g. rgba to hex.
I need to let the user choose a color value he wants but save a specific value. Therefore, it'd be great if I could handle it the same way as you so in order to prevent bugs on two sides.
Thanks in advance. :)
The text was updated successfully, but these errors were encountered: