SVGGraphicsElement
The SVGGraphicsElement
interface represents SVG elements whose primary purpose is to directly render graphics into a group.
Instance properties
This interface also inherits properties from its parent, SVGElement
.
SVGGraphicsElement.requiredExtensions
Read only-
An
SVGStringList
reflecting therequiredExtensions
attribute of the given element. SVGGraphicsElement.systemLanguage
Read only-
An
SVGStringList
reflecting thesystemLanguage
attribute of the given element. SVGGraphicsElement.transform
Read only-
An
SVGAnimatedTransformList
reflecting the computed value of thetransform
property and its correspondingtransform
attribute of the given element.
Instance methods
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.
Events
Listen to these events using addEventListener()
or by assigning an event listener to the equivalent on...
handler property.
Specifications
Specification |
---|
Scalable Vector Graphics (SVG) 2 # InterfaceSVGGraphicsElement |
Browser compatibility
BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.