Skip to content

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:31

Properties

changekeysToColors$

changekeysToColors$: Observable<void>

Defined in

projects/arlas-components/src/lib/services/color.generator.service.ts:30


colorGenerator

colorGenerator: ColorGeneratorLoader

Defined in

projects/arlas-components/src/lib/services/color.generator.service.ts:31

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:36


getTextColor

getTextColor(color): string

Parameters

Name Type
color any

Returns

string

Defined in

projects/arlas-components/src/lib/services/color.generator.service.ts:40