Shift to new syntax; try to get only cornerstone extension working with new syntax

This commit is contained in:
dannyrb committed 2019-06-13 09:50:53 -04:00
1 parent 0318203770
commit 31c987d700
4 files changed
+45 -22

No files matched your search

@@ -1,3 +1,23 @@
import OHIFCornerstoneExtension from './OHIFCornerstoneExtension.js';
import OHIFCornerstoneViewport from './OHIFCornerstoneViewport.js';
import ToolbarModule from './ToolbarModule.js';
import commandsModule from './commandsModule.js';
export default OHIFCornerstoneExtension;
/**
*
*/
export default {
/**
* Only required property. Should be a unique value across all extensions.
*/
id: 'cornerstone',
getViewportModule() {
return OHIFCornerstoneViewport;
},
getToolbarModule() {
return ToolbarModule;
},
getCommandsModule() {
return commandsModule;
}
};