[142] Baumhöhe im Sonnenstudien-Panel, TODO nachgeführt

This commit is contained in:
Claude committed 2026-11-06 07:38:01 +00:00
1 parent 44de144014
commit b370537355
4 files changed
+38 -3

No files matched your search

+2
View File
@@ -2561,6 +2561,8 @@ export const de = {
"sun.belowHorizon": "Sonne unter dem Horizont",
"sun.noAnchor": "Standort Zürich angenommen",
"sun.noAnchor.hint": "Ohne Georeferenz rechnet die Studie mit Zürich. Standort über «Standort importieren» oder «Neuer Bezugspunkt» festlegen.",
"sun.treeHeight": "Baumhöhe (m)",
"sun.treeHeight.hint": "Höhe der Bäume (Kreise auf der Ebene 13 «Bäume») über Terrain für den Schattenwurf.",
"siteRules.title": "Baurecht der Parzelle",
"siteRules.show": "im Grundriss",
"siteRules.fromSelection": "Parzelle aus Auswahl",
+2
View File
@@ -2511,6 +2511,8 @@ export const en: Record<TranslationKey, string> = {
"sun.belowHorizon": "Sun below the horizon",
"sun.noAnchor": "Location assumed: Zurich",
"sun.noAnchor.hint": "Without georeference the study uses Zurich. Set the location via “Import location” or “New reference point”.",
"sun.treeHeight": "Tree height (m)",
"sun.treeHeight.hint": "Height of the trees (circles on layer 13 “Trees”) above terrain for the shadow cast.",
"siteRules.title": "Zoning of the parcel",
"siteRules.show": "in plan",
"siteRules.fromSelection": "Parcel from selection",
+15
View File
@@ -64,6 +64,21 @@ export function SunStudySection() {
/>
<span className="sun-time">{formatMinutes(local.minutes)}</span>
</div>
<label className="sun-row" title={t("sun.treeHeight.hint")}>
<span>{t("sun.treeHeight")}</span>
<input
type="number"
className="kz-input"
min={1}
max={60}
step={0.5}
value={study.treeHeight ?? 8}
onChange={(e) => {
const h = Number(e.target.value);
if (Number.isFinite(h) && h > 0) write({ ...study, treeHeight: h }, "sunStudy:treeHeight");
}}
/>
</label>
<div className="sun-readout">
{sun.elevation > 0
? t("sun.position", { az: sun.azimuth.toFixed(0), el: sun.elevation.toFixed(1) })