7yl4r / techtreejs

:deciduous_tree: customizable js game tech tree library
http://7yl4r.github.io/techtreejs/
Other
18 stars 3 forks source link

dynamically size the tech tree #19

Open 7yl4r opened 10 years ago

7yl4r commented 10 years ago

d3 canvas size should be set based on width/height of document/div. Possible by adding js methods to techtree.js or via css?

mileswest07 commented 9 years ago

By "dynamically size" are you referring to responsiveness? A media query would cover most CSS-related needs, but the SVG itself would need to be redrawn whenever the browser resizes.

7yl4r commented 9 years ago

Yes, that is what I meant. I've since done this on other projects; maybe I can pull some code over without much trouble.