leomcelroy / svg-pcb

Design PCBs in the Browser
https://www.leomcelroy.com/svg-pcb-website
GNU General Public License v3.0
64 stars 9 forks source link

Add snapToPad feature with checkbox #8

Closed kr15h closed 1 year ago

kr15h commented 1 year ago

Figured out a way to add snap to pad in path manipulation and dragging modes, based on snap to grid.

leomcelroy commented 1 year ago

Nice! I was thinking of doing this where automatically adds the pad reference but this is a good first step.

kr15h commented 1 year ago

Yes, teh idea is to move the loops into the snapToGrid.js module also. I forgot about the pad reference, will try to add it next. I wonder if that should be a setting.