Line

Linen. Line

Model for drawing lines
This element extends Linen.Model and inherits all of it's methods.

Constructor

new Line(Linen)

Source:
Parameters:
Name Type Description
Linen Linen The instance of Linen.

Methods

setCords(x1, y1, x2, y2) → {Object}

Source:
Set the start and end coordinates for the line to be rendered.
Parameters:
Name Type Description
x1 number Starting x position
y1 number Starting y position
x2 number Ending x position
y2 number Ending y position
Returns:
self
Type
Object

render()

Source:
Render the Line on the Linen.Canvas object

setAlignment(alignment) → {self}

Source:
`alignment` is currently not supported on Line element.
Parameters:
Name Type Description
alignment string
Returns:
self
Type
self