Merge [241] Gelände-Einstellungen

This commit is contained in:
Claude committed 2026-11-13 20:03:48 +00:00
commit 2c63652b7d
5 files changed
+176 -112

No files matched your search

+10 -1
View File
@@ -10,7 +10,7 @@ Wer zu einer ID mehr wissen will (Entscheide, Tests, Bilder), sucht dort nach `*
stehen im Archiv („Bewusst nicht übernommen“).
- **Grösse** (eine Person mit Agenten): S ≤ 1 Tag · M ≤ 1 Woche · L ≤ 1 Monat · XL > 1 Monat.
Steht keine Grösse im Archiv, ist sie hier geschätzt.
- **IDs sind stabil.** Neue ID = nächste freie Zahl nach der höchsten im Archiv und hier (aktuell 240);
- **IDs sind stabil.** Neue ID = nächste freie Zahl nach der höchsten im Archiv und hier (aktuell 241);
nie eine ID wiederverwenden oder umnummerieren. Präfix-IDs (`[K]`, `[G]`, `[T]`, `[B]`, `[C]`) bleiben.
- **Pro Punkt:** was fehlt · wo im Code · Grösse. Höchstens ein bis drei Sätze je Punkt;
Messwerte und Befunde gehören in den Commit.
@@ -260,6 +260,15 @@ Kennwort, anonym) als PDF; Austausch mit Fachplanern über DXF/IFC.
dasselbe `ObjectInfoPanel` (ohne Bezugspunkt/Masse) und damit dieselben Gruppen und denselben Zustand. Geprüft: vitest `src/panels src/ui
src/i18n` (neu `infoGroupState.test.ts`), tsc, e2e objectSettings/objectSettingsWindow/roomStamp218, Screenshots hell/dunkel (Gelände,
Wand; Tastatur Enter/Leertaste). Nicht geprüft: Mac/Tauri, natives Nebenfenster. · S
- ✓ **[241]** Objekt-Info Gelände/Kontextobjekte, Kamera, Baum: Raster wie die übrigen Gruppen (13.11., Chromium hell/dunkel, Musterhaus komplex; Mac/Tauri
nicht geprüft). Befund: „Höhe des Punkts (m)“ vierzeilig, Felder 64 px; Ursache auch, dass `.objinfo-site` (nur `> `-Kind-Selektor) seit der Gruppierung ([239])
nicht mehr griff — der Gelände-Block hatte wieder eigenen Scroll und 8 px Polster, Zeilen („Material“, Verbau) waren abgeschnitten. Jetzt Zeilen als
`.objinfo-field` (Label 104 px | Feld | Einheit hinter dem Feld, `ContextObjectProps.tsx`), kurze Labels (Einheit nicht mehr im Label, Hinweise als
Tooltip: `site.earthDepth.hint`, `site.excavation.shoringEmbed.hint`), Knöpfe umbrechend in `.site-actions`, Verbau-Kanten umbrechend; Gleitkomma-Rauschen
im Feld (0,0499999…) auf 12 Stellen gerundet (nur Anzeige). Kamera: Labels gekürzt (Augenhöhe, Bildwinkel vert., Brennweite KB, Sonne), Label-Spalte
104 px statt 56 px (auch `.objinfo-tree`). Gemessen (Playwright): Gelände, Höhenlinien, Baugrube, Nachbargebäude, Kamera ohne mehrzeilige/abgeschnittene
Labels, `scrollWidth ≤ clientWidth`. Funktion unverändert. Geprüft: tsc, vitest `src/panels src/ui src/i18n`. Nicht visuell geprüft: Baum (im
Musterhaus keiner; nur dieselbe CSS-Regel wie Kamera). · S
- ✓ **[235]** `update-dossier` brach nach der Commit-Liste stumm ab (13.11., Maintainer, Void): `git log … | head -20` lieferte bei mehr als 20 neuen
Commits SIGPIPE, mit `set -euo pipefail` endete das Skript ohne Meldung — weder WASM noch AppImage wurden gebaut, `dossier` startete das alte
AppImage. Lösung: `git log -20`; `dossier` warnt, wenn das AppImage älter ist als der Checkout. Geprüft: Ursache nachgestellt (Exit 141), Syntax. · S
+22 -20
View File
@@ -2110,13 +2110,13 @@ export const de = {
"objinfo.camera.projection.axonometric": "Axonometrie",
"objinfo.camera.projection.parallel": "Parallelprojektion",
"objinfo.camera.stand": "Standpunkt",
"objinfo.camera.eyeHeight": "Augenhöhe über Geschoss",
"objinfo.camera.eyeHeight": "Augenhöhe",
"objinfo.camera.target": "Ziel",
"objinfo.camera.targetHeight": "Höhe Ziel",
"objinfo.camera.fov": "Bildwinkel (vertikal)",
"objinfo.camera.focal": "Brennweite (Kleinbild)",
"objinfo.camera.fov": "Bildwinkel vert.",
"objinfo.camera.focal": "Brennweite KB",
"objinfo.camera.orthoHeight": "Sichthöhe",
"objinfo.camera.sun": "Sonnenstand",
"objinfo.camera.sun": "Sonne",
"objinfo.camera.sunHint": "Datum und Uhrzeit (UTC); „Kamera öffnen“ stellt die Sonnenstudie darauf. Leer = Sonne bleibt.",
"objinfo.camera.locked": "Gesperrt: Die Kamera lässt sich nicht ändern.",
"pick.kind.camera": "Kamera",
@@ -2565,17 +2565,17 @@ export const de = {
"site.smooth.hint": "Höhenlinien als Bruchkanten, flache Dreiecke behoben, Fläche ohne Überschwingen geglättet",
"site.excavation.draw": "Baugrube zeichnen",
"site.excavation.hint": "Umriss der Sohle zeichnen; Böschungen schneiden das Gelände",
"site.contourInterval": "Äquidistanz [m]",
"site.contourInterval": "Äquidistanz",
"site.contourIndexEvery": "Zähllinie jede",
"site.smoothShading": "Glatt schattieren",
"site.creaseAngle": "Knickwinkel °",
"site.heightOffset": "Höhenversatz [m]",
"site.creaseAngle": "Knickwinkel",
"site.heightOffset": "Höhenversatz",
"site.heightOffset.hint": "Alle Höhen des Elements um diesen Wert verschieben (Eingabe mit Enter bestätigen; negativ = tiefer).",
"site.contours": "Höhenlinien ({n}) — Höhe [m]",
"site.contours": "Höhenlinien ({n}) — Höhe",
"site.contour.points": "{n} Punkte",
"site.meshPoint": "Netzpunkt Nr.",
"site.meshPoint": "Netzpunkt",
"site.meshPoint.hint": "Nummer des Netzpunkts (1 bis {n}); seine Lage ziehst du im Grundriss am Griff",
"site.meshPoint.z": "Höhe des Punkts (m)",
"site.meshPoint.z": "Punkthöhe",
"site.ground": "Aufs Gelände setzen",
"site.ground.hint": "Setzt jedes Gebäude dieses Netzes auf den tiefsten Geländepunkt unter seinem Grundriss",
"site.ground.noTerrain": "Kein Gelände im Projekt",
@@ -2584,24 +2584,26 @@ export const de = {
"site.meshCrop.hint": "Entfernt alle Dreiecke, deren Schwerpunkt ausserhalb der Parzelle liegt",
"site.meshCrop.noParcel": "Zuerst die Parzelle im Baurecht erfassen",
"site.meshCrop.nothing": "Nichts zuzuschneiden: Das Netz liegt ganz innerhalb der Parzelle bzw. ausserhalb davon.",
"site.excavation.bottom": "Sohle [m]",
"site.excavation.slope": "Böschung [°]",
"site.excavation.fillSlope": "Schüttung [°]",
"site.excavation.bermWidth": "Berme [m]",
"site.excavation.bermHeight": "Berme alle [m]",
"site.excavation.bottom": "Sohle",
"site.excavation.slope": "Böschung",
"site.excavation.fillSlope": "Schüttung",
"site.excavation.bermWidth": "Berme",
"site.excavation.bermHeight": "Berme alle",
"site.excavation.qty": "Abtrag {cut} m³ · Auftrag {fill} m³ · Hinterfüllung {backfill} m³",
"site.excavation.noTerrain": "Kein Gelände unter der Baugrube",
"site.excavation.workingSpace": "Arbeitsraum [m]",
"site.excavation.shoring": "Verbau (senkrecht), Kante",
"site.excavation.workingSpace": "Arbeitsraum",
"site.excavation.shoring": "Verbau-Kanten",
"site.excavation.shoringKind": "Verbauart",
"site.excavation.shoringKind.sheetPile": "Spundwand (Stahl)",
"site.excavation.shoringKind.soldierPile": "Rühlwand (Träger + Holz)",
"site.excavation.shoringKind.borePile": "Bohrpfahlwand (Beton)",
"site.excavation.shoringThickness": "Wanddicke [m]",
"site.excavation.shoringEmbed": "Einbindetiefe unter Sohle [m]",
"site.excavation.shoringThickness": "Wanddicke",
"site.excavation.shoringEmbed": "Einbindetiefe",
"site.excavation.shoringEmbed.hint": "Einbindetiefe des Verbaus unter der Sohle",
"site.excavation.workingSpaceWarn": "Arbeitsraum zu schmal: {min} m statt {need} m an {n} Stelle(n) (rotes Kreuz im Plan)",
"site.excavation.shoringHint": "Gewählte Kanten: senkrechte Wand (Spundwand) statt Böschung",
"site.earthDepth": "Erdreich-Band im Schnitt [m]",
"site.earthDepth": "Erdreich-Band",
"site.earthDepth.hint": "Dicke des Erdreich-Bands im Schnitt",
"site.terrain.material": "Material",
"site.terrain.material.none": "Wiese (Standard)",
"site.terrain.material.hint": "Bauteil als Oberfläche des Geländes: Farbe und Bildkarten in der texturierten 3D-Ansicht, im Pathtracing und im Blender-Rendering. Ohne Bauteil: Wiese (Pathtracing, Blender), sonst die Geländefarbe.",
+22 -20
View File
@@ -2099,13 +2099,13 @@ export const en: Record<TranslationKey, string> = {
"objinfo.camera.projection.axonometric": "Axonometric",
"objinfo.camera.projection.parallel": "Parallel projection",
"objinfo.camera.stand": "Position",
"objinfo.camera.eyeHeight": "Eye height above floor",
"objinfo.camera.eyeHeight": "Eye height",
"objinfo.camera.target": "Target",
"objinfo.camera.targetHeight": "Target height",
"objinfo.camera.fov": "Field of view (vertical)",
"objinfo.camera.focal": "Focal length (35 mm)",
"objinfo.camera.fov": "Vertical FOV",
"objinfo.camera.focal": "Focal length 35",
"objinfo.camera.orthoHeight": "View height",
"objinfo.camera.sun": "Sun position",
"objinfo.camera.sun": "Sun",
"objinfo.camera.sunHint": "Date and time (UTC); “Open camera” sets the sun study to it. Empty = sun stays.",
"objinfo.camera.locked": "Locked: the camera cannot be changed.",
"pick.kind.camera": "Camera",
@@ -2553,17 +2553,17 @@ export const en: Record<TranslationKey, string> = {
"site.smooth.hint": "Contours as breaklines, flat triangles fixed, surface smoothed without overshoot",
"site.excavation.draw": "Draw excavation",
"site.excavation.hint": "Draw the outline of the pit bottom; slopes cut the terrain",
"site.contourInterval": "Contour interval [m]",
"site.contourInterval": "Interval",
"site.contourIndexEvery": "Index contour every",
"site.smoothShading": "Smooth shading",
"site.creaseAngle": "Crease angle °",
"site.heightOffset": "Height offset [m]",
"site.creaseAngle": "Crease angle",
"site.heightOffset": "Height offset",
"site.heightOffset.hint": "Shift all heights of this element by this value (confirm with Enter; negative = lower).",
"site.contours": "Contours ({n}) — height [m]",
"site.contours": "Contours ({n}) — height",
"site.contour.points": "{n} points",
"site.meshPoint": "Mesh point no.",
"site.meshPoint": "Mesh point",
"site.meshPoint.hint": "Number of the mesh point (1 to {n}); drag its position in the plan by its grip",
"site.meshPoint.z": "Point height (m)",
"site.meshPoint.z": "Point height",
"site.ground": "Place on terrain",
"site.ground.hint": "Places every building of this mesh on the lowest terrain point under its footprint",
"site.ground.noTerrain": "No terrain in the project",
@@ -2572,22 +2572,24 @@ export const en: Record<TranslationKey, string> = {
"site.meshCrop.hint": "Removes all triangles whose centroid lies outside the parcel",
"site.meshCrop.noParcel": "Enter the parcel under building regulations first",
"site.meshCrop.nothing": "Nothing to crop: the mesh lies entirely inside the parcel or entirely outside it.",
"site.excavation.bottom": "Bottom [m]",
"site.excavation.slope": "Slope [°]",
"site.excavation.fillSlope": "Fill slope [°]",
"site.excavation.bermWidth": "Berm [m]",
"site.excavation.bermHeight": "Berm every [m]",
"site.excavation.workingSpace": "Working space [m]",
"site.excavation.shoring": "Shoring (vertical), edge",
"site.excavation.bottom": "Bottom",
"site.excavation.slope": "Slope",
"site.excavation.fillSlope": "Fill slope",
"site.excavation.bermWidth": "Berm",
"site.excavation.bermHeight": "Berm every",
"site.excavation.workingSpace": "Working space",
"site.excavation.shoring": "Shoring edges",
"site.excavation.shoringKind": "Shoring type",
"site.excavation.shoringKind.sheetPile": "Sheet piling (steel)",
"site.excavation.shoringKind.soldierPile": "Soldier pile wall (beams + timber)",
"site.excavation.shoringKind.borePile": "Bored pile wall (concrete)",
"site.excavation.shoringThickness": "Wall thickness [m]",
"site.excavation.shoringEmbed": "Embedment below base [m]",
"site.excavation.shoringThickness": "Wall thickness",
"site.excavation.shoringEmbed": "Embedment",
"site.excavation.shoringEmbed.hint": "Embedment of the shoring below the base",
"site.excavation.workingSpaceWarn": "Working space too narrow: {min} m instead of {need} m at {n} spot(s) (red cross in the plan)",
"site.excavation.shoringHint": "Selected edges: vertical wall (sheet piling) instead of a slope",
"site.earthDepth": "Earth band in section [m]",
"site.earthDepth": "Earth band",
"site.earthDepth.hint": "Thickness of the earth band in section",
"site.terrain.material": "Material",
"site.terrain.material.none": "Grass (default)",
"site.terrain.material.hint": "Component used as the terrain surface: colour and texture maps in the textured 3D view, in path tracing and in the Blender rendering. Without a component: grass (path tracing, Blender), otherwise the terrain colour.",
+63 -44
View File
@@ -21,17 +21,21 @@ export function NumField(props: {
step: number;
min?: number;
placeholder?: string;
/** Einheit hinter dem Feld (nicht im Label). */
unit?: string;
title?: string;
onChange: (v: number | undefined) => void;
}) {
return (
<label className="site-prop">
<span>{props.label}</span>
<label className="objinfo-field" title={props.title}>
<span className="objinfo-flabel">{props.label}</span>
<input
className="objinfo-input"
type="number"
step={props.step}
min={props.min}
placeholder={props.placeholder}
value={props.value ?? ""}
value={props.value === undefined ? "" : Number(props.value.toPrecision(12))}
onChange={(e) => {
const raw = e.target.value.trim();
if (raw === "") return props.onChange(undefined);
@@ -39,6 +43,7 @@ export function NumField(props: {
if (Number.isFinite(v)) props.onChange(v);
}}
/>
<span className="objinfo-unit">{props.unit}</span>
</label>
);
}
@@ -85,16 +90,17 @@ function MeshPointFields({ obj }: { obj: Extract<ContextObject, { positions: num
const valid = Number.isFinite(i) && i >= 0 && i < n;
return (
<>
<label className="site-prop" title={t("site.meshPoint.hint", { n })}>
<span>{t("site.meshPoint")}</span>
<input type="number" min={1} max={n} step={1} style={{ width: 90 }} data-testid="mesh-point-nr" value={nr} onChange={(e) => setNr(e.target.value)} />
<label className="objinfo-field" title={t("site.meshPoint.hint", { n })}>
<span className="objinfo-flabel">{t("site.meshPoint")}</span>
<input className="objinfo-input" type="number" min={1} max={n} step={1} data-testid="mesh-point-nr" value={nr} onChange={(e) => setNr(e.target.value)} />
<span className="objinfo-unit" />
</label>
<label className="site-prop">
<span>{t("site.meshPoint.z")}</span>
<label className="objinfo-field">
<span className="objinfo-flabel">{t("site.meshPoint.z")}</span>
<input
className="objinfo-input"
type="number"
step={0.1}
style={{ width: 90 }}
data-testid="mesh-point-z"
disabled={!valid}
value={valid ? obj.positions[3 * i + 2] : ""}
@@ -102,7 +108,9 @@ function MeshPointFields({ obj }: { obj: Extract<ContextObject, { positions: num
if (valid && e.target.value.trim() !== "") setMeshPointHeight(obj.id, i, Number(e.target.value), `site-${obj.id}-meshZ-${i}`);
}}
/>
<span className="objinfo-unit">m</span>
</label>
<div className="site-actions">
<button
type="button"
data-testid="mesh-point-delete"
@@ -128,6 +136,7 @@ function MeshPointFields({ obj }: { obj: Extract<ContextObject, { positions: num
<button type="button" data-testid="mesh-crop-polygon" title={t("site.meshCrop.draw.hint")} onClick={() => host.onRunCommand("meshcrop")}>
{t("site.meshCrop.draw")}
</button>
</div>
</>
);
}
@@ -147,9 +156,10 @@ function HeightFields({ obj }: { obj: ContextObject }) {
};
return (
<>
<label className="site-prop" title={t("site.heightOffset.hint")}>
<span>{t("site.heightOffset")}</span>
<label className="objinfo-field" title={t("site.heightOffset.hint")}>
<span className="objinfo-flabel">{t("site.heightOffset")}</span>
<input
className="objinfo-input"
type="text"
inputMode="decimal"
data-testid="context-height-offset"
@@ -159,9 +169,11 @@ function HeightFields({ obj }: { obj: ContextObject }) {
onKeyDown={(e) => e.key === "Enter" && apply()}
onBlur={apply}
/>
<span className="objinfo-unit">m</span>
</label>
{obj.type === "importedMesh" && (
// [227] Kontextgebäude auf den tiefsten Geländepunkt unter dem Grundriss setzen.
<div className="site-actions">
<button
type="button"
data-testid="context-ground"
@@ -173,24 +185,26 @@ function HeightFields({ obj }: { obj: ContextObject }) {
>
{t("site.ground")}
</button>
</div>
)}
{(obj.type === "terrainMesh" || obj.type === "importedMesh") && <MeshPointFields obj={obj} />}
{obj.type === "contourSet" && (
<div className="site-prop" data-testid="contour-heights" style={{ display: "block", maxHeight: 180, overflowY: "auto" }}>
<span>{t("site.contours", { n: obj.contours.length })}</span>
<div className="site-contours" data-testid="contour-heights">
<div className="objinfo-section-label">{t("site.contours", { n: obj.contours.length })}</div>
{obj.contours.map((c, i) => (
<label key={i} style={{ display: "flex", gap: 6, alignItems: "center" }}>
<span style={{ flex: 1 }}>{`${i + 1} · ${t("site.contour.points", { n: c.pts.length })}`}</span>
<label key={i} className="objinfo-field">
<span className="objinfo-flabel" title={t("site.contour.points", { n: c.pts.length })}>{`${i + 1} · ${t("site.contour.points", { n: c.pts.length })}`}</span>
<input
className="objinfo-input"
type="number"
step={0.5}
style={{ width: 90 }}
data-testid={`contour-z-${i}`}
value={c.z}
onChange={(e) => {
if (e.target.value.trim() !== "") setContourHeight(obj.id, i, Number(e.target.value), `site-${obj.id}-contourZ-${i}`);
}}
/>
<span className="objinfo-unit">m</span>
</label>
))}
</div>
@@ -226,16 +240,17 @@ function KindFields({ obj, quantities }: { obj: ContextObject; quantities: reado
// [T4] Glatt oder kantig schattieren, Knickwinkel je Mesh (Vorgabe 30°).
return (
<div className="site-props">
<label className="site-check">
<label className="objinfo-field">
<span className="objinfo-flabel">{t("site.smoothShading")}</span>
<input
className="site-check"
type="checkbox"
checked={obj.smoothShading === true}
onChange={(e) => host.onPatchContextObject(obj.id, { smoothShading: e.target.checked }, `site-${obj.id}-smoothShading`)}
/>
{t("site.smoothShading")}
</label>
{obj.smoothShading === true && (
<NumField label={t("site.creaseAngle")} value={obj.creaseAngle} step={5} min={1} placeholder="30" onChange={patch("creaseAngle")} />
<NumField label={t("site.creaseAngle")} unit="°" value={obj.creaseAngle} step={5} min={1} placeholder="30" onChange={patch("creaseAngle")} />
)}
</div>
);
@@ -247,15 +262,16 @@ function KindFields({ obj, quantities }: { obj: ContextObject; quantities: reado
return (
<div className="site-props">
{cat && (
<label className="site-check" title={t("site.terrain.visible.hint", { name: `${cat.code} ${cat.name}` })}>
<input type="checkbox" data-testid="terrain-visible" checked={cat.visible} onChange={() => host.onToggleCategory(cat.code)} />
{t("site.terrain.visible")}
<label className="objinfo-field" title={t("site.terrain.visible.hint", { name: `${cat.code} ${cat.name}` })}>
<span className="objinfo-flabel">{t("site.terrain.visible")}</span>
<input className="site-check" type="checkbox" data-testid="terrain-visible" checked={cat.visible} onChange={() => host.onToggleCategory(cat.code)} />
</label>
)}
{hasSource && (
<label className="site-prop" title={t("site.terrain.smooth.hint")}>
<span>{t("site.terrain.smooth")}</span>
<label className="objinfo-field" title={t("site.terrain.smooth.hint")}>
<span className="objinfo-flabel">{t("site.terrain.smooth")}</span>
<select
className="objinfo-input"
data-testid="terrain-smooth"
value={obj.smooth === undefined ? "" : String(obj.smooth)}
onChange={(e) => {
@@ -274,9 +290,10 @@ function KindFields({ obj, quantities }: { obj: ContextObject; quantities: reado
</label>
)}
{!hasSource && (
<label className="site-prop" title={isGrid ? t("site.terrain.resmooth.hint") : t("site.terrain.resmooth.unavailable")}>
<span>{t("site.terrain.smooth")}</span>
<label className="objinfo-field" title={isGrid ? t("site.terrain.resmooth.hint") : t("site.terrain.resmooth.unavailable")}>
<span className="objinfo-flabel">{t("site.terrain.smooth")}</span>
<select
className="objinfo-input"
data-testid="terrain-resmooth"
disabled={!isGrid}
value=""
@@ -298,13 +315,14 @@ function KindFields({ obj, quantities }: { obj: ContextObject; quantities: reado
</select>
</label>
)}
<NumField label={t("site.contourInterval")} value={obj.contourInterval} step={0.5} min={0} placeholder="—" onChange={patch("contourInterval")} />
<NumField label={t("site.contourInterval")} unit="m" value={obj.contourInterval} step={0.5} min={0} placeholder="—" onChange={patch("contourInterval")} />
<NumField label={t("site.contourIndexEvery")} value={obj.contourIndexEvery} step={1} min={1} placeholder="5" onChange={patch("contourIndexEvery")} />
<NumField label={t("site.earthDepth")} value={obj.earthDepth} step={0.5} min={0.1} placeholder="1.5" onChange={patch("earthDepth")} />
<NumField label={t("site.earthDepth")} title={t("site.earthDepth.hint")} unit="m" value={obj.earthDepth} step={0.5} min={0.1} placeholder="1.5" onChange={patch("earthDepth")} />
{/* [212] Material der Oberfläche (Bauteil): Farbe und Bildkarten im 3D, Pathtracer und Blender-Paket. */}
<label className="site-prop site-prop-wide" title={t("site.terrain.material.hint")}>
<span>{t("site.terrain.material")}</span>
<label className="objinfo-field" title={t("site.terrain.material.hint")}>
<span className="objinfo-flabel">{t("site.terrain.material")}</span>
<select
className="objinfo-input"
data-testid="terrain-material"
value={obj.componentId ?? ""}
onChange={(e) => host.onPatchContextObject(obj.id, { componentId: e.target.value || undefined })}
@@ -324,17 +342,17 @@ function KindFields({ obj, quantities }: { obj: ContextObject; quantities: reado
if (obj.type === "excavation") {
return (
<div className="site-props">
<NumField label={t("site.excavation.bottom")} value={obj.bottom} step={0.05} onChange={(v) => v !== undefined && patch("bottom")(v)} />
<NumField label={t("site.excavation.slope")} value={obj.slope} step={5} min={5} placeholder="45" onChange={patch("slope")} />
<NumField label={t("site.excavation.fillSlope")} value={obj.fillSlope} step={5} min={5} placeholder="33.7" onChange={patch("fillSlope")} />
<NumField label={t("site.excavation.bermWidth")} value={obj.bermWidth} step={0.25} min={0} placeholder="—" onChange={patch("bermWidth")} />
<NumField label={t("site.excavation.bermHeight")} value={obj.bermHeight} step={0.5} min={0} placeholder="—" onChange={patch("bermHeight")} />
<NumField label={t("site.excavation.workingSpace")} value={obj.workingSpace} step={0.1} min={0} placeholder="0" onChange={patch("workingSpace")} />
<div className="site-prop" title={t("site.excavation.shoringHint")}>
<span>{t("site.excavation.shoring")}</span>
<span>
<NumField label={t("site.excavation.bottom")} unit="m" value={obj.bottom} step={0.05} onChange={(v) => v !== undefined && patch("bottom")(v)} />
<NumField label={t("site.excavation.slope")} unit="°" value={obj.slope} step={5} min={5} placeholder="45" onChange={patch("slope")} />
<NumField label={t("site.excavation.fillSlope")} unit="°" value={obj.fillSlope} step={5} min={5} placeholder="33.7" onChange={patch("fillSlope")} />
<NumField label={t("site.excavation.bermWidth")} unit="m" value={obj.bermWidth} step={0.25} min={0} placeholder="—" onChange={patch("bermWidth")} />
<NumField label={t("site.excavation.bermHeight")} unit="m" value={obj.bermHeight} step={0.5} min={0} placeholder="—" onChange={patch("bermHeight")} />
<NumField label={t("site.excavation.workingSpace")} unit="m" value={obj.workingSpace} step={0.1} min={0} placeholder="0" onChange={patch("workingSpace")} />
<div className="objinfo-field" title={t("site.excavation.shoringHint")}>
<span className="objinfo-flabel">{t("site.excavation.shoring")}</span>
<span className="site-edges">
{obj.outline.map((_, i) => (
<label key={i} style={{ marginRight: 6 }}>
<label key={i}>
<input
type="checkbox"
data-testid={`excavation-shoring-${i}`}
@@ -351,9 +369,10 @@ function KindFields({ obj, quantities }: { obj: ContextObject; quantities: reado
</div>
{obj.edgeShoring?.some(Boolean) && (
<>
<label className="site-prop">
<span>{t("site.excavation.shoringKind")}</span>
<label className="objinfo-field">
<span className="objinfo-flabel">{t("site.excavation.shoringKind")}</span>
<select
className="objinfo-input"
data-testid="excavation-shoring-kind"
value={obj.shoringKind ?? "sheetPile"}
onChange={(e) => host.onPatchContextObject(obj.id, { shoringKind: e.target.value }, `site-${obj.id}-shoringKind`)}
@@ -363,8 +382,8 @@ function KindFields({ obj, quantities }: { obj: ContextObject; quantities: reado
<option value="borePile">{t("site.excavation.shoringKind.borePile")}</option>
</select>
</label>
<NumField label={t("site.excavation.shoringThickness")} value={obj.shoringThickness} step={0.05} min={0.05} placeholder={obj.shoringKind === "borePile" ? "0.6" : obj.shoringKind === "soldierPile" ? "0.3" : "0.2"} onChange={patch("shoringThickness")} />
<NumField label={t("site.excavation.shoringEmbed")} value={obj.shoringEmbed} step={0.1} min={0} placeholder="1" onChange={patch("shoringEmbed")} />
<NumField label={t("site.excavation.shoringThickness")} unit="m" value={obj.shoringThickness} step={0.05} min={0.05} placeholder={obj.shoringKind === "borePile" ? "0.6" : obj.shoringKind === "soldierPile" ? "0.3" : "0.2"} onChange={patch("shoringThickness")} />
<NumField label={t("site.excavation.shoringEmbed")} title={t("site.excavation.shoringEmbed.hint")} unit="m" value={obj.shoringEmbed} step={0.1} min={0} placeholder="1" onChange={patch("shoringEmbed")} />
</>
)}
<ExcavationQty q={quantities.find((x) => x.id === obj.id)} />
+59 -27
View File
@@ -5164,31 +5164,42 @@ body {
background: var(--line);
margin: 2px 0;
}
/* [T6]/[68] Felder von Gelände und Baugrube (Objekt-Info). */
/* [T6]/[68] Felder von Gelände und Baugrube (Objekt-Info): Zeilen als `.objinfo-field` (Label | Feld | Einheit),
wie die übrigen Gruppen ([241]); hier nur, was sie nicht mitbringen. */
.site-panel .site-props {
flex: 1 0 100%;
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
gap: 4px 8px;
font-size: 11px;
}
.site-panel .site-prop {
display: flex;
align-items: center;
justify-content: space-between;
.site-panel .objinfo-field .objinfo-unit {
flex: 0 0 14px;
}
.site-panel .objinfo-field select.objinfo-input {
text-align: left;
}
.site-panel .objinfo-field .site-check {
margin: 0;
}
.site-panel .site-actions {
flex-wrap: wrap;
gap: 4px;
padding: 3px 2px;
}
.site-panel .site-prop-wide {
grid-column: 1 / -1;
.site-panel .site-actions button {
flex: 1 1 auto;
}
/* Auswahlfelder (Glättung, Material) dürfen schmaler werden als ihre längste Option, sonst läuft die Spalte über. */
.site-panel .site-prop select {
min-width: 0;
flex: 1 1 0;
max-width: 100%;
.site-panel .site-edges {
display: flex;
flex-wrap: wrap;
gap: 2px 8px;
}
.site-panel .site-prop input {
width: 64px;
.site-panel .site-edges label {
display: inline-flex;
align-items: center;
gap: 2px;
}
.site-panel .site-contours {
max-height: 180px;
overflow-y: auto;
}
.site-panel .site-qty {
grid-column: 1 / -1;
@@ -5203,6 +5214,9 @@ body {
gap: 3px;
font-size: 11px;
}
.site-panel .objinfo-field .site-check {
flex: 0 0 auto;
}
.site-panel .site-remove {
flex: 0 0 auto;
width: 18px;
@@ -5254,14 +5268,14 @@ body {
}
/* Gelände/Baugrube/Schatten in der Objekt-Info: der Abschnitt wächst mit seinem Inhalt (sonst schrumpft er in der
Flex-Spalte auf eine Zeile Höhe und verdeckt die Felder, `.site-panel` ist sonst ein eigener Scroll-Bereich). */
.objinfo-panel > .objinfo-site {
.objinfo-panel .objinfo-site {
flex: 0 0 auto;
height: auto;
min-height: auto;
overflow: visible;
padding: 0;
}
.objinfo-panel > .objinfo-site .site-props {
.objinfo-panel .objinfo-site .site-props {
flex: 0 0 auto;
}
.objinfo-empty {
@@ -5445,7 +5459,9 @@ body {
Balken, Zeilentrenner, einheitliche Label-Spalte, linksbündig füllende Felder.
Das eigenständige ObjectInfo-Panel (Bezugspunkt/Masse) bleibt unberührt. */
.attr-panel .objinfo-section-label,
.objinfo-group-body .objinfo-section-label {
.objinfo-group-body .objinfo-section-label,
.objinfo-camera .objinfo-section-label,
.objinfo-tree .objinfo-section-label {
color: var(--label);
font-weight: 700;
text-transform: uppercase;
@@ -5458,12 +5474,16 @@ body {
}
/* Sektion-Balken trennen bereits → die dünnen Extra-Striche entfallen. */
.attr-panel .objinfo-sep,
.objinfo-group-body .objinfo-sep {
.objinfo-group-body .objinfo-sep,
.objinfo-camera .objinfo-sep,
.objinfo-tree .objinfo-sep {
display: none;
}
/* Zeile: Label-Spalte | Wert/Control, mit dezentem Zeilentrenner (wie .attr-*). */
.attr-panel .objinfo-field,
.objinfo-group-body .objinfo-field {
.objinfo-group-body .objinfo-field,
.objinfo-camera .objinfo-field,
.objinfo-tree .objinfo-field {
display: flex;
align-items: center;
gap: 6px;
@@ -5471,7 +5491,9 @@ body {
border-bottom: 1px solid var(--line);
}
.attr-panel .objinfo-flabel,
.objinfo-group-body .objinfo-flabel {
.objinfo-group-body .objinfo-flabel,
.objinfo-camera .objinfo-flabel,
.objinfo-tree .objinfo-flabel {
flex: 0 0 104px;
width: 104px;
white-space: nowrap;
@@ -5482,16 +5504,22 @@ body {
}
/* Werte/Controls füllen die Zelle linksbündig (statt rechtsbündig). */
.attr-panel .objinfo-fval,
.objinfo-group-body .objinfo-fval {
.objinfo-group-body .objinfo-fval,
.objinfo-camera .objinfo-fval,
.objinfo-tree .objinfo-fval {
flex: 1 1 auto;
text-align: left;
}
.attr-panel .objinfo-input,
.objinfo-group-body .objinfo-input {
.objinfo-group-body .objinfo-input,
.objinfo-camera .objinfo-input,
.objinfo-tree .objinfo-input {
text-align: left;
}
.attr-panel .objinfo-field .tb-dd-trigger,
.objinfo-group-body .objinfo-field .tb-dd-trigger {
.objinfo-group-body .objinfo-field .tb-dd-trigger,
.objinfo-camera .objinfo-field .tb-dd-trigger,
.objinfo-tree .objinfo-field .tb-dd-trigger {
flex: 1 1 auto;
min-width: 0;
justify-content: space-between;
@@ -5499,8 +5527,12 @@ body {
/* Segment-Umschalter + verschachtelte Felder füllen ebenfalls die Wert-Spalte. */
.attr-panel .objinfo-segment,
.objinfo-group-body .objinfo-segment,
.objinfo-camera .objinfo-segment,
.objinfo-tree .objinfo-segment,
.attr-panel .objinfo-subfield,
.objinfo-group-body .objinfo-subfield {
.objinfo-group-body .objinfo-subfield,
.objinfo-camera .objinfo-subfield,
.objinfo-tree .objinfo-subfield {
flex: 1 1 auto;
min-width: 0;
}