修复:GetRect时无法锁定宽度或者高度

pull/1675/head
ChenX 3 years ago
parent bf9352546a
commit ac85164ccb

@ -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)

Loading…
Cancel
Save