W3cubDocs

/Web APIs

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.

EventTarget Node Element SVGElement SVGGraphicsElement SVGGeometryElement

Instance properties

This interface also inherits properties from its parent, SVGGraphicsElement.

SVGGeometryElement.pathLength Read only

This property reflects the pathLength attribute.

Instance methods

This interface also inherits methods from its parent, SVGGraphicsElement.

SVGGeometryElement.isPointInFill()

Determines whether a given point is within the fill shape of an element. Normal hit testing rules apply; the value of the pointer-events property on the element determines whether a point is considered to be within the fill.

SVGGeometryElement.isPointInStroke()

Determines whether a given point is within the stroke shape of an element. Normal hit testing rules apply; the value of the pointer-events property on the element determines whether a point is considered to be within the stroke.

SVGGeometryElement.getTotalLength()

Returns the user agent's computed value for the total length of the path in user units.

SVGGeometryElement.getPointAtLength()

Returns the point at a given distance along the path.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
SVGGeometryElement 56
1–56The SVGGeometryElement interface itself is not present, but some of its members are available on the SVGPathElement interface.
79
12–79The SVGGeometryElement interface itself is not present, but some of its members are available on the SVGPathElement interface.
53
1.5–53The SVGGeometryElement interface itself is not present, but some of its members are available on the SVGPathElement interface.
9The SVGGeometryElement interface itself is not present, but some of its members are available on the SVGPathElement interface.
43
≤12.1–43The SVGGeometryElement interface itself is not present, but some of its members are available on the SVGPathElement interface.
12
3–12The SVGGeometryElement interface itself is not present, but some of its members are available on the SVGPathElement interface.
56
≤37–56The SVGGeometryElement interface itself is not present, but some of its members are available on the SVGPathElement interface.
56
18–56The SVGGeometryElement interface itself is not present, but some of its members are available on the SVGPathElement interface.
53
4–53The SVGGeometryElement interface itself is not present, but some of its members are available on the SVGPathElement interface.
43
≤12.1–43The SVGGeometryElement interface itself is not present, but some of its members are available on the SVGPathElement interface.
12
1–12The SVGGeometryElement interface itself is not present, but some of its members are available on the SVGPathElement interface.
6.0
1.0–6.0The SVGGeometryElement interface itself is not present, but some of its members are available on the SVGPathElement interface.
getPointAtLength 56
1–56Only supported for SVGPathElement, not all SVGGeometryElement objects.
79
12–79Only supported for SVGPathElement, not all SVGGeometryElement objects.
61
1.5–61Only supported for SVGPathElement, not all SVGGeometryElement objects.
9Only supported for SVGPathElement, not all SVGGeometryElement objects.
43
≤12.1–43Only supported for SVGPathElement, not all SVGGeometryElement objects.
12
3–12Only supported for SVGPathElement, not all SVGGeometryElement objects.
56
≤37–56Only supported for SVGPathElement, not all SVGGeometryElement objects.
56
18–56Only supported for SVGPathElement, not all SVGGeometryElement objects.
61
4–61Only supported for SVGPathElement, not all SVGGeometryElement objects.
43
≤12.1–43Only supported for SVGPathElement, not all SVGGeometryElement objects.
12
1–12Only supported for SVGPathElement, not all SVGGeometryElement objects.
6.0
1.0–6.0Only supported for SVGPathElement, not all SVGGeometryElement objects.
getTotalLength 56
1–56Only supported for SVGPathElement, not all SVGGeometryElement objects.
79
12–79Only supported for SVGPathElement, not all SVGGeometryElement objects.
61
1.5–61Only supported for SVGPathElement, not all SVGGeometryElement objects.
9Only supported for SVGPathElement, not all SVGGeometryElement objects.
43
≤12.1–43Only supported for SVGPathElement, not all SVGGeometryElement objects.
12
3–12Only supported for SVGPathElement, not all SVGGeometryElement objects.
56
≤37–56Only supported for SVGPathElement, not all SVGGeometryElement objects.
56
18–56Only supported for SVGPathElement, not all SVGGeometryElement objects.
61
4–61Only supported for SVGPathElement, not all SVGGeometryElement objects.
43
≤12.1–43Only supported for SVGPathElement, not all SVGGeometryElement objects.
12
1–12Only supported for SVGPathElement, not all SVGGeometryElement objects.
6.0
1.0–6.0Only supported for SVGPathElement, not all SVGGeometryElement objects.
isPointInFill 33 79 69 No 20 12 4.4.3 33 79 20 12 3.0
isPointInStroke 33 79 69 No 20 12 4.4.3 33 79 20 12 3.0
pathLength 57
1–57Only supported for SVGPathElement, not all SVGGeometryElement objects.
79 61
1.5–61Only supported for SVGPathElement, not all SVGGeometryElement objects.
No 44
≤12.1–44Only supported for SVGPathElement, not all SVGGeometryElement objects.
12
3–12Only supported for SVGPathElement, not all SVGGeometryElement objects.
57
≤37–57Only supported for SVGPathElement, not all SVGGeometryElement objects.
57
18–57Only supported for SVGPathElement, not all SVGGeometryElement objects.
61
4–61Only supported for SVGPathElement, not all SVGGeometryElement objects.
43
≤12.1–43Only supported for SVGPathElement, not all SVGGeometryElement objects.
12
1–12Only supported for SVGPathElement, not all SVGGeometryElement objects.
7.0
1.0–7.0Only supported for SVGPathElement, not all SVGGeometryElement objects.

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement