feat(shortcut): area

This commit is contained in:
2026-04-20 09:36:34 +08:00
parent cad763d2a3
commit 04d530d692
8 changed files with 815 additions and 94 deletions

View File

@@ -688,7 +688,7 @@ const clearPathParentGroupMetadata = (
return changed
}
const syncDeletedPathGroupState = ({
export const syncDeletedPathGroupState = ({
imageId,
removedPathIds,
removedParentGroupIds,
@@ -866,6 +866,17 @@ const cleanupDeletedObjectItems = (
syncSelectedObjectsVisualState(imageId)
}
export const removePaperObjectById = (
imageId: string,
pathId?: number,
parentGroupId?: number,
options: {
pushState?: boolean
} = {}
) => {
cleanupDeletedObjectItems(imageId, pathId, parentGroupId, options)
}
const handleShift = (flag: boolean) => {
useKeyEventStore.getState().setShift(flag)
}