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

Add zoom information to URL parameters #284

Open
craigsapp opened this issue Feb 13, 2024 · 0 comments
Open

Add zoom information to URL parameters #284

craigsapp opened this issue Feb 13, 2024 · 0 comments

Comments

@craigsapp
Copy link
Owner

For the Zoom buttons:

Screenshot 2024-02-13 at 10 15 21

In the top navigation area, add URL parameters that give the scaling factor used to render the music. Something like Zo{150} for 150% of default size. The zoom buttons have a limited choice of zooming (about 10% increments geometrically), and this feature would allow the user to set a precise zoom factor if needed without the need to add an additional option on the configuration panel.

Default size:

https://polishscores.org/?id=pl-kk--kk-i-2--022

Screenshot 2024-02-13 at 10 18 38

25% size (hypothetical at the moment, so the Zo parameter is not recognized yet):

https://polishscores.org/?id=pl-kk--kk-i-2--022&con=Zo{25}

Screenshot 2024-02-13 at 10 21 12

Note that command-0 in MacOS or control-0 on PCs will currently reset the zoom factor to 100%

The zoom factor from the URL should be checked, and probably limited between 5% and 500% (or the maximum limits in verovio if they are smaller).

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