Skip to content

Commit

Permalink
fix: refDResetOffset、refDKeepOffset、refPointsResetOffset、refPointsKee…
Browse files Browse the repository at this point in the history
…pOffset 增加针对refBBox的相对平移
  • Loading branch information
cuidong626 authored Jan 11, 2024
1 parent f29fe2d commit ca057f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/x6/src/registry/attr/ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ function shapeWrapper(
if (resetOffset) {
shape.translate(-shapeOrigin.x, -shapeOrigin.y)
}

// increase relative offset of refBBox
// fix https://github.com/antvis/X6/issues/4134
shape.translate(refOrigin.x, refOrigin.y)
return shape
}
}
Expand Down

0 comments on commit ca057f2

Please sign in to comment.