[140] Tusche-Standard: Kategorien, Kontext, Baurecht, Schatten, Achsen, Glas grau/schwarz; Bildschirm: Strichbreite unter 1 px als Deckung (Rangfolge bleibt sichtbar)

This commit is contained in:
Claude committed 2026-11-05 18:27:44 +00:00
1 parent 2738566a25
commit 9c79870d81
13 files changed
+55 -43

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ import type { Project } from "../model/types";
const ALL = new Set(flattenCategories(sampleProject.layers).map((c) => c.code));
/** Füllfarbe der Schattenflächen (`core/src/plan/extras.rs::SUN_SHADOW_FILL`). */
const SUN_SHADOW_FILL = "#3a4a66";
const SUN_SHADOW_FILL = "#3c3c3c";
const withStudy = (when: string, show = true): Project => ({ ...sampleProject, sunStudy: { when, show } });
const shadows = (p: Project, floorId: string) =>
+3 -3
View File
@@ -359,7 +359,7 @@ describe("toElevation — Öffnungen: Verdeckung + Reveal-Schatten", () => {
const plan = generateElevationPlan(p, p.drawingLevels[1])!;
// Glasflächen = weiss/blau gefüllte Polygone mit Kontur, keine Öffnung/Rahmen.
return plan.primitives.filter(
(pr) => pr.kind === "polygon" && pr.fill === "#9fc2d9",
(pr) => pr.kind === "polygon" && pr.fill === "#d3d8dd",
).length;
};
expect(glassCount(1)).toBe(1); // fest, 1 Feld
@@ -405,7 +405,7 @@ describe("toElevation — Öffnungen: Verdeckung + Reveal-Schatten", () => {
const plan = generateElevationPlan(p, p.drawingLevels[1])!;
// Glasflächen = weiss/blau gefüllte Polygone mit Kontur, keine Öffnung/Rahmen.
return plan.primitives.filter(
(pr) => pr.kind === "polygon" && pr.fill === "#9fc2d9",
(pr) => pr.kind === "polygon" && pr.fill === "#d3d8dd",
).length;
};
expect(glassCount(1)).toBe(1); // fest, 1 Feld
@@ -504,7 +504,7 @@ describe("Dächer auf L-Grundriss in der Ansicht", () => {
});
describe("toElevation — Tür-Teilverglasung (glazingRatio)", () => {
const GLASS_FILL_COLOR = "#9fc2d9";
const GLASS_FILL_COLOR = "#d3d8dd";
const DOOR_LEAF_FILL_COLOR = "#ede6d9";
function doorProject(dt: {