Skip to content

Commit

Permalink
fix: player guide visible
Browse files Browse the repository at this point in the history
  • Loading branch information
xuying.xu committed Mar 11, 2024
1 parent f8daebd commit 7f5f25d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/f2/src/components/guide/withGuide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ export default (View: ComponentType) => {

render() {
const { props, context } = this;
const { coord, records = [], animation, chart, style, onClick } = props;
const { coord, records = [], animation, chart, style, onClick, visible = true } = props;
if(!visible) return;
const { width, height } = context;
const points = this.convertPoints(records);
const theme = this.getGuideTheme();
Expand Down

0 comments on commit 7f5f25d

Please sign in to comment.