[267] Ansichten aller Seiten: Befehl ansichten und Menü Ansicht legen Nord/Ost/Süd/West um das Gebäude an (Hauptrichtung aus minimalem Hüllrechteck, vorhandene Seiten ausgelassen, ein Undo-Schritt)

This commit is contained in:
Claude committed 2026-11-16 12:49:52 +00:00
1 parent 4c3f7d4f6c
commit 96a801ccb2
21 files changed
+646 -9

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
// [267] Menü Ansicht → „Ansichten aller Seiten erzeugen“: dieselbe Rechnung wie der Befehl `ansichten`
// (`commands/elevationSetFor.ts`), angewendet als ein Undo-Schritt, Meldung über `notify`.
import { elevationSetFor } from "../commands/elevationSetFor";
import { t } from "../i18n";
import { getState } from "./appStore";
/** Menü: Ansichten anlegen (ein Undo-Schritt) und melden. */
export function createElevationSet(): void {
const st = getState();
const res = elevationSetFor(st.project);
const commit = res.commit;
if (commit) st.applyChange((p) => commit.toOps(p));
st.notify(t(res.notice.key, res.notice.params), res.notice.kind);
}