ohif-viewer/extensions/default/src/getLayoutTemplateModule.js

29 lines
706 B
JavaScript
Raw Normal View History

import ViewerLayout from './ViewerLayout';
2020-05-13 17:37:27 +02:00
/*
- Define layout for the viewer in mode configuration.
- Pass in the viewport types that can populate the viewer.
- Init layout based on the displaySets and the objects.
*/
export default function ({ servicesManager, extensionManager, commandsManager, hotkeysManager }) {
2020-05-18 17:21:57 +02:00
function ViewerLayoutWithServices(props) {
return ViewerLayout({
servicesManager,
extensionManager,
commandsManager,
hotkeysManager,
...props,
});
2020-05-18 17:21:57 +02:00
}
return [
// Layout Template Definition
// TODO: this is weird naming
{
name: 'viewerLayout',
id: 'viewerLayout',
2020-05-18 17:21:57 +02:00
component: ViewerLayoutWithServices,
},
];
}