fix: left right hotkeys and remove non working ones (#2922)
* fix: constant should be enums in cs3d * remove non working hotkeys for now
This commit is contained in:
1 parent
aec48b065c
commit
71f5fa8e2f
21 files changed
+168
-170
No files matched your search
@@ -46,29 +46,19 @@ const dicomVideoExtension = {
|
||||
{ name: 'dicom-video', component: ExtendedOHIFCornerstoneVideoViewport },
|
||||
];
|
||||
},
|
||||
getCommandsModule({ servicesManager }) {
|
||||
return {
|
||||
definitions: {
|
||||
setToolActive: {
|
||||
commandFn: ({ toolName, element }) => {
|
||||
if (!toolName) {
|
||||
console.warn('No toolname provided to setToolActive command');
|
||||
}
|
||||
|
||||
// Set same tool or alt tool
|
||||
const toolAlias = _getToolAlias(toolName);
|
||||
|
||||
cornerstoneTools.setToolActiveForElement(element, toolAlias, {
|
||||
mouseButtonMask: 1,
|
||||
});
|
||||
},
|
||||
storeContexts: [],
|
||||
options: {},
|
||||
},
|
||||
},
|
||||
defaultContext: 'ACTIVE_VIEWPORT::VIDEO',
|
||||
};
|
||||
},
|
||||
// getCommandsModule({ servicesManager }) {
|
||||
// return {
|
||||
// definitions: {
|
||||
// setToolActive: {
|
||||
// commandFn: ({ toolName, element }) => {
|
||||
// },
|
||||
// storeContexts: [],
|
||||
// options: {},
|
||||
// },
|
||||
// },
|
||||
// defaultContext: 'ACTIVE_VIEWPORT::VIDEO',
|
||||
// };
|
||||
// },
|
||||
getSopClassHandlerModule,
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user