Add worker to public directory
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"comment": "Rather crude approach to move ts definitions into the public folder so the browser can grab them later in CascadeMain.js",
|
"comment": "Rather crude approach to move ts definitions into the public folder so the browser can grab them later in CascadeMain.js",
|
||||||
"move-ts-defs": "cp ./node_modules/opencascade.js/dist/opencascade.d.ts ./web/public && cp ./node_modules/three/src/Three.d.ts ./web/public && cp ./web/src/cascade/js/StandardLibraryIntellisense.ts ./web/public"
|
"move-ts-defs": "cp ./node_modules/opencascade.js/dist/opencascade.d.ts ./web/public && cp ./node_modules/three/src/Three.d.ts ./web/public && cp ./web/src/cascade/js/StandardLibraryIntellisense.ts ./web/public && cp ./web/src/cascade/js/CADWorker/CascadeStudioMainWorker.js ./web/public"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@redwoodjs/core": "^0.19.2"
|
"@redwoodjs/core": "^0.19.2"
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
// Begins loading the CAD Kernel Web Worker
|
// Begins loading the CAD Kernel Web Worker
|
||||||
if (window.Worker) {
|
if (window.Worker) {
|
||||||
cascadeStudioWorker = new Worker('/src/cascade/js/CADWorker/CascadeStudioMainWorker.js');
|
cascadeStudioWorker = new Worker('/CascadeStudioMainWorker.js');
|
||||||
// Ping Pong Messages Back and Forth based on their registration in messageHandlers
|
// Ping Pong Messages Back and Forth based on their registration in messageHandlers
|
||||||
// var messageHandlers = {};
|
// var messageHandlers = {};
|
||||||
cascadeStudioWorker.onmessage = function (e) {
|
cascadeStudioWorker.onmessage = function (e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user