Registers a tool with the viewer. The tool can then be activated with setToolMode(toolName) and placed in a header
with new UI.Components.ToolButton({ dataElement, toolName }); tool buttons without their own icon or title use buttonImage and tooltip.
The last two arguments (mapping custom annotation classes to the tool) are not supported and are ignored with a warning.
Registers a tool with the viewer. The tool can then be activated with
setToolMode(toolName)and placed in a header withnew UI.Components.ToolButton({ dataElement, toolName }); tool buttons without their own icon or title usebuttonImageandtooltip. The last two arguments (mapping custom annotation classes to the tool) are not supported and are ignored with a warning.