Re:SVG Triangle of Compromise
by mrled on Monday July 29, 2024 @12:10PM
(#41101504)
Oh man, you're right, I didn't realize they worked this way. This basically means there is no compromise at all, I'm going to update the post. Thanks!
[ Parent
| on HN ]
Re:SVG Triangle of Compromise
by panstromek on Monday July 29, 2024 @12:56PM
(#41101846)
Well, there's still a compromise to be fair. It's defintely more work to manage these sprites and it's especially annoying when there's more than one state. I think it's possible to write some tool to automate it, but I haven't found one.
Re:SVG Triangle of Compromise
by douglee650 on Monday July 29, 2024 @03:23PM
(#41102980)
There are preprocessors that will do this. Conceptually, we would:
include sprite-1.snippet
include sprite-2.snippet
and it would write the defs into the page. Then later in the page, `<use>` the defs you included.