Type class
Creates an SVG <g>
element.
SVG groups are used for elements that need more elements just one.
Click here About <g>
element
Sources
Group can be used (imported) via one of the following packages.
/** * -------------------------------------------------------- * Import from: "core.ts" * Use like: am4core.Group * -------------------------------------------------------- */ import * as am4core from "@amcharts/amcharts4/core";
/** * -------------------------------------------------------- * Include via: <script src="core.js"></script> * Access items like: am4.Group * -------------------------------------------------------- */
Inheritance
Group extends AMElement
.
Group is not extended by any other symbol.
Properties
content # |
Type Content of the group element. Can be used to add a lot of proprietary SVG markup into group. |
---|---|
node # |
Type Inherited from An SVG node of the element. |
rotation # |
Type Inherited from Element's rotation in degrees. |
scale # |
Type Inherited from Element's scale where 1 is original size. Setting to 0.5 will reduce element's size by 50%, 2 will make element twice as large, etc. |
textContent # |
Type Inherited from Text contents of the SVG element. |
x # |
Type Inherited from Element's X position in pixels. |
y # |
Type Inherited from Element's Y position in pixels. |
There are 6 inherited items currently hidden from this list. |
Methods
add( element: ) |
Returns Adds an element to group. This will manipulate DOM. |
---|---|
addClass( name: ) |
Returns Inherited from Adds a class to element. |
addStyle( attributes: ) |
Returns Inherited from Adds style attributes to element's node. |
addToBack( element: ) |
Returns Adds an element to group. This will manipulate DOM. |
attr( attributes: ) |
Returns Inherited from Sets a set of attributes on a element. |
attrNS( ns: ) |
Returns Inherited from Sets a single attribute of the element's node using namesspace. |
constructor( elementName: ) |
Returns Constructor. |
dispose() |
Returns Inherited from Disposes element. |
getAttr( attribute: ) |
Returns Inherited from Returns a value of a node attribute. |
getAttrNS( ns: ) |
Returns Inherited from Returns a namespaced attribute value from node. |
getBBox() |
Returns Inherited from Returns bounding box of the element. ATTENTION: Bounding box calculations are extremely costly so should be used sparingly and cached whenever possible. |
getStyle( attribute: ) |
Returns Inherited from Returns style attribute value. |
hasChild( element: ) |
Returns Checks if this group already has the child element added |
isDisposed() |
Returns Inherited from Was this element already been disposed? |
moveTo( point: ) |
Returns Inherited from Moves the element to new coordinates. |
removeAttr( attribute: ) |
Returns Inherited from Removes an attribute from element. |
removeChildNodes() |
Returns Inherited from Removes all element's child nodes, basically leaving it empty. |
removeChildren() |
Returns Removes all children from the group. |
removeClass( name: ) |
Returns Inherited from Removes a class from element. |
removeElement( element: ) |
Returns Removes the Please note that this will not dispose the element itself, it will just remove it from the group. |
removeNode() |
Returns Inherited from Removes element's node from DOM. |
removeStyle( attribute: ) |
Returns Inherited from Removes |
setClass( name: ) |
Returns Inherited from Sets a class name on element. |
There are 17 inherited items currently hidden from this list. |
Events
Group does not have any events.
Adapters
Group does not have any adapters.