[330] Plantexte: eigene Schriftgrösse (sizePt) im Druck und in der SVG-Ansicht in Papier-pt wie render2d
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-25 10:01:41 +00:00
1 parent 53d0fe66e1
commit 6c4ea8a2eb
6 files changed
+19 -17

No files matched your search

+4 -3
View File
@@ -628,8 +628,9 @@ function annotations(): Drawing2D[] {
// Text mit Formatierung, Hinweis mit Führungslinie, Detailverweis, Massstabsleiste, Revisionswolke.
add("titel-eg", "eg", "50", {
shape: "text", at: P(-2, -11.2), text: "Erdgeschoss", height: 0.7, angle: 0, width: 16,
doc: textDoc([{ text: "Musterhaus komplex — Erdgeschoss", bold: true }, { text: "Zweifamilienhaus am Südhang, Wohnung 1 (EG/UG) und Maisonette (OG/DG)", italic: true }]),
shape: "text", at: P(-2, -11.2), text: "Erdgeschoss", height: 0.4, angle: 0, width: 16,
// Titelzeile 14 pt gedruckt (Papier-pt, auf jedem Massstab gleich), Untertitel in der Grundhöhe (4 mm bei 1:100).
doc: textDoc([{ text: "Musterhaus komplex — Erdgeschoss", bold: true, sizePt: 14 }, { text: "Zweifamilienhaus am Südhang, Wohnung 1 (EG/UG) und Maisonette (OG/DG)", italic: true }]),
});
// [269] Hinweis nah am Bauteil: einzeilig im Wohnraum über der Hebeschiebetür (Mitte x = 8.5), kurze
// Führungslinie zur Schwelle. Vorher stand er 4.5 m südlich unter den Massketten, die Führungslinie querte beide.
@@ -641,7 +642,7 @@ function annotations(): Drawing2D[] {
add("detailref-1", "eg", "50", { shape: "detailref", at: P(-9, -2.6), label: "1", sheetLayoutId: "lay-501", sheetLabel: "501" });
// [269] Titel und Massstabsbalken rücken näher ans Haus (vorher 16 bzw. 19 m darunter: ein halbes Blatt leer);
// unter dem Haus statt links aussen, sonst sprengt der Grundriss den Viewport auf Blatt 101 (37 m bei 1:100).
add("massstab-eg", "eg", "50", { shape: "scalebar", at: P(-2, -14), segmentLength: 1, segments: 5 });
add("massstab-eg", "eg", "50", { shape: "scalebar", at: P(-2, -12.9), segmentLength: 1, segments: 5 });
// Revisionswolke (Bögen nach aussen: negativer Bulge bei Gegenuhrzeigersinn).
const cloud = [...arcPts(P(12.6, 0), 1.9, -Math.PI, Math.PI, 18).slice(0, 18)].map((q) => P(q.x, r3(q.y * 0.6)));
add("revision-a", "eg", "90", { shape: "polyline", closed: true, pts: cloud, bulge: cloud.map(() => -0.45) }, { color: "#c0392b", weightMm: 0.35 });
@@ -1,5 +1,5 @@
viewBox -41.5 0 95 64.4
bytes 67616
bytes 67628
circle 18
g 1
line 135
@@ -10,4 +10,4 @@ rect 1
svg 1
text 112
tspan 25
hash a45935ddba577882
hash 62822314c5954189
@@ -10,4 +10,4 @@ rect 1
svg 1
text 112
tspan 25
hash 66c96f6448f24aef
hash dace79267cd91ba9
+4 -2
View File
@@ -806,8 +806,10 @@ export function renderPrimitive(
x: c.x,
y: c.y,
lineHeight: fontSize * 1.25,
unitPerPt: (0.0254 / 72) * PX_PER_M,
basePt: (p.heightM / 0.0254) * 72,
// Run-eigene `sizePt` in Papier-pt (wie render2d und der Druck): 1 pt belegt beim Massstab 1:N
// 0.0254/72·N Modell-Meter; ohne Druckmassstab der Referenzmassstab 1:100 (wie die Stempel).
unitPerPt: (0.0254 / 72) * (paperScale ?? 100) * PX_PER_M,
basePt: (p.heightM / ((0.0254 / 72) * (paperScale ?? 100))),
color: p.color,
wrapWidthUnits,
columnWidth: wrapWidthUnits,