graphics.style.stroke
Static object.
For changing line style. The value can be set by using the keys described below, or in array format. It is worth noting that in VML(IE<9) display mode, only keys may be used. Additionally, in the line style, the offset for beginning a dotted line can be set via the "offset" field.
Example:
strokeStyle: 'dot';
strokeStyle: [1,2];
strokeStyle: {
style: 'dot',
offset: 10
}
Fields
Name |
Type |
Description |
Dash |
||
Long dash - short dash |
||
Dots |
||
Long dashes |
||
Extra long dash - dot |
||
Long dash - dot - dot |
||
Short dashes |
||
Dash - dot |
||
Dash - dot - dot |
||
Dots with double spacing |
||
Solid line |
Fields details
dash
dash
Dash
dashdot
dashdot
Long dash - short dash
dot
dot
Dots
longdash
longdash
Long dashes
longdashdot
longdashdot
Extra long dash - dot
longdashdotdot
longdashdotdot
Long dash - dot - dot
shortdash
shortdash
Short dashes
shortdashdot
shortdashdot
Dash - dot
shortdashdotdot
shortdashdotdot
Dash - dot - dot
shortdot
shortdot
Dots with double spacing
solid
solid
Solid line
Was the article helpful?
Previous
Next