x2 property
Gets or sets the x-coordinate for the end of a line.
![]() ![]() |
Syntax
| JavaScript |
|---|
p = object.x2 |
Property values
Type: Floating-point
The x-coordinate for the end of the line.
Standards information
- Scalable Vector Graphics: Basic Shapes, Section 9.8.4
Remarks
If you do not specify this property, the effect is the same as if you specify a value of 0.
See also
Show:

