Skip to content

imageFilter (support for the CSS filter attribute) #409

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

Merged
merged 3 commits into from
May 8, 2023
Merged

Conversation

Fil
Copy link
Contributor

@Fil Fil commented May 18, 2021

Helps with dark mode (#408)

@Fil Fil requested a review from mbostock May 18, 2021 10:51
Copy link
Member

@mbostock mbostock left a comment

Choose a reason for hiding this comment

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

I’m going to punt on this. I’m unsure about the name “colorFilter”. It’s unfortunate that we can’t use filter because it conflicts with the basic transform. We could, possibly, interpret the filter as CSS filter if it’s a valid CSS filter function string, similar to how we validate colors. But that’s a little fancy…

https://drafts.fxtf.org/filter-effects/#filter-functions

@mbostock mbostock added the question Further information is needed label Aug 11, 2021
@Fil Fil marked this pull request as draft August 12, 2021 08:25
@Fil Fil mentioned this pull request Sep 14, 2021
@Fil Fil mentioned this pull request May 28, 2022
@mbostock
Copy link
Member

mbostock commented May 7, 2023

I think we should do this, but we should call it imageFilter instead of colorFilter.

@Fil Fil force-pushed the fil/colorFilter branch from dbafb11 to e1451ed Compare May 8, 2023 17:31
@Fil Fil changed the title colorFilter (support for the filter attribute) imageFilter (support for the CSS filter attribute) May 8, 2023
@Fil
Copy link
Contributor Author

Fil commented May 8, 2023

rebased as imageFilter.

@Fil Fil marked this pull request as ready for review May 8, 2023 18:10
@Fil Fil requested a review from mbostock May 8, 2023 18:10
Copy link
Member

@mbostock mbostock left a comment

Choose a reason for hiding this comment

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

Looks good, but you can add a tiny test too?

@mbostock mbostock mentioned this pull request May 8, 2023
57 tasks
@Fil Fil merged commit 7e883c2 into main May 8, 2023
@Fil Fil deleted the fil/colorFilter branch May 8, 2023 21:32
chaichontat pushed a commit to chaichontat/plot that referenced this pull request Jan 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants