function enable(element) {
  closeToolIfDrawing(element);
  removeEventListeners(element);
  element.addEventListener(_externalModules2.default.cornerstone.EVENTS.IMAGE_RENDERED, onImageRendered);
  _externalModules2.default.cornerstone.updateImage(element);
}
/**
* Attaches event listeners to the element such that is is visible.
*
* @param {Object} element - The viewport element to attach event listeners to.
* @modifies {element}
*/
Attaches event listeners to the element such that is is visible.
Attaches event listeners to the element such that is is visible .
function enable(element) {
  closeToolIfDrawing(element);
  removeEventListeners(element);
  element.addEventListener(_externalModules2.default.cornerstone.EVENTS.IMAGE_RENDERED, onImageRendered);
  _externalModules2.default.cornerstone.updateImage(element);
}
function enable ( element ) { closeToolIfDrawing ( element ) ; removeEventListeners ( element ) ; element . addEventListener ( _externalModules2 . default . cornerstone . EVENTS . IMAGE_RENDERED , onImageRendered ) ; _externalModules2 . default . cornerstone . updateImage ( element ) ; }
Attaches event listeners to the element such that is is visible.
Attaches event listeners to the element such that is is visible .