[293] Wand-Oberkante als eine Auswahl (Geschosshöhe/Frei, Bis Decke, Bis Dach, tiefere von beiden): Objekt-Info und Befehl wand
This commit is contained in:
14 files changed
+184
-71
No files matched your search
+3
-2
@@ -46,6 +46,7 @@ import type { TerrainOptions } from "../model/terrain";
|
||||
import type { TextStylePreset } from "../text/richText";
|
||||
import type { ScheduleKind } from "../export/exportSchedule";
|
||||
import type { DetailLevel } from "../model/viewTypes";
|
||||
import type { WallTopMode } from "../model/wallTop";
|
||||
import type { TabId as ResourceTabId } from "../ui/ResourceManager";
|
||||
|
||||
// ── Darstellungsmodus-Steuerung je Dock-Inhalt ────────────────────────────
|
||||
@@ -421,8 +422,8 @@ export interface PanelHostValue {
|
||||
*/
|
||||
onSetWallSliceTermination: (termination: SliceTermination) => void;
|
||||
/** An Dach anschliessen ([G2]): "auto" = Default (Wand endet an der Dach-Unterkante). */
|
||||
onSetWallRoofAttach: (attach: "auto" | "on" | "off") => void;
|
||||
onSetWallCeilingAttach: (attach: boolean) => void;
|
||||
/** [293] Oberkante der Wand: setzt `roofAttach` und `ceilingAttach` zusammen (ein Undo-Schritt). */
|
||||
onSetWallTopMode: (mode: WallTopMode) => void;
|
||||
/** Aussenbauteil/tragend der gewählten Wand bzw. Decke ([97]/[98]); `false` = Feld weg. */
|
||||
onSetBuildingFlags: (flags: { isExternal?: boolean; loadBearing?: boolean }) => void;
|
||||
/** [178] Deckenrand der gewählten Decke: `true` = bis an den Umriss, `false` = Auflager bis Kern (Standard). */
|
||||
|
||||
@@ -8,6 +8,7 @@ import { usePanelHost } from "../host";
|
||||
import { t } from "../../i18n";
|
||||
import { Dropdown } from "../../ui/Dropdown";
|
||||
import type { WallReferenceLine, SliceTermination } from "../../model/types";
|
||||
import { wallTopFromFields, type WallTopMode } from "../../model/wallTop";
|
||||
import { UValueRow } from "../UValueRow";
|
||||
import { formatM } from "../../model/types";
|
||||
import { BuildingFlags, DimensionField, MixedMark, VerticalAnchorRow } from "./fields";
|
||||
@@ -99,34 +100,20 @@ export function WallSection({
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* An Dach anschliessen ([G2]): automatisch endet die Wand an der Dach-Unterkante, "Ja"
|
||||
verlängert sie bis unter das Dach, "Nein" lässt die Dächer die Wand nicht schneiden. */}
|
||||
{/* Oberkante ([293], [G2], [292]): EINE Auswahl über roofAttach + ceilingAttach (eine Op). */}
|
||||
<div className="objinfo-field">
|
||||
<span className="objinfo-flabel">{t("objinfo.wall.roofAttach")}</span>
|
||||
<span className="objinfo-flabel">{t("objinfo.wall.topMode")}</span>
|
||||
<Dropdown
|
||||
value={wall.roofAttach}
|
||||
onChange={(v) => host.onSetWallRoofAttach(v as "auto" | "on" | "off")}
|
||||
value={wallTopFromFields(wall.roofAttach === "auto" ? undefined : wall.roofAttach === "on", wall.ceilingAttach)}
|
||||
onChange={(v) => host.onSetWallTopMode(v as WallTopMode)}
|
||||
options={[
|
||||
{ value: "auto", label: t("objinfo.wall.roofAttach.auto") },
|
||||
{ value: "on", label: t("objinfo.wall.roofAttach.on") },
|
||||
{ value: "off", label: t("objinfo.wall.roofAttach.off") },
|
||||
{ value: "storey", label: t("objinfo.wall.topMode.storey") },
|
||||
{ value: "ceiling", label: t("objinfo.wall.topMode.ceiling") },
|
||||
{ value: "roof", label: t("objinfo.wall.topMode.roof") },
|
||||
{ value: "lower", label: t("objinfo.wall.topMode.lower") },
|
||||
]}
|
||||
title={t("objinfo.wall.roofAttach.tip")}
|
||||
width={120}
|
||||
/>
|
||||
</div>
|
||||
{/* OK bis Decke ([292]): Oberkante an der Unterkante der Decke des Geschosses, auch geneigt. */}
|
||||
<div className="objinfo-field">
|
||||
<span className="objinfo-flabel">{t("objinfo.wall.ceilingAttach")}</span>
|
||||
<Dropdown
|
||||
value={wall.ceilingAttach ? "on" : "off"}
|
||||
onChange={(v) => host.onSetWallCeilingAttach(v === "on")}
|
||||
options={[
|
||||
{ value: "off", label: t("objinfo.wall.ceilingAttach.off") },
|
||||
{ value: "on", label: t("objinfo.wall.ceilingAttach.on") },
|
||||
]}
|
||||
title={t("objinfo.wall.ceilingAttach.tip")}
|
||||
width={120}
|
||||
title={t("objinfo.wall.topMode.tip")}
|
||||
width={150}
|
||||
/>
|
||||
</div>
|
||||
<BuildingFlags isExternal={wall.isExternal} loadBearing={wall.loadBearing} host={host} />
|
||||
|
||||
Reference in new issue
Block a user