Merge branch 'worktree-agent-a9f9c763f4a400416' into claude/practical-noether-1hb2s1
This commit is contained in:
35 files changed
+585
-54
No files matched your search
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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). */
|
||||
|
||||
@@ -24,6 +24,20 @@ describe("Objekteinstellungen: Öffnung [195b]", () => {
|
||||
expect(html).not.toContain("imp-overlay");
|
||||
});
|
||||
|
||||
it("[260] Typ-Feld „Im Grundriss“ im Editor: Fenster und Tür, Wert aus dem Typ", () => {
|
||||
const p = buildComplexSampleProject();
|
||||
for (const kind of ["window", "door"] as const) {
|
||||
const o = p.openings!.find((x) => x.kind === kind && x.typeId && !x.hostRoofId && !x.hostCeilingId)!;
|
||||
const key = kind === "window" ? "windowTypes" : "doorTypes";
|
||||
getState().loadProject({ ...p, [key]: p[key]!.map((ty) => (ty.id === o.typeId ? { ...ty, planMode: "geschnitten" } : ty)) });
|
||||
setState({ selection: { ...EMPTY_SELECTION, openings: [o.id] } });
|
||||
const html = render();
|
||||
const m = /<select[^>]*data-testid="oed-planMode"[^>]*>.*?<\/select>/s.exec(html);
|
||||
expect(m, kind).not.toBeNull();
|
||||
expect(m![0]).toMatch(/<option value="geschnitten" selected/);
|
||||
}
|
||||
});
|
||||
|
||||
it("zwei Öffnungen mit abweichender Breite: „gemischt“ am Breitenfeld", () => {
|
||||
const p = buildComplexSampleProject();
|
||||
const [a, b] = p.openings!.filter((x) => !x.hostRoofId && !x.hostCeilingId);
|
||||
|
||||
@@ -27,6 +27,7 @@ import type {
|
||||
import { useStore } from "../../state/appStore";
|
||||
import type { usePanelHost } from "../host";
|
||||
import { getDoorType, getWindowType, sashesOfWindowType, glazingPanesOf } from "../../model/types";
|
||||
import { planModeFromValue, planModeOptions } from "../../ui/planModeOptions";
|
||||
import { CorePreview, DoorFramePanel, FrameDetailPanel, RebatePanel, RevealPanel, ScopeSwitch } from "../../ui/OpeningDetailPanels";
|
||||
|
||||
/** P0-Kategorien der Sidebar, je nach Öffnungsart. */
|
||||
@@ -304,17 +305,20 @@ function SelField<V extends string>({
|
||||
value,
|
||||
options,
|
||||
onChange,
|
||||
testId,
|
||||
}: {
|
||||
label: string;
|
||||
value: V;
|
||||
options: { value: V; label: string }[];
|
||||
onChange: (v: V) => void;
|
||||
testId?: string;
|
||||
}) {
|
||||
return (
|
||||
<label className="oed-field">
|
||||
<span className="oed-flabel">{label}</span>
|
||||
<select
|
||||
className="oed-select"
|
||||
data-testid={testId}
|
||||
value={value}
|
||||
onChange={(e) => onChange(e.target.value as V)}
|
||||
>
|
||||
@@ -361,12 +365,22 @@ function BasisPanel({
|
||||
}) {
|
||||
if (isDoor && dt) {
|
||||
return (
|
||||
<SelField
|
||||
label={t("oed.f.kind")}
|
||||
value={dt.kind}
|
||||
options={DOOR_KIND_OPTS()}
|
||||
onChange={(v) => patchDt({ kind: v })}
|
||||
/>
|
||||
<>
|
||||
<SelField
|
||||
label={t("oed.f.kind")}
|
||||
value={dt.kind}
|
||||
options={DOOR_KIND_OPTS()}
|
||||
onChange={(v) => patchDt({ kind: v })}
|
||||
/>
|
||||
{/* [260] Darstellung im Grundriss (Typ; leer = Modelldarstellung), wie in den Ressourcen. */}
|
||||
<SelField
|
||||
label={t("objinfo.opening.planMode")}
|
||||
value={dt.planMode ?? ""}
|
||||
options={planModeOptions()}
|
||||
onChange={(v) => patchDt({ planMode: planModeFromValue(v) })}
|
||||
testId="oed-planMode"
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
if (wt) {
|
||||
@@ -378,6 +392,14 @@ function BasisPanel({
|
||||
options={OPENING_KIND_OPTS()}
|
||||
onChange={(v) => patchWt({ kind: v })}
|
||||
/>
|
||||
{/* [260] Darstellung im Grundriss (Typ; leer = Modelldarstellung), wie in den Ressourcen. */}
|
||||
<SelField
|
||||
label={t("objinfo.opening.planMode")}
|
||||
value={wt.planMode ?? ""}
|
||||
options={planModeOptions()}
|
||||
onChange={(v) => patchWt({ planMode: planModeFromValue(v) })}
|
||||
testId="oed-planMode"
|
||||
/>
|
||||
<SelField
|
||||
label={t("oed.f.glazing")}
|
||||
value={String(glazingPanesOf(wt)) as "1" | "2" | "3"}
|
||||
|
||||
@@ -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
|
||||
@@ -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),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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. */
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
// [260] Auswahl „Im Grundriss“ für Fenster-/Türtypen: gemeinsam für die Ressourcen (Typ-Tabs) und den
|
||||
// Fenster-/Türeditor im Bereich „Objekt“ (eine Quelle für Werte und Texte).
|
||||
|
||||
import { t } from "../i18n";
|
||||
|
||||
export type OpeningPlanMode = "symbolisch" | "geschnitten";
|
||||
|
||||
/** Leer = wie Modelldarstellung (Vorgabe der Ansicht). */
|
||||
export function planModeOptions(): { value: "" | OpeningPlanMode; label: string }[] {
|
||||
return [
|
||||
{ value: "", label: t("objinfo.opening.planMode.fromModelView") },
|
||||
{ value: "symbolisch", label: t("objinfo.opening.planMode.symbolisch") },
|
||||
{ value: "geschnitten", label: t("objinfo.opening.planMode.geschnitten") },
|
||||
];
|
||||
}
|
||||
|
||||
export const planModeFromValue = (v: string): OpeningPlanMode | undefined => (v === "" ? undefined : (v as OpeningPlanMode));
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
import type { DoorType, Opening, Project } from "../../model/types";
|
||||
import { t } from "../../i18n";
|
||||
import { planModeFromValue, planModeOptions } from "../planModeOptions";
|
||||
import { FieldRow, NumberField, Segmented, SelectField } from "./fields";
|
||||
import { INSET_FACE_OPTIONS, TypeLibraryTab } from "./TypeLibraryTab";
|
||||
import { ElevationPreview } from "../ElevationPreview";
|
||||
@@ -183,6 +184,14 @@ export function DoorStylesTab({
|
||||
}))}
|
||||
/>
|
||||
</FieldRow>
|
||||
{/* [260] Darstellung im Grundriss (leer = Modelldarstellung). */}
|
||||
<FieldRow label={t("objinfo.opening.planMode")}>
|
||||
<SelectField
|
||||
value={door.planMode ?? ""}
|
||||
onChange={(v) => patch({ planMode: planModeFromValue(v) })}
|
||||
options={planModeOptions()}
|
||||
/>
|
||||
</FieldRow>
|
||||
<FieldRow label={t("resources.field.transomHeight")}>
|
||||
<NumberField
|
||||
value={door.transomHeight ?? 0}
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
import type { Opening, Project, WindowType } from "../../model/types";
|
||||
import { t } from "../../i18n";
|
||||
import { planModeFromValue, planModeOptions } from "../planModeOptions";
|
||||
import { FieldRow, NumberField, SelectField } from "./fields";
|
||||
import { INSET_FACE_OPTIONS, TypeLibraryTab } from "./TypeLibraryTab";
|
||||
import { ElevationPreview } from "../ElevationPreview";
|
||||
@@ -203,6 +204,14 @@ export function WindowStylesTab({
|
||||
]}
|
||||
/>
|
||||
</FieldRow>
|
||||
{/* [260] Darstellung im Grundriss (leer = Modelldarstellung). */}
|
||||
<FieldRow label={t("objinfo.opening.planMode")}>
|
||||
<SelectField
|
||||
value={win.planMode ?? ""}
|
||||
onChange={(v) => patch({ planMode: planModeFromValue(v) })}
|
||||
options={planModeOptions()}
|
||||
/>
|
||||
</FieldRow>
|
||||
<FieldRow label={t("objinfo.opening.planSwingArcs")}>
|
||||
<SelectField
|
||||
value={win.planSwingArcs ? "an" : "aus"}
|
||||
|
||||
Reference in new issue
Block a user