Class: xrx.svg.Container

xrx.svg. Container

(private) new xrx.svg.Container(element)

Abstract SVG class representing a container.
Parameters:
Name Type Description
element SVGElement An SVG element.
Source:

Members

xrx.svg.Container#childs_ :Array.<xrx.svg.Element>

The child elements of this container.
Type:
Source:

Methods

xrx.svg.Container#addChild(element)

Adds a child element to this container.
Parameters:
Name Type Description
element xrx.svg.Element The child element.
Source:

xrx.svg.Container#getChildren() → {Array.<xrx.svg.Element>}

Returns the child elements of this container.
Source:
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.
Source:

xrx.svg.Container#removeChildren()

Removes all child elements from this container.
Source: