Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-render the SVG after the zoom-gesture is released #9

Open
BabakSamimi opened this issue Mar 26, 2019 · 4 comments
Open

Re-render the SVG after the zoom-gesture is released #9

BabakSamimi opened this issue Mar 26, 2019 · 4 comments

Comments

@BabakSamimi
Copy link

BabakSamimi commented Mar 26, 2019

This might sound odd, but is it possible to re-render the SVG after the zoom-gesture is released? This would help a lot with complex SVG-trees considering that the tree is updating 24/7 while you're performing pan-gestures.

What I had in mind was that while you're zooming in the SVG, it'll have to be a bit blurry despite zooming in. However, once the gesture is released, the SVG will have to update.

Thoughts? Possible to do this?

@BabakSamimi
Copy link
Author

@msand bump

@msand
Copy link
Owner

msand commented Apr 2, 2019

Can probably be done using a scollview / panresponder. Just scale the view containing the svg rather than the svg root, and change the props of the svg on release.

@BabakSamimi
Copy link
Author

I'll try to do that, I'll update later on how it went.

@msand
Copy link
Owner

msand commented Apr 2, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants