extensions/xnat/src/peppermint-tools/modules/freehand3DModule.js
/**
 * enabledElementCallback - Element specific initilisation.
 * @public
 * @param  {Object} enabledElement  The element on which the module is
 *                                  being initialised.
 */
Element specific initilisation.
@public
@param  {Object} enabledElement  The element on which the module is
being initialised.
Element specific initilisation . @public @param { Object } enabledElement The element on which the module is being initialised .
function enabledElementCallback(element) {
  const enabledElement = cornerstone.getEnabledElement(element);
  if (!enabledElement.image) {
    return;
  }
  const seriesInstanceUid = getSeriesInstanceUidFromEnabledElement(
    enabledElement
  );
  if (!getSeries(seriesInstanceUid)) {
    setSeries(seriesInstanceUid);
  }
}
function enabledElementCallback ( element ) { const enabledElement = cornerstone . getEnabledElement ( element ) ; if ( ! enabledElement . image ) { return ; } const seriesInstanceUid = getSeriesInstanceUidFromEnabledElement ( enabledElement ) ; if ( ! getSeries ( seriesInstanceUid ) ) { setSeries ( seriesInstanceUid ) ; } }
enabledElementCallback - Element specific initilisation.
enabledElementCallback - Element specific initilisation .
// Generate series store.