addShape(shape, [index])

Class: Panel.

Description:

Adds a Shape to be drawn on the panel.

Parameters:

Name Type Description

shape

Shape

Shape object to draw on this panel

[index]

number

Set only if you want to insert the Shape at a specific index

Returns:

Returns this instance of the Panel.

Type: Panel