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)
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.
We use cookies to offer you a better experience. Detailed information on the use of cookies on this website is provided in our Privacy Policy. By using this site, you consent to the use of our cookies.