leomcelroy / svg-pcb

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

Remove mm_per_unit (define mm or in instead) #32

Open kr15h opened 1 year ago

kr15h commented 1 year ago

Hi, how about removing the mm_per_unit in examples and have a unit setter, such as 'unit = "mm"'; I would love the possibility to be able to work in millimeters.

kr15h commented 1 year ago

It also does not look like 'mm_per_unit' is used anywhere. The 25.4 constant is hardcoded always and the value in global_state never gets used anyways.