Custom UI event button

I’m building my own UI on the angled but I didn’t find how to select the Delete and Pan button, and the click on the ZooIn and ZoonOut button, could you give me an example

this.docViewer.setToolMode(this.docViewer.getTool('AnnotationCreateDistanceMeasurement'));

Hi,

For the zoom buttons, you can use the setZoomLevel API to change the zoom.

For the eraser tool and pan tool, you can call

// eraser
instance.setToolMode(
    instance.Tools.ToolNames.ERASER
  )

// pan
instance.setToolMode(
    instance.Tools.ToolNames.PAN
  )

Thanks!
Logan