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 a laptop table and a bench with a pad

Youssefcc1b904d7a7e
diff --git a/scripts/ikea/classify.ts b/scripts/ikea/classify.ts
index 0a5d6aa..86e2061 100644
--- a/scripts/ikea/classify.ts
+++ b/scripts/ikea/classify.ts
@@ -390,6 +390,8 @@ const RULES: Rule[] = [
[/^sideboard basic unit$/, () => ({ kind: "sideboard" })],
[/^tv bench with plinth$/, () => ({ kind: "tv" })],
[/^shelving unit\/bench$/, () => ({ kind: "open" })],
+ // a laptop table is a small desk
+ [/^laptop table$/, () => ({ kind: "desk" })],
[/^bar stool with backrest, foldable$/, () => ({ kind: "chair", x: { seatH: 63 } })],
[/^three-seat sofa$/, () => ({ kind: "sofa", x: { seats: 3 } })],
[/^(modular )?chest of (\d+) drawers$/, (m) => ({ kind: "chest", x: { rows: Number(m[2]) } })],
@@ -461,6 +463,8 @@ 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" })],
+ // 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)
[/^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" })],
diff --git a/scripts/ikea/slugs.json b/scripts/ikea/slugs.json
index a50524c..e389df1 100644
--- a/scripts/ikea/slugs.json
+++ b/scripts/ikea/slugs.json
@@ -1222,6 +1222,7 @@
"STOCKHOLM 2025|3-seat sofa": "stockholm-2025-3-seat-sofa",
"STOCKHOLM 2025|4-seat sofa": "stockholm-2025-4-seat-sofa",
"STOCKHOLM 2025|Armchair": "stockholm-2025-armchair",
+ "STOCKHOLM 2025|Bench with pad": "stockholm-2025-bench-pad",
"STOCKHOLM 2025|Cabinet with 2 doors, 80 × 40 × 126 cm": "stockholm-2025-cabinet-2-doors-80-x-40-x-126",
"STOCKHOLM 2025|Cabinet with sliding doors, 125 × 47 × 110 cm": "stockholm-2025-cabinet-sliding-doors-125-x-47-x",
"STOCKHOLM 2025|Chair": "stockholm-2025-chair",
@@ -1489,6 +1490,7 @@
"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",
"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",
"VITTSJÖ|Shelving unit, 100 × 93 cm": "vittsjo-shelving-unit-100-x-93",
"VITTSKÄR|1-seat section for modular sofa": "vittskar-1-seat-section-for-modular-sofa",
diff --git a/src/data/ikea-items.ts b/src/data/ikea-items.ts
index c7fa860..8ccc76b 100644
--- a/src/data/ikea-items.ts
+++ b/src/data/ikea-items.ts
@@ -1304,6 +1304,7 @@ stockholm-2025-2-seat-sofa|60586121 60586116 50586112
stockholm-2025-3-seat-sofa|99574297 29574291 09574305 20586095
stockholm-2025-4-seat-sofa|59574322 59574317 09574310
stockholm-2025-armchair|10594755 09578266
+stockholm-2025-bench-pad|49606818
stockholm-2025-cabinet-2-doors-80-x-40-x-126|90586488 10586487 10586492
stockholm-2025-cabinet-sliding-doors-125-x-47-x|70586639
stockholm-2025-chair|40593783 80593781 20590139 40590138 90593785
@@ -1579,6 +1580,7 @@ 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
vittsjo-coffee-table-75|80213309 30604348
+vittsjo-laptop-table-100-x-36|60619536 40619537
vittsjo-shelving-unit-100-x-175|20213312
vittsjo-shelving-unit-100-x-93|90305803
vittsjo-shelving-unit-51-x-175|50214678
diff --git a/src/data/ikea-rows.ts b/src/data/ikea-rows.ts
index 0340a15..6f988b6 100644
--- a/src/data/ikea-rows.ts
+++ b/src/data/ikea-rows.ts
@@ -1223,6 +1223,7 @@ STOCKHOLM|coffee|Coffee table, 180 × 59 cm|180|45|59
STOCKHOLM|sofa|Three-seat sofa|230|85|92|seats=3
STOCKHOLM 2025|armchair|Armchair|75|90|80
STOCKHOLM 2025|armchair|Easy chair|75|90|80
+STOCKHOLM 2025|bench|Bench with pad|100|45|38
STOCKHOLM 2025|cabinet|Cabinet with 2 doors, 80 × 40 × 126 cm|80|126|40
STOCKHOLM 2025|cabinet|Glass-door cabinet, 100 × 40 × 86 cm|100|86|40
STOCKHOLM 2025|chair|Chair|44|88|50
@@ -1490,6 +1491,7 @@ 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
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
VITTSKÄR|chair|Chair with armrests|44|88|50|arms=slim|outdoor garden