toObject([include])

Class: Text.

Description:

Returns a JSON object that contains this shape properties. It may be converted back to this shape.

Parameters:

Name Type Default Description

[include]

string

"all"

Specified what to include. "all" is default. Valid values are: "all", "stroke", "background", "points", "basic".

Returns:

Returns an object containing this shape's properties.

Type: object