* feat(commandsModule): Add `previousImage` and `nextImage` actions and commands This change adds the keybindings for previousImage (down) and nextImage (up) to the default configuration and adds the command and action necessary to support it. This pull request is dependent upon https://github.com/cornerstonejs/cornerstoneTools/pull/1025 which exports the scroll utility it uses. * style(default.js): Switch tabs to spaces * fix(commandsModule): import `scroll` through cornerstoneTools.import
75 lines
2.3 KiB
JavaScript
75 lines
2.3 KiB
JavaScript
window.config = {
|
|
// default: '/'
|
|
routerBasename: '/',
|
|
// default: ''
|
|
relativeWebWorkerScriptsPath: '',
|
|
showStudyList: true,
|
|
servers: {
|
|
dicomWeb: [
|
|
{
|
|
name: 'DCM4CHEE',
|
|
wadoUriRoot: 'https://server.dcmjs.org/dcm4chee-arc/aets/DCM4CHEE/wado',
|
|
qidoRoot: 'https://server.dcmjs.org/dcm4chee-arc/aets/DCM4CHEE/rs',
|
|
wadoRoot: 'https://server.dcmjs.org/dcm4chee-arc/aets/DCM4CHEE/rs',
|
|
qidoSupportsIncludeField: true,
|
|
imageRendering: 'wadors',
|
|
thumbnailRendering: 'wadors',
|
|
requestOptions: {
|
|
requestFromBrowser: true,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
// Extensions should be able to suggest default values for these?
|
|
// Or we can require that these be explicitly set
|
|
hotkeys: [
|
|
// ~ Global
|
|
{
|
|
commandName: 'incrementActiveViewport',
|
|
label: 'Next Image Viewport',
|
|
keys: ['right'],
|
|
},
|
|
{
|
|
commandName: 'decrementActiveViewport',
|
|
label: 'Previous Image Viewport',
|
|
keys: ['left'],
|
|
},
|
|
// Supported Keys: https://craig.is/killing/mice
|
|
// ~ Cornerstone Extension
|
|
{ commandName: 'rotateViewportCW', label: 'Rotate Right', keys: ['r'] },
|
|
{ commandName: 'rotateViewportCCW', label: 'Rotate Left', keys: ['l'] },
|
|
{ commandName: 'invertViewport', label: 'Invert', keys: ['i'] },
|
|
{
|
|
commandName: 'flipViewportVertical',
|
|
label: 'Flip Horizontally',
|
|
keys: ['h'],
|
|
},
|
|
{
|
|
commandName: 'flipViewportHorizontal',
|
|
label: 'Flip Vertically',
|
|
keys: ['v'],
|
|
},
|
|
{ commandName: 'scaleUpViewport', label: 'Zoom In', keys: ['+'] },
|
|
{ commandName: 'scaleDownViewport', label: 'Zoom Out', keys: ['-'] },
|
|
{ commandName: 'fitViewportToWindow', label: 'Zoom to Fit', keys: ['='] },
|
|
{ commandName: 'resetViewport', label: 'Reset', keys: ['space'] },
|
|
// clearAnnotations
|
|
{ commandName: 'nextImage', label: 'Next Image', keys: ['up'] },
|
|
{ commandName: 'previousImage', label: 'Previous Image', keys: ['down'] },
|
|
// firstImage
|
|
// lastImage
|
|
{
|
|
commandName: 'nextViewportDisplaySet',
|
|
label: 'Previous Series',
|
|
keys: ['pagedown'],
|
|
},
|
|
{
|
|
commandName: 'previousViewportDisplaySet',
|
|
label: 'Next Series',
|
|
keys: ['pageup'],
|
|
},
|
|
// ~ Cornerstone Tools
|
|
{ commandName: 'setZoomTool', label: 'Zoom', keys: ['z'] },
|
|
],
|
|
};
|