Hi there,
The following code should do the trick!
Webviewer({
...
}, document.getElementById('viewer')).then(instance => {
const { docViewer, Tools } = instance;
docViewer.on('toolModeUpdated', (tool) => {
if (tool instanceof Tools.StickyCreateTool) {
instance.openElements(['notesPanel']);
}
})
});
If you wanted to check on load if the sticky tool is selected you can use getToolMode
combined with the logic above.
Thanks!
Logan