Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add help popup #12

Open
freeman-lab opened this issue Feb 17, 2015 · 0 comments
Open

Add help popup #12

freeman-lab opened this issue Feb 17, 2015 · 0 comments

Comments

@freeman-lab
Copy link
Member

Many visualization types have either keystrokes or mouse actions that trigger different functionality, and much of this is currently undocumented and may not be obvious (e.g. clicking to select nodes, using arrow keys to change color map).

We should add functionality for a ? icon as a small button, maybe in the upper right of a visualization, next to the Actionsbutton.

This should be an endpoint that allows a key-value specification of buttons/keys and associated actions, which visualization types can then provide. For example, for a line we might have:

{
    "option-scroll" : "Zoom horizontally",
    "command-scroll" : "Zoom vertically"
}

For images

{
    "drag": "Draw regions",
    "option-drag" : "Modify regions"
    "command-drag" : "Pan image"
}

In some cases we'll have groups of buttons that have similar functionality, so probably want to be able to be concise, as in:

{
    "w,a,s,d" : "Pan camera",
    "left-arrow, right-arrow": "Orbit camera"
}

Would be very nice to somehow replace the key strings with icons (e.g. for left-arrow), but that can wait.

It's also not clear whether to add this to the visualization only as displayed in the lightning notebook or in a way that can be embedded, @mathisonian ?

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

No branches or pull requests

1 participant