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:
- fill/stroke.js, line 12
Extends
Summary
Members |
||
---|---|---|
id :string
Common name for stroke objects
|
Inherited
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:
- fill/stroke.js, line 30
Methods
-
clone() → {lime.fill.Stroke}
-
Clone the stroke.
- Source:
- fill/stroke.js, line 91
Returns:
New cloned stroke.- Type
- lime.fill.Stroke
-
getColor() → {lime.fill.Color}
-
Return current stroke color.
- Source:
- fill/stroke.js, line 65
Returns:
Color.- Type
- lime.fill.Color
-
getWidth() → {number}
-
Return stroke width.
- Source:
- fill/stroke.js, line 47
Returns:
Stroke width.- Type
- number
-
setCanvasStyle()
-
- Source:
- fill/stroke.js, line 38
-
setColor(color) → {lime.fill.Stroke}
-
Set new color for the stroke.
Parameters:
Name Type Description color
* New color. - Source:
- fill/stroke.js, line 74
Returns:
Stroke object itself.- Type
- lime.fill.Stroke
-
setDOMStyle()
-
- Source:
- fill/stroke.js, line 33
-
setWidth(width) → {lime.fill.Stroke}
-
Set new stroke width.
Parameters:
Name Type Description width
number New value. - Source:
- fill/stroke.js, line 56
Returns:
Stroke object itself.- Type
- lime.fill.Stroke