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:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user