Skip to content

Commit

Permalink
fix: fix clip group bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui-Sun committed Jan 3, 2024
1 parent b8360b4 commit d36f718
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/vtable/src/scenegraph/graphic/group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,18 @@ export class Group extends VRenderGroup {
this.parent && this.parent.addChildUpdateBoundTag();
this.clearUpdateBoundTag();
return this._AABBBounds;
} else if (
this.role === 'body' ||
this.role === 'row-header' ||
this.role === 'col-header' ||
this.role === 'right-frozen' ||
this.role === 'bottom-frozen'
) {
this._AABBBounds.setValue(-Infinity, -Infinity, Infinity, Infinity);
// 更新bounds之后需要设置父节点,否则tag丢失
this.parent && this.parent.addChildUpdateBoundTag();
this.clearUpdateBoundTag();
return this._AABBBounds;
}
return super.doUpdateAABBBounds();
// _AABBBounds
Expand Down

0 comments on commit d36f718

Please sign in to comment.