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

feat: add FeOffset filter #2361

Merged
merged 12 commits into from
Jul 25, 2024
Merged

feat: add FeOffset filter #2361

merged 12 commits into from
Jul 25, 2024

Conversation

jakex7
Copy link
Member

@jakex7 jakex7 commented Jul 23, 2024

Summary

Continuation of #2316
Introducing new filter FeOffset.

Test Plan

Example app -> Filters -> FeOffset

Compatibility

OS Implemented
iOS
Android

Checklist

  • I have tested this on a device and a simulator
  • I added documentation in README.md
  • I updated the typed files (typescript)

@jakex7 jakex7 requested a review from WoLewicki July 23, 2024 10:39
@jakex7 jakex7 mentioned this pull request Jul 23, 2024
13 tasks
Copy link
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.

Left some comments, if they do not require change, then it should be good to go!

apple/Filters/RNSVGFilterPrimitive.mm Show resolved Hide resolved
if (props.in) {
extracted.in1 = props.in;
}
if (props.dx) {
Copy link
Member

Choose a reason for hiding this comment

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

Why do we have to handle the props that do not change at all this way? Can't we just use them directly in the component like here:

?

src/lib/extract/extractFilter.ts Show resolved Hide resolved
@WoLewicki
Copy link
Member

Also, should we add this filter to FilterImage ? I can see such changes in PR with FeGaussianBlur

@jakex7
Copy link
Member Author

jakex7 commented Jul 25, 2024

Also, should we add this filter to FilterImage ? I can see such changes in PR with FeGaussianBlur

It has been removed in #2359 and added types in 3a9a288

@jakex7 jakex7 merged commit 5807f2c into main Jul 25, 2024
8 of 9 checks passed
@jakex7 jakex7 deleted the @jakex7/filtersFeOffset branch July 25, 2024 10:32
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