Skip to content

armgit / bygga

Public Imported from GitHub
0

IKEA assembly, step by step: animated, manual-style 3D guides. Scan any paper manual with Together AI.

TypeScript

Draw drying racks and laptop and monitor stands

Youssef539bb1db1417
diff --git a/scripts/ikea/build.ts b/scripts/ikea/build.ts
index 455140d..70e4769 100644
--- a/scripts/ikea/build.ts
+++ b/scripts/ikea/build.ts
@@ -59,7 +59,7 @@ function hints(family: string, kind: Kind): Hint | undefined {
/* ---------- matching against hand made entries ---------- */
-const LATER_KINDS = new Set<Kind>(["office", "chaise", "corner", "cot", "bunk", "loft", "dropleaf", "daybed", "mixed", "sliding", "slidecab", "bookrow", "cabrow", "section", "gateleg", "washstand", "sinkcab", "appliance", "shoerack", "clothesrack", "changing", "divider", "backbench", "junior", "lounge", "highchair", "cornercab", "cornerrobe", "usofa", "lounger", "swivel", "conference", "cornerdesk", "conftable", "lidbox", "shelfbench", "workbench", "extension", "deskdraw", "boxdesk", "hatrack", "coatstand", "pouffe", "chairbed"]);
+const LATER_KINDS = new Set<Kind>(["office", "chaise", "corner", "cot", "bunk", "loft", "dropleaf", "daybed", "mixed", "sliding", "slidecab", "bookrow", "cabrow", "section", "gateleg", "washstand", "sinkcab", "appliance", "shoerack", "clothesrack", "changing", "divider", "backbench", "junior", "lounge", "highchair", "cornercab", "cornerrobe", "usofa", "lounger", "swivel", "conference", "cornerdesk", "conftable", "lidbox", "shelfbench", "workbench", "extension", "deskdraw", "boxdesk", "hatrack", "coatstand", "pouffe", "chairbed", "airer", "riser"]);
function baseMatch(name: string, draw: Draw): CatalogEntry | undefined {
const fam = fold(name);
diff --git a/scripts/ikea/classify.ts b/scripts/ikea/classify.ts
index 760450d..90ad59a 100644
--- a/scripts/ikea/classify.ts
+++ b/scripts/ikea/classify.ts
@@ -506,6 +506,11 @@ const RULES: Rule[] = [
c.f.name === "KALLAX" ? "cube shelf with door inserts" : { kind: "tv", x: m[0] === "tv bench" && /^(BESTÅ|LACK)$/.test(c.f.name) ? { doors: 0 } : {} }],
[/^(shoe rack|open shoe storage unit)$/, () => ({ kind: "shoerack" })],
[/^room divider$/, () => ({ kind: "divider" })],
+ // a freestanding drying rack (one that hangs on a wall system's rail stays skipped)
+ [/^drying rack$/, (_m, c) => (c.f.name === "BOAXEL" ? "drying rack that hangs on a wall rail" : { kind: "airer", x: { cat: "Drying rack" } })],
+ // laptop and monitor stands: a top on two side panels
+ [/^(laptop stand|laptop\/monitor stand|monitor stand|monitor stand, fixed height|gaming monitor stand|desktop shelf)$/, (m) =>
+ ({ kind: "riser", x: /monitor stand$|fixed height/.test(m[1]) && !/laptop/.test(m[1]) ? { cat: "Monitor stand" } : m[1] === "desktop shelf" ? { cat: "Desktop shelf" } : {} })],
// a hat rack on the wall: a shelf over a row of hooks (IKEA gives only the width)
[/^hat rack$/, () => ({ kind: "hatrack" })],
// changing tables: a chest of drawers or an open frame with shelves, and a changing top on it
@@ -809,6 +814,12 @@ export function classify(f: Fact, hints: Hints): Verdict {
else set(v[0], 80, v[1]);
guessed.h = v.length === 2 && !x.hung && !CORNER_WH[family];
if (hint?.x.knobs) x.knobs = hint.x.knobs;
+ } else if (kind === "riser") {
+ // wide by deep, or wide by deep by high; a stand IKEA gives as wide by high stands on the floor
+ if (v.length === 3) set(v[0], v[2], v[1]);
+ else if (v.length === 2 && v[1] > 45) [w, h, d] = [v[0], v[1], 50];
+ else if (v.length === 2) set(v[0], undefined, v[1]);
+ if (x.cat === "Monitor stand" && guessed.w) [w, d] = [55, 24];
} else if (kind === "hatrack") {
// IKEA gives the width, sometimes the depth and height
if (v.length === 3) set(v[0], v[2], v[1]);
@@ -967,7 +978,7 @@ export function classify(f: Fact, hints: Hints): Verdict {
const arch = KIND_ARCH[k];
// a long sofa is drawn as sections joined together, so it can be longer than anything else
if (w < 20 || w > (arch === "sofa" ? 400 : 320) || h < 15 || h > 260 || d < 12 || d > 240) return { skip: "size out of range" };
- if (arch === "table" && h < 30 && k !== "kidstable") return { skip: "size out of range" };
+ if (arch === "table" && h < 30 && k !== "kidstable" && k !== "riser") return { skip: "size out of range" };
if (arch === "shelf" && h < 25) return { skip: "size out of range" };
const kw: string[] = [];
if (outdoor) kw.push("outdoor", "garden");
diff --git a/scripts/ikea/slugs.json b/scripts/ikea/slugs.json
index 47f4786..f003d5c 100644
--- a/scripts/ikea/slugs.json
+++ b/scripts/ikea/slugs.json
@@ -124,6 +124,7 @@
"BILLY|Height extension unit, 40 × 28 × 35 cm": "billy-height-extension-unit-40-x-28-x-35",
"BILLY|Height extension unit, 80 × 28 × 35 cm": "billy-height-extension-unit-80-x-28-x-35",
"BINGSTA|Armchair": "bingsta-armchair",
+ "BJÖRKÅSEN|Laptop stand": "bjorkasen-laptop-stand",
"BJÖRKBERGET|Swivel chair": "bjorkberget-swivel-chair",
"BJÖRKSNÄS|Bed frame, Standard King, 150 × 200 cm": "bjorksnas-bed-frame-standard-king-150-x-200",
"BJÖRKSNÄS|Bedside table, 48 × 38 cm": "bjorksnas-bedside-table-48-x-38",
@@ -138,6 +139,7 @@
"BOASTAD|Wall shelf, 181 × 32 × 32 cm": "boastad-wall-shelf-181-x-32-x-32",
"BOAXEL|Shelving unit, 62 × 40 × 201 cm": "boaxel-shelving-unit-62-x-40-x-201",
"BOLLPOJKE|Desk, 90 × 55 cm": "bollpojke-desk-90-x-55",
+ "BOLLSIDAN|Laptop stand, 68 × 36 cm": "bollsidan-laptop-stand-68-x-36",
"BOLMEN|Step stool": "bolmen-step-stool",
"BONDHOLMEN|2-seat sofa, outdoor": "bondholmen-2-seat-sofa-outdoor",
"BONDHOLMEN|2-seat sofa, outdoor, 139 × 81 × 73 cm": "bondholmen-2-seat-sofa-outdoor-139-x-81-x-73",
@@ -190,6 +192,7 @@
"DANDERYD|Drop-leaf table, 74/134 × 80 cm": "danderyd-drop-leaf-table-74-134-x-80",
"DOCKSTA|Table, 103 cm": "docksta-table-103",
"DOMSTEN|Stool": "domsten-stool",
+ "DUBBLA|Laptop stand, 60 × 40 cm": "dubbla-laptop-stand-60-x-40",
"DUVSKÄR|Chair, in/outdoor": "duvskar-chair-in-outdoor",
"DUVSKÄR|Table, outdoor, 76 × 63 cm": "duvskar-table-outdoor-76-x-63",
"DYVLINGE|Swivel easy chair": "dyvlinge-swivel-easy-chair",
@@ -296,6 +299,7 @@
"FRÖSJÖN|Trolley, 55 × 35 cm": "frosjon-trolley-55-x-35",
"FRÖSKELÅS|Gaming desk, 144 × 71 cm": "froskelas-gaming-desk-144-x-71",
"FRÖSKELÅS|Storage unit, 63 × 35 × 141 cm": "froskelas-storage-unit-63-x-35-x-141",
+ "FROST|Drying rack, in/outdoor": "frost-drying-rack-in-outdoor",
"FRÖSVI|Folding chair": "frosvi-folding-chair",
"FRÖTORP|Coffee table, 88 cm": "frotorp-coffee-table-88",
"FRÖTORP|Side table, 48 cm": "frotorp-side-table-48",
@@ -512,6 +516,7 @@
"IVÖSJÖN|Cabinet with doors, 33 × 34 × 99 cm": "ivosjon-cabinet-doors-33-x-34-x-99",
"IVÖSJÖN|Wash-basin base cabinet, 50 × 33 × 57 cm": "ivosjon-wash-basin-base-cabinet-50-x-33-x-57",
"JAKOBSFORS|Coffee table, 80 cm": "jakobsfors-coffee-table-80",
+ "JÄLL|Drying rack, in/outdoor": "jall-drying-rack-in-outdoor",
"JÄRVFJÄLLET|Office chair with armrests": "jarvfjallet-office-chair-armrests",
"JÄTTEBO|2-seat modular sofa": "jattebo-2-seat-modular-sofa",
"JÄTTEBO|2,5-seat mod sofa w chaise longue": "jattebo-2-5-seat-mod-sofa-w-chaise-longue",
@@ -656,6 +661,7 @@
"LANDSKRONA|Chaise longue, add-on unit": "landskrona-chaise-longue-add-on-unit",
"LANDSKRONA|Corner sofa, 5-seat": "landskrona-corner-sofa-5-seat",
"LANDSKRONA|Corner sofa, 6-seat": "landskrona-corner-sofa-6-seat",
+ "LÅNESPELARE|Monitor stand, 97 × 19 cm": "lanespelare-monitor-stand-97-x-19",
"LANESUND|Bookcase, 121 × 37 × 152 cm": "lanesund-bookcase-121-x-37-x-152",
"LANESUND|Glass-door cabinet, 121 × 37 × 152 cm": "lanesund-glass-door-cabinet-121-x-37-x-152",
"LANESUND|Sideboard, 161 × 47 × 81 cm": "lanesund-sideboard-161-x-47-x-81",
@@ -927,6 +933,7 @@
"MOSSJÖN|Wall cabinet w shelves/glass door, 36 × 18 × 102 cm": "mossjon-wall-cabinet-w-shelves-glass-door-36-x-1",
"MOSSJÖN|Wall cabinet with glass door, 36 × 18 × 44 cm": "mossjon-wall-cabinet-glass-door-36-x-18-x-44",
"MULIG|Clothes rack, 99 × 152 cm": "mulig-clothes-rack-99-x-152",
+ "MULIG|Drying rack, in/outdoor": "mulig-drying-rack-in-outdoor",
"MULLSJÖ|Desk, 135 × 70 cm": "mullsjo-desk-135-x-70",
"MULLSJÖ|Swivel chair": "mullsjo-swivel-chair",
"MUSKAN|Bench, 58 × 38 cm": "muskan-bench-58-x-38",
@@ -1224,6 +1231,7 @@
"SEGERÖN|Sun lounger": "segeron-sun-lounger",
"SEGERÖN|Table, outdoor, 91 × 147 cm": "segeron-table-outdoor-91-x-147",
"SEGRARE|Desk sit/stand, 110 × 60 cm": "segrare-desk-sit-stand-110-x-60",
+ "SIGFINN|Monitor stand, fixed height": "sigfinn-monitor-stand-fixed-height",
"SKÅLBODA|Armchair": "skalboda-armchair",
"SKÅLSTA|Chair": "skalsta-chair",
"SKÅLSTA|Table, 140 × 80 cm": "skalsta-table-140-x-80",
@@ -1521,6 +1529,8 @@
"VÄSMAN|Chair with armrests, outdoor": "vasman-chair-armrests-outdoor",
"VÄSMAN|Extendable table, outdoor, 135/190 × 74 cm": "vasman-extendable-table-outdoor-135-190-x-74",
"VASSHOLMEN|Chair, in/outdoor": "vassholmen-chair-in-outdoor",
+ "VATTENKAR|Desktop shelf, 49 × 15 cm": "vattenkar-desktop-shelf-49-x-15",
+ "VATTENKAR|Laptop/monitor stand, 52 × 26 cm": "vattenkar-laptop-monitor-stand-52-x-26",
"VEDBO|Armchair": "vedbo-armchair",
"VEDBO|High-back armchair": "vedbo-high-back-armchair",
"VEINGE|Easy chair": "veinge-easy-chair",
@@ -1599,6 +1609,7 @@
"VISTHUS|Chest of 6 drawers, 63 × 49 × 126 cm": "visthus-chest-6-drawers-63-x-49-x-126",
"VITTERYD|Adjustable coffee table, 97 cm": "vitteryd-adjustable-coffee-table-97",
"VITTSJÖ|Coffee table, 75 cm": "vittsjo-coffee-table-75",
+ "VITTSJÖ|Laptop stand, 35 × 65 cm": "vittsjo-laptop-stand-35-x-65",
"VITTSJÖ|Laptop table, 100 × 36 cm": "vittsjo-laptop-table-100-x-36",
"VITTSJÖ|Shelving unit, 100 × 175 cm": "vittsjo-shelving-unit-100-x-175",
"VITTSJÖ|Shelving unit, 100 × 93 cm": "vittsjo-shelving-unit-100-x-93",
@@ -1621,5 +1632,6 @@
"VITVAL|Loft bed frame, 90 × 200 cm": "vitval-loft-bed-frame-90-x-200",
"VRETSTORP|3-seat sofa-bed": "vretstorp-3-seat-sofa-bed",
"YNGVAR|Bar stool, 75 cm": "yngvar-bar-stool-75",
- "YNGVAR|Chair": "yngvar-chair"
+ "YNGVAR|Chair": "yngvar-chair",
+ "YXSTABY|Gaming monitor stand, 98 × 27 × 16 cm": "yxstaby-gaming-monitor-stand-98-x-27-x-16"
}
diff --git a/src/data/ikea-guard.ts b/src/data/ikea-guard.ts
index 048cd84..f5893ce 100644
--- a/src/data/ikea-guard.ts
+++ b/src/data/ikea-guard.ts
@@ -1,3 +1,3 @@
// Generated by scripts/ikea/build.ts from IKEA product data. Do not edit by hand.
// Real IKEA names we can't draw that look like a typo of one we can (folded, no spaces)
-export const IKEA_GUARD = "abrotten afjall alsken alvsta ananas angskorn arsjon asphult aspinge bagganas basingen batskar bengta blanda blaser boholmen bolmso borrby branas brogrund brunsta bullig burfjord byholma cissan dalskar duvholmen eklatera ekorre fagelon falskar farvik fiskbo florsjon forneby forsa forvaltare fossta frakta fridfull frihult frojda froslunda froson frost fyllen gamman gansjon gatebo gillstad godis gresla gronmes grossjon grusnarv grytas gubbarp hackas hallnas hallspar halved hammaron hamnskar hanga hassjon havsdun havsen havskal havsmal hejsta hektar helgeo hilver hogvind holmared holmeja horred hultarp hutten ikeaps2002 ikeaps2014 ikeaps2017 isjakt jagmastare jallby jattestor kalken kallarp kallboda kallror kallsjon kallsup kasker klamtare klipplax knalla knixhult knoppang kolsjon konstruera kroksjon kvalmso kvittera ladmakare larkar latsas lersta lill lilla lillabo lillhult lindasen lohals lova lyckad macksjon majsjon mala maleras manalg martorp melodi molnas moppa morkulla navlinge nereby nissedal nogsta norafors norden nydala opparyd ordning orskar piggal pinnarp pipranka plats plockar rahult ramsnas ramsta ranarp ransberg revskar ringsta rissla rockan runnen runskar saljen sandmott seglaro sidsjo sindal sindvik sjalso skalryta skarig skedstor skogsa skogskorn skogsnas skogsror smaata smalom smarra smaska smycka sonhult spantad sparka stelna stensta stensund stjarnhov storslinga strala strandad svalka svallet svansele svartho svartra sy tackan tacknan tallsparv tasjon terrsjo tisken tittebo tolken torared torkad tossig trogen troskning tvarfot tysnes uddarp undvika uppfora upplaga upplid uppvind vagdal vagomrade vagsjon vallasan vasskar vathult vedbak veddinge vedhamn viggbo vilsta vindas voxtorp vresjon";
+export const IKEA_GUARD = "abrotten afjall alsken alvsta ananas angskorn arsjon asphult aspinge bagganas basingen batskar bengta blanda blaser boholmen bolmso borrby branas brogrund brunsta bullig burfjord byholma cissan dalskar duvholmen eklatera ekorre fagelon falskar farvik fiskbo florsjon forneby forsa forvaltare fossta frakta fridfull frihult frojda froslunda froson fyllen gamman gansjon gatebo gillstad godis gresla gronmes grossjon grusnarv grytas gubbarp hackas hallnas hallspar halved hammaron hamnskar hanga hassjon havsdun havsen havskal havsmal hejsta hektar helgeo hilver hogvind holmared holmeja horred hultarp hutten ikeaps2002 ikeaps2014 ikeaps2017 isjakt jagmastare jallby jattestor kalken kallarp kallboda kallror kallsjon kallsup kasker klamtare klipplax knalla knixhult knoppang kolsjon konstruera kroksjon kvalmso kvittera ladmakare larkar latsas lersta lill lilla lillabo lillhult lindasen lohals lova lyckad macksjon majsjon mala maleras manalg martorp melodi molnas moppa morkulla navlinge nereby nissedal nogsta norafors norden nydala opparyd ordning orskar piggal pinnarp pipranka plats plockar rahult ramsnas ramsta ranarp ransberg revskar ringsta rissla rockan runnen runskar saljen sandmott seglaro sidsjo sindal sindvik sjalso skalryta skarig skedstor skogsa skogskorn skogsnas skogsror smaata smalom smarra smaska smycka sonhult spantad sparka stelna stensta stensund stjarnhov storslinga strala strandad svalka svallet svansele svartho svartra sy tackan tacknan tallsparv tasjon terrsjo tisken tittebo tolken torared torkad tossig trogen troskning tvarfot tysnes uddarp undvika uppfora upplaga upplid uppvind vagdal vagomrade vagsjon vallasan vasskar vathult vattentat vedbak veddinge vedhamn viggbo vilsta vindas voxtorp vresjon";
diff --git a/src/data/ikea-items.ts b/src/data/ikea-items.ts
index 89266f5..3a68c85 100644
--- a/src/data/ikea-items.ts
+++ b/src/data/ikea-items.ts
@@ -137,6 +137,7 @@ billy-oxberg-bookcase-w-hght-ext-ut-pnl-glss-drs|89287433
bingsta-armchair|10455655
bissa-shoe-cabinet-2-compartments|70530218 70530256
bissa-shoe-cabinet-3-compartments|10530259 10530221
+bjorkasen-laptop-stand|90467838 20636415
bjorkberget-swivel-chair|60487159 20487161
bjorksnas-bed-frame-standard-king-150-x-200|79501725 09501724 69501721 49501722
bjorksnas-bedside-table-48-x-38|70407360
@@ -151,6 +152,7 @@ boastad-sideboard-161-x-52-x-75|30507012
boastad-wall-shelf-181-x-32-x-32|00507018
boaxel-shelving-unit-62-x-40-x-201|09590126 09392616 89590127
bollpojke-desk-90-x-55|00591366 00604161
+bollsidan-laptop-stand-68-x-36|30574370
bolmen-step-stool|70574429
bondholmen-2-seat-sofa-outdoor|49583732
bondholmen-2-seat-sofa-outdoor-139-x-81-x-73|50558185
@@ -210,6 +212,7 @@ danderyd-dining-table-130-x-80|40568726 20568727 10463858
danderyd-drop-leaf-table-74-134-x-80|10516121
docksta-table-103|19324995
domsten-stool|60554380
+dubbla-laptop-stand-60-x-40|80534701
duvskar-chair-in-outdoor|70515760
duvskar-table-outdoor-76-x-63|90515759
dyvlinge-swivel-easy-chair|20623861 60581920 00570830 50570837
@@ -320,6 +323,7 @@ frosjon-shelving-unit-40-x-96|70574900
frosjon-trolley-55-x-35|40574906
froskelas-gaming-desk-144-x-71|00619681
froskelas-storage-unit-63-x-35-x-141|40619684
+frost-drying-rack-in-outdoor|40244831
frosvi-folding-chair|10534318 70534315 80534329 80534334 10534323
frotorp-coffee-table-88|70622091 70497582
frotorp-side-table-48|10492276 30622093
@@ -555,6 +559,7 @@ ivar-wall-cabinet-doors-160-x-30-x-83|09417382
ivosjon-cabinet-doors-33-x-34-x-99|30569095 90609871
ivosjon-wash-basin-base-cabinet-50-x-33-x-57|20597292
jakobsfors-coffee-table-80|90500121 50515167
+jall-drying-rack-in-outdoor|80242892
janinge-chair|70246089
jarvfjallet-office-chair-armrests|20510642 00521854
jattebo-2-5-seat-mod-sofa-w-chaise-longue|89469490 79617599 79618532 19471340 09617748 09617418 09490103 99607617 79607637 69607633 69490100 19607621
@@ -718,6 +723,7 @@ landskrona-armchair|69269722 09269720 29415787 69416394 19269164 99269725 494163
landskrona-chaise-longue-add-on-unit|79270254 89416406 89270244 79415803 49270241 39415800 29416409 89270239 69270240 89124035 09124039
landskrona-corner-sofa-5-seat|29270063 79270065 49270076 99416397 59416399 49415791 39270072 69270042 79031843 89031847 69270037
landskrona-corner-sofa-6-seat|29270218 29046272 09270219 09046268 49270222 69270221 89415794 79416402 69270235 59270231 39415796
+lanespelare-monitor-stand-97-x-19|00588873
lanesund-bookcase-121-x-37-x-152|20434827
lanesund-glass-door-cabinet-121-x-37-x-152|80466556
lanesund-sideboard-161-x-47-x-81|90466546
@@ -997,6 +1003,7 @@ mossjon-glass-door-cabinet-2-doors-60-x-34-x-146|30564333
mossjon-wall-cabinet-glass-door-36-x-18-x-44|20621640
mossjon-wall-cabinet-w-shelves-glass-door-36-x-1|60567778
mulig-clothes-rack-99-x-152|60179434
+mulig-drying-rack-in-outdoor|50228755
mullsjo-desk-135-x-70|30553240
mullsjo-swivel-chair|70576584
muskan-bench-58-x-38|50345957
@@ -1301,6 +1308,7 @@ segeron-one-seat-section-outdoor|50510805
segeron-sun-lounger|79500863 20510798
segeron-table-outdoor-91-x-147|10510812 90510813
segrare-desk-sit-stand-110-x-60|40534703
+sigfinn-monitor-stand-fixed-height|20362929 60467689
skalboda-armchair|40555309 90554388 20582035
skalsta-chair|39612829 79612832 99612826 59612847 29612844 29608465 19608121 09608471 69608468 29608470 49608756 69608755 79608745 09608744 39608120 99590768 29608427 79590769 49612838 09612835 89612841
skalsta-table-140-x-80|19608263 59608336 59590765 09608287 99608320 19590767 39608337 99608235 79608321 89608288 99608264 69608289 59608119 59608322 19608319 29608286 29608234 39590766
@@ -1609,6 +1617,8 @@ varmanso-table-outdoor-224-x-93|10515683
vasman-chair-armrests-outdoor|70563402 40211637
vasman-extendable-table-outdoor-135-190-x-74|30469034
vassholmen-chair-in-outdoor|30503740
+vattenkar-desktop-shelf-49-x-15|20541568 40541572
+vattenkar-laptop-monitor-stand-52-x-26|80541565
vedbo-armchair|00423580 30424125
vedbo-high-back-armchair|70424133 70423591
veinge-easy-chair|30565158 80558570 50565162
@@ -1689,6 +1699,7 @@ visthus-chest-6-drawers-63-x-49-x-126|40493444
visthus-wardrobe-122-x-216|90493446
vitteryd-adjustable-coffee-table-97|20530065
vittsjo-coffee-table-75|80213309 30604348
+vittsjo-laptop-stand-35-x-65|00250249
vittsjo-laptop-table-100-x-36|60619536 40619537
vittsjo-shelving-unit-100-x-175|20213312
vittsjo-shelving-unit-100-x-93|90305803
@@ -1712,4 +1723,5 @@ vitval-bunk-bed-frame-90-x-200|80411272
vitval-loft-bed-frame-90-x-200|10411242
vretstorp-3-seat-sofa-bed|89491245 19491239 69491251 49491233 39491257
yngvar-bar-stool-75|60400745
-yngvar-chair|80417636`;
+yngvar-chair|80417636
+yxstaby-gaming-monitor-stand-98-x-27-x-16|80620001`;
diff --git a/src/data/ikea-rows.ts b/src/data/ikea-rows.ts
index ce8e9d5..7eb7b4d 100644
--- a/src/data/ikea-rows.ts
+++ b/src/data/ikea-rows.ts
@@ -125,6 +125,7 @@ BILLY / OXBERG|cabrow|Bookcase with panel/glass doors, 120 × 30 × 202 cm|120|2
BILLY / OXBERG|cabrow|Bookcase with panel/glass doors, 160 × 30 × 202 cm|160|202|30|n=2,of=cabinet
BILLY / OXBERG|cabrow|Bookcase w height extension ut/drs, 160 × 30 × 237 cm|160|237|30|n=2,of=cabinet
BINGSTA|armchair|Armchair|75|90|80
+BJÖRKÅSEN|riser|Laptop stand|40|15|26
BJÖRKBERGET|office|Swivel chair|60|105|64|arms=none
BJÖRKSNÄS|bed|Bed frame, Standard King, 150 × 200 cm|166|100|209|m=150
BJÖRKSNÄS|chest|Chest of 5 drawers, 90 × 47 × 90 cm|90|90|47|rows=5
@@ -139,6 +140,7 @@ BOASTAD|sideboard|Sideboard, 161 × 52 × 75 cm|161|75|52
BOASTAD|wallshelf|Wall shelf, 181 × 32 × 32 cm|181|32|32
BOAXEL|open|Shelving unit, 62 × 40 × 201 cm|62|201|40
BOLLPOJKE|desk|Desk, 90 × 55 cm|90|74|55
+BOLLSIDAN|riser|Laptop stand, 68 × 36 cm|68|15|36
BOLMEN|stool|Step stool|35|50|35
BONDHOLMEN|armchair|Armchair, outdoor|75|90|80||outdoor garden
BONDHOLMEN|backbench|Bench with backrest, outdoor|120|86|60||outdoor garden
@@ -191,6 +193,7 @@ DANDERYD|dining|Dining table, 130 × 80 cm|130|74|80
DANDERYD|dropleaf|Drop-leaf table, 74/134 × 80 cm|134|75|80|leaves=2,leaf=30
DOCKSTA|dining|Table, 103 cm|103|74|103|round=1
DOMSTEN|stool|Stool|35|45|35
+DUBBLA|riser|Laptop stand, 60 × 40 cm|60|15|40
DUVSKÄR|chair|Chair, in/outdoor|44|88|50||outdoor garden
DUVSKÄR|dining|Table, outdoor, 76 × 63 cm|76|74|63||outdoor garden
DYVLINGE|swivel|Swivel easy chair|78|98|80|arms=none
@@ -297,6 +300,7 @@ FRÖSJÖN|open|Shelving unit, 40 × 156 cm|40|156|35
FRÖSJÖN|trolley|Trolley, 55 × 35 cm|55|80|35
FRÖSKELÅS|desk|Gaming desk, 144 × 71 cm|144|74|71
FRÖSKELÅS|open|Storage unit, 63 × 35 × 141 cm|63|141|35
+FROST|airer|Drying rack, in/outdoor|140|95|55|cat=Drying rack|outdoor garden
FRÖSVI|chair|Folding chair|44|88|50
FRÖTORP|coffee|Coffee table, 88 cm|88|45|88|round=1
FRÖTORP|side|Side table, 48 cm|48|50|48|round=1
@@ -513,6 +517,7 @@ IVAR|slidecab|Cabinet with sliding doors, 80 × 30 × 60 cm|80|60|30|slides=2
IVÖSJÖN|cabinet|Cabinet with doors, 33 × 34 × 99 cm|33|99|34
IVÖSJÖN|washstand|Wash-basin base cabinet, 50 × 33 × 57 cm|50|57|33|z=d1,hung=1
JAKOBSFORS|coffee|Coffee table, 80 cm|80|45|80|round=1
+JÄLL|airer|Drying rack, in/outdoor|140|95|55|cat=Drying rack|outdoor garden
JÄRVFJÄLLET|office|Office chair with armrests|64|105|64|arms=slim
JÄTTEBO|chaise|2,5-seat mod sofa w chaise longue|226|85|160|seats=3,arms=wide,chaise=right,sd=92
JÄTTEBO|chaise|3,5-seat mod sofa w chaise longues|290|85|160|seats=4,arms=wide,chaise=both,sd=92
@@ -657,6 +662,7 @@ LANDSKRONA|section|Chaise longue, add-on unit|63|89|157|seats=1
LANDSKRONA|sofa|2-seat sofa|170|85|92|seats=2,arms=slim
LANDSKRONA|sofa|4-seat sofa|290|85|92|seats=4,arms=slim
LANDSKRONA|sofa|5-seat sofa|329|89|89|seats=5,arms=slim
+LÅNESPELARE|riser|Monitor stand, 97 × 19 cm|97|15|19|cat=Monitor stand
LANESUND|bookcase|Bookcase, 121 × 37 × 152 cm|121|152|37
LANESUND|cabinet|Glass-door cabinet, 121 × 37 × 152 cm|121|152|37
LANESUND|sideboard|Sideboard, 161 × 47 × 81 cm|161|81|47
@@ -927,6 +933,7 @@ MÖRTFORS|pouffe|Pouffe, 47 × 47 cm|47|42|47
MOSSJÖN|cabinet|Glass-door cabinet with 2 doors, 60 × 34 × 146 cm|60|146|34
MOSSJÖN|wallcab|Wall cabinet with glass door, 36 × 18 × 44 cm|36|44|18|doors=1
MOSSJÖN|wallcab|Wall cabinet w shelves/glass door, 36 × 18 × 102 cm|36|102|18|doors=1
+MULIG|airer|Drying rack, in/outdoor|140|95|55|cat=Drying rack|outdoor garden
MULIG|clothesrack|Clothes rack, 99 × 152 cm|99|152|46
MULLSJÖ|desk|Desk, 135 × 70 cm|135|74|70
MULLSJÖ|office|Swivel chair|60|105|64|arms=none
@@ -1225,6 +1232,7 @@ SEGERÖN|section|Corner section with cushion|92|83|92|seats=1,corner=left|outdoo
SEGERÖN|section|Corner section, outdoor|92|83|92|seats=1,corner=left|outdoor garden
SEGERÖN|sofa|2-seat sofa, outdoor|170|85|92|seats=2|outdoor garden
SEGRARE|desk|Desk sit/stand, 110 × 60 cm|110|74|60
+SIGFINN|riser|Monitor stand, fixed height|55|15|24|cat=Monitor stand
SKÅLBODA|armchair|Armchair|75|90|80
SKÅLSTA|chair|Chair|44|88|50
SKÅLSTA|dining|Table, 140 × 80 cm|140|74|80
@@ -1522,6 +1530,8 @@ VÄRMANSÖ|dining|Table, outdoor, 224 × 93 cm|224|74|93||outdoor garden
VÄSMAN|chair|Chair with armrests, outdoor|44|88|50|arms=slim|outdoor garden
VÄSMAN|dining|Extendable table, outdoor, 135/190 × 74 cm|135|74|74||outdoor garden
VASSHOLMEN|chair|Chair, in/outdoor|44|88|50||outdoor garden
+VATTENKAR|riser|Desktop shelf, 49 × 15 cm|49|15|15|cat=Desktop shelf
+VATTENKAR|riser|Laptop/monitor stand, 52 × 26 cm|52|15|26
VEDBO|armchair|Armchair|75|90|80
VEDBO|armchair|High-back armchair|75|104|80
VEINGE|armchair|Easy chair|75|90|80
@@ -1603,6 +1613,7 @@ VITTSJÖ|coffee|Coffee table, 75 cm|75|40|75|legs=square,shelf=1,round=1
VITTSJÖ|desk|Laptop table, 100 × 36 cm|100|74|36
VITTSJÖ|open|Shelving unit, 100 × 93 cm|100|93|36
VITTSJÖ|open|Shelving unit, 100 × 175 cm|100|175|36
+VITTSJÖ|riser|Laptop stand, 35 × 65 cm|35|65|50
VITTSKÄR|chair|Chair with armrests|44|88|50|arms=slim|outdoor garden
VITTSKÄR|chaise|3-seat sofa with chaise longue|226|85|160|seats=3,arms=wide,chaise=right,sd=92
VITTSKÄR|coffee|Coffee table, 110 × 58 cm|110|45|58||outdoor garden
@@ -1622,4 +1633,5 @@ VITVAL|bunk|Bunk bed frame, 90 × 200 cm|211|160|100|m=90
VITVAL|loft|Loft bed frame, 90 × 200 cm|211|195|100|m=90
VRETSTORP|sofa|3-seat sofa-bed|230|85|92|seats=3
YNGVAR|chair|Chair|44|88|50
-YNGVAR|stool|Bar stool, 75 cm|35|75|35`;
+YNGVAR|stool|Bar stool, 75 cm|35|75|35
+YXSTABY|riser|Gaming monitor stand, 98 × 27 × 16 cm|98|16|27|cat=Monitor stand`;
diff --git a/src/lib/plan/airer.ts b/src/lib/plan/airer.ts
new file mode 100644
index 0000000..fbbaf64
--- /dev/null
+++ b/src/lib/plan/airer.ts
@@ -0,0 +1,77 @@
+import type { PartPiece, ProductSpec } from "../types";
+import { PlanBuilder } from "./builder";
+import { clamp } from "./math";
+
+/**
+ * A freestanding drying rack (MULIG, JÄLL): two end frames of tube on legs, rails clicked in between them across the
+ * top, and a wing hooked on at the front and the back that folds out flat.
+ */
+export function buildAirer(b: PlanBuilder, s: ProductSpec) {
+ const W = s.size.w * 10, H = s.size.h * 10, D = s.size.d * 10;
+ const tube = 22, rail = 12;
+ const Dc = clamp(D * 0.42, 250, 500); // the middle part, between the legs
+ const wing = (D - Dc) / 2;
+ const ex = W / 2 - tube / 2;
+ const yTop = H - tube / 2;
+
+ const endPieces: PartPiece[] = [];
+ for (const z of [-Dc / 2 + tube / 2, Dc / 2 - tube / 2]) endPieces.push({ shape: "cyl", size: [tube, H, tube], pos: [0, H / 2, z] });
+ endPieces.push({ shape: "cyl", size: [tube, Dc, tube], pos: [0, yTop, 0], rot: [Math.PI / 2, 0, 0] });
+ endPieces.push({ shape: "cyl", size: [tube - 4, Dc - tube, tube - 4], pos: [0, 260, 0], rot: [Math.PI / 2, 0, 0] });
+ const endC = b.compound("End frame", endPieces, { material: "metal" });
+ const ends = [-1, 1].map((sx) => b.place(endC.type, [sx * ex + endC.mid[0], endC.mid[1], endC.mid[2]]));
+
+ const nr = clamp(Math.round(Dc / 70), 3, 7);
+ const railT = b.part("Rail", [rail, W - tube, rail], { shape: "cyl", material: "metal" });
+ const rz = (i: number) => -Dc / 2 + tube + ((Dc - 2 * tube) * i) / (nr - 1);
+ const rails = Array.from({ length: nr }, (_, i) => b.place(railT, [0, yTop, rz(i)], [0, 0, Math.PI / 2]));
+
+ // a wing: a frame of tube with rails across it, lying flat out from the top
+ const wn = clamp(Math.round(wing / 70), 2, 5);
+ const wingPieces: PartPiece[] = [];
+ for (const x of [-ex, ex]) wingPieces.push({ shape: "cyl", size: [tube - 4, wing, tube - 4], pos: [x, 0, wing / 2], rot: [Math.PI / 2, 0, 0] });
+ wingPieces.push({ shape: "cyl", size: [tube - 4, W - tube, tube - 4], pos: [0, 0, wing], rot: [0, 0, Math.PI / 2] });
+ for (let i = 1; i < wn; i++) wingPieces.push({ shape: "cyl", size: [rail, W - tube, rail], pos: [0, 0, (wing * i) / wn], rot: [0, 0, Math.PI / 2] });
+ const wingC = b.compound("Wing", wingPieces, { material: "metal" });
+ const wings = [1, -1].map((sz) =>
+ sz > 0
+ ? b.place(wingC.type, [wingC.mid[0], yTop + wingC.mid[1], Dc / 2 + wingC.mid[2]])
+ : b.place(wingC.type, [wingC.mid[0], yTop + wingC.mid[1], -Dc / 2 - wingC.mid[2]], [0, Math.PI, 0]),
+ );
+
+ b.step(
+ {
+ title: "Click the rails into one end frame",
+ detail: "Stand the end frame up, then push each rail into its hole along the top until it clicks.",
+ kind: "join",
+ },
+ () => {
+ b.add(ends[0], [-260, 0, 0]);
+ b.then(0.1);
+ b.stagger(0.14);
+ rails.forEach((k) => b.add(k, [300, 0, 0]));
+ },
+ );
+
+ b.step(
+ {
+ title: "Add the other end frame",
+ detail: "Line it up with the free ends of the rails and press it on, one rail at a time.",
+ kind: "join",
+ people: W > 1200 ? 2 : 1,
+ },
+ () => b.add(ends[1], [320, 0, 0]),
+ );
+
+ b.step(
+ {
+ title: "Hook on the wings",
+ detail: "One along the front and one along the back. Fold them out flat to dry, and down again to store.",
+ kind: "join",
+ },
+ () => {
+ b.stagger(0.3);
+ wings.forEach((k, i) => b.add(k, [0, 220, i === 0 ? 200 : -200]));
+ },
+ );
+}
diff --git a/src/lib/plan/riser.ts b/src/lib/plan/riser.ts
new file mode 100644
index 0000000..f061665
--- /dev/null
+++ b/src/lib/plan/riser.ts
@@ -0,0 +1,67 @@
+import type { ProductSpec, Vec3 } from "../types";
+import { HW, PlanBuilder, type FitOpts } from "./builder";
+import { clamp } from "./math";
+
+/**
+ * A laptop or monitor stand (BOLLSIDAN, VATTENKAR, YXSTABY): a top on two side panels, put together upside down,
+ * felt pads under the sides so it doesn't scratch the desk, then turned over.
+ */
+export function buildRiser(b: PlanBuilder, s: ProductSpec) {
+ const W = s.size.w * 10, H = s.size.h * 10, D = s.size.d * 10;
+ const tt = clamp(H * 0.12, 15, 22), st = clamp(W * 0.03, 15, 20);
+ const topT = b.part("Top", [W, tt, D], { material: "wood" });
+ const top = b.place(topT, [0, H - tt / 2, 0]);
+ const sideT = b.part("Side", [st, H - tt, D], { material: "wood" });
+ const sx = W / 2 - st / 2 - (H > 400 ? 0 : 20);
+ const sides = [-1, 1].map((k) => b.place(sideT, [k * sx, (H - tt) / 2, 0]));
+
+ b.step(
+ {
+ title: "Lay the top upside down",
+ detail: "On the flattened box, so the surface stays scratch free.",
+ pose: "-y",
+ kind: "general",
+ warnings: ["floor"],
+ },
+ () => b.add(top, [0, 160, 0]),
+ );
+ b.step(
+ {
+ title: "Screw on the sides",
+ detail: "Two screws through the top into each side. Snug is enough.",
+ tools: ["screwdriver"],
+ pose: "-y",
+ kind: "screws",
+ },
+ () => {
+ b.stagger(0.25);
+ sides.forEach((k, i) => b.add(k, [(i === 0 ? -1 : 1) * 160, -200, 0]));
+ b.then(0.1);
+ const sc: FitOpts[] = [];
+ for (const [i, k] of sides.entries()) for (const z of [-D / 4, D / 4]) sc.push({ on: top, at: [(i === 0 ? -1 : 1) * sx, H, z] as Vec3, dir: [0, -1, 0] as Vec3, mate: k });
+ b.fits(HW.screwM, sc, 0.1);
+ },
+ );
+ b.step(
+ {
+ title: "Stick a felt pad under each corner",
+ detail: "Peel off the backing and press them on firmly.",
+ pose: "-y",
+ kind: "general",
+ },
+ () => {
+ const list: FitOpts[] = [];
+ for (const k of sides) for (const z of [-D / 2 + 25, D / 2 - 25]) list.push({ on: k, at: [b.partItem(k).final.pos[0], 0, z], dir: [0, 1, 0], hole: false });
+ b.fits(HW.glide, list, 0.1);
+ },
+ );
+ b.step(
+ {
+ title: "Turn it over",
+ detail: "Stand it on the desk and check it doesn't rock.",
+ pose: "+y",
+ kind: "flip",
+ },
+ () => {},
+ );
+}
diff --git a/src/lib/plan/shelf.ts b/src/lib/plan/shelf.ts
index 39c9431..45b0657 100644
--- a/src/lib/plan/shelf.ts
+++ b/src/lib/plan/shelf.ts
@@ -7,6 +7,7 @@ import { buildRack } from "./rack";
import { buildScreen } from "./screen";
import { CASTOR_H } from "./castors";
import { buildCoatStand, buildHatRack } from "./stands";
+import { buildAirer } from "./airer";
export function defaultsShelf(s: ProductSpec): ShelfParams {
const p = s.shelf ?? {};
@@ -30,6 +31,7 @@ export function buildShelf(b: PlanBuilder, s: ProductSpec) {
if (s.shelf?.style === "screen") return buildScreen(b, s);
if (s.shelf?.style === "hatrack") return buildHatRack(b, s);
if (s.shelf?.style === "stand") return buildCoatStand(b, s);
+ if (s.shelf?.style === "airer") return buildAirer(b, s);
const p = defaultsShelf(s);
if (p.style === "grid") return s.shelf?.underframe ? onUnderframe(b, s, p) : s.shelf?.inserts ? withInserts(b, s, p) : grid(b, s, p);
if (s.shelf?.rail) return withRail(b, s, p);
diff --git a/src/lib/plan/table.ts b/src/lib/plan/table.ts
index 4b6dec9..0e09fc1 100644
--- a/src/lib/plan/table.ts
+++ b/src/lib/plan/table.ts
@@ -6,6 +6,7 @@ import { buildGateleg } from "./gateleg";
import { buildCornerDesk } from "./cornerdesk";
import { buildDeskDrawers } from "./deskdraw";
import { buildBoxDesk } from "./boxdesk";
+import { buildRiser } from "./riser";
export function defaultsTable(s: ProductSpec): TableParams {
const p = s.table ?? {};
@@ -24,6 +25,7 @@ export function defaultsTable(s: ProductSpec): TableParams {
export function buildTable(b: PlanBuilder, s: ProductSpec) {
if (s.table?.drawers) return buildDeskDrawers(b, s);
if (s.table?.frame) return buildBoxDesk(b, s);
+ if (s.table?.riser) return buildRiser(b, s);
if (s.table?.ell) return buildCornerDesk(b, s);
if (s.table?.gate) return buildGateleg(b, s);
if (s.table?.leaves) return buildDropLeaf(b, s);
diff --git a/src/lib/products.ts b/src/lib/products.ts
index 1536369..0a72003 100644
--- a/src/lib/products.ts
+++ b/src/lib/products.ts
@@ -81,7 +81,9 @@ export type Kind =
| "hatrack"
| "coatstand"
| "pouffe"
- | "chairbed";
+ | "chairbed"
+ | "airer"
+ | "riser";
export type X = {
rows?: number;
@@ -322,7 +324,7 @@ const MIN: Record<Kind, number> = {
cube: 40, bookcase: 50, open: 40, chest: 90, nightstand: 40, desk: 25, coffee: 20, side: 15, dining: 40,
bed: 100, wardrobe: 120, cabinet: 60, sideboard: 80, tv: 60, shoe: 45, chair: 25, stool: 12, bench: 20, sofa: 40, armchair: 30,
wallshelf: 25, wallcab: 40, kitchen: 50, trolley: 25, bar: 35, console: 30, kidstable: 15, kidschair: 20,
- office: 20, chaise: 55, corner: 70, cot: 35, bunk: 90, loft: 75, dropleaf: 40, daybed: 60, mixed: 50, sliding: 110, slidecab: 60, bookrow: 120, cabrow: 120, section: 25, gateleg: 50, washstand: 35, sinkcab: 45, appliance: 50, shoerack: 25, clothesrack: 20, changing: 50, divider: 20, backbench: 35, junior: 25, lounge: 30, highchair: 15, cornercab: 45, cornerrobe: 150, usofa: 110, lounger: 35, swivel: 25, conference: 20, cornerdesk: 35, conftable: 30, lidbox: 30, shelfbench: 30, workbench: 45, extension: 20, deskdraw: 40, boxdesk: 35, hatrack: 20, coatstand: 15, pouffe: 10, chairbed: 35,
+ office: 20, chaise: 55, corner: 70, cot: 35, bunk: 90, loft: 75, dropleaf: 40, daybed: 60, mixed: 50, sliding: 110, slidecab: 60, bookrow: 120, cabrow: 120, section: 25, gateleg: 50, washstand: 35, sinkcab: 45, appliance: 50, shoerack: 25, clothesrack: 20, changing: 50, divider: 20, backbench: 35, junior: 25, lounge: 30, highchair: 15, cornercab: 45, cornerrobe: 150, usofa: 110, lounger: 35, swivel: 25, conference: 20, cornerdesk: 35, conftable: 30, lidbox: 30, shelfbench: 30, workbench: 45, extension: 20, deskdraw: 40, boxdesk: 35, hatrack: 20, coatstand: 15, pouffe: 10, chairbed: 35, airer: 10, riser: 10,
};
const CATEGORY: Record<Kind, string> = {
@@ -331,7 +333,7 @@ const CATEGORY: Record<Kind, string> = {
cabinet: "Cabinet", sideboard: "Sideboard", tv: "TV bench", shoe: "Shoe cabinet", chair: "Chair", stool: "Stool",
bench: "Bench", sofa: "Sofa", armchair: "Armchair", wallshelf: "Wall shelf", wallcab: "Wall cabinet", kitchen: "Kitchen cabinet",
trolley: "Trolley", bar: "Bar table", console: "Console table", kidstable: "Children's table", kidschair: "Children's chair",
- office: "Office chair", chaise: "Sofa with chaise longue", corner: "Corner sofa", cot: "Cot", bunk: "Bunk bed", loft: "Loft bed", dropleaf: "Drop-leaf table", daybed: "Day-bed", mixed: "Cabinet with doors and drawers", sliding: "Wardrobe with sliding doors", slidecab: "Cabinet with sliding doors", bookrow: "Bookcase combination", cabrow: "Storage combination", section: "Sofa section", gateleg: "Gateleg table", washstand: "Wash-stand", sinkcab: "Sink cabinet", appliance: "Appliance cabinet", shoerack: "Shoe rack", clothesrack: "Clothes rack", changing: "Changing table", divider: "Room divider", backbench: "Bench with backrest", junior: "Junior chair", lounge: "Lounge chair", highchair: "Highchair", cornercab: "Corner base cabinet", cornerrobe: "Corner wardrobe", usofa: "U-shaped sofa", lounger: "Sun lounger", swivel: "Swivel easy chair", conference: "Conference chair", cornerdesk: "Corner desk", conftable: "Conference table", lidbox: "Storage bench", shelfbench: "Bench with storage", workbench: "Work bench", extension: "Height extension unit", deskdraw: "Desk with drawers", boxdesk: "Desk with storage", hatrack: "Hat rack", coatstand: "Hat and coat stand", pouffe: "Pouffe", chairbed: "Chair-bed",
+ office: "Office chair", chaise: "Sofa with chaise longue", corner: "Corner sofa", cot: "Cot", bunk: "Bunk bed", loft: "Loft bed", dropleaf: "Drop-leaf table", daybed: "Day-bed", mixed: "Cabinet with doors and drawers", sliding: "Wardrobe with sliding doors", slidecab: "Cabinet with sliding doors", bookrow: "Bookcase combination", cabrow: "Storage combination", section: "Sofa section", gateleg: "Gateleg table", washstand: "Wash-stand", sinkcab: "Sink cabinet", appliance: "Appliance cabinet", shoerack: "Shoe rack", clothesrack: "Clothes rack", changing: "Changing table", divider: "Room divider", backbench: "Bench with backrest", junior: "Junior chair", lounge: "Lounge chair", highchair: "Highchair", cornercab: "Corner base cabinet", cornerrobe: "Corner wardrobe", usofa: "U-shaped sofa", lounger: "Sun lounger", swivel: "Swivel easy chair", conference: "Conference chair", cornerdesk: "Corner desk", conftable: "Conference table", lidbox: "Storage bench", shelfbench: "Bench with storage", workbench: "Work bench", extension: "Height extension unit", deskdraw: "Desk with drawers", boxdesk: "Desk with storage", hatrack: "Hat rack", coatstand: "Hat and coat stand", pouffe: "Pouffe", chairbed: "Chair-bed", airer: "Drying rack", riser: "Laptop stand",
};
export const KIND_ARCH: Record<Kind, Archetype> = {
@@ -339,7 +341,7 @@ export const KIND_ARCH: Record<Kind, Archetype> = {
side: "table", dining: "table", bed: "bed", wardrobe: "cabinet", cabinet: "cabinet", sideboard: "cabinet", tv: "cabinet",
shoe: "cabinet", chair: "seat", stool: "seat", bench: "seat", sofa: "sofa", armchair: "sofa", wallshelf: "shelf", wallcab: "cabinet",
kitchen: "cabinet", trolley: "table", bar: "table", console: "table", kidstable: "table", kidschair: "seat",
- office: "seat", chaise: "sofa", corner: "sofa", cot: "bed", bunk: "bed", loft: "bed", dropleaf: "table", daybed: "bed", mixed: "cabinet", sliding: "cabinet", slidecab: "cabinet", bookrow: "shelf", cabrow: "cabinet", section: "sofa", gateleg: "table", washstand: "cabinet", sinkcab: "cabinet", appliance: "cabinet", shoerack: "shelf", clothesrack: "shelf", changing: "drawers", divider: "shelf", backbench: "seat", junior: "seat", lounge: "seat", highchair: "seat", cornercab: "cabinet", cornerrobe: "cabinet", usofa: "sofa", lounger: "seat", swivel: "seat", conference: "seat", cornerdesk: "table", conftable: "table", lidbox: "cabinet", shelfbench: "table", workbench: "table", extension: "cabinet", deskdraw: "table", boxdesk: "table", hatrack: "shelf", coatstand: "shelf", pouffe: "sofa", chairbed: "sofa",
+ office: "seat", chaise: "sofa", corner: "sofa", cot: "bed", bunk: "bed", loft: "bed", dropleaf: "table", daybed: "bed", mixed: "cabinet", sliding: "cabinet", slidecab: "cabinet", bookrow: "shelf", cabrow: "cabinet", section: "sofa", gateleg: "table", washstand: "cabinet", sinkcab: "cabinet", appliance: "cabinet", shoerack: "shelf", clothesrack: "shelf", changing: "drawers", divider: "shelf", backbench: "seat", junior: "seat", lounge: "seat", highchair: "seat", cornercab: "cabinet", cornerrobe: "cabinet", usofa: "sofa", lounger: "seat", swivel: "seat", conference: "seat", cornerdesk: "table", conftable: "table", lidbox: "cabinet", shelfbench: "table", workbench: "table", extension: "cabinet", deskdraw: "table", boxdesk: "table", hatrack: "shelf", coatstand: "shelf", pouffe: "sofa", chairbed: "sofa", airer: "shelf", riser: "table",
};
const round = (x: X) => (x.round ? { round: true } : {});
@@ -530,6 +532,12 @@ function specOf(kind: Kind, name: string, variant: string, w: number, h: number,
return { ...base, seat: { kind: "stool", seat: "round", seatH: h, splay: true, stretchers: h > 60 } };
case "bench":
return { ...base, seat: { kind: "bench", seat: "square", seatH: h, splay: false } };
+ case "airer":
+ // two end frames, rails between them and a wing each side
+ return { ...base, difficulty: 1, people: 1, shelf: { style: "airer" } };
+ case "riser":
+ // a top on two side panels, felt pads under them
+ return { ...base, difficulty: 1, people: 1, table: { attach: "screw", legs: "square", legSize: 20, topThickness: 18, shelf: false, riser: true } };
case "pouffe":
// a padded block on four legs
return { ...base, difficulty: 1, people: 1, sofa: { seats: 1, arms: "none", legs: "round", pouffe: true } };
@@ -756,5 +764,5 @@ export const KIND_DEFAULT_SIZE: Record<Kind, [number, number, number]> = {
sideboard: [140, 85, 45], tv: [150, 50, 42], shoe: [60, 100, 28], chair: [44, 88, 50], stool: [35, 45, 35], bench: [100, 45, 38],
sofa: [210, 85, 92], armchair: [75, 90, 80], wallshelf: [60, 60, 22], wallcab: [60, 60, 35], kitchen: [60, 80, 60], trolley: [50, 80, 40],
bar: [120, 105, 60], console: [100, 79, 35], kidstable: [77, 48, 55], kidschair: [34, 60, 34],
- office: [64, 105, 64], chaise: [226, 85, 160], corner: [233, 85, 171], cot: [130, 84, 68], bunk: [211, 160, 100], loft: [211, 195, 100], dropleaf: [134, 75, 80], daybed: [207, 83, 91], mixed: [80, 120, 40], sliding: [118, 200, 60], slidecab: [80, 110, 45], bookrow: [160, 202, 28], cabrow: [240, 48, 42], section: [192, 83, 92], gateleg: [151, 75, 90], washstand: [60, 83, 47], sinkcab: [60, 80, 60], appliance: [60, 200, 60], shoerack: [80, 40, 32], clothesrack: [100, 160, 46], changing: [80, 100, 55], divider: [150, 170, 25], backbench: [120, 86, 60], junior: [43, 91, 52], lounge: [72, 88, 80], highchair: [58, 90, 62], cornercab: [88, 80, 88], cornerrobe: [161, 201, 111], usofa: [306, 83, 241], lounger: [66, 87, 195], swivel: [78, 98, 80], conference: [60, 86, 60], cornerdesk: [140, 74, 130], conftable: [140, 74, 68], lidbox: [100, 48, 42], shelfbench: [110, 46, 38], workbench: [110, 90, 55], extension: [80, 35, 28], deskdraw: [120, 75, 50], boxdesk: [124, 52, 44], hatrack: [80, 26, 32], coatstand: [45, 175, 45], pouffe: [45, 42, 45], chairbed: [80, 87, 98],
+ office: [64, 105, 64], chaise: [226, 85, 160], corner: [233, 85, 171], cot: [130, 84, 68], bunk: [211, 160, 100], loft: [211, 195, 100], dropleaf: [134, 75, 80], daybed: [207, 83, 91], mixed: [80, 120, 40], sliding: [118, 200, 60], slidecab: [80, 110, 45], bookrow: [160, 202, 28], cabrow: [240, 48, 42], section: [192, 83, 92], gateleg: [151, 75, 90], washstand: [60, 83, 47], sinkcab: [60, 80, 60], appliance: [60, 200, 60], shoerack: [80, 40, 32], clothesrack: [100, 160, 46], changing: [80, 100, 55], divider: [150, 170, 25], backbench: [120, 86, 60], junior: [43, 91, 52], lounge: [72, 88, 80], highchair: [58, 90, 62], cornercab: [88, 80, 88], cornerrobe: [161, 201, 111], usofa: [306, 83, 241], lounger: [66, 87, 195], swivel: [78, 98, 80], conference: [60, 86, 60], cornerdesk: [140, 74, 130], conftable: [140, 74, 68], lidbox: [100, 48, 42], shelfbench: [110, 46, 38], workbench: [110, 90, 55], extension: [80, 35, 28], deskdraw: [120, 75, 50], boxdesk: [124, 52, 44], hatrack: [80, 26, 32], coatstand: [45, 175, 45], pouffe: [45, 42, 45], chairbed: [80, 87, 98], airer: [140, 95, 55], riser: [40, 15, 26],
};
diff --git a/src/lib/search.ts b/src/lib/search.ts
index 0fd7d0c..702c394 100644
--- a/src/lib/search.ts
+++ b/src/lib/search.ts
@@ -26,6 +26,8 @@ const CATEGORY_WORDS: [Kind, string[]][] = [
["lidbox", ["storage bench", "storage chest", "storage table", "storage ottoman", "storage footstool", "footstool with storage", "pouffe with storage", "pouf with storage", "storage pouffe", "storage pouf", "storage stool", "blanket box", "toy box", "toy chest", "bench with lid", "hope chest"]],
["divider", ["room divider", "room dividers", "folding screen", "privacy screen", "partition screen", "room screen"]],
["changing", ["changing table", "changing unit", "baby changing table", "changing station", "diaper changing table", "nappy changing table"]],
+ ["airer", ["drying rack", "clothes airer", "airer", "clothes horse", "laundry rack", "clothes drying rack", "drying stand", "laundry drying rack"]],
+ ["riser", ["laptop stand", "monitor stand", "monitor riser", "laptop riser", "screen riser", "desk riser", "desktop shelf", "monitor shelf", "computer stand"]],
["coatstand", ["coat stand", "hat and coat stand", "hat stand", "clothes stand", "coat tree", "hall tree", "hat tree", "standing coat rack", "coat rack stand"]],
["hatrack", ["hat rack", "hat shelf", "wall coat rack", "coat rack with shelf", "wall hat rack", "hat and coat rack", "coat hooks with shelf"]],
["clothesrack", ["clothes rack", "clothes rail", "clothing rack", "clothing rail", "garment rack", "garment rail", "coat rack", "coat stand"]],
@@ -88,7 +90,7 @@ const CATEGORY_WORDS: [Kind, string[]][] = [
];
const KIND_WORDS = new Map(CATEGORY_WORDS);
// rows, sections, and kinds drawn later than a family's other pieces, which only come first when asked for
-const LESSER = new Set<Kind>(["bookrow", "cabrow", "section", "sinkcab", "appliance", "washstand", "shoerack", "clothesrack", "changing", "divider", "backbench", "junior", "lounge", "highchair", "cornercab", "cornerrobe", "usofa", "lounger", "swivel", "conference", "cornerdesk", "conftable", "lidbox", "shelfbench", "workbench", "extension", "deskdraw", "boxdesk", "hatrack", "coatstand", "pouffe", "chairbed"]);
+const LESSER = new Set<Kind>(["bookrow", "cabrow", "section", "sinkcab", "appliance", "washstand", "shoerack", "clothesrack", "changing", "divider", "backbench", "junior", "lounge", "highchair", "cornercab", "cornerrobe", "usofa", "lounger", "swivel", "conference", "cornerdesk", "conftable", "lidbox", "shelfbench", "workbench", "extension", "deskdraw", "boxdesk", "hatrack", "coatstand", "pouffe", "chairbed", "airer", "riser"]);
export function kindOf(q: string): Kind | null {
const f = " " + fold(q) + " ";
diff --git a/src/lib/types.ts b/src/lib/types.ts
index 60e38b8..2cbf45e 100644
--- a/src/lib/types.ts
+++ b/src/lib/types.ts
@@ -3,7 +3,7 @@ export type Vec3 = [number, number, number];
export type Archetype = "shelf" | "drawers" | "table" | "bed" | "cabinet" | "seat" | "sofa" | "custom";
export interface ShelfParams {
- style: "grid" | "bookcase" | "rack" | "screen" | "hatrack" | "stand"; // a rack: two uprights on feet with a rail across the top; a screen: hinged panels; a hat rack on the wall; a coat stand
+ style: "grid" | "bookcase" | "rack" | "screen" | "hatrack" | "stand" | "airer"; // a rack: two uprights on feet with a rail across the top; a screen: hinged panels; a hat rack on the wall; a coat stand
cols: number;
rows: number;
shelves: number; // adjustable shelves (bookcase)
@@ -52,6 +52,7 @@ export interface TableParams {
frame?: number; // cm: a low desk whose top sits between two storage frames this wide (TROFAST)
boxes?: number; // boxes in each of those frames
shelvesIn?: boolean; // shelves in the frames instead of boxes
+ riser?: boolean; // a laptop or monitor stand: a top on two side panels
seat?: boolean; // a bench or stool built like a table: the top is its seat
inner?: boolean; // the shelf fits between the legs, screwed through them
}