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

Enhancement request: add "initialZoom" attribute #173

Open
rustyx opened this issue Dec 12, 2015 · 0 comments
Open

Enhancement request: add "initialZoom" attribute #173

rustyx opened this issue Dec 12, 2015 · 0 comments

Comments

@rustyx
Copy link

rustyx commented Dec 12, 2015

Please add an "initialZoom" setting which would allow to scale the SVG in relation to the SVG's user space only.
My SVG needs to be scaled down by 4, the only way to do that is to define viewBox, but I also want to occupy the whole browser window, so I set width to 100%, in this case the SVG is scaled based on browser's window size, whereas I want it to scale in such a way that 1px always corresponds to 4 units in my SVG's user space.
A setting "initialZoom":0.25 (or maybe a better name is "initialScale") would be really useful in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants