Skip to main content

AnnoStyle

TypeSource

AnnoStyle(
padding: float,
fontSize: float,
fontColor: str,
fontBackground: str,
fontFamily: str,
lineWidth: float,
shapeBackground: str,
shapeStrokeStyle: str,
shadowBlur: float,
shapeShadowStyle: str,
transformerBackground: str,
transformerSize: float,
)

AnnoStyle is a TypedDict.

The css-styles of the annotation marker (box).

If this value is specified as a string, the string will be parsed as the default color of the annotation boxes.

Aliases

This type can be acquired by

import dash_picture_annotation as dpa


dpa.AnnoStyle
dpa.typehints.AnnoStyle

Keywords

KeywordTypeRequired
Description
paddingfloatText padding.
fontSizefloatText font size.
fontColorstrText font color.
fontBackgroundstrText background color.
fontFamilystrText font name.
lineWidthfloatStroke width.
shapeBackgroundstrBackground color in the middle of the marker.
shapeStrokeStylestrShape stroke color.
shadowBlurfloatStroke shadow blur.
shapeShadowStylestrStroke shape shadow color.
transformerBackgroundstrColor of the scalable dots around the selected box.
transformerSizefloatSize of the scalable dots around the selected box.