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

[Bug]: Text globalCompositeOperation #8679

Open
ShaMan123 opened this issue Feb 8, 2023 · 2 comments
Open

[Bug]: Text globalCompositeOperation #8679

ShaMan123 opened this issue Feb 8, 2023 · 2 comments

Comments

@ShaMan123
Copy link
Contributor

ShaMan123 commented Feb 8, 2023

Text globalCompositeOperation that isn't source-over must render in isolation.
Without context isolation, since it renders letter by letter and the nature of letters that they don't overlap globalCompositeOperation will render nothing since each letter will render and clear the canvas.
We need to fix that by changing shouldCache

https://jsfiddle.net/ex9zo8mp/

toggle textbox.shouldCache = () => true/false

@ShaMan123 ShaMan123 added the text label Feb 8, 2023
@ShaMan123 ShaMan123 self-assigned this Feb 8, 2023
@ShaMan123
Copy link
Contributor Author

ShaMan123 commented Feb 8, 2023

Original:

https://jsfiddle.net/8cneqdmx/

globalCompositeOperation
sorry,Your revision did not achieve my purpose!

image

1.Only the text part of the picture needs to be shown, the rest of the picture is transparent

2.The text should be centered

3.I have tried to use pattern to achieve, but it is not easy to center

That's what it should look like
image

Originally posted by @carior in #7708 (comment)

@ShaMan123
Copy link
Contributor Author

This part of the scope of #7874

@ShaMan123 ShaMan123 reopened this Feb 9, 2023
@ShaMan123 ShaMan123 removed their assignment May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant