feat(editor): focus camera on selected object
🔍 Lint / 🪄 Check lint (pull_request) Has been cancelled
🔍 Lint / 🎨 Check format (pull_request) Has been cancelled
🔍 Lint / 🔎 Typecheck (pull_request) Has been cancelled
📊 Quality / 🔒 Security Audit (pull_request) Has been cancelled
📊 Quality / 📋 Dependency Freshness (pull_request) Has been cancelled
📊 Quality / 📦 Bundle Size (pull_request) Has been cancelled
🔍 Lint / 🏗 Build (pull_request) Has been cancelled

This commit is contained in:
tom-boullay
2026-05-27 11:58:33 +02:00
parent 4ee13b0336
commit bfe184dea4
4 changed files with 67 additions and 1 deletions
+8
View File
@@ -11,6 +11,7 @@ import {
Redo2,
RotateCw,
Save,
ScanSearch,
Undo2,
Unlock,
X,
@@ -37,6 +38,7 @@ interface EditorControlsProps {
redoCount: number;
onUndo: () => void;
onRedo: () => void;
onResetCamera: () => void;
onExportJson: () => void;
onSaveToServer?: (() => void | Promise<void>) | undefined;
onPlayerMode?: (() => void) | undefined;
@@ -101,6 +103,7 @@ export function EditorControls({
redoCount,
onUndo,
onRedo,
onResetCamera,
onExportJson,
onSaveToServer,
onPlayerMode,
@@ -268,6 +271,11 @@ export function EditorControls({
</button>
)}
<button className="editor-action-button" onClick={onResetCamera}>
<ScanSearch size={16} aria-hidden="true" />
Reset camera
</button>
<label className="editor-checkbox-row">
<input
type="checkbox"