[144] Öffnungen verschieben: gewählte Tür/Fenster gleiten beim Verschieben entlang der Wand; Objekt-Info Abstand ab Wandende; Griff-Länge entlang der Wand

This commit is contained in:
Claude committed 2026-11-06 00:50:33 +00:00
1 parent 92a5cdbef7
commit d4f93ca3f3
19 files changed
+393 -12

No files matched your search

+5 -2
View File
@@ -949,8 +949,11 @@ export function usePanelHostBase(opts: {
updateOpening(selection.id, { sillHeight });
},
onSetOpeningPosition: (position) => {
if (selection?.kind === "opening" && position >= 0)
updateOpening(selection.id, { position });
if (selection?.kind !== "opening" || !Number.isFinite(position)) return;
// [144] In der Wand halten: auf [0, Wandlänge − Breite] klemmen (Bogenwand: nur ≥ 0).
const o = selection.opening;
const max = o?.wallLength != null ? Math.max(0, o.wallLength - o.width) : Infinity;
updateOpening(selection.id, { position: Math.min(max, Math.max(0, position)) });
},
onSetOpeningSwingAngle: (swingAngle) => {
if (selection?.kind === "opening" && swingAngle > 0)