--- title: SVGGeometryElement slug: Web/API/SVGGeometryElement tags: - API - DOM - NeedsExample - NeedsTranslation - Reference - SVG - SVG DOM - TopicStub translation_of: Web/API/SVGGeometryElement ---
The SVGGeometryElement
interface represents SVG elements whose rendering is defined by geometry with an equivalent path, and which can be filled and stroked. This includes paths and the basic shapes.
{{InheritanceDiagram(600, 140)}}
Note: The pathLength
property and the getTotalLength()
and getPointAtLength()
methods were originally part of the {{domxref("SVGPathElement")}} interface. In SVG 2 they were moved to this interface.
This interface also inherits properties from its parent, {{domxref("SVGGraphicsElement")}}.
This interface also inherits methods from its parent, {{domxref("SVGGraphicsElement")}}.
Specification | Status | Comment |
---|---|---|
{{SpecName("SVG2", "types.html#InterfaceSVGGeometryElement", "SVGGeometryElement")}} | {{Spec2("SVG2")}} | Initial definition |
{{Compat("api.SVGGeometryElement")}}