Skip to content

Commit

Permalink
fix: player guide visible (#1936)
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 11, 2024
1 parent 436ec06 commit a9c767b
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 function<IProps extends GuideProps = GuideProps>(

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 a9c767b

Please sign in to comment.