-
Notifications
You must be signed in to change notification settings - Fork 197
Add shape-rendering to mark style #419
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
|
Thanks! Have you by any chance looked at the examples in the test/plots/ directory and seen a plot that would benefit from using the option? |
|
I didn't see any test plot that could benefit so I added a new snapshot test (which could be a useful example when #415 lands too). There's also two new small unit tests. |
Fil
left a comment
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.
great example, thanks!
Fil
left a comment
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.
we'll be waiting on #415 then
|
I've added a build in https://observablehq.com/@fil/quantile-threshold-shaperendering-415-419 |
src/style.js
Outdated
| mark.strokeMiterlimit = impliedNumber(strokeMiterlimit, 4); | ||
| mark.strokeDasharray = string(strokeDasharray); | ||
| mark.mixBlendMode = impliedString(mixBlendMode, "normal"); | ||
| mark.shapeRendering = string(shapeRendering); |
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.
| mark.shapeRendering = string(shapeRendering); | |
| mark.shapeRendering = impliedString(shapeRendering, "auto"); |
This PR adds the shape-rendering attribute to the list of mark styles.