Skip to content

Commit

Permalink
fix:node-anchor的orth锚点,angle为负值导致数值计算为无穷
Browse files Browse the repository at this point in the history
  • Loading branch information
cuidong626 authored Dec 28, 2023
1 parent 1a27a2a commit 555d81b
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 555d81b

Please sign in to comment.