RectangleRoi Tool

How to set up the RectangleRoi tool:

// Init cornerstone tools
cornerstoneTools.init();

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

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

cornerstoneTools.addTool(RectangleRoiTool)
cornerstoneTools.setToolActive('RectangleRoi', { mouseButtonMask: 1 })