src/mixins/segmentation/rectangleSegmentationMixin.js
/**
 * Render hook: draws the Scissors's outline, box, or circle
 *
 * @param {Object} evt Cornerstone.event#cornerstoneimagerendered > cornerstoneimagerendered event
 * @memberof Tools.ScissorsTool
 * @returns {void}
 */
Render hook: draws the Scissors's outline, box, or circle
@param {Object} evt Cornerstone.event#cornerstoneimagerendered > cornerstoneimagerendered event
@memberof Tools.ScissorsTool
@returns {void}
Render hook : draws the Scissors ' s outline box or circle @param { Object } evt Cornerstone . event#cornerstoneimagerendered > cornerstoneimagerendered event @memberof Tools . ScissorsTool @returns { void }
function renderToolData(evt) {
  const eventData = evt.detail;
  const { element } = eventData;
  const color = getters.brushColor(element, true);
  const context = getNewContext(eventData.canvasContext.canvas);
  draw(context, context => {
    drawRect(context, element, this.handles.start, this.handles.end, {
      color,
    });
  });
}
function renderToolData ( evt ) { const eventData = evt . detail ; const { element } = eventData ; const color = getters . brushColor ( element , true ) ; const context = getNewContext ( eventData . canvasContext . canvas ) ; draw ( context , context => { drawRect ( context , element , this . handles . start , this . handles . end , { color , } ) ; } ) ; }
Render hook: draws the Scissors's outline, box, or circle
 @param {Object} evt Cornerstone.event#cornerstoneimagerendered > cornerstoneimagerendered event
 @memberof Tools.ScissorsTool
 @returns {void}
Render hook : draws the Scissors ' s outline box or circle @param { Object } evt Cornerstone . event#cornerstoneimagerendered > cornerstoneimagerendered event @memberof Tools . ScissorsTool @returns { void }