API for user interactions #48
dimateos
started this conversation in
Features and improvements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First of all, this lib is looking lit! congrats and thanks a lot for sharing :)
I was thinking about my potential users and how they usually prefer context-menus/buttons over complex hotkeys/mouse-interactions.
So I guess I would love some additional API for simulating user interaction programmatically e.g. resetting zoom or fitting all axis. Then I could add some visual button to call them or by necessity when reloading etc. This API calls could also be added to the exiting context menu!
There is #19 about initial pan/rot/zoom, I guess I would be talking about setting next.
Some suggestions may become doable by external developers without modifying the internals.
Would be more involved for them but could leverage work in the future and also be used to make interaction prototypes.
Also could reference here #26, customizable interactions (e.g. panning with mouse wheel hold down instead of zooming). These could be potentially easier to implement with API present for the lib user too?
AFAIK imPlot is not so configurable, I guess because this could make the codebase harder to maintain.
But also note that 3D plots are harder to navigate than 2D and are usually less intuitive for users.
Just wanted to drop this here for discussion!
Beta Was this translation helpful? Give feedback.
All reactions