arlas-web-components > "components/componentsUtils" > AwcColorGeneratorLoader

Class: AwcColorGeneratorLoader

Hierarchy

ColorGeneratorLoader

↳ AwcColorGeneratorLoader

Index

Properties

Methods


Properties

colorsSaturationWeight

● colorsSaturationWeight: number = 0.5

Overrides ColorGeneratorLoader.colorsSaturationWeight

Defined in components/componentsUtils.ts:66


keysToColors

● keysToColors: Array<Array<string>>

Overrides ColorGeneratorLoader.keysToColors

Defined in components/componentsUtils.ts:65


Methods

getColor

getColor(key: string, externalKeysToColors: Array<[string, string]>, externalColorsSaturationWeight: number): string

Overrides ColorGeneratorLoader.getColor

Defined in components/componentsUtils.ts:84

Parameters:

Name Type Description
key string The text from which the color is generated
externalKeysToColors Array<[string, string]>
externalColorsSaturationWeight number

Returns: string


getTextColor

getTextColor(color: any): string

Overrides ColorGeneratorLoader.getTextColor

Defined in components/componentsUtils.ts:106

Parameters:

Name Type
color any

Returns: string