The SVGGraphicsElement interface represents SVG elements whose primary purpose is to directly render graphics into a group.
Note: This interface was introduced in SVG 2 and replaces the SVGLocatable and SVGTransformable interfaces from SVG 1.1.
This interface also inherits properties from its parent, SVGElement.
SVGGraphicsElement.transform Read only
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()DOMRect representing the computed bounding box of the current element.SVGGraphicsElement.getCTM()DOMMatrix representing the matrix that transforms the current element's coordinate system to its SVG viewport's coordinate system.SVGGraphicsElement.getScreenCTM()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.| Specification | Status | Comment |
|---|---|---|
| Scalable Vector Graphics (SVG) 2 The definition of 'SVGGraphicsElement' in that specification. | Candidate Recommendation | Initial definition |
| Desktop | ||||||
|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
| Basic support | Yes | Yes | Yes | No | Yes | ? |
transform |
? | ? | ? | ? | ? | ? |
getBBox |
Yes | ? | Yes
|
? | ? | ? |
getCTM |
? | ? | ? | ? | ? | ? |
getScreenCTM |
? | ? | ? | ? | ? | ? |
| Mobile | |||||||
|---|---|---|---|---|---|---|---|
| Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
| Basic support | ? | Yes | Yes | Yes | ? | ? | ? |
transform |
? | ? | ? | ? | ? | ? | ? |
getBBox |
Yes | Yes | ? | Yes
|
? | ? | ? |
getCTM |
? | ? | ? | ? | ? | ? | ? |
getScreenCTM |
? | ? | ? | ? | ? | ? | ? |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement