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

Provide more than 100% "Zoom to selection" feature zoom level #272

Closed
HiRolla opened this issue Nov 23, 2021 · 2 comments
Closed

Provide more than 100% "Zoom to selection" feature zoom level #272

HiRolla opened this issue Nov 23, 2021 · 2 comments

Comments

@HiRolla
Copy link

HiRolla commented Nov 23, 2021

Hello!
Now I can't dive to the selection deeper than 100% using Shift+2 hotkey or the context menu. Almost every time I have to zoom and scroll manually, that's slows down a drawing process.

It would be great to have an option to set up the max zoom level for "Zoom to selection" feature. Maybe it can be something like we already have in the "Zoom to fit max ZOOM level". Or maybe it can be a single option for both cases.

Thank you!

@zsviczian
Copy link
Owner

I just realized you can solve this issue with a simple Excalidarw Script Engine script.
You can find the script here: ea-scripts/Zoom to Fit Selected Elements.md
More about the script engine here: https://youtu.be/hePJcObHIso

@HiRolla
Copy link
Author

HiRolla commented Jan 2, 2022

@zsviczian, Thank you!
Is there any api command to refresh the view during the script run?
I want to check if there can be a smooth zooming.

Also how can I deselect items by a script?

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