shapes([shapes])

Class: Panel.

Description:

Gets an array of shapes currently added to the component, or sets an array of new shapes while replacing existing ones.

Parameters:

Name Type Description

[shapes]

Array.<Shape>

An array of Shape objects, such as Rectangle, Line, Ellipse, etc.

Returns:

Array If called without arguments, an array of shapes is returned, otherwise this component instance is returned for chaining.

Also See: