new(axis): add shapeRendering prop to Axis #1739
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
💥 Breaking Changes
None.
🚀 Enhancements
Additional flexibility when using
Axis
.📝 Documentation
shapeRendering
can now be configured forAxis
lines.🐛 Bug Fix
Not sure if this was introduced by #840. I haven't dug much into it. But I have noticed that on Windows, Firefox, when using the
Axis
with ascaleLinear
and dashed pattern, some vertical lines looked very thick while others very thin.After playing around in the HTML, I figured the culprit was the "smart"
shapeRendering
. So I want a way to disable it without resorting to ugly hacks.🏠 Internal
The
CommonProps
forvisx-types
have changed.