PUBLIC

JavaScript SVGLineElement : SVGElement

Defines a line.

Instance Properties

x1 : SVGAnimatedLength  

The x position of the first point of the line.

Example:

Run

Results:

 

x2 : SVGAnimatedLength  

The x position of the second point of the line.

Example:

Run

Results:

 

y1 : SVGAnimatedLength  

The y position of the first point of the line.

Example:

Run

Results:

 

y2 : SVGAnimatedLength  

The y position of the second point of the line.

Example:

Run

Results: