[97][98] Objekt-Info: Aussenbauteil und tragend für Wand und Decke
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NTYBZBvLYCtugMJoKXaB67
This commit is contained in:
8 files changed
+43
-1
No files matched your search
@@ -552,6 +552,8 @@ export const de = {
|
||||
"objinfo.wall.refLine.joint": "Fuge",
|
||||
"objinfo.wall.sliceTermination": "An Decke enden",
|
||||
"objinfo.wall.roofAttach": "An Dach anschliessen",
|
||||
"objinfo.isExternal": "Aussenbauteil",
|
||||
"objinfo.loadBearing": "Tragend",
|
||||
"objinfo.wall.roofAttach.auto": "Automatisch",
|
||||
"objinfo.wall.roofAttach.on": "Ja, bis unters Dach",
|
||||
"objinfo.wall.roofAttach.off": "Nein",
|
||||
|
||||
@@ -550,6 +550,8 @@ export const en: Record<TranslationKey, string> = {
|
||||
"objinfo.wall.refLine.joint": "Joint",
|
||||
"objinfo.wall.sliceTermination": "End at ceiling",
|
||||
"objinfo.wall.roofAttach": "Attach to roof",
|
||||
"objinfo.isExternal": "External",
|
||||
"objinfo.loadBearing": "Load-bearing",
|
||||
"objinfo.wall.roofAttach.auto": "Automatic",
|
||||
"objinfo.wall.roofAttach.on": "Yes, up to the roof",
|
||||
"objinfo.wall.roofAttach.off": "No",
|
||||
|
||||
@@ -1858,6 +1858,22 @@ function SurfaceOpeningSection({
|
||||
// ── Decken-Attribut-Abschnitt ────────────────────────────────────────────────
|
||||
// Aufbau-Typ (einschichtig/mehrschichtig), Dicke/Preset, Referenzgeschoss +
|
||||
// OK-Bindung, Fläche. Alle Werte/Setter über den Host.
|
||||
/** Aussenbauteil / tragend ([97]/[98]): wirken auf Bauteil-/Öffnungslisten und das IFC-Pset. */
|
||||
function BuildingFlags({ isExternal, loadBearing, host }: { isExternal: boolean; loadBearing: boolean; host: ReturnType<typeof usePanelHost> }) {
|
||||
return (
|
||||
<>
|
||||
<div className="objinfo-field">
|
||||
<span className="objinfo-flabel">{t("objinfo.isExternal")}</span>
|
||||
<input type="checkbox" data-testid="objinfo-isExternal" checked={isExternal} onChange={(e) => host.onSetBuildingFlags({ isExternal: e.target.checked })} />
|
||||
</div>
|
||||
<div className="objinfo-field">
|
||||
<span className="objinfo-flabel">{t("objinfo.loadBearing")}</span>
|
||||
<input type="checkbox" data-testid="objinfo-loadBearing" checked={loadBearing} onChange={(e) => host.onSetBuildingFlags({ loadBearing: e.target.checked })} />
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export function CeilingSection({
|
||||
ceiling,
|
||||
host,
|
||||
@@ -1882,6 +1898,7 @@ export function CeilingSection({
|
||||
<>
|
||||
<div className="objinfo-sep" />
|
||||
<div className="objinfo-section-label">{t("objinfo.ceiling.section")}</div>
|
||||
<BuildingFlags isExternal={ceiling.isExternal} loadBearing={ceiling.loadBearing} host={host} />
|
||||
|
||||
{/* Aufbau-Typ-Segment. */}
|
||||
<div className="objinfo-field">
|
||||
@@ -2099,6 +2116,7 @@ export function WallSection({
|
||||
width={120}
|
||||
/>
|
||||
</div>
|
||||
<BuildingFlags isExternal={wall.isExternal} loadBearing={wall.loadBearing} host={host} />
|
||||
|
||||
{/* Aufbau-Typ-Segment. */}
|
||||
<div className="objinfo-field">
|
||||
|
||||
@@ -419,6 +419,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;
|
||||
/** Aussenbauteil/tragend der gewählten Wand bzw. Decke ([97]/[98]); `false` = Feld weg. */
|
||||
onSetBuildingFlags: (flags: { isExternal?: boolean; loadBearing?: boolean }) => void;
|
||||
/** Ansichtsschraffur ([100]) an der gewählten Wand bzw. am gewählten Dach drehen/versetzen. */
|
||||
onSetSurfacePatternPlacement?: (patch: { surfacePatternAngle?: number; surfacePatternOffset?: { x: number; y: number } }) => void;
|
||||
/** Weist der Wand einen Wandtyp-Preset (mehrschichtiger Aufbau) zu. */
|
||||
|
||||
@@ -126,6 +126,9 @@ export interface WallInfo {
|
||||
sliceTermination: SliceTermination;
|
||||
/** An Dach anschliessen ([G2]): "auto" (Default), "on" (bis unter das Dach verlängern), "off". */
|
||||
roofAttach: "auto" | "on" | "off";
|
||||
/** Aussenbauteil / tragend ([97]/[98]). */
|
||||
isExternal: boolean;
|
||||
loadBearing: boolean;
|
||||
wallTypeId: string;
|
||||
/** Aktuelle Gesamtdicke (Meter). */
|
||||
thickness: number;
|
||||
@@ -164,6 +167,9 @@ export interface WallInfo {
|
||||
export interface CeilingInfo {
|
||||
/** Effektiv aktiver Aufbau-Typ: `ceilingTypeId`, sonst LEGACY-`wallTypeId`. */
|
||||
typeId: string;
|
||||
/** Aussenbauteil / tragend ([97]/[98]). */
|
||||
isExternal: boolean;
|
||||
loadBearing: boolean;
|
||||
/** Aktuelle Gesamtdicke (Meter). */
|
||||
thickness: number;
|
||||
/** Ob der aktuelle Aufbau-Typ einschichtig ist (1 Schicht). */
|
||||
|
||||
@@ -825,6 +825,13 @@ export function usePanelHostBase(opts: {
|
||||
// "auto" ist der Default ⇒ als undefined speichern.
|
||||
updateWall(selection.id, { roofAttach: attach === "auto" ? undefined : attach === "on" });
|
||||
},
|
||||
onSetBuildingFlags: (flags) => {
|
||||
const patch: { isExternal?: boolean; loadBearing?: boolean } = {};
|
||||
if (flags.isExternal !== undefined) patch.isExternal = flags.isExternal || undefined;
|
||||
if (flags.loadBearing !== undefined) patch.loadBearing = flags.loadBearing || undefined;
|
||||
if (selection?.kind === "wall") updateWall(selection.id, patch);
|
||||
else if (selection?.kind === "ceiling") updateCeiling(selection.id, patch);
|
||||
},
|
||||
onSetWallType: (wallTypeId) => {
|
||||
if (selection?.kind === "wall")
|
||||
updateWall(selection.id, { wallTypeId });
|
||||
|
||||
Reference in new issue
Block a user