Update selection logic to include path points and adjust transform messages

This commit is contained in:
2026-04-13 22:26:18 +02:00
parent 57522886b1
commit 839314bcc5
3 changed files with 38 additions and 5 deletions

View File

@@ -6,7 +6,10 @@ import { cloneScenePath, type ScenePath } from "../document/paths";
import type { EditorCommand } from "./command";
function selectionIncludesPath(selection: EditorSelection, pathId: string): boolean {
return selection.kind === "paths" && selection.ids.includes(pathId);
return (
(selection.kind === "paths" && selection.ids.includes(pathId)) ||
(selection.kind === "pathPoint" && selection.pathId === pathId)
);
}
export function createDeletePathCommand(pathId: string): EditorCommand {