UNPKG

1.53 kBSource Map (JSON)View Raw
1{"version":3,"file":"consts.js","sourceRoot":"../src/","sources":["utilities/color/consts.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG,GAAG,CAAC;AAC3B,QAAA,aAAa,GAAG,GAAG,CAAC;AACpB,QAAA,eAAe,GAAG,GAAG,CAAC;AACtB,QAAA,aAAa,GAAG,GAAG,CAAC;AACjC,mEAAmE;AACtD,QAAA,cAAc,GAAG,qBAAa,CAAC;AAC/B,QAAA,eAAe,GAAG,GAAG,CAAC;AAEnC,0EAA0E;AAC7D,QAAA,cAAc,GAAG,CAAC,CAAC;AAChC,0EAA0E;AAC7D,QAAA,cAAc,GAAG,CAAC,CAAC;AAChC,6DAA6D;AAChD,QAAA,eAAe,GAAG,CAAC,CAAC;AACjC,6DAA6D;AAChD,QAAA,eAAe,GAAG,CAAC,CAAC;AAEjC,+DAA+D;AAClD,QAAA,SAAS,GAAG,iBAAiB,CAAC;AAC3C,+CAA+C;AAClC,QAAA,UAAU,GAAG,WAAW,CAAC","sourcesContent":["export const MAX_COLOR_SATURATION = 100;\nexport const MAX_COLOR_HUE = 359;\nexport const MAX_COLOR_VALUE = 100;\nexport const MAX_COLOR_RGB = 255;\n/** @deprecated Use MAX_COLOR_RGB (255) or MAX_COLOR_ALPHA (100) */\nexport const MAX_COLOR_RGBA = MAX_COLOR_RGB;\nexport const MAX_COLOR_ALPHA = 100;\n\n/** Minimum length for a hexadecimal color string (not including the #) */\nexport const MIN_HEX_LENGTH = 3;\n/** Maximum length for a hexadecimal color string (not including the #) */\nexport const MAX_HEX_LENGTH = 6;\n/** Minimum length for a string of an RGBA color component */\nexport const MIN_RGBA_LENGTH = 1;\n/** Maximum length for a string of an RGBA color component */\nexport const MAX_RGBA_LENGTH = 3;\n\n/** Regular expression matching only valid hexadecimal chars */\nexport const HEX_REGEX = /^[\\da-f]{0,6}$/i;\n/** Regular expression matching only numbers */\nexport const RGBA_REGEX = /^\\d{0,3}$/;\n"]}
\No newline at end of file