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

This commit is contained in:
2026-05-31 23:46:46 +00:00
parent 126bc6f80d
commit a2ac72cfe7
2 changed files with 99 additions and 7 deletions
+18 -1
View File
@@ -13,7 +13,7 @@ import {
} from './three/viewCubeBus';
import { useModelStore } from '@/stores/useModelStore';
import { getModelLocalGroup } from '@/lib/modelTransforms';
import { Check, RotateCcw } from 'lucide-react';
import { Check, RotateCcw, Maximize2 } from 'lucide-react';
import { toast } from 'sonner';
/** Builds a square canvas texture with a label centered on it. */
@@ -296,6 +296,23 @@ export function ViewCube() {
<RotateCcw className="h-2.5 w-2.5" /> reset
</button>
)}
{/* Botão de Tela Cheia */}
<button
type="button"
onClick={() => {
const container = document.getElementById("canvas-container");
if (container) {
container.requestFullscreen().catch((err) => {
toast.error("Não foi possível entrar em tela cheia: " + err.message);
});
}
}}
className="flex h-7 w-full items-center justify-center gap-1 rounded border border-primary/40 bg-background/40 font-mono text-[10px] uppercase tracking-widest text-primary hover:bg-primary/10 transition-colors"
title="Entrar em modo tela cheia"
>
<Maximize2 className="h-3 w-3" /> Tela Cheia
</button>
</div>
);
}