2023-04-26 12:21:08 -04:00
|
|
|
import { Enums } from '@cornerstonejs/tools';
|
|
|
|
|
import { toolNames } from './initCornerstoneTools';
|
2023-04-28 16:13:47 -04:00
|
|
|
import DicomUpload from './components/DicomUpload/DicomUpload';
|
2023-04-26 12:21:08 -04:00
|
|
|
|
|
|
|
|
const tools = {
|
|
|
|
|
active: [
|
|
|
|
|
{
|
|
|
|
|
toolName: toolNames.WindowLevel,
|
|
|
|
|
bindings: [{ mouseButton: Enums.MouseBindings.Primary }],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
toolName: toolNames.Pan,
|
|
|
|
|
bindings: [{ mouseButton: Enums.MouseBindings.Auxiliary }],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
toolName: toolNames.Zoom,
|
|
|
|
|
bindings: [{ mouseButton: Enums.MouseBindings.Secondary }],
|
|
|
|
|
},
|
|
|
|
|
{ toolName: toolNames.StackScrollMouseWheel, bindings: [] },
|
|
|
|
|
],
|
|
|
|
|
enabled: [{ toolName: toolNames.SegmentationDisplay }],
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
function getCustomizationModule() {
|
|
|
|
|
return [
|
2023-04-28 16:13:47 -04:00
|
|
|
{
|
|
|
|
|
name: 'cornerstoneDicomUploadComponent',
|
|
|
|
|
value: {
|
|
|
|
|
id: 'dicomUploadComponent',
|
|
|
|
|
component: DicomUpload,
|
|
|
|
|
},
|
|
|
|
|
},
|
2023-04-26 12:21:08 -04:00
|
|
|
{
|
|
|
|
|
name: 'default',
|
|
|
|
|
value: [
|
|
|
|
|
{
|
|
|
|
|
id: 'cornerstone.overlayViewportTools',
|
|
|
|
|
tools,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default getCustomizationModule;
|