From 36c0c62dfd62bdbc8409d4f80251dd3e65ddae9a Mon Sep 17 00:00:00 2001 From: cuidong626 Date: Tue, 9 Jan 2024 10:47:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:node-anchor=E7=9A=84orth=E9=94=9A=E7=82=B9?= =?UTF-8?q?=EF=BC=8Cangle=E4=B8=BA=E8=B4=9F=E5=80=BC=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E6=95=B0=E5=80=BC=E8=AE=A1=E7=AE=97=E4=B8=BA=E6=97=A0=E7=A9=B7?= =?UTF-8?q?=20(#4124)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/x6/src/registry/node-anchor/orth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/x6/src/registry/node-anchor/orth.ts b/packages/x6/src/registry/node-anchor/orth.ts index 37bd9cecd81..bf73a60c349 100644 --- a/packages/x6/src/registry/node-anchor/orth.ts +++ b/packages/x6/src/registry/node-anchor/orth.ts @@ -8,7 +8,7 @@ export interface OrthEndpointOptions extends ResolveOptions { const orthogonal: NodeAnchor.ResolvedDefinition = function (view, magnet, refPoint, options) { - const angle = view.cell.getAngle() + const angle = Angle.normalize(view.cell.getAngle()) const bbox = view.getBBoxOfElement(magnet) const result = bbox.getCenter() const topLeft = bbox.getTopLeft()