Merge [276] Schnitt- und Ansichtslinien: Linie, Marke, Lage und Beschriftung einstellbar
This commit is contained in:
20 files changed
+1114
-180
No files matched your search
+10
-1
@@ -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" },
|
||||
|
||||
@@ -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 });
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user