UNPKG

transitive-js

Version:

A tool for generating dynamic stylized transit maps that are easy to understand.

9 lines (8 loc) 385 B
/** * For a provided hex color, returns an inverted color for legibility. * @param {[type]} hex - hexadecimal (HTML) color, e.g. #FFFFFF * @param {[type]} bw - whether to return only black or white as inverted color * @return {[type]} [description] */ export function invertColor(hex: [any], bw?: [any]): [any]; export function padZero(str: any, len: any): string;