Methods
setCords(x1, y1, x2, y2) → {Object}
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()
Render the Line on the Linen.Canvas object
setAlignment(alignment) → {self}
`alignment` is currently not supported on Line element.
Parameters:
Name | Type | Description |
---|---|---|
alignment |
string |
Returns:
self
- Type
- self