brpapa/recursion-tree-visualizer

[Feature Request] Allow panning/zooming of recursion tree

Opened this issue · 4 comments

It would be great if there was a switch that would toggle some sort of "pan mode" allowing users to pan/zoom into the recursion tree, as large recursion trees have small text and it gets hard to read. Browser zoom is good but it would be better to have this as an option.

Example:
Screenshot 2024-08-13 at 10 57 04 AM

Hi @brpapa!
I found this project interesting...I would like to implement that zooming in/out feature for this one....I am waiting for a green signal from you...Is this project still under active maintenance?

My suggested solution will be to make something like Figma has (though Figma's part is built with C++, I don't care!)...I want to implement such a zoom-in and out feature that you can use with your two fingers....yeah that conventional approach!...

I would be happy if you assign me this!
Thanks
ISHRAQ

Hi @devishraq, feel free to open a PR. Being able to pan/zoom would be a really cool feature.
https://reactflow.dev/learn/concepts/the-viewport seems to be interesting.

Thanks for the green light @brpapa! I appreciate the reactflow.dev suggestion. Before I start, I wanted to ask: would you prefer a custom solution for the pan/zoom feature, or should I use an existing package like react-flow?

@devishraq I really liked react-flow because it is already widely used and actively maintained :)