[176] Schnittmarke als L (markerStyle, Modelldarstellung sectionMarks); Ansichtsmarker nur flaches Dreieck mit Bezeichnung dahinter

Neu: DrawingLevel.markerStyle (arrow | lAngle) mit Vorgabe ModelViewOption.sectionMarks.style (Ebene > Modelldarstellung > Pfeil).
L-Marke: je Ende langer Schenkel (12 mm) längs der Linie, kurzer (6 mm) in Blickrichtung, keine Linie, kein Dreieck,
Bezeichnung waagrecht aussen; Knickstücke bleiben. Ansichtsmarker ohne Kreis: Dreieck Basis 6 mm, Höhe 3 mm, Bezeichnung
dahinter. UI: Objekt-Info (Schnitt) und Ressourcen-Tab. Goldens: nur Ansichtsmarker.
This commit is contained in:
Claude committed 2026-11-10 16:52:44 +00:00
1 parent 718101dc12
commit a5d7b142fa
24 files changed
+355 -173

No files matched your search

+5 -7
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-1.62075 0 8.2415 7.30258" width="82.415mm" height="73.02581mm">
<rect x="-1.62075" y="0" width="8.2415" height="7.30258" fill="#ffffff"/>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-1.62075 0 8.2415 7.535" width="82.415mm" height="75.35mm">
<rect x="-1.62075" y="0" width="8.2415" height="7.535" fill="#ffffff"/>
<g stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4">
<polygon points="0,4.6725 5,4.6725 5,0.6725 0,0.6725" fill="none" stroke="none" stroke-width="0"/>
<polygon points="0.1725,4.5 4.8275,4.5 4.8275,0.845 0.1725,0.845" fill="#6b728000" stroke="#6b7280" stroke-width="0.002"/>
@@ -44,11 +44,9 @@
<polyline points="4.8,2.6725 6,2.6725 6,1.8725" fill="none" stroke="#1f242c" stroke-width="0.05"/>
<polygon points="6,1.8725 6.13,2.2225 5.87,2.2225" fill="#1f242c" stroke="#1f242c" stroke-width="0.012"/>
<polygon points="-1,2.3725 6,2.3725 6,2.9725 -1,2.9725" fill="none" stroke="none" stroke-width="0"/>
<path d="M 2.9 6.6725 A 0.4 0.4 0 0 0 2.1 6.6725" fill="none" stroke="#000" stroke-width="0.025"/>
<path d="M 2.1 6.6725 A 0.4 0.4 0 0 0 2.9 6.6725" fill="none" stroke="#000" stroke-width="0.025"/>
<polygon points="2.5,5.9225 2.66,6.2725 2.34,6.2725" fill="#1f242c" stroke="#1f242c" stroke-width="0.012"/>
<polygon points="2.9,7.0725 2.9,5.9225 2.1,5.9225 2.1,7.0725" fill="none" stroke="none" stroke-width="0"/>
<text x="2.18" y="6.80258" font-size="0.34688" fill="#1f242c" font-family="sans-serif" transform="rotate(0 2.18 6.80258)">Süd</text>
<polygon points="2.5,6.3725 2.8,6.6725 2.2,6.6725" fill="#1f242c" stroke="#1f242c" stroke-width="0.012"/>
<text x="2.17713" y="7.035" font-size="0.35" fill="#1f242c" font-family="sans-serif" transform="rotate(0 2.17713 7.035)">Süd</text>
<polygon points="2.82288,7.035 2.82288,6.3725 2.17713,6.3725 2.17713,7.035" fill="none" stroke="none" stroke-width="0"/>
<text x="-1.12075" y="1.7725" font-size="0.35" fill="#1f242c" font-family="sans-serif" transform="rotate(0 -1.12075 1.7725)">A</text>
<text x="5.87925" y="1.7725" font-size="0.35" fill="#1f242c" font-family="sans-serif" transform="rotate(0 5.87925 1.7725)">A</text>
</g>

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

+6
View File
@@ -1189,6 +1189,7 @@ export const de = {
"resources.modelViews.section.site": "Gelände",
"resources.modelViews.section.roofs": "Dächer",
"resources.modelViews.section.columns": "Stützen",
"resources.modelViews.section.sectionMarks": "Schnittmarken",
"resources.modelViews.section.elevation": "Ansicht",
"resources.modelViews.opt.doors.threshold": "Schwelle (Grundriss)",
"resources.modelViews.opt.doors.sectionDetail": "Zarge und Sturz im Schnitt",
@@ -1234,6 +1235,11 @@ export const de = {
"resources.modelViews.opt.walls.reveals": "Schichteinzug",
"resources.modelViews.opt.walls.cutHatch": "Schnittflächen ab 1:100 schraffiert",
"resources.modelViews.opt.slabs.floorFinish": "Bodenbelag",
"resources.modelViews.opt.sectionMarks.style": "Markentyp der Schnitte",
"resources.modelViews.val.arrow": "Pfeil",
"resources.modelViews.val.lAngle": "Nur L",
"objinfo.sectionLine.marker": "Schnittmarke",
"objinfo.sectionLine.marker.model": "wie Modelldarstellung",
"resources.modelViews.opt.site.terrain": "Gelände im Grundriss",
"resources.modelViews.val.gestrichelt": "gestrichelt",
"resources.modelViews.val.punktiert": "punktiert",
+6
View File
@@ -1183,6 +1183,7 @@ export const en: Record<TranslationKey, string> = {
"resources.modelViews.section.site": "Site",
"resources.modelViews.section.roofs": "Roofs",
"resources.modelViews.section.columns": "Columns",
"resources.modelViews.section.sectionMarks": "Section marks",
"resources.modelViews.section.elevation": "Elevation",
"resources.modelViews.opt.doors.threshold": "Threshold (plan)",
"resources.modelViews.opt.doors.sectionDetail": "Frame and lintel in section",
@@ -1228,6 +1229,11 @@ export const en: Record<TranslationKey, string> = {
"resources.modelViews.opt.walls.reveals": "Layer reveal",
"resources.modelViews.opt.walls.cutHatch": "Hatch cut faces from 1:100",
"resources.modelViews.opt.slabs.floorFinish": "Floor finish",
"resources.modelViews.opt.sectionMarks.style": "Section marker type",
"resources.modelViews.val.arrow": "Arrow",
"resources.modelViews.val.lAngle": "L only",
"objinfo.sectionLine.marker": "Section marker",
"objinfo.sectionLine.marker.model": "as model view",
"resources.modelViews.opt.site.terrain": "Terrain in plan",
"resources.modelViews.val.gestrichelt": "dashed",
"resources.modelViews.val.punktiert": "dotted",
+19
View File
@@ -1100,6 +1100,11 @@ export type DrawingLevel = {
* folgt weiter der Verbindung der Endpunkte.
*/
bendPoints?: Array<Vec2>;
/**
* [176] Schnittmarke im Grundriss: "arrow" (Pfeil mit Dreieck, Basis) oder "lAngle" (nur ein L je Ende). Fehlt ⇒ die
* Vorgabe der Modelldarstellung (`sectionMarks.style`), sonst Pfeil. Nur Schnitt.
*/
markerStyle?: SectionMarkerStyle;
/** Blickrichtung relativ zur Schnittlinie (nur Schnitt/Ansicht). */
directionSign?: 1 | -1;
/**
@@ -2051,6 +2056,8 @@ export type ModelViewOption = {
columns?: ModelViewColumns;
/** [173] Ansicht (Fassade). */
elevation?: ModelViewElevation;
/** [176] Schnittmarken im Grundriss. */
sectionMarks?: ModelViewSectionMarks;
};
/** [173] Dächer in der Modelldarstellung (fehlt ⇒ wie Basis). */
@@ -2063,6 +2070,12 @@ export type ModelViewRoofs = {
viewHatch?: boolean;
};
/** [176] Schnittmarken in der Modelldarstellung (fehlt ⇒ Pfeil). */
export type ModelViewSectionMarks = {
/** Markentyp der Schnitte (die Ebene geht vor; Basis: Pfeil). */
style?: SectionMarkerStyle;
};
/** [173] Gelände in der Modelldarstellung. */
export type ModelViewSite = {
/** Gelände, Höhenlinien und Baugruben im Grundriss (die Ebene geht vor; Basis: automatisch). */
@@ -3193,6 +3206,12 @@ export type SashDef = {
hingeSide?: "left" | "right";
};
/**
* [176] Markentyp einer Schnittlinie im Grundriss: Pfeil (kräftige Endstücke, dünne Linie, Schenkel mit Dreieck)
* oder nur ein L an jedem Ende (langer Schenkel längs der Linie, kurzer in Blickrichtung, keine Linie dazwischen).
*/
export type SectionMarkerStyle = "arrow" | "lAngle";
/**
* Sequenz-Regel: fasst mehrere Unterregeln zusammen und wendet sie geordnet an.
* Jede Unterregel kann die Ausgabe der vorherigen verfeinern.
@@ -127,6 +127,24 @@ export function SectionLineSection({
/>
</div>
{/* [176] Schnittmarke im Grundriss: leer = Vorgabe der Modelldarstellung (sonst Pfeil). */}
{level.kind === "section" && (
<div className="objinfo-field">
<span className="objinfo-flabel">{t("objinfo.sectionLine.marker")}</span>
<Dropdown
value={level.markerStyle ?? ""}
onChange={(v) => host.onSetSectionLinePatch({ markerStyle: v === "arrow" || v === "lAngle" ? v : undefined })}
options={[
{ value: "", label: t("objinfo.sectionLine.marker.model") },
{ value: "arrow", label: t("resources.modelViews.val.arrow") },
{ value: "lAngle", label: t("resources.modelViews.val.lAngle") },
]}
title={t("objinfo.sectionLine.marker")}
width={150}
/>
</div>
)}
{/* Verdeckte Kanten (gestrichelt) — Default aus (blasses Liniengewirr). */}
<div className="objinfo-field">
<span className="objinfo-flabel">{t("objinfo.sectionLine.hiddenLines")}</span>
@@ -1,13 +1,12 @@
viewBox -12.82 0 37.603 33.301
bytes 20866
viewBox -13.448 0 38.615 33.813
bytes 19897
circle 14
g 1
line 63
path 8
polygon 29
polyline 14
rect 1
svg 1
text 30
tspan 9
hash cbd83e26384e4902
text 31
tspan 8
hash 9d4b051d4643a275
@@ -1,13 +1,12 @@
viewBox -12.66 0 37.302 33.15
bytes 316081
viewBox -12.974 0 37.808 33.406
bytes 318165
circle 14
g 1
line 3178
path 8
line 3212
polygon 75
polyline 72
rect 1
svg 1
text 32
tspan 12
hash 078337d2ecf6e729
tspan 9
hash f65e632e02bea427
@@ -1,13 +1,13 @@
viewBox -41.5 0 95 63.6
bytes 65856
bytes 65478
circle 16
g 1
line 143
path 43
path 35
polygon 87
polyline 107
rect 1
svg 1
text 110
text 115
tspan 24
hash 174b561165a31f60
hash 15578d089b60bf60
@@ -1,13 +1,13 @@
viewBox -41.5 0 95 63.6
bytes 110270
bytes 107202
circle 16
g 1
line 390
path 74
line 371
path 66
polygon 208
polyline 125
rect 1
svg 1
text 115
tspan 32
hash 4ef2454b29bc620a
tspan 24
hash 79e3b4ca1a64e95a
@@ -1,13 +1,13 @@
viewBox -12.82 0 37.603 33.301
bytes 45668
viewBox -13.448 0 38.615 33.813
bytes 44888
circle 14
g 1
line 113
path 17
path 9
polygon 52
polyline 98
rect 1
svg 1
text 82
text 86
tspan 19
hash 2e2f9e2e97af8199
hash 63a214a67a23917f
@@ -1,13 +1,13 @@
viewBox -12.66 0 37.302 33.15
bytes 350591
viewBox -12.974 0 37.808 33.406
bytes 353699
circle 14
g 1
line 3209
path 45
line 3256
path 37
polygon 152
polyline 167
rect 1
svg 1
text 85
tspan 24
hash e941e2c5d6e9c14a
tspan 18
hash 02d3fdb73b319310
@@ -1,13 +1,13 @@
viewBox -12.82 0 37.603 33.301
bytes 39291
viewBox -13.448 0 38.615 33.813
bytes 38285
circle 15
g 1
line 91
path 31
path 23
polygon 43
polyline 64
rect 1
svg 1
text 68
tspan 18
hash e06d5443a927da8a
text 70
tspan 15
hash 04304c2c1d1feb26
@@ -1,13 +1,13 @@
viewBox -12.66 0 37.302 33.15
bytes 45384
viewBox -12.974 0 37.808 33.406
bytes 44206
circle 15
g 1
line 87
path 46
path 38
polygon 78
polyline 71
rect 1
svg 1
text 70
tspan 20
hash cd95ec684e6fb034
tspan 15
hash 9cc8b4d9e5563c5a
@@ -1,12 +1,11 @@
viewBox -1.621 0 8.242 7.303
bytes 6159
viewBox -1.621 0 8.242 7.535
bytes 5819
g 1
line 19
path 2
polygon 19
polyline 4
rect 1
svg 1
text 6
tspan 3
hash c04f0c0e648f9487
text 5
tspan 2
hash 02c76630347cfb6b
@@ -1,12 +1,11 @@
viewBox -1.56 0 8.121 7.238
bytes 9579
viewBox -1.56 0 8.121 7.354
bytes 9241
g 1
line 20
path 2
polygon 46
polyline 8
rect 1
svg 1
text 6
tspan 3
hash 51842e3354ed753a
text 5
tspan 2
hash bf901e6810ddf2e2
@@ -1,11 +1,10 @@
viewBox -1.621 0 8.242 7.53
bytes 2843
viewBox -1.621 0 8.242 7.763
bytes 2669
g 1
line 2
path 2
polygon 12
polyline 3
rect 1
svg 1
text 3
hash f243af6d8f088bb7
hash d0fc9efc7b012bf2
@@ -1,11 +1,10 @@
viewBox -1.56 0 8.121 7.465
bytes 4727
viewBox -1.56 0 8.121 7.581
bytes 4552
g 1
line 2
path 2
polygon 29
polyline 3
rect 1
svg 1
text 3
hash bee2ad69ea28de30
hash db41c17fef99a859
+2 -1
View File
@@ -21,7 +21,7 @@ export function isBuiltinModelView(id: string | undefined | null): id is DetailL
}
/** Abschnitte je Bauteilart. */
export type ModelViewSection = "doors" | "windows" | "stairs" | "walls" | "slabs" | "roofs" | "columns" | "elevation" | "site";
export type ModelViewSection = "doors" | "windows" | "stairs" | "walls" | "slabs" | "roofs" | "columns" | "elevation" | "site" | "sectionMarks";
/** Ein Eintrag der Auswahl (Werkzeugleiste, Vorlage): eingebaute Stufen zuerst, dann die eigenen. */
export interface ModelViewChoice {
@@ -180,6 +180,7 @@ export const MODEL_VIEW_FIELDS: readonly ModelViewField[] = [
{ section: "elevation", key: "shadows", values: "bool" },
{ section: "elevation", key: "materialHatch", values: "bool" },
{ section: "site", key: "terrain", values: "bool" },
{ section: "sectionMarks", key: "style", values: ["arrow", "lAngle"] },
];
/** Auswahlwert eines Feldes als Text (`""` = wie Basis); Gegenstück: {@link parseFieldValue}. */
+1 -1
View File
@@ -31,7 +31,7 @@ export interface ModelViewHandlers {
onSetModelViewOption?: (id: string, section: ModelViewSection, key: string, value: string | number | boolean | null) => void;
}
const SECTIONS: ModelViewSection[] = ["doors", "windows", "stairs", "walls", "slabs", "roofs", "columns", "elevation", "site"];
const SECTIONS: ModelViewSection[] = ["doors", "windows", "stairs", "walls", "slabs", "roofs", "columns", "elevation", "site", "sectionMarks"];
/** Anzeige eines Auswahlwerts (Zahlen mit Einheit, Rest übersetzt). */
function valueLabel(f: ModelViewField, v: string | number): string {