UI: Gruppe-A-Felder in Objekt-Info-Panel verdrahtet
- Treppe: Dropdown Referenz (Links/Mitte/Rechts) vor Laufrichtung. - Fenster: Feld Fluegel (1-4) nach Bruestung. - Tuer: Dropdowns Typ (Normal/Wandoeffnung) + Sturzlinien (Keine/Innen/Aussen/ Beide) vor Anschlag. - host.ts/selectionInfo.ts Durchreichung, App.tsx-Handler (kind-guard + updateOpening/updateStair), i18n de/en. Rueckwaertskompatibel. tsc sauber, vitest 292/292.
This commit is contained in:
+13
@@ -2337,6 +2337,16 @@ export default function App() {
|
||||
onSetOpeningDir: (openingDir) => {
|
||||
if (selection?.kind === "opening") updateOpening(selection.id, { openingDir });
|
||||
},
|
||||
onSetOpeningWingCount: (wingCount) => {
|
||||
if (selection?.kind === "opening")
|
||||
updateOpening(selection.id, { wingCount: Math.max(1, Math.min(4, Math.round(wingCount))) });
|
||||
},
|
||||
onSetOpeningDoorType: (doorType) => {
|
||||
if (selection?.kind === "opening") updateOpening(selection.id, { doorType });
|
||||
},
|
||||
onSetOpeningLintelLines: (lintelLines) => {
|
||||
if (selection?.kind === "opening") updateOpening(selection.id, { lintelLines });
|
||||
},
|
||||
// ── Treppen-Attribute (nur bei selektierter Treppe) ────────────────────
|
||||
onSetStairShape: (shape) => {
|
||||
if (selection?.kind === "stair") updateStair(selection.id, { shape });
|
||||
@@ -2356,6 +2366,9 @@ export default function App() {
|
||||
onSetStairUp: (up) => {
|
||||
if (selection?.kind === "stair") updateStair(selection.id, { up });
|
||||
},
|
||||
onSetStairReferenz: (referenz) => {
|
||||
if (selection?.kind === "stair") updateStair(selection.id, { referenz });
|
||||
},
|
||||
// ── Raum-Attribute (nur bei selektiertem Raum) ─────────────────────────
|
||||
onSetRoomName: (name) => {
|
||||
if (selection?.kind === "room") updateRoom(selection.id, { name });
|
||||
|
||||
Reference in New Issue
Block a user