init
This commit is contained in:
28
extensions/default/src/getLayoutTemplateModule.js
Normal file
28
extensions/default/src/getLayoutTemplateModule.js
Normal file
@@ -0,0 +1,28 @@
|
||||
import ViewerLayout from './ViewerLayout';
|
||||
/*
|
||||
- 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 }) {
|
||||
function ViewerLayoutWithServices(props) {
|
||||
return ViewerLayout({
|
||||
servicesManager,
|
||||
extensionManager,
|
||||
commandsManager,
|
||||
hotkeysManager,
|
||||
...props,
|
||||
});
|
||||
}
|
||||
|
||||
return [
|
||||
// Layout Template Definition
|
||||
// TODO: this is weird naming
|
||||
{
|
||||
name: 'viewerLayout',
|
||||
id: 'viewerLayout',
|
||||
component: ViewerLayoutWithServices,
|
||||
},
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user