arlas-wui-toolkit > "src/app/services/color-generator-loader/color-generator-loader.service" > ArlasColorGeneratorLoader

Class: ArlasColorGeneratorLoader

Hierarchy

ArlasColorGeneratorLoader

Implements

  • ColorGeneratorLoader

Index

Constructors

Properties

Methods


Constructors

constructor

new ArlasColorGeneratorLoader(configService: ArlasConfigService, collaborativesearchService: ArlasCollaborativesearchService): ArlasColorGeneratorLoader

Defined in src/app/services/color-generator-loader/color-generator-loader.service.ts:25

Parameters:

Name Type
configService ArlasConfigService
collaborativesearchService ArlasCollaborativesearchService

Returns: ArlasColorGeneratorLoader


Properties

colorAggregations

● colorAggregations: Array<[Aggregation, Aggregation]>

Defined in src/app/services/color-generator-loader/color-generator-loader.service.ts:25


colorsSaturationWeight

● colorsSaturationWeight: number

Defined in src/app/services/color-generator-loader/color-generator-loader.service.ts:23


keysToColors

● keysToColors: Array<[string, string]> = new Array<[string, string]>()

Defined in src/app/services/color-generator-loader/color-generator-loader.service.ts:22


keysToColorsMap

● keysToColorsMap: Map<string, string> = new Map()

Defined in src/app/services/color-generator-loader/color-generator-loader.service.ts:24


Methods

getColor

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

Defined in src/app/services/color-generator-loader/color-generator-loader.service.ts:44

Parameters:

Name Type
key string
Optional externalKeysToColors Array<[string, string]>
Optional externalColorsSaturationWeight number

Returns: string


getTextColor

getTextColor(color: string): string

Defined in src/app/services/color-generator-loader/color-generator-loader.service.ts:66

Parameters:

Name Type
color string

Returns: string


setKeysToColors

setKeysToColors(keysToColors: Array<[string, string]>): void

Defined in src/app/services/color-generator-loader/color-generator-loader.service.ts:93

Parameters:

Name Type
keysToColors Array<[string, string]>

Returns: void


updateKeywordColor

updateKeywordColor(keyword: string, color: string): void

Defined in src/app/services/color-generator-loader/color-generator-loader.service.ts:75

Parameters:

Name Type Description
keyword string -
color string

Returns: void