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.
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.
This interface also inherits properties from its parent, SVGGraphicsElement
.
SVGGeometryElement.pathLength
Read only
This property reflects the pathLength
attribute.
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.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
SVGGeometryElement |
561–56TheSVGGeometryElement interface itself is not present, but some of its members are available on the SVGPathElement interface. |
7912–79TheSVGGeometryElement interface itself is not present, but some of its members are available on the SVGPathElement interface. |
531.5–53TheSVGGeometryElement interface itself is not present, but some of its members are available on the SVGPathElement interface. |
9TheSVGGeometryElement interface itself is not present, but some of its members are available on the SVGPathElement interface. |
43≤12.1–43TheSVGGeometryElement interface itself is not present, but some of its members are available on the SVGPathElement interface. |
123–12TheSVGGeometryElement interface itself is not present, but some of its members are available on the SVGPathElement interface. |
56≤37–56TheSVGGeometryElement interface itself is not present, but some of its members are available on the SVGPathElement interface. |
5618–56TheSVGGeometryElement interface itself is not present, but some of its members are available on the SVGPathElement interface. |
534–53TheSVGGeometryElement interface itself is not present, but some of its members are available on the SVGPathElement interface. |
43≤12.1–43TheSVGGeometryElement interface itself is not present, but some of its members are available on the SVGPathElement interface. |
121–12TheSVGGeometryElement interface itself is not present, but some of its members are available on the SVGPathElement interface. |
6.01.0–6.0TheSVGGeometryElement interface itself is not present, but some of its members are available on the SVGPathElement interface. |
getPointAtLength |
56 | 79 | 61 | 43 | 12 | 56 | 56 | 61 | 43 | 12 | 6.0 | |
getTotalLength |
56 | 79 | 61 | 43 | 12 | 56 | 56 | 61 | 43 | 12 | 6.0 | |
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 | 79 | 61 | No | 44 | 12 | 57 | 57 | 61 | 43 | 12 | 7.0 |
© 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