[333] Gerade Treppe: Griffe an allen vier Ecken (Breite, Lauflänge)
check / check (push) Canceled after 0s
check / licenses (push) Canceled after 0s
check / e2e (push) Canceled after 0s
macos / native (push) Canceled after 0s

This commit is contained in:
Claude committed 2026-11-26 23:51:04 +00:00
1 parent 003271953d
commit e788ebb990
7 files changed
+82 -9

No files matched your search

+1 -1
View File
@@ -212,7 +212,7 @@ export function stairMoveHandle(st: Stair): Vec2 {
/**
* [151] Parameter-Griffe einer Podesttreppe (L, U, gerade mit Podest): Ende Lauf 1, Ende letzter Lauf, bei
* U / gerade mit Podest der Podestrand. Andere Formen: keine. Den Zug rechnet der Kern (Griff `stairParam`).
* U / gerade mit Podest der Podestrand; [333] gerade Treppe die vier Ecken. Wendeltreppe: keine. Den Zug rechnet der Kern (Griff `stairParam`).
*/
export function stairParamPoints(st: Stair): Vec2[] {
return points(core().grip_stair_param_points(encodeStair(st)));
+2 -2
View File
@@ -47,7 +47,7 @@ declare global {
openings: { id: string; sillHeight: number; height: number }[];
/** [187] Teil 2: Traufe (absolutes Z), Neigung, Attika-Höhe; Steighöhe der Treppen; Sohle der Baugruben. */
roofs: { id: string; eave: number; pitchDeg: number; parapetHeight: number }[];
stairs: { id: string; totalRise: number; baseOffset: number }[];
stairs: { id: string; totalRise: number; baseOffset: number; runLength: number; width: number }[];
/** [187] Höhe je Höhenlinie der Höhenlinien-Sätze. */
contours: { id: string; zs: number[] }[];
excavations: { id: string; bottom: number }[];
@@ -231,7 +231,7 @@ export function installTestHooks(): void {
const f = p.drawingLevels.find((l) => l.id === r.floorId);
return { id: r.id, eave: r.baseElevation ?? (f ? (f.baseElevation ?? 0) + (f.floorHeight ?? 0) : 0), pitchDeg: r.pitchDeg, parapetHeight: r.parapetHeight ?? 0 };
}),
stairs: (p.stairs ?? []).map((st) => ({ id: st.id, totalRise: st.totalRise ?? NaN, baseOffset: st.baseOffset ?? 0 })),
stairs: (p.stairs ?? []).map((st) => ({ id: st.id, totalRise: st.totalRise ?? NaN, baseOffset: st.baseOffset ?? 0, runLength: st.runLength, width: st.width })),
contours: (p.context ?? []).flatMap((c) => (c.type === "contourSet" ? [{ id: c.id, zs: c.contours.map((k) => k.z) }] : [])),
excavations: (p.context ?? []).flatMap((c) => (c.type === "excavation" ? [{ id: c.id, bottom: c.bottom }] : [])),
};
+2 -1
View File
@@ -521,7 +521,8 @@ export function useGripEditing(opts: {
if (selectedStairId && modelEditable) {
const st = (project.stairs ?? []).find((s) => s.id === selectedStairId);
if (!st) return [];
// [151] Podesttreppen: dazu die Parameter-Griffe (Lauf-Enden, Podestrand).
// [151] Podesttreppen: dazu die Parameter-Griffe (Lauf-Enden, Podestrand); [333] gerade Treppe: die vier Ecken
// (vorne Breite, hinten Breite + Lauflänge).
const pts = [stairMoveHandle(st), ...stairParamPoints(st)];
pts.forEach((_, i) => { gripOwners.push({ localIndex: i }); gripOwnerRange.push([0, pts.length - 1]); });
return pts;