From adb83e8a8fa42a90104b32bed41539a8fd5a878e Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Fri, 3 Apr 2026 01:38:38 +0200 Subject: [PATCH] Reorder and update default perspective camera position --- src/viewport-three/viewport-layout.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/viewport-three/viewport-layout.ts b/src/viewport-three/viewport-layout.ts index c4bff71e..a895efd1 100644 --- a/src/viewport-three/viewport-layout.ts +++ b/src/viewport-three/viewport-layout.ts @@ -42,6 +42,12 @@ export interface ViewportLayoutState { viewportQuadSplit: ViewportQuadSplit; } +const DEFAULT_PERSPECTIVE_CAMERA_POSITION = { + x: 10, + y: 9, + z: 10 +} as const; + export const DEFAULT_VIEWPORT_LAYOUT_STATE: ViewportLayoutState = { layoutMode: "single", activePanelId: "topLeft", @@ -73,12 +79,6 @@ export const DEFAULT_VIEWPORT_LAYOUT_STATE: ViewportLayoutState = { } }; -const DEFAULT_PERSPECTIVE_CAMERA_POSITION = { - x: 10, - y: 9, - z: 10 -} as const; - function createDefaultPerspectiveOrbitState(): ViewportPerspectiveOrbitState { const { x, y, z } = DEFAULT_PERSPECTIVE_CAMERA_POSITION; const radius = Math.sqrt(x * x + y * y + z * z);