From ac85164ccb1f6843b6cbeef9c18d05b6aaa87ab4 Mon Sep 17 00:00:00 2001 From: ChenX Date: Thu, 21 Oct 2021 10:38:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D:GetRect=E6=97=B6=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E9=94=81=E5=AE=9A=E5=AE=BD=E5=BA=A6=E6=88=96=E8=80=85?= =?UTF-8?q?=E9=AB=98=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Editor/GetRectServices.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Editor/GetRectServices.ts b/src/Editor/GetRectServices.ts index 30413a988..de3f3ec3d 100644 --- a/src/Editor/GetRectServices.ts +++ b/src/Editor/GetRectServices.ts @@ -155,6 +155,14 @@ export class GetRectPointServices res.Point1WCS = basePoint; res.Point2WCS = ptRes.Point; + if (this.dynPrompt.xDynIpt.IsLock) + res.Point2UCS.x = basePointUCS.x + this.dynPrompt.Width * signX; + if (this.dynPrompt.yDynIpt.IsLock) + res.Point2UCS.y = basePointUCS.y + this.dynPrompt.Height * signY; + + if (this.dynPrompt.xDynIpt.IsLock || this.dynPrompt.yDynIpt.IsLock) + res.Point2WCS.copy(res.Point2UCS).applyMatrix4(this._UCSMatrix); + this.ReturnResult(res); } else if (ptRes.Status === PromptStatus.Cancel)