Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@visactor/vchart",
"comment": "fix: fix the issue of the chart's size is not correctly when updateSpec in lark block env, closed #566",
"type": "none"
}
],
"packageName": "@visactor/vchart"
}
18 changes: 9 additions & 9 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion packages/vchart/src/chart/base-chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ import {
isTrueBrowser,
isString,
config,
convertBackgroundSpec
convertBackgroundSpec,
isMiniAppLikeMode
} from '../util';
import { Stack } from './stack';
import { BaseModel } from '../model/base-model';
Expand Down Expand Up @@ -703,6 +704,10 @@ export class BaseChart extends CompilableBase implements IChart {
);
width = containerWidth;
height = containerHeight;
} else if (isMiniAppLikeMode(this._option.mode) && (this._option.modeParams as any)?.domref) {
const domRef = (this._option.modeParams as any).domref;
width = domRef.width;
height = domRef.height;
}

width = userWidth ?? width;
Expand Down