toObject([include])

Class: Shape.

Description:

Returns a JSON object that contains shape properties.

Parameters:

Name Type Default Description

[include]

string

"all"

Specified what to include. "all" is default. Valid values are: "all", "stroke", "background", "points", "basic". Each shape that derives from this Shape class may also have it's own values.

Returns:

Returns this Shape for method chaining.

Type: Shape