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

When the background is set to transparent, the eraser becomes invalid #40

Open
leenannan opened this issue Sep 6, 2023 · 2 comments
Open

Comments

@leenannan
Copy link

leenannan commented Sep 6, 2023

When the backgroundColor is set to transparent, the eraser becomes invalid

@vamsimudadla
Copy link

@leenannan
Hi leenannan,

Did you find a solution for this ?

@zhangfr
Copy link

zhangfr commented Jun 20, 2024

@leenannan Hi leenannan,

Did you find a solution for this ?

Manually set Context2D.globalCompositeOperation to isErase ? "destination-out" : "source-over" and strokeStyle to isErase ? "#FFFFFF" : brushColor

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

3 participants