Questions tagged [svg]

SVG (Scalable Vector Graphics), is an XML-based two-dimensional vector graphics format.

Filter by
Sorted by
Tagged with
1
vote
0answers
328 views

Canvas-like drawing interface for SVG?

There's lots of stuff out there comparing the HTML elements SVG and Canvas, but I'm still a little confused. I'm looking for a way to draw an arbitrary shape (like, I have a description of a shape, ...
4
votes
1answer
677 views

Visitor pattern. Operating on the nodes of a tree

I am working with jQuery like elements from the cheerio library to manipulate SVG images. These objects represent XML nodes and have a hierarchical internal structure. I am writing a function (in ...
0
votes
1answer
465 views

How should I prepare my SVG for production? [closed]

I have a project in Angular1.x using a lot of SVG files. I have no idea what to do to SVG files to prepare them for production. I don't want my page to invoke 50 calls to different SVG files. So ...
63
votes
5answers
8k views

Why are large amounts of magic numbers acceptable in CSS and SVGs?

Often times I see questions on the Hot Network Questions list like this that basically ask "how do I draw this arbitrary shape in CSS". Invariably the answer is a couple of blocks of CSS or SVG data ...
0
votes
2answers
2k views

HTML 5 Double-Helix/DNA

What would be the most cross browser friendly (IE9, Chrome, FF, Safari, Opera) way to code an animated, interactive double-helix? HTML 5/JavaScript is fine. Flash or Java is not. I am unsure if ...