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

Polyfill for the OffscreenCanvasRenderingContext2D.filter #32

Closed
bekatan opened this issue Sep 11, 2024 · 3 comments
Closed

Polyfill for the OffscreenCanvasRenderingContext2D.filter #32

bekatan opened this issue Sep 11, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@bekatan
Copy link

bekatan commented Sep 11, 2024

I am using an offscreencanvas with a webworker in my drawing application and offscreenContext.filter = blur() is one of the effects. Any plans to support this?

@davidenke
Copy link
Owner

davidenke commented Sep 11, 2024

Could you provide some reproduction please? Like a stackblitz or smth. else?

Edit: ah, you mean the native OffscreenCanvas? That would be worth a try to proxy it there as well...

@davidenke davidenke added the enhancement New feature or request label Sep 11, 2024
@bekatan
Copy link
Author

bekatan commented Sep 12, 2024

Yes, the native OffscreenCanvas here
https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas
The corresponding OffscreenCanvasRenderingContext2d supports most of the CanvasRenderingContext2d features including the context.filter
https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D
Would be great to have a polyfill for it

davidenke added a commit that referenced this issue Sep 13, 2024
davidenke added a commit that referenced this issue Sep 13, 2024
@davidenke davidenke self-assigned this Sep 13, 2024
davidenke added a commit that referenced this issue Sep 13, 2024
davidenke added a commit that referenced this issue Sep 13, 2024
davidenke added a commit that referenced this issue Sep 13, 2024
@davidenke
Copy link
Owner

davidenke commented Sep 13, 2024

@bekatan shipped with 0.3.17.
Honestly, I haven't tried from a worker yet, but everything works in the synchronous example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants