Merge [276] Schnitt- und Ansichtslinien: Linie, Marke, Lage und Beschriftung einstellbar

This commit is contained in:
Claude committed 2026-11-17 20:55:42 +00:00
commit 4b7a85dacd
20 files changed
+1114 -180

No files matched your search

+10 -1
View File
@@ -33,6 +33,7 @@ export type ModelViewSection =
| "elevation"
| "site"
| "sectionMarks"
| "elevationMarks"
| "roomStamps"
| "dimensions"
| "situation";
@@ -210,7 +211,15 @@ 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"] },
{ section: "sectionMarks", key: "lineMode", values: ["full", "ends", "none"] },
{ section: "sectionMarks", key: "endLengthMm", values: [6, 9, 12, 15, 20] },
{ section: "sectionMarks", key: "marker", values: ["arrow", "lAngle", "triangle", "none"] },
{ section: "sectionMarks", key: "markerAt", values: ["both", "start", "end"] },
{ section: "sectionMarks", key: "markerLabel", values: "bool" },
{ section: "elevationMarks", key: "lineMode", values: ["full", "ends", "none"] },
{ section: "elevationMarks", key: "endLengthMm", values: [6, 9, 12, 15, 20] },
{ section: "elevationMarks", key: "marker", values: ["triangle", "arrow", "none"] },
{ section: "elevationMarks", key: "markerLabel", values: "bool" },
{ section: "roomStamps", key: "number", values: "bool" },
{ section: "roomStamps", key: "area", values: "bool" },
{ section: "roomStamps", key: "usage", values: "bool" },
+6 -1
View File
@@ -258,8 +258,13 @@ export function buildElementAttributesHost(c: FlatHostOpts) {
},
// ── Schnitt-/Ansichtslinie (nur bei selektierter Linie) ────────────────
sectionLine,
// Mehrfachauswahl ([276]): die Änderung trifft alle gewählten Schnitt-/Ansichtslinien, ein Undo-Schritt.
onSetSectionLinePatch: (patch) => {
if (sectionLine) patchLevel(sectionLine.id, patch);
if (!sectionLine) return;
const ids = getState().selection.sectionLines;
if (ids.length > 1 && ids.includes(sectionLine.id)) {
applyChange((p) => patchItems(p, "drawingLevels", ids, (l) => ({ ...l, ...patch })));
} else patchLevel(sectionLine.id, patch);
},
onDeleteSectionLine: () => {
if (sectionLine) patchLevel(sectionLine.id, { linePoints: undefined });
+2 -1
View File
@@ -45,7 +45,8 @@ export function useSelectionState() {
selectedWallId: selection.walls[0] ?? null,
selectedDrawingId: single(selection, "drawings"),
selectedCeilingId: single(selection, "ceilings"),
selectedSectionLineId: single(selection, "sectionLines"),
// Bei Mehrfachauswahl zeigt die Objekt-Info die erste Linie; Änderungen treffen alle ([276]).
selectedSectionLineId: selection.sectionLines[0] ?? null,
selectedRoomId: single(selection, "rooms"),
elementClipboard,
setElementClipboard,