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:
Alireza authored and GitHub committed 2022-09-08 22:02:20 -04:00
1 parent aec48b065c
commit 71f5fa8e2f
21 files changed
+168 -170

No files matched your search

@@ -1,4 +1,4 @@
import { CONSTANTS } from '@cornerstonejs/core';
import { Enums } from '@cornerstonejs/core';
import { log } from '@ohif/core';
const AXIAL = 'axial';
@@ -7,16 +7,16 @@ const CORONAL = 'coronal';
export default function getCornerstoneOrientation(
orientation: string
): CONSTANTS.ORIENTATION {
): Enums.OrientationAxis {
switch (orientation.toLowerCase()) {
case AXIAL:
return CONSTANTS.ORIENTATION.AXIAL;
return Enums.OrientationAxis.AXIAL;
case SAGITTAL:
return CONSTANTS.ORIENTATION.SAGITTAL;
return Enums.OrientationAxis.SAGITTAL;
case CORONAL:
return CONSTANTS.ORIENTATION.CORONAL;
return Enums.OrientationAxis.CORONAL;
default:
log.wanr('Choosing default orientation: axial');
return CONSTANTS.ORIENTATION.AXIAL;
log.wanr('Choosing acquisition plane orientation');
return Enums.OrientationAxis.ACQUISITION;
}
}