Class: Stroke

lime.fill.Stroke

new lime.fill.Stroke(opt_width, opt_color)

Stroke
Parameters:
Name Type Argument Description
opt_width number | Array.<*> <optional>
Stroke width.
opt_color * <optional>
Stroke color.
Source:

Extends

Summary

Members
id :string
Common name for stroke objects
Methods
clone() → {lime.fill.Stroke}
Clone the stroke.
getColor() → {lime.fill.Color}
Return current stroke color.
getWidth() → {number}
Return stroke width.
setCanvasStyle()
setColor(color) → {lime.fill.Stroke}
Set new color for the stroke.
setDOMStyle()
setWidth(width) → {lime.fill.Stroke}
Set new stroke width.

Members

id :string

Common name for stroke objects
Source:

Methods

clone() → {lime.fill.Stroke}

Clone the stroke.
Source:
Returns:
New cloned stroke.
Type
lime.fill.Stroke

getColor() → {lime.fill.Color}

Return current stroke color.
Source:
Returns:
Color.
Type
lime.fill.Color

getWidth() → {number}

Return stroke width.
Source:
Returns:
Stroke width.
Type
number

setCanvasStyle()

Source:

setColor(color) → {lime.fill.Stroke}

Set new color for the stroke.
Parameters:
Name Type Description
color * New color.
Source:
Returns:
Stroke object itself.
Type
lime.fill.Stroke

setDOMStyle()

Source:

setWidth(width) → {lime.fill.Stroke}

Set new stroke width.
Parameters:
Name Type Description
width number New value.
Source:
Returns:
Stroke object itself.
Type
lime.fill.Stroke