Skip to content
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 vector-effect attribute #238

Closed
paulathevalley opened this issue Apr 8, 2016 · 1 comment
Closed

Add vector-effect attribute #238

paulathevalley opened this issue Apr 8, 2016 · 1 comment
Assignees

Comments

@paulathevalley
Copy link
Contributor

Ideally the grid stroke widths will stay fixed for responsive SVGs. There is support for retaining the stroke width using vector-effect="non-scaling-stroke", see: https://www.w3.org/TR/SVGTiny12/painting.html#NonScalingStroke

The vector-effect SVG attribute isn’t supported until React v15, whomp whomp.

Here’s a demo of a responsive chart with a non-scaling-stroke (text scaling looks OK as it grows, but as it shrinks there's a point when it's unreadable).

@boygirl
Copy link
Contributor

boygirl commented May 24, 2016

@stefvhuynh if you have time you can drop this in along with your React 15 update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants