Schnittlinie editierbar: Objektinfo-Sektion + Entf-Taste

Gewaehlte Schnitt-/Ansichtslinie erscheint als SectionLineSection im Attribut-
Panel (ueber host.sectionLine, da eine Linie kein Projekt-Bauteil ist): Name,
Blickrichtung umkehren (directionSign-Flip), Endpunkt-Koordinaten und Schnitt-
Tiefe editierbar; Loeschen/Entf setzt linePoints zurueck (Ebene bleibt). Host-
Kontrakt um sectionLine/onSetSectionLinePatch/onDeleteSectionLine erweitert,
verdrahtet ueber patchLevel. i18n de/en.
This commit is contained in:
2026-07-11 00:26:49 +02:00
parent 39bceedc17
commit ef7eb295d9
6 changed files with 197 additions and 1 deletions
+7 -1
View File
@@ -42,6 +42,7 @@ import {
RoomSection,
ExtrudedSolidSection,
ColumnSection,
SectionLineSection,
} from "./ObjectInfoPanel";
/** UI-Zustand des 3-Optionen-Quellen-Dropdowns (nicht 1:1 das Modell-Feld:
@@ -92,10 +93,15 @@ export function AttributesPanel() {
// Leerzustand: der Typ-Picker (falls ein Bauteil-Werkzeug aktiv ist), sonst ein
// kompakter Hinweis.
if (sel === null) {
// Schnitt-/Ansichtslinie ist kein Projekt-Bauteil (kein `selection`) — sie
// kommt über host.sectionLine und wird hier im „Leerzustand" bearbeitet.
return (
<div className="attr-panel">
{typeSection}
{!typeSection && <div className="attr-empty">{t("attr.empty")}</div>}
{host.sectionLine && <SectionLineSection level={host.sectionLine} host={host} />}
{!typeSection && !host.sectionLine && (
<div className="attr-empty">{t("attr.empty")}</div>
)}
</div>
);
}