* feat: 🎸 Update react-vtkjs-viewport usage to use requestPool * Fix import of react-vtkjs-viewport to cornerstone-tools path. * Increase maximum load time of MPR test now we are throttling requests. * fix: 🐛 Fail gracefully on an MPR load error * Respond to reviewer comments.
38 lines
1.0 KiB
JavaScript
38 lines
1.0 KiB
JavaScript
import React from 'react';
|
|
import asyncComponent from './asyncComponent.js';
|
|
import commandsModule from './commandsModule.js';
|
|
import toolbarModule from './toolbarModule.js';
|
|
import withCommandsManager from './withCommandsManager.js';
|
|
// This feels weird
|
|
// import loadLocales from './loadLocales';
|
|
|
|
const OHIFVTKViewport = asyncComponent(() =>
|
|
import(/* webpackChunkName: "OHIFVTKViewport" */ './OHIFVTKViewport.js')
|
|
);
|
|
|
|
const vtkExtension = {
|
|
/**
|
|
* Only required property. Should be a unique value across all extensions.
|
|
*/
|
|
id: 'vtk',
|
|
|
|
getViewportModule({ commandsManager, servicesManager }) {
|
|
const ExtendedVTKViewport = props => (
|
|
<OHIFVTKViewport {...props} servicesManager={servicesManager} />
|
|
);
|
|
return withCommandsManager(ExtendedVTKViewport, commandsManager);
|
|
},
|
|
getToolbarModule() {
|
|
return toolbarModule;
|
|
},
|
|
getCommandsModule({ commandsManager }) {
|
|
return commandsModule({ commandsManager });
|
|
},
|
|
};
|
|
|
|
export default vtkExtension;
|
|
|
|
export { vtkExtension };
|
|
|
|
// loadLocales();
|