OptionalcloseIf true, the shape's line will be closed just before being returned to the caller.
Optionalconstraints?: PermissionsAn optional list of permitted operations.
OptionalmaxThe maximum number of points to create before the shape is automatically completed.
OptionalminThe minimum number of points to create before the shape can be completed.
OptionalonAn optional callback to be called when a point has been added to the shape.
Options for the DrawTool.createShape method.