From b1bbaac31159886626d408089d2d6f229dd33bb3 Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Fri, 6 Sep 2024 16:02:54 +0000 Subject: [PATCH] trimming the fat..going for a xrsh-driven way to include files --- com/html-as-texture-in-xr.js | 7 +++--- com/isoterminal.js | 40 +++++++++++++++++++++---------- com/isoterminal/core.js | 24 +++++++------------ com/isoterminal/feat/boot.js | 2 +- com/isoterminal/feat/jsconsole.js | 11 +++++++++ com/isoterminal/feat/xterm.js | 2 ++ com/isoterminal/mnt/js | 7 +++--- com/isoterminal/mnt/profile | 24 ++++++++++++------- com/isoterminal/mnt/profile.sh | 17 +++++++++++-- 9 files changed, 87 insertions(+), 47 deletions(-) diff --git a/com/html-as-texture-in-xr.js b/com/html-as-texture-in-xr.js index 990f2ef..f440f38 100644 --- a/com/html-as-texture-in-xr.js +++ b/com/html-as-texture-in-xr.js @@ -7,11 +7,13 @@ if( !AFRAME.components['html-as-textre-in-xr'] ){ dependencies:{ html: "https://unpkg.com/aframe-htmlmesh@2.1.0/build/aframe-html.js", // html to AFRAME + //html: "https://coderofsalvation.github.io/aframe-htmlmesh/build/aframe-html.js" + //html: "com/aframe-html.js" }, init: async function () { let s = await AFRAME.utils.require(this.dependencies) - this.el.setAttribute("html",`html: ${this.data.domid}; cursor:#cursor`) + this.el.setAttribute("html",`html: ${this.data.domid}; cursor:#cursor; xrlayer: true`) this.el.setAttribute("visible", AFRAME.utils.XD() == '3D' ? 'true' : 'false' ) this.el.setAttribute("position", AFRAME.utils.XD.getPositionInFrontOfCamera(0.5) ) }, @@ -94,9 +96,6 @@ if( !AFRAME.components['html-as-textre-in-xr'] ){ this.sceneEl.addEventListener('2D', () => this.showElements(false) ) this.sceneEl.addEventListener('3D', () => this.showElements(true) ) - // toggle immersive with ESCAPE - //document.body.addEventListener('keydown', (e) => e.key == 'Escape' && this.toggle() ) - document.head.innerHTML += `