move gerber render to worker to free up UI thread
This commit is contained in:
parent
619468ee00
commit
edf7a53d4c
5 changed files with 45 additions and 10 deletions
|
|
@ -297,6 +297,17 @@ const client = exports({
|
|||
}, [ data.png ]);
|
||||
},
|
||||
|
||||
gerber2mesh(data, progress, output) {
|
||||
send('gerber2mesh', data, reply => {
|
||||
if (reply.progress) {
|
||||
progress(reply.progress);
|
||||
}
|
||||
if (reply.vertices) {
|
||||
output(reply.vertices);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
zip(files, progress, output) {
|
||||
send("zip", {files}, reply => {
|
||||
if (reply.percent !== undefined) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue