design_elems = {
const topMargin = 50;
const leftMargin = 50;
const footprint = ({
rects: [
{ name: 'stair_landing', x: 1, y: 1, w: 6, h: 6.2 },
{ name: 'stair_hall', x: 1+ 3, y: 1+ 6.2, w: 3, h: 11.8 },
{ name: 'stairs', x: 1, y: 1 + 6.2, w: 3, h: 1*(11.8/14) },
{ name: 'stairs', x: 1, y: 1 + 6.2, w: 3, h: 2*(11.8/14) },
{ name: 'stairs', x: 1, y: 1 + 6.2, w: 3, h: 3*(11.8/14) },
{ name: 'stairs', x: 1, y: 1 + 6.2, w: 3, h: 4*(11.8/14) },
{ name: 'stairs', x: 1, y: 1 + 6.2, w: 3, h: 5*(11.8/14) },
{ name: 'stairs', x: 1, y: 1 + 6.2, w: 3, h: 6*(11.8/14) },
{ name: 'stairs', x: 1, y: 1 + 6.2, w: 3, h: 7*(11.8/14) },
{ name: 'stairs', x: 1, y: 1 + 6.2, w: 3, h: 8*(11.8/14) },
{ name: 'stairs', x: 1, y: 1 + 6.2, w: 3, h: 9*(11.8/14) },
{ name: 'stairs', x: 1, y: 1 + 6.2, w: 3, h: 10*(11.8/14) },
{ name: 'stairs', x: 1, y: 1 + 6.2, w: 3, h: 11*(11.8/14) },
{ name: 'stairs', x: 1, y: 1 + 6.2, w: 3, h: 12*(11.8/14) },
{ name: 'stairs', x: 1, y: 1 + 6.2, w: 3, h: 13*(11.8/14) },
{ name: 'stairs', x: 1, y: 1 + 6.2, w: 3, h: 14*(11.8/14) },
{ name: 'new_const', x: 1+ 6, y: 1, w: 12.5, h: 23 },
{ name: 'front_closet', x: 1+ 5, y: 19, w: 2, h: 5, c: 'green' },
{ name: 'front_entry', x: 1+ 7, y: 19, w: 6, h: 5, c: 'red' },
],
polylines: [
{ name: 'east_addition',
points: [[19.5,1], [24.5,4],
[24.5,16], [25,17.5],
[25,20.5], [24.5,22],
[24.5,24], [19.5,24]],
c: 'green' },
],
});
const upstairs = ({
rects: [
{ name: 'stair_landing', x: 1, y: 1, w: 6, h: 6.2 },
{ name: 'stair_hall', x: 4, y: 1+ 6.2, w: 3, h: 11.8 },
{ name: 'stairs', x: 1, y: 1 + 6.2, w: 3, h: 1*(11.8/14) },
{ name: 'stairs', x: 1, y: 1 + 6.2, w: 3, h: 2*(11.8/14) },
{ name: 'stairs', x: 1, y: 1 + 6.2, w: 3, h: 3*(11.8/14) },
{ name: 'stairs', x: 1, y: 1 + 6.2, w: 3, h: 4*(11.8/14) },
{ name: 'stairs', x: 1, y: 1 + 6.2, w: 3, h: 5*(11.8/14) },
{ name: 'stairs', x: 1, y: 1 + 6.2, w: 3, h: 6*(11.8/14) },
{ name: 'stairs', x: 1, y: 1 + 6.2, w: 3, h: 7*(11.8/14) },
{ name: 'stairs', x: 1, y: 1 + 6.2, w: 3, h: 8*(11.8/14) },
{ name: 'stairs', x: 1, y: 1 + 6.2, w: 3, h: 9*(11.8/14) },
{ name: 'stairs', x: 1, y: 1 + 6.2, w: 3, h: 10*(11.8/14) },
{ name: 'stairs', x: 1, y: 1 + 6.2, w: 3, h: 11*(11.8/14) },
{ name: 'stairs', x: 1, y: 1 + 6.2, w: 3, h: 12*(11.8/14) },
{ name: 'stairs', x: 1, y: 1 + 6.2, w: 3, h: 13*(11.8/14) },
{ name: 'stairs', x: 1, y: 1 + 6.2, w: 3, h: 14*(11.8/14) },
{ name: 'storage', x: 1+ 6, y: 1, w: 10.5, h: 7, c: 'black', f: 'lightgray' },
{ name: 'office', x: 1+ 16.5, y: 1, w: 7, h: 7, c: 'green' },
{ name: 'bath', x: 1+ 6, y: 11, w: 6, h: 9, c: 'red' },
],
polylines: [
{ name: 'porch_window1',
points: [[22,1.5],[23.5,1.5]],
c: 'black' },
{ name: 'porch_window2',
points: [[24,1.5],[24,7.5]],
c: 'black' },
{ name: 'east_addition',
points: [[24.5,8], [24.5,16],
[25,17.5],[25,20.5], [24.5,22],
[24.5,24], [7,24], [7,18.8]],
c: 'green' },
],
});
return ({footprint, upstairs});
}