- move authenticated rendered media loading into the datasource\n- route DICOM video display sets through Cornerstone video viewports\n- add a 3.12 to 3.13 migration note for the removed DICOM-video viewport namespace
42 lines
1.0 KiB
TypeScript
42 lines
1.0 KiB
TypeScript
import React from 'react';
|
|
import getSopClassHandlerModule from './getSopClassHandlerModule';
|
|
import { id } from './id.js';
|
|
|
|
const Component = React.lazy(() => {
|
|
return import(/* webpackPrefetch: true */ './viewports/OHIFCornerstonePdfViewport');
|
|
});
|
|
|
|
const OHIFCornerstonePdfViewport = props => {
|
|
return (
|
|
<React.Suspense fallback={<div>Loading...</div>}>
|
|
<Component {...props} />
|
|
</React.Suspense>
|
|
);
|
|
};
|
|
|
|
/**
|
|
*
|
|
*/
|
|
const dicomPDFExtension = {
|
|
/**
|
|
* Only required property. Should be a unique value across all extensions.
|
|
*/
|
|
id,
|
|
/**
|
|
*
|
|
*
|
|
* @param {object} [configuration={}]
|
|
* @param {object|array} [configuration.csToolsConfig] - Passed directly to `initCornerstoneTools`
|
|
*/
|
|
getViewportModule() {
|
|
const ExtendedOHIFCornerstonePdfViewport = props => {
|
|
return <OHIFCornerstonePdfViewport {...props} />;
|
|
};
|
|
|
|
return [{ name: 'dicom-pdf', component: ExtendedOHIFCornerstonePdfViewport }];
|
|
},
|
|
getSopClassHandlerModule,
|
|
};
|
|
|
|
export default dicomPDFExtension;
|