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

To add viewBox in SVG #66

Closed
hellomaya opened this issue Feb 2, 2015 · 1 comment
Closed

To add viewBox in SVG #66

hellomaya opened this issue Feb 2, 2015 · 1 comment

Comments

@hellomaya
Copy link

To have fabricjs used in real production, the best way I think we will need SVG to be the final output, and when fabricjs export the canvas content to SVG, it usually used px as the unit, and because the size difference between the screen and the print, we will have to resize the canvas to be much more bigger to achieve better image quality, SVG do have a feature called viewBox, if we can use viewBox when we export the canvas content to SVG, we will be able to redefine the coordination system of SVG, that means, we don't have to resize canvas, we only change SVG, so we can achieve the size what we want to, so do you think that could be another new feature in current version of fabricjs? http://tutorials.jenkov.com/svg/svg-viewport-view-box.html#coordinate-system-units

@hellomaya hellomaya reopened this Feb 2, 2015
@hellomaya
Copy link
Author

When I am checking the source of fabricjs, and going to fix that I found it support viewBox attribute, I am sorry for my roughness, and I will close this issue.

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

1 participant