[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:
19 files changed
+393
-12
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user