UNPKG

793 BTypeScriptView Raw
1import { Cmyk, Rgba, Hsla, Hsva } from './formats';
2import { ColorPickerComponent } from './color-picker.component';
3export declare class ColorPickerService {
4 private active;
5 constructor();
6 setActive(active: ColorPickerComponent | null): void;
7 hsva2hsla(hsva: Hsva): Hsla;
8 hsla2hsva(hsla: Hsla): Hsva;
9 hsvaToRgba(hsva: Hsva): Rgba;
10 cmykToRgb(cmyk: Cmyk): Rgba;
11 rgbaToCmyk(rgba: Rgba): Cmyk;
12 rgbaToHsva(rgba: Rgba): Hsva;
13 rgbaToHex(rgba: Rgba, allowHex8?: boolean): string;
14 normalizeCMYK(cmyk: Cmyk): Cmyk;
15 denormalizeCMYK(cmyk: Cmyk): Cmyk;
16 denormalizeRGBA(rgba: Rgba): Rgba;
17 stringToHsva(colorString?: string, allowHex8?: boolean): Hsva | null;
18 outputFormat(hsva: Hsva, outputFormat: string, alphaChannel: string | null): string;
19}