[123] Spiegeln: Vorgabe Kopie (Original bleibt, wie AutoCAD/Rhino)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NTYBZBvLYCtugMJoKXaB67
This commit is contained in:
4 files changed
+9
-6
No files matched your search
@@ -125,10 +125,12 @@ describe("Transformations-Befehle", () => {
|
||||
engine.move({ x: 1, y: 1 });
|
||||
engine.confirm();
|
||||
expect(engine.isActive()).toBe(false);
|
||||
const g = lines(log.project)[0];
|
||||
// Vorgabe Kopie (wie AutoCAD/Rhino): Original bleibt, gespiegelte Kopie kommt dazu.
|
||||
const ls = lines(log.project);
|
||||
expect(ls).toHaveLength(2);
|
||||
const g = ls[1];
|
||||
expect(g.a.y).toBeCloseTo(2, 9);
|
||||
expect(g.b.y).toBeCloseTo(2, 9);
|
||||
expect(lines(log.project)).toHaveLength(1);
|
||||
});
|
||||
|
||||
it("Esc-Esc schnell bricht ab, nichts committet", () => {
|
||||
|
||||
@@ -136,7 +136,8 @@ export function makeTransformCommand(op: TransformCmdOp, labelKey: TranslationKe
|
||||
value: (m.id === "array" || m.id === "distribute") && s.sticky.copyMode === m.id ? `×${s.sticky.count}` : undefined,
|
||||
}));
|
||||
},
|
||||
init: () => stateOf([], null, { copyMode: "move", count: 1 }),
|
||||
// Spiegeln behält das Original (Kopie) wie AutoCAD/Rhino; mit U wird das Original gespiegelt.
|
||||
init: () => stateOf([], null, { copyMode: op === "mirror" ? "copy" : "move", count: 1 }),
|
||||
onInput: input,
|
||||
onMove: (state, point, _snap, ctx) => {
|
||||
const s = state as TrState;
|
||||
|
||||
Reference in new issue
Block a user