-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add lineend and linejoin params to geom_rect() and geom_tile() #3050
Add lineend and linejoin params to geom_rect() and geom_tile() #3050
Conversation
I'm new to this, so forgive me if I'm talking nonsense, but do you need to update the legend key as well? Line 48 in 1c09bae
|
Thanks, you are right! |
@yutannihilation can you have a look at this again and see if it is ready for review? I think exposing a |
Yeah, I fixed the implementation to use
Let me think a bit if I can finish this... |
|
Thanks, then I'll revert it to closed form. For the second one, I meant, changing the default lineend ( |
Are the visual tests not only run on linux systems, where the In any way I think it is worth breaking the tests... they are mainly there to avoid unforeseen regressions |
Oh, I didn't know this. Thanks. Then, I'll try to finish this PR! |
hmm... can I get you to look into the test failures? Apparently the tests are run on AppVeyor after all. It seems you missed updating the one in test-scales-breaks-labels.R |
Yes, I will. Sorry that I can't make much time for this... |
No worries - didn't know you were hung up... Is there anything I can help with? |
Thanks, this comment really helped me! I didn't merge the current master so the new visual tests added in #2334 were not included here. Currently I'm trying to figure out what the |
@thomasp85 |
This is fine - well add it🙂. Reviewing later today |
Sure. I'll do my best to be responsive this week to let this be merged early. |
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.
LGTM
Thanks! |
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/ |
Fix #3037
Just as #2132 for
geom_segment()
, this PR changesgeom_rect()
's default oflinejoin
from"butt"
to"square"
, andlinejoin
parameter by users.draw_key_polygon()
is changed as well.In addition, as a workaround for Windows, this PR
lineend
parameter.Note that I expect this breaks many visual tests as
geom_rect()
anddraw_key_polygon()
are used in many places.Created on 2019-05-01 by the reprex package (v0.2.1)