Delete "basic" example mode, replace with segmentation mode

This commit is contained in:
dannyrb 2020-06-30 15:20:14 -04:00
parent 4d2774c87b
commit 92314513f6
7 changed files with 9 additions and 10 deletions

View File

@ -1,7 +1,7 @@
{
"name": "@ohif/mode-example",
"name": "@ohif/mode-segmentation",
"version": "0.0.1",
"description": "Example mode for OHIF",
"description": "Segmentation mode for OHIF",
"author": "OHIF",
"license": "MIT",
"repository": "OHIF/Viewers",

View File

@ -3,8 +3,10 @@ import { hotkeys } from '@ohif/core';
export default function mode({ modeConfiguration }) {
return {
id: 'example-mode',
displayName: 'Basic Viewer',
// TODO: Mode uses 'id' for route when it should use `slug`, if provided, and
// the route path
id: 'segmentation',
displayName: 'Segmentation',
validationTags: {
study: [],
series: [],
@ -15,7 +17,7 @@ export default function mode({ modeConfiguration }) {
},
routes: [
{
path: 'viewer',
path: 'segmentation',
init: ({ servicesManager, extensionManager }) => {
const { ToolBarService } = servicesManager.services;
ToolBarService.init(extensionManager);
@ -51,7 +53,6 @@ export default function mode({ modeConfiguration }) {
return {
id: 'org.ohif.default.layoutTemplateModule.viewerLayout',
props: {
// named slots
leftPanels: ['org.ohif.default.panelModule.seriesList'],
rightPanels: ['org.ohif.default.panelModule.measure'],
viewports: [
@ -69,10 +70,8 @@ export default function mode({ modeConfiguration }) {
],
extensions: ['org.ohif.default', 'org.ohif.cornerstone'],
sopClassHandlers: ['org.ohif.default.sopClassHandlerModule.stack'],
hotkeys: [
...hotkeys.defaults.hotkeyBindings
]
hotkeys: [...hotkeys.defaults.hotkeyBindings],
};
}
window.exampleMode = mode({});
window.segmentationMode = mode({});