-
-
Notifications
You must be signed in to change notification settings - Fork 317
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 strokestyle
attribute to Box
#3346
Conversation
Hi, thanks for the PR! I think we call that property |
Ah, okay! I'm essentially building my first more involved Makie figure and haven't used many keywords so far. In Do you think image reference tests are necessary and if so could you point me in the right direction? I was mainly following your rounded corner PR and haven't strayed too far from files you changed there, so a bit unsure of the testing is setup |
Just renaming strokestyle to linestyle will be enough here. Reference images are good practice, it's hard to unit-test visual attributes otherwise. You could add a test for |
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.
Thanks, looks good!
Hello! I've recently used the
Box
with cornerradius to create a plot and wanted to adapt the stroke style and found no option to do that.Description
This PR adds the
strokestyle
keyword to aBox
:For the implementation I also had to adapt a check for compatible linestyles in
CairoMakie
, which was incompatible with the return type ofconvert_attribute
forkey"linestyle
.Type of change
Checklist