From a13972888686fb69922ebac0776a78cc289edd71 Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Mon, 18 Mar 2024 17:14:16 +0000 Subject: [PATCH] work in progress [might break] --- example/aframe/sandbox/index.html | 11 ++++--- make | 7 ++++- src/3rd/js/aframe/pressable.js | 2 ++ src/3rd/js/plugin/frontend/$editor.js | 41 +++++++++++++++++++++------ src/3rd/js/plugin/frontend/.js | 40 -------------------------- src/3rd/js/three/xrf/href.js | 3 ++ 6 files changed, 51 insertions(+), 53 deletions(-) delete mode 100644 src/3rd/js/plugin/frontend/.js diff --git a/example/aframe/sandbox/index.html b/example/aframe/sandbox/index.html index b3fb796..a80491d 100644 --- a/example/aframe/sandbox/index.html +++ b/example/aframe/sandbox/index.html @@ -73,10 +73,13 @@ - - - - + + + + + + + diff --git a/make b/make index aa5aea1..8d991dd 100755 --- a/make +++ b/make @@ -101,7 +101,12 @@ build(){ example/assets/js/qr.js > dist/xrfragment.aframe.js # plugins - jscat src/3rd/js/plugin/frontend/*.js > dist/xrfragment.plugin.frontend.js + jscat src/3rd/js/plugin/frontend/{network,\$connections,\$chat}.js > dist/xrfragment.plugin.network.js + cp src/3rd/js/plugin/frontend/\$editor.js dist/xrfragment.plugin.editor.js + + cp src/3rd/js/plugin/frontend/css.js dist/xrfragment.plugin.frontend.css.js + jscat src/3rd/js/plugin/frontend/{snackbar,accessibility,\$menu,frontend}.js > dist/xrfragment.plugin.frontend.js + jscat src/3rd/js/plugin/matrix/{matrix-crdt,matrix}.js > dist/xrfragment.plugin.matrix.js jscat src/3rd/js/plugin/p2p/{trystero-torrent.min,trystero}.js > dist/xrfragment.plugin.p2p.js diff --git a/src/3rd/js/aframe/pressable.js b/src/3rd/js/aframe/pressable.js index 85d8675..c5096dc 100644 --- a/src/3rd/js/aframe/pressable.js +++ b/src/3rd/js/aframe/pressable.js @@ -30,6 +30,8 @@ AFRAME.registerComponent('pressable', { } }, detectPress: function(){ + if( !AFRAME.scenes[0].renderer.xr.isPresenting ) return + var handEls = this.handEls; var handEl; let minDistance = 5 diff --git a/src/3rd/js/plugin/frontend/$editor.js b/src/3rd/js/plugin/frontend/$editor.js index 9dcda1f..34fc2dc 100644 --- a/src/3rd/js/plugin/frontend/$editor.js +++ b/src/3rd/js/plugin/frontend/$editor.js @@ -10,7 +10,7 @@ $editorPopup = (el) => new Proxy({ href - @@ -19,7 +19,7 @@ $editorPopup = (el) => new Proxy({ src - @@ -36,10 +36,17 @@ $editorPopup = (el) => new Proxy({ + + + +

+ NOTE: updates to src-values will require reloading the scene