src/tools/annotation/EllipticalRoiTool.js
function _getEllipseImageCoordinates(startHandle, endHandle) {
  return {
    left: Math.round(Math.min(startHandle.x, endHandle.x)),
    top: Math.round(Math.min(startHandle.y, endHandle.y)),
    width: Math.round(Math.abs(startHandle.x - endHandle.x)),
    height: Math.round(Math.abs(startHandle.y - endHandle.y)),
  };
}
function _getEllipseImageCoordinates(startHandle, endHandle) {
  return {
    left: Math.round(Math.min(startHandle.x, endHandle.x)),
    top: Math.round(Math.min(startHandle.y, endHandle.y)),
    width: Math.round(Math.abs(startHandle.x - endHandle.x)),
    height: Math.round(Math.abs(startHandle.y - endHandle.y)),
  };
}
function _getEllipseImageCoordinates ( startHandle , endHandle ) { return { left : Math . round ( Math . min ( startHandle . x , endHandle . x ) ) , top : Math . round ( Math . min ( startHandle . y , endHandle . y ) ) , width : Math . round ( Math . abs ( startHandle . x - endHandle . x ) ) , height : Math . round ( Math . abs ( startHandle . y - endHandle . y ) ) , } ; }
Retrieve the bounds of the ellipse in image coordinates

@param {*} startHandle
@param {*} endHandle
@returns {{ left: number, top: number, width: number, height: number }}
Retrieve the bounds of the ellipse in image coordinates