UNPKG

@swimlane/ngx-charts

Version:

Declarative Charting Framework for Angular

32 lines (31 loc) 823 B
/** * Converts a hex to RGB * * @export * @param {string} hex * @returns {*} */ export declare function hexToRgb(value: string): any; /** * Accepts a color (string) and returns a inverted hex color (string) * http://stackoverflow.com/questions/9600295/automatically-change-text-color-to-assure-readability * * @export * @param {any} value * @returns {string} */ export declare function invertColor(value: string): string; /** * Given a rgb, it will darken/lighten * http://stackoverflow.com/questions/5560248/programmatically-lighten-or-darken-a-hex-color-or-rgb-and-blend-colors * * @export * @param {any} { r, g, b } * @param {any} percent * @returns */ export declare function shadeRGBColor({ r, g, b }: { r: any; g: any; b: any; }, percent: any): string;