web api interface
SVGLineElement
The SVGLineElement interface provides access to the properties of <line> elements, as well as methods to manipulate them.
Instance properties
This interface also inherits properties from its parent, SVGGeometryElement.
x1Read only- : Returns an
SVGAnimatedLengththat corresponds to attributex1on the given<line>element.
- : Returns an
y1Read only- : Returns an
SVGAnimatedLengththat corresponds to attributey1on the given<line>element.
- : Returns an
x2Read only- : Returns an
SVGAnimatedLengththat corresponds to attributex2on the given<line>element.
- : Returns an
y2Read only- : Returns an
SVGAnimatedLengththat corresponds to attributey2on the given<line>element.
- : Returns an
Instance methods
Inherits methods from its parent interface, SVGGeometryElement.
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.
See also
<line>SVG Element