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 armchairs with a footstool, pouffes and chair-beds

Youssef370f4cda7d7b
diff --git a/scripts/ikea/build.ts b/scripts/ikea/build.ts
index f225c1a..455140d 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"]);
+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"]);
function baseMatch(name: string, draw: Draw): CatalogEntry | undefined {
const fam = fold(name);
diff --git a/scripts/ikea/check.ts b/scripts/ikea/check.ts
index 6f2b969..1973d3d 100644
--- a/scripts/ikea/check.ts
+++ b/scripts/ikea/check.ts
@@ -148,6 +148,10 @@ async function main() {
expect("tjusig hat rack", "tjusig-hat-rack-79");
expect("nipasen coat stand", "nipasen-hat-and-coat-stand-181");
expect("nipasen", "nipasen-bench-shoe-storage-79-x-35-x-52");
+ // an armchair with its footstool when asked for, the armchair alone otherwise; a new piece after the family's sofa
+ expect("poang armchair and footstool", "poang-armchair-and-footstool");
+ expect("poang", "poang-armchair");
+ expect("viskafors", "viskafors-2-seat-sofa");
if (articleNo("S292.975.72") !== "29297572") fail("article numbers with an S in front don't parse");
for (const [no, slug] of [["60324520", "kallax-2x2"]] as const) {
if (articleSlug(no) !== slug) fail(`article ${no} gave ${articleSlug(no)}, expected ${slug}`);
diff --git a/scripts/ikea/classify.ts b/scripts/ikea/classify.ts
index f00a9c2..e5a3a1d 100644
--- a/scripts/ikea/classify.ts
+++ b/scripts/ikea/classify.ts
@@ -273,6 +273,8 @@ const RULES: Rule[] = [
if (/drawer/.test(what)) x.rows = 1;
return { kind: "cornercab", x };
}],
+ // an armchair with its footstool: one guide for the two of them
+ [/^(?:armchair|high-back armchair|wing chair) (?:and|with) footstool$/, () => ({ kind: "armchair", x: { foot: true, cat: "Armchair with footstool" } })],
// a hat and coat stand is one piece, whatever its name says
[/^(hat and coat stand|clothes stand|coat stand)$/, () => ({ kind: "coatstand" })],
// things that are several products, or only part of one
@@ -541,6 +543,12 @@ const RULES: Rule[] = [
// a bench with a backrest and armrests, built like a wide chair (IKEA gives no size: a typical garden bench)
[/^bench with backrest$/, (_m, c) => (c.f.spr ? "bench with backrest sold with cushions" : { kind: "backbench" })],
[/^(armchair|easy chair|wing chair|high-back armchair|low-back armchair|rocking-chair|children's armchair|armchair with cushion)$/, () => ({ kind: "armchair" })],
+ // a recliner and a wide armchair, built like any other armchair
+ [/^recliner$/, () => ({ kind: "armchair", x: { cat: "Recliner" } })],
+ [/^1,5-seat armchair$/, () => ({ kind: "armchair", x: { cat: "Armchair" } })],
+ // pouffes on legs, and chairs that fold out into a bed
+ [/^pouffe$/, () => ({ kind: "pouffe" })],
+ [/^(chair-bed|armchair-bed)$/, (m) => ({ kind: "chairbed", x: m[1] === "armchair-bed" ? { arms: "slim" } : {} })],
[/^((\d)(,5)?-seat (modular )?sofa(-bed)?|sofa|sofa-bed|loveseat)$/, (m) => {
const seats = m[2] ? Number(m[2]) + (m[3] ? 1 : 0) : 3;
return seats > 6 ? "sofa with more than 6 seats" : { kind: "sofa", x: { seats } };
@@ -828,6 +836,8 @@ export function classify(f: Fact, hints: Hints): Verdict {
[h, d] = [hint.h, hint.d];
}
if (kind === "armchair" && /wing|high-back/.test(t) && guessed.h) h = 104;
+ if (kind === "armchair" && /^1,5-seat/.test(t) && guessed.w) w = 105;
+ if (kind === "pouffe" && v.length === 2) [w, d] = [v[0], v[1]];
if (kind === "armchair" && kids && guessed.w) [w, h, d] = [55, 68, 58];
if (kind === "swivel" && kids && guessed.w) [w, h, d] = [59, 70, 64];
if (hint && guessed.w && guessed.h && hint.kind === kind && (kind !== "sofa" || hint.x.seats === x.seats)) {
diff --git a/scripts/ikea/slugs.json b/scripts/ikea/slugs.json
index dcec77d..5f2732a 100644
--- a/scripts/ikea/slugs.json
+++ b/scripts/ikea/slugs.json
@@ -196,8 +196,10 @@
"EKENABBEN|Cabinet, 70 × 35 × 51 cm": "ekenabben-cabinet-70-x-35-x-51",
"EKENABBEN|Open shelving unit, 70 × 34 × 154 cm": "ekenabben-open-shelving-unit-70-x-34-x-154",
"EKENÄSET|Armchair": "ekenaset-armchair",
+ "EKENÄSET|Armchair and footstool": "ekenaset-armchair-and-footstool",
"EKENÄSET|Bench, 112 cm": "ekenaset-bench-112",
"EKENÄSET|High-back armchair": "ekenaset-high-back-armchair",
+ "EKENÄSET|High-back armchair and footstool": "ekenaset-high-back-armchair-and-footstool",
"EKET|Cabinet with 2 drawers, 35 × 35 × 35 cm": "eket-cabinet-2-drawers-35-x-35-x-35",
"EKET|Cabinet with 2 drawers, 70 × 35 × 35 cm": "eket-cabinet-2-drawers-70-x-35-x-35",
"EKET|Cabinet, 35 × 25 × 35 cm": "eket-cabinet-35-x-25-x-35",
@@ -211,10 +213,12 @@
"EKHOLMA|2-seat sofa-bed": "ekholma-2-seat-sofa-bed",
"EKHOLMA|3-seat sofa": "ekholma-3-seat-sofa",
"EKHOLMA|Corner sofa, 4-seat with open end": "ekholma-corner-sofa-4-seat-open-end",
+ "EKOLSUND|Recliner": "ekolsund-recliner",
"EKRAR|Hat and coat stand, 169 cm": "ekrar-hat-and-coat-stand-169",
"EKTORP|2-seat sofa": "ektorp-2-seat-sofa",
"EKTORP|3-seat sofa with chaise longue": "ektorp-3-seat-sofa-chaise-longue",
"EKTORP|Armchair": "ektorp-armchair",
+ "EKTORP|Armchair and footstool": "ektorp-armchair-and-footstool",
"EKTORP|Corner sofa, 4-seat": "ektorp-corner-sofa-4-seat",
"ELDBERGET / MALSKÄR|Swivel chair": "eldberget-malskar-swivel-chair",
"ENHET / TVÄLLEN|Open wash-stand with 2 shelves, 64 × 43 × 65 cm": "enhet-tvallen-open-wash-stand-2-shelves-64-x-43",
@@ -278,6 +282,7 @@
"FLISAT|Children's table, 83 × 58 cm": "flisat-children-s-table-83-x-58",
"FLISAT|Open storage, 88 × 38 × 117 cm": "flisat-open-storage-88-x-38-x-117",
"FÖRHÖJA|Kitchen trolley, 100 × 43 cm": "forhoja-kitchen-trolley-100-x-43",
+ "FÖRLUNDA|Pouffe": "forlunda-pouffe",
"FÖRSÄLJARE|Sideboard, 140 × 46 × 78 cm": "forsaljare-sideboard-140-x-46-x-78",
"FÖRSIKTIG|Children's stool": "forsiktig-children-s-stool",
"FRANKLIN|Bar stool with backrest, foldable, 63 cm": "franklin-bar-stool-backrest-foldable-63",
@@ -295,6 +300,7 @@
"FRÖTORP|Coffee table, 88 cm": "frotorp-coffee-table-88",
"FRÖTORP|Side table, 48 cm": "frotorp-side-table-48",
"FRYKSÅS|Armchair": "fryksas-armchair",
+ "FRYKSÅS|Armchair and footstool": "fryksas-armchair-and-footstool",
"FRYKSÅS|Armchair with cushion": "fryksas-armchair-cushion",
"FRYKSÅS|Cabinet, 81 × 124 cm": "fryksas-cabinet-81-x-124",
"FRYKSÅS|Desk, 110 × 54 cm": "fryksas-desk-110-x-54",
@@ -463,6 +469,7 @@
"IKEA PS 2026|Bench, 127 cm": "ikea-ps-2026-bench-127",
"IKEA PS 2026|Cabinet, 80 × 46 × 140 cm": "ikea-ps-2026-cabinet-80-x-46-x-140",
"IKEA PS 2026|Chair": "ikea-ps-2026-chair",
+ "IKEA PS 2026|Chair-bed": "ikea-ps-2026-chair-bed",
"IKEA PS 2026|Easy chair": "ikea-ps-2026-easy-chair",
"IKEA PS 2026|Folding chair": "ikea-ps-2026-folding-chair",
"IKEA PS 2026|Glass-door cabinet, 73 × 36 × 160 cm": "ikea-ps-2026-glass-door-cabinet-73-x-36-x-160",
@@ -703,7 +710,9 @@
"LUSTEBO|Chair": "lustebo-chair",
"LYCKAN|Chair": "lyckan-chair",
"LYCKSELE LÖVÅS|2-seat sofa-bed": "lycksele-lovas-2-seat-sofa-bed",
+ "LYCKSELE LÖVÅS|Chair-bed": "lycksele-lovas-chair-bed",
"LYCKSELE MURBO|2-seat sofa-bed": "lycksele-murbo-2-seat-sofa-bed",
+ "LYCKSELE MURBO|Chair-bed": "lycksele-murbo-chair-bed",
"MÅBÄRSSKÄR|Coffee table, 61 × 41 cm": "mabarsskar-coffee-table-61-x-41",
"MACKAPÄR|Coat rack with shoe storage unit, 78 × 32 × 200 cm": "mackapar-coat-rack-shoe-storage-unit-78-x-32-x-2",
"MACKAPÄR|Shoe rack, 78 × 32 × 40 cm": "mackapar-shoe-rack-78-x-32-x-40",
@@ -900,6 +909,7 @@
"MOPPE|Mini chest of drawers, 42 × 18 × 32 cm": "moppe-mini-chest-drawers-42-x-18-x-32",
"MÖRBYLÅNGA|Table, 140 × 85 cm": "morbylanga-table-140-x-85",
"MÖRBYLÅNGA|Table, 145 cm": "morbylanga-table-145",
+ "MÖRTFORS|Pouffe, 47 × 47 cm": "mortfors-pouffe-47-x-47",
"MOSSJÖN|Glass-door cabinet with 2 doors, 60 × 34 × 146 cm": "mossjon-glass-door-cabinet-2-doors-60-x-34-x-146",
"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",
@@ -1018,6 +1028,7 @@
"ÖRTRÄSK|Coffee table, 110 × 68 cm": "ortrask-coffee-table-110-x-68",
"ÖRTRÄSK|Coffee table, 75 × 48 cm": "ortrask-coffee-table-75-x-48",
"OSKARSHAMN|Wing chair": "oskarshamn-wing-chair",
+ "OSKARSHAMN|Wing chair with footstool": "oskarshamn-wing-chair-footstool",
"ÖSTAVALL|Adjustable coffee table, 90 cm": "ostavall-adjustable-coffee-table-90",
"ÖVNING|Trolley, 54 × 33 cm": "ovning-trolley-54-x-33",
"PÅHL|Desk, 96 × 58 cm": "pahl-desk-96-x-58",
@@ -1117,6 +1128,7 @@
"PLATSA|Wardrobe with 3 doors, 180 × 57 × 191 cm": "platsa-wardrobe-3-doors-180-x-57-x-191",
"PLATSA|Wardrobe with 4 doors, 240 × 57 × 191 cm": "platsa-wardrobe-4-doors-240-x-57-x-191",
"PLÖJKER|Bedside table, 41 × 41 × 50 cm": "plojker-bedside-table-41-x-41-x-50",
+ "POÄNG|Armchair and footstool": "poang-armchair-and-footstool",
"RACKNÄS|Chest of 3 drawers, 69 × 78 cm": "racknas-chest-3-drawers-69-x-78",
"RÅDMANSÖ|Bed frame, Standard King, 150 × 200 cm": "radmanso-bed-frame-standard-king-150-x-200",
"RÅDMANSÖ|Bedside table, 54 × 38 × 58 cm": "radmanso-bedside-table-54-x-38-x-58",
@@ -1154,6 +1166,7 @@
"RISÖR|Room divider, 216 × 185 cm": "risor-room-divider-216-x-185",
"ROCKSJÖN|2-seat sofa": "rocksjon-2-seat-sofa",
"ROCKSJÖN|Armchair": "rocksjon-armchair",
+ "ROCKSJÖN|Armchair with footstool": "rocksjon-armchair-footstool",
"RÖNNINGE|Bar table, 75 × 75 cm": "ronninge-bar-table-75-x-75",
"RÖNNINGE|Chair": "ronninge-chair",
"RÖNNINGE|Trolley, 78 × 39 cm": "ronninge-trolley-78-x-39",
@@ -1316,6 +1329,7 @@
"STORKLINTA|Chest of 5 drawers, 40 × 50 × 120 cm": "storklinta-chest-5-drawers-40-x-50-x-120",
"STORKLINTA|Chest of 6 drawers, 140 × 50 × 75 cm": "storklinta-chest-6-drawers-140-x-50-x-75",
"STORKLINTA|Chest of 6 drawers, 70 × 50 × 120 cm": "storklinta-chest-6-drawers-70-x-50-x-120",
+ "STRANDMON|Wing chair with footstool": "strandmon-wing-chair-footstool",
"STRANDÖN|Folding stool": "strandon-folding-stool",
"STRANDÖN|Sun lounger": "strandon-sun-lounger",
"STYRSPEL|Gaming chair": "styrspel-gaming-chair",
@@ -1411,6 +1425,7 @@
"TONSTAD|TV bench, 178 × 37 × 55 cm": "tonstad-tv-bench-178-x-37-x-55",
"TORALD|Desk, 65 × 40 cm": "torald-desk-65-x-40",
"TORNSBORG|2-seat sofa-bed": "tornsborg-2-seat-sofa-bed",
+ "TORNSBORG|Armchair-bed": "tornsborg-armchair-bed",
"TORNVIKEN|Kitchen island, 126 × 77 cm": "tornviken-kitchen-island-126-x-77",
"TORNVIKEN|Open cabinet, 20 × 37 × 60 cm": "tornviken-open-cabinet-20-x-37-x-60",
"TORPARÖ|Chair with armrests, outdoor": "torparo-chair-armrests-outdoor",
@@ -1558,6 +1573,7 @@
"VINGSÖN|Wing chair, in/outdoor": "vingson-wing-chair-in-outdoor",
"VISINGSÖ|Chair with armrests": "visingso-chair-armrests",
"VISINGSÖ|Table, 70 × 70 cm": "visingso-table-70-x-70",
+ "VISKAFORS|1,5-seat armchair": "viskafors-1-5-seat-armchair",
"VISKAFORS|2-seat sofa": "viskafors-2-seat-sofa",
"VISKAFORS|3-seat sofa": "viskafors-3-seat-sofa",
"VISTHUS|Chest of 6 drawers, 63 × 49 × 126 cm": "visthus-chest-6-drawers-63-x-49-x-126",
diff --git a/src/data/ikea-guard.ts b/src/data/ikea-guard.ts
index 144dddc..b8c9ac5 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 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 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 utaker 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 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 utaker vagdal vagomrade vagsjon vallasan vasskar vathult vedbak veddinge vedhamn viggbo vilsta vindas voxtorp vresjon";
diff --git a/src/data/ikea-items.ts b/src/data/ikea-items.ts
index 119e834..27ce65a 100644
--- a/src/data/ikea-items.ts
+++ b/src/data/ikea-items.ts
@@ -216,8 +216,10 @@ dyvlinge-swivel-easy-chair|20623861 60581920 00570830 50570837
ekenabben-cabinet-70-x-35-x-51|40595206
ekenabben-open-shelving-unit-70-x-34-x-154|80487813 10487816 40596395 90596393
ekenaset-armchair|50533492 30533488 00624343 80624339 20624323 40624341 10539014 90624329 70624330
+ekenaset-armchair-and-footstool|49622804 09622820 59622808 89622798 79622812 89622816
ekenaset-bench-112|60533547
ekenaset-high-back-armchair|50624350 40624379 60624378 70624373 70624392 70624368
+ekenaset-high-back-armchair-and-footstool|09621458 49621437 59621446 49621442 79621450 99621454
eket-cabinet|69602131 69336359 79533019 59336374 49602132 29602133 19336371 90344927 60574590 80332114 09581179 20595523 60530577 80334603 50334591 30595527 80428852 70595525
eket-cabinet-2-drawers-35-x-35-x-35|30428920 20574592 30428915
eket-cabinet-2-drawers-70-x-35-x-35|00333947 80574594 80344923
@@ -233,11 +235,13 @@ ekholma-2-seat-sofa|79537404 69537409 99537403 19537398
ekholma-2-seat-sofa-bed|19598565
ekholma-3-seat-sofa|19537416 89537413 09537412 59537419
ekholma-corner-sofa-4-seat-open-end|09563076 59563074 29563075 79563073
+ekolsund-recliner|29297185 79297183
ekrar-hat-and-coat-stand-169|10415594
ektorp-2-seat-sofa|59620729 49628684 09628681 09509027 99509018 59509015 89628677
ektorp-3-seat-sofa|59619759 29509012 89509009 19509003 79509000 59628706 99628709
ektorp-3-seat-sofa-chaise-longue|29628736 59628730 99628733 99509042 89509033 49509030 19509036
ektorp-armchair|79628654 69628635 69628640 79552102 59552103 89552106 29552109
+ektorp-armchair-and-footstool|79633844 99633838 89633834 59553862 69553871 99633819 09553874
ektorp-corner-sofa-4-seat|69628664 19628666 29508994 89508986 89508991 39508984 59508997
eldberget-malskar-swivel-chair|59331847
enhet-base-cb-f-sink-60-x-60-x-75|50440426
@@ -301,6 +305,7 @@ flisat-children-s-stool|30596536
flisat-children-s-table-83-x-58|50298418
flisat-open-storage-88-x-38-x-117|60620120
forhoja-kitchen-trolley-100-x-43|80035920
+forlunda-pouffe|40572752 80572745
forsaljare-sideboard-140-x-46-x-78|90595888
forsiktig-children-s-stool|10591318
franklin-bar-stool-backrest-foldable-63|50406465 70404875
@@ -319,6 +324,7 @@ frosvi-folding-chair|10534318 70534315 80534329 80534334 10534323
frotorp-coffee-table-88|70622091 70497582
frotorp-side-table-48|10492276 30622093
fryksas-armchair|80540033
+fryksas-armchair-and-footstool|79563167
fryksas-armchair-cushion|09563156
fryksas-cabinet-81-x-124|40574096
fryksas-desk-110-x-54|60574104
@@ -504,6 +510,7 @@ ikea-ps-2026-bedside-table-30-x-30-x-50|60619942
ikea-ps-2026-bench-127|30617893
ikea-ps-2026-cabinet-80-x-46-x-140|00616946
ikea-ps-2026-chair|10617969 70617966
+ikea-ps-2026-chair-bed|30620372 00620378
ikea-ps-2026-easy-chair|50623204 00621071
ikea-ps-2026-folding-chair|10617894
ikea-ps-2026-glass-door-cabinet-73-x-36-x-160|80616952
@@ -769,7 +776,9 @@ lubban-trolley-table-storage|50434307
lustebo-chair|00541164
lyckan-chair|00569191 00569186
lycksele-lovas-2-seat-sofa-bed|19387006 49387038 19387134 89563204 89561709
+lycksele-lovas-chair-bed|39386968 29386978 69561705 09563199 49386996
lycksele-murbo-2-seat-sofa-bed|09387021 49387137 49387043 19561717 69563219
+lycksele-murbo-chair-bed|69386981 79386971 49563215 09561713 09387002
mabarsskar-coffee-table-61-x-41|30597164
mackapar-coat-rack-shoe-storage-unit-78-x-32-x-2|50530988
mackapar-shoe-rack-78-x-32-x-40|50530993
@@ -970,6 +979,7 @@ moppe-mini-chest-drawers-31-x-18-x-32|90623141
moppe-mini-chest-drawers-42-x-18-x-32|40216357 80562770
morbylanga-table-140-x-85|50386245
morbylanga-table-145|60412885
+mortfors-pouffe-47-x-47|80572769 20572772
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
@@ -1091,6 +1101,7 @@ orreslatt-armchair|30555098
ortrask-coffee-table-110-x-68|10635845 30635849
ortrask-coffee-table-75-x-48|70635847
oskarshamn-wing-chair|90523622 30521678 50521663
+oskarshamn-wing-chair-footstool|59485340 19485342 29485346
ostavall-adjustable-coffee-table-90|40534152 00530066
ovning-trolley-54-x-33|00517003
pahl-desk-96-x-58|49619340
@@ -1192,6 +1203,7 @@ platsa-wardrobe-w-6-doors-240-x-57-x-231|99625046
platsa-wardrobe-w-6-doors-300-x-42-x-241|69615505
plojker-bedside-table-41-x-41-x-50|30613550 80595068
poang-armchair|89627178 59627170 89502201 79627174 69502037 89502116 79429254 19627134 79627126 79627150 99627154 99627130 99625857 59627146 49627118 69627122 39627166 29627162 59501972 19502054 79502131 39502213 79429268 19429153 09429243 89617711 59625350 99625334 29625342 89625358 39625285 19625366 49625237 69625217 89501980 59501905 89625301 99240789 19502134 29502058 79625269 79625293 09625277 29625257 19625309 19618691 59625289 39625370 99625305 99625273 79625354 39625346 99625027 39625030 79625245 99625225 39625233 19625253 99625249 19625229 29412562 49598917 29598923 29551609 79551598 29551567 59551603
+poang-armchair-and-footstool|29625889 49625869 59617736 39625997 49626029 39625978 99625881 19625861 89626013 69626033 09501998 09502078 69617731 39502152 59625982 49626005 59625901 89625990 19626021 79625716 09618696 19625719 79625877 59625897 99626041 99626017 69625986 39626001 69625873 49625893
racknas-chest-3-drawers-69-x-78|10594524
radmanso-bed-frame-standard-king-150-x-200|00599174 70599180 79598647 09598641 69598662 49598663
radmanso-bedside-table-54-x-38-x-58|80593597
@@ -1230,6 +1242,7 @@ risholmen-wing-chair-in-outdoor|00503794
risor-room-divider-216-x-185|70182191
rocksjon-2-seat-sofa|19508862 59514696 59508855
rocksjon-armchair|89508854 29514693 89508849
+rocksjon-armchair-footstool|99508896 29514688 29508890
ronninge-bar-table-75-x-75|50511230
ronninge-chair|10422504
ronninge-trolley-78-x-39|50507488
@@ -1399,6 +1412,7 @@ storklinta-chest-5-drawers-40-x-50-x-120|40627542 20628222 00627539 60627555
storklinta-chest-6-drawers-140-x-50-x-75|70627550 00628223 30627547 80627559
storklinta-chest-6-drawers-70-x-50-x-120|70627545 80628224 00627544 20627557
strandmon-wing-chair|50628942 70359830 80613171 40613168 90613175 60613167 30359846 40494641 30392544
+strandmon-wing-chair-footstool|39590342 99618102 79590364 89590368 19590357 69628598
strandon-folding-stool|30591100
strandon-sun-lounger|80605944
styrspel-gaming-chair|80522034 90613057
@@ -1496,6 +1510,7 @@ tonstad-tv-bench-177-x-37-x-56|60488880
tonstad-tv-bench-178-x-37-x-55|00489302
torald-desk-65-x-40|90493955
tornsborg-2-seat-sofa-bed|40586103
+tornsborg-armchair-bed|00586100
tornviken-kitchen-island-126-x-77|40391657
tornviken-open-cabinet-20-x-37-x-60|60358968 20358970 20358965
torparo-chair-armrests-outdoor|60595408
@@ -1647,6 +1662,7 @@ vimle-u-shaped-sofa-6-seat|69306786
vingson-wing-chair-in-outdoor|70503738
visingso-chair-armrests|60575542
visingso-table-70-x-70|40569467
+viskafors-1-5-seat-armchair|29443304 49443280 59443294 49443299 49443275 39443285
viskafors-2-seat-sofa|89443264 69443217 99443254 89443259 39443214 19443210
viskafors-3-seat-sofa|99443329 59443374 99443334 89443339 69443364 59443369
visthus-chest-6-drawers-63-x-49-x-126|40493444
diff --git a/src/data/ikea-rows.ts b/src/data/ikea-rows.ts
index bfe33f0..8ecae70 100644
--- a/src/data/ikea-rows.ts
+++ b/src/data/ikea-rows.ts
@@ -197,7 +197,9 @@ DYVLINGE|swivel|Swivel easy chair|78|98|80|arms=none
EKENABBEN|cabinet|Cabinet, 70 × 35 × 51 cm|70|51|35
EKENABBEN|open|Open shelving unit, 70 × 34 × 154 cm|70|154|34
EKENÄSET|armchair|Armchair|75|90|80
+EKENÄSET|armchair|Armchair and footstool|75|90|80|cat=Armchair with footstool,foot=1
EKENÄSET|armchair|High-back armchair|75|104|80
+EKENÄSET|armchair|High-back armchair and footstool|75|104|80|cat=Armchair with footstool,foot=1
EKENÄSET|bench|Bench, 112 cm|112|45|38
EKET|cabinet|Cabinet, 35 × 25 × 35 cm|35|35|25|knobs=none
EKET|chest|Cabinet with 2 drawers, 70 × 35 × 35 cm|70|35|35|rows=2
@@ -212,8 +214,10 @@ EKHOLMA|corner|Corner sofa, 4-seat with open end|237|85|156|seats=4,arms=wide,co
EKHOLMA|sofa|2-seat sofa|170|85|92|seats=2
EKHOLMA|sofa|2-seat sofa-bed|170|85|92|seats=2
EKHOLMA|sofa|3-seat sofa|230|85|92|seats=3
+EKOLSUND|armchair|Recliner|75|90|80|cat=Recliner
EKRAR|coatstand|Hat and coat stand, 169 cm|45|169|45
EKTORP|armchair|Armchair|75|90|80
+EKTORP|armchair|Armchair and footstool|75|90|80|cat=Armchair with footstool,foot=1
EKTORP|chaise|3-seat sofa with chaise longue|218|88|156|seats=3,arms=wide,chaise=right,sd=88
EKTORP|corner|Corner sofa, 4-seat|228|88|166|seats=4,arms=wide,corner=left,sd=88
EKTORP|sofa|2-seat sofa|170|85|92|seats=2
@@ -279,6 +283,7 @@ FLISAT|kidstable|Children's table, 83 × 58 cm|83|48|58||kids
FLISAT|open|Open storage, 88 × 38 × 117 cm|88|117|38
FLISAT|stool|Children's stool|35|30|35||kids
FÖRHÖJA|trolley|Kitchen trolley, 100 × 43 cm|100|80|43
+FÖRLUNDA|pouffe|Pouffe|45|42|45
FÖRSÄLJARE|sideboard|Sideboard, 140 × 46 × 78 cm|140|78|46
FÖRSIKTIG|stool|Children's stool|35|30|35||kids
FRANKLIN|chair|Bar stool with backrest, foldable, 63 cm|44|95|50|seatH=63
@@ -296,6 +301,7 @@ 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
FRYKSÅS|armchair|Armchair|75|90|80
+FRYKSÅS|armchair|Armchair and footstool|75|90|80|cat=Armchair with footstool,foot=1
FRYKSÅS|armchair|Armchair with cushion|75|90|80
FRYKSÅS|cabinet|Storage unit on castors, 37 × 53 cm|37|53|40|doors=0,shelves=1,cat=Storage unit on castors,cast=1
FRYKSÅS|cabinet|Cabinet, 81 × 124 cm|81|124|40
@@ -466,6 +472,7 @@ IKEA PS 2026|cabinet|Glass-door cabinet, 73 × 36 × 160 cm|73|160|36
IKEA PS 2026|cabinet|Cabinet, 80 × 46 × 140 cm|80|140|46
IKEA PS 2026|chair|Chair|44|88|50
IKEA PS 2026|chair|Folding chair|44|88|50
+IKEA PS 2026|chairbed|Chair-bed|80|87|98
IKEA PS 2026|deskdraw|Table with drawer, 70 × 70 cm|70|75|70|rows=1,cat=Table
IKEA PS 2026|dining|Table, 96 cm|96|74|96|round=1
IKEA PS 2026|dining|Table, 156 × 75 cm|156|74|75
@@ -703,7 +710,9 @@ LÖVBACKEN|side|Side table, 77 × 39 cm|77|50|39
LUBBAN|trolley|Trolley table with storage|50|52|50
LUSTEBO|chair|Chair|44|88|50
LYCKAN|chair|Chair|44|88|50
+LYCKSELE LÖVÅS|chairbed|Chair-bed|80|87|98
LYCKSELE LÖVÅS|sofa|2-seat sofa-bed|170|85|92|seats=2
+LYCKSELE MURBO|chairbed|Chair-bed|80|87|98
LYCKSELE MURBO|sofa|2-seat sofa-bed|170|85|92|seats=2
MÅBÄRSSKÄR|coffee|Coffee table, 61 × 41 cm|61|45|41||outdoor garden
MACKAPÄR|clothesrack|Coat rack with shoe storage unit, 78 × 32 × 200 cm|78|200|32|shelf=1
@@ -901,6 +910,7 @@ MOPPE|chest|Mini chest of drawers, 31 × 18 × 32 cm|31|32|18|rows=3,min=35
MOPPE|chest|Mini chest of drawers, 42 × 18 × 32 cm|42|32|18|rows=3,min=35
MÖRBYLÅNGA|dining|Table, 140 × 85 cm|140|74|85
MÖRBYLÅNGA|dining|Table, 145 cm|145|74|145|round=1
+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
@@ -1019,6 +1029,7 @@ ORRESLÄTT|armchair|Armchair|75|90|80
ÖRTRÄSK|coffee|Coffee table, 75 × 48 cm|75|45|48
ÖRTRÄSK|coffee|Coffee table, 110 × 68 cm|110|45|68
OSKARSHAMN|armchair|Wing chair|75|104|80
+OSKARSHAMN|armchair|Wing chair with footstool|75|104|80|cat=Armchair with footstool,foot=1
ÖSTAVALL|coffee|Adjustable coffee table, 90 cm|90|45|90|round=1
ÖVNING|trolley|Trolley, 54 × 33 cm|54|80|33||kids children
PÅHL|desk|Desk, 96 × 58 cm|96|74|58||kids children
@@ -1118,6 +1129,7 @@ PLATSA|wardrobe|Open clothes hanging unit, 80 × 40 × 180 cm|80|180|40|doors=0
PLATSA|wardrobe|Wardrobe with 2 doors, 120 × 57 × 181 cm|120|181|57|doors=2
PLATSA|wardrobe|Wardrobe with 2 doors, 120 × 57 × 191 cm|120|191|57|doors=2
PLÖJKER|nightstand|Bedside table, 41 × 41 × 50 cm|41|50|41|rows=1
+POÄNG|armchair|Armchair and footstool|68|100|82|arms=slim,cat=Armchair with footstool,foot=1
RACKNÄS|chest|Chest of 3 drawers, 69 × 78 cm|69|78|48|rows=3
RÅDMANSÖ|bed|Bed frame, Standard King, 150 × 200 cm|166|100|209|m=150
RÅDMANSÖ|cabinet|Cabinet, 118 × 49 × 103 cm|118|103|49
@@ -1154,6 +1166,7 @@ RIMFORSA|workbench|Work bench, 120 × 63.5 × 92 cm|120|92|64
RISHOLMEN|armchair|Wing chair, in/outdoor|75|104|80||outdoor garden
RISÖR|divider|Room divider, 216 × 185 cm|216|185|25
ROCKSJÖN|armchair|Armchair|75|90|80
+ROCKSJÖN|armchair|Armchair with footstool|75|90|80|cat=Armchair with footstool,foot=1
ROCKSJÖN|sofa|2-seat sofa|170|85|92|seats=2
RÖNNINGE|bar|Bar table, 75 × 75 cm|75|105|75
RÖNNINGE|chair|Chair|44|88|50
@@ -1317,6 +1330,7 @@ STORKLINTA|chest|Chest of 6 drawers, 70 × 50 × 120 cm|70|120|50|rows=6
STORKLINTA|chest|Chest of 6 drawers, 140 × 50 × 75 cm|140|75|50|rows=3,cols=2
STORKLINTA|nightstand|Chest of 2 drawers, 30 × 50 × 53 cm|30|53|50|rows=2
STORKLINTA|nightstand|Chest of 2 drawers, 40 × 50 × 53 cm|40|53|50|rows=2
+STRANDMON|armchair|Wing chair with footstool|82|101|96|arms=wide,cat=Armchair with footstool,foot=1
STRANDÖN|lounger|Sun lounger|66|87|195||outdoor garden
STRANDÖN|stool|Folding stool|35|45|35||outdoor garden
STYRSPEL|office|Gaming chair|64|128|64|arms=slim,seatH=50
@@ -1411,6 +1425,7 @@ TONSTAD|slidecab|Cabinet with sliding glass doors, 121 × 37 × 120 cm|121|120|3
TONSTAD|tv|TV bench, 177 × 37 × 56 cm|177|56|37
TONSTAD|tv|TV bench, 178 × 37 × 55 cm|178|55|37
TORALD|desk|Desk, 65 × 40 cm|65|74|40
+TORNSBORG|chairbed|Armchair-bed|80|87|98|arms=slim
TORNSBORG|sofa|2-seat sofa-bed|170|85|92|seats=2
TORNVIKEN|cabinet|Open cabinet, 20 × 37 × 60 cm|20|60|37|doors=0
TORNVIKEN|trolley|Kitchen island, 126 × 77 cm|126|80|77
@@ -1559,6 +1574,7 @@ VIMLE|usofa|U-shaped sofa, 6 seat|300|83|238|seats=6,arms=wide,sd=98
VINGSÖN|armchair|Wing chair, in/outdoor|75|104|80||outdoor garden
VISINGSÖ|chair|Chair with armrests|44|88|50|arms=slim|outdoor garden
VISINGSÖ|dining|Table, 70 × 70 cm|70|74|70||outdoor garden
+VISKAFORS|armchair|1,5-seat armchair|105|90|80|cat=Armchair
VISKAFORS|sofa|2-seat sofa|170|85|92|seats=2
VISKAFORS|sofa|3-seat sofa|230|85|92|seats=3
VISTHUS|chest|Chest of 6 drawers, 63 × 49 × 126 cm|63|126|49|rows=6
diff --git a/src/lib/catalog.ts b/src/lib/catalog.ts
index 8cada28..d7684b2 100644
--- a/src/lib/catalog.ts
+++ b/src/lib/catalog.ts
@@ -11,6 +11,8 @@ type Entry = Omit<ProductSpec, "source" | "slug" | "variants" | "siblings"> & {
keywords?: string[];
featured?: boolean;
checked?: boolean;
+ /** drawn later than the family's other pieces under IKEA's own name for it: comes after them in search */
+ late?: boolean;
};
/** Hand-checked starting points for popular flat packs. Dimensions in cm. */
@@ -453,7 +455,7 @@ for (const r of decodeRows(IKEA_ROWS)) {
const slug = r.slug ?? baseSlug(r.name, r.variant);
if (used.has(slug)) continue;
used.add(slug);
- IKEA.push({ ...specFor(r.kind, r.name, r.variant, r.w, r.h, r.d, r.x), slug, family: fold(r.name), kind: r.kind, keywords: r.keywords });
+ IKEA.push({ ...specFor(r.kind, r.name, r.variant, r.w, r.h, r.d, r.x), slug, family: fold(r.name), kind: r.kind, keywords: r.keywords, ...(r.x.cat ? { late: true } : {}) });
}
/** Every product we can draw offline: hand-checked entries first, then the wider index, then IKEA's catalog. */
@@ -491,7 +493,8 @@ function sizeLabel(x: Entry, same: Entry[]) {
}
export function toSpec(e: Entry): ProductSpec {
- const { family, kind, keywords, featured, checked, ...rest } = e;
+ const { family, kind, keywords, featured, checked, late, ...rest } = e;
+ void late;
void kind;
void keywords;
void featured;
diff --git a/src/lib/plan/footstool.ts b/src/lib/plan/footstool.ts
new file mode 100644
index 0000000..fb1f77e
--- /dev/null
+++ b/src/lib/plan/footstool.ts
@@ -0,0 +1,81 @@
+import type { ProductSpec } from "../types";
+import { PlanBuilder } from "./builder";
+
+/**
+ * A padded footstool on four legs: turned upside down, the legs screwed in by hand, and stood up. Sold on its own as a
+ * pouffe, or with an armchair, when it's built after the chair and stood in front of it.
+ */
+export function footstool(b: PlanBuilder, o: { w: number; h: number; d: number; z?: number; alone?: boolean }) {
+ const { w, h, d } = o;
+ const legH = Math.min(120, h * 0.3);
+ const z = o.z ?? 0;
+ const padT = b.part(o.alone ? "Seat" : "Footstool", [w, h - legH, d], { material: "soft" });
+ const pad = b.place(padT, [0, legH + (h - legH) / 2, z]);
+ const legT = b.part(o.alone ? "Leg" : "Footstool leg", [36, legH, 36], { shape: "cyl", material: "wood" });
+ const lx = w / 2 - 60, lz = d / 2 - 60;
+ const legs = [
+ [-lx, lz],
+ [lx, lz],
+ [lx, -lz],
+ [-lx, -lz],
+ ].map(([x, zz]) => b.place(legT, [x, legH / 2, z + zz]));
+ const scene = o.alone ? "main" : "footstool";
+ const at = (k: string) => b.partItem(k).final.pos;
+
+ if (o.alone) {
+ b.step(
+ {
+ title: "Lay it upside down",
+ detail: "On a blanket or the flattened box, so the fabric stays clean.",
+ pose: "-y",
+ kind: "general",
+ warnings: ["floor"],
+ },
+ () => b.add(pad, [0, 200, 0]),
+ );
+ }
+ b.step(
+ {
+ title: o.alone ? "Screw in the legs" : "Screw the legs into the footstool",
+ detail: o.alone ? "Clockwise by hand until each one is snug." : "Lay it upside down first. Clockwise by hand until each one is snug.",
+ scene,
+ pose: o.alone ? "-y" : "+y",
+ kind: "legs",
+ warnings: ["hand"],
+ },
+ () => {
+ if (!o.alone) {
+ // upside down on its own, legs pointing up
+ b.stage(pad, [0, (h - legH) / 2, 0], [Math.PI, 0, 0], [0, 180, 0]);
+ b.then(0.1);
+ b.stagger(0.22);
+ for (const l of legs) {
+ const p = at(l);
+ b.stage(l, [p[0], h - legH + legH / 2, -(p[2] - z)], [Math.PI, 0, 0], [0, 240, 0]);
+ }
+ return;
+ }
+ b.stagger(0.22);
+ legs.forEach((l) => b.add(l, [0, -260, 0], { spin: 2 }));
+ },
+ );
+ b.step(
+ {
+ title: o.alone ? "Turn it over" : "Stand the footstool in front of the chair",
+ detail: o.alone ? "Check that it stands steady on all four legs." : "Turn it over onto its legs and check it stands steady.",
+ pose: "+y",
+ kind: "flip",
+ },
+ () => {
+ if (o.alone) return;
+ b.stagger(0);
+ b.add(pad, [0, 260, 0]);
+ legs.forEach((l) => b.add(l, [0, 260, 0]));
+ },
+ );
+}
+
+/** A pouffe or footstool sold on its own. */
+export function buildPouffe(b: PlanBuilder, s: ProductSpec) {
+ footstool(b, { w: s.size.w * 10, h: s.size.h * 10, d: s.size.d * 10, alone: true });
+}
diff --git a/src/lib/plan/sofa.ts b/src/lib/plan/sofa.ts
index ce4ed13..e53e7f3 100644
--- a/src/lib/plan/sofa.ts
+++ b/src/lib/plan/sofa.ts
@@ -2,6 +2,7 @@ import type { ProductSpec, SofaParams, Vec3 } from "../types";
import { HW, PlanBuilder, type FitOpts } from "./builder";
import { clamp } from "./math";
import { buildCornerSofa } from "./corner";
+import { buildPouffe, footstool } from "./footstool";
export function defaultsSofa(s: ProductSpec): SofaParams {
const p = s.sofa ?? {};
@@ -14,6 +15,7 @@ export function defaultsSofa(s: ProductSpec): SofaParams {
/** Upholstered sofas and armchairs: legs on the base, arms and back bolted on, cushions last. */
export function buildSofa(b: PlanBuilder, s: ProductSpec) {
+ if (s.sofa?.pouffe) return buildPouffe(b, s);
// more than four seats: two sections joined, like a corner sofa without the corner
if (s.sofa?.chaise || s.sofa?.corner || (s.sofa?.seats ?? 0) > 4) return buildCornerSofa(b, s);
const p = defaultsSofa(s);
@@ -150,4 +152,15 @@ export function buildSofa(b: PlanBuilder, s: ProductSpec) {
backs.forEach((k) => b.add(k, [0, 160, 360]));
},
);
+ if (s.sofa?.bed) {
+ b.step(
+ {
+ title: "Fold it out into a bed once",
+ detail: "Pull the seat forward until it lies flat, then fold it back. It should move smoothly both ways.",
+ kind: "general",
+ },
+ () => {},
+ );
+ }
+ if (s.sofa?.foot) footstool(b, { w: Math.min(W * 0.8, 620), h: 420, d: 420, z: D / 2 + 140 + 210 });
}
diff --git a/src/lib/products.ts b/src/lib/products.ts
index a4bcaa7..231af88 100644
--- a/src/lib/products.ts
+++ b/src/lib/products.ts
@@ -79,7 +79,9 @@ export type Kind =
| "deskdraw"
| "boxdesk"
| "hatrack"
- | "coatstand";
+ | "coatstand"
+ | "pouffe"
+ | "chairbed";
export type X = {
rows?: number;
@@ -320,7 +322,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,
+ 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,
};
const CATEGORY: Record<Kind, string> = {
@@ -329,7 +331,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",
+ 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",
};
export const KIND_ARCH: Record<Kind, Archetype> = {
@@ -337,7 +339,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",
+ 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",
};
const round = (x: X) => (x.round ? { round: true } : {});
@@ -528,8 +530,16 @@ 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 "pouffe":
+ // a padded block on four legs
+ return { ...base, difficulty: 1, people: 1, sofa: { seats: 1, arms: "none", legs: "round", pouffe: true } };
+ case "chairbed":
+ // built like an armchair, and it folds out into a bed
+ return { ...base, people: 1, difficulty: 2, sofa: { seats: 1, arms: x.arms ?? "none", legs: "round", bed: true } };
case "sofa":
case "armchair":
+ // x.foot: an armchair with its footstool
+ if (x.foot) return { ...base, minutes: x.min ?? MIN.armchair + 15, people: 1, sofa: { seats: x.seats ?? 1, arms: x.arms ?? "wide", legs: "round", foot: true } };
return {
...base,
people: kind === "sofa" ? 2 : 1,
@@ -741,5 +751,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],
+ 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],
};
diff --git a/src/lib/search.ts b/src/lib/search.ts
index 7c8ef4d..98b2ae9 100644
--- a/src/lib/search.ts
+++ b/src/lib/search.ts
@@ -73,7 +73,9 @@ const CATEGORY_WORDS: [Kind, string[]][] = [
["swivel", ["swivel armchair", "swivel easy chair", "swivel lounge chair", "swivel accent chair", "swivel rocker", "rocking armchair", "rocker recliner"]],
["conference", ["conference chair", "meeting chair", "meeting room chair", "boardroom chair"]],
["lounge", ["lounge chair", "reclining chair", "garden chair", "patio chair", "deck chair", "adirondack chair"]],
+ ["chairbed", ["chair bed", "armchair bed", "sleeper chair", "chair sleeper", "fold out chair", "convertible chair"]],
["armchair", ["armchair", "wing chair", "recliner"]],
+ ["pouffe", ["pouffe", "pouf", "footstool", "foot stool", "ottoman", "footrest"]],
["highchair", ["highchair", "high chair", "baby chair", "feeding chair"]],
["junior", ["junior chair", "youth chair", "child s dining chair", "toddler chair", "booster chair"]],
["kidschair", ["children s chair", "childrens chair", "kids chair", "kid chair"]],
@@ -86,7 +88,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"]);
+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"]);
export function kindOf(q: string): Kind | null {
const f = " " + fold(q) + " ";
@@ -196,6 +198,8 @@ export function searchCatalog(q: string, limit = 8): Hit[] {
if (e.kind && (LESSER.has(e.kind) || e.cabinet?.fit) && kind !== e.kind) score -= 1;
// and rows of frames that aren't all alike after the rows of frames that are
if (e.row?.units) score -= 0.5;
+ // and pieces drawn later under IKEA's own name for them after the family's older ones of the same kind
+ if (e.late && kind !== e.kind) score -= 1;
if (e.checked) score += 3;
if (e.featured) score += 2;
if (score > 15) hits.push({ entry: e, score, exact: ns >= 80 });
diff --git a/src/lib/types.ts b/src/lib/types.ts
index 28b791d..cd6cc52 100644
--- a/src/lib/types.ts
+++ b/src/lib/types.ts
@@ -147,6 +147,9 @@ export interface SofaParams {
open?: boolean; // corner sofas: no armrest at the front of the return
depth?: number; // cm, depth of the seat sections of a corner or chaise sofa
reach?: number; // cm, how far a U-shaped sofa's chaise longue reaches forward (with both corner and chaise set)
+ foot?: boolean; // an armchair that comes with its footstool, built after it and stood in front of it
+ pouffe?: boolean; // a pouffe or footstool on its own: a padded block on four legs
+ bed?: boolean; // a chair-bed: it folds out into a bed
}
/** A product read from someone's own manual: parts as boxes in the assembled product, steps that add them. */