I've built a frontend tool for zooming in/out of an SVG canvas, but when I zoom, any 1px strokes increase in width (visually). Is there a svg setting that will ensure that 1px strokes remain 1px (visually) when zoomed? I remember reading about it somewhere, but can't find the resource.
Asked
Active
Viewed 1,312 times
5
-
i think the whole point is that it is Scalable vector graphics... so zooming is just like using a magnifying glass - ll things will get bigger proportionally. – Randy Oct 07 '11 at 12:04
-
You can add `vector-effect="non-scaling-stroke" ` attribute to the path? – Cipi Oct 07 '11 at 12:37