new module:Group()
Extends
- Tag
Methods
-
addChild(el)
-
add an element to the group
Parameters:
Name Type Description el
SvgElement an instance of SvgElement
SVG group, used for grouping elements, for example a gate is represented by many elements (rectangle, image, inivisible hitbox rectangle...), but all of the elements need to be transformed together. Using groups the transform property can be set on the group which contains all the elements.
add an element to the group
Name | Type | Description |
---|---|---|
el |
SvgElement | an instance of SvgElement |