* fix: Set VTK viewport as active by interaction * feat: listen for vtkscrollevent in wrapper component * fix: definitions can skip empty storeContexts key * hoc to set/pass in commandsManager * Bump minimum react-vtkjs-viewport version to leverage new event * Simplify to use onScroll event instead of passing down commandsManager to base component * fix: make sure we include @JamesAPetts bug fix Co-authored-by: Danny Brown <danny.ri.brown@gmail.com>
34 lines
865 B
JavaScript
34 lines
865 B
JavaScript
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 }) {
|
|
return withCommandsManager(OHIFVTKViewport, commandsManager);
|
|
},
|
|
getToolbarModule() {
|
|
return toolbarModule;
|
|
},
|
|
getCommandsModule({ commandsManager }) {
|
|
return commandsModule({ commandsManager });
|
|
},
|
|
};
|
|
|
|
export default vtkExtension;
|
|
|
|
export { vtkExtension };
|
|
|
|
// loadLocales();
|