From ea8046b1d23679f6d7e79ec3c62f59d4fcbb19e1 Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Thu, 22 Jun 2023 13:59:51 +0200 Subject: [PATCH] cleanup --- dist/xrfragment.aframe.js | 2 -- dist/xrfragment.three.js | 2 -- dist/xrfragment.three.module.js | 2 -- src/3rd/js/three/xrf/predefinedView.js | 2 -- 4 files changed, 8 deletions(-) diff --git a/dist/xrfragment.aframe.js b/dist/xrfragment.aframe.js index a4734ae..b3ad8a7 100644 --- a/dist/xrfragment.aframe.js +++ b/dist/xrfragment.aframe.js @@ -1181,7 +1181,6 @@ const updatePredefinedView = (opts) => { if( mesh.visible && (id == mesh.name || id.substr(1) == mesh.userData.class) ){ xrf.emit('selection',{...opts,frag}) .then( () => { - console.log("selection event") const margin = 1.2 mesh.scale.multiplyScalar( margin ) mesh.selection = new xrf.THREE.BoxHelper(mesh,0xff00ff) @@ -1229,7 +1228,6 @@ const updatePredefinedView = (opts) => { if( v.args ) v = v.args[ xrf.roundrobin(v,xrf.model) ] // wait for nested instances to arrive at the scene setTimeout( () => traverseScene(v,scene), 100 ) - console.dir(v) if( v.string ) pviews.push(v.string) }else if( v.is( xrf.XRF.NAVIGATOR ) ) pviews.push(`${i}=${v.string}`) } diff --git a/dist/xrfragment.three.js b/dist/xrfragment.three.js index 821f768..f88182d 100644 --- a/dist/xrfragment.three.js +++ b/dist/xrfragment.three.js @@ -1181,7 +1181,6 @@ const updatePredefinedView = (opts) => { if( mesh.visible && (id == mesh.name || id.substr(1) == mesh.userData.class) ){ xrf.emit('selection',{...opts,frag}) .then( () => { - console.log("selection event") const margin = 1.2 mesh.scale.multiplyScalar( margin ) mesh.selection = new xrf.THREE.BoxHelper(mesh,0xff00ff) @@ -1229,7 +1228,6 @@ const updatePredefinedView = (opts) => { if( v.args ) v = v.args[ xrf.roundrobin(v,xrf.model) ] // wait for nested instances to arrive at the scene setTimeout( () => traverseScene(v,scene), 100 ) - console.dir(v) if( v.string ) pviews.push(v.string) }else if( v.is( xrf.XRF.NAVIGATOR ) ) pviews.push(`${i}=${v.string}`) } diff --git a/dist/xrfragment.three.module.js b/dist/xrfragment.three.module.js index 4100388..def1810 100644 --- a/dist/xrfragment.three.module.js +++ b/dist/xrfragment.three.module.js @@ -1181,7 +1181,6 @@ const updatePredefinedView = (opts) => { if( mesh.visible && (id == mesh.name || id.substr(1) == mesh.userData.class) ){ xrf.emit('selection',{...opts,frag}) .then( () => { - console.log("selection event") const margin = 1.2 mesh.scale.multiplyScalar( margin ) mesh.selection = new xrf.THREE.BoxHelper(mesh,0xff00ff) @@ -1229,7 +1228,6 @@ const updatePredefinedView = (opts) => { if( v.args ) v = v.args[ xrf.roundrobin(v,xrf.model) ] // wait for nested instances to arrive at the scene setTimeout( () => traverseScene(v,scene), 100 ) - console.dir(v) if( v.string ) pviews.push(v.string) }else if( v.is( xrf.XRF.NAVIGATOR ) ) pviews.push(`${i}=${v.string}`) } diff --git a/src/3rd/js/three/xrf/predefinedView.js b/src/3rd/js/three/xrf/predefinedView.js index bc033f2..8ec50b4 100644 --- a/src/3rd/js/three/xrf/predefinedView.js +++ b/src/3rd/js/three/xrf/predefinedView.js @@ -10,7 +10,6 @@ const updatePredefinedView = (opts) => { if( mesh.visible && (id == mesh.name || id.substr(1) == mesh.userData.class) ){ xrf.emit('selection',{...opts,frag}) .then( () => { - console.log("selection event") const margin = 1.2 mesh.scale.multiplyScalar( margin ) mesh.selection = new xrf.THREE.BoxHelper(mesh,0xff00ff) @@ -58,7 +57,6 @@ const updatePredefinedView = (opts) => { if( v.args ) v = v.args[ xrf.roundrobin(v,xrf.model) ] // wait for nested instances to arrive at the scene setTimeout( () => traverseScene(v,scene), 100 ) - console.dir(v) if( v.string ) pviews.push(v.string) }else if( v.is( xrf.XRF.NAVIGATOR ) ) pviews.push(`${i}=${v.string}`) }