mattshepcar / easyeda-round-tracks Goto Github PK
View Code? Open in Web Editor NEWCurved tracks and teardrops for EasyEDA
License: MIT License
Curved tracks and teardrops for EasyEDA
License: MIT License
Thanks for this great extension. I really love the old-school look of curved tracks (guess which era of circuit boards I grew up in ;) )
I like the way it creates a copy of the PCB so you can re-edit the original straight-line version, but would it be possible to modify the script so that we have an option to smooth just selected tracks?
Hi Matt
Thank you so much for creating this extension. I've used it on several projects with no issues. However on my latest project it fails with the following message. Any chance you could have a look? Happy to share the PCB file with you if you need it.
VM65:8 Uncaught TypeError: Cannot read properties of undefined (reading 'x')
at dot (eval at (main.min.js:1), :8:15)
at isParallel (eval at (main.min.js:1), :113:21)
at cleanupColinearTrackPair (eval at (main.min.js:1), :125:10)
at Board.cleanupColinearTracks (eval at (main.min.js:1), :46:29)
at new Board (eval at (main.min.js:1), :33:14)
at eval (eval at (main.min.js:1), :41:13)
at Object.doCommand (main.min.js:20)
at Object.Ws.easyeda.extension.doCommand (main.min.js:19)
at HTMLDivElement.Cn (main.min.js:6)
at HTMLDivElement. (main.min.js:61)
On the new pcb layout, the round track usually create several track that violate design rule like curve toward pad, vias or other tracks.
Hey Matt,
I know this extension is a lower priority for you now that you're using EE Pro, but do you know of a way to solve this issue?
If a schematic is changed, tracks nets are updated with Import Changes, but the nets of the associated smooth-tracks are incorrect.
I tried using another extension (SmartReconnectTracks), which works for many of these situations, but unfortunately no dice here.
Or even a way to remove all of the areas created by this extension?
All the best,
Dax.
https://github.com/mattshepcar/easyeda-round-tracks/blob/main/extension/board.js#L92
The track layers are limited to 1 or 2 (top and bottom). For a 4-layer board, the intermediate layers will not be rounded.
I've noticed that there can be 'overshoot' when smoothing 2 tracks of different widths. For example make a vertical track that is 3mm wide, then add a horizontal track of 1.5mm that is connected to the first. (right-angle)
You'll see that there will be 3mm thick curves which overshoot the expected boundaries.
Happy to provide more information/help with beta testing if you would like.
All the best,
Dax.
I click the Smooth Tracks item under the Smooth Tracks menu but nothing happens. I understand a new file should be created.
The smooth tracks operation cannot be performed after EasyEDA's recent update, attached is the log. I have tested on Google Chrome and Microsoft Edge and can confirm it is not a browser-specific issue. It seems that EasyEDA has changed its API.
IMO EasyEDA should consider adding this as a built-in feature.
VM556:28 Loading board
VM556:32 Cleaning up overlapping tracks
VM555:172 Uncaught ReferenceError: copy is not defined
at cleanupColinearTrackPair (eval at <anonymous> (main.min.js:20:13167), <anonymous>:172:17)
at Board.cleanupColinearTracks (eval at <anonymous> (main.min.js:20:13167), <anonymous>:46:29)
at new Board (eval at <anonymous> (main.min.js:20:13167), <anonymous>:33:14)
at eval (eval at <anonymous> (main.min.js:20:13167), <anonymous>:41:13)
at Object.doCommand (main.min.js:21:1880)
at easyeda.extension.doCommand (main.min.js:20:16111)
at HTMLDivElement.Cn (main.min.js:6:19874)
at HTMLDivElement.<anonymous> (main.min.js:88:28832)
at HTMLDocument.dispatch (main.assets.min.js:3:11580)
at HTMLDocument.s (main.assets.min.js:3:7469)
cleanupColinearTrackPair @ VM555:172
cleanupColinearTracks @ VM556:46
Board @ VM556:33
eval @ VM560:41
doCommand @ main.min.js:21
easyeda.extension.doCommand @ main.min.js:20
Cn @ main.min.js:6
(anonymous) @ main.min.js:88
dispatch @ main.assets.min.js:3
s @ main.assets.min.js:3
VM104:28 Loading board
VM104:32 Cleaning up overlapping tracks
VM103:8 Uncaught TypeError: Cannot read property 'x' of undefined
at dot (eval at (main.min.js:19), :8:15)
at isParallel (eval at (main.min.js:19), :113:21)
at cleanupColinearTrackPair (eval at (main.min.js:19), :125:10)
at Board.cleanupColinearTracks (eval at (main.min.js:19), :46:29)
at new Board (eval at (main.min.js:19), :33:14)
at eval (eval at (main.min.js:19), :41:13)
at Object.doCommand (main.min.js:20)
at Object.easyeda.extension.doCommand (main.min.js:20)
at HTMLDivElement.Cn (main.min.js:6)
It's not working now in lceda 6.5.22
Hi, Thanks for the great extension.
And, is it possible to add a function which convert rectangle pad to round corner rectangle pad?
batch conversion would be wonderful.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.