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

Use a clip path instead of a mask to avoid clearing the canvas #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

flozz
Copy link

@flozz flozz commented Aug 12, 2021

Hello,

Currently perspective.js/ts use a mask while drawing the image to the canvas. This mask causes a clearing of the canvas. As webkit now supports antialising on clip paths, I reverted perspective.js lib to use clip path and I made this PR to help you integrating this change too :)

More information in the following issue:

@sserranoa
Copy link

Hi!

Do you have any update on this issue? I have the same problem.

With the solution of @flozz, its work ok.

Maybe it's posible merge the pull request? if not i do a fork, but... i would prefer, use the same library.

Thanks you!

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