toObject([include])
Class: Shape.
Description:
Returns a JSON object that contains shape properties.
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
|
|
string |
"all" |
Specified what to include. "all" is default. Valid values are: "all", "stroke", "background", "points", "basic". Each shape that derives from this |
Returns:
Returns this Shape for method chaining.
Type: Shape
