ISSUE-017 - Initial work on the Overlay Tool.
Have basic state management in place and a number of simple prototypes in place to practice floating a div above the interface.
This commit is contained in:
1 parent
110d00d7bb
commit
506491eed9
14 files changed
+265
-14
No files matched your search
Vendored
+23
@@ -1,16 +1,22 @@
|
||||
export type RootState = {
|
||||
pageDimensions: PageDimensions,
|
||||
workspace: Workspace,
|
||||
overlayTool: OverlayTool,
|
||||
};
|
||||
|
||||
// Page Dimensions
|
||||
export type PageDimensions = {
|
||||
menu: MenuDimensions,
|
||||
app: AppDimensions,
|
||||
};
|
||||
|
||||
export type MenuDimensions = {
|
||||
height: number,
|
||||
};
|
||||
export type AppDimensions = {
|
||||
height: number,
|
||||
width: number,
|
||||
};
|
||||
|
||||
// Workspace
|
||||
export type Workspace = {
|
||||
@@ -20,3 +26,20 @@ export type Workspace = {
|
||||
|
||||
export type WorkspaceId = string;
|
||||
export type AnimatedBG = boolean;
|
||||
|
||||
// Overlay Tool
|
||||
export type OverlayTool = {
|
||||
// workspaceId: WorkspaceId,
|
||||
overlayIds: Array<OverlayId>,
|
||||
currentOverlayId: OverlayId | null,
|
||||
currentOverlayItem: OverlayItem | null,
|
||||
visible: boolean,
|
||||
};
|
||||
export type OverlayId = string;
|
||||
export type OverlayPosition = { x: number, y: number };
|
||||
export type OverlayItem = {
|
||||
id: OverlayId,
|
||||
position: OverlayPosition,
|
||||
opacity: number,
|
||||
scale: number,
|
||||
};
|
||||
Reference in new issue
Block a user