Class: xrx.shape.Container

xrx.shape. Container

(private) new xrx.shape.Container(canvas)

An abstract class representing a shape container.
Parameters:
Name Type Description
canvas xrx.drawing.Drawing The parent drawing canvas.
Source:

Members

(private) xrx.shape.Container#childs_ :Array.<xrx.shape.Shape>

The child shapes of this container.
Type:
Source:

Methods

xrx.shape.Container#addChildren(children)

Adds child elements to this container.
Parameters:
Name Type Description
children xrx.shape.Shape | Array.<xrx.shape.Shape> The elements to add.
Source:

xrx.shape.Container#disposeInternal()

Disposes this container.
Source:

xrx.shape.Container#getChildren() → {Array.<xrx.shape.Shape>}

Returns the child elements of this container.
Source:
Returns:
The child elements.
Type
Array.<xrx.shape.Shape>

xrx.shape.Container#removeChildAt(index)

Removes one element from this container at an index.
Parameters:
Name Type Description
index number The index.
Source:

xrx.shape.Container#removeChildren()

Removes all elements from this container.
Source: