Add ViewportQuadSplit interface and update DEFAULT_VIEWPORT_LAYOUT_STATE
This commit is contained in:
@@ -15,10 +15,16 @@ export interface ViewportPanelState {
|
|||||||
displayMode: ViewportDisplayMode;
|
displayMode: ViewportDisplayMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface ViewportQuadSplit {
|
||||||
|
x: number;
|
||||||
|
y: number;
|
||||||
|
}
|
||||||
|
|
||||||
export interface ViewportLayoutState {
|
export interface ViewportLayoutState {
|
||||||
layoutMode: ViewportLayoutMode;
|
layoutMode: ViewportLayoutMode;
|
||||||
activePanelId: ViewportPanelId;
|
activePanelId: ViewportPanelId;
|
||||||
panels: Record<ViewportPanelId, ViewportPanelState>;
|
panels: Record<ViewportPanelId, ViewportPanelState>;
|
||||||
|
viewportQuadSplit: ViewportQuadSplit;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const DEFAULT_VIEWPORT_LAYOUT_STATE: ViewportLayoutState = {
|
export const DEFAULT_VIEWPORT_LAYOUT_STATE: ViewportLayoutState = {
|
||||||
@@ -41,6 +47,10 @@ export const DEFAULT_VIEWPORT_LAYOUT_STATE: ViewportLayoutState = {
|
|||||||
viewMode: "side",
|
viewMode: "side",
|
||||||
displayMode: "authoring"
|
displayMode: "authoring"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
viewportQuadSplit: {
|
||||||
|
x: 0.5,
|
||||||
|
y: 0.5
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -61,6 +71,9 @@ export function createDefaultViewportLayoutState(): ViewportLayoutState {
|
|||||||
bottomRight: {
|
bottomRight: {
|
||||||
...DEFAULT_VIEWPORT_LAYOUT_STATE.panels.bottomRight
|
...DEFAULT_VIEWPORT_LAYOUT_STATE.panels.bottomRight
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
viewportQuadSplit: {
|
||||||
|
...DEFAULT_VIEWPORT_LAYOUT_STATE.viewportQuadSplit
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user