-
Notifications
You must be signed in to change notification settings - Fork 184
automatic opt-out of opacity scale #1310
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
Conversation
What do you think, @Fil? If you don’t think automatic opt-out of the opacity scale is a good idea, I could extract the fix for #1309 into a separate PR. I have mixed feelings about this because it feels like it’s more likely to get a false positive (false negative?) where numbers that happen to be in the interval [0, 1] are erroneously interpreted as literal opacities. |
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.
It makes sense to me that we would consider values in [0, 1] as literal opacities—the risks and benefits are similar to what we do for colors, and it would be more consistent.
I'm going to change the markov-chain example back to "auto", because it's what I had in mind when I wrote it — even though it ended up scaled up by 1/0.8 :-)
…, since all the numbers are in [0.1, 0.8])
Could we get this for just "opacity" (in addition to "strokeOpacity" and "fillOpacity")? |
@Fil awesome! |
* automatic opt-out of opacity scale * reducer scale overrides * use 'auto' scaling for markov-chain (in this case, 'auto' is identity, since all the numbers are in [0.1, 0.8]) * shorter --------- Co-authored-by: Philippe Rivière <fil@rezo.net>
Fixes #1308; adds automatic opt-out of opacity scale.
Fixes #1309; adds per-channel scale overrides for bin & group transform outputs.