diff --git a/packages/x6/src/registry/attr/ref.ts b/packages/x6/src/registry/attr/ref.ts index ed38c0186e5..cc1462706bc 100644 --- a/packages/x6/src/registry/attr/ref.ts +++ b/packages/x6/src/registry/attr/ref.ts @@ -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 } }