Methods
getCurTool() → {Number}
Gives an enumeration for Canvas object to choose what to do
on a click event.
- Source:
Returns:
An enumeration for the currently selected tool.
- Type
- Number
getToolInfo() → {Map.<string, Object>}
Gives a dictionary of values for Drawable objects
to initialize themselves with
- Source:
Returns:
Mapping of values to follow
- Type
- Map.<string, Object>
setTool(tool)
Sets the currently selected tool
Parameters:
| Name | Type | Description |
|---|---|---|
tool |
Number | The tool to select |
- Source: