[140] Raumstempel ab 1:200 kleiner und ohne SIA-Zeile; Tests an neue Defaults angepasst

This commit is contained in:
Claude committed 2026-11-05 17:10:30 +00:00
1 parent 911ee218b0
commit 81a5d6fd74
7 files changed
+45 -25

No files matched your search

+2 -2
View File
@@ -124,8 +124,8 @@ describe.skipIf(!hasEzdxf)("Fachplaner-Export gegen ezdxf", { timeout: 60_000 },
}
const st = r.dimstyles["DOSSIER_1-100"];
expect(st).toMatchObject({ dimscale: 100, dimtad: 1, dimdec: 2, dimlfac: 1, dimtxsty: "DOSSIER" });
expect(st.dimtxt as number).toBeCloseTo(0.004, 9); // 4 mm Papier
expect(st.dimtsz as number).toBeCloseTo(0.0015, 9); // Architekturstrich 3 mm
expect(st.dimtxt as number).toBeCloseTo(0.0025, 9); // 2.5 mm Papier ([140])
expect(st.dimtsz as number).toBeCloseTo(0.001, 9); // Architekturstrich 2 mm ([140])
});
it("Bemassungsstil im Massstab 1:50 und in cm", () => {
+2 -2
View File
@@ -131,10 +131,10 @@ describe("Druck-SVG: Textgrössen in Papier-mm", () => {
expect(t.xs[0] - t.xs[1]).toBeCloseTo((4 * K) / 2, 3);
});
it("Masszahl in der Papier-Schrifthöhe (4 mm), Höhenkote lesbar gross", () => {
it("Masszahl in der Papier-Schrifthöhe (2.5 mm, [140]), Höhenkote lesbar gross", () => {
const all = print();
const dim = all.find((x) => x.text === "5.00")!;
expect(dim.sizes[0]).toBeCloseTo(4, 3);
expect(dim.sizes[0]).toBeCloseTo(2.5, 3);
const kote = all.find((x) => /0[.,]00/.test(x.text) && x !== dim);
expect(kote).toBeDefined();
expect(kote!.sizes[0]).toBeGreaterThan(1);