arlas-web-components > "services/color.generator.service" > ArlasColorService
Class: ArlasColorService
Hierarchy
ArlasColorService
Index
Constructors
Properties
Methods
Constructors
constructor
⊕ new ArlasColorService(colorGenerator: ColorGeneratorLoader): ArlasColorService
Defined in services/color.generator.service.ts:24
Parameters:
Name | Type |
---|---|
colorGenerator | ColorGeneratorLoader |
Returns: ArlasColorService
Properties
colorGenerator
● colorGenerator: ColorGeneratorLoader
Defined in services/color.generator.service.ts:26
Methods
getColor
▸ getColor(key: string
, keysToColors?: Array
<[string
, string
]>, colorsSaturationWeight?: number
): string
Defined in services/color.generator.service.ts:28
Parameters:
Name | Type |
---|---|
key | string |
Optional keysToColors |
Array <[string , string ]> |
Optional colorsSaturationWeight |
number |
Returns: string
getTextColor
▸ getTextColor(color: any
): string
Defined in services/color.generator.service.ts:32
Parameters:
Name | Type |
---|---|
color | any |
Returns: string