Why do you need to convert pixels to mm?
Physical dimensions are meaningless in schematics and you can set the grid on the PCB and Footprint Editors to mm in the right hand Canvas settings panel.
If you're talking abou canvas (SVG) units: You can use the API to convert canvas pixel units to real units:
`api('valConvert', {type:'real2canvas',val:'20mil'})`
`api('valConvert', {type:'canvas2real',val:'5mm'})`
1 pixel is 10mil or 0.254mm
1mm is 3.937px (1/0.254px)
Our website uses essential cookies to help us ensure that it is working as expected, and uses optional analytics cookies to offer you a better browsing experience. To find out more, read our Cookie Notice