import React from 'react'; import getSopClassHandlerModule from './getSopClassHandlerModule'; import id from './id.js'; import init from './init'; const Component = React.lazy(() => { return import('./OHIFCornerstoneSRViewport'); }); const OHIFCornerstoneSRViewport = props => { return ( Loading...}> ); }; /** * */ export default { /** * Only required property. Should be a unique value across all extensions. */ id, dependencies: [ // TODO -> This isn't used anywhere yet, but we do have a hard dependency, and need to check for these in the future. // OHIF-229 { id: 'org.ohif.cornerstone', version: '3.0.0', }, { id: 'org.ohif.measurement-tracking', version: '^0.0.1', }, ], preRegistration({ servicesManager, configuration = {} }) { init({ servicesManager, configuration }); }, /** * * * @param {object} [configuration={}] * @param {object|array} [configuration.csToolsConfig] - Passed directly to `initCornerstoneTools` */ getViewportModule({ servicesManager, extensionManager }) { const ExtendedOHIFCornerstoneSRViewport = props => { return ( ); }; return [{ name: 'dicom-sr', component: ExtendedOHIFCornerstoneSRViewport }]; }, getSopClassHandlerModule, };