Skip to navigation

Annotation style

Visual overrides for this annotation. Anything unset falls back to the resolved annotationDefaults theme (test, then spec, then config), then to the built-in theme.

Referenced In

Fields

FieldTypeDescriptionDefault
colorstringOptional. Foreground color — strokes, arrowheads, and text (hex, rgb, or named color).—
backgroundstringOptional. Background color for text-bearing annotations (hex, rgb, or named color). Use transparent for none.—
strokeWidthnumberOptional. Line width in pixels.

Minimum: 0
—
fontSizenumberOptional. Font size in pixels.

Minimum: 1
—
fontFamilystringOptional. Font family. Falls back through the list as in CSS.—
opacitynumberOptional. Opacity, from 0 (invisible) to 1 (opaque).

Minimum: 0. Maximum: 1
—
radiusnumberOptional. Corner radius in pixels, for boxes and text backgrounds.

Minimum: 0
—
paddingnumberOptional. Padding in pixels inside text boxes, and between an outline and its element.

Minimum: 0
—
maxWidthnumberOptional. Maximum width in pixels for text before it wraps.

Minimum: 1
—
intensitynumberOptional. Blur strength. Higher values obscure more.

Minimum: 1
—

Examples

{
"color": "example",
"background": "example",
"strokeWidth": 42,
"fontSize": 42,
"fontFamily": "example",
"opacity": 42,
"radius": 42,
"padding": 42,
"maxWidth": 42,
"intensity": 42
}