Last updated

Class: SDKAnnotation<T>

Represents an annotation instance within the SDK.

Implements

Type parameters

NameType
Tany

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new SDKAnnotation<T>(annotation)

Creates an instance of SDKAnnotation.

Type parameters

NameType
Tany

Parameters

NameTypeDescription
annotationanyAnnotation data to initialize the SDKAnnotation object with.

Properties

clientId

clientId: string

The client ID of the annotation.

Implementation of

IAnnotation.clientId


coordinates

Optional coordinates: any

The coordinates of the annotation.

Implementation of

IAnnotation.coordinates


createdAt

createdAt: IDate

The creation date of the annotation.

Implementation of

IAnnotation.createdAt


creator

creator: string

The creator of the annotation.

Implementation of

IAnnotation.creator


datasetId

datasetId: string

The ID of the dataset the annotation belongs to.

Implementation of

IAnnotation.datasetId


annotationId

Optional annotationId: string

The annotation ID of the annotation.


id

id: string

The ID of the annotation.

Implementation of

IAnnotation.id


itemId

itemId: string

The item ID of the annotation.

Implementation of

IAnnotation.itemId


label

label: string

The label of the annotation.

Implementation of

IAnnotation.label


labelSuggestions

labelSuggestions: Object

The label suggestions for the annotation.

Index signature

▪ [p: string]: number

Implementation of

IAnnotation.labelSuggestions


metadata

metadata: any

The metadata of the annotation.

Implementation of

IAnnotation.metadata


type

type: string

The type of the annotation.

Implementation of

IAnnotation.type


updatedAt

updatedAt: IDate

The last update date of the annotation.

Implementation of

IAnnotation.updatedAt


updatedBy

updatedBy: string

The last updater of the annotation.

Implementation of

IAnnotation.updatedBy


attributes

attributes: string[]

The attributes of the annotation.


description

Optional description: string

The description of the annotation.


data

Optional data: T

The data of the annotation.


labelColor

Optional labelColor: string


snapshots

snapshots: SnapshotService<T>

The snapshots of the annotation.

Methods

toJSON

toJSON(): Object

Returns the annotation as a JSON object.

Returns

Object

NameType
clientIdstring
coordinatesany
createdAtIDate
creatorstring
datasetIdstring
idstring
itemIdstring
labelstring
labelSuggestions{ [p: string]: number; }
metadataany
typestring
updatedAtIDate
updatedBystring
attributesstring[]
descriptionstring
labelColorstring
dataT