question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lines not using crispEdges show up fuzzy on non-retina screens

See original GitHub issue

I’m using a windows machine to develop and I noticed that the lines in vx were fuzzy. I found this explanation, which seems to be correct.

Expand images to see sharpness of bottom axis:

Current

current

With shape-rendering="crispEdges" on line or parent g

crisp-edges

Would you be open to adding shape-rendering="crispEdges" for lines? The only downside to using crispEdges is that it produces sharp edges even for rounded objects. The Line and Axis components currently don’t make rounded shapes, so I think adding it to those will be safe at least.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jbanulsocommented, Oct 22, 2020

Hi @hshoff, that will do it, thank you for the quick answer. And thank you for the great work with this library, it’s great to see the progress over the last years 🚀

1reaction
hshoffcommented, Oct 22, 2020

Hi @jbanulso, for now the work around would be to set shape-rendering: auto; on the line. This resets shape-rendering to the default value by overriding the previous value.

<Line
  from={{ x: x1, y: y1 }}
  to={{ x: x2, y: y2 }}
+ shapeRendering="auto"
/>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Blurry text with non retina displays - Apple Support Communities
I need an external monitor since the 15inch MBP is too small for my current needs but the jagged and blurry mess that...
Read more >
Displaying older images on web for Retina/high pixel density ...
Looking at my old website on any browser the images appear blurry and dull. But the same images display normally and as expected...
Read more >
CSS transition effect makes image blurry / moves image 1px ...
I'm on Chrome 27 on OSX, and it's fine. · Everything fine on Chrome 25 OS X. · And thanks @Paolo - the...
Read more >
Dealing with blurry lines - Google Groups
Because SVG is not guaranteed to align with pixels things get blurry unless I add .5 to every ... (This makes a huge...
Read more >
We're in an icon-sharpness limbo - simurai
They are still a tiny bit blurry on “non Retina” displays (which are still ... but not on straight lines, there it just...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found