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

@@ -2192,6 +2192,12 @@ const LabelPage = ({
}
}
if (e.key === "F2") {
e.preventDefault()
paperContainerRef.current?.filterBySizeThreshold?.()
return
}
// 追踪
if (e.key === "i") {
e.preventDefault()
@@ -2585,6 +2591,9 @@ const LabelPage = ({
updateOldWorkLoad={updateOldWorkLoad}
isLabelTask={isLabelTask}
onOperationChange={handleSelectOperation}
onFilterBySizeThreshold={() => {
paperContainerRef.current?.filterBySizeThreshold?.()
}}
renderPolygons={
paperContainerRef.current
? paperContainerRef.current.renderPolygons