[36] Merge: Sichttiefe für Schnitt/Ansicht, Lüftungsschlitz unter Schnitt
This commit is contained in:
8 files changed
+160
-70
No files matched your search
@@ -1026,6 +1026,8 @@ export const de = {
|
||||
"editor.viewTop": "Oberkante Sicht",
|
||||
"editor.viewBottom": "Unterkante Sicht",
|
||||
"editor.viewDepth": "Darunter sichtbar bis",
|
||||
"editor.sectionDepth": "Sichttiefe",
|
||||
"editor.sectionDepth.hint": "Bauteile weiter hinter der Schnitt-/Ansichtsebene entfallen in der Projektion (leer = unbegrenzt).",
|
||||
"editor.unit.mm": "mm",
|
||||
"editor.unit.m": "m",
|
||||
"editor.noHeightDrawing": "Für Zeichnungen gibt es keine Geschoss-/Schnitthöhe.",
|
||||
|
||||
@@ -1020,6 +1020,8 @@ export const en: Record<TranslationKey, string> = {
|
||||
"editor.viewTop": "View top",
|
||||
"editor.viewBottom": "View bottom",
|
||||
"editor.viewDepth": "Visible below down to",
|
||||
"editor.sectionDepth": "View depth",
|
||||
"editor.sectionDepth.hint": "Elements farther behind the section/view plane are not projected (empty = unlimited).",
|
||||
"editor.unit.mm": "mm",
|
||||
"editor.unit.m": "m",
|
||||
"editor.noHeightDrawing": "Drawings have no floor/cut height.",
|
||||
|
||||
@@ -271,6 +271,26 @@ export function LevelInlineEditor({
|
||||
))}
|
||||
</>
|
||||
)}
|
||||
{/* Sichttiefe ([36]) für Schnitt/Ansicht: leer = unbegrenzt (Darstellung wie bisher). */}
|
||||
{(level.kind === "section" || level.kind === "elevation") && (
|
||||
<EditorField label={t("editor.sectionDepth")}>
|
||||
<span className="editor-num" title={t("editor.sectionDepth.hint")}>
|
||||
<input
|
||||
type="number"
|
||||
step={0.5}
|
||||
min={0}
|
||||
data-testid="level-depth"
|
||||
value={level.depth ?? ""}
|
||||
placeholder="∞"
|
||||
onChange={(e) => {
|
||||
const v = Number(e.target.value);
|
||||
patchLevel(level.id, { depth: e.target.value === "" || !(v > 0) ? undefined : v });
|
||||
}}
|
||||
/>
|
||||
<span className="editor-unit">{t("editor.unit.m")}</span>
|
||||
</span>
|
||||
</EditorField>
|
||||
)}
|
||||
{!isFloor && (
|
||||
<div className="editor-note">
|
||||
{level.kind === "drawing"
|
||||
|
||||
Reference in new issue
Block a user