[260] Fenster/Türen im Grundriss symbolisch oder geschnitten

Modell OpeningPlanMode (symbolisch|geschnitten) an Öffnung, Fenster-/Türtyp und
Modelldarstellung (walls.openingPlanMode); Rangfolge Element > Typ > Modelldarstellung,
Vorgabe symbolisch. Symbolisch: Öffnungssymbol in der Wandlücke unabhängig von der
Schnitthöhe (Formöffnungen mit voller Breite); geschnitten: nach der Schnitthöhe,
darüber/darunter Wand geschlossen + Linie über/unter Schnitt, hell auf schwarzer Wand.
Objekteinstellungen (T) Feld „Im Grundriss“ für alle gewählten Öffnungen in einem
Undo-Schritt (auch macOS-Nebenfenster über die Handler-Weiterleitung), Typen und
Modelldarstellung in den Ressourcen. Goldens Musterhaus komplex nachgeführt (Fenster
über der Schnitthöhe jetzt als Symbol). Rust-, vitest- und e2e-Tests; Doku, Release-Notes
(Frage 12 erledigt), Mac-Prüfzeile 13.29.
This commit is contained in:
Claude committed 2026-11-15 01:58:14 +00:00
1 parent e829934418
commit eaf5213316
32 files changed
+497 -48

No files matched your search

+8
View File
@@ -903,6 +903,11 @@ export const de = {
"objinfo.opening.lintelLineStyle.durchgehend": "Durchgehend",
"objinfo.opening.lintelLineStyle.keine": "Keine",
"objinfo.opening.fromType": "Wie Typ",
"objinfo.opening.planMode": "Im Grundriss",
"objinfo.opening.planMode.tip": "Darstellung im Grundriss: symbolisch (Symbol unabhängig von der Schnitthöhe) oder geschnitten (nach der Schnitthöhe)",
"objinfo.opening.planMode.symbolisch": "symbolisch",
"objinfo.opening.planMode.geschnitten": "geschnitten",
"objinfo.opening.planMode.fromModelView": "Wie Modelldarstellung",
"objinfo.opening.on": "Ein",
"objinfo.opening.off": "Aus",
"objinfo.opening.sashSymbols": "Öffnungslinien (Ansicht)",
@@ -1351,6 +1356,9 @@ export const de = {
"resources.modelViews.opt.walls.reveals": "Schichteinzug",
"resources.modelViews.opt.walls.cutHatch": "Schnittflächen ab 1:100 schraffiert",
"resources.modelViews.opt.walls.contrastOnSolid": "Öffnungen über/unter Schnitt hell auf schwarzer Wand",
"resources.modelViews.opt.walls.openingPlanMode": "Fenster/Türen im Grundriss",
"resources.modelViews.val.symbolisch": "symbolisch",
"resources.modelViews.val.geschnitten": "geschnitten",
"resources.modelViews.opt.slabs.floorFinish": "Bodenbelag",
"resources.modelViews.opt.sectionMarks.style": "Markentyp der Schnitte",
"resources.modelViews.val.arrow": "Pfeil",
+8
View File
@@ -901,6 +901,11 @@ export const en: Record<TranslationKey, string> = {
"objinfo.opening.lintelLineStyle.durchgehend": "Solid",
"objinfo.opening.lintelLineStyle.keine": "None",
"objinfo.opening.fromType": "As type",
"objinfo.opening.planMode": "In plan",
"objinfo.opening.planMode.tip": "Display in plan: symbolic (symbol regardless of cut height) or cut (by cut height)",
"objinfo.opening.planMode.symbolisch": "symbolic",
"objinfo.opening.planMode.geschnitten": "cut",
"objinfo.opening.planMode.fromModelView": "As model view",
"objinfo.opening.on": "On",
"objinfo.opening.off": "Off",
"objinfo.opening.sashSymbols": "Opening lines (elevation)",
@@ -1345,6 +1350,9 @@ export const en: Record<TranslationKey, string> = {
"resources.modelViews.opt.walls.reveals": "Layer reveal",
"resources.modelViews.opt.walls.cutHatch": "Hatch cut faces from 1:100",
"resources.modelViews.opt.walls.contrastOnSolid": "Openings above/below cut drawn light on solid walls",
"resources.modelViews.opt.walls.openingPlanMode": "Windows/doors in plan",
"resources.modelViews.val.symbolisch": "symbolic",
"resources.modelViews.val.geschnitten": "cut",
"resources.modelViews.opt.slabs.floorFinish": "Floor finish",
"resources.modelViews.opt.sectionMarks.style": "Section marker type",
"resources.modelViews.val.arrow": "Arrow",
+19
View File
@@ -796,6 +796,10 @@ export type DoorType = {
lintelHeight?: number;
/** Linientyp der Sturzlinien im Grundriss ([105]); fehlt ⇒ gestrichelt. */
lintelLineStyle?: LintelLineStyle;
/**
* [260] Darstellung im Grundriss: symbolisch (Symbol unabhängig von der Schnitthöhe) oder geschnitten; fehlt ⇒ Modelldarstellung.
*/
planMode?: OpeningPlanMode;
/**
* Rahmen-Detail ([105]): Blendrahmen je Seite, Flügelrahmen, Pfosten/Kämpfer, Zusatzprofile,
* Anschlag je Seite. Fehlt ⇒ wie bisher (`frameWidth`, `rebateDepth`).
@@ -2473,6 +2477,10 @@ export type ModelViewWalls = {
* (weiss) statt dunkel, damit das strichpunktierte Symbol lesbar bleibt (Basis: ja).
*/
contrastOnSolid?: boolean;
/**
* [260] Fenster/Türen im Grundriss: symbolisch oder geschnitten, solange Element und Typ nichts sagen (Basis: symbolisch).
*/
openingPlanMode?: OpeningPlanMode;
};
/** [173] Fenster in der Modelldarstellung (fehlt ⇒ wie Basis). */
@@ -2637,6 +2645,10 @@ export type Opening = {
* Fenster: Aufschlagbogen der Drehflügel im Grundriss ein/aus (übersteuert den Fenstertyp, [95]).
*/
planSwingArcs?: boolean;
/**
* [260] Darstellung im Grundriss (übersteuert Tür-/Fenstertyp und Modelldarstellung); fehlt ⇒ wie Typ.
*/
planMode?: OpeningPlanMode;
/**
* Referenz auf einen Bauteil-Typ (Bibliothek): {@link DoorType} bei
* `kind: "door"`, {@link WindowType} bei `kind: "window"`. Fehlt sie, gilt
@@ -2742,6 +2754,9 @@ export type Opening = {
*/
export type OpeningKind = "dreh" | "kipp" | "drehkipp" | "fest" | "schiebe";
/** [260] Darstellungsart von Fenstern und Türen im Grundriss. */
export type OpeningPlanMode = "symbolisch" | "geschnitten";
/**
* Werte je Seite einer Öffnung (Meter). `left` = Leibung beim Wandanfang (kleineres Achsmass),
* `right` = beim Wandende, `top` = Sturz, `bottom` = Brüstung/Schwelle. Fehlt ⇒ Rückfallwert.
@@ -4591,6 +4606,10 @@ export type WindowType = {
sashSymbols?: boolean;
/** Aufschlagbogen der Drehflügel im Grundriss (zur Innenseite, [95]). Fehlt ⇒ aus. */
planSwingArcs?: boolean;
/**
* [260] Darstellung im Grundriss: symbolisch (Symbol unabhängig von der Schnitthöhe) oder geschnitten; fehlt ⇒ Modelldarstellung.
*/
planMode?: OpeningPlanMode;
/**
* Auf-/Untersicht-Andeutung im Grundriss (mittel/fein): eine Referenzlinie an
* der gewählten Fläche(n) — sinnvoll, wenn die Öffnung die Schnittebene NICHT
+3
View File
@@ -480,6 +480,9 @@ export interface PanelHostValue {
sashSymbols?: boolean;
planSwingArcs?: boolean;
}) => void;
/** [260] Fenster/Tür im Grundriss symbolisch oder geschnitten; `undefined` = wie Typ/Modelldarstellung. Gilt für alle
* gewählten Öffnungen (Fenster und Türen) in einem Undo-Schritt. */
onSetOpeningPlanMode: (planMode: "symbolisch" | "geschnitten" | undefined) => void;
/** Übersteuert die Detailstufe dieser Öffnung; `undefined` = Ansichts-Detailstufe gilt. */
onSetOpeningDetailLevel: (detailLevel: DetailLevel | undefined) => void;
/** Dach-/Deckenfenster ([103]): Lage in der Wirtsfläche (Mittelpunkt im Grundriss, Drehung). */
+20
View File
@@ -311,6 +311,26 @@ export function OpeningSection({
/>
</div>
{/* [260] Darstellung im Grundriss: symbolisch (Symbol unabhängig von der Schnitthöhe) oder geschnitten
(nach der Schnitthöhe, darüber/darunter Wand geschlossen + Linie über/unter Schnitt); "" = wie Typ. */}
<div className="objinfo-field">
<span className="objinfo-flabel">{t("objinfo.opening.planMode")}</span>
<Dropdown
value={opening.planMode ?? ""}
onChange={(v) =>
host.onSetOpeningPlanMode(v === "" ? undefined : (v as "symbolisch" | "geschnitten"))
}
options={[
{ value: "", label: t("objinfo.opening.fromType") },
{ value: "symbolisch", label: t("objinfo.opening.planMode.symbolisch") },
{ value: "geschnitten", label: t("objinfo.opening.planMode.geschnitten") },
]}
title={t("objinfo.opening.planMode.tip")}
width={130}
/>
<MixedMark on={multi?.planMode.mixed} what="planMode" />
</div>
<div className="objinfo-sep" />
{/* UK/OK (read-only, aus der Wand-UK + Brüstung/Höhe abgeleitet). */}
@@ -1,12 +1,12 @@
viewBox -13.448 0 38.615 33.813
bytes 26057
bytes 26300
circle 14
g 1
line 97
polygon 30
polygon 32
polyline 21
rect 1
svg 1
text 42
tspan 9
hash 6a884edea26dcb58
hash 7a1f26c92eb4d2b3
@@ -1,12 +1,12 @@
viewBox -12.974 0 37.808 33.406
bytes 324873
bytes 326063
circle 14
g 1
line 3243
polygon 80
polyline 81
polygon 88
polyline 83
rect 1
svg 1
text 42
tspan 9
hash d245c556b1d94444
hash 3dece782ec58f621
@@ -1,13 +1,13 @@
viewBox -41.5 0 95 63.6
bytes 68731
bytes 69149
circle 16
g 1
line 141
path 36
polygon 101
polygon 105
polyline 93
rect 1
svg 1
text 116
tspan 25
hash b5e7427144bad44d
hash 3f7a06791a3211fe
@@ -1,13 +1,13 @@
viewBox -41.5 0 95 63.6
bytes 109923
bytes 111747
circle 16
g 1
line 353
line 354
path 55
polygon 231
polyline 106
polygon 243
polyline 107
rect 1
svg 1
text 116
tspan 25
hash aecdddaa4127edb5
hash 5e4aab8e6e2d7a09
@@ -1,13 +1,13 @@
viewBox -13.448 0 38.615 33.813
bytes 45451
bytes 45694
circle 14
g 1
line 114
path 10
polygon 54
polygon 56
polyline 90
rect 1
svg 1
text 87
tspan 19
hash 96061b1dfd0ceb9d
hash 8a4b71153c8bd9c6
@@ -1,13 +1,13 @@
viewBox -12.974 0 37.808 33.406
bytes 354689
bytes 355803
circle 14
g 1
line 3242
line 3243
path 26
polygon 165
polygon 171
polyline 160
rect 1
svg 1
text 86
tspan 18
hash b700554574b11f56
hash 4248e928958fad55
@@ -1,13 +1,13 @@
viewBox -13.693 0 38.86 33.813
bytes 41997
bytes 42169
circle 16
g 1
line 97
path 23
polygon 46
polyline 73
polygon 47
polyline 74
rect 1
svg 1
text 71
tspan 15
hash 7782442e8ae49a88
hash 01a464a31d6f522a
@@ -1,13 +1,13 @@
viewBox -13.693 0 38.527 33.406
bytes 48673
bytes 49242
circle 16
g 1
line 90
path 34
polygon 84
polyline 89
polygon 88
polyline 90
rect 1
svg 1
text 71
tspan 15
hash 191d78593303ecf6
hash 1316829da0d76563
+5
View File
@@ -184,6 +184,8 @@ export interface SelectionOpeningValues {
swing: Common<string>;
openingDir: Common<string>;
wingCount: Common<number>;
/** [260] Darstellung im Grundriss ("" = wie Typ). */
planMode: Common<string>;
}
export function selectionOpeningValues(project: Project, sel: Selection): SelectionOpeningValues {
@@ -195,6 +197,7 @@ export function selectionOpeningValues(project: Project, sel: Selection): Select
const swing: string[] = [];
const dir: string[] = [];
const wings: number[] = [];
const mode: string[] = [];
for (const id of sel.openings.slice(0, MAX_COMPARED)) {
const o = deriveSelection(project, { openings: [id] })?.opening;
if (!o) continue;
@@ -206,6 +209,7 @@ export function selectionOpeningValues(project: Project, sel: Selection): Select
swing.push(o.swing ?? "");
dir.push(o.openingDir ?? "");
wings.push(o.wingCount ?? 1);
mode.push(o.planMode ?? "");
}
return {
width: commonValue(w),
@@ -216,6 +220,7 @@ export function selectionOpeningValues(project: Project, sel: Selection): Select
swing: commonValue(swing),
openingDir: commonValue(dir),
wingCount: commonValue(wings),
planMode: commonValue(mode),
};
}
+1
View File
@@ -197,6 +197,7 @@ export const MODEL_VIEW_FIELDS: readonly ModelViewField[] = [
{ section: "walls", key: "reveals", values: "bool" },
{ section: "walls", key: "cutHatch", values: "bool" },
{ section: "walls", key: "contrastOnSolid", values: "bool" },
{ section: "walls", key: "openingPlanMode", values: ["symbolisch", "geschnitten"] },
{ section: "slabs", key: "floorFinish", values: ["off", "wet", "all"] },
{ section: "slabs", key: "layers", values: ["all", "simplified", "core"] },
{ section: "slabs", key: "buildUp", values: ["show", "merged"] },
@@ -197,3 +197,28 @@ describe("Mehrfachauswahl setzt alle gewählten Elemente in einem Schritt [195b]
expect(JSON.stringify(getState().project.roofs!.find((r) => r.id === b.id))).toBe(before);
});
});
describe("Darstellung im Grundriss [260]", () => {
it("symbolisch/geschnitten gilt für alle gewählten Fenster UND Türen in einem Undo-Schritt", () => {
getState().loadProject(buildComplexSampleProject());
const os = getState().project.openings!;
const win = os.find((o) => o.kind === "window" && !o.hostRoofId && !o.hostCeilingId)!;
const door = os.find((o) => o.kind === "door")!;
setState({ selection: { ...EMPTY_SELECTION, openings: [win.id, door.id] } });
const host = hostFor("opening", win.id);
const setMode = host.onSetOpeningPlanMode as (m: string | undefined) => void;
const depth = getState().undoDepth;
setMode("geschnitten");
const after = getState().project.openings!;
expect(after.find((o) => o.id === win.id)!.planMode).toBe("geschnitten");
expect(after.find((o) => o.id === door.id)!.planMode).toBe("geschnitten");
expect(getState().undoDepth).toBe(depth + 1);
getState().undo();
expect(getState().project.openings!.find((o) => o.id === door.id)!.planMode).toBeUndefined();
expect(getState().undoDepth).toBe(depth);
// „Wie Typ“ entfernt die Übersteuerung wieder.
getState().redo();
setMode(undefined);
expect(getState().project.openings!.find((o) => o.id === win.id)!.planMode).toBeUndefined();
});
});
@@ -189,6 +189,14 @@ export function buildElementAttributesHost(c: FlatHostOpts) {
onSetOpeningDisplay: (patch) => {
if (selection?.kind === "opening") patchAll("openings", selection.id, patch);
},
// [260] Darstellung im Grundriss: anders als die Art-eigenen Felder für ALLE gewählten Öffnungen (Fenster und
// Türen), ein Undo-Schritt.
onSetOpeningPlanMode: (planMode) => {
if (selection?.kind !== "opening") return;
const sel = getState().selection.openings;
const ids = sel.length > 1 && sel.includes(selection.id) ? [...sel] : [selection.id];
applyChange((p) => patchItems(p, PROJECT_LIST.openings, ids, (o) => ({ ...o, planMode })));
},
// Lage eines Dach-/Deckenfensters ist elementspezifisch (Punkt/Winkel in der Wirtsfläche) ⇒ bewusst nur das erste Element.
onSetOpeningHost: (patch) => {
if (selection?.kind === "opening") updateOpening(selection.id, patch);
+2
View File
@@ -239,6 +239,8 @@ export interface OpeningInfo {
/** Nur Fenster: Öffnungslinien in der Ansicht / Aufschlagbogen im Grundriss ([95]); fehlt → wie Typ. */
sashSymbols?: boolean;
planSwingArcs?: boolean;
/** [260] Darstellung im Grundriss (symbolisch/geschnitten); fehlt → wie Typ bzw. Modelldarstellung. */
planMode?: "symbolisch" | "geschnitten";
/** Zugewiesener Tür-/Fenstertyp (Bibliothek, `Opening.typeId`) oder undefined. */
typeId?: string;
/** Per-Element-Übersteuerung der Detailstufe; fehlt → Ansichts-Detailstufe gilt. */
+12
View File
@@ -183,6 +183,18 @@ export function DoorStylesTab({
}))}
/>
</FieldRow>
{/* [260] Darstellung im Grundriss (leer = Modelldarstellung). */}
<FieldRow label={t("objinfo.opening.planMode")}>
<SelectField
value={door.planMode ?? ""}
onChange={(v) => patch({ planMode: v === "" ? undefined : (v as "symbolisch" | "geschnitten") })}
options={[
{ value: "", label: t("objinfo.opening.planMode.fromModelView") },
{ value: "symbolisch", label: t("objinfo.opening.planMode.symbolisch") },
{ value: "geschnitten", label: t("objinfo.opening.planMode.geschnitten") },
]}
/>
</FieldRow>
<FieldRow label={t("resources.field.transomHeight")}>
<NumberField
value={door.transomHeight ?? 0}
@@ -203,6 +203,18 @@ export function WindowStylesTab({
]}
/>
</FieldRow>
{/* [260] Darstellung im Grundriss (leer = Modelldarstellung). */}
<FieldRow label={t("objinfo.opening.planMode")}>
<SelectField
value={win.planMode ?? ""}
onChange={(v) => patch({ planMode: v === "" ? undefined : (v as "symbolisch" | "geschnitten") })}
options={[
{ value: "", label: t("objinfo.opening.planMode.fromModelView") },
{ value: "symbolisch", label: t("objinfo.opening.planMode.symbolisch") },
{ value: "geschnitten", label: t("objinfo.opening.planMode.geschnitten") },
]}
/>
</FieldRow>
<FieldRow label={t("objinfo.opening.planSwingArcs")}>
<SelectField
value={win.planSwingArcs ? "an" : "aus"}