function activate(element, mouseButtonMask) {
  (0, _toolOptions.setToolOptions)(toolType, element, { mouseButtonMask: mouseButtonMask });

  removeEventListeners(element);

  element.addEventListener(_externalModules2.default.cornerstone.EVENTS.IMAGE_RENDERED, onImageRendered);
  element.addEventListener(_events2.default.MOUSE_MOVE, mouseMoveCallback);
  element.addEventListener(_events2.default.MOUSE_DOWN, mouseDownCallback);
  element.addEventListener(_events2.default.MOUSE_DOWN_ACTIVATE, mouseDownActivateCallback);
  element.addEventListener(_events2.default.KEY_DOWN, _keysHeld.keyDownCallback);
  element.addEventListener(_events2.default.KEY_UP, _keysHeld.keyUpCallback);

  _externalModules2.default.cornerstone.updateImage(element);
}
/**
* Attaches event listeners to the element such that is is visible, modifiable, and new data can be created.
*
* @param {Object} element - The viewport element to attach event listeners to.
* @modifies {element}
*/
Attaches event listeners to the element such that is is visible, modifiable, and new data can be created.
Attaches event listeners to the element such that is is visible modifiable and new data can be created .
function activate(element, mouseButtonMask) {
  (0, _toolOptions.setToolOptions)(toolType, element, { mouseButtonMask: mouseButtonMask });
  removeEventListeners(element);
  element.addEventListener(_externalModules2.default.cornerstone.EVENTS.IMAGE_RENDERED, onImageRendered);
  element.addEventListener(_events2.default.MOUSE_MOVE, mouseMoveCallback);
  element.addEventListener(_events2.default.MOUSE_DOWN, mouseDownCallback);
  element.addEventListener(_events2.default.MOUSE_DOWN_ACTIVATE, mouseDownActivateCallback);
  element.addEventListener(_events2.default.KEY_DOWN, _keysHeld.keyDownCallback);
  element.addEventListener(_events2.default.KEY_UP, _keysHeld.keyUpCallback);
  _externalModules2.default.cornerstone.updateImage(element);
}
function activate ( element , mouseButtonMask ) { ( 0 , _toolOptions . setToolOptions ) ( toolType , element , { mouseButtonMask : mouseButtonMask } ) ; removeEventListeners ( element ) ; element . addEventListener ( _externalModules2 . default . cornerstone . EVENTS . IMAGE_RENDERED , onImageRendered ) ; element . addEventListener ( _events2 . default . MOUSE_MOVE , mouseMoveCallback ) ; element . addEventListener ( _events2 . default . MOUSE_DOWN , mouseDownCallback ) ; element . addEventListener ( _events2 . default . MOUSE_DOWN_ACTIVATE , mouseDownActivateCallback ) ; element . addEventListener ( _events2 . default . KEY_DOWN , _keysHeld . keyDownCallback ) ; element . addEventListener ( _events2 . default . KEY_UP , _keysHeld . keyUpCallback ) ; _externalModules2 . default . cornerstone . updateImage ( element ) ; }
Attaches event listeners to the element such that is is visible, modifiable, and new data can be created.
Attaches event listeners to the element such that is is visible modifiable and new data can be created .