Toolbar
Class for controlling state of the toolbar.
Constructor Summary
Public Constructor | ||
public |
constructor(ui: UI) Constructs a Toolbar instance. |
Member Summary
Public Members | ||
public |
currentTool: * |
|
public |
|
|
public |
toolbar: * |
|
public |
ui: * |
Method Summary
Public Methods | ||
public |
Initialize event listeners. |
|
public |
reset() Reset the toolbar state. |
|
public |
selectTool(toolElement: Element) Select tool by passing the element associated with it. |
|
public |
selectToolByName(toolName: string) Select a tool by name. |