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

fix: the offset should not be multiplied by the scale #386

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

Kathleen-Xu
Copy link
Contributor

@Kathleen-Xu Kathleen-Xu commented Nov 7, 2024

This pull request is to fix the offset problem caused by #375.

#375 fixed the problem of exporting images on high DPI devices by multiplying the image width, height and transform by the devicePixelRatio. But it also multiplied the offset by the devicePixelRatio, which caused some workflows with large offsets to not be correctly displayed in the center of the exported image.

@pythongosssss pythongosssss merged commit 5719e85 into pythongosssss:main Nov 7, 2024
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.

2 participants