Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pub
mods
Commits
b7316f55
Commit
b7316f55
authored
Jan 26, 2020
by
Neil Gershenfeld
Browse files
show progress
parent
401a9af9
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/processes/mill/raster/3D
View file @
b7316f55
...
...
@@ -219,6 +219,10 @@ function calculate_path() {
var url = window.URL.createObjectURL(blob)
var webworker = new Worker(url)
webworker.addEventListener('message',function(evt) {
if (evt.data.type == "progress") {
mod.label.nodeValue = evt.data.value
return
}
//
// webworker handler
//
...
...
@@ -389,11 +393,15 @@ function calculate_path_worker() {
dy = 0
}
}
//
// update progress
//
self.postMessage({type:'progress',value:ycur})
}
//
// return
//
self.postMessage({path:path})
self.postMessage({
type:'path',
path:path})
self.close()
})
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment