ngx-colors icon indicating copy to clipboard operation
ngx-colors copied to clipboard

Export functions to convert to different color value

Open MelanieW97 opened this issue 1 year ago • 1 comments

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. :)

MelanieW97 avatar Jan 08 '24 13:01 MelanieW97

Hey there,

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)

It'd be so great to use this ConverterService.

MelanieW97 avatar Jan 30 '24 07:01 MelanieW97