[208] [184] [81] Abgabe-Ansichten 1:200: kräftige Bodenlinie auf ±0.00 mit Überstand (Klasse Gelände), Höhenkoten in Papiergrösse, Fenster mit Rahmen/Flügel/Glas, Masszahl weicht Nachbarzahl statt in die Wand aus

- Ansicht ohne Geländenetz: Bodenlinie 0.5 auf ±0.00, 10 mm Papier (mind. 2 m) Überstand, darunter weiss gedeckt; Klasse 02
- level_markers mit Massstab (2 mm Schrift wie Element kote), Abfrage levelMarkers mit 5. Argument, Blatt-Viewports
- Ansicht: Vergröberung mittel -> grob erst ab 1:500; 1:200 ohne Öffnungssymbole
- dim_auto_offsets mit offset: Nachbarzahl rückt im Segment weg, sonst unter die Linie statt in die Wand (Plan, Griffe, DXF)
- Goldens: Ansicht muster (Ausmass +2 m je Seite, Bodenlinie), komplex (Linienstärke Gelände)
This commit is contained in:
Claude committed 2026-11-14 17:17:03 +00:00
1 parent 03e3ba0bf8
commit a946ea2b05
14 files changed
+327 -50

No files matched your search

@@ -1,5 +1,5 @@
viewBox -31.5 0 93 18.478
bytes 216806
bytes 216805
circle 4
g 1
line 505
@@ -9,4 +9,4 @@ polyline 186
rect 1
svg 1
text 4
hash 604aaa91fdf2fcef
hash 2737f183636c45e9
@@ -1,9 +1,9 @@
viewBox 0.1 0 6.8 7.586
bytes 4771
viewBox -1.9 0 10.8 7.586
bytes 4776
g 1
line 7
polygon 30
polyline 4
rect 1
svg 1
hash 027bcc5f19d4d4e7
hash a4aea271bdda3a51
+3 -1
View File
@@ -38,11 +38,13 @@ export function levelMarksEnabled(
/**
* Kote-Primitive für eine Zeichnung mit den Grenzen `bounds` (u, Höhe). Höhen
* ausserhalb der Zeichnung (Geschosse, die der Schnitt nicht zeigt) entfallen.
* [208] `scaleDenominator`: Koten in Papiergrösse (2 mm Schrift; Standard 1:100).
*/
export function levelMarkerPrimitives(
project: Project,
bounds: { minX: number; minY: number; maxX: number; maxY: number },
primitives?: readonly Primitive[],
scaleDenominator = 100,
): Primitive[] {
if (!(bounds.maxX > bounds.minX) || !(bounds.maxY > bounds.minY)) return [];
const minX = primitives ? Math.max(bounds.minX, builtMinX(project, primitives)) : bounds.minX;
@@ -50,7 +52,7 @@ export function levelMarkerPrimitives(
// komplex: „+13.13" 1.4 m über dem First), über Bäume und Texte.
const top = primitives ? Math.min(bounds.maxY, builtMaxY(project, primitives)) : bounds.maxY;
const maxY = top > bounds.minY ? top : bounds.maxY;
return decodePlanBuf(documentFor(project).queryBin("levelMarkers", [minX < bounds.maxX ? minX : bounds.minX, bounds.minY, bounds.maxX, maxY])).prims;
return decodePlanBuf(documentFor(project).queryBin("levelMarkers", [minX < bounds.maxX ? minX : bounds.minX, bounds.minY, bounds.maxX, maxY, scaleDenominator])).prims;
}
// [171] Gelände (Schnittfläche, Profil- und Grundlinie) zählt nicht zur Lage der Koten: sie stehen neben dem
+1 -1
View File
@@ -103,7 +103,7 @@ async function levelPlan(
}
if (!raw || raw.primitives.length === 0) return EMPTY;
const own = generatePlan(project, level.id, visibleCodes, undefined, detail, false, mono, false, scaleDenominator, forPrint, false, overrideRuleIds);
const marks = levelMarksEnabled(level, project, (c) => visibleCodes.has(c)) ? levelMarkerPrimitives(project, raw.bounds, raw.primitives) : [];
const marks = levelMarksEnabled(level, project, (c) => visibleCodes.has(c)) ? levelMarkerPrimitives(project, raw.bounds, raw.primitives, scaleDenominator) : [];
const b = { ...raw.bounds };
const grow = (x: number, y: number) => {
b.minX = Math.min(b.minX, x);