Commit b7316f55 authored by Neil Gershenfeld's avatar Neil Gershenfeld
Browse files

show progress

parent 401a9af9
......@@ -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()
})
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment