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

[Feature Request] SVG Export Option

Open marzzuki opened this issue 1 year ago • 0 comments

Hello @brpapa,

First, I want to say that your project is fantastic! I've been using it extensively, and it’s been extremely valuable.

I’d like to propose a feature that could further enhance the user experience: enabling the recursion tree visualization to be exported as an SVG file. An SVG format would be ideal for allowing users to zoom in/out and annotate the tree, which is especially useful when working with large or complex trees where clarity and detailed viewing are essential.

While attempting a workaround, I tried saving the element to an svg file and added the following line:

<svg 
    version="1.1" 
    xmlns="http://www.w3.org/2000/svg" 
    xmlns:xlink="http://www.w3.org/1999/xlink" 
    viewBox="0 0 3925 1150" 
    class="sc-a04eed4-0 cUjhDT"
>
...
</svg>

However, this approach resulted in a distorted view (see the attached image). I suspect the issue may be related to the class attribute, which could be causing unexpected rendering behavior. image

Thank you for considering this, and I’m excited to see the amazing updates you’ll bring to the project!

Keep up the fantastic work!

marzzuki avatar Nov 06 '24 06:11 marzzuki