[94][95][96] Standards: SIA-400-Baustoffe mit Ansichtsschraffur, Linientypen, „Standards laden“

- Kern standards.rs: 33 Baustoffe/Bekleidungen (Schnittschraffur, Füll-/Ansichtsfarbe, Textur, λ, Rohdichte,
  VKF-RF), Schraffuren, Linientypen, Wand-/Decken-/Dachaufbauten; merge_ops ergänzt nur Fehlendes
- Kern surface_pattern.rs: Ansichtsschraffur (Lattung, Boden-Deckel, Läuferverband, Schindeln, Trapezblech,
  Naturstein polygonal, Plattenteilung), massstabsabhängig ausgedünnt; in Ansicht (Wände, Dächer) und
  Dachaufsicht; je Element drehbar/versetzbar
- Modell: Component.lambda/density/fireClass/elevationColor/surfacePattern/standardId,
  Wall/Roof.surfacePatternAngle/Offset
- render2d/Chunk-Pfad: Punkte im Strichmuster bleiben (Strichpunkt war Strichlinie), Bögen mit Punkten über
  den Strichpfad, Strichmuster skalieren mit dem Massstab; SVG runde Kappen bei Punkten
- Neue Projekte mit Standards, Ressourcen-Manager „Standards laden“, Bauteil-Felder, Textur von ambientCG laden
This commit is contained in:
Claude committed 2026-10-29 23:15:07 +00:00
1 parent f24d41607b
commit 2bd39cf404
35 files changed
+1707 -33

No files matched your search

+6 -3
View File
@@ -39,6 +39,7 @@ import {
import type { LockInfo } from "../native/projectFile";
import { addRecentProject, removeRecentProject } from "./recentProjects";
import { emptyProject, sampleProject } from "../model/sampleProject";
import { withStandards } from "../model/standards";
import type { Project } from "../model/types";
import type { PlanViewHandle } from "../views/plan/PlanView";
@@ -366,8 +367,10 @@ export function useProjectFileActions(
// `guardDiscard`: bei ungespeicherten Änderungen erst der Dialog, s. o.
const onNewProject = () => guardDiscard(() => {
releaseCurrentProjectLock();
getState().loadProject(emptyProject);
lastSavedProjectRef.current = emptyProject;
// Neue Projekte bringen die SIA-400-Standards mit ([94]–[96]).
const next = withStandards(emptyProject);
getState().loadProject(next);
lastSavedProjectRef.current = next;
});
// Übernimmt ein neues, noch UNGESPEICHERTES Projekt aus Vorlagen-Inhalt
@@ -390,7 +393,7 @@ export function useProjectFileActions(
// Startzustand, s. state/projectSlice.ts).
const onNewProjectFromSample = () => guardDiscard(() => {
releaseCurrentProjectLock();
const next = structuredClone(sampleProject);
const next = withStandards(structuredClone(sampleProject));
getState().loadProject(next);
lastSavedProjectRef.current = next;
});