2020-04-02 12:29:17 +05:30
|
|
|
import React from 'react';
|
2019-06-16 14:15:34 -04:00
|
|
|
import OHIFDicomHtmlSopClassHandler from './OHIFDicomHtmlSopClassHandler.js';
|
2019-09-26 11:35:13 +02:00
|
|
|
|
2020-04-02 12:29:17 +05:30
|
|
|
const Component = React.lazy(() => {
|
|
|
|
|
return import('./OHIFDicomHtmlViewport');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const OHIFDicomHtmlViewport = props => {
|
|
|
|
|
return (
|
|
|
|
|
<React.Suspense fallback={<div>Loading...</div>}>
|
|
|
|
|
<Component {...props} />
|
|
|
|
|
</React.Suspense>
|
|
|
|
|
);
|
|
|
|
|
};
|
2019-04-16 12:00:06 -04:00
|
|
|
|
2019-06-17 16:23:31 -04:00
|
|
|
export default {
|
2019-06-16 14:15:34 -04:00
|
|
|
/**
|
2019-06-17 16:23:31 -04:00
|
|
|
* Only required property. Should be a unique value across all extensions.
|
2019-06-16 14:15:34 -04:00
|
|
|
*/
|
2019-06-17 16:23:31 -04:00
|
|
|
id: 'html',
|
2019-06-16 14:15:34 -04:00
|
|
|
|
|
|
|
|
getViewportModule() {
|
|
|
|
|
return OHIFDicomHtmlViewport;
|
2019-06-17 16:23:31 -04:00
|
|
|
},
|
2019-06-16 14:17:22 -04:00
|
|
|
getSopClassHandlerModule() {
|
2019-06-16 14:15:34 -04:00
|
|
|
return OHIFDicomHtmlSopClassHandler;
|
2019-09-26 11:35:13 +02:00
|
|
|
},
|
2019-06-17 16:23:31 -04:00
|
|
|
};
|