brpapa / recursion-tree-visualizer

🌳 Input the source code of any recursive function in javascript, python or golang and visualize its recursion tree
https://recursion.vercel.app
MIT License
467 stars 63 forks source link

[Feature Request] Allow panning/zooming of recursion tree #19

Open tabishnaqvi1311 opened 1 month ago

tabishnaqvi1311 commented 1 month ago

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
devishraq commented 1 month ago

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

brpapa commented 1 month ago

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.

devishraq commented 1 month ago

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?

brpapa commented 1 month ago

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