This commit is contained in:
Andras Schmelczer 2026-09-11 16:58:58 +01:00
commit 62a385e4c9
33 changed files with 2649 additions and 809 deletions

View file

@ -37,6 +37,7 @@ export function defaultProject(): Project {
name: 'My flooring project',
rooms: [rectangle()],
tolerance: 10,
completedBoards: [],
flooring: {
length: 1200,
width: 190,
@ -54,7 +55,7 @@ export function defaultProject(): Project {
export function defaultState(): UrlState {
return {
project: defaultProject(),
view: { roomId: 'room-1', selectedPiece: null },
view: { roomId: 'room-1', selectedPiece: null, search: '', collapsedSections: [] },
};
}
export function nextId(prefix: string, existing: string[]): string {