[109] [102] Schraffuren und Linientypen nach SIA 400:2000 (Fig. 34, B.3, B.8.4.1)
Beton unbewehrt wie Stahlbeton gekreuzt; Backstein/Kalksandstein 45°/135° gleiche Teilung; Dämmstoffe als Parallelen quer zur Schicht (Dämmschlange bleibt als Alternative); Mörtel, Gips, Putz, Estrich und Metall leer; neue Muster wood (Holz massiv), woodBased (Holzwerkstoff), barrier (Sperrschicht); Naturstein paarweise bei 1/3; Glas, Sperrschicht, Stahl M 1:1 neu; Punktierte Linie, Linientyp Sperrschicht. Standards aktualisieren erkennt frühere Standard-Namen.
This commit is contained in:
17 files changed
+413
-109
No files matched your search
@@ -1562,6 +1562,9 @@ export const de = {
|
||||
"pattern.earth": "Erdreich",
|
||||
"pattern.gravel": "Kies",
|
||||
"pattern.dots": "Punktfeld (Putz)",
|
||||
"pattern.wood": "Holz massiv (Maserung)",
|
||||
"pattern.woodBased": "Holzwerkstoff (Dreiergruppen)",
|
||||
"pattern.barrier": "Sperrschicht (Strichlinie)",
|
||||
"pattern.diagonal": "Diagonal",
|
||||
"pattern.crosshatch": "Kreuzschraffur",
|
||||
"pattern.custom": "Eigenes Motiv",
|
||||
|
||||
@@ -1553,6 +1553,9 @@ export const en: Record<TranslationKey, string> = {
|
||||
"pattern.earth": "Earth",
|
||||
"pattern.gravel": "Gravel",
|
||||
"pattern.dots": "Dot field (plaster)",
|
||||
"pattern.wood": "Solid timber (grain)",
|
||||
"pattern.woodBased": "Wood-based panel (groups of three)",
|
||||
"pattern.barrier": "Barrier layer (dashed)",
|
||||
"pattern.diagonal": "Diagonal",
|
||||
"pattern.crosshatch": "Crosshatch",
|
||||
"pattern.custom": "Custom motif",
|
||||
|
||||
@@ -590,16 +590,17 @@ function annotations(): Drawing2D[] {
|
||||
const dl = "detail-traufe";
|
||||
// Lage abseits des Geländes (Kontext wird auf allen Ebenen gezeichnet), Ursprung x = 60 m.
|
||||
const Q = (x: number, y: number) => P(DETAIL_X + x, y);
|
||||
const layer = (id: string, x0: number, y0: number, x1: number, y1: number, hatchId: string, fillColor = "#ffffff") =>
|
||||
add(id, dl, "85", { shape: "rect", min: Q(x0, y0), max: Q(x1, y1) }, { hatchId, fillColor, weightMm: 0.25, lineStyleId: "std-ls-voll" });
|
||||
const layer = (id: string, x0: number, y0: number, x1: number, y1: number, hatchId: string, fillColor = "#ffffff", hatchAngleDeg?: number) =>
|
||||
add(id, dl, "85", { shape: "rect", min: Q(x0, y0), max: Q(x1, y1) }, { hatchId, fillColor, weightMm: 0.25, lineStyleId: "std-ls-voll", ...(hatchAngleDeg != null ? { hatchAngleDeg } : {}) });
|
||||
layer("det-aussenputz", 0, 0, 0.02, 2.0, "std-h-putz");
|
||||
layer("det-eps", 0.02, 0, 0.2, 2.0, "std-h-eps");
|
||||
// Dämmstoffe (SIA 400 Fig. 34): Linien quer zur senkrechten Schicht.
|
||||
layer("det-eps", 0.02, 0, 0.2, 2.0, "std-h-daemmung-weich", "#ffffff", 90);
|
||||
layer("det-bs-unten", 0.2, 0, 0.375, 0.99, "std-h-backstein");
|
||||
layer("det-bs-oben", 0.2, 1.37, 0.375, 2.0, "std-h-backstein");
|
||||
layer("det-decke", 0.2, 0.99, 1.4, 1.24, "std-h-stahlbeton");
|
||||
layer("det-tsd", 0.375, 1.24, 1.4, 1.28, "std-h-daemmung-weich");
|
||||
layer("det-estrich", 0.375, 1.28, 1.4, 1.345, "std-h-estrich");
|
||||
layer("det-parkett", 0.375, 1.345, 1.4, 1.36, "std-h-holz");
|
||||
layer("det-parkett", 0.375, 1.345, 1.4, 1.36, "std-h-holz-massiv");
|
||||
layer("det-putz-unten", 0.375, 0, 0.39, 0.99, "std-h-putz");
|
||||
layer("det-putz-decke", 0.39, 0.98, 1.4, 0.99, "std-h-putz");
|
||||
add("det-randstreifen", dl, "85", { shape: "line", a: Q(0.38, 1.24), b: Q(0.38, 1.36) }, { lineStyleId: "std-ls-strich-fein", weightMm: 0.18 });
|
||||
|
||||
+25
-11
@@ -32,17 +32,21 @@ describe("Standard-Bibliothek ([100]–[102])", () => {
|
||||
it("zählt, was „Standards laden“ hinzufügt (Rückmeldung)", () => {
|
||||
const empty = { ...emptyProject, components: [], hatches: [], lineStyles: [], wallTypes: [], ceilingTypes: [], roofTypes: [] };
|
||||
const c = standardsMergeCounts(standardsMergeOps(empty));
|
||||
expect(c.components).toBe(34);
|
||||
expect(c.components).toBe(35);
|
||||
expect(c.lineStyles).toBeGreaterThan(5);
|
||||
expect(c.wallTypes + c.ceilingTypes + c.roofTypes).toBe(5);
|
||||
expect(standardsMergeCounts(standardsMergeOps(withStandards(empty)))).toEqual({ lineStyles: 0, hatches: 0, components: 0, wallTypes: 0, ceilingTypes: 0, roofTypes: 0 });
|
||||
});
|
||||
|
||||
it("Putz, Keramik und Faserzement haben eine Schraffur", () => {
|
||||
it("Sinnbilder nach SIA 400 Fig. 34: Putz leer, Dämmung quer, Beton gekreuzt", () => {
|
||||
const p = withStandards({ ...emptyProject, components: [], hatches: [], lineStyles: [], wallTypes: [], ceilingTypes: [], roofTypes: [] });
|
||||
const hatchOf = (name: string) => p.hatches.find((h) => h.id === p.components.find((c) => c.name === name)!.hatchId)!;
|
||||
expect(hatchOf("Innenputz").pattern).toBe("dots");
|
||||
expect(hatchOf("Aussenputz").pattern).toBe("dots");
|
||||
expect(hatchOf("Innenputz").pattern).toBe("none");
|
||||
expect(hatchOf("Aussenputz").pattern).toBe("none");
|
||||
expect(hatchOf("Beton").pattern).toBe("crosshatch");
|
||||
expect(hatchOf("EPS").pattern).toBe("diagonal");
|
||||
expect(hatchOf("EPS").angle).toBe(0);
|
||||
expect(hatchOf("Holzwerkstoff (OSB/Spanplatte)").pattern).toBe("woodBased");
|
||||
expect(hatchOf("Keramikplatten").pattern).toBe("crosshatch");
|
||||
expect(hatchOf("Faserzementplatten").pattern).toBe("diagonal");
|
||||
});
|
||||
@@ -50,21 +54,31 @@ describe("Standard-Bibliothek ([100]–[102])", () => {
|
||||
it("„Standards aktualisieren“: alte Definitionen auf heutigen Stand, Auswahl, ein Op-Satz", () => {
|
||||
const full = withStandards({ ...emptyProject, components: [], hatches: [], lineStyles: [], wallTypes: [], ceilingTypes: [], roofTypes: [] });
|
||||
expect(standardsUpdatePlan(full).changes).toEqual([]);
|
||||
// Stand 29.10.: EPS mit alter Schraffur, Putz ohne Schraffur, XPS umbenannt
|
||||
// Stand 30.10.: Dämmschlange unter dem früheren Namen, Putz-Schraffur fehlt, Kalksandstein umbenannt
|
||||
const old = {
|
||||
...full,
|
||||
hatches: full.hatches.filter((h) => h.id !== "std-h-putz").map((h) => (h.id === "std-h-eps" ? { ...h, pattern: "insulation" as const } : h.id === "std-h-xps" ? { ...h, name: "Meine XPS", pattern: "diagonal" as const } : h)),
|
||||
hatches: full.hatches
|
||||
.filter((h) => h.id !== "std-h-putz")
|
||||
.map((h) =>
|
||||
h.id === "std-h-daemmung-weich"
|
||||
? { ...h, name: "SIA Dämmung weich", pattern: "insulation" as const }
|
||||
: h.id === "std-h-kalksandstein"
|
||||
? { ...h, name: "Mein KS", pattern: "crosshatch" as const }
|
||||
: h,
|
||||
),
|
||||
components: full.components.map((c) => (c.id === "std-c-innenputz" ? { ...c, hatchId: "std-h-ohne" } : c)),
|
||||
};
|
||||
const plan = standardsUpdatePlan(old);
|
||||
expect(plan.added).toBe(1);
|
||||
expect(plan.changes.map((c) => c.id).sort()).toEqual(["std-c-innenputz", "std-h-eps", "std-h-xps"]);
|
||||
expect(plan.changes.find((c) => c.id === "std-h-xps")!.renamed).toBe(true);
|
||||
expect(plan.changes.map((c) => c.id).sort()).toEqual(["std-c-innenputz", "std-h-daemmung-weich", "std-h-kalksandstein"]);
|
||||
expect(plan.changes.find((c) => c.id === "std-h-kalksandstein")!.renamed).toBe(true);
|
||||
expect(plan.changes.find((c) => c.id === "std-h-daemmung-weich")!.renamed).toBe(false);
|
||||
const selected = plan.changes.filter((c) => !c.renamed).map(standardsChangeKey);
|
||||
const after = applyOps(old, standardsUpdateOps(old, selected));
|
||||
expect(after.hatches.find((h) => h.id === "std-h-eps")!.pattern).toBe("insulationHard");
|
||||
expect(after.hatches.find((h) => h.id === "std-h-xps")!.pattern).toBe("diagonal");
|
||||
const dae = after.hatches.find((h) => h.id === "std-h-daemmung-weich")!;
|
||||
expect([dae.name, dae.pattern]).toEqual(["SIA Dämmstoffe", "diagonal"]);
|
||||
expect(after.hatches.find((h) => h.id === "std-h-kalksandstein")!.pattern).toBe("crosshatch");
|
||||
expect(after.components.find((c) => c.id === "std-c-innenputz")!.hatchId).toBe("std-h-putz");
|
||||
expect(standardsUpdatePlan(after).changes.map((c) => c.id)).toEqual(["std-h-xps"]);
|
||||
expect(standardsUpdatePlan(after).changes.map((c) => c.id)).toEqual(["std-h-kalksandstein"]);
|
||||
});
|
||||
});
|
||||
@@ -1370,7 +1370,10 @@ export type HatchPattern =
|
||||
| "earth"
|
||||
| "gravel"
|
||||
| "stone"
|
||||
| "dots";
|
||||
| "dots"
|
||||
| "woodBased"
|
||||
| "wood"
|
||||
| "barrier";
|
||||
|
||||
/** Eine wiederverwendbare Schraffur (Hatch Manager). */
|
||||
export type HatchStyle = {
|
||||
|
||||
@@ -118,6 +118,9 @@ const PATTERN_CODE: Record<string, number> = {
|
||||
gravel: 10,
|
||||
stone: 11,
|
||||
dots: 12,
|
||||
woodBased: 13,
|
||||
wood: 14,
|
||||
barrier: 15,
|
||||
};
|
||||
|
||||
/** Ein Hatch-Datensatz (auch Eingabe der Einzel-Bindungen in `glPlanHatch.ts`). */
|
||||
|
||||
@@ -33,6 +33,9 @@ const PATTERN_OPTIONS: { value: HatchPattern; labelKey: string }[] = [
|
||||
{ value: "earth", labelKey: "pattern.earth" },
|
||||
{ value: "gravel", labelKey: "pattern.gravel" },
|
||||
{ value: "dots", labelKey: "pattern.dots" },
|
||||
{ value: "wood", labelKey: "pattern.wood" },
|
||||
{ value: "woodBased", labelKey: "pattern.woodBased" },
|
||||
{ value: "barrier", labelKey: "pattern.barrier" },
|
||||
{ value: "custom", labelKey: "pattern.custom" },
|
||||
];
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ describe("polyUsesPattern — gradient", () => {
|
||||
|
||||
describe("polyUsesPattern — Kern-Generator-Muster ([109])", () => {
|
||||
it("Schicht-/Streumuster laufen über buildHatchRuns, nicht über <pattern>-Kacheln", () => {
|
||||
for (const pattern of ["insulation", "insulationHard", "insulationWave", "timber", "earth", "gravel", "stone", "dots"] as const) {
|
||||
for (const pattern of ["insulation", "insulationHard", "insulationWave", "timber", "earth", "gravel", "stone", "dots", "wood", "woodBased", "barrier"] as const) {
|
||||
expect(isGeneratedPattern(pattern)).toBe(true);
|
||||
expect(polyUsesPattern(hatch({ pattern }))).toBe(false);
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ export function needsPattern(pattern: HatchRender["pattern"]): boolean {
|
||||
|
||||
/**
|
||||
* Muster, die der Kern-Generator als Linien/Polylinien erzeugt ([109]: Dämmschlange, Zickzack, Welle, Holzkreuz,
|
||||
* Naturstein, Erdreich, Kies, Punktfeld) — der SVG-Rückfall zeichnet sie wie GL/Druck-SVG aus
|
||||
* Naturstein, Erdreich, Kies, Punktfeld; Holz massiv, Holzwerkstoffe, Sperrschicht nach SIA 400) — der SVG-Rückfall zeichnet sie wie GL/Druck-SVG aus
|
||||
* `buildHatchRuns` (eine Implementierung) statt als `<pattern>`-Kachel.
|
||||
*/
|
||||
export function isGeneratedPattern(pattern: HatchRender["pattern"]): boolean {
|
||||
@@ -39,7 +39,10 @@ export function isGeneratedPattern(pattern: HatchRender["pattern"]): boolean {
|
||||
pattern === "earth" ||
|
||||
pattern === "gravel" ||
|
||||
pattern === "stone" ||
|
||||
pattern === "dots"
|
||||
pattern === "dots" ||
|
||||
pattern === "woodBased" ||
|
||||
pattern === "wood" ||
|
||||
pattern === "barrier"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user