🚀 Auto-deploy: melhoria no snap e medição AR em 31/05/2026 23:34:10

This commit is contained in:
2026-05-31 23:34:10 +00:00
parent 8154951fa5
commit 126bc6f80d
2 changed files with 16 additions and 10 deletions
+10 -4
View File
@@ -4,7 +4,7 @@ import { sendRemoteLog } from '@/lib/remoteLogger';
// ── Persistência de placement (fineTuning + escala) e flags WebXR ───── // ── Persistência de placement (fineTuning + escala) e flags WebXR ─────
const PLACEMENT_KEY = 'tsxr_placements_v1'; const PLACEMENT_KEY = 'tsxr_placements_v1';
const XRFEAT_KEY = 'xrFeatures'; const XRFEAT_KEY = 'xrFeatures_v2';
const CAMERA_MODE_KEY = 'tsxr_camera_mode_v1'; const CAMERA_MODE_KEY = 'tsxr_camera_mode_v1';
function loadCameraMode(): 'ortho' | 'persp' { function loadCameraMode(): 'ortho' | 'persp' {
@@ -30,9 +30,15 @@ export interface XRFeatureFlags {
bodyTracking: boolean; bodyTracking: boolean;
} }
const DEFAULT_XR_FEATURES: XRFeatureFlags = { const DEFAULT_XR_FEATURES: XRFeatureFlags = {
handTracking: true, planeDetection: true, hitTest: true, domOverlay: true, handTracking: true,
anchors: true, meshDetection: true, depthSensing: true, layers: true, planeDetection: true,
bodyTracking: true, hitTest: true,
domOverlay: true,
anchors: true,
meshDetection: false,
depthSensing: false,
layers: false,
bodyTracking: false,
}; };
function loadXRFeatures(): XRFeatureFlags { function loadXRFeatures(): XRFeatureFlags {
try { try {
+6 -6
View File
@@ -7,14 +7,14 @@ function loadXRFeatures() {
hitTest: true, hitTest: true,
domOverlay: true, domOverlay: true,
anchors: true, anchors: true,
meshDetection: true, meshDetection: false,
depthSensing: true, depthSensing: false,
layers: true, layers: false,
bodyTracking: true, bodyTracking: false,
lightEstimation: true, lightEstimation: false,
}; };
try { try {
const raw = localStorage.getItem('xrFeatures'); const raw = localStorage.getItem('xrFeatures_v2');
if (raw) return { ...defaults, ...JSON.parse(raw) }; if (raw) return { ...defaults, ...JSON.parse(raw) };
} catch (err) { } catch (err) {
console.warn('[XR] Falha ao ler xrFeatures do localStorage:', err); console.warn('[XR] Falha ao ler xrFeatures do localStorage:', err);