Skip to content

feat: support filters on web#2346

Merged
jakex7 merged 11 commits into
mainfrom
@jakex7/supportFiltersOnWeb
Jul 25, 2024
Merged

feat: support filters on web#2346
jakex7 merged 11 commits into
mainfrom
@jakex7/supportFiltersOnWeb

Conversation

@jakex7
Copy link
Copy Markdown
Member

@jakex7 jakex7 commented Jul 12, 2024

Summary

  • Export Filter and FeColorMatrix components on web
  • Change filter IDs in example to be unique*
  • Generate filter ID when using FilterImage*
  • Hide FilterImage example on web, since it's crashing the whole site (see feat: add new resolve web asset function #2334)

* ID on web has to be unique, otherwise it'll use the first element with that ID, even if they are in the separate SVG elements

Test Plan

run web-example app

Compatibility

OS Implemented
Web

@jakex7 jakex7 requested a review from WoLewicki July 12, 2024 09:59
Copy link
Copy Markdown
Member

@WoLewicki WoLewicki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we wait for #2334 with merging this one?

@jakex7
Copy link
Copy Markdown
Member Author

jakex7 commented Jul 19, 2024

Should we wait for #2334 with merging this one?

@WoLewicki
We don't have to. It's temporary disabling FilterImage example on web so everything else should work.

@WoLewicki
Copy link
Copy Markdown
Member

  • ID on web has to be unique, otherwise it'll use the first element with that ID, even if they are in the separate SVG elements

And it works the same in the browser? And at the same time is not part of the standard?

Comment thread src/filter-image/FilterImage.tsx Outdated
@jakex7 jakex7 requested a review from WoLewicki July 22, 2024 13:39
Copy link
Copy Markdown
Member

@WoLewicki WoLewicki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added one comment. Please answer it and then I think we are good to go 🚀

Comment thread src/filter-image/FilterImage.tsx Outdated
@jakex7 jakex7 merged commit ba7d775 into main Jul 25, 2024
@jakex7 jakex7 deleted the @jakex7/supportFiltersOnWeb branch July 25, 2024 08:45
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