Frontend API
export class Colors
Returns the color associated to a type of component. This color should be used while displaying blocks on the graph.
Created by antoine on 09/06/17.
getColor(component: string): string
Get the color associated to the given component.
- Parameters:
component
— the name of the component - Returns:
string
— the color to use, formatted as hex with the # in the beginning