Function: createAnnotationColors()
@ghentcdh/annotated-text / createAnnotationColors
Function: createAnnotationColors()
createAnnotationColors(
colors
,config?
):Record
<string
, {background
:string
;backgroundActive
:string
;border
:string
;borderActive
:string
;color
:string
;gutterColor
:string
; }>
Defined in: libs/core/src/lib/utils/createAnnotationColor.ts:83
Creates a set of annotation colors from a given set of color strings.
Parameters
colors
Record
<string
, string
>
A record where the key is a string representing the annotation name and the value is a string representing the color.
config?
Config
Returns
Record
<string
, { background
: string
; backgroundActive
: string
; border
: string
; borderActive
: string
; color
: string
; gutterColor
: string
; }>
A record where the key is a string representing the annotation name and the value is an AnnotationColor
object.