Decken-Panel: Aussparungen anzeigen + einzeln entfernen

Die Decken-Sektion listet die Aussparungen (BBox-Masse je Loch) mit
Entfernen-Knopf; Anlegen über den Befehl 'Deckenloch'. CeilingInfo.openings,
host.onRemoveCeilingOpening + App-Routing. 684/684 grün.
This commit is contained in:
2026-07-10 18:44:13 +02:00
parent aee884639e
commit 83dcdd0501
6 changed files with 48 additions and 0 deletions
+8
View File
@@ -3238,6 +3238,14 @@ export default function App() {
if (selection?.kind === "ceiling")
setCeilingThickness(selection.id, thickness);
},
onRemoveCeilingOpening: (index) => {
if (selection?.kind !== "ceiling") return;
const c = (project.ceilings ?? []).find((x) => x.id === selection.id);
if (!c?.openings || index < 0 || index >= c.openings.length) return;
updateCeiling(selection.id, {
openings: c.openings.filter((_, i) => i !== index),
});
},
onSetCeilingTop: (anchor) => {
if (selection?.kind === "ceiling")
updateCeiling(selection.id, { top: anchor ?? undefined });