Skip to content

Commit

Permalink
fix: fix bug of vchart updateSpec with background
Browse files Browse the repository at this point in the history
  • Loading branch information
xuefei1313 committed Oct 22, 2024
1 parent 3a55b8a commit f74e32d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ export class Chart extends Rect implements IVisactorGraphic {
spec.height = this._globalViewBox.y2 - this._globalViewBox.y1;
}
this._vchart.updateSpecSync(spec, forceMerge, { reuse: false, morph: morphConfig });
// 需要设置为false,否则会导致擦除下层内容
this._vchart.getStage() && (this._vchart.getStage().background = false as any);
if (this._BoundsViewBox) {
const rootBounds = this._getVChartBounds();
if (isBoundsLikeEqual(rootBounds, this._BoundsViewBox)) {
Expand Down

0 comments on commit f74e32d

Please sign in to comment.