Skip to content

Commit

Permalink
fix:node-anchor的orth锚点,angle为负值导致数值计算为无穷 (#4124)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuidong626 authored Jan 9, 2024
1 parent 8d0a850 commit 36c0c62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/x6/src/registry/node-anchor/orth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface OrthEndpointOptions extends ResolveOptions {

const orthogonal: NodeAnchor.ResolvedDefinition<OrthEndpointOptions> =
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()
Expand Down

0 comments on commit 36c0c62

Please sign in to comment.