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

SVG include graphs do not resize <svg> page when zooming #7

Open
paulross opened this issue Oct 5, 2017 · 0 comments
Open

SVG include graphs do not resize <svg> page when zooming #7

paulross opened this issue Oct 5, 2017 · 0 comments
Assignees

Comments

@paulross
Copy link
Owner

paulross commented Oct 5, 2017

The root <svg> element has attributes height and width that have values appropriate to 100% scaling. This means when zoomed out (<100%) the browser displays a bigger page than necessary and when zoomed in (>100%) elements outside the page are not displayed.

The function scaleGraphic() needs to adjust those attribute values on the <svg> element. Probably the easiest way to do this is to pass them in to scaleGraphic() as arguments and supply them specifically when writing the <g id="scaleGroup"> group of elements.

@paulross paulross self-assigned this Oct 5, 2017
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