import * as RandomUtil from './RandomUtil' ; export enum AccentColorID { BRIGHT_ORANGE = 5 , SOFT_PINK = 6 , STRONG_BLUE = 1 , STRONG_LIME_GREEN = 2 , VIOLET = 7 , VIVID_RED = 4 , deprecated YELLOW = 3 } export interface AccentColor { color : string ; id : AccentColorID ; name : string ; } export const STRONG_BLUE = { color : '#2391d3' , id : AccentColorID . STRONG_BLUE , name : 'StrongBlue' , } ; export const STRONG_LIME_GREEN = { color : '#00c800' , id : AccentColorID . STRONG_LIME_GREEN , name : 'StrongLimeGreen' , } ; export const DEPRECATED_YELLOW = { color : '#febf02' , id : AccentColorID . YELLOW , name : 'Yellow' , } ; export const VIVID_RED = { color : '#fb0807' , id : AccentColorID . VIVID_RED , name : 'VividRed' , } ; export const BRIGHT_ORANGE = { color : '#ff8900' , id : AccentColorID . BRIGHT_ORANGE , name : 'BrightOrange' , } ; export const SOFT_PINK = { color : '#fe5ebd' , id : AccentColorID . SOFT_PINK , name : 'SoftPink' , } ; export const VIOLET = { color : '#9c00fe' , id : AccentColorID . VIOLET , name : 'Violet' , } ; export const ACCENT_COLORS = [ BRIGHT_ORANGE , SOFT_PINK , STRONG_BLUE , STRONG_LIME_GREEN , VIOLET , VIVID_RED , ] ; export const getById = ( id ) : AccentColor | undefined => ACCENT_COLORS . find ( color => color . id === id ) ; export const getRandom = ( ) : AccentColor => RandomUtil . randomArrayElement ( ACCENT_COLORS ) ; /**
 * Use with caution:
 * This only exists to support deprecated color schemes and
 * is only permitted for usage in a read only manner.
 */ export const DEPRECATED_ACCENT_COLORS = [ BRIGHT_ORANGE , DEPRECATED_YELLOW , SOFT_PINK , STRONG_BLUE , STRONG_LIME_GREEN , VIOLET , VIVID_RED , ] ; param id returns export const DEPRECATED_getById = ( id ) : AccentColor | undefined => DEPRECATED_ACCENT_COLORS . find ( color => color . id === id ) ;