AnnotationCreatedEvent

Class AnnotationCreatedEvent

ANNOTATION_CREATED ANNOTATION_CREATED

Hierarchy

Constructors

  • The AnnotationCreatedEvent occurs if an annotation was created.

    Parameters

    • annotationID: number

      The ID of the annotation.

    • label: string

      The text of the annotation.

    • visible: boolean

      Indicates if the annotation should be visible or hidden.

    • anchorPosition: Float32Array | number[]

      Anchor position in world space coordinates.

    • labelPosition: Float32Array | number[]

      Label position in world space coordinates.

    • explicitOffset: boolean

      Label offset was explicitly defined.

    • Optional transform: Float32Array | number[]

      The local transform matrix of the annotation.

    • Optional trustedSource: boolean

      Specifies if the annotation content comes from a trusted source.

    • Optional nodeID: number

      Specifies the ID of the Node where the annotation is attached to.

    Returns AnnotationCreatedEvent

Properties

anchorPosition: Float32Array | number[]
annotationID: number
explicitOffset: boolean
id: number
label: string
labelPosition: Float32Array | number[]
nodeID?: number
transactionCode?: string
transactionID?: number
transform?: Float32Array | number[]
trustedSource?: boolean
type?: EventType
visible: boolean