UNPKG

@inweb/markup

Version:
17 lines (16 loc) 511 B
/** * 2D markup colorable object interface. */ export interface IMarkupColorable { /** * Returns the foreground color of an object's line or text as a string in hexadecimal color syntax * `#RGB` using its primary color components (red, green, blue) written as hexadecimal numbers. */ getColor(): string; /** * Sets the foreground color of an object's line or text. * * @param hex - Color in hexadecimal color syntax `#RGB`. */ setColor(hex: string): void; }