[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:
14 files changed
+327
-50
No files matched your search
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0.1 0 6.8 7.58564" width="68mm" height="75.85641mm">
|
||||
<rect x="0.1" y="0" width="6.8" height="7.58564" fill="#ffffff"/>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-1.9 0 10.8 7.58564" width="108mm" height="75.85641mm">
|
||||
<rect x="-1.9" y="0" width="10.8" height="7.58564" fill="#ffffff"/>
|
||||
<g stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4">
|
||||
<polygon points="1.8,4.98564 1.8,7.08564 2.7,7.08564 2.7,4.98564" fill="#ffffff" stroke="none" stroke-width="0"/>
|
||||
<polygon points="4.2,4.98564 4.2,5.00564 5,5.00564 5,4.98564" fill="#9aa0a6" stroke="none" stroke-width="0"/>
|
||||
@@ -42,6 +42,6 @@
|
||||
<line x1="0.6" y1="1.88564" x2="6.4" y2="1.88564" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<line x1="6.4" y1="2.05885" x2="0.6" y2="2.05885" stroke="#2b3039" stroke-width="0.013"/>
|
||||
<polyline points="6.4,2.05885 6.4,1.88564 6.4,0.5 0.6,0.5 0.6,1.88564 0.6,2.05885" fill="none" stroke="#2b3039" stroke-width="0.018"/>
|
||||
<line x1="0.6" y1="7.08564" x2="6.4" y2="7.08564" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<line x1="-1.4" y1="7.08564" x2="8.4" y2="7.08564" stroke="#1f242c" stroke-width="0.05"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -1128,9 +1128,9 @@ function SectionPlanView({
|
||||
const marks = useMemo(
|
||||
() =>
|
||||
rawPlan && levelMarksEnabled(level, project, (c) => visibleCodes.has(c) && categoryDisplay(c).render)
|
||||
? levelMarkerPrimitives(project, rawPlan.bounds, rawPlan.primitives)
|
||||
? levelMarkerPrimitives(project, rawPlan.bounds, rawPlan.primitives, scaleDenominator)
|
||||
: [],
|
||||
[rawPlan, level, project, visibleCodes, categoryDisplay],
|
||||
[rawPlan, level, project, visibleCodes, categoryDisplay, scaleDenominator],
|
||||
);
|
||||
const withOverlay = useMemo(() => {
|
||||
if (!rawPlan) return rawPlan;
|
||||
|
||||
Reference in new issue
Block a user