AnnotationCreatedEvent#
Class AnnotationCreatedEvent
Hierarchy
- WebVisEvent
- AnnotationCreatedEvent
Index
Constructors
Properties
Accessors
Constructors
constructor
- new
Annotation Created Event(annotationID, properties): AnnotationCreatedEvent -
The AnnotationCreatedEvent occurs if an Annotation was created.
Parameters
-
annotationID: number
The ID of the Annotation.
-
properties: AnnotationProperties
An 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 Code
transaction Code?: string
Optional
transactionID
transactionID?: number
Optional
type
Accessors
anchor Position
- get anchorPosition(): Float32Array | number[]
-
Returns Float32Array | number[]
Deprecated
anchorPosition is deprecated, please use properties.anchorPosition instead.
label
- get label(): string
-
Returns string
Deprecated
label is deprecated, please use properties.content instead.
label Position
- get labelPosition(): Float32Array | number[]
-
Returns Float32Array | number[]
Deprecated
labelPosition is deprecated, please use properties.contentOffset instead.
nodeID
- get nodeID(): number
-
Returns number
Deprecated
nodeID is deprecated, please use properties.connectedNodeId instead.
transform
- get transform(): Float32Array | number[]
-
Returns Float32Array | number[]
Deprecated
transform is deprecated.
trusted Source
- get trustedSource(): boolean
-
Returns boolean
Deprecated
trustedSource is deprecated, please use properties.trustedSource instead.
visible
- get visible(): boolean
-
Returns boolean
Deprecated
visible is deprecated, please use properties.enabled instead.
ANNOTATION_CREATED ANNOTATION_CREATED