[89] Layout-Blatt: Zeichnen wie im Grundriss (Blatt-Ebene statt eigener Annotationen)

Jedes Layout hat eine Blatt-Ebene (DrawingLevel.layoutId, Papier 1:1 in Metern); ein offenes Blatt
macht sie zur aktiven Ebene in derselben PlanView: gleiche Befehle, Fang, Griffe, Vorschau/HUD,
Auswahl, Undo und dasselbe Rendering. Das Blatt liefert nur den Hintergrund (PlanView.backdrop) und
das Platzieren der Viewports. Format 3 migriert Layout.annotations zu drawings2d. Layout-PDF legt die
Blatt-Ebene über planToPrintSvg aufs Papier. Alter Annotations-Pfad gelöscht. e2e layoutSheet.spec.ts.
This commit is contained in:
Claude committed 2026-10-29 20:29:55 +00:00
1 parent c78021473b
commit 3ff123773a
43 files changed
+1245 -2756

No files matched your search

+5 -1
View File
@@ -18,13 +18,17 @@ export interface CreatePreview {
info: number[];
}
/** Kontext der Anfrage: aktive Ebene/Geschoss, Kategorie, Wandtyp. */
/** Schrifthöhe neuer Texte auf einem Layout-Blatt (Papier 1:1): 3.5 mm. */
export const SHEET_TEXT_HEIGHT_M = 0.0035;
/** Kontext der Anfrage: aktive Ebene/Geschoss, Kategorie, Wandtyp (auf einem Blatt: Papier-Schrifthöhe). */
function ctxReq(ctx: CommandContext): object {
return {
level: ctx.level.id,
floorHeight: ctx.level.floorHeight ?? null,
cat: ctx.defaultCategoryCode,
wallType: ctx.activeWallTypeId,
...(ctx.level.layoutId ? { textHeight: SHEET_TEXT_HEIGHT_M } : {}),
};
}