FE-43: Add alternative OBB and polar distance map filters for refractive#8552
Draft
FE-43: Add alternative OBB and polar distance map filters for refractive#8552
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
Collaborator
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
3 tasks
4c2a6f1 to
4c01fe1
Compare
ba63941 to
9266132
Compare
9266132 to
5a5c7c2
Compare
4c01fe1 to
3cbf28d
Compare
5a5c7c2 to
dccbe1b
Compare
a079f04 to
32992dd
Compare
dccbe1b to
80a2296
Compare
80a2296 to
2d6282e
Compare
Base automatically changed from
cf/fe-518-add-storybook-and-update-build-setup
to
main
March 17, 2026 15:54
2d6282e to
0fb2e60
Compare
Add experimental filter variants that use objectBoundingBox sizing (no ResizeObserver needed) via composite SVG data URLs, and a polar distance map encoding displacement as (distance, angle) channels. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Default background is now the scrollable ExampleArticle with a sticky glass overlay. A "background" radio control lets you switch to the checkerboard pattern. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0fb2e60 to
cb7b082
Compare
Add FilterPolar with SVG filter math to decouple shape geometry from optical parameters. The geometric polar map (distance ratio + angle) is rasterized once per shape, then Snell's law refraction is applied via feComponentTransfer lookup tables and polar-to-cartesian conversion uses feColorMatrix + feComposite arithmetic signed multiplication. Remove specular props and computation from all filter components (Filter, FilterOBB, FilterPolar) and the refractive HOC. Add filter evolution roadmap to CLAUDE.md. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The GlassPane had borderRadius: 20 hardcoded, causing the CSS border radius to drift from the filter's radius when adjusted via controls. Now the radius prop flows through FilterShowcase to GlassPane. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
FilterPolarHiRes pre-computes a 513×513 geometric polar map once at module load and reuses it for any radius. On render, only cheap string operations run (SVG composite URL + magnitude lookup table). The bezel width always equals the radius. Export buildCompositeSvgUrl from composite-image so the hi-res filter can split at reference resolution but position at actual radius. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
hash seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

🌟 What is the purpose of this PR?
🔗 Related links
🚫 Blocked by
🔍 What does this change?
Pre-Merge Checklist 🚀
🚢 Has this modified a publishable library?
This PR:
📜 Does this require a change to the docs?
The changes in this PR:
🕸️ Does this require a change to the Turbo Graph?
The changes in this PR:
turbo.json's have been updated to reflect this🐾 Next steps
🛡 What tests cover this?
❓ How to test this?
📹 Demo