Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-05-24 20:25:46 +00:00
parent 0fc3783eb9
commit cbeb186a60
+19
View File
@@ -121,6 +121,25 @@ export function ViewerControls() {
</span>
</Button>
{/* Camera projection toggle (Ortho ⇄ Persp) */}
<Button
variant="outline"
size="sm"
className="gap-2 h-9"
onClick={() => setCameraMode(cameraMode === 'ortho' ? 'persp' : 'ortho')}
title={cameraMode === 'ortho'
? 'Vista ortogonal (CAD) — clique para perspectiva'
: 'Vista em perspectiva — clique para ortogonal'}
>
{cameraMode === 'ortho'
? <Square className="h-3.5 w-3.5" />
: <Box className="h-3.5 w-3.5" />}
<span className="font-mono text-xs">
{cameraMode === 'ortho' ? 'Ortogonal' : 'Perspectiva'}
</span>
</Button>
{/* Edges color/thickness/threshold popover */}
{renderMode === 'edges' && (
<Popover>