[5] Doppelspur Door/Opening aufgeloest: Formatversion 2 migriert Legacy-Tueren zu Oeffnungen (kind door), Project.doors und Door entfernt, Legacy-Pfade in Plan/Schnitt/Ansicht/3D/Liste gestrichen; Tests angepasst
This commit is contained in:
1 parent
346798eee6
commit
b0270bae3e
94 files changed
+100
-367
No files matched your search
@@ -41,7 +41,6 @@ function twoWallProject(w1: Wall, w2: Wall, thickness: number): Project {
|
||||
],
|
||||
layers: [{ code: "20", name: "Wände", color: "#0a0a0a", lw: 0.5, visible: true, locked: false }],
|
||||
walls: [w1, w2],
|
||||
doors: [],
|
||||
openings: [],
|
||||
ceilings: [],
|
||||
stairs: [],
|
||||
@@ -303,7 +302,6 @@ function layeredWallProject(w1: Wall, w2: Wall, w3: Wall): Project {
|
||||
],
|
||||
layers: [{ code: "20", name: "Wände", color: "#0a0a0a", lw: 0.5, visible: true, locked: false }],
|
||||
walls: [w1, w2, w3],
|
||||
doors: [],
|
||||
openings: [],
|
||||
ceilings: [],
|
||||
stairs: [],
|
||||
|
||||
@@ -69,7 +69,6 @@ function project(patch?: Partial<Project>): Project {
|
||||
drawingLevels: [],
|
||||
layers: [],
|
||||
walls: [],
|
||||
doors: [],
|
||||
drawings2d: [],
|
||||
...patch,
|
||||
};
|
||||
|
||||
@@ -22,7 +22,6 @@ function baseProject(overrides: Partial<Project> = {}): Project {
|
||||
drawingLevels: [],
|
||||
layers: [],
|
||||
walls: [],
|
||||
doors: [],
|
||||
drawings2d: [],
|
||||
...overrides,
|
||||
};
|
||||
|
||||
+16
-14
@@ -437,22 +437,25 @@ export const sampleProject: Project = {
|
||||
// West (links)
|
||||
{ id: "W8", type: "wall", floorId: "og", categoryCode: "20", start: { x: 0, y: 3 }, end: { x: 0, y: 0 }, wallTypeId: "aw", height: 2.6 },
|
||||
],
|
||||
doors: [
|
||||
{
|
||||
id: "D1",
|
||||
type: "door",
|
||||
hostWallId: "W1",
|
||||
categoryCode: "21",
|
||||
position: 0.8, // Startkante 0.8 m ab Wand-Start → Tür x 0.8–1.7, links von W9 (x=2.4)
|
||||
width: 0.9,
|
||||
height: 2.1,
|
||||
swing: "left", // schlägt nach innen (in den Raum) auf
|
||||
hinge: "start",
|
||||
},
|
||||
],
|
||||
// Öffnungen (Fenster/Türen) — ein Beispiel-Fenster in der EG-Südwand (W1,
|
||||
// frei von der Tür) und in der EG-Nordwand (W3). Kategorie „21" (Türen/Fenster).
|
||||
openings: [
|
||||
// Zimmertür in der EG-Südwand (W1), links von W9 (x = 2.4): Anschlag 0.8 m ab Wandstart
|
||||
// (x 0.8–1.7), schlägt nach innen auf. (Früher ein Legacy-`Door`.)
|
||||
{
|
||||
id: "D1",
|
||||
type: "opening",
|
||||
hostWallId: "W1",
|
||||
categoryCode: "21",
|
||||
kind: "door",
|
||||
typeId: "door-standard",
|
||||
position: 0.8,
|
||||
width: 0.9,
|
||||
height: 2.1,
|
||||
sillHeight: 0,
|
||||
swing: "left",
|
||||
hinge: "start",
|
||||
},
|
||||
{
|
||||
id: "O1",
|
||||
type: "opening",
|
||||
@@ -583,7 +586,6 @@ export const emptyProject: Project = {
|
||||
id: "empty",
|
||||
name: "Leeres Projekt",
|
||||
walls: [],
|
||||
doors: [],
|
||||
openings: [],
|
||||
ceilings: [],
|
||||
roofs: [],
|
||||
|
||||
@@ -1698,25 +1698,6 @@ export interface RoomStamp {
|
||||
roundingStep?: number;
|
||||
}
|
||||
|
||||
/** Eine Tür, gehostet in einer Wand. Ihr Geschoss ergibt sich aus der Wand. */
|
||||
export interface Door {
|
||||
id: string;
|
||||
type: "door";
|
||||
hostWallId: string;
|
||||
/** Grafik-Kategorie (Ebene), z. B. "21" für Türen/Fenster. */
|
||||
categoryCode: string;
|
||||
/** Abstand des Türanschlags (erster Pfosten) vom Wand-Startpunkt, in Metern. */
|
||||
position: number;
|
||||
/** Türbreite (lichte Öffnung) in Metern. */
|
||||
width: number;
|
||||
/** Türhöhe in Metern. */
|
||||
height: number;
|
||||
/** Auf welche Seite der Wandachse die Tür aufschlägt. */
|
||||
swing: SwingSide;
|
||||
/** An welchem Pfosten das Scharnier sitzt. */
|
||||
hinge: "start" | "end";
|
||||
}
|
||||
|
||||
// ── Freie 2D-Zeichengeometrie (Drawing2D) ──────────────────────────────────
|
||||
// Ein semantisches 2D-Element (wie Wall/Door), das beim Rendern abgeleitet wird
|
||||
// (keine vorab erzeugten Plan-Primitive). Siehe docs/design/drawing-tools.md §7.
|
||||
@@ -2919,7 +2900,6 @@ export interface Project {
|
||||
ceilings?: Ceiling[];
|
||||
/** Dächer über (rechteckigen) Grundriss-Umrissen. Optional (Alt-Projekte). */
|
||||
roofs?: Roof[];
|
||||
doors: Door[];
|
||||
/**
|
||||
* Öffnungen (Fenster/Türen), gehostet in Wänden. Optional, damit bestehende
|
||||
* Projekte/Tests ohne `openings` gültig bleiben (Default: leer behandeln).
|
||||
|
||||
@@ -41,7 +41,6 @@ function makeProject(overrides?: Partial<Project>): Project {
|
||||
],
|
||||
layers: [{ code: "30", name: "Decken", color: "#0a0a0a", lw: 0.5, visible: true, locked: false }],
|
||||
walls: [],
|
||||
doors: [],
|
||||
openings: [],
|
||||
ceilings: [],
|
||||
stairs: [],
|
||||
|
||||
Reference in new issue
Block a user