feat(tool): eclipse

This commit is contained in:
zhangheng
2026-04-09 18:21:12 +08:00
parent d1fac5d158
commit d6183a0036
5 changed files with 210 additions and 8 deletions

View File

@@ -267,6 +267,7 @@ const LabelPage = ({
setShowMultiFrame,
isView,
setIsView,
renderMode,
scale,
setScale,
objectOperations,
@@ -1307,8 +1308,8 @@ const LabelPage = ({
)
const setDrawType = useCallback(() => {
if (isView) {
setPaperMode("pan")
if (isView || renderMode) {
setPaperMode(null)
} else {
let operationSchema = getOperationSchema(activeOperation)
if (operationSchema) {
@@ -1371,6 +1372,7 @@ const LabelPage = ({
editMode,
getOperationSchema,
isView,
renderMode,
setPaperMode,
setToolOption,
])
@@ -2117,7 +2119,7 @@ const LabelPage = ({
return
}
if (isView) return
if (isView || renderMode) return
if (!e.ctrlKey && !e.metaKey && !e.altKey && lowerKey === "h") {
e.preventDefault()
@@ -2426,6 +2428,7 @@ const LabelPage = ({
handleContinueSelectedPolygon,
handleShortcut,
isView,
renderMode,
projectDetail?.label_type,
setEditMode,
setGroupScale,