2020-05-14 21:57:45 +02:00
|
|
|
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.
|
|
|
|
|
*/
|
|
|
|
|
|
2020-05-18 17:21:57 +02:00
|
|
|
export default function({ servicesManager, extensionManager }) {
|
|
|
|
|
function ViewerLayoutWithServices(props) {
|
|
|
|
|
return ViewerLayout({ servicesManager, extensionManager, ...props });
|
|
|
|
|
}
|
|
|
|
|
|
2020-05-07 20:00:59 +02:00
|
|
|
return [
|
|
|
|
|
// Layout Template Definition
|
2020-05-09 20:23:43 +02:00
|
|
|
// TODO: this is weird naming
|
2020-05-07 20:00:59 +02:00
|
|
|
{
|
2020-05-09 20:23:43 +02:00
|
|
|
name: 'viewerLayout',
|
|
|
|
|
id: 'viewerLayout',
|
2020-05-18 17:21:57 +02:00
|
|
|
component: ViewerLayoutWithServices,
|
2020-05-07 20:00:59 +02:00
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
}
|