use d3.js to draw and edit a polyline
Javascript project for drawing and editing Svg polylines
Clone or download the repository and run the files locally through a local web server (e.g. Live Server for VS code)
Start drawing a polyline by clicking on the canvas.
Finish the polyline by:
Select active polyline:
Deselect active polyline:
Move -> mode to drag whole polyline within the canvas
Show grid -> toggle the grid visibility on and off
Resolution -> set the grid resolution in pixels
Undo / Ctrl+Z -> Step backward
Redo / CTRL+Y -> Step forward
Delete path -> delete active polyline
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.