-
Notifications
You must be signed in to change notification settings - Fork 254
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
Any chance to zoom in/zoom out node graph? #118
Comments
I have hacked up a quick proof of concept using a suggestion noted here: ocornut/imgui#772 (comment) . It seems to work for both visual and input parts. I can work on it after I land mini-map changes. |
Very cool @smilediver ! I don't want to have ImNodes depend on a modified ImGui version. But if there is some community-supported way of doing this, then that would be great to have documented in the repository. |
It doesn't require modifications to ImGui. Basically it does two things: goes through ImNodes' draw lists and transforms the vertices; and modifies ImGui's mouse states (like ImGuiIO::MousePos) to be in the zoomed coordinate space. I just hope that ImGui doesn't have some hidden mouse states that we can't control. |
hi @smilediver, is a (possibly beta) version of your change available anywhere ? - thanks |
I think it's mostly done. I'll try to find some free time to work on it on Friday to clean it up and review, and maybe will do a PR. |
did this ever get implemented? |
Hello, |
Yes, any news on whether this was implemented? the mini-map is ok, but wheel-zooming and mouse panning would be awesome |
Although this feature isn't implemented in the library, I was able to get this to work using |
Yes, any news on whether this was implemented? the mini-map is ok, but wheel-zooming and mouse panning would be awesome |
Would it be possible to implement zoom in/out for whole node graph in the editor?
The text was updated successfully, but these errors were encountered: