Skip to content

Conversation

@bnmajor
Copy link
Collaborator

@bnmajor bnmajor commented Jan 11, 2024

This adds a new component that contains a summary of the available mouse and keyboard controls. The component takes a prop to indicate if it is mounted in the setup or predictions step. If mounted during the setup step a few additional controls are listed (that are unavailable in the predictions step):

  • The annotations category:
    • Left-click: Label single superpixel
    • Shift-left-drag: Continuously label superpixels
  • Under the Pan category:
    • Arrow keys / Shift-arrow keys / Shift-ctrl-arrow keys
  • Under the Zoom category:
    • Plus, minus / Shift-plus, shift-minus / Shift-ctrl-plus, shift-ctrl-minus
    • 1 - 7: The number keys 1 - 7 will zoom to discrete zoom levels.
  • Under the Rotate category:
    • <, > (also . or ,) rotate the image a small amount. If shift is held down, < and > rotate the image 90 degrees.
    • 0: 0 returns the image to the default orientation.

In all cases the container is collapsible so that the text can be hidden if preferred

controls_and_hotkeys
setup_controls

Closes #73

@jeffbaumes
Copy link

From the screenshots this looks great from a functionality standpoint.

@bnmajor bnmajor merged commit dc52170 into DigitalSlideArchive:master Jan 11, 2024
@bnmajor bnmajor deleted the mouse-keyboard-controls branch January 11, 2024 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clearer indication of features (e.g. shift + click/drag to paint)

3 participants