Skip to content

Commit

Permalink
fix: revert getLayoutRectExcludeIndent() in liquid
Browse files Browse the repository at this point in the history
  • Loading branch information
xile611 committed Jan 22, 2024
1 parent ef010a5 commit 6954d2b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/vchart/src/series/liquid/liquid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class LiquidSeries<T extends ILiquidSeriesSpec = ILiquidSeriesSpec> exten
right: paddingRight = 0
} = this._paddingSpec;

const { width: regionWidth, height: regionHeight } = this._region.getLayoutRectExcludeIndent();
const { width: regionWidth, height: regionHeight } = this._region.getLayoutRect();
if (!isOutline) {
return {
x: regionWidth / 2 + (marginLeft + paddingRight - (marginRight + paddingRight)) / 2,
Expand Down Expand Up @@ -162,8 +162,8 @@ export class LiquidSeries<T extends ILiquidSeriesSpec = ILiquidSeriesSpec> exten
liquidBackgroundMark,
{
clip: true,
width: () => this._region.getLayoutRectExcludeIndent().width,
height: () => this._region.getLayoutRectExcludeIndent().height,
width: () => this._region.getLayoutRect().width,
height: () => this._region.getLayoutRect().height,
path: () => {
const { x, y, size } = this._getPosAndSizeFormRegion();
const symbolPath = createSymbol({
Expand All @@ -189,7 +189,7 @@ export class LiquidSeries<T extends ILiquidSeriesSpec = ILiquidSeriesSpec> exten
liquidMark,
{
dx: () => {
return this._region.getLayoutStartPoint().x + this._region.getLayoutRectExcludeIndent().width / 2;
return this._region.getLayoutStartPoint().x + this._region.getLayoutRect().width / 2;
},
y: () => {
const { y: liquidBackY, size: liquidBackSize } = this._getPosAndSizeFormRegion();
Expand Down

0 comments on commit 6954d2b

Please sign in to comment.