WebViewer Set default button to panToolButton

Product: WebViewer

Product Version: 8

Please give a brief summary of your issue:
Set default button to panToolButton

Please describe your issue and provide steps to reproduce it:
How Is it possible to set default button to panToolButton in WebViewer ?

Thanks in advance

Hi @a.defendi14 ,

Thanks for your question.

Here is a code snippet to set the panToolButton as the default button.

WebViewer({
...options
}).then(instance => {

  const { Tools } = instance.Core;

  const panTool = Tools.ToolNames.PAN;

  instance.UI.setToolMode(panTool);

})