(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. |
Members
-
(private) xrx.shape.Container#childs_ :Array.<xrx.shape.Shape>
-
The child shapes of this container.
Type:
- Array.<xrx.shape.Shape>
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. -
xrx.shape.Container#disposeInternal()
-
Disposes this container.
-
xrx.shape.Container#getChildren() → {Array.<xrx.shape.Shape>}
-
Returns the child elements of this container.
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. -
xrx.shape.Container#removeChildren()
-
Removes all elements from this container.