[329] [330] Werkzeug-Tooltips mit Kürzel, Klasse für ganze Mehrfachauswahl, Lauflinie mit Antrittspunkt (SIA 400)

This commit is contained in:
Claude committed 2026-11-24 14:56:56 +00:00
1 parent fe31440182
commit a0e4290175
27 files changed
+228 -56

No files matched your search

+4 -2
View File
@@ -11,7 +11,7 @@ Wer zu einer ID mehr wissen will (Entscheide, Tests, Bilder), sucht dort nach `*
stehen im Archiv („Bewusst nicht übernommen“).
- **Grösse** (eine Person mit Agenten): S ≤ 1 Tag · M ≤ 1 Woche · L ≤ 1 Monat · XL > 1 Monat.
Steht keine Grösse im Archiv, ist sie hier geschätzt.
- **IDs sind stabil.** Neue ID = nächste freie Zahl nach der höchsten im Archiv und hier (aktuell 328);
- **IDs sind stabil.** Neue ID = nächste freie Zahl nach der höchsten im Archiv und hier (aktuell 330);
nie eine ID wiederverwenden oder umnummerieren. Präfix-IDs (`[K]`, `[G]`, `[T]`, `[B]`, `[C]`) bleiben.
- **Pro Punkt:** was fehlt · wo im Code · Grösse. Höchstens ein bis drei Sätze je Punkt;
Messwerte und Befunde gehören in den Commit.
@@ -60,6 +60,8 @@ Kennwort, anonym) als PDF; Austausch mit Fachplanern über DXF/IFC.
- ◐ **[308]** 3D-Dokument: Gelände als Modellsockel (20.11., Bild `doc/review-308/axo.png`; `plan/axo_terrain.rs`). Zuschnitt auf Parzelle (`siteRules.parcel`, Bounding-Box ∪ Gebäude) + 2 m, ohne Parzelle Gebäude + 5 m; an allen Randkanten senkrechte Seitenflächen bis tiefster Geländepunkt (inkl. Baugrube) − 1 m, dunkler getönt, senkrechte Kanten nur an Ecken. Bildgrösse folgt Haus + Sockel. Option `terrainClip` (`parcel` Vorgabe | `building` | `none` = wie bisher ohne Sockel), CLI `--terrain-clip`. Offen: Rechteck-Hülle und Keller siehe [309]; keine UI-Einstellung für `terrainClip` (nur Doc3d-Extra/CLI); Mac/Tauri nicht geprüft. · S
- ◐ **[309]** 3D-Dokument: Sockelrand gerade, Zuschnitt auf Parzellenumriss, Keller (20.11., Bild `doc/review-309/axo.png`; `plan/axo_terrain.rs`). Zuschnittfläche = Parzellenumriss + 2 m (Gehrung über `kernel2d`, Ecken ≤ 4·d, Selbstschnitte per Vereinigung geheilt, konkave Parzellen) ∪ Gebäude + 2 m, ohne Parzelle Gebäude + 5 m; Dreiecke werden an die Fläche geschnitten (i_overlay), Randkanten nur auf der Zuschnittkante und echtem Netzrand. Deckt das Netz die Fläche nicht oder ist es zu dicht, Raster über der Fläche mit am Netzrand ergänztem (konstant fortgesetztem) Gelände statt gezacktem Rand. Sockel-Unterkante ≤ tiefstes Bauteil − 0.5 m (zusätzlich zu tiefster Geländepunkt − 1 m). Offen: ergänztes Gelände ausserhalb des Netzes ist eine Annahme (nächste Höhe), im Bild nicht gekennzeichnet; keine UI-Einstellung für `terrainClip`; Mac/Tauri nicht geprüft (Haarlinien auf den Sockelseiten: [310]). · S
- ◐ **[319]** Ansichtsschatten ([316]) schneller (20.11.; `plan/elevation/sun.rs`): Werfer-Stücke vorab aufs Hüllrechteck des Empfängers beschnitten, Stücke neben einem konvexen Empfänger (Dachdreieck) entfallen, ganz deckendes Stück allein, EIN Boolean je Empfänger (Vereinigung + Schnitt in einem). Nicht an schrägen Kanten beschneiden: fast gleiche Kanten bringen i_overlay auf Sekunden. Musterhaus komplex, alle 4 Ansichten nativ: Schatten 863 → 109 ms, Wettbewerb 46 → 14 ms; Abweichung zur alten Rechnung ≤ 3e-7 m² (`bench319`, ignored), Golden komplex Süd +3 Polygone (Rundungssplitter). e2e Präsentationsblatt 1.7 min / Pick 1.5 min (Grenze 2 min). Offen: Mac nicht geprüft (Ansicht Ost Komplex → [320]). · S
- ◐ **[330]** SIA-400-Prüfung der Darstellung (24.11., Musterhaus komplex: EG 1:100/1:50, Schnitt A-A, Ansicht Süd, Bilder nur lokal). In Ordnung: Wände 1:100 schwarz, 1:50 nach Baustoff schraffiert; Türen mit Flügel und Viertelkreis, Schiebetüren mit Pfeil; Fenster mit Glas-/Leibungslinien; Treppe mit Bruchlinie, über der Schnittebene gestrichelt; Schnitt mit Höhenkoten (fertig, ▽), Erdreich, Achsen; Ansicht mit Strichstärken-Hierarchie Gelände 0.5 / Umriss 0.25 / Kanten 0.13 / Feines 0.09 mm, Flügelsymbole gestrichelt, Materialfuge, Schatten 45°. Geändert: Lauflinie mit Antrittspunkt als Vorgabe (SIA 400 / DIN 1356: Punkt am Antritt, Pfeil am Austritt; vorher aus, `plan/model_view.rs`); Goldens nachgeführt. Hinweis: der CLI-Plan zeigt alle Klassen (Kamera-Blickkegel quer durch den Plan) — die Vorlage „Grundriss 1:100“ blendet sie aus. Offen: Dämmung im 1:100 nicht vom Mauerwerk abgesetzt (alles schwarz; Bürowahl), Rohbau-/Fertigkoten nicht unterschieden; Grundrisse 1:200, Situation und Blätter nicht geprüft; nicht auf dem Mac. · M
- ◐ **[329]** Bedienung Zeichnungsfenster (24.11., Rest aus [287]): Werkzeug-Tooltips mit Tastenkürzel („Wand (W)“, `state/keyboardShortcuts.ts` `toolShortcutLabel`, (12)); Mehrfachauswahl in der Objekt-Info: Kopf „3 Elemente gewählt: 2 Wände, 1 Tür/Fenster“, die Klasse im Kopf gilt für alle gewählten in einem Undo-Schritt (vorher nur das erste; `state/selectionCategory.ts`, (6)); Ausschnitt nach IFC-Bauteil-Import auf alles ([328]). Offen aus [287]: (1) Griff-Zug übernimmt erst beim nächsten Klick, (7) Anfangsansicht/zwei Massstabszahlen, (8) Tab „+“, (10) Einfügen ohne Vorschau, (11) Prompts; Felder ausser Klasse/Farbe/Strich zeigen bei Mehrfachauswahl das erste Element. · M
- ◐ **[328]** IFC: Archicad-Morphs (24.11., Rückmeldung Maintainer „Morphs nicht anwählbar“). Nachgestellt mit synthetischer Datei (Proxy/Wand/Bekleidung/Möbel/Stütze/Platte als IfcFacetedBrep bzw. IfcPolygonalFaceSet): im Grundriss als Kontext-Mesh und als Bauteil per Klick anwählbar (e2e `ifcMorph.spec.ts`). Behoben: (1) nach dem Import „Als Bauteile“ passte der Ausschnitt nur auf die Wände — Morphs lagen ausserhalb oder winzig (`useModelImport.ts` `importedElementPoints`); (2) schräg verschobene Körper (gleiche Deckel, gleiches Volumen) wurden senkrechte Stützen/Prismen — jetzt muss jede Ecke im Deckelumriss liegen (`fileio/ifc_semantic.rs` `prism`, Test `schraege_stuetze_bleibt_mesh`); (3) Klassen beim Import und Stützen-Befehl: Stütze 50 (= Text) → 25, Dach 35 (= Träger) → 31, Geländer 55 (gibt es nicht) → 41. (4) Hauptursache „beim IFC-Export nicht dabei“: importierte Netze gingen nur auf Umgebungsklassen und nur mit der Option „Kontext“ in den Export — Morphs fehlten. Jetzt: beim Import „Als Bauteile“ kommen Netze aus einem IFC-Geschoss auf eine Gebäudeklasse nach IFC-Klasse (Wand 20, Möbel 22, Stütze 25, Platte 30, Träger 35 …, sonst neu „29 Diverse Bauteile“; `import_ifc.rs` `building_mesh_classes`), und der Export schreibt Netze auf Gebäudeklassen immer, im Geschoss nach ihrer Unterkante, mit Klasse und GlobalId der Herkunft (`ifc_data.rs` REC_PART, `fileio` `part_entity`; IFC4 und IFC2x3, Rundreise mit ifcopenshell geprüft, `validate-ifc.py` 0 Befunde); Objekt-Info „Importierter Körper“ statt „Gelände/Umgebung“. Offen: keine echte Archicad-Datei geprüft (Datei vom Maintainer nötig); Name trägt nach der Rundreise den Geschoss-Präfix („EG: Morph-001“); Schnittlinien gewinnen beim Klick gegen darunterliegende Körper (zweiter Klick wechselt). · M
- ◐ **[327]** Grundriss schneller (24.11., Musterhaus komplex, nativ `bench159`): EG ganz 74 → 42 ms (1:100) bzw. 105 → 40 ms (1:50), UG 44 → 9 ms, OG 29 → 5 ms; nach Aussenwand-Änderung 154 → 64 ms bzw. 302 → 102 ms; im Browser-WASM (`dossier-cli bench`) EG nach Wand verschieben 298 → 115 ms bzw. 556 → 159 ms. Ursachen: Höhenlinien (32 000 Strecken) je Strecke gegen alle Kanten des Fussabdrucks und alle Text-Aussparungen geprüft → Suchraster (`context.rs` `HouseIndex`, `stamp_place.rs` `BoxGrid`, `Ctx::cut_at_gaps`); Achsblasen (`drawings.rs` `bubble_shift`) rechneten je Probepunkt den Abstand zu allen Kanten und Massen aus → nur noch nahe. Ergebnis gleich (Tests `house_index_wie_volle_rechnung`, `box_grid_und_cut_out_near`, Goldens unverändert). Nachtrag grosses Projekt (`:gross`, Geschoss g0, 135 Räume): Grundriss 63 → 30 ms (1:100), 1:50 jetzt 34 ms, Räume/Stempel 32 → 13 ms bzw. 12 → 2 ms — Pol und Stempel-Lagen je Raumumriss gemerkt (`stamp_spots`), Stempel grösser als der Raum ohne Einzelprüfung verworfen, Lagen nicht doppelt geprüft, Flächen-Hindernisse über ihr Hüllrechteck ausgeschlossen (Test `stempel_lagen_gemerkt_wie_gerechnet`). Ansicht (grosses Projekt): ohne Schatten 193 → 132 ms, mit Schatten 813 → 297 ms nativ, im Browser-WASM nach Wand verschieben 916 → 303 ms — Schatten prüfen je Fläche nur noch die Werfer im selben Streifen quer zum Licht (`elevation/sun.rs` `Strips`, Vergleichstest gegen die volle Rechnung bleibt), Baustoff-Kategorie je Baustoff gemerkt (`standards::material_category`), Materialfugen über Sortierung statt jede Fläche gegen jede (`patterns.rs`). Messhilfe: `BENCH_ONLY=elevation|elevation-shadow|section|3d` in `bench159` (ein Lauf, für `valgrind --tool=callgrind`). Befund 3D kalt (507 ms): zwei Drittel sind Manifold-Booleans der Wandkörper (`wall_body.rs`), im Betrieb je Wand im Dokument gemerkt — nicht angefasst. Gebäudevolumen (`building_volume.rs`, für Kennzahlen und IFC): Geschoss-Körper, die sich in der Höhe nicht überlappen, werden nicht mehr vereinigt, nur summiert (`Stack`, Test `stack_wie_volle_vereinigung`) — IFC-Daten Musterhaus komplex 1.68 → 1.31 s, grosses Projekt 5.6 → 4.9 s. Befund IFC: Rest sind Manifold-Booleans (Wandkörper je Wand, `ifc_data::union_bands`, Löcher im Grundriss-Prisma einzeln abgezogen); der Gebäudeumriss hat wegen Bogenwänden über 300 Ecken je Geschoss. Schnitt/Ansicht (grosses Projekt, Rechenschritte laut callgrind): Schnitt −27 %, Ansicht −16 % — Wandverbindungen je Geschoss gemerkt (`model3d/walls.rs` `floor_join_cuts`, Eingabe bitgleich verglichen; Wände und Decken fragten sie doppelt ab, gleiche Regelgeschosse teilen das Ergebnis), `merge_collinear` prüft nicht parallele Paare nicht mehr einzeln, Baum-Verdeckung im Schnitt ohne Bäume übersprungen. Grundriss nach Aussenwand-Änderung (Musterhaus komplex EG 1:50, Rechenschritte laut callgrind, `BENCH_ONLY=edit`): −41 % — Höhenlinien-Beschriftung merkt je Lage, was nur am Gelände hängt (Mitte, Richtung, gekreuzte Linien; `ContourData::spots`), Gelände-Schlüssel schnell gebildet (`excavation::hash_of`, vorher SipHash über das ganze Netz bei jeder der ~30 Abfragen je Grundriss). Innenwand verschoben, Masszahl im Haus ändert (Musterhaus komplex EG, `BENCH_WALL=eg-iw-x6`): nativ 78 → 50 ms, Browser-WASM 126 → 92 ms — Höhenlinien samt Beschriftung je Eingabe gemerkt, wobei Hindernisse und Aussparungen tief im Fussabdruck nicht zählen (`context.rs` `contour_prims`, `Obstacles::sig_where`; Test `hoehenlinien_gemerkt_trotz_hindernis_im_haus` gegen die Rechnung ohne Speicher). Offen: nicht auf dem Mac gemessen; Rest im EG: Zeichnungen ~8 ms, Gelände ~5 ms, Höhenlinien-Beschriftung nach Aussenwand-Änderung. [326] (Autodim weicht Handketten aus) wurde begonnen und abgebrochen, ID nicht vergeben. · M
- ◐ **[325]** Plakat/Präsentationsblatt Feinschliff (20.11.): Situation im Plakat nimmt den feinsten Massstab 1:200/1:250, bei dem Parzelle samt Rand ins Feld passt (`situation_scale`, höchstens 70 % Breite/60 % Höhe; auf A1 bleibt 1:500); Bild-Rahmen linksbündig an der Spaltenkante (Axonometrie-Titel fluchtet); Detailverweis: langer Blattname steht rechts neben dem Kreis (`drawings.rs`); Musterhaus komplex: die handgesetzte Fensterkette „mass-fenster-eg“ lag auf der automatischen Öffnungskette (Zahlen überlagert) und liegt jetzt darunter (y −5.4). Review `doc/review-325/plakat.png`. Offen: `autodim` weicht handgesetzten Ketten nicht selbst aus (nur das Beispiel behoben); Mac/Tauri nicht geprüft. · S — Situation: Massstab bleibt der gewählte (1:500), feiner schnitt die Nachbarn ab (Koordinator 20.11.).
@@ -84,7 +86,7 @@ Kennwort, anonym) als PDF; Austausch mit Fachplanern über DXF/IFC.
- ◐ **[301]** Aus [300]: doppelte Masszahlen in benachbarten Ketten (`auto_dimensions.rs`, `plan/model_view.rs`) und Sonnenschatten über Räumen (19.11., Bild `doc/review-301/plan.png`). Offen: Schatten-Befund stammte aus dem Bildschirm-Plan der App und war im Kern nicht reproduzierbar — Wettbewerb mit Sonnenstudie von Hand ansehen (Mac/Tauri nicht geprüft); bestehende Projekte behalten ihre Ketten bis zum nächsten `autodim`. · S
- ◐ **[300]** Planqualität 1:100 für die Vorprojekt-Abgabe geprüft (19.11., Bild `doc/review-300/plan100.png`). Offen: Treppen-Hilfslinien im EG (0.1 mm) auf Papier schwach; Möbel im Schnitt: [311]. Nicht geprüft: Metal/Tauri, Druck-PDF, Massstäbe ausser 1:100. · S
- ◐ **[286]** Umbau: Ecken sanierter Wände schichtweise statt Gehrung (18.11., `joins::layered_corner`, Bild `doc/review-286/ecke.png`). Offen: Fuge zwischen Beton der sanierten Wand und Dämmung des Nachbarn fehlt im Umbauplan; Bogenwände und Knoten mit ≥ 3 Wänden bleiben auf Gehrung; dominante Schicht nicht im Schicht-Editor des Wandtyps; Ecke im 3D und in der Tauri-App nicht geprüft. · S
- ◐ **[287]** UX-Prüfung „wie eine Architektin zeichnen“ (18.11., Bilder `doc/review-287/`). Offen: (1) Griff-/Verschiebe-Zug übernimmt erst beim nächsten Klick (`state/useGripEditing.ts`, M); (6) Objekt-Info bei Mehrfachauswahl zeigt nur das erste Element (`panels/objectInfo`); (7) Anfangsansicht des leeren Projekts 60 × 60 m und zwei Massstabszahlen in der Topbar; (8) Tab „+“ öffnet zweite Ansicht „Erdgeschoss“; (9) Fangmarker klein (`overlays.tsx` `markSize`); (10) Ctrl+V ohne Vorschau; (11) Prompts uneinheitlich (`i18n`, `cmds/*`); (12) Werkzeug-Tooltips ohne Kürzel. Nicht geprüft: 3D umschauen, Layout/Plakat, Umbau-Status, Spiegeln/Drehen, Mac/Tauri. · M
- ◐ **[287]** UX-Prüfung „wie eine Architektin zeichnen“ (18.11., Bilder `doc/review-287/`). Offen: (1) Griff-/Verschiebe-Zug übernimmt erst beim nächsten Klick (`state/useGripEditing.ts`, M); (6) Mehrfachauswahl → [329] (Kopf und Klasse erledigt); (7) Anfangsansicht des leeren Projekts 60 × 60 m und zwei Massstabszahlen in der Topbar; (8) Tab „+“ öffnet zweite Ansicht „Erdgeschoss“; (9) Fangmarker: mit [288] erledigt; (10) Ctrl+V ohne Vorschau; (11) Prompts uneinheitlich (`i18n`, `cmds/*`); (12) Werkzeug-Tooltips mit Kürzel → [329] erledigt. Nicht geprüft: 3D umschauen, Layout/Plakat, Umbau-Status, Spiegeln/Drehen, Mac/Tauri. · M
- ◐ **[289]** Linux-App auf Mac-Niveau (18.11., Bild `doc/review-289/linux.png`): Kürzel, Fensterknöpfe, Doppeltext. Offen: Doppeltext nur per Regel-Test belegt (`plan/nativeText.ts`), echte GPU nicht geprüft; Text im Editor bleibt unter dem Editorfeld in der Szene; native Datei-/Kontextmenüs und Desktop-Datei nicht angefasst; Mac/Tauri nicht geprüft. · S
- ◐ **[290]** Linux-App: Schatten zu dunkel (Deckkraft in `plan/scene.rs`), 3D-Last (`viewport/renderOnDemand.ts`), Adapter-Log (18.11.). Offen: im Container nur SwiftShader — echter Adapter (Wayland/„minimal“) und tatsächliche CPU-Last nicht geprüft; Pfadverfolger-Statusschleife läuft im Pathtrace-Modus weiter; Mac/Tauri nicht geprüft. · S
- ◐ **[288]** Fangpunkte und Griffe wie Vectorworks (18.11., Bilder `doc/review-288/`; `tools/snapGlyph.ts`, `planView/overlays.tsx`). Offen: Cmd/Ctrl-Klick als zweiter Weg zur Kantenauswahl fehlt (öffnet die Objektliste [137]); Griff-Zug übernimmt weiter erst beim nächsten Klick ([287] (1)); 3D-Kanten-Anfasser unverändert; nicht in der Tauri-App/auf dem Mac geprüft.
+1 -1
View File
@@ -2553,7 +2553,7 @@ pub struct ModelViewStairs {
#[serde(rename = "runEndMm", default, skip_serializing_if = "Option::is_none")]
#[ts(optional)]
pub run_end_mm: Option<f64>,
/// Antrittspunkt am Anfang der Lauflinie (Basis: nein).
/// Antrittspunkt am Anfang der Lauflinie (Basis: ja, SIA 400).
#[serde(rename = "startMark", default, skip_serializing_if = "Option::is_none")]
#[ts(optional)]
pub start_mark: Option<bool>,
+2 -1
View File
@@ -543,7 +543,8 @@ pub fn resolve(mv: Option<&ModelViewOption>, detail: Detail, scale: f64) -> Opti
section_beyond: s.and_then(|s| s.section_beyond).unwrap_or(true),
run_start_mm: s.and_then(|s| s.run_start_mm).filter(|v| v.is_finite() && *v >= 0.0).unwrap_or(0.0),
run_end_mm: s.and_then(|s| s.run_end_mm).filter(|v| v.is_finite() && *v >= 0.0).unwrap_or(0.0),
start_mark: s.and_then(|s| s.start_mark).unwrap_or(false),
// [328] SIA 400 / DIN 1356: Lauflinie mit Punkt am Antritt und Pfeil am Austritt — Vorgabe an (vorher aus).
start_mark: s.and_then(|s| s.start_mark).unwrap_or(true),
step_numbers: s.and_then(|s| s.step_numbers).unwrap_or(false),
},
wall: WallOpts {
+2 -2
View File
@@ -91,7 +91,7 @@ fn aufloesung_je_option_basis() {
assert_eq!(o.door.swing_angle(None), None);
assert!(o.door.frame && !o.door.leaf_rect && o.door.swing_arc.is_none());
assert!(!o.window.sill && !o.window.sash_frames && o.window.sash_symbols(None, None) && !o.window.plan_swing_arcs(None, None));
assert_eq!(o.stair, StairOpts { walk_line: true, arrow: true, break_line: true, above_cut: true, handrail: Some(false), section_beyond: true, run_start_mm: 0.0, run_end_mm: 0.0, start_mark: false, step_numbers: false });
assert_eq!(o.stair, StairOpts { walk_line: true, arrow: true, break_line: true, above_cut: true, handrail: Some(false), section_beyond: true, run_start_mm: 0.0, run_end_mm: 0.0, start_mark: true, step_numbers: false });
assert_eq!(o.wall.layers, LayerMode::Simplified { force: false });
assert_eq!(o.wall.thin_mm, THIN_LAYER_PAPER_MM);
assert!(o.wall.reveals && !o.cut_hatch(None) && o.floor_finish(None).is_none() && o.terrain(None).is_none());
@@ -116,7 +116,7 @@ fn aufloesung_je_option_eigene_stufe() {
assert_eq!(o.door.swing_arc, Some(false));
assert!(!o.door.frame && o.door.leaf_rect);
assert!(!o.window.sash_symbols(None, None) && o.window.plan_swing_arcs(None, None) && o.window.sill && o.window.sash_frames);
assert_eq!(o.stair, StairOpts { walk_line: false, arrow: false, break_line: false, above_cut: false, handrail: None, section_beyond: true, run_start_mm: 0.0, run_end_mm: 0.0, start_mark: false, step_numbers: false });
assert_eq!(o.stair, StairOpts { walk_line: false, arrow: false, break_line: false, above_cut: false, handrail: None, section_beyond: true, run_start_mm: 0.0, run_end_mm: 0.0, start_mark: true, step_numbers: false });
assert_eq!(o.wall.layers, LayerMode::Core);
assert_eq!(o.wall.thin_mm, 0.8);
assert!(!o.wall.reveals && o.cut_hatch(None));
+3 -2
View File
@@ -337,12 +337,13 @@ fn lauflinie_versatz_und_antrittspunkt() {
};
let (l0, n0) = run(&p);
assert!(l0 > 0.0);
let mut q = with_mv(p.clone(), serde_json::json!({"stairs": {"runStartMm": 2, "runEndMm": 3, "startMark": true}}));
// [328] Antrittspunkt ist Vorgabe (SIA 400); die Stufe schaltet ihn ab.
let mut q = with_mv(p.clone(), serde_json::json!({"stairs": {"runStartMm": 2, "runEndMm": 3, "startMark": false}}));
set_level_mv(&mut q, "eg", "mv");
let (l1, n1) = run(&q);
// 2 + 3 mm Papier bei 1:50 = 0.25 m kürzer.
assert!((l0 - l1 - 0.25).abs() < 1e-6, "Versatz ({l0} → {l1})");
assert_eq!(n1, n0 + 1, "Antrittspunkt");
assert_eq!(n1 + 1, n0, "Antrittspunkt");
}
/// Sample mit dem Standard-Steildach (Holz gedämmt) auf RF1 und den Standard-Baustoffen.
+28
View File
@@ -534,6 +534,34 @@ export const de = {
"objinfo.kind.roof": "Dach",
"objinfo.kind.contextObject": "Gelände/Umgebung",
"objinfo.kind.buildingMesh": "Importierter Körper",
"objinfo.multi": "{n} Elemente gewählt: {list}",
"objinfo.multi.hint": "Die Felder zeigen das erste Element; Klasse, Farbe und Strichstärke gelten für alle gewählten.",
"objinfo.multi.kind.walls": "Wände",
"objinfo.multi.kind.walls.one": "Wand",
"objinfo.multi.kind.drawings": "2D-Objekte",
"objinfo.multi.kind.drawings.one": "2D-Objekt",
"objinfo.multi.kind.ceilings": "Decken",
"objinfo.multi.kind.ceilings.one": "Decke",
"objinfo.multi.kind.openings": "Türen/Fenster",
"objinfo.multi.kind.openings.one": "Tür/Fenster",
"objinfo.multi.kind.stairs": "Treppen",
"objinfo.multi.kind.stairs.one": "Treppe",
"objinfo.multi.kind.rooms": "Räume",
"objinfo.multi.kind.rooms.one": "Raum",
"objinfo.multi.kind.solids": "Körper",
"objinfo.multi.kind.solids.one": "Körper",
"objinfo.multi.kind.columns": "Stützen/Träger",
"objinfo.multi.kind.columns.one": "Stütze/Träger",
"objinfo.multi.kind.roofs": "Dächer",
"objinfo.multi.kind.roofs.one": "Dach",
"objinfo.multi.kind.contextObjects": "Umgebungs-Elemente",
"objinfo.multi.kind.contextObjects.one": "Umgebungs-Element",
"objinfo.multi.kind.trees": "Bäume",
"objinfo.multi.kind.trees.one": "Baum",
"objinfo.multi.kind.cameras": "Kameras",
"objinfo.multi.kind.cameras.one": "Kamera",
"objinfo.multi.kind.railings": "Geländer",
"objinfo.multi.kind.railings.one": "Geländer",
"objinfo.kind.sunStudy": "Schatten (Sonnenstand)",
"objinfo.kind.siteRules": "Baurecht",
"objinfo.kind.viewShadows": "Schlagschatten (Ansicht)",
+28
View File
@@ -532,6 +532,34 @@ export const en: Record<TranslationKey, string> = {
"objinfo.kind.roof": "Roof",
"objinfo.kind.contextObject": "Site element",
"objinfo.kind.buildingMesh": "Imported body",
"objinfo.multi": "{n} elements selected: {list}",
"objinfo.multi.hint": "The fields show the first element; class, color and line weight apply to all selected.",
"objinfo.multi.kind.walls": "walls",
"objinfo.multi.kind.walls.one": "wall",
"objinfo.multi.kind.drawings": "2D objects",
"objinfo.multi.kind.drawings.one": "2D object",
"objinfo.multi.kind.ceilings": "slabs",
"objinfo.multi.kind.ceilings.one": "slab",
"objinfo.multi.kind.openings": "doors/windows",
"objinfo.multi.kind.openings.one": "door/window",
"objinfo.multi.kind.stairs": "stairs",
"objinfo.multi.kind.stairs.one": "stair",
"objinfo.multi.kind.rooms": "rooms",
"objinfo.multi.kind.rooms.one": "room",
"objinfo.multi.kind.solids": "solids",
"objinfo.multi.kind.solids.one": "solid",
"objinfo.multi.kind.columns": "columns/beams",
"objinfo.multi.kind.columns.one": "column/beam",
"objinfo.multi.kind.roofs": "roofs",
"objinfo.multi.kind.roofs.one": "roof",
"objinfo.multi.kind.contextObjects": "site objects",
"objinfo.multi.kind.contextObjects.one": "site object",
"objinfo.multi.kind.trees": "trees",
"objinfo.multi.kind.trees.one": "tree",
"objinfo.multi.kind.cameras": "cameras",
"objinfo.multi.kind.cameras.one": "camera",
"objinfo.multi.kind.railings": "railings",
"objinfo.multi.kind.railings.one": "railing",
"objinfo.kind.sunStudy": "Shadow (sun position)",
"objinfo.kind.siteRules": "Building regulations",
"objinfo.kind.viewShadows": "Cast shadow (elevation)",
+1 -1
View File
@@ -2755,7 +2755,7 @@ export type ModelViewStairs = {
runStartMm?: number;
/** Versatz der Lauflinie am Ende in Papier-mm (Basis 0: bis zur Austrittskante). */
runEndMm?: number;
/** Antrittspunkt am Anfang der Lauflinie (Basis: nein). */
/** Antrittspunkt am Anfang der Lauflinie (Basis: ja, SIA 400). */
startMark?: boolean;
/** [173] Stufennummern im Grundriss (Basis: nein). */
stepNumbers?: boolean;
+15 -4
View File
@@ -27,6 +27,7 @@ import { Dropdown } from "../ui/Dropdown";
import { usePanelHost } from "./host";
import { useStore } from "../state/appStore";
import { excavationQuantities } from "../core";
import { selectionCounts } from "../state/selectionCategory";
import { ContextObjectProps } from "./ContextObjectProps";
import { SunStudySection } from "./SunStudySection";
import { SiteRulesSection } from "./SiteRulesSection";
@@ -60,10 +61,6 @@ function toDeg360(rad: number): number {
}
/**
* `showPlacement` = false: ohne Bezugspunkt/Lage und Masse (Breite/Höhe/Drehen) — so zeigt sie das Fenster
* Objekteinstellungen ([218], Wunsch Maintainer: Platzierung und Masse gehören nur ins Objekt-Info-Panel).
*/
/** [328] Liegt die Klasse `code` unter „05 Kontext“ (oder ist sie es)? Umgebung statt Gebäude. */
function isContextCode(layers: readonly LayerCategory[], code: string): boolean {
const ctx = layers.find((c) => c.code === "05");
@@ -71,12 +68,17 @@ function isContextCode(layers: readonly LayerCategory[], code: string): boolean
return code === "05" || flattenCategories([ctx]).some((c) => c.code === code);
}
/**
* `showPlacement` = false: ohne Bezugspunkt/Lage und Masse (Breite/Höhe/Drehen) — so zeigt sie das Fenster
* Objekteinstellungen ([218], Wunsch Maintainer: Platzierung und Masse gehören nur ins Objekt-Info-Panel).
*/
export function ObjectInfoPanel({ showPlacement = true }: { showPlacement?: boolean } = {}) {
const host = usePanelHost();
const storeProject = useStore((st) => st.project);
// [121] Abschnitts-Rahmen ohne eigene Komponente (kein Render je Abschnitt bei Inhaltsänderung).
const gst = useInfoGroupState();
const sel = useSelectionInfo();
const allSel = useStore((s) => s.selection);
// Gewählter Bezugspunkt — Default Mitte (Vectorworks-Standardanker beim
// Skalieren). Bleibt erhalten, solange das Panel montiert ist.
@@ -131,6 +133,9 @@ export function ObjectInfoPanel({ showPlacement = true }: { showPlacement?: bool
);
}
const counts = selectionCounts(allSel);
const total = counts.reduce((n, x) => n + x.n, 0);
const multi = total > 1 ? { total, list: counts.map((x) => `${x.n} ${t(`objinfo.multi.kind.${x.kind}${x.n === 1 ? ".one" : ""}`)}`).join(", ") } : null;
const { bbox } = sel;
const elementDims = elementDimensions(sel);
const width = bbox.maxX - bbox.minX;
@@ -174,6 +179,12 @@ export function ObjectInfoPanel({ showPlacement = true }: { showPlacement?: bool
{/* Kopfzeile: Typ + editierbare Klasse (Grafik-Kategorie) + Zeichnungsebene
(VW-Muster „Klasse"/„Ebene"). */}
<div className="objinfo-head">
{multi && (
// [287] (6) Mehrfachauswahl: wie viele und welche; die Felder zeigen das erste Element, die Klasse gilt für alle.
<div className="objinfo-multi" data-testid="objinfo-multi" title={t("objinfo.multi.hint")}>
{t("objinfo.multi", { n: multi.total, list: multi.list })}
</div>
)}
<span className="objinfo-kind">
{/* [328] Importiertes Netz auf einer Gebäudeklasse (Archicad-Morph, Möbel …) ist kein Gelände. */}
{sel.kind === "contextObject" && sel.contextObject?.objType === "importedMesh" && !isContextCode(storeProject.layers, sel.categoryCode)
+6 -2
View File
@@ -16,6 +16,7 @@ import { t } from "../i18n";
import { usePanelHostAction, usePanelHostSelect } from "./host";
import type { ToolId } from "./host";
import { toolInfo } from "../tools/tools";
import { toolShortcutLabel } from "../state/keyboardShortcuts";
import { getCommand } from "../commands/registry";
import { CommandIcon } from "../ui/ribbon/CommandIcon";
@@ -422,13 +423,16 @@ export const ToolsPanel = memo(function ToolsPanel() {
const active = host.activeTool === id;
const disabled = !!tool.floorOnly && !host.toolsEnabled;
const label = t(tool.labelKey);
const title = disabled ? t("tool.floorOnlyDisabled") : t(tool.hintKey);
// [287] (12) Kürzel im Tooltip („Linie (L)“), damit man es beim Überfahren lernt.
const key = toolShortcutLabel(id);
const withKey = (s: string) => (key ? `${s} (${key})` : s);
const title = disabled ? t("tool.floorOnlyDisabled") : withKey(t(tool.hintKey));
return (
<button
key={id}
type="button"
className={"tp-item" + (active ? " active" : "") + (disabled ? " disabled" : "")}
title={view === "icons" ? label : title}
title={view === "icons" ? withKey(label) : title}
disabled={disabled}
onClick={() => onSelectTool(id)}
>
@@ -1,6 +1,6 @@
viewBox -41.5 0 95 64.4
bytes 67497
circle 16
bytes 67684
circle 18
g 1
line 135
path 36
@@ -10,4 +10,4 @@ rect 1
svg 1
text 112
tspan 25
hash 4c8e70ff64f0e99f
hash ddbe47666be2997b
@@ -1,6 +1,6 @@
viewBox -41.5 0 95 64.4
bytes 109498
circle 16
bytes 109687
circle 18
g 1
line 347
path 55
@@ -10,4 +10,4 @@ rect 1
svg 1
text 112
tspan 25
hash a804216dc5e278de
hash 653b8a39c026178d
@@ -1,6 +1,6 @@
viewBox -13.448 0 38.615 33.813
bytes 43019
circle 14
bytes 43114
circle 15
g 1
line 108
path 10
@@ -10,4 +10,4 @@ rect 1
svg 1
text 81
tspan 18
hash 602612ae9e29b19d
hash 0334ef31acd6d3a2
@@ -1,6 +1,6 @@
viewBox -12.974 0 37.808 33.406
bytes 353606
circle 14
bytes 353703
circle 15
g 1
line 3244
path 26
@@ -10,4 +10,4 @@ rect 1
svg 1
text 81
tspan 18
hash f024c8739931ecf9
hash 1197a476e1d92d19
@@ -1,6 +1,6 @@
viewBox -13.693 0 38.86 33.813
bytes 41839
circle 16
bytes 41933
circle 17
g 1
line 99
path 23
@@ -10,4 +10,4 @@ rect 1
svg 1
text 69
tspan 15
hash f131d64fdd40ad29
hash f0facbdfc6ebd276
@@ -1,6 +1,6 @@
viewBox -13.693 0 38.527 33.406
bytes 49293
circle 16
bytes 49389
circle 17
g 1
line 94
path 36
@@ -10,4 +10,4 @@ rect 1
svg 1
text 69
tspan 15
hash 30c495bd4bb540d7
hash 0a8b71604aae6e9a
@@ -1,5 +1,6 @@
viewBox -1.621 0 8.242 7.535
bytes 5568
bytes 5660
circle 1
g 1
line 16
polygon 19
@@ -8,4 +9,4 @@ rect 1
svg 1
text 5
tspan 2
hash aa7787a19c497fbc
hash 67bb8edfc21fb658
@@ -1,5 +1,6 @@
viewBox -1.56 0 8.121 7.354
bytes 9150
bytes 9243
circle 1
g 1
line 17
polygon 49
@@ -8,4 +9,4 @@ rect 1
svg 1
text 5
tspan 2
hash c85802c3265720ba
hash 5573d1ca99ede3a8
@@ -1,5 +1,6 @@
viewBox -1.621 0 8.242 7.763
bytes 4121
bytes 4211
circle 1
g 1
line 18
polygon 15
@@ -7,4 +8,4 @@ polyline 2
rect 1
svg 1
text 3
hash 936e546160c97d00
hash 66eef319f17699b8
@@ -1,5 +1,6 @@
viewBox -1.56 0 8.121 7.581
bytes 6177
bytes 6268
circle 1
g 1
line 18
polygon 33
@@ -7,4 +8,4 @@ polyline 2
rect 1
svg 1
text 3
hash 1d301343498bce1b
hash e5de16e6ae4a23a0
+11
View File
@@ -15,6 +15,7 @@ import {
resolveCombo,
SHORTCUT_DEFS,
type ShortcutOverrides,
toolShortcutLabel,
} from "./keyboardShortcuts";
// Reines Objekt statt `new KeyboardEvent(...)` — Letzteres braucht ein DOM
@@ -223,3 +224,13 @@ describe("[170] Datei-Kürzel ausserhalb von Tauri (Browser/Electron-Linux)", ()
for (const c of ["mod+s", "mod+shift+s", "mod+o"]) expect(combos).not.toContain(c);
});
});
describe("toolShortcutLabel", () => {
// [287] (12) Werkzeug-Tooltips mit Kürzel; Übersteuerung gilt, Werkzeug ohne Kürzel `null`.
it("zeigt das wirksame Kürzel", () => {
const def = toolShortcutLabel("wall", {});
expect(def).toBeTruthy();
expect(toolShortcutLabel("wall", { toolWall: "shift+w" })).toMatch(/W$/);
expect(toolShortcutLabel("gibts-nicht", {})).toBeNull();
});
});
+21
View File
@@ -422,3 +422,24 @@ export function formatCombo(combo: string, mac: boolean = isMacPlatform()): stri
segs.push(keyLabel);
return segs.join(mac ? "" : "+");
}
/** Reihenfolge/Zuordnung Ziffer→Werkzeug — Ids der rebindbaren Kombination in `keyboardShortcuts.ts`. */
export const TOOL_SHORTCUT_IDS: { id: ShortcutId; tool: string }[] = [
{ id: "toolText", tool: "text" },
{ id: "toolLine", tool: "line" },
{ id: "toolCircle", tool: "circle" },
{ id: "toolRect", tool: "rect" },
{ id: "toolPolyline", tool: "polyline" },
{ id: "toolWall", tool: "wall" },
{ id: "toolCeiling", tool: "ceiling" },
{ id: "toolWindow", tool: "window" },
{ id: "toolDoor", tool: "door" },
{ id: "toolRoom", tool: "room" },
];
/** [287] (12) Tastenkürzel eines Werkzeugs zur Anzeige (Tooltip „Linie (L)“), mit Übersteuerung; ohne Kürzel `null`. */
export function toolShortcutLabel(tool: string, overrides: ShortcutOverrides = loadShortcutOverrides()): string | null {
const m = TOOL_SHORTCUT_IDS.find((x) => x.tool === tool);
const combo = m ? resolveCombo(m.id, overrides) : "";
return combo ? formatCombo(combo) : null;
}
@@ -6,6 +6,7 @@
import { applyFillMode } from "../fillMode";
import { cmdMutation, opsMutation, patchItem, patchItems } from "../../core";
import { getState } from "../appStore";
import { categoryOpsForSelection, selectionCounts } from "../selectionCategory";
import { STYLE_KINDS } from "../mixedValues";
import { resolvePenColor } from "../../model/penSets";
import type { TransformSelection } from "../../tools/transform";
@@ -355,6 +356,12 @@ export function buildSelectionStyleHost(c: FlatHostOpts) {
// (VW-Muster „Klasse"/„Ebene"). Je Elementart der passende Store-Weg.
onSetSelectionCategory: (code) => {
if (!selection || !code) return;
// [287] (6) Mehrfachauswahl: Klasse für alle gewählten Elemente, ein Undo-Schritt (Vectorworks-Muster).
const all = getState().selection;
if (selectionCounts(all).reduce((n, x) => n + x.n, 0) > 1) {
applyChange((p) => categoryOpsForSelection(p, all, code));
return;
}
const id = selection.id;
switch (selection.kind) {
case "wall": updateWall(id, { categoryCode: code }); break;
+19
View File
@@ -0,0 +1,19 @@
import { describe, expect, it } from "vitest";
import { applyOps } from "../core/ops";
import { sampleProject } from "../model/sampleProject";
import { emptySelection } from "./selection";
import { categoryOpsForSelection, selectionCounts } from "./selectionCategory";
describe("categoryOpsForSelection", () => {
// [287] (6) Klasse im Objekt-Info-Kopf gilt für die ganze Auswahl, nicht nur für das erste Element.
it("setzt die Klasse für alle gewählten Wände und Öffnungen", () => {
const p = sampleProject;
const walls = p.walls.slice(0, 2).map((w) => w.id);
const op = (p.openings ?? [])[0].id;
const sel = { ...emptySelection(), walls, openings: [op] };
const next = applyOps(p, categoryOpsForSelection(p, sel, "99"));
expect(next.walls.filter((w) => w.categoryCode === "99").map((w) => w.id)).toEqual(walls);
expect(next.openings?.find((o) => o.id === op)?.categoryCode).toBe("99");
expect(selectionCounts(sel)).toEqual([{ kind: "walls", n: 2 }, { kind: "openings", n: 1 }]);
});
});
+40
View File
@@ -0,0 +1,40 @@
// [287] (6) Objekt-Info bei Mehrfachauswahl (Vectorworks-Muster): die Klasse im Kopf gilt für ALLE gewählten Elemente,
// ein Undo-Schritt; dazu die Zusammenfassung „3 Elemente (2 Wände, 1 Tür)“ für den Kopf.
import type { CoreOp } from "../core";
import { patchItems } from "../core";
import type { Project } from "../model/types";
import type { Selection } from "./selection";
/** Auswahl-Art → Sammlungen im Projekt (der Kanal „columns“ trägt Stützen UND Träger). */
const KIND_COLLECTIONS = [
["walls", ["walls"]],
["drawings", ["drawings2d"]],
["ceilings", ["ceilings"]],
["openings", ["openings"]],
["stairs", ["stairs"]],
["rooms", ["rooms"]],
["solids", ["extrudedSolids"]],
["columns", ["columns", "beams"]],
["roofs", ["roofs"]],
["contextObjects", ["context"]],
["trees", ["trees"]],
["cameras", ["cameras"]],
["railings", ["railings"]],
] as const;
/** Ops: Klasse `code` für jedes gewählte Element (ohne Änderung, wo sie schon gilt). */
export function categoryOpsForSelection(p: Project, sel: Selection, code: string): CoreOp[] {
const ops: CoreOp[] = [];
for (const [kind, collections] of KIND_COLLECTIONS) {
const ids = sel[kind];
if (!ids?.length) continue;
for (const col of collections) ops.push(...patchItems(p, col, ids, (e) => ({ ...e, categoryCode: code })));
}
return ops;
}
/** Anzahl gewählter Modell-Elemente je Auswahl-Art (ohne Gruppen, Schnittlinien, Lage-Darstellung). */
export function selectionCounts(sel: Selection): { kind: (typeof KIND_COLLECTIONS)[number][0]; n: number }[] {
return KIND_COLLECTIONS.map(([kind]) => ({ kind, n: sel[kind]?.length ?? 0 })).filter((x) => x.n > 0);
}
+2 -15
View File
@@ -32,7 +32,7 @@ import {
} from "../editors/elementClipboard";
import type { ElementClipboard, ElementSelectionIds, PastedIds } from "../editors/elementClipboard";
import { parseClipboardText, serializeClipboardText } from "../editors/elementClipboardSerialize";
import { SHORTCUT_DEFS, fileShortcutFor, matchesShortcut, tabKeyAction, type FileShortcut, type ShortcutId, type ShortcutOverrides } from "./keyboardShortcuts";
import { SHORTCUT_DEFS, TOOL_SHORTCUT_IDS, fileShortcutFor, matchesShortcut, tabKeyAction, type FileShortcut, type ShortcutOverrides } from "./keyboardShortcuts";
import { isPrimaryMod } from "./platform";
import { isTauriRuntime } from "../native/projectFile";
import { isolateSelectionLayerCodes, showAllLayerCodes } from "./layerIsolate";
@@ -175,19 +175,6 @@ export function useCommandTabShortcut(
* Ebenen-Art über ein Ref (sonst müsste der Effekt bei jedem Render neu
* registrieren).
*/
/** Reihenfolge/Zuordnung Ziffer→Werkzeug — Ids der rebindbaren Kombination in `keyboardShortcuts.ts`. */
const TOOL_SHORTCUT_IDS: { id: ShortcutId; tool: ToolId }[] = [
{ id: "toolText", tool: "text" },
{ id: "toolLine", tool: "line" },
{ id: "toolCircle", tool: "circle" },
{ id: "toolRect", tool: "rect" },
{ id: "toolPolyline", tool: "polyline" },
{ id: "toolWall", tool: "wall" },
{ id: "toolCeiling", tool: "ceiling" },
{ id: "toolWindow", tool: "window" },
{ id: "toolDoor", tool: "door" },
{ id: "toolRoom", tool: "room" },
];
export function useToolNumberShortcuts(
onSelectTool: (id: ToolId) => void,
@@ -228,7 +215,7 @@ export function useToolNumberShortcuts(
if (!match) return;
if (!toolShortcutRef.current.floor) return; // Werkzeuge nur auf Geschossen
e.preventDefault();
toolShortcutRef.current.onSelectTool(match.tool);
toolShortcutRef.current.onSelectTool(match.tool as ToolId);
};
window.addEventListener("keydown", onKey);
return () => window.removeEventListener("keydown", onKey);
+8
View File
@@ -5507,6 +5507,7 @@ body {
}
.objinfo-head {
display: flex;
flex-wrap: wrap;
align-items: baseline;
justify-content: space-between;
gap: 8px;
@@ -5515,6 +5516,13 @@ body {
font-weight: 600;
color: var(--label);
}
/* [287] (6) Mehrfachauswahl: Zeile über der Art, ganze Breite. */
.objinfo-multi {
flex-basis: 100%;
font-size: 11px;
color: var(--muted);
padding: 2px 0 4px;
}
.objinfo-cat {
color: var(--muted);
font-size: 11px;