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

CanvasFilters - Even <feImage>? #13

Open
Kaiido opened this issue Mar 29, 2021 · 0 comments
Open

CanvasFilters - Even <feImage>? #13

Kaiido opened this issue Mar 29, 2021 · 0 comments

Comments

@Kaiido
Copy link

Kaiido commented Mar 29, 2021

The <feImage> SVG filter primitive allows to load external resources and graphic elements accessible in the document.

This filter seems to create a few issues with how the canvas API works.

Fetching resources should be an async operation, this means that by the time we pass the resulting CanvasFilter to the canvas, the resource may still not be ready to be rendered. SVG doesn't have this problem, it can just rerender when the resource is loaded. Canvas can't do that.

Currently the best I can think of would be to make it take ImageBitmaps instead of URIs.

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

1 participant