Line

Line

longdo.PanoramaViewer.Line

Constructor

new Line(location)

Class represent a line on panorama view
Parameters:
Name Type Description
location object Location object.

Methods

active() → {boolean}

Line will be active when it is added to panorama view.
Returns:
Type:
boolean
Line is added to panorama view

color(red, green, blue, alpha) → {Array.<float>|self}

Set line color
Parameters:
Name Type Description
red float range from 0.0 - 1.0
green float range from 0.0 - 1.0
blue float range from 0.0 - 1.0
alpha float range from 0.0 - 1.0
Returns:
  • Type:
    Array.<float>
    Current color information.
  • Type:
    self

getOption() → {Object}

Return option given when creating this line.
Returns:
Type:
Object
This line option.

isValidLine() → {boolean}

Check whether this line is a valid line.
Returns:
Type:
boolean
Whether this line is a valid line.

location(_loc) → {Array.<object>|self}

Adjust line's location
Parameters:
Name Type Description
_loc Array.<object> Array of location object as coordinates for this line.
Returns:
  • Type:
    Array.<object>
    Current line's coordinates if a parameter is not set.
  • Type:
    self
    .

width(_width) → {float|self}

Set line width
Parameters:
Name Type Description
_width float Line width unit
Returns:
  • Type:
    float
    Current line width if a parameter is not set.
  • Type:
    self