I want to design a more elegant way to resize components.
The current way, although it does work, is very hacky and depends on CSS width and height percents and svg viewBox.
I want to have a more intuitive approach, either a WebGL style approach or something that can be scalable and integrated without too much of a learning curve. Any suggestions are welcome.
I'm going to close this issue for now - it seems you can just specify the width and height via css, and then modify the view box parameters as you see fit.
I want to design a more elegant way to resize components.
The current way, although it does work, is very hacky and depends on CSS width and height percents and svg viewBox.
I want to have a more intuitive approach, either a WebGL style approach or something that can be scalable and integrated without too much of a learning curve. Any suggestions are welcome.
https://stackoverflow.com/questions/16265123/resize-svg-when-window-is-resized-in-d3-js