[123] Transformation nur noch über die Befehls-Engine, alte Werkzeug-Registry gestrichen
Bewegen/Drehen/Spiegeln laufen als Engine-Befehle (commands/cmds/transform.ts) mit den Abläufen der früheren App-Maschine (activeTransform): U/I/O/P-Kopiermodus, Distanz-/Winkelfeld, Dreh-Darstellung, Enter = Punkt an der Maus, Esc/Esc-Esc nach [99]. Knopf, Menü, Tasten m/s/d und getippter Befehl starten denselben Befehl. tools/tools.ts ist nur noch die Werkzeug-Liste; commitTransform (nur von Tests genutzt) entfällt. Neuer e2e-Test transform.spec.ts.
This commit is contained in:
21 files changed
+690
-1896
No files matched your search
@@ -8,10 +8,16 @@
|
||||
*/
|
||||
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { commitTransform, rotateGizmoShapes, transformPreview } from "./transform";
|
||||
import type { TransformSelection } from "./transform";
|
||||
import { rotateGizmoShapes, transformOps, transformPreview } from "./transform";
|
||||
import type { CopyMode, TransformOp, TransformSelection } from "./transform";
|
||||
import { applyOps } from "../core";
|
||||
import type { Ceiling, Drawing2D, ExtrudedSolid, Project, Roof, Room, Stair } from "../model/types";
|
||||
|
||||
/** Transformation über die Kern-Ops anwenden (wie der Befehl beim Commit). */
|
||||
function commitTransform(p: Project, sel: TransformSelection, op: TransformOp, pts: { x: number; y: number }[], mode: CopyMode, count: number): Project {
|
||||
return applyOps(p, transformOps(p, sel, op, pts, mode, count));
|
||||
}
|
||||
|
||||
function project(drawings: Drawing2D[]): Project {
|
||||
return {
|
||||
id: "t",
|
||||
|
||||
Reference in new issue
Block a user