You need to use EasyEDA editor to create some projects before publishing
Api set Restore Point / Undo
568 0
Wolf Van Herreweghe 4 years ago
Hello, I'd like to request an api command to set a point in time to revert back to after running code. for example: ``` api("createRestorePoint"); var result = api("getSource", { type: "json" }); for (var i; i < result.FOOTPRINT.length - 1; i++) {   var object = result.FOOTPRINT[i];   if (object.head.c_para == "Diode") {     api("moveObjsTo", {       objs: [{ gId: object.gId }],       x: i * 15,       y: 0,     });   } } ``` Then the user can Undo the changes done by the code. Wolf
Comments
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