[324] Präsentationsblatt füllt das Blatt: Reihen senkrecht verteilt, Plan-Grenzen mit Achsblasen/Masszahlen, Schriftfeld bricht Projektnamen um
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-20 20:34:53 +00:00
1 parent e596c4d65e
commit ac8b34dd9c
11 files changed
+184 -50

No files matched your search

+4 -1
View File
@@ -33,6 +33,7 @@ import {
findSnapshot,
folderPdfPages,
resolveTitleBlock,
titleBlockNameLines,
resolveViewportScale,
SHEET_SCALE_DENOMINATOR,
viewportCenterBounds,
@@ -72,8 +73,10 @@ function drawTitleBlock(
doc.setTextColor(17, 17, 17);
setPdfFont(doc, PDF_DEFAULT_FONT, true);
const name = titleBlockNameLines(tb.projectName);
doc.setFontSize(9 * name.scale);
name.lines.forEach((l, i) => doc.text(l, x + 3, y + name.baselines[i]));
doc.setFontSize(9);
doc.text(clip(tb.projectName, 28), x + 3, y + 5.6);
doc.text(tb.planNumber, x + boxW - 3, y + 5.6, { align: "right" });
setPdfFont(doc, PDF_DEFAULT_FONT);
+3 -2
View File
@@ -5,7 +5,7 @@
import type { Layout, MasterLayout, Project } from "../model/types";
import { t } from "../i18n/translate";
import { effectiveSheetSizeMm, findMaster, resolveTitleBlock, type ResolvedTitleBlock } from "../model/layoutModel";
import { effectiveSheetSizeMm, findMaster, resolveTitleBlock, titleBlockNameLines, type ResolvedTitleBlock } from "../model/layoutModel";
import { imageGeometry } from "../model/layoutImages";
import { posterHeaderItems, viewportScaleLabel, viewportVariantLabel } from "../model/posterTemplates";
import { legendPlan, legendPrintSvg } from "./legendSvg";
@@ -53,11 +53,12 @@ function titleBlockSvg(w: number, h: number, tb: ResolvedTitleBlock, layout: Lay
const x = w - bw - 6;
const y = h - bh - 6;
const fmt = `${layout.paper.toUpperCase()} ${layout.orientation === "landscape" ? "quer" : "hoch"}`;
const name = titleBlockNameLines(tb.projectName);
const o: string[] = [
`<rect x="${x}" y="${y}" width="${bw}" height="${bh}" fill="#fff" stroke="${INK}" stroke-width="0.35"/>`,
`<line x1="${x}" y1="${y + 8}" x2="${x + bw}" y2="${y + 8}" stroke="${INK}" stroke-width="0.2"/>`,
`<line x1="${x}" y1="${y + bh - 7}" x2="${x + bw}" y2="${y + bh - 7}" stroke="${INK}" stroke-width="0.2"/>`,
textEl(x + 3, y + 5.6, clip(tb.projectName, 28), 3.2, { bold: true }),
...name.lines.map((l, i) => textEl(x + 3, y + name.baselines[i], l, 3.2 * name.scale, { bold: true })),
textEl(x + bw - 3, y + 5.6, tb.planNumber, 3.2, { bold: true, anchor: "end" }),
textEl(x + 3, y + 13, clip(tb.sheetName, 36), 2.8),
];