Function: createAnnotationColors()
Less than 1 minute
@ghentcdh/vue-component-annotated-text / createAnnotationColors
Function: createAnnotationColors()
createAnnotationColors(
colors
,config?
):Record
<string
,AnnotationColor
>
Defined in: utils/createAnnotationColor.ts:81
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.