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 FeMerge and FeMergeNode filters #2369

Merged
merged 15 commits into from
Jul 31, 2024
Merged

feat: add FeMerge and FeMergeNode filters #2369

merged 15 commits into from
Jul 31, 2024

Conversation

jakex7
Copy link
Member

@jakex7 jakex7 commented Jul 26, 2024

Summary

As mentioned in #2362
Introduce new filters:

  • FeMerge
  • FeMergeNode

Example usage

<Svg width="200" height="200">
  <Filter id="mergeWithOffset" width="180" height="180">
    <FeOffset dx="50" dy="50" result="test" />
    <FeOffset dx="100" dy="100" in="SourceGraphic" />
    <FeMerge>
      <FeMergeNode in="SourceGraphic" />
      <FeMergeNode in="test" />
      <FeMergeNode />
    </FeMerge>
  </Filter>
  <Rect
    x="0"
    y="0"
    width="100"
    height="100"
    stroke="black"
    fill="red"
    filter="url(#mergeWithOffset)"
  />
</Svg>
image

Test Plan

Example app -> Filters -> FeMerge

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 mentioned this pull request Jul 29, 2024
13 tasks
@jakex7 jakex7 merged commit b8b022c into main Jul 31, 2024
9 checks passed
@jakex7 jakex7 deleted the @jakex7/filtersFeMerge branch July 31, 2024 11:23
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.

1 participant