feat(commandsModule): Add previousImage and nextImage actions and commands (#710)

* 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
This commit is contained in:
David Wire authored and Danny Brown committed 2019-07-23 14:52:29 -04:00
1 parent 5a13194203
commit 3398a894a3
2 files changed
+29 -3

No files matched your search

+2 -2
View File
@@ -54,8 +54,8 @@ window.config = {
{ commandName: 'fitViewportToWindow', label: 'Zoom to Fit', keys: ['='] },
{ commandName: 'resetViewport', label: 'Reset', keys: ['space'] },
// clearAnnotations
// nextImage
// previousImage
{ commandName: 'nextImage', label: 'Next Image', keys: ['up'] },
{ commandName: 'previousImage', label: 'Previous Image', keys: ['down'] },
// firstImage
// lastImage
{