Hey,
`api('valConvert', {type:'real2canvas',val:'20mil'})`
throws an error:
`Uncaught ReferenceError: getPCBUnit is not defined`<br>
<br>
Reference: [https://docs.easyeda.com/en/API/3-API-List/index.html#Value-Convert](https://docs.easyeda.com/en/API/3-API-List/index.html#Value-Convert)
Chrome
87.0.4280.88
Windows
10
EasyEDA
6.4.12