spoint 0.1.58 → 0.1.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/app.js +2 -0
- package/package.json +1 -1
package/client/app.js
CHANGED
|
@@ -1212,6 +1212,7 @@ async function initAR() {
|
|
|
1212
1212
|
arEnabled = true
|
|
1213
1213
|
scene.background = null
|
|
1214
1214
|
ground.visible = false
|
|
1215
|
+
renderer.domElement.style.display = 'none'
|
|
1215
1216
|
console.log('[AR] AR mode started')
|
|
1216
1217
|
return true
|
|
1217
1218
|
}
|
|
@@ -1221,6 +1222,7 @@ async function initAR() {
|
|
|
1221
1222
|
arEnabled = false
|
|
1222
1223
|
scene.background = new THREE.Color(0x87ceeb)
|
|
1223
1224
|
ground.visible = true
|
|
1225
|
+
renderer.domElement.style.display = 'block'
|
|
1224
1226
|
if (arButton) {
|
|
1225
1227
|
arButton.textContent = 'Enter XR'
|
|
1226
1228
|
arButton.style.background = 'rgba(0, 150, 0, 0.8)'
|