function enable(element, synchronizationContext, renderer) {
  renderer = renderer || _renderActiveReferenceLine2.default;

  (0, _toolState.addToolState)(element, toolType, {
    synchronizationContext: synchronizationContext,
    renderer: renderer
  });

  element.removeEventListener(_externalModules2.default.cornerstone.EVENTS.IMAGE_RENDERED, onImageRendered);
  element.addEventListener(_externalModules2.default.cornerstone.EVENTS.IMAGE_RENDERED, onImageRendered);
  _externalModules2.default.cornerstone.updateImage(element);
}
// Can be provided if you want different rendering (e.g. all reference lines, first/last/active, etc)
Can be provided if you want different rendering
Can be provided if you want different rendering
function enable(element, synchronizationContext, renderer) {
  renderer = renderer || _renderActiveReferenceLine2.default;
  (0, _toolState.addToolState)(element, toolType, {
    synchronizationContext: synchronizationContext,
    renderer: renderer
  });
  element.removeEventListener(_externalModules2.default.cornerstone.EVENTS.IMAGE_RENDERED, onImageRendered);
  element.addEventListener(_externalModules2.default.cornerstone.EVENTS.IMAGE_RENDERED, onImageRendered);
  _externalModules2.default.cornerstone.updateImage(element);
}
function enable ( element , synchronizationContext , renderer ) { renderer = renderer || _renderActiveReferenceLine2 . default ; ( 0 , _toolState . addToolState ) ( element , toolType , { synchronizationContext : synchronizationContext , renderer : renderer } ) ; element . removeEventListener ( _externalModules2 . default . cornerstone . EVENTS . IMAGE_RENDERED , onImageRendered ) ; element . addEventListener ( _externalModules2 . default . cornerstone . EVENTS . IMAGE_RENDERED , onImageRendered ) ; _externalModules2 . default . cornerstone . updateImage ( element ) ; }
Can be provided if you want different rendering (e.g.
Can be provided if you want different rendering ( e . g .