Open vtushevskiy opened 3 years ago
I have hacked up a quick proof of concept using a suggestion noted here: https://github.com/ocornut/imgui/issues/772#issuecomment-244628219 . 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, Is this zoom in/out implemented? If yes, how to use it? Thanks
Yes, any news on whether this was implemented?
the mini-map is ok, but wheel-zooming and mouse panning would be awesome
mouse panning would be awesome
Although this feature isn't implemented in the library, I was able to get this to work using EditorContextGetPanning
and EditorContextResetPanning
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?