2020-07-10 21:00:10 +02:00
|
|
|
import windowLevelPresets from './windowLevelPresets';
|
2020-06-29 19:53:49 +02:00
|
|
|
|
2020-06-29 18:58:36 +02:00
|
|
|
/*
|
|
|
|
|
* Supported Keys: https://craig.is/killing/mice
|
|
|
|
|
*/
|
2020-06-29 16:53:46 +02:00
|
|
|
export default [
|
2020-08-19 21:02:59 +02:00
|
|
|
{ commandName: 'setToolActive', commandOptions: { toolName: 'Zoom' }, label: 'Zoom', keys: ['z'], isEditable: true },
|
|
|
|
|
{ commandName: 'scaleUpViewport', label: 'Zoom In', keys: ['+'], isEditable: true },
|
|
|
|
|
{ commandName: 'scaleDownViewport', label: 'Zoom Out', keys: ['-'], isEditable: true },
|
|
|
|
|
{ commandName: 'fitViewportToWindow', label: 'Zoom to Fit', keys: ['='], isEditable: true },
|
|
|
|
|
{ commandName: 'rotateViewportCW', label: 'Rotate Right', keys: ['r'], isEditable: true },
|
|
|
|
|
{ commandName: 'rotateViewportCCW', label: 'Rotate Left', keys: ['l'], isEditable: true },
|
2020-07-10 21:00:10 +02:00
|
|
|
{
|
2020-06-29 16:53:46 +02:00
|
|
|
commandName: 'flipViewportVertical',
|
|
|
|
|
label: 'Flip Horizontally',
|
|
|
|
|
keys: ['h'],
|
2020-08-19 21:02:59 +02:00
|
|
|
isEditable: true,
|
2020-06-29 16:53:46 +02:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
commandName: 'flipViewportHorizontal',
|
|
|
|
|
label: 'Flip Vertically',
|
|
|
|
|
keys: ['v'],
|
2020-08-19 21:02:59 +02:00
|
|
|
isEditable: true,
|
2020-06-29 16:53:46 +02:00
|
|
|
},
|
|
|
|
|
{
|
2020-08-19 21:02:59 +02:00
|
|
|
commandName: 'invertViewport',
|
|
|
|
|
label: 'Invert',
|
|
|
|
|
keys: ['i'],
|
|
|
|
|
isEditable: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
commandName: 'incrementActiveViewport',
|
|
|
|
|
label: 'Next Image Viewport',
|
|
|
|
|
keys: ['right'],
|
|
|
|
|
isEditable: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
commandName: 'decrementActiveViewport',
|
|
|
|
|
label: 'Previous Image Viewport',
|
|
|
|
|
keys: ['left'],
|
|
|
|
|
isEditable: true,
|
2020-06-29 16:53:46 +02:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
commandName: 'nextViewportDisplaySet',
|
|
|
|
|
label: 'Next Series',
|
|
|
|
|
keys: ['pageup'],
|
2020-08-19 21:02:59 +02:00
|
|
|
isEditable: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
commandName: 'previousViewportDisplaySet',
|
|
|
|
|
label: 'Previous Series',
|
|
|
|
|
keys: ['pagedown'],
|
|
|
|
|
isEditable: true,
|
|
|
|
|
},
|
|
|
|
|
{ commandName: 'nextImage', label: 'Next Image', keys: ['down'], isEditable: true },
|
|
|
|
|
{ commandName: 'previousImage', label: 'Previous Image', keys: ['up'], isEditable: true },
|
|
|
|
|
{ commandName: 'firstImage', label: 'First Image', keys: ['home'], isEditable: true },
|
|
|
|
|
{ commandName: 'lastImage', label: 'Last Image', keys: ['end'], isEditable: true },
|
|
|
|
|
{ commandName: 'resetViewport', label: 'Reset', keys: ['space'], isEditable: true },
|
|
|
|
|
{
|
|
|
|
|
commandName: 'cancelMeasurement',
|
|
|
|
|
label: 'Cancel Cornerstone Measurement',
|
|
|
|
|
keys: ['esc'],
|
2020-06-29 16:53:46 +02:00
|
|
|
},
|
|
|
|
|
{
|
2020-06-29 19:53:49 +02:00
|
|
|
commandName: 'setWindowLevel',
|
|
|
|
|
commandOptions: windowLevelPresets[1],
|
2020-06-29 16:53:46 +02:00
|
|
|
label: 'W/L Preset 1',
|
|
|
|
|
keys: ['1'],
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-06-29 19:53:49 +02:00
|
|
|
commandName: 'setWindowLevel',
|
|
|
|
|
commandOptions: windowLevelPresets[2],
|
2020-06-29 16:53:46 +02:00
|
|
|
label: 'W/L Preset 2',
|
|
|
|
|
keys: ['2'],
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-06-29 19:53:49 +02:00
|
|
|
commandName: 'setWindowLevel',
|
|
|
|
|
commandOptions: windowLevelPresets[3],
|
2020-06-29 16:53:46 +02:00
|
|
|
label: 'W/L Preset 3',
|
|
|
|
|
keys: ['3'],
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-06-29 19:53:49 +02:00
|
|
|
commandName: 'setWindowLevel',
|
|
|
|
|
commandOptions: windowLevelPresets[4],
|
2020-06-29 16:53:46 +02:00
|
|
|
label: 'W/L Preset 4',
|
|
|
|
|
keys: ['4'],
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-06-29 19:53:49 +02:00
|
|
|
commandName: 'setWindowLevel',
|
|
|
|
|
commandOptions: windowLevelPresets[5],
|
2020-06-29 16:53:46 +02:00
|
|
|
label: 'W/L Preset 5',
|
|
|
|
|
keys: ['5'],
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-06-29 19:53:49 +02:00
|
|
|
commandName: 'setWindowLevel',
|
|
|
|
|
commandOptions: windowLevelPresets[6],
|
2020-06-29 16:53:46 +02:00
|
|
|
label: 'W/L Preset 6',
|
|
|
|
|
keys: ['6'],
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-06-29 19:53:49 +02:00
|
|
|
commandName: 'setWindowLevel',
|
|
|
|
|
commandOptions: windowLevelPresets[7],
|
2020-06-29 16:53:46 +02:00
|
|
|
label: 'W/L Preset 7',
|
|
|
|
|
keys: ['7'],
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-06-29 19:53:49 +02:00
|
|
|
commandName: 'setWindowLevel',
|
|
|
|
|
commandOptions: windowLevelPresets[8],
|
2020-06-29 16:53:46 +02:00
|
|
|
label: 'W/L Preset 8',
|
|
|
|
|
keys: ['8'],
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-06-29 19:53:49 +02:00
|
|
|
commandName: 'setWindowLevel',
|
|
|
|
|
commandOptions: windowLevelPresets[9],
|
2020-06-29 16:53:46 +02:00
|
|
|
label: 'W/L Preset 9',
|
|
|
|
|
keys: ['9'],
|
|
|
|
|
},
|
|
|
|
|
];
|