Update selection logic to include path points and adjust transform messages
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user