Skip to main content
Version: 0.1.x

Size

TypeSource

Size(
label: str,
value: Any,
disabled: bool,
)

Size is a TypedDict.

The requirement of the minimal annotation size. Any newly created annotation with a size smaller than this size will be dropped.

If this value is configured as a scalar, will use it for both width and height.

If any of the value is not set or configured as invalid values, will use 0.

Aliases​

This type can be acquired by

import dash_picture_annotation as dpa


dpa.Size
dpa.typehints.Size

Keywords​

KeywordTypeRequired
Description
widthfloatRequirement of the minimal width of an annotator.
heightfloatRequirement of the minimal height of an annotator.