Skip to main content

Annotations

TypeSource

Annotations(
timestamp: int,
data: [AnnoItem],
)

Annotations is a TypedDict.

The collection of annotations.

This dictionary contain the data of annotations.

Aliases

This type can be acquired by

import dash_picture_annotation as dpa


dpa.Annotations
dpa.typehints.Annotations

Keywords

KeywordTypeRequired
Description
timestampstrThe time stamp recording when the user interaction changes the data. Note that this value is necessary for ensuring that the user triggered changes will not be omitted. From the server side, this value can be set by 0 because the user interaction will use a higher value to replace it.
data[AnnoItem]A collection of annotation items. These items are decoded from JSON data and can be modified. Use these items to specify the annotations.