From 555d81be5080ec6e38957ca4367bb51e165744da Mon Sep 17 00:00:00 2001 From: cuidong626 Date: Thu, 28 Dec 2023 08:50:27 +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?= 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()