src/design/home.tsimport { box, opening, prism, rect, room, run, scene, wall, type Span } from '../scene/build';/*** ═══════════════════════════ YOUR DESIGN — EDIT THIS FILE ═══════════════════════════* This is the one file you edit to model your home. The rest of the app (everything in* src/scene/* and src/views/*) is the template engine — leave it alone.** Everything is in INCHES. Origin = interior NW corner; +x east, +y south, +z up.** (0,0) ┌───────────── 253" ───────────────┐ (253,0)* │ │* 201" (interior) 201"* (0,131) ├───────┐ (101,131) │* │ SW │ Laundry Room (8'5"×5'10")│* (0,201) └───────┴───────────────────────────┘ (253,201)** Build elements with the helpers from ../scene/build — all EDGE/BOUNDS based, no center math:* box(id, label, { x:[x0,x1], y:[y0,y1], z:[z0,z1] }, color) // a cabinet / appliance* prism(id, label, [ {x,y}, … ], [z0,z1], color) // L / diagonal footprints* run({…}).add(label, width).gap(w).add(…) // a packed row of cabinets
Showing the first 20 lines.
Get full code