-
Notifications
You must be signed in to change notification settings - Fork 16
line
Eloy Villasclaras edited this page Apr 10, 2016
·
1 revision
<line> draws a line within a <graphics> or a
<shape>.
| Property | Notes |
|---|---|
x1 |
Horizontal start position |
y1 |
Vertical start position |
x2 |
Horizontal end position |
y2 |
Vertical end position |
When a <line> is a child of a <shape>, it inherits its
fill and line style. On the other hand, when defined
directly under a <graphics> a <line> can define its own
style:
| Property | Type | Default | Notes |
|---|---|---|---|
fill |
number | transparent | Fill color |
fillAlpha |
number | 1 | Defines fill color transparency. Between 0 (transparent) and 1 (opaque) |
stroke |
number | 0x000000 | Line color; a line is rendered if any of stroke, strokeWidth or strokeAlpha is defined |
strokeWidth |
number | 1 | Line width, in pixels |
strokeAlpha |
number | 1 | Line color transparency |