SVGGElement in SVG 1.1
Show inherited properties/methods?
Instance Methods
name
returns
description
addEventListener(type,listener,useCapture )
(none)
[from EventTarget ]
appendChild(newChild )
Node
[from Node ]
cloneNode(deep )
Node
Return a new copy of the node.
[from Node ]
dispatchEvent(evt )
Boolean
Dispatches an event to the invoking object.
[from EventTarget ]
getAttribute(name )
String
[from Element ]
getAttributeNode(name )
Attr
[from Element ]
getAttributeNodeNS(namespaceURI,localName )
Attr
[from Element ]
getAttributeNS(namespaceURI,localName )
String
[from Element ]
getBBox( )
SVGRect
Get the bounding box of the element.
[from SVGLocatable ]
getCTM( )
SVGMatrix
Return the C urrent T ransformation M atrix for the element.
[from SVGLocatable ]
getElementsByTagName(name )
NodeList
[from Element ]
getElementsByTagNameNS(namespaceURI,localName )
NodeList
[from Element ]
getPresentationAttribute(name )
CSSValue
[from SVGStylable ]
getScreenCTM( )
SVGMatrix
[from SVGLocatable ]
getTransformToElement(element )
SVGMatrix
[from SVGLocatable ]
hasAttribute(name )
Boolean
[from Element ]
hasAttributeNS(namespaceURI,localName )
Boolean
[from Element ]
hasAttributes( )
Boolean
[from Node ]
hasChildNodes( )
Boolean
[from Node ]
hasExtension(extension )
Boolean
[from SVGTests ]
insertBefore(newChild,refChild )
Node
[from Node ]
isSupported(feature,version )
Boolean
[from Node ]
normalize( )
(none)
[from Node ]
removeAttribute(name )
(none)
[from Element ]
removeAttributeNode(oldAttr )
Attr
[from Element ]
removeAttributeNS(namespaceURI,localName )
(none)
[from Element ]
removeChild(oldChild )
Node
[from Node ]
removeEventListener(type,listener,useCapture )
(none)
[from EventTarget ]
replaceChild(newChild,oldChild )
Node
[from Node ]
setAttribute(name,value )
(none)
[from Element ]
setAttributeNode(newAttr )
Attr
[from Element ]
setAttributeNodeNS(newAttr )
Attr
[from Element ]
setAttributeNS(namespaceURI,qualifiedName,value )
(none)
[from Element ]
Description
Grouping the elements together is useful for applying common styles to all contained elements, applying a common event handler to all child elements, or applying geometric transformations (such as a simple translation offset) to all elements at once. For example:
<g id="start" class="button" onclick="StartPlaying()" transform="translate(4cm,0cm)">
<rect width="3cm" height="1cm" />
<text x="1.5cm" text-anchor="middle" y="0.6cm">Start</text>
</g>