API: createShape is missing shapeType SVGNODE
91 1
andreasbernhofer 2 months ago
Hey, for [https://github.com/xsrf/easyeda-svg-import](https://github.com/xsrf/easyeda-svg-import) I'm currently using `getSource` / `applySource` to add shapes to the editor. I now wanted to use `createShape` instead. While this works fine for the import of `TRACK`, it doesn't work for `SVGNODE`. The code is actually missing the `SVGNODE` in the list of types. If I add it manually to `o`, it works. ![2021-01-24 20_25_48-EasyEDA(Standard) - A Simple and Powerful Electronic Circuit Design Tool.png](//image.easyeda.com/pullimage/r2tv9APplAgURspQm649AFHdflmGkeeZQSdlYG1J.png)
Comments
andreasbernhofer 2 months ago
I guess I can also use this for now... ``` js api('editorCall',{ cmd: 'importShape', args: [`<path d="${d}" layerid="${layerid}" stroke="none"></path>`] }); ```
Reply
Login or Register to add a comment
goToTop
你现在访问的是EasyEDA海外版,使用建立访问速度更快的国内版 https://lceda.cn(需要重新注册)
如果需要转移工程请在个人中心 - 工程 - 工程高级设置 - 下载工程,下载后在https://lceda.cn/editor 打开保存即可。
有问题联系QQ 3001956291 不再提醒
svg-battery svg-battery-wifi svg-books svg-more svg-paste svg-pencil svg-plant svg-ruler svg-share svg-user svg-logo-cn svg-double-arrow
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.