recursion-tree-visualizer icon indicating copy to clipboard operation
recursion-tree-visualizer copied to clipboard

[Feature Request] Allow panning/zooming of recursion tree

Open tabishnaqvi1311 opened this issue 1 year ago • 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

tabishnaqvi1311 avatar Aug 13 '24 05:08 tabishnaqvi1311

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

devishraq avatar Aug 14 '24 11:08 devishraq

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.

brpapa avatar Aug 16 '24 01:08 brpapa

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 avatar Aug 16 '24 04:08 devishraq

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

brpapa avatar Aug 17 '24 02:08 brpapa