Reorder and update default perspective camera position

This commit is contained in:
2026-04-03 01:38:38 +02:00
parent 77d4b7fe08
commit adb83e8a8f

View File

@@ -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);