2 ms·
Some wild stuff about "defs" that I was unaware of in SVGs.
by JKCalhoun 1y ago
Some wild stuff about "defs" that I was unaware of in SVGs.
- seveibar 1y agoDefs saved the day here on file size- repeating the image (which we usually base64 encode) would have caused a much larger file size and made rasterization much more appealing!
- 90s_dev 1y agoDefs is also how the arrows work in this WebGL2 diagram[2], and in fact, I don't think they're possible without defs, because of `marker-end` which seems to require a marker present in defs. [2] https://webgl2fundamentals.org/webgl/lessons/resources/webgl-state-diagram.html https://webgl2fundamentals.org/webgl/lessons/resources/webgl...