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,5 +1,5 @@
import React, { Component } from 'react';
import OHIFCornerstoneViewport from './OHIFCornerstoneViewport.js';
import React from 'react';
import ToolbarModule from './ToolbarModule.js';
/**
@@ -1,9 +1,11 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import OHIF from 'ohif-core';
import ConnectedCornerstoneViewport from './ConnectedCornerstoneViewport';
import cornerstone from 'cornerstone-core';
import './config';
import React, { Component } from 'react';
import ConnectedCornerstoneViewport from './ConnectedCornerstoneViewport';
import OHIF from 'ohif-core';
import PropTypes from 'prop-types';
import cornerstone from 'cornerstone-core';
import handleSegmentationStorage from './handleSegmentationStorage.js';
const { StackManager } = OHIF.utils;
@@ -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;
}
};