Class: Tool

Tool

Access to the tool.

Methods

clearSelection()

Clear Selection in the scene.

flipLayers()

Flip the board over to work from the other side.

getCurrentMode() → {string}

Get the name of the current mode.
Returns:
Type
string

select(target, opt_centeropt)

Select the given proxy objects in the scene.
Parameters:
Name Type Attributes Description
target up.api.core.ProxyObject | !Array.<!up.api.core.ProxyObject> The object(s) to select.
opt_center boolean <optional>

setCurrentTool(tool)

Set the current tool.
Parameters:
Name Type Description
tool string The tool to switch to.