# LineManager

class `LineManager`()

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

  ## Index

  Methods

  - `addLine`
  - `exportMarkup`
  - `getAllLines`
  - `getLineByNodeId`
  - `loadData`
  - `removeAllLines`
  - `removeLastLine`
  - `removeLine`

## Methods

`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

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

  Returns: object[]

  > JSON Array with line markup

`LineManager.``getAllLines`()
  getAllLines(): `LineMarkup`[]

  Return an array of line items.

  Returns: `LineMarkup`[]

  > array of all line items.

`LineManager.``getLineByNodeId`()
  getLineByNodeId(id: number): (None | `LineMarkup`)

  Gets a line markup item associated with a node id.

  Parameters

  > id: number

  Returns: (None | `LineMarkup`)

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

  Loads JSON markup data

  Parameters

  > lineDataJson: any[]

  Returns: Promise

`LineManager.``removeAllLines`()
  removeAllLines(): Promise

  Removes all line items.

  Returns: Promise

`LineManager.``removeLastLine`()
  removeLastLine(): Promise

  Removes the most recently added line item.

  Returns: Promise

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

  Removes an existing line item.

  Parameters

  > lineItem: `LineMarkup`

  > > the line item to remove.

  Returns: Promise

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your Docs generative AI assistant. Ask me anything about HOOPS Visualize Web or choose a sample question below to start a conversation:

What is HOOPS Visualize Web?
What are the latest release notes for HOOPS Visualize Web?
How do I start evaluating HOOPS Visualize Web?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...