@ux-aspects/ux-aspects
Version:
Open source user interface framework for building modern, responsive, mobile big data applications
28 lines (27 loc) • 734 B
TypeScript
import { ColorPickerInputMode } from './color-picker.type';
/**
* Type representing a color, including its descriptive name.
*/
export declare class ColorPickerColor {
/**
* Human-readable name of the color.
*/
name: string;
/**
* Hex value of the color, e.g. `#ffffff`.
*/
get hex(): string;
/**
* RGBA value of the color, e.g. `rgba(255, 255, 255, 1)`.
*/
get rgba(): string;
get r(): number;
get g(): number;
get b(): number;
get a(): number;
private readonly _color;
private readonly _originalHexValue;
private readonly _originalRgbaValue;
constructor(name: string, value: string, inputMode?: ColorPickerInputMode);
toString(): string;
}