You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the core features of vector graphics is to be resizable. I don't see an example that allows dynamic resizing. In all of the examples the size is explicitly hardcoded.
Got a potential PR for an example which dynamically resizes on window resize events, even in 3D contexts. I'm not super satisfied with the implementation, though. I'll maybe pick this up again soon.
This is something I thought about but ended up decided against it because it hides a trade-off behind the scenes. A solution could be iterating through all the geometry, finding the maximum (minimum) screen-space delta UV, and using that to reallocate the texture in the background. A bounding-box approach could be cheaper if you first get per-object max (min) delta UV.
In any case, for the time being, I won't be able to invest time into a feature like this, but I'm happy to merge a PR as long as we're not hiding too much magic beneath the carpet. 😄
One of the core features of vector graphics is to be resizable. I don't see an example that allows dynamic resizing. In all of the examples the size is explicitly hardcoded.
e.g. -
It would make sense to have an example that resizes all of the images when there's a bevy resize event.
The text was updated successfully, but these errors were encountered: