Skip to content

Commit

Permalink
fix: 事件范围 (#1756)
Browse files Browse the repository at this point in the history
Co-authored-by: xuying.xu <xuying.xu@alibaba-inc.com>
  • Loading branch information
tangying1027 and xuying.xu authored Mar 14, 2023
1 parent dd9563a commit 0304f0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/f2/src/chart/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -319,14 +319,14 @@ class Chart<
}

render() {
const { props, scale } = this;
const { props, scale, layout: chartLayout } = this;
const { children, data: originData } = props;
if (!originData) return null;
const data = this._getRenderData();
const layout = this.getLayout();
const coord = this.getCoord();
const scaleOptions = scale.getOptions();
const { width, height } = layout;
const { width, height } = chartLayout;

return (
<group
Expand Down

0 comments on commit 0304f0d

Please # to comment.