UNPKG

965 BTypeScriptView Raw
1export declare const MAX_COLOR_SATURATION = 100;
2export declare const MAX_COLOR_HUE = 359;
3export declare const MAX_COLOR_VALUE = 100;
4export declare const MAX_COLOR_RGB = 255;
5/** @deprecated Use MAX_COLOR_RGB (255) or MAX_COLOR_ALPHA (100) */
6export declare const MAX_COLOR_RGBA = 255;
7export declare const MAX_COLOR_ALPHA = 100;
8/** Minimum length for a hexadecimal color string (not including the #) */
9export declare const MIN_HEX_LENGTH = 3;
10/** Maximum length for a hexadecimal color string (not including the #) */
11export declare const MAX_HEX_LENGTH = 6;
12/** Minimum length for a string of an RGBA color component */
13export declare const MIN_RGBA_LENGTH = 1;
14/** Maximum length for a string of an RGBA color component */
15export declare const MAX_RGBA_LENGTH = 3;
16/** Regular expression matching only valid hexadecimal chars */
17export declare const HEX_REGEX: RegExp;
18/** Regular expression matching only numbers */
19export declare const RGBA_REGEX: RegExp;