[193] Gelände & Co.: Höhen-Befehle im Kern, Maus-Ziehen für Kontext-Elemente, Höhenlinien-Punkte als Griffe, Entf auf Ansichts-Schlagschatten

This commit is contained in:
Claude committed 2026-11-11 23:10:13 +00:00
1 parent c6dd5ce91d
commit 9200eb4efe
24 files changed
+530 -71

No files matched your search

+1
View File
@@ -321,6 +321,7 @@ export const PlanView = forwardRef<PlanViewHandle, PlanViewProps>(
selectedCeilingIds,
selectedStairIds,
selectedWallIds,
selectedContextObjectIds,
selectedDrawingIds,
selectedDrawingId,
getUnderlayIds,
+3
View File
@@ -430,6 +430,8 @@ export interface BodyTarget {
ceilingId?: string;
/** Nur im Schnitt/in der Ansicht (`sheetBodies`). */
stairId?: string;
/** [193] Gelände-/Umgebungs-Elemente (alle gewählten, das gegriffene liegt darunter). */
contextIds?: string[];
}
export interface GripHandlers {
@@ -445,6 +447,7 @@ export interface GripHandlers {
delta: Vec2,
target?: BodyTarget,
mods?: ToolMods,
pxPerMeter?: number,
): void;
/**
* Eine SEITE (Kante) ziehen: verschiebt beide Vertices der Kante senkrecht
@@ -34,6 +34,7 @@ export interface UsePlanPickingArgs {
selectedCeilingIds: string[];
selectedStairIds: string[];
selectedWallIds: string[];
selectedContextObjectIds: string[];
selectedDrawingIds: string[];
selectedDrawingId: string | null;
getUnderlayIds: () => Map<string, UnderlayGroup> | null;
@@ -58,6 +59,7 @@ export function usePlanPicking(inp: UsePlanPickingArgs) {
selectedCeilingIds,
selectedStairIds,
selectedWallIds,
selectedContextObjectIds,
selectedDrawingIds,
selectedDrawingId,
getUnderlayIds,
@@ -375,6 +377,11 @@ export function usePlanPicking(inp: UsePlanPickingArgs) {
const id = pickDrawing(clientX, clientY);
if (id && selDraws.has(id)) return { drawingId: id };
}
// [193] Gewähltes Gelände-/Umgebungs-Element unter dem Cursor: alle gewählten Kontext-Elemente ziehen mit.
if (selectedContextObjectIds.length) {
const sel = new Set(selectedContextObjectIds);
if (contextIdsAt(clientX, clientY).some((id) => sel.has(id))) return { contextIds: selectedContextObjectIds };
}
return null;
};
+1 -1
View File
@@ -474,7 +474,7 @@ export function usePlanPointer(inp: UsePlanPointerArgs) {
if (md && md.pointerId === p.pointerId) {
const delta = { x: raw.x - md.last.x, y: raw.y - md.last.y };
if (delta.x !== 0 || delta.y !== 0) {
gripHandlers!.onMoveBody(delta, md.target, mods);
gripHandlers!.onMoveBody(delta, md.target, mods, currentPxPerMeter());
md.last = raw;
}
return;