You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an offline angular electron desktop app and I'm trying to connect your nesting tool to it but I can't seem to get it working.
Note:
The project must be working while not connected to the internet
We tried to import all the javascript files into our angular project and change the syntax a bit so it would work with angular. I.E adding export, import, and require to add all the modules and files. This worked for the main svgnest.js but failed when going deeper into the functions of the util modules. More specifically the parallel.js, workers, and eval.js files are giving me trouble and parallel would fail when I attempt to use the .require function. It would either error out saying it cant find a specific path "localhost:4200/[path to module]" or say it cannot use importScript for the specific path.
"Uncaught SyntaxError: Failed to execute 'importScripts' on 'WorkerGlobalScope': The URL 'matrix.js' is invalid."
or
"GET http://localhost:4200/util/eval.js 404 (Not Found)"
I'm also confused as to how the util files determine whether or not it is using nodeJS. I've noticed a isNode var a few times in the utils that would be false when I am using node so I don't know if I'm integrating properly.
Do you happen to know how to fix these errors or issues?
The text was updated successfully, but these errors were encountered:
i believe it will try to send the files to a server for conversion. does to act any different when connected to internet? You might try one of the software forks on github
I have an offline angular electron desktop app and I'm trying to connect your nesting tool to it but I can't seem to get it working.
Note:
We tried to import all the javascript files into our angular project and change the syntax a bit so it would work with angular. I.E adding export, import, and require to add all the modules and files. This worked for the main svgnest.js but failed when going deeper into the functions of the util modules. More specifically the parallel.js, workers, and eval.js files are giving me trouble and parallel would fail when I attempt to use the .require function. It would either error out saying it cant find a specific path "localhost:4200/[path to module]" or say it cannot use importScript for the specific path.
"Uncaught SyntaxError: Failed to execute 'importScripts' on 'WorkerGlobalScope': The URL 'matrix.js' is invalid."
or
"GET http://localhost:4200/util/eval.js 404 (Not Found)"
I'm also confused as to how the util files determine whether or not it is using nodeJS. I've noticed a isNode var a few times in the utils that would be false when I am using node so I don't know if I'm integrating properly.
Do you happen to know how to fix these errors or issues?
The text was updated successfully, but these errors were encountered: