{{APIRef("SVG")}}
SVG Line DOM interface
The SVGLineElement
interface provides access to the properties of {{ SVGElement("line") }} elements, as well as methods to manipulate them.
Interface overview
Also implement | {{ domxref("SVGElement") }}, {{ domxref("SVGTests") }}, {{ domxref("SVGLangSpace") }}, {{ domxref("SVGExternalResourcesRequired") }}, {{ domxref("SVGStylable") }}, {{ domxref("SVGTransformable") }} |
---|---|
Methods | None |
Properties |
|
Normative document | SVG 1.1 (2nd Edition) |
Properties
Name | Type | Description |
---|---|---|
x1 |
{{ domxref("SVGAnimatedLength") }} | Corresponds to attribute {{ SVGAttr("x1") }} on the given {{ SVGElement("line") }} element. |
y1 |
{{ domxref("SVGAnimatedLength") }} | Corresponds to attribute {{ SVGAttr("y1") }} on the given {{ SVGElement("line") }} element. |
x2 |
{{ domxref("SVGAnimatedLength") }} | Corresponds to attribute {{ SVGAttr("x2") }} on the given {{ SVGElement("line") }} element. |
y2 |
{{ domxref("SVGAnimatedLength") }} | Corresponds to attribute {{ SVGAttr("y2") }} on the given {{ SVGElement("line") }} element. |
Methods
The SVGLineElement
interface do not provide any specific methods.
Browser compatibility
{{ CompatibilityTable() }}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | {{ CompatVersionUnknown() }} | {{ CompatVersionUnknown() }} | 9.0 | {{ CompatVersionUnknown() }} | {{ CompatVersionUnknown() }} |
Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | {{ CompatNo() }} | {{ CompatVersionUnknown() }} | {{ CompatUnknown() }} | {{ CompatVersionUnknown() }} | {{ CompatVersionUnknown() }} |
See also
- {{ SVGElement("line") }} SVG Element