Zoom Tool

// Init cornerstone tools
cornerstoneTools.init();

// Enable any elements, and display images
// ...

// Add our tool, and set it's mode
const ZoomTool = cornerstoneTools.ZoomTool;

cornerstoneTools.addTool(cornerstoneTools.ZoomTool, {
  // Optional configuration
  configuration: {
    invert: false,
    preventZoomOutsideImage: false,
    minScale: .1,
    maxScale: 20.0,
  }
});

cornerstoneTools.setToolActive('Zoom', { mouseButtonMask: 1 })