diff --git a/aframe/build/aframe-ar-location-only.js b/aframe/build/aframe-ar-location-only.js index 93c6991d..47107a13 100644 --- a/aframe/build/aframe-ar-location-only.js +++ b/aframe/build/aframe-ar-location-only.js @@ -792,15 +792,7 @@ AFRAME.registerComponent('gps-camera', { if (!!navigator.userAgent.match(/Version\/[\d.]+.*Safari/)) { // iOS 13+ if (typeof DeviceOrientationEvent.requestPermission === 'function') { - var handler = function () { - console.log('Requesting device orientation permissions...') - DeviceOrientationEvent.requestPermission(); - document.removeEventListener('touchend', handler); - }; - - document.addEventListener('touchend', function () { handler() }, false); - - alert('After camera permission prompt, please tap the screen to activate geolocation.'); + DeviceOrientationEvent.requestPermission(); } else { var timeout = setTimeout(function () { alert('Please enable device orientation in Settings > Safari > Motion & Orientation Access.') @@ -1361,15 +1353,7 @@ AFRAME.registerComponent('gps-projected-camera', { if (!!navigator.userAgent.match(/Version\/[\d.]+.*Safari/)) { // iOS 13+ if (typeof DeviceOrientationEvent.requestPermission === 'function') { - var handler = function() { - console.log('Requesting device orientation permissions...') - DeviceOrientationEvent.requestPermission(); - document.removeEventListener('touchend', handler); - }; - - document.addEventListener('touchend', function() { handler() }, false); - - alert('After camera permission prompt, please tap the screen to activate geolocation.'); + DeviceOrientationEvent.requestPermission(); } else { var timeout = setTimeout(function() { alert('Please enable device orientation in Settings > Safari > Motion & Orientation Access.') diff --git a/aframe/build/aframe-ar-nft.js b/aframe/build/aframe-ar-nft.js index c3c74220..cef871e2 100644 --- a/aframe/build/aframe-ar-nft.js +++ b/aframe/build/aframe-ar-nft.js @@ -4756,15 +4756,7 @@ AFRAME.registerComponent('gps-camera', { if (!!navigator.userAgent.match(/Version\/[\d.]+.*Safari/)) { // iOS 13+ if (typeof DeviceOrientationEvent.requestPermission === 'function') { - var handler = function () { - console.log('Requesting device orientation permissions...') - DeviceOrientationEvent.requestPermission(); - document.removeEventListener('touchend', handler); - }; - - document.addEventListener('touchend', function () { handler() }, false); - - alert('After camera permission prompt, please tap the screen to activate geolocation.'); + DeviceOrientationEvent.requestPermission(); } else { var timeout = setTimeout(function () { alert('Please enable device orientation in Settings > Safari > Motion & Orientation Access.') @@ -5325,15 +5317,7 @@ AFRAME.registerComponent('gps-projected-camera', { if (!!navigator.userAgent.match(/Version\/[\d.]+.*Safari/)) { // iOS 13+ if (typeof DeviceOrientationEvent.requestPermission === 'function') { - var handler = function() { - console.log('Requesting device orientation permissions...') - DeviceOrientationEvent.requestPermission(); - document.removeEventListener('touchend', handler); - }; - - document.addEventListener('touchend', function() { handler() }, false); - - alert('After camera permission prompt, please tap the screen to activate geolocation.'); + DeviceOrientationEvent.requestPermission(); } else { var timeout = setTimeout(function() { alert('Please enable device orientation in Settings > Safari > Motion & Orientation Access.') diff --git a/aframe/build/aframe-ar.js b/aframe/build/aframe-ar.js index ac80e5d6..b2f10e13 100644 --- a/aframe/build/aframe-ar.js +++ b/aframe/build/aframe-ar.js @@ -6127,15 +6127,7 @@ AFRAME.registerComponent('gps-camera', { if (!!navigator.userAgent.match(/Version\/[\d.]+.*Safari/)) { // iOS 13+ if (typeof DeviceOrientationEvent.requestPermission === 'function') { - var handler = function () { - console.log('Requesting device orientation permissions...') - DeviceOrientationEvent.requestPermission(); - document.removeEventListener('touchend', handler); - }; - - document.addEventListener('touchend', function () { handler() }, false); - - alert('After camera permission prompt, please tap the screen to activate geolocation.'); + DeviceOrientationEvent.requestPermission(); } else { var timeout = setTimeout(function () { alert('Please enable device orientation in Settings > Safari > Motion & Orientation Access.') @@ -6688,6 +6680,7 @@ AFRAME.registerComponent('gps-projected-camera', { this.lookControls = this.el.components['arjs-look-controls'] || this.el.components['look-controls']; + // listen to deviceorientation event var eventName = this._getDeviceOrientationEventName(); this._onDeviceOrientation = this._onDeviceOrientation.bind(this); @@ -6696,15 +6689,7 @@ AFRAME.registerComponent('gps-projected-camera', { if (!!navigator.userAgent.match(/Version\/[\d.]+.*Safari/)) { // iOS 13+ if (typeof DeviceOrientationEvent.requestPermission === 'function') { - var handler = function() { - console.log('Requesting device orientation permissions...') - DeviceOrientationEvent.requestPermission(); - document.removeEventListener('touchend', handler); - }; - - document.addEventListener('touchend', function() { handler() }, false); - - alert('After camera permission prompt, please tap the screen to activate geolocation.'); + DeviceOrientationEvent.requestPermission(); } else { var timeout = setTimeout(function() { alert('Please enable device orientation in Settings > Safari > Motion & Orientation Access.') diff --git a/aframe/src/location-based/gps-camera.js b/aframe/src/location-based/gps-camera.js index f414340b..566ee649 100644 --- a/aframe/src/location-based/gps-camera.js +++ b/aframe/src/location-based/gps-camera.js @@ -91,15 +91,7 @@ AFRAME.registerComponent('gps-camera', { if (!!navigator.userAgent.match(/Version\/[\d.]+.*Safari/)) { // iOS 13+ if (typeof DeviceOrientationEvent.requestPermission === 'function') { - var handler = function () { - console.log('Requesting device orientation permissions...') - DeviceOrientationEvent.requestPermission(); - document.removeEventListener('touchend', handler); - }; - - document.addEventListener('touchend', function () { handler() }, false); - - alert('After camera permission prompt, please tap the screen to activate geolocation.'); + DeviceOrientationEvent.requestPermission(); } else { var timeout = setTimeout(function () { alert('Please enable device orientation in Settings > Safari > Motion & Orientation Access.') diff --git a/aframe/src/location-based/gps-projected-camera.js b/aframe/src/location-based/gps-projected-camera.js index 802da91e..b37b42ab 100644 --- a/aframe/src/location-based/gps-projected-camera.js +++ b/aframe/src/location-based/gps-projected-camera.js @@ -109,15 +109,7 @@ AFRAME.registerComponent('gps-projected-camera', { if (!!navigator.userAgent.match(/Version\/[\d.]+.*Safari/)) { // iOS 13+ if (typeof DeviceOrientationEvent.requestPermission === 'function') { - var handler = function() { - console.log('Requesting device orientation permissions...') - DeviceOrientationEvent.requestPermission(); - document.removeEventListener('touchend', handler); - }; - - document.addEventListener('touchend', function() { handler() }, false); - - alert('After camera permission prompt, please tap the screen to activate geolocation.'); + DeviceOrientationEvent.requestPermission(); } else { var timeout = setTimeout(function() { alert('Please enable device orientation in Settings > Safari > Motion & Orientation Access.') diff --git a/images/UML.PNG b/images/UML.PNG new file mode 100644 index 00000000..2078db2c Binary files /dev/null and b/images/UML.PNG differ diff --git a/images/aviso.png b/images/aviso.png new file mode 100644 index 00000000..739db03d Binary files /dev/null and b/images/aviso.png differ diff --git a/images/cameraAfter.PNG b/images/cameraAfter.PNG new file mode 100644 index 00000000..7769337e Binary files /dev/null and b/images/cameraAfter.PNG differ diff --git a/images/cameraBefore.png b/images/cameraBefore.png new file mode 100644 index 00000000..3a8014ca Binary files /dev/null and b/images/cameraBefore.png differ diff --git a/images/codeAfter.png b/images/codeAfter.png new file mode 100644 index 00000000..4ed82b3b Binary files /dev/null and b/images/codeAfter.png differ diff --git a/images/codeBeforepng.png b/images/codeBeforepng.png new file mode 100644 index 00000000..00bce878 Binary files /dev/null and b/images/codeBeforepng.png differ diff --git a/images/currentLocation.PNG b/images/currentLocation.PNG new file mode 100644 index 00000000..8478ee02 Binary files /dev/null and b/images/currentLocation.PNG differ diff --git a/test/bin/chromedriver b/test/bin/chromedriver old mode 100755 new mode 100644 diff --git a/test/bin/geckodriver b/test/bin/geckodriver old mode 100755 new mode 100644 diff --git a/three.js/examples/multi-markers/examples/threex-screenasportal/examples/screenAsPortal-original.html b/three.js/examples/multi-markers/examples/threex-screenasportal/examples/screenAsPortal-original.html deleted file mode 100644 index 65460598..00000000 --- a/three.js/examples/multi-markers/examples/threex-screenasportal/examples/screenAsPortal-original.html +++ /dev/null @@ -1,264 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Screen as a gate to another world - by @jerome_etienne - with AR.js -
- Directly inspired of the cult demo by johnny lee -
-
- marker helper : -
-
- -
- - diff --git a/three.js/examples/multi-markers/threex-armultimarkercontrols.js b/three.js/examples/multi-markers/threex-armultimarkercontrols.js deleted file mode 120000 index aaf46047..00000000 --- a/three.js/examples/multi-markers/threex-armultimarkercontrols.js +++ /dev/null @@ -1 +0,0 @@ -../../src/markers-area/threex-armultimarkercontrols.js \ No newline at end of file diff --git a/three.js/examples/multi-markers/threex-armultimarkercontrols.js b/three.js/examples/multi-markers/threex-armultimarkercontrols.js new file mode 100644 index 00000000..aaf46047 --- /dev/null +++ b/three.js/examples/multi-markers/threex-armultimarkercontrols.js @@ -0,0 +1 @@ +../../src/markers-area/threex-armultimarkercontrols.js \ No newline at end of file diff --git a/three.js/examples/multi-markers/threex-armultimarkerlearning.js b/three.js/examples/multi-markers/threex-armultimarkerlearning.js deleted file mode 120000 index 602d4ca7..00000000 --- a/three.js/examples/multi-markers/threex-armultimarkerlearning.js +++ /dev/null @@ -1 +0,0 @@ -../../src/markers-area/threex-armultimarkerlearning.js \ No newline at end of file diff --git a/three.js/examples/multi-markers/threex-armultimarkerlearning.js b/three.js/examples/multi-markers/threex-armultimarkerlearning.js new file mode 100644 index 00000000..602d4ca7 --- /dev/null +++ b/three.js/examples/multi-markers/threex-armultimarkerlearning.js @@ -0,0 +1 @@ +../../src/markers-area/threex-armultimarkerlearning.js \ No newline at end of file diff --git a/three.js/examples/multi-markers/threex-armultimarkerutils.js b/three.js/examples/multi-markers/threex-armultimarkerutils.js deleted file mode 120000 index 786685eb..00000000 --- a/three.js/examples/multi-markers/threex-armultimarkerutils.js +++ /dev/null @@ -1 +0,0 @@ -../../src/markers-area/threex-armultimarkerutils.js \ No newline at end of file diff --git a/three.js/examples/multi-markers/threex-armultimarkerutils.js b/three.js/examples/multi-markers/threex-armultimarkerutils.js new file mode 100644 index 00000000..786685eb --- /dev/null +++ b/three.js/examples/multi-markers/threex-armultimarkerutils.js @@ -0,0 +1 @@ +../../src/markers-area/threex-armultimarkerutils.js \ No newline at end of file diff --git a/three.js/examples/vendor/three.js/build/three.js b/three.js/examples/vendor/three.js/build/three.js old mode 100755 new mode 100644