Open jafioti opened 1 year ago
Hmm I think that could make sense. How would the zooming be controlled?
I believe feh
does this with either a CLI flag or keyboard shortcut.
I think the following line is responsible for transforming the SVG prior to rasterizing it: https://github.com/sdedovic/svgview/blob/master/src/main.rs#L179
but it requires some testing. I am open to a PR. The main goal of this software is to render the SVG at the highest fidelity possible, meaning resizing the SVG and then rasterizing. So that will take a little bit of experimentation.
I'll mess around with it. I'm thinking zoom could be controlled by pinching on a trackpad or scrollwheel on mouse, and panning can be controlled by clicking and dragging.
Hi, glad to see someone wrote a little utility to view an svg. How difficult would it be to add zoom / pan ability? I'd assume not very since the library already handles resizing. I can help add it ,but some pointers on where to start would be welcome