This commit is contained in:
Andras Schmelczer 2026-09-11 22:14:24 +01:00
commit 0c0f08b350
45 changed files with 1565 additions and 1579 deletions

View file

@ -33,7 +33,7 @@ export function fireplace(id: string, name: string): Room {
}
export function defaultProject(): Project {
return {
version: 1,
version: 2,
name: 'My flooring project',
rooms: [rectangle()],
tolerance: 10,
@ -42,7 +42,7 @@ export function defaultProject(): Project {
length: 1200,
width: 190,
gap: 10,
pattern: 'brick',
pattern: 'random',
optimisation: 'cuts',
minOffset: 300,
maxOffset: 600,
@ -56,7 +56,13 @@ export function defaultProject(): Project {
export function defaultState(): UrlState {
return {
project: defaultProject(),
view: { roomId: 'room-1', selectedPiece: null, search: '', collapsedSections: [] },
view: {
roomId: 'room-1',
selectedPiece: null,
search: '',
collapsedSections: [],
material: 'flooring',
},
};
}
export function nextId(prefix: string, existing: string[]): string {