Skip to main content

LabelBackgroundStyle

Defines the style for the background of a label overlay.

Properties

fill?

optional fill: string

Fill color for the background.


opacity?

optional opacity: number

Opacity for the background.


padding?

optional padding: number

Padding to leave around the label. Defaults to 5.


rx?

optional rx: number

Horizontal radius for the background rectangle's corners.


ry?

optional ry: number

Vertical radius for the background rectangle's corners. If you provide rx but not this, ry will take the value of rx.


stroke?

optional stroke: string

Stroke color for the background.


strokeOpacity?

optional strokeOpacity: number

Stroke opacity for the background.


strokeWidth?

optional strokeWidth: number

Stroke width for the background.