New answers tagged

0

Set the screen width and height to 100% as given below: <html> <svg height="100%" width="100%" viewBox="0 0 1550 1200" preserveAspectRatio="none"> <!---Your code here--> </svg> </html>


0

Save as optimized SVG. In particular, in Illustrator, don't use "Save as", use File > Export > Export for Screens .... Then select SVG as format .


-1

var circle = doc.getElementsByTagName('circle'); var convertSvgCircleToPath = function(cx, cy, r, deg) { var theta = deg * Math.PI / 180, dx = r * Math.cos(theta), dy = -r * Math.sin(theta); return "M " + cx + " " + cy + "m " + dx + "," + dy + "a " + r + "," + r + " 0 1,0 " + -2 * dx + "," + -2 * dy + "a " + r + "," + r + " 0 1,0 "...


Top 50 recent answers are included