[page:Mesh] →

[name]

Creates a line mesh object, which constantly points to a specified HTML element.

Constructor

[name]([page:Color color], width)

The parameters are:

Properties

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

[property:HTMLElement elemHTML]

An HTMLElement object to bind the line to. Default is *null*.

[property:Boolean isLineHTML]

Used to check whether this or derived classes are LineHTML meshes. Default is *true*.

[property:Integer offset]

The gap in pixels between the line's end and the target HTMLElement. Default is *5px*.

[property:function onBeforeRender]

A callback that is executed immediately before the LineHTML is rendered. This function is called with the following parameters: renderer, scene, camera, geometry, material, group.

By default this callback updates the line's geometry based on the line's world position and the position of the HTMLElement which the line points to.

Methods

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