Skip to content
Snippets Groups Projects
Commit 6af5e4eb authored by Xiao Gui's avatar Xiao Gui
Browse files

chore: updated directory structure

parent 242ef8b6
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ module.exports = merge(staticAssets, {
module: {
rules: [
{
test : /third_party.*?\.js$|worker\.js/,
test : /third_party.*?\.js$|worker\.js|worker-\w+\.js/,
use : {
loader : 'file-loader',
options: {
......
......@@ -11,6 +11,7 @@ module.exports = {
},
{
test : /third_party|.*?worker.*?\.js$/,
exclude: /[Ss]pec\.js$/,
use : {
loader : 'file-loader',
options: {
......
......@@ -22,7 +22,7 @@ module.exports = merge(staticAssets, {
module: {
rules: [
{
test : /third_party.*?\.js$|worker\.js/,
test : /third_party.*?\.js$|worker\.js|worker-\w+\.js/,
use : {
loader : 'file-loader',
options: {
......
self.importScripts('./worker-second.js')
const validTypes = [
'GET_LANDMARKS_VTK',
'GET_USERLANDMARKS_VTK',
......@@ -462,6 +464,14 @@ const getPerpendicularPointsForLine = (A, B, scale) => {
let plotyVtkUrl
onmessage = (message) => {
if (message.data.method === 'ping') {
return postMessage({
id: message.data.id,
result: `pong ${self.meaningOfLife}`
})
}
if (message.data.method && VALID_METHODS.indexOf(message.data.method) >= 0) {
const { id } = message.data
if (message.data.method === VALID_METHOD.PROCESS_PLOTLY) {
......
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