<line>
Connect two authored endpoints with a straight open contour.
A line starts at (x1, y1) and ends at (x2, y2). Use a stroke to paint the resulting segment.
Syntax
Set the endpoints of a rule
The sibling stroke paints horizontally at y = 36 from x = 112 to 296. The rule paints over the neighboring card, including its letter-shaped holes. With PT Serif Bold bound, (148, 36) is white.
<line x1="112" y1="36" x2="296" y2="36"/>Complete .nothing source · Sample checks
Usage context
Allowed parents are <shape>.
Inherits from Geometry.
Attributes
x1
Value local units · Required · Keys Scalar
Horizontal coordinate of the first endpoint.
y1
Value local units · Required · Keys Scalar
Vertical coordinate of the first endpoint.
x2
Value local units · Required · Keys Scalar
Horizontal coordinate of the second endpoint.
y2
Value local units · Required · Keys Scalar
Vertical coordinate of the second endpoint.
Children
| Elements | Cardinality | Declared by | Role and source order |
|---|---|---|---|
<animate> | Zero or more | Animation | A track targets one keyable property on this owner. For equal first-key times, the later track in document order wins. Evaluating animation tracks |