Use new extension interface

This commit is contained in:
dannyrb 2019-06-17 15:05:27 -04:00
parent 01ea3f4179
commit b154c2612d

View File

@ -1,19 +1,16 @@
import OHIFDicomPDFSopClassHandler from './OHIFDicomPDFSopClassHandler.js';
import OHIFDicomPDFViewport from './OHIFDicomPDFViewport.js';
export default class OHIFDicomPDFExtension {
export default {
/**
* Extension ID is a unique id, might be used for namespacing extension specific redux actions/reducers (?)
* Only required property. Should be a unique value across all extensions.
*/
getExtensionId() {
return 'pdf';
}
id: 'pdf',
getViewportModule() {
return OHIFDicomPDFViewport;
}
},
getSopClassHandlerModule() {
return OHIFDicomPDFSopClassHandler;
}
}
};