Function: createAnnotationColor()
Less than 1 minute
@ghentcdh/annotated-text / createAnnotationColor
Function: createAnnotationColor()
createAnnotationColor(
color
,config?
):object
Defined in: libs/core/src/lib/utils/createAnnotationColor.ts:57
Creates an annotation color configuration based on the provided color and optional configuration.
Parameters
color
string
The base color in hexadecimal format.
config?
Config
Optional configuration object to override default opacity settings.
Returns
object
The generated annotation color configuration.
background?
optional
background:string
backgroundActive?
optional
backgroundActive:string
border?
optional
border:string
borderActive?
optional
borderActive:string
color?
optional
color:string
gutterColor?
optional
gutterColor:string