Drawing with SVG.js Usage Double click to start drawing. Press enter stop drawing. Press z to close the line with the first point. Press ctrl + c cancel last point or drawing. Press i to print the i keyboard event and current polylines to console.log. Demo with existing svg bare