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

Problems with large svg image #1

Open
guilhermeleobas opened this issue May 21, 2018 · 1 comment
Open

Problems with large svg image #1

guilhermeleobas opened this issue May 21, 2018 · 1 comment

Comments

@guilhermeleobas
Copy link

Hi,

I've tried to use vzl with a file that generates a large svg image but the image gets too small. See the image below:

screen shot 2018-05-21 at 00 55 35

I've tried to add keyboard shortcuts to change the scale of the divs but that didn't work very well. The div that contains the svg doesn't scale correctly.

globalShortcut.register('CommandOrControl+=', () => {
  webFrame.setZoomFactor(webFrame.getZoomFactor() + 0.1);
})

globalShortcut.register('CommandOrControl+-', () => {
  webFrame.setZoomFactor(webFrame.getZoomFactor() - 0.1);
})

globalShortcut.register('CommandOrControl+0', () => {
  webFrame.setZoomFactor(1);
})

I don't know much about electron but if you point me the direction I can send a PR fixing this issue.

Regards

@vutran
Copy link
Owner

vutran commented May 23, 2018

You can try using svg-pan-zoom

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

2 participants