code: function triggerEventForLayer (eventName, enabledElement, layerId) {
    const element = enabledElement.element;
    const eventData = {
      viewport: enabledElement.viewport,
      element: enabledElement.element,
      image: enabledElement.image,
      enabledElement,
      layerId
    };
  
    triggerCustomEvent(element, eventName, eventData);
  }
docs: @module EnabledElementLayers
   
  Helper function to trigger an event on a Cornerstone element with
  a specific layerId
  
  @param {String} eventName The event name (e.g. CornerstoneLayerAdded)
  @param {EnabledElement} enabledElement The Cornerstone enabled element
  @param {String} layerId The layer's unique identifier
  @returns {void}
  @memberof EnabledElementLayers