You need to use EasyEDA editor to create some projects before publishing
API: createShape is missing shapeType SVGNODE
485 1
andreasbernhofer 3 years 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 3 years 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 -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus- -mockplus-@1x -mockplus-

Cookie Notice

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