Hey,
I just found out that `pathToPolygons` is available via the API and I'd like to use it for [https://github.com/xsrf/easyeda-svg-import/issues/9](https://github.com/xsrf/easyeda-svg-import/issues/9)
```
api('editorCall', { cmd: 'pathToPolygons', args: ['M 0 0 C 1 1 2 1 3 0']})
```
However, it returns the first and last coordinate as Array of two strings, while the rest are Objects with x/y coordinates. I came across this earlier but didn't know what caused it.
Is there a reason for this? Is it a bug? It obviously works, but...
I can use `pointArr.map( p => (p.x == null) ? { x: p[0] , y: p[1]} : p )` to correct it but I'd like to know why I have to do this or if I may run into issues when I correct the first coordinate to x/y... It worked for me so far.
![2021-01-08 12_18_45-EasyEDA(Standard) - A Simple and Powerful Electronic Circuit Design Tool.png](//image.easyeda.com/pullimage/09euhAMGFqmzmFmCx1b0cVdBbF9QcLTD1HSIjNYB.png)
Edit: Moved Topic to "Bug reports" because I think that's not the expected behavior. Someone may still correct me ;)
Chrome
87.0.4280.88
Windows
10
EasyEDA
6.4.12