pivotick / RendererOptions / LabelStyle
Interface: LabelStyle
Defined in: interfaces/RendererOptions.ts:721
Properties
backgroundColor
backgroundColor:
string
Defined in: interfaces/RendererOptions.ts:723
Default
#ffffff90color
color:
string
Defined in: interfaces/RendererOptions.ts:729
Default
#333fontFamily
fontFamily:
string
Defined in: interfaces/RendererOptions.ts:727
Default
system-ui, sans-seriffontSize
fontSize:
number
Defined in: interfaces/RendererOptions.ts:725
Default
12labelAccessor()?
optionallabelAccessor: (edge) =>string|void|HTMLElement
Defined in: interfaces/RendererOptions.ts:736
Parameters
edge
Returns
string | void | HTMLElement
styleCb()?
optionalstyleCb: (edge) =>Partial<LabelStyle>
Defined in: interfaces/RendererOptions.ts:735
Callback to dynamically override label style properties based on the edge. On an edge's own label style it wins outright; on render.defaultLabelStyle it fills only what the edge's own label style left unset.
Parameters
edge
Returns
Partial<LabelStyle>