Function: createAnnotationColors()
Less than 1 minute
@ghentcdh/annotated-text / createAnnotationColors
Function: createAnnotationColors()
createAnnotationColors(
colors,config?):Record<string,AnnotationColor>
Defined in: libs/core/src/lib/utils/createAnnotationColor.ts:87
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, AnnotationColor>
A record where the key is a string representing the annotation name and the value is an AnnotationColor object.