UNPKG

@swimlane/ngx-charts

Version:

Declarative Charting Framework for Angular2 and beyond!

33 lines (32 loc) 838 B
/** * Converts a hex to RGB * http://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb * * @export * @param {string} hex * @returns {*} */ export declare function hexToRgb(hex: string): any; /** * Accepts a hex color and returns a inverted hex color * http://stackoverflow.com/questions/9600295/automatically-change-text-color-to-assure-readability * * @export * @param {any} color * @returns {string} */ export declare function invertColor(hex: any): any; /** * 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;