Merge commit '04d530d692e91c917e9b2626333619aa8cc374e2' into label

This commit is contained in:
zhangheng
2026-04-20 10:25:29 +08:00
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)
}