Context menu thing

This commit is contained in:
space-nuko
2023-04-29 14:12:20 -07:00
parent 311ee192b2
commit 2f53758045
10 changed files with 234 additions and 17 deletions

View File

@@ -16,7 +16,8 @@ export type LayoutState = {
root: IDragItem | null,
allItems: Record<DragItemID, DragItemEntry>,
currentId: number,
currentSelection: IDragItem[]
currentSelection: DragItemID[],
isMenuOpen: boolean
}
export type Attributes = {
@@ -62,7 +63,8 @@ const store: Writable<LayoutState> = writable({
root: null,
allItems: [],
currentId: 0,
currentSelection: []
currentSelection: [],
isMenuOpen: false
})
function findDefaultContainerForInsertion(): ContainerLayout | null {