diff --git a/packages/lb-annotation/src/core/toolOperation/rectOperation.ts b/packages/lb-annotation/src/core/toolOperation/rectOperation.ts index 6f4438a51..ee7463e55 100644 --- a/packages/lb-annotation/src/core/toolOperation/rectOperation.ts +++ b/packages/lb-annotation/src/core/toolOperation/rectOperation.ts @@ -672,8 +672,8 @@ class RectOperation extends BasicToolOperation { default: { if ( - selectedRect.x + selectedRect.width > this.imgInfo?.width || - selectedRect.y + selectedRect.height > this.imgInfo?.height + selectedRect.x + selectedRect.width > this.imgInfo?.width + 0.01 || + selectedRect.y + selectedRect.height > this.imgInfo?.height + 0.01 ) { // 对线条和点先不做延伸的判断 return;