Reorder and update default perspective camera position
This commit is contained in:
@@ -42,6 +42,12 @@ export interface ViewportLayoutState {
|
|||||||
viewportQuadSplit: ViewportQuadSplit;
|
viewportQuadSplit: ViewportQuadSplit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const DEFAULT_PERSPECTIVE_CAMERA_POSITION = {
|
||||||
|
x: 10,
|
||||||
|
y: 9,
|
||||||
|
z: 10
|
||||||
|
} as const;
|
||||||
|
|
||||||
export const DEFAULT_VIEWPORT_LAYOUT_STATE: ViewportLayoutState = {
|
export const DEFAULT_VIEWPORT_LAYOUT_STATE: ViewportLayoutState = {
|
||||||
layoutMode: "single",
|
layoutMode: "single",
|
||||||
activePanelId: "topLeft",
|
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 {
|
function createDefaultPerspectiveOrbitState(): ViewportPerspectiveOrbitState {
|
||||||
const { x, y, z } = DEFAULT_PERSPECTIVE_CAMERA_POSITION;
|
const { x, y, z } = DEFAULT_PERSPECTIVE_CAMERA_POSITION;
|
||||||
const radius = Math.sqrt(x * x + y * y + z * z);
|
const radius = Math.sqrt(x * x + y * y + z * z);
|
||||||
|
|||||||
Reference in New Issue
Block a user