Use new extension interface
This commit is contained in:
parent
01ea3f4179
commit
b154c2612d
@ -1,19 +1,16 @@
|
|||||||
import OHIFDicomPDFSopClassHandler from './OHIFDicomPDFSopClassHandler.js';
|
import OHIFDicomPDFSopClassHandler from './OHIFDicomPDFSopClassHandler.js';
|
||||||
import OHIFDicomPDFViewport from './OHIFDicomPDFViewport.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() {
|
id: 'pdf',
|
||||||
return 'pdf';
|
|
||||||
}
|
|
||||||
|
|
||||||
getViewportModule() {
|
getViewportModule() {
|
||||||
return OHIFDicomPDFViewport;
|
return OHIFDicomPDFViewport;
|
||||||
}
|
},
|
||||||
|
|
||||||
getSopClassHandlerModule() {
|
getSopClassHandlerModule() {
|
||||||
return OHIFDicomPDFSopClassHandler;
|
return OHIFDicomPDFSopClassHandler;
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user