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 option to disable rounding on integer zoom levels. #2

Merged
merged 1 commit into from
Jan 20, 2021
Merged

Add option to disable rounding on integer zoom levels. #2

merged 1 commit into from
Jan 20, 2021

Conversation

EliteMasterEric
Copy link
Contributor

Added new option round, specified when constructing the object, to specify pixel outputs should not be rounded, even on integer zoom levels.

Added this because I wanted floating pixel values for an integer zoom level, and specifying 9 as 9.0 did not work due to the custom float check.

If you have a different suggestion for implementing this functionality without a breaking change, feel free to comment.

@coveralls
Copy link

coveralls commented Jan 19, 2021

Coverage Status

Coverage decreased (-0.09%) to 99.16% when pulling 269497e on MasterEric:option-round into 827b92e on nbulaj:master.

@nbulaj nbulaj merged commit 310109c into nbulaj:master Jan 20, 2021
@nbulaj
Copy link
Owner

nbulaj commented Jan 20, 2021

Thanks @mastereric

@EliteMasterEric EliteMasterEric deleted the option-round branch January 22, 2021 21:07
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

Successfully merging this pull request may close these issues.

None yet

3 participants