Update selection tracing to support multiple selected points (pointIds)

This commit is contained in:
2026-05-12 22:11:02 +02:00
parent 8e1836ef13
commit cb1f2f398f

View File

@@ -29,6 +29,7 @@ interface UpdateLoopSelection {
vertexId?: string; vertexId?: string;
pathId?: string; pathId?: string;
pointId?: string; pointId?: string;
pointIds?: readonly string[];
} }
const TRACE_WINDOW_MS = 1000; const TRACE_WINDOW_MS = 1000;
@@ -180,6 +181,12 @@ export function summarizeUpdateLoopSelection(
pathId: selection.pathId ?? null, pathId: selection.pathId ?? null,
pointId: selection.pointId ?? null pointId: selection.pointId ?? null
}; };
case "pathPoints":
return {
kind: selection.kind,
pathId: selection.pathId ?? null,
pointIds: summarizeStringList(selection.pointIds ?? [])
};
default: default:
return { return {
kind: selection.kind, kind: selection.kind,