Selection thing

This commit is contained in:
space-nuko
2023-04-29 13:47:22 -07:00
parent 42f6f12ceb
commit 311ee192b2
3 changed files with 44 additions and 12 deletions

View File

@@ -16,6 +16,7 @@ export type LayoutState = {
root: IDragItem | null,
allItems: Record<DragItemID, DragItemEntry>,
currentId: number,
currentSelection: IDragItem[]
}
export type Attributes = {
@@ -60,7 +61,8 @@ export type WritableLayoutStateStore = Writable<LayoutState> & LayoutStateOps;
const store: Writable<LayoutState> = writable({
root: null,
allItems: [],
currentId: 0
currentId: 0,
currentSelection: []
})
function findDefaultContainerForInsertion(): ContainerLayout | null {