[144] Öffnungen verschieben: Griff-Zug und Objekt-Info über den Kern (Bogenwand, Nachbaröffnung), Hinweise, vitest

This commit is contained in:
Claude committed 2026-11-06 07:38:23 +00:00
1 parent 8d916a290c
commit c77a57b9bb
14 files changed
+118 -55

No files matched your search

+8
View File
@@ -403,6 +403,12 @@ export interface ProjectSlice {
id: string,
patch: Partial<import("../model/types").Opening>,
) => void;
/**
* [144] Wandöffnung in ihrer Wand verschieben (Kern `opening_slide`): auf `position` (ab Wandanfang,
* Bogenwand: Bogenlänge) bzw. zum Griff-Punkt `pt`; geklemmt auf die Wand und 5 cm vor der Nachbar-
* öffnung (mit Hinweis). `coalesceKey` fasst einen Griff-Zug zu einem Undo-Schritt.
*/
slideOpening: (id: string, to: { position: number } | { pt: Vec2 }, coalesceKey?: string) => void;
/**
* Immutable Änderung eines Dachs (Form/Neigung/Überstand/Firstrichtung/
@@ -1253,6 +1259,8 @@ export function createProjectSlice(
// ── Öffnungs-Editieren ────────────────────────────────────────────────
updateOpening: (id, patch) => applyChange((p) => patchItem(p, "openings", id, patch)),
slideOpening: (id, to, coalesceKey) =>
applyGrip("pt" in to ? { op: "openingSlide", id, pt: gripPt(to.pt) } : { op: "openingPosition", id, a: to.position }, coalesceKey),
// ── Dach-Editieren ─────────────────────────────────────────────────────
updateRoof: (id, patch, coalesceKey) => applyChange((p) => patchItem(p, "roofs", id, patch), coalesceKey),