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 benches and stools with a shelf, and work benches

Youssefda9785ba9982
diff --git a/scripts/ikea/build.ts b/scripts/ikea/build.ts
index 78d63d7..9a684c3 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"]);
+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"]);
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 49a386a..e77f7d5 100644
--- a/scripts/ikea/check.ts
+++ b/scripts/ikea/check.ts
@@ -137,6 +137,9 @@ async function main() {
expect("kallso bench", "kallso-bench-shoe-storage-80-x-38-x-56");
expect("hol storage table", "hol-storage-table-98-x-50");
expect("hol", "hol-side-table-50-x-50");
+ // a work bench when asked for, the family's shelving otherwise
+ expect("bror work bench", "bror-work-bench-110-x-55");
+ expect("bror", "bror-shelving-unit-85-x-190");
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 7ee2fe7..5cecf5b 100644
--- a/scripts/ikea/classify.ts
+++ b/scripts/ikea/classify.ts
@@ -154,6 +154,10 @@ const DAYBED_SIZE: Record<string, [number, number, number]> = { HEMNES: [210, 83
const BLIND_DOOR: Record<string, number> = { METOD: 60, KNOXHULT: 50 };
/** Corner base cabinets IKEA measures wide by high, with the worktop on top, and how deep they are. */
const CORNER_WH: Record<string, number> = { KNOXHULT: 61 };
+/** Pieces IKEA gives no size for, by type: typical ones (w, h, d). */
+const TYPICAL: Record<string, [number, number, number]> = {
+ "trolley table with storage": [50, 52, 50],
+};
/** Boxes with a lid IKEA gives no size for, or only part of one (w, h, d): typical ones of each kind. */
const LIDBOX_SIZE: Record<string, [number, number, number]> = {
"Footstool with storage": [62, 42, 42],
@@ -469,7 +473,7 @@ const RULES: Rule[] = [
[/^(bar table|high table)$/, () => ({ kind: "bar" })],
[/^(console table|hall table)$/, () => ({ kind: "console" })],
[/^(desk|computer desk|gaming desk|desk sit\/stand|gaming desk sit\/stand|dressing table|writing desk)$/, () => ({ kind: "desk" })],
- [/^(trolley|kitchen trolley|kitchen island|trolley table|serving trolley)$/, () => ({ kind: "trolley" })],
+ [/^(trolley|kitchen trolley|kitchen island|trolley table|serving trolley|trolley with lid|trolley table with storage)$/, () => ({ kind: "trolley" })],
// seating
[/^(chair|dining chair|folding chair|chair with armrests)$/, (m, c) => (/arm/.test(m[0]) && !c.kids ? { kind: "chair", x: { arms: "slim" } } : { kind: c.kids ? "kidschair" : "chair" })],
@@ -478,6 +482,12 @@ const RULES: Rule[] = [
[/^(bar stool with backrest|bar chair)$/, () => ({ kind: "chair", x: { seatH: 63 } })],
[/^(stool|bar stool|step stool|folding stool|children's stool|stool, \d+ steps?)$/, () => ({ kind: "stool" })],
[/^(bench|bench with shoe storage)$/, () => ({ kind: "bench" })],
+ // benches and stools with a shelf under the seat
+ [/^(bench|stool) with storage$/, (m) => ({ kind: "shelfbench", x: m[1] === "stool" ? { cat: "Stool with storage" } : {} })],
+ // work benches: a sturdy table with a shelf low down (one with drawers stays skipped)
+ [/^work bench$/, () => ({ kind: "workbench" })],
+ // a coffee table that lifts or lowers is put together like any other
+ [/^adjustable coffee table$/, () => ({ kind: "coffee" })],
// the same bench with a pad on it
[/^bench with pad$/, () => ({ kind: "bench" })],
// a bench with a backrest and armrests, built like a wide chair (IKEA gives no size: a typical garden bench)
@@ -600,6 +610,7 @@ export function classify(f: Fact, hints: Hints): Verdict {
x.round = true;
}
} else if (hint?.kind === kind) set(hint.w, hint.h, hint.d);
+ else if (TYPICAL[t]) [w, h, d] = TYPICAL[t];
else if (kind !== "bench") return { skip: "no size given" };
if (guessed.h && hint?.kind === kind) h = hint.h;
} else if (kind === "dropleaf" || kind === "gateleg") {
@@ -707,6 +718,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 === "shelfbench" || kind === "workbench") {
+ // IKEA gives the width, sometimes the depth and height too; a stool without a size is a typical one
+ if (x.cat === "Stool with storage") [w, h, d] = [44, 46, 36];
+ if (v.length === 3) set(v[0], v[2], v[1]);
+ else if (v.length === 2) set(v[0], undefined, v[1]);
+ else if (v.length === 1) set(v[0]);
} else if (kind === "lidbox") {
// wide by deep by high; a table measured from above; a stool by its height
const typical = LIDBOX_SIZE[x.cat ?? ""];
diff --git a/scripts/ikea/slugs.json b/scripts/ikea/slugs.json
index 32b7347..1eb2292 100644
--- a/scripts/ikea/slugs.json
+++ b/scripts/ikea/slugs.json
@@ -159,6 +159,7 @@
"BROR|Shelving unit, 85 × 55 × 110 cm": "bror-shelving-unit-85-x-55-x-110",
"BROR|Shelving unit, 85 × 55 × 190 cm": "bror-shelving-unit-85-x-55-x-190",
"BROR|Trolley, 85 × 55 cm": "bror-trolley-85-x-55",
+ "BROR|Work bench, 110 × 55 cm": "bror-work-bench-110-x-55",
"BRYTNING|Desk, 110 × 53 × 75 cm": "brytning-desk-110-x-53-x-75",
"BRYTNING|Desk, 135 × 53 × 75 cm": "brytning-desk-135-x-53-x-75",
"BRYTNING|Desk, 85 × 53 × 75 cm": "brytning-desk-85-x-53-x-75",
@@ -668,6 +669,7 @@
"LÖPARBANA|Gaming chair": "loparbana-gaming-chair",
"LOSHULT|Trolley, 38 × 38 × 82 cm": "loshult-trolley-38-x-38-x-82",
"LÖVBACKEN|Side table, 77 × 39 cm": "lovbacken-side-table-77-x-39",
+ "LUBBAN|Trolley table with storage": "lubban-trolley-table-storage",
"LUSTEBO|Chair": "lustebo-chair",
"LYCKAN|Chair": "lyckan-chair",
"LYCKSELE LÖVÅS|2-seat sofa-bed": "lycksele-lovas-2-seat-sofa-bed",
@@ -968,6 +970,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",
+ "Ö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",
"PÄRONHOLMEN|Bench with backrest, outdoor": "paronholmen-bench-backrest-outdoor",
@@ -1033,6 +1036,8 @@
"PAX|Wardrobe frame, 75 × 58 × 201 cm": "pax-wardrobe-frame-75-x-58-x-201",
"PAX|Wardrobe, 150 × 58 × 201 cm": "pax-wardrobe-150-x-58-x-201",
"PAX|Wardrobe, 175 × 58 × 201 cm": "pax-wardrobe-175-x-58-x-201",
+ "PERJOHAN|Bench with storage, 100 cm": "perjohan-bench-storage-100",
+ "PERJOHAN|Stool with storage": "perjohan-stool-storage",
"PERSBOL|Armchair": "persbol-armchair",
"PINNTORP|Chair": "pinntorp-chair",
"PINNTORP|Gateleg table, 67/124 × 75 cm": "pinntorp-gateleg-table-67-124-x-75",
@@ -1081,6 +1086,8 @@
"RAKKESTAD|Wardrobe with sliding doors, 117 × 176 cm": "rakkestad-wardrobe-sliding-doors-117-x-176",
"RAMNEFJÄLL|Upholstered bed frame, Standard Double, 135 × 190 cm": "ramnefjall-upholstered-bed-frame-standard-double",
"RAMNEFJÄLL|Upholstered bed frame, Standard Single, 90 × 190 cm": "ramnefjall-upholstered-bed-frame-standard-single",
+ "RÅSKOG / NORRÅVA|Trolley with lid, 28 × 38 × 61 cm": "raskog-norrava-trolley-lid-28-x-38-x-61",
+ "RÅSKOG / NORRÅVA|Trolley with lid, 35 × 45 × 77 cm": "raskog-norrava-trolley-lid-35-x-45-x-77",
"RÅSKOG|Trolley, 28 × 38 × 61 cm": "raskog-trolley-28-x-38-x-61",
"RÅSKOG|Trolley, 35 × 45 × 77 cm": "raskog-trolley-35-x-45-x-77",
"RAST|Chest of 3 drawers, 60 × 35 × 59 cm": "rast-chest-3-drawers-60-x-35-x-59",
@@ -1094,6 +1101,7 @@
"RIAN|Side table, 50 × 30 cm": "rian-side-table-50-x-30",
"RIDSPÖ|Desk, 140 × 70 cm": "ridspo-desk-140-x-70",
"RIGGA|Clothes rack": "rigga-clothes-rack",
+ "RIMFORSA|Work bench, 120 × 63.5 × 92 cm": "rimforsa-work-bench-120-x-63-5-x-92",
"RISHOLMEN|Wing chair, in/outdoor": "risholmen-wing-chair-in-outdoor",
"RISÖR|Room divider, 216 × 185 cm": "risor-room-divider-216-x-185",
"ROCKSJÖN|2-seat sofa": "rocksjon-2-seat-sofa",
@@ -1148,6 +1156,7 @@
"SKARPÖ|Armchair, outdoor": "skarpo-armchair-outdoor",
"SKOGSÖN|Easy chair": "skogson-easy-chair",
"SKOGSTA|Bar stool with backrest, 62 cm": "skogsta-bar-stool-backrest-62",
+ "SKOGSTA|Bench with storage, 120 cm": "skogsta-bench-storage-120",
"SKOGSTA|Chair": "skogsta-chair",
"SKOGSTA|Dining table, 120 cm": "skogsta-dining-table-120",
"SKOGSTA|Table, 150 × 74 cm": "skogsta-table-150-x-74",
@@ -1313,6 +1322,7 @@
"TJUSIG|Bench with shoe storage, 108 × 34 × 50 cm": "tjusig-bench-shoe-storage-108-x-34-x-50",
"TJUSIG|Shoe rack, 79 × 32 × 37 cm": "tjusig-shoe-rack-79-x-32-x-37",
"TOBIAS|Chair": "tobias-chair",
+ "TOLKNING|Bench with storage, 120 cm": "tolkning-bench-storage-120",
"TOLKNING|Room divider, 150 × 170 cm": "tolkning-room-divider-150-x-170",
"TONSTAD|Bed frame with storage, Standard King, 150 × 200 cm": "tonstad-bed-frame-storage-standard-king-150-x-20",
"TONSTAD|Bed frame with storage, Standard Single, 90 × 190 cm": "tonstad-bed-frame-storage-standard-single-90-x-1",
@@ -1415,6 +1425,7 @@
"VALNÄS|2-seat sofa": "valnas-2-seat-sofa",
"VALNÄS|3-seat sofa": "valnas-3-seat-sofa",
"VALNÄS|Coffee table, 118 × 72 cm": "valnas-coffee-table-118-x-72",
+ "VALNÄS|Trolley table with storage": "valnas-trolley-table-storage",
"VALTORP|Bench, 103 cm": "valtorp-bench-103",
"VÄRMANSÖ|Chair, outdoor": "varmanso-chair-outdoor",
"VÄRMANSÖ|Table, outdoor, 224 × 93 cm": "varmanso-table-outdoor-224-x-93",
@@ -1495,6 +1506,7 @@
"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",
+ "VITTERYD|Adjustable coffee table, 97 cm": "vitteryd-adjustable-coffee-table-97",
"VITTSJÖ|Coffee table, 75 cm": "vittsjo-coffee-table-75",
"VITTSJÖ|Laptop table, 100 × 36 cm": "vittsjo-laptop-table-100-x-36",
"VITTSJÖ|Shelving unit, 100 × 175 cm": "vittsjo-shelving-unit-100-x-175",
diff --git a/src/data/ikea-guard.ts b/src/data/ikea-guard.ts
index a75f2cb..ac86e93 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 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 larkar latsas lersta lill lilla lillabo lillhult lindasen lohals lova lubban 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 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 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 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";
diff --git a/src/data/ikea-items.ts b/src/data/ikea-items.ts
index 1688ea4..d283864 100644
--- a/src/data/ikea-items.ts
+++ b/src/data/ikea-items.ts
@@ -178,6 +178,7 @@ bror-shelving-unit-85-x-190|19619407 19650233 09619403 49516139
bror-shelving-unit-85-x-55-x-110|39272655 39272641 69272649
bror-shelving-unit-85-x-55-x-190|89617443 99650253 59619405 69516138
bror-trolley-85-x-55|60333850 80547384
+bror-work-bench-110-x-55|30333286
brusali-shoe-cabinet-3-compartments|80480393
brytning-desk-110-x-53-x-75|80609744 50609750
brytning-desk-135-x-53-x-75|50609745 30609751
@@ -734,6 +735,7 @@ lommarp-tv-bench-159-x-45-x-81|30437000
loparbana-gaming-chair|50586329 70586328
loshult-trolley-38-x-38-x-82|40576279
lovbacken-side-table-77-x-39|80270125
+lubban-trolley-table-storage|50434307
lustebo-chair|00541164
lyckan-chair|00569191 00569186
lycksele-lovas-2-seat-sofa-bed|19387006 49387038 19387134 89563204 89561709
@@ -1041,6 +1043,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
+ostavall-adjustable-coffee-table-90|40534152 00530066
ovning-trolley-54-x-33|00517003
pahl-desk-96-x-58|49619340
paronholmen-bench-backrest-outdoor|90503799
@@ -1107,6 +1110,8 @@ pax-wardrobe-150-x-58-x-201|59502561 79502560
pax-wardrobe-175-x-58-x-201|49502632 69502631
pax-wardrobe-frame-50-x-58-x-201|70458217 90458221 90458216 10458215 50458218 10458220 70458222
pax-wardrobe-frame-75-x-58-x-201|80458231 90458235 60458232 00458230 70458236 20458229 20458234
+perjohan-bench-storage-100|60485339
+perjohan-stool-storage|80485338
persbol-armchair|50525915 90525923 70525924
pinntorp-chair|90635177 00635167 30635175 00590480 00529478 40529476
pinntorp-gateleg-table-67-124-x-75|70529465
@@ -1157,6 +1162,8 @@ rakkestad-wardrobe-3-doors-117-x-176|70453762
rakkestad-wardrobe-sliding-doors-117-x-176|60453767
ramnefjall-upholstered-bed-frame-standard-double|49560212 79560215 09560266 89627263 69627264 69560268 69627221
ramnefjall-upholstered-bed-frame-standard-single|59560216 09560271
+raskog-norrava-trolley-lid-28-x-38-x-61|79580765 69580761 69622153 39580753 89622232 79622157 29622094
+raskog-norrava-trolley-lid-35-x-45-x-77|09580759 79580751 29580763 79622096 99622236 19622155 39580767
raskog-trolley-28-x-38-x-61|00586789 50591769 10637203 20629716 80586790 00629717 40629715
raskog-trolley-35-x-45-x-77|30586783 20591662 40582181 70629714 30629711 00591663 90629713
rast-chest-3-drawers-60-x-35-x-59|20609860
@@ -1170,6 +1177,7 @@ renberget-swivel-chair|90503285
rian-side-table-50-x-30|80343419
ridspo-desk-140-x-70|00485224
rigga-clothes-rack|50231630
+rimforsa-work-bench-120-x-63-5-x-92|90399284
risholmen-wing-chair-in-outdoor|00503794
risor-room-divider-216-x-185|70182191
rocksjon-2-seat-sofa|19508862 59514696 59508855
@@ -1225,6 +1233,7 @@ skansnas-extendable-table-150-205-x-90|00565763 00565758
skarpo-armchair-outdoor|50575811 70234185
skogson-easy-chair|80569465 00592224
skogsta-bar-stool-backrest-62|50620677
+skogsta-bench-storage-120|10593807 20611882
skogsta-chair|50544867 70544866
skogsta-dining-table-120|20593802
skogsta-dining-table-235-x-100|70419264
@@ -1398,6 +1407,7 @@ tjarkil-extendable-table-180-235-290-x-100|70630454
tjusig-bench-shoe-storage-108-x-34-x-50|70152702 50152703
tjusig-shoe-rack-79-x-32-x-37|10152639 30152638
tobias-chair|30635123 80349671 90532589
+tolkning-bench-storage-120|80512657
tolkning-room-divider-150-x-170|60512663
tonstad-bed-frame-standard-double-135-x-190|39577717 99577719 59577716 19577718 99577743 49577745 79577744
tonstad-bed-frame-standard-single-90-x-190|10603547 90603609 59577721 79577720 29577746 09577747
@@ -1503,6 +1513,7 @@ vadholma-open-storage-20-x-37-x-60|60374341 20374338 60374336
valnas-2-seat-sofa|99615325 69615322 39615328
valnas-3-seat-sofa|49615337 79615331 19615334
valnas-coffee-table-118-x-72|20628038
+valnas-trolley-table-storage|60628036
valtorp-bench-103|40572785 30572781
varmanso-chair-outdoor|00536389
varmanso-table-outdoor-224-x-93|10515683
@@ -1585,6 +1596,7 @@ 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
visthus-wardrobe-122-x-216|90493446
+vitteryd-adjustable-coffee-table-97|20530065
vittsjo-coffee-table-75|80213309 30604348
vittsjo-laptop-table-100-x-36|60619536 40619537
vittsjo-shelving-unit-100-x-175|20213312
diff --git a/src/data/ikea-rows.ts b/src/data/ikea-rows.ts
index 82312bb..a08e010 100644
--- a/src/data/ikea-rows.ts
+++ b/src/data/ikea-rows.ts
@@ -160,6 +160,7 @@ BROR|open|Shelving unit, 65 × 55 × 190 cm|65|190|55
BROR|open|Shelving unit, 85 × 55 × 110 cm|85|110|55
BROR|open|Shelving unit, 85 × 55 × 190 cm|85|190|55
BROR|trolley|Trolley, 85 × 55 cm|85|80|55
+BROR|workbench|Work bench, 110 × 55 cm|110|90|55
BRYTNING|desk|Desk, 85 × 53 × 75 cm|85|75|53
BRYTNING|desk|Desk, 110 × 53 × 75 cm|110|75|53
BRYTNING|desk|Desk, 135 × 53 × 75 cm|135|75|53
@@ -669,6 +670,7 @@ LOMMARP|tv|TV bench, 159 × 45 × 81 cm|159|81|45
LÖPARBANA|office|Gaming chair|64|128|64|arms=slim,seatH=50
LOSHULT|trolley|Trolley, 38 × 38 × 82 cm|38|82|38
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|sofa|2-seat sofa-bed|170|85|92|seats=2
@@ -969,6 +971,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
+Ö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
PÄRONHOLMEN|backbench|Bench with backrest, outdoor|120|86|60||outdoor garden
@@ -1034,6 +1037,8 @@ PAX / MEHAMN/AULI|cabrow|Wardrobe, 250 × 66 × 201 cm|250|201|66|shelves=2,slid
PAX / TONSTAD|cornerrobe|Corner wardrobe, 211/161 × 201 cm|211|201|161|shelves=2,u=100+75,v=75
PAX / TONSTAD|cornerrobe|Corner wardrobe, 231/161 × 236 cm|231|236|161|shelves=2,u=100+75,v=50,cu=58
PAX / TYSSEDAL|cornerrobe|Corner wardrobe, 161/111 × 236 cm|161|236|111|shelves=2,u=100,cu=58
+PERJOHAN|shelfbench|Stool with storage|44|46|36|cat=Stool with storage
+PERJOHAN|shelfbench|Bench with storage, 100 cm|100|46|38
PERSBOL|armchair|Armchair|75|90|80
PINNTORP|chair|Chair|44|88|50
PINNTORP|dining|Table, 85 cm|85|74|85|round=1
@@ -1084,6 +1089,8 @@ RAMNEFJÄLL|bed|Upholstered bed frame, Standard Single, 90 × 190 cm|106|100|199
RAMNEFJÄLL|bed|Upholstered bed frame, Standard Double, 135 × 190 cm|151|100|199|m=135,l=190
RÅSKOG|trolley|Trolley, 28 × 38 × 61 cm|28|61|38
RÅSKOG|trolley|Trolley, 35 × 45 × 77 cm|35|77|45
+RÅSKOG / NORRÅVA|trolley|Trolley with lid, 28 × 38 × 61 cm|28|61|38
+RÅSKOG / NORRÅVA|trolley|Trolley with lid, 35 × 45 × 77 cm|35|77|45
RAST|chest|Chest of 3 drawers, 60 × 35 × 59 cm|60|59|35|rows=3,knobs=knob
RÄVSTEN|bench|Bench, 93 cm|93|45|38
RÄVSTEN|stool|Bar stool, 62 cm|35|62|35
@@ -1095,6 +1102,7 @@ RENBERGET|office|Swivel chair|60|105|64|arms=none
RIAN|side|Side table, 50 × 30 cm|50|50|30
RIDSPÖ|desk|Desk, 140 × 70 cm|140|74|70
RIGGA|clothesrack|Clothes rack|111|175|51
+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
@@ -1154,6 +1162,7 @@ SKOGSTA|dining|Table, 74 × 74 cm|74|74|74
SKOGSTA|dining|Dining table, 120 cm|120|74|120|round=1
SKOGSTA|dining|Table, 150 × 74 cm|150|74|74
SKOGSTA|dining|Table, 160 × 81 × 74 cm|160|74|81
+SKOGSTA|shelfbench|Bench with storage, 120 cm|120|46|38
SKÖNABÄCK|sofa|2-seat sofa-bed|170|85|92|seats=2
SKRUVBY|bookcase|Bookcase, 60 × 140 cm|60|140|30
SKRUVBY|cabinet|Cabinet with doors, 70 × 90 cm|70|90|40
@@ -1315,6 +1324,7 @@ TJUSIG|bench|Bench with shoe storage, 108 × 34 × 50 cm|108|50|34
TJUSIG|shoerack|Shoe rack, 79 × 32 × 37 cm|79|37|32
TOBIAS|chair|Chair|44|88|50
TOLKNING|divider|Room divider, 150 × 170 cm|150|170|25
+TOLKNING|shelfbench|Bench with storage, 120 cm|120|46|38
TONSTAD|bed|Bed frame with storage, Standard Single, 90 × 190 cm|106|100|199|m=90,l=190
TONSTAD|bed|Bed frame, Standard Single, 90 × 190 cm|106|100|199|m=90,l=190
TONSTAD|bed|Bed frame, Standard Double, 135 × 190 cm|151|100|199|m=135,l=190
@@ -1416,6 +1426,7 @@ VADHOLMA|trolley|Kitchen island, 126 × 79 × 90 cm|126|90|79
VALNÄS|coffee|Coffee table, 118 × 72 cm|118|45|72
VALNÄS|sofa|2-seat sofa|170|85|92|seats=2
VALNÄS|sofa|3-seat sofa|230|85|92|seats=3
+VALNÄS|trolley|Trolley table with storage|50|52|50
VALTORP|bench|Bench, 103 cm|103|45|38
VÄRMANSÖ|chair|Chair, outdoor|44|88|50||outdoor garden
VÄRMANSÖ|dining|Table, outdoor, 224 × 93 cm|224|74|93||outdoor garden
@@ -1496,6 +1507,7 @@ VISINGSÖ|dining|Table, 70 × 70 cm|70|74|70||outdoor garden
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
+VITTERYD|coffee|Adjustable coffee table, 97 cm|97|45|97|round=1
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
diff --git a/src/lib/plan/table.ts b/src/lib/plan/table.ts
index ab9680e..6dc124d 100644
--- a/src/lib/plan/table.ts
+++ b/src/lib/plan/table.ts
@@ -31,7 +31,8 @@ export function buildTable(b: PlanBuilder, s: ProductSpec) {
const Lh = H - tt;
const big = W > 1000;
- const topT = b.part(s.category.toLowerCase().includes("desk") ? "Desk top" : "Table top", [W, tt, D], p.round ? { shape: "cyl" } : undefined);
+ const seat = !!s.table?.seat;
+ const topT = b.part(seat ? "Seat" : s.category.toLowerCase().includes("desk") ? "Desk top" : "Table top", [W, tt, D], p.round ? { shape: "cyl" } : undefined);
const top = b.place(topT, [0, H - tt / 2, 0]);
const legT = b.part("Leg", p.legs === "round" ? [ls, Lh, ls] : [ls, Lh, ls], { shape: p.legs === "round" ? "cyl" : "box", material: "wood" });
const corners: [number, number][] = [
@@ -45,7 +46,7 @@ export function buildTable(b: PlanBuilder, s: ProductSpec) {
b.step(
{
- title: "Lay the top upside down",
+ title: seat ? "Lay the seat upside down" : "Lay the top upside down",
detail: "Put the flattened box under it so the surface stays scratch free.",
pose: "-y",
kind: "general",
@@ -91,7 +92,7 @@ export function buildTable(b: PlanBuilder, s: ProductSpec) {
];
b.step(
{
- title: "Screw the rails under the top",
+ title: seat ? "Screw the rails under the seat" : "Screw the rails under the top",
detail: "They frame the underside, set in from the edge.",
tools: ["screwdriver"],
pose: "-y",
@@ -168,7 +169,30 @@ export function buildTable(b: PlanBuilder, s: ProductSpec) {
},
);
- if (p.shelf) {
+ if (p.shelf && s.table?.inner) {
+ // between the legs, set in like they are, and screwed through them
+ const shT = b.part("Shelf", [W - 2 * inset - 2 * ls - 2, 18, D - 2 * inset], { material: "board" });
+ const sy = Math.max(110, H * 0.22);
+ const shelf = b.place(shT, [0, sy, 0]);
+ b.step(
+ {
+ title: "Fit the shelf between the legs",
+ detail: "Two screws through each leg.",
+ tools: ["screwdriver"],
+ pose: "-y",
+ kind: "screws",
+ },
+ () => {
+ b.add(shelf, [0, -320, 0]);
+ b.then(0.1);
+ const sc: FitOpts[] = [];
+ corners.forEach(([sx, sz], i) => {
+ for (const dz of [-ls / 5, ls / 5]) sc.push({ on: legs[i], at: [sx * (lx + ls / 2), sy, sz * lz + dz], dir: [-sx, 0, 0], hole: false });
+ });
+ b.fits(HW.screwL, sc, 0.06);
+ },
+ );
+ } else if (p.shelf) {
const shT = b.part("Shelf", [W - 2 * ls - 2, 16, D], { material: "board" });
const sy = Math.max(110, H * 0.26);
const shelf = b.place(shT, [0, sy, 0]);
@@ -195,7 +219,7 @@ export function buildTable(b: PlanBuilder, s: ProductSpec) {
b.step(
{
title: big ? "Turn it over together" : "Turn it over",
- detail: "Lift it by the top, not the legs.",
+ detail: seat ? "Lift it by the seat, not the legs." : "Lift it by the top, not the legs.",
pose: "+y",
kind: "flip",
people: big ? 2 : 1,
diff --git a/src/lib/products.ts b/src/lib/products.ts
index 31b7396..c067bd2 100644
--- a/src/lib/products.ts
+++ b/src/lib/products.ts
@@ -72,7 +72,9 @@ export type Kind =
| "cornerdesk"
| "conftable"
// the long tail of single pieces
- | "lidbox";
+ | "lidbox"
+ | "shelfbench"
+ | "workbench";
export type X = {
rows?: number;
@@ -313,7 +315,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,
+ 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,
};
const CATEGORY: Record<Kind, string> = {
@@ -322,7 +324,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",
+ 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",
};
export const KIND_ARCH: Record<Kind, Archetype> = {
@@ -330,7 +332,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",
+ 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",
};
const round = (x: X) => (x.round ? { round: true } : {});
@@ -605,6 +607,12 @@ function specOf(kind: Kind, name: string, variant: string, w: number, h: number,
const minutes = x.min ?? MIN.cornercab + (door ? 15 : 0) + (x.inner ? 15 : 0) + (x.rows ? 30 : 0) + 5 * (x.shelves ?? 0);
return { ...base, category: hung ? "Corner wall cabinet" : CATEGORY.cornercab, minutes, people: w > 100 ? 2 : 1, difficulty: x.rows ? 3 : 2, cabinet: { doors: door ? 1 : 0, shelves: x.shelves ?? 0, rail: false, plinth: !hung, handles: x.knobs ?? "bar", thickness: 18, ...(hung ? { wall: true } : {}), corner } };
}
+ case "shelfbench":
+ // a bench or stool with a shelf under the seat, built like a table: rails under the seat, legs, the shelf between them
+ return { ...base, difficulty: 2, people: w > 100 ? 2 : 1, table: { attach: w > 70 ? "apron" : "plate", legs: "square", legSize: 45, topThickness: 30, shelf: true, seat: true, inner: true } };
+ case "workbench":
+ // a sturdy table with a shelf low down between its legs
+ return { ...base, difficulty: 2, people: 2, table: { attach: "apron", legs: "square", legSize: 60, topThickness: 30, shelf: true, inner: true } };
case "lidbox": {
// a box with a lid on hinges: a storage bench, a storage table, a footstool or pouffe with a padded lid
const soft = /pouffe|footstool/i.test(x.cat ?? "");
@@ -694,5 +702,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],
+ 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],
};
diff --git a/src/lib/search.ts b/src/lib/search.ts
index 078fb19..6c210ae 100644
--- a/src/lib/search.ts
+++ b/src/lib/search.ts
@@ -73,13 +73,15 @@ const CATEGORY_WORDS: [Kind, string[]][] = [
["junior", ["junior chair", "youth chair", "child s dining chair", "toddler chair", "booster chair"]],
["kidschair", ["children s chair", "childrens chair", "kids chair", "kid chair"]],
["chair", ["chair", "chairs"]],
+ ["workbench", ["work bench", "workbench", "work table", "garage bench", "potting bench", "tool bench", "craft table"]],
+ ["shelfbench", ["bench with storage", "bench with shelf", "bench with a shelf", "stool with storage", "stool with shelf", "entryway bench", "hallway bench", "mudroom bench"]],
["stool", ["stool", "stools"]],
["backbench", ["bench with backrest", "garden bench", "bench with back", "outdoor bench", "park bench", "patio bench"]],
["bench", ["bench"]],
];
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"]);
+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"]);
export function kindOf(q: string): Kind | null {
const f = " " + fold(q) + " ";
diff --git a/src/lib/types.ts b/src/lib/types.ts
index d9d7d72..03afc68 100644
--- a/src/lib/types.ts
+++ b/src/lib/types.ts
@@ -40,6 +40,8 @@ export interface TableParams {
gate?: boolean; // a gateleg table: each leaf rests on a gate leg that swings out from the frame
hinges?: boolean; // the leaves come loose and are screwed on with hinges
ell?: number; // cm: a corner desk, an L-shaped top this deep along each wall (size.w and size.d are its legs)
+ 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
}
export interface BedParams {