From 6d440abd9c94fee331b631d79fe31306c0fc8a32 Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Fri, 13 Oct 2023 11:45:17 +0200 Subject: [PATCH] update documentation --- dist/xrfragment.aframe.js | 3 +- dist/xrfragment.three.js | 3 +- dist/xrfragment.three.module.js | 3 +- example/aframe/sandbox/index.html | 7 +- example/assets/css/style.css | 17 + example/assets/js/qr.js | 796 +++++++++++++++++++++++++++++ example/assets/js/utils.js | 21 +- example/threejs/sandbox/index.html | 6 +- src/3rd/js/index.js | 2 +- src/3rd/js/three/xrf/href.js | 1 - 10 files changed, 843 insertions(+), 16 deletions(-) create mode 100644 example/assets/js/qr.js diff --git a/dist/xrfragment.aframe.js b/dist/xrfragment.aframe.js index 4ab9953..8f93ca7 100644 --- a/dist/xrfragment.aframe.js +++ b/dist/xrfragment.aframe.js @@ -601,7 +601,7 @@ xrf.init = function(opts){ xrf.Parser.debug = xrf.debug for ( let i in opts ) xrf[i] = opts[i] xrf.emit('init',opts) - return xrf.query + return xrf } xrf.query = function(){ @@ -1422,7 +1422,6 @@ xrf.frag.href = function(v, opts){ let isLocal = v.string[0] == '#' let lastPos = `pos=${camera.position.x.toFixed(2)},${camera.position.y.toFixed(2)},${camera.position.z.toFixed(2)}` - console.dir(lastPos) xrf .emit('href',{click:true,mesh,xrf:v}) // let all listeners agree diff --git a/dist/xrfragment.three.js b/dist/xrfragment.three.js index c09a9b9..5ba8af5 100644 --- a/dist/xrfragment.three.js +++ b/dist/xrfragment.three.js @@ -601,7 +601,7 @@ xrf.init = function(opts){ xrf.Parser.debug = xrf.debug for ( let i in opts ) xrf[i] = opts[i] xrf.emit('init',opts) - return xrf.query + return xrf } xrf.query = function(){ @@ -1422,7 +1422,6 @@ xrf.frag.href = function(v, opts){ let isLocal = v.string[0] == '#' let lastPos = `pos=${camera.position.x.toFixed(2)},${camera.position.y.toFixed(2)},${camera.position.z.toFixed(2)}` - console.dir(lastPos) xrf .emit('href',{click:true,mesh,xrf:v}) // let all listeners agree diff --git a/dist/xrfragment.three.module.js b/dist/xrfragment.three.module.js index 08081fd..373b9b9 100644 --- a/dist/xrfragment.three.module.js +++ b/dist/xrfragment.three.module.js @@ -601,7 +601,7 @@ xrf.init = function(opts){ xrf.Parser.debug = xrf.debug for ( let i in opts ) xrf[i] = opts[i] xrf.emit('init',opts) - return xrf.query + return xrf } xrf.query = function(){ @@ -1422,7 +1422,6 @@ xrf.frag.href = function(v, opts){ let isLocal = v.string[0] == '#' let lastPos = `pos=${camera.position.x.toFixed(2)},${camera.position.y.toFixed(2)},${camera.position.z.toFixed(2)}` - console.dir(lastPos) xrf .emit('href',{click:true,mesh,xrf:v}) // let all listeners agree diff --git a/example/aframe/sandbox/index.html b/example/aframe/sandbox/index.html index 8465243..f9aa17f 100644 --- a/example/aframe/sandbox/index.html +++ b/example/aframe/sandbox/index.html @@ -10,6 +10,7 @@ +