ISSUE-017 - Overlay state is streamlined.

Total change to workspaces. Now an object instead of a list.
Utilizing workspace overlays list - prototype currently colors the mock item.
Reset overlay on workspace change.
Improved combined dragging/transition element behavior.
This commit is contained in:
Kyle Geib committed 2022-01-13 14:16:09 -05:00
1 parent a6a5eb7751
commit 861d702a27
11 files changed
+177 -150

No files matched your search

+3 -4
View File
@@ -22,17 +22,16 @@ export type WorkspaceId = string;
// Overlay Tool
export type OverlayTool = {
// workspaceId: WorkspaceId,
overlayIds: Array<OverlayId>,
currentWorkspaceId: WorkspaceId,
overlayIds: OverlayIds,
currentOverlayId: OverlayId | null,
currentOverlayItem: OverlayItem | null,
visible: boolean,
};
export type OverlayId = string;
export type OverlayIds = Array<OverlayId>;
export type OverlayPosition = { x: number, y: number };
export type OverlayItem = {
id: OverlayId,
position: OverlayPosition,
opacity: number,
scale: number,
};