[page:Object3D] →

[name]

AnnotationControl is a class responsible for annotation movements. Usually, you don't need to use this class directly- to create custom annotations it's better to override the descendant [page:Annotation Annotation] class.

Constructor

[name](container)

container - the ID of an HTML-element or the HTML-element itself which will contain the annotation.

Properties

See the base [page:Object3D] class for common properties.

[property:null container]

The container ID or HTML-element.

[property:Vector3 projected]

Vector with projected annotation coordinates.

[property:function updatedCallback]

Annotaion update callback. Input params: projected X and Y coordinates, annotation visibility flag.

[property:Boolean isAnnotationControl]

Used to check whether this or derived classes are annotation controls.
You should not change this, as it is used internally for optimization.

Methods

See the base [page:Object3D] class for common methods.

[method:AnnotationControl clone]()

Returns a clone of this AnnotationControl object and any descendants.

[method:AnnotationControl update]([param:Camera camera])

Update annotation controller position and visibility, execute [page:AnnotationControl.updatedCallback updatedCallback] if it is provided. This method is used internally by [page:WebGLRenderer] class.

[sourceHint]