[131] Geschosse: Bezugsgeschoss ±0.00, Untergeschosse negativ (Format 5)

DrawingLevel.zeroLevel markiert das Geschoss auf ±0.00; der Kern stapelt nach
Geschosshöhen und verschiebt den Stapel darauf. Koten im Schnitt/in der Ansicht
relativ zu ±0.00, an ±0.00 mit Meereshöhe. UI: Bezug ±0.00 und OK FB im
Geschoss-Editor, Navigator mit Vorzeichen. Musterhaus komplex: EG = ±0.00,
UG -2.70, absolute Höhen verschoben; Golden nachgeführt.
This commit is contained in:
Claude committed 2026-11-04 00:34:08 +00:00
1 parent 137afdda84
commit fd5f2693ab
31 files changed
+342 -94

No files matched your search

+16
View File
@@ -8,6 +8,7 @@ import {
collectVisibleCodes,
findCategory,
flattenCategories,
formatElevation,
insertAfterCode,
nextFreeCode,
patchCategoryByCode,
@@ -69,4 +70,19 @@ describe("Geschoss-Stapelung (Kern)", () => {
it("Musterprojekt trägt die gestapelten Höhen ausgeschrieben (Modul wird vor dem Kern geladen)", () => {
expect(recomputeFloorElevations(sampleProject.drawingLevels)).toEqual(sampleProject.drawingLevels);
});
it("[131] Bezugsgeschoss ±0.00: Untergeschoss negativ, nur ein Kennzeichen", () => {
const l = [
{ id: "ug", name: "UG", kind: "floor", visible: true, locked: false, floorHeight: 2.8 },
{ id: "eg", name: "EG", kind: "floor", visible: true, locked: false, floorHeight: 3, zeroLevel: true },
{ id: "og", name: "OG", kind: "floor", visible: true, locked: false, floorHeight: 2.9, zeroLevel: true },
] as DrawingLevel[];
const r = recomputeFloorElevations(l);
expect(r.map((x) => x.baseElevation)).toEqual([-2.8, 0, 3]);
expect(r.map((x) => x.zeroLevel)).toEqual([undefined, true, undefined]);
});
it("[131] Höhenanzeige relativ zu ±0.00", () => {
expect([-2.8, 0, -0.001, 2.7].map(formatElevation)).toEqual(["−2.80", "±0.00", "±0.00", "+2.70"]);
});
});