AnnotationCreatedEvent#
Class AnnotationCreatedEvent
Hierarchy
- WebVisEvent
- AnnotationCreatedEvent
 
Constructors
Properties
Accessors
Constructors
constructor
- new Annotation Created Event(annotationID, properties): AnnotationCreatedEvent 
- 
The AnnotationCreatedEvent occurs if an Annotation was created. Parameters- 
annotationID: numberThe ID of the Annotation. 
- 
properties: AnnotationPropertiesAn object with the changed properties. 
 Returns AnnotationCreatedEvent
- 
Properties
annotationID
annotationID: number
The ID of the Annotation.
id
id: number
properties
An object with the changed properties.
Optional transaction
transaction
Optional transactionID
transactionID?: number
Optional type
Accessors
anchor
- get anchorPosition(): number[] | Float32Array
- 
Returns number[] | Float32ArrayDeprecatedanchorPosition is deprecated, please use properties.anchorPosition instead. 
label
- get label(): string
- 
Returns stringDeprecatedlabel is deprecated, please use properties.content instead. 
label
- get labelPosition(): number[] | Float32Array
- 
Returns number[] | Float32ArrayDeprecatedlabelPosition is deprecated, please use properties.contentOffset instead. 
nodeID
- get nodeID(): number
- 
Returns numberDeprecatednodeID is deprecated, please use properties.connectedNodeId instead. 
transform
- get transform(): number[] | Float32Array
- 
Returns number[] | Float32ArrayDeprecatedtransform is deprecated. 
trusted
- get trustedSource(): boolean
- 
Returns booleanDeprecatedtrustedSource is deprecated, please use properties.trustedSource instead. 
visible
- get visible(): boolean
- 
Returns booleanDeprecatedvisible is deprecated, please use properties.enabled instead. 
ANNOTATION_CREATED ANNOTATION_CREATED