Skip to content

Commit

Permalink
fix: CR
Browse files Browse the repository at this point in the history
  • Loading branch information
ACERY1 committed Feb 16, 2022
1 parent 9d9aacc commit e0672b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/f2/src/components/guide/withGuide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,10 @@ export default (View) => {
const theme = this.getGuideTheme();
const { guideWidth, guideHeight, guideBBox } = this.state;

let animationCfg = animation;
if (isFunction(animation)) {
// 透传绘制关键点和chart实例
props.animation = animation(points, chart);
animationCfg = animation(points, chart);
}

return (
Expand All @@ -135,6 +136,7 @@ export default (View) => {
guideWidth={guideWidth}
guideHeight={guideHeight}
guideBBox={guideBBox}
animation={animationCfg}
/>
);
}
Expand Down

0 comments on commit e0672b4

Please sign in to comment.