LineManager

class wv.LineManager()

This class provides an interface to 3D line management related functions of the viewer.

Methods

wv.LineManager.addLine()
addLine(lineItem: LineMarkup): Promise

Adds a new Line to the Line Manager

Parameters

lineItem: LineMarkup

LineMarkup Object that will be added

Returns: Promise

wv.LineManager.exportMarkup()
exportMarkup(): object[]

Returns: object[]

JSON Array with line markup
wv.LineManager.getAllLines()
getAllLines(): LineMarkup[]

Return an array of line items.

Returns: LineMarkup[]

array of all line items.
wv.LineManager.getLineByNodeId()
getLineByNodeId(id: number): (None | LineMarkup)

Gets a line markup item associated with a node id.

Parameters

id: number

Returns: (None | LineMarkup)

wv.LineManager.loadData()
loadData(lineDataJson: any[]): Promise

Loads JSON markup data

Parameters

lineDataJson: any[]

Input markup data in Json representation

Returns: Promise

Load status
wv.LineManager.removeAllLines()
removeAllLines(): Promise

Removes all line items.

Returns: Promise

wv.LineManager.removeLastLine()
removeLastLine(): Promise

Removes the most recently added line item.

Returns: Promise

wv.LineManager.removeLine()
removeLine(lineItem: LineMarkup): Promise

Removes an existing line item.

Parameters

lineItem: LineMarkup

the line item to remove.

Returns: Promise