Merge branch 'worktree-agent-a393753346e69ff4e' into claude/practical-noether-1hb2s1
# Conflicts: # src/plan/__golden__/komplex-grundriss-eg-100.txt # src/plan/__golden__/komplex-grundriss-og-100.txt # src/plan/__golden__/komplex-grundriss-og-50.txt # src/plan/__golden__/komplex-grundriss-ug-100.txt # src/plan/__golden__/muster-grundriss-eg-100.txt
This commit is contained in:
31 files changed
+459
-83
No files matched your search
@@ -51,7 +51,7 @@ import { StairSection } from "./objectInfo/StairSection";
|
||||
import { RoomSection } from "./objectInfo/RoomSection";
|
||||
import { ExtrudedSolidSection, ColumnSection } from "./objectInfo/SolidSections";
|
||||
import { SectionLineSection } from "./objectInfo/SectionLineSection";
|
||||
import { DetailRefSection, DimRefsSection } from "./objectInfo/RefSections";
|
||||
import { DetailRefSection, DimRefsSection, DimTextSection } from "./objectInfo/RefSections";
|
||||
import { SurfacePatternPlacement } from "./SurfacePatternPlacement";
|
||||
|
||||
/** UI-Zustand des 3-Optionen-Quellen-Dropdowns (nicht 1:1 das Modell-Feld:
|
||||
@@ -869,6 +869,7 @@ export function AttributesPanel() {
|
||||
{sel.column && <ColumnSection column={sel.column} host={host} />}
|
||||
{sel.detailRef && <DetailRefSection detailRef={sel.detailRef} drawingId={sel.id} host={host} />}
|
||||
{sel.dimRefs && <DimRefsSection refs={sel.dimRefs} drawingId={sel.id} host={host} />}
|
||||
{sel.dimTextMoved && <DimTextSection drawingId={sel.id} host={host} />}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -285,6 +285,8 @@ export interface PanelHostValue {
|
||||
onSetDetailRefSheetLabel: (drawingId: string, sheetLabel: string) => void;
|
||||
/** „Bemassung lösen" ([38]): Bezüge der Bemassung entfernen, Punkte bleiben. */
|
||||
onDetachDimension: (drawingId: string) => void;
|
||||
/** „Text zurücksetzen" ([172]): Masszahlen der Bemassung zurück auf die Vorgabe (mittig). */
|
||||
onResetDimensionText: (drawingId: string) => void;
|
||||
onSetHatchPlacement: (
|
||||
drawingId: string,
|
||||
patch: { angleDeg?: number | null; scale?: number | null; origin?: Vec2 | null },
|
||||
|
||||
@@ -47,6 +47,21 @@ export function DimRefsSection({
|
||||
}
|
||||
|
||||
|
||||
// ── Masszahl ([172]) ─────────────────────────────────────────────────────────
|
||||
// Vorgabe: mittig über dem Massstrich; eine verschobene Zahl lässt sich dorthin zurücksetzen.
|
||||
export function DimTextSection({ drawingId, host }: { drawingId: string; host: ReturnType<typeof usePanelHost> }) {
|
||||
return (
|
||||
<>
|
||||
<div className="objinfo-sep" />
|
||||
<div className="objinfo-field">
|
||||
<button type="button" className="objinfo-btn" onClick={() => host.onResetDimensionText(drawingId)}>
|
||||
{t("cmd.dimtextreset.label")}
|
||||
</button>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
// ── Detail-/Schnitt-Verweis-Attribut-Abschnitt ──────────────────────────────
|
||||
// Bezeichner (obere Zeile) + Blattverknüpfung (Dropdown der Project.layouts,
|
||||
// „kein Verweis" löst sie); ohne Verknüpfung zusätzlich ein manueller
|
||||
|
||||
Reference in new issue
Block a user