feat(web): add dynamic area layouts and camera views

Area headers now expose a real ⋮ menu with split, join, swap,
duplicate, maximize/focus, close and reset; the first operation
measures the CSS grid into normalized rects and switches that
workspace to an OPFS-persisted custom layout while reusing the
existing React content per slot.

ViewportNavigation gains Numpad0 camera view with last-view restore,
framing-only navigation when unlocked, Camera to View lock that writes
the camera object (rotation-mode-aware native setObjectTransform),
and Ctrl+Alt+Numpad0 camera-to-view. Camera lock persists per area.

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
mes123456
2026-11-13 09:50:12 +08:00
parent ebf1e8e873
commit 371427a6bc
18 changed files with 801 additions and 40 deletions

View File

@@ -77,6 +77,7 @@ export interface WebSettingsFile {
preferences: WebPreferencesIR;
areaLayouts: Record<string, AreaLayoutRecord>;
areaEditorOverrides: Record<string, EditorType>;
cameraLocks: Record<string, boolean>;
}
export const DEFAULT_WEB_PREFERENCES: WebPreferencesIR = {