TSVG is a Turing-complete SVG preprocessor, using JSX and JavaScript. Much like LessJS is a superset of CSS with very useful abstractions and error- and time-saving features, TSVG is a superset of SVG ...
The main method is in erase.js. It will handle polylines for the drawings and a polyline with a radius for the eraser path. Clone to your computer, open the index.html file in your browser and drag ...