diff --git a/packages/x6/src/model/model.ts b/packages/x6/src/model/model.ts index a40912ccd55..6bce0cc8d7d 100644 --- a/packages/x6/src/model/model.ts +++ b/packages/x6/src/model/model.ts @@ -1038,7 +1038,8 @@ export class Model extends Basecoat { typeof x === 'number' ? options : (y as Model.GetCellsInAreaOptions) const strict = opts && opts.strict return this.getNodes().filter((node) => { - const bbox = node.getBBox() + const angle = node.angle() + const bbox = node.getBBox().bbox(angle) return strict ? rect.containsRect(bbox) : rect.isIntersectWithRect(bbox) }) }