Our svg export code was intended by its programmer to run in the background. It is not doing so right now. All it might have done was create a promise via the async function keyword, which I removed, and which was equivalent to setImmediate. In chat it was discussed that it the success dialog was also intended to be shown before the processing began.
Our svg export code was intended by its programmer to run in the background. It is not doing so right now. All it might have done was create a promise via the async function keyword, which I removed, and which was equivalent to
setImmediate
. In chat it was discussed that it the success dialog was also intended to be shown before the processing began.It is not possible to make it run in the background using async, which only makes it run later. We need to use a web worker if we want to do that. The relevant code is at https://github.com/SEG491X-W2023-T42/mikado-machine/blob/f7a1724de8a80c766a9bef0912c7a63b3258b377/mikado-app/src/viewmodel/displayLayerStore.js#L406-L431