ISSUE-017 - Improvements to a number of things.

* Moved FullScreenContainer in WorkspacesRoute to make scrolling much better. Seriously, 100% works better.
* Simplified dimensions state actions to a shared one.
* Abandoned the noisy and useless "AnimatedBG" type.
* Added workspace dimensions state (I'll need this later to prevent off-screen dragging).
* Placed OverlayDisplay component in PreviewWindow, where it makes more sense. I'll still allow it to roam around outside of it, though.
* Renamed "menu" dimensions to "mainMenu".
* Improved initNewOverlayItem action to support setting visible.
* Correct handling of showing the OverlayItemContainer.
* Simplified the initial position of a new OverlayItem to a simple initial value instead of setting it in the middle of provided dimensions.
* Made PreviewWindow `position: relative` to allow absolute positioning of OverlayItem from it.
* Added importHelpers to tsconfig because VSCode was complaining about it.
This commit is contained in:
Kyle Geib committed 2022-01-11 19:12:21 -05:00
1 parent 506491eed9
commit 61b60b9819
16 files changed
+113 -76

No files matched your search

+5 -12
View File
@@ -6,26 +6,19 @@ export type RootState = {
// Page Dimensions
export type PageDimensions = {
menu: MenuDimensions,
app: AppDimensions,
};
export type MenuDimensions = {
height: number,
};
export type AppDimensions = {
height: number,
width: number,
mainMenu: Dimensions,
app: Dimensions,
workspace: Dimensions,
};
export type Dimensions = { width: number, height: number };
// Workspace
export type Workspace = {
workspaceId: WorkspaceId,
animatedBG: AnimatedBG,
animatedBG: boolean,
};
export type WorkspaceId = string;
export type AnimatedBG = boolean;
// Overlay Tool
export type OverlayTool = {