I bet you could just take one afternoon to write a vite plugin
I did enjoy the example code, compared to the native javascript (both shown in the article):
var draw = SVG().addTo('#drawing')
, rect = draw.rect(100, 100).fill('#f06')const div = document.getElementById('drawing');
div.innerHTML = `<svg width="100%" height="100%"><rect width="100" height="100" fill="#f06"/></svg>`;
obviously if the what is going in can have user input in some way then open to attack using innerHTML but otherwise it seems like the structure of the example native JavaScript is made in such a way as to make the SVG.js version seem super cool in comparison.
I had a similar question- why is it obviously not as fast as vanilla js?
emil-lp•2mo ago
WillAdams•2mo ago
https://coderivers.org/blog/python-svg/
monkmartinez•2mo ago
I know of svg.py (https://github.com/orsinium-labs/svg.py) and drawsvg (https://github.com/cduck/drawsvg)... I have played with both a bit, no idea how they compare to others.
beagle3•2mo ago
A great SVG kit for Brython (browser Python)