arlas-web-components / Exports / ArlasColorService
Class: ArlasColorService
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new ArlasColorService(colorGenerator
)
Parameters
Name | Type |
---|---|
colorGenerator |
ColorGeneratorLoader |
Defined in
projects/arlas-components/src/lib/services/color.generator.service.ts:26
Properties
colorGenerator
• colorGenerator: ColorGeneratorLoader
Methods
getColor
▸ getColor(key
, keysToColors?
, colorsSaturationWeight?
): string
Parameters
Name | Type |
---|---|
key |
string |
keysToColors? |
[string , string ][] |
colorsSaturationWeight? |
number |
Returns
string
Defined in
projects/arlas-components/src/lib/services/color.generator.service.ts:28
getTextColor
▸ getTextColor(color
): string
Parameters
Name | Type |
---|---|
color |
any |
Returns
string
Defined in
projects/arlas-components/src/lib/services/color.generator.service.ts:32