Merge branch 'worktree-agent-a6b600eecf6bd85ef' into claude/practical-noether-1hb2s1
# Conflicts: # src-tauri/core/src/plan/context.rs # src/plan/__golden__/komplex-ansicht-ansicht-sued.txt
This commit is contained in:
53 files changed
+680
-81
No files matched your search
@@ -346,7 +346,11 @@ export function buildSelectionStyleHost(c: FlatHostOpts) {
|
||||
case "contextObject":
|
||||
applyChange((p) => patchItem(p, "context", id, { categoryCode: code }));
|
||||
break;
|
||||
default: break; // extrudedSolid/door: keine Kategorie am Element
|
||||
// [180] Körper (Extrusion, B-Rep, Abzugskörper) tragen eine Klasse wie jedes Bauteil.
|
||||
case "extrudedSolid":
|
||||
applyChange((p) => patchItem(p, "extrudedSolids", id, { categoryCode: code }));
|
||||
break;
|
||||
default: break; // door: keine Kategorie am Element
|
||||
}
|
||||
},
|
||||
onSetSelectionLevel: (levelId) => {
|
||||
|
||||
@@ -53,7 +53,7 @@ describe("deriveSelection (Kern)", () => {
|
||||
const p = base();
|
||||
const lvl = p.drawingLevels[0].id;
|
||||
p.extrudedSolids = [
|
||||
{ id: "x", type: "extrudedSolid", levelId: lvl, points: [{ x: 0, y: 0 }, { x: 2, y: 0 }, { x: 2, y: 3 }], height: 2 },
|
||||
{ id: "x", type: "extrudedSolid", categoryCode: "20", levelId: lvl, points: [{ x: 0, y: 0 }, { x: 2, y: 0 }, { x: 2, y: 3 }], height: 2 },
|
||||
];
|
||||
const sel = deriveSelection(p, { solids: ["x"] })!;
|
||||
expect(sel.extrudedSolid!.area).toBeCloseTo(3, 12);
|
||||
|
||||
Reference in new issue
Block a user