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

Fixes & optimizations #3

Draft
wants to merge 23 commits into
base: master
Choose a base branch
from
Draft

Fixes & optimizations #3

wants to merge 23 commits into from

Conversation

akx
Copy link

@akx akx commented Oct 11, 2021

This PR might seem big, but the commits and changes themselves are granular and self-contained.

It also enables ESlint to catch more possible bugs and makes typing a little stricter.

The end result is happily also a smaller bundle (3339 bytes -> 2980 bytes).

@mjgerace
Copy link

There is a bug with this change whereby the actual target image you are setting the transform for gets cut off at the bottom (IE, it seems like this code change makes it get the wrong height for the image you are attempting to apply perspective transform to). Does not happen with master.

@akx akx marked this pull request as draft November 24, 2021 14:54
@akx
Copy link
Author

akx commented Feb 8, 2022

@mjgerace I tried to reproduce that, but couldn't... do you have a repro case I could take a look at?

@mjgerace
Copy link

@akx I think the issue I found revolves around how you scale - you just use sc in drawSlices, not splitting into scx and scy. When I do this correctly (dividing by height for the y-value), everything looks kosher.

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