(channel: ColorChannel, locale: string)
| 770 | } |
| 771 | |
| 772 | formatChannelValue(channel: ColorChannel, locale: string) { |
| 773 | let options = this.getChannelFormatOptions(channel); |
| 774 | let value = this.getChannelValue(channel); |
| 775 | if (channel === 'saturation' || channel === 'lightness') { |
| 776 | value /= 100; |
| 777 | } |
| 778 | return new NumberFormatter(locale, options).format(value); |
| 779 | } |
| 780 | |
| 781 | getColorSpace(): ColorSpace { |
| 782 | return 'hsl'; |
nothing calls this directly
no test coverage detected