Join GitHub today
Added additional settings that seem useful for SVG on the web. #4
I'm generating SVG for the web and need the SVG to be responsive.
The properties in question are:
I added settings for these two in the SVGGraphics2D class accordingly.
I also found that even when the
For this reason I added a
Hope these additions are desirable.
Things are documented and basic parameter checks are in place.
Hi, The changes you are proposing look very useful. There's one issue though, JFreeSVG is dual-licensed so in order to incorporate your code I would need you to agree to assign the copyright for your changes to my company Object Refinery Limited. Is that acceptable for you?
Thanks for the link to the website explaining the viewBox settings, that's very useful.
Sorry for the delay. I only now got the chance to test.
I found one issue. When you set a value for
Other than that it meets my requirements quite well and the enum approach is cleaner than my quick hack :)
OK, great…thanks for picking that up, I was about to start testing a week or two back then got distracted by other things. I’ll fix it asap.
Committed the fix.