-
Notifications
You must be signed in to change notification settings - Fork 187
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
support for fillOpacity in swatch and ramp color legends #1407
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason I suggested calling it opacity (and not fillOpacity) is that we use the color option for the opacity ramp legend. Also more practically, there is no possible stroke here, so we do not need to distinguish between fill and stroke, and opacity is shorter.
My code was really missing a few pieces :-( Now, it's a bummer that we have to select opacity if there is no symbol, fillOpacity if the symbols are filled, and strokeOpacity if they are stroked. Maybe we could support opacity across the board (as well as strokeOpacity and fillOpacity)? |
ed7d07f
to
b7c3902
Compare
…q#1407) * support for fillOpacity in swatch and ramp color legends closes observablehq#1356 * opacity * fill opacity it is * use fill-opacity * minimize diff * minimize diff; add default * regenerate test snapshots --------- Co-authored-by: Mike Bostock <[email protected]>
Note: I used fillOpacity and not opacity, for consistency with the symbol legends.
closes #1356