[K4][G10] Merge: Aufräumen (tote TS-/Rust-Doppelspuren), id-Index, Commit ohne Kopie, Punkttyp im Kern; Tests unter Last stabil
CLAUDE.md: Dokument im Kern, Modulkarte nachgeführt. Claude-Session: https://claude.ai/code/session_01NTYBZBvLYCtugMJoKXaB67
This commit is contained in:
53 files changed
+1293
-1043
No files matched your search
@@ -22,7 +22,7 @@ import {
|
||||
setField,
|
||||
setFieldIfChanged,
|
||||
} from "../core";
|
||||
import { withVertexType, type PolylineVertexType } from "../core";
|
||||
import type { PolylineVertexType } from "../core";
|
||||
import { sampleProject } from "../model/sampleProject";
|
||||
import {
|
||||
addChildByCode,
|
||||
@@ -218,7 +218,7 @@ export interface ProjectSlice {
|
||||
deleteDrawingPoint: (drawingId: string, index: number) => void;
|
||||
/**
|
||||
* Punkttyp eines Polylinien-Stützpunkts setzen (Eckpunkt/Bogenpunkt/Splinepunkt),
|
||||
* s. `geometry/polylineVertexType.ts` — rechnet nur die Bulges der beiden
|
||||
* im Kern (`polyline_vertex.rs`, Griff-Änderung `vertexType`) — rechnet nur die Bulges der beiden
|
||||
* anliegenden Segmente um.
|
||||
*/
|
||||
setPolylineVertexType: (drawingId: string, index: number, type: PolylineVertexType) => void;
|
||||
@@ -1055,15 +1055,7 @@ export function createProjectSlice(
|
||||
applyGrip({ op: "insertPoint", id: drawingId, seg: segIndex, pt: gripPt(pt) }),
|
||||
|
||||
setPolylineVertexType: (drawingId, index, type) =>
|
||||
applyChange((p) =>
|
||||
patchItem(p, "drawings2d", drawingId, (d) => {
|
||||
if (d.geom.shape !== "polyline" || d.locked) return d;
|
||||
const g = d.geom;
|
||||
const bulge = withVertexType(g, index, type);
|
||||
const { bulge: _old, ...rest } = g;
|
||||
return { ...d, geom: bulge.some((b) => b !== 0) ? { ...rest, bulge } : rest };
|
||||
}),
|
||||
),
|
||||
applyGrip({ op: "vertexType", id: drawingId, index, vertexType: type }),
|
||||
|
||||
deleteDrawingPoint: (drawingId, index) => applyGrip({ op: "deletePoint", id: drawingId, index }),
|
||||
|
||||
|
||||
Reference in new issue
Block a user