Annotation style
Style overrides applied to every outline annotation.
Referenced In
Fields
| Field | Type | Description | Default |
|---|---|---|---|
| color | string | Optional. Foreground color — strokes, arrowheads, and text (hex, rgb, or named color). | — |
| background | string | Optional. Background color for text-bearing annotations (hex, rgb, or named color). Use transparent for none. | — |
| strokeWidth | number | Optional. Line width in pixels. Minimum: 0 | — |
| fontSize | number | Optional. Font size in pixels. Minimum: 1 | — |
| fontFamily | string | Optional. Font family. Falls back through the list as in CSS. | — |
| opacity | number | Optional. Opacity, from 0 (invisible) to 1 (opaque). Minimum: 0. Maximum: 1 | — |
| radius | number | Optional. Corner radius in pixels, for boxes and text backgrounds. Minimum: 0 | — |
| padding | number | Optional. Padding in pixels inside text boxes, and between an outline and its element. Minimum: 0 | — |
| maxWidth | number | Optional. Maximum width in pixels for text before it wraps. Minimum: 1 | — |
| intensity | number | Optional. 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}