arlas-web-components > "components/componentsUtils" > ColorGeneratorLoader
Class: ColorGeneratorLoader
Hierarchy
ColorGeneratorLoader
Index
Properties
Methods
Properties
<Abstract>
colorsSaturationWeight
● colorsSaturationWeight: number
Defined in components/componentsUtils.ts:52
<Abstract>
keysToColors
● keysToColors: Array
<Array
<string
>>
Defined in components/componentsUtils.ts:51
Methods
<Abstract>
getColor
▸ getColor(key: string
, externalkeysToColors: Array
<[string
, string
]>, externalColorsSaturationWeight: number
): string
Defined in components/componentsUtils.ts:60
Parameters:
Name | Type | Description |
---|---|---|
key | string |
The text from which the color is generated |
externalkeysToColors | Array <[string , string ]> |
List of [key, color] couples that associates a hex color to each key. |
externalColorsSaturationWeight | number |
Returns: string
<Abstract>
getTextColor
▸ getTextColor(color: any
): string
Defined in components/componentsUtils.ts:61
Parameters:
Name | Type |
---|---|
color | any |
Returns: string