cheshire137 / svg-scribbler

A simple ReactJS app that allows you to create SVGs.
MIT License
8 stars 1 forks source link

Add eraser #3

Open cheshire137 opened 9 years ago

cheshire137 commented 9 years ago
  1. Buttons to switch between eraser and brush
  2. When eraser selected, show a big cursor
  3. On click/touch, calculate bounds of the cursor that was shown to the user. Any points in any lines in those bounds, delete. Might need to break apart the line into two lines, otherwise the points would just seem to reconnect.