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