(private) new xrx.svg.Container(element)
Abstract SVG class representing a container.
Parameters:
Name | Type | Description |
---|---|---|
element |
SVGElement | An SVG element. |
Members
-
xrx.svg.Container#childs_ :Array.<xrx.svg.Element>
-
The child elements of this container.
Type:
- Array.<xrx.svg.Element>
Methods
-
xrx.svg.Container#addChild(element)
-
Adds a child element to this container.
Parameters:
Name Type Description element
xrx.svg.Element The child element. -
xrx.svg.Container#getChildren() → {Array.<xrx.svg.Element>}
-
Returns the child elements of this container.
Returns:
The child elements.- Type
- Array.<xrx.svg.Element>
-
xrx.svg.Container#removeChildAt(index)
-
Removes a child element at an index.
Parameters:
Name Type Description index
number The index. -
xrx.svg.Container#removeChildren()
-
Removes all child elements from this container.