The SVGGraphicsElement
interface represents SVG elements whose primary purpose is to directly render graphics into a group.
The SVGGraphicsElement
interface represents SVG elements whose primary purpose is to directly render graphics into a group.
This interface also inherits properties from its parent, SVGElement
.
SVGGraphicsElement.requiredExtensions
Read only
An SVGStringList
reflecting the requiredExtensions
attribute of the given element.
SVGGraphicsElement.systemLanguage
Read only
An SVGStringList
reflecting the systemLanguage
attribute of the given element.
SVGGraphicsElement.transform
Read only
An SVGAnimatedTransformList
reflecting the computed value of the transform
property and its corresponding transform
attribute of the given element.
This interface also inherits methods from its parent, SVGElement
.
SVGGraphicsElement.getBBox()
Returns a DOMRect
representing the computed bounding box of the current element.
SVGGraphicsElement.getCTM()
Returns a DOMMatrix
representing the matrix that transforms the current element's coordinate system to its SVG viewport's coordinate system.
SVGGraphicsElement.getScreenCTM()
Returns a DOMMatrix
representing the matrix that transforms the current element's coordinate system to the coordinate system of the SVG viewport for the SVG document fragment.
Listen to these events using addEventListener()
or by assigning an event listener to the equivalent on...
handler property.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
SVGGraphicsElement |
301–30TheSVGGraphicsElement interface itself is not present, but some of its members are available on interfaces that inherit from SVGGraphicsElement . |
12 | 201.5–20TheSVGGraphicsElement interface itself is not present, but some of its members are available on interfaces that inherit from SVGGraphicsElement . |
9TheSVGGraphicsElement interface itself is not present, but some of its members are available on interfaces that inherit from SVGGraphicsElement . |
17≤12.1–17TheSVGGraphicsElement interface itself is not present, but some of its members are available on interfaces that inherit from SVGGraphicsElement . |
73–7TheSVGGraphicsElement interface itself is not present, but some of its members are available on interfaces that inherit from SVGGraphicsElement . |
4.43–4.4TheSVGGraphicsElement interface itself is not present, but some of its members are available on interfaces that inherit from SVGGraphicsElement . |
3018–30TheSVGGraphicsElement interface itself is not present, but some of its members are available on interfaces that inherit from SVGGraphicsElement . |
204–20TheSVGGraphicsElement interface itself is not present, but some of its members are available on interfaces that inherit from SVGGraphicsElement . |
18≤12.1–18TheSVGGraphicsElement interface itself is not present, but some of its members are available on interfaces that inherit from SVGGraphicsElement . |
71–7TheSVGGraphicsElement interface itself is not present, but some of its members are available on interfaces that inherit from SVGGraphicsElement . |
2.01.0–2.0TheSVGGraphicsElement interface itself is not present, but some of its members are available on interfaces that inherit from SVGGraphicsElement . |
getBBox |
1 | 12 | 1.5["ThegetBBox() method returns an empty DOMRect when there is no fill (bug 1019326).", "This method doesn't work for <textPath> and <tspan> elements (bug 937268)."] |
9 | ≤12.1 | 3 | 3 | 18 | 4["ThegetBBox() method returns an empty DOMRect when there is no fill (bug 1019326).", "This method doesn't work for <textPath> and <tspan> elements (bug 937268)."] |
≤12.1 | 1 | 1.0 |
getCTM |
1 | 12 | 1.5 | 9 | ≤12.1 | 3 | 3 | 18 | 4 | ≤12.1 | 1 | 1.0 |
getScreenCTM |
1 | 12 | 1.5 | 9 | ≤12.1 | 3Transforms on the parent are not propagated down to its children; see bug 209220. |
3 | 18 | 4 | ≤12.1 | 1Transforms on the parent are not propagated down to its children; see bug 209220. |
1.0 |
requiredExtensions |
1 | 12 | 12 | 9 | ≤12.1 | 3 | 3 | 18 | 14 | ≤12.1 | 1 | 1.0 |
systemLanguage |
1 | 12 | 12 | 9 | ≤12.1 | 3 | 3 | 18 | 14 | ≤12.1 | 1 | 1.0 |
transform |
1 | 12 | 1.5 | 9 | ≤12.1 | 3 | 3 | 18 | 4 | ≤12.1 | 1 | 1.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/SVGGraphicsElement