Tools
addTool(tool)
Adds a tool to the player.
Kind: inner method of Tools
parameter | type |
---|---|
tool |
|
player.addTool('orbit')
addTools(tools)
Adds an array of tools to the player.
Kind: inner method of Tools
parameter | type |
---|---|
tools |
|
player.addTools(['pan', 'orbit', 'zoom'])
setTool(key, attrs)
Updates an existing tool.
Kind: inner method of Tools
parameter | type |
---|---|
key |
|
attrs |
|
player.setTool('orbit', { enabled: false })
setTools(tools)
Updates existing tools.
Kind: inner method of Tools
parameter | type |
---|---|
tools |
|
player.setTools({ 'orbit', { enabled: false }, 'pan': { enabled: true } })
removeTool(toolName)
Removes a tool from the player.
Kind: inner method of Tools
parameter | type |
---|---|
toolName |
|
player.removeTool('orbit')
removeTools(toolNames)
Removes an array of tools from the player.
Kind: inner method of Tools
parameter | type |
---|---|
toolNames |
|
player.removeTools(['pan', 'orbit', 'zoom'])
setPrimary(toolName)
Sets a tool as Primary tool.
Kind: inner method of Tools
parameter | type |
---|---|
toolName |
|
player.setPrimary('zoom')
getPrimaryTool()
Gets the current primary tool.
Kind: inner method of Tools
Returns: string -
player.getPrimaryTool()