Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tooltip): hide tooltip when move mask #4860

Merged
merged 1 commit into from
Apr 3, 2023
Merged

fix(tooltip): hide tooltip when move mask #4860

merged 1 commit into from
Apr 3, 2023

Conversation

pearmini
Copy link
Member

@pearmini pearmini commented Apr 3, 2023

Tooltip

修复 Tooltip 和 Brush 交互的冲突的问题,当鼠标在 brush 上的时候隐藏 tooltip。

案例

brush-tooltip

export function alphabetIntervalBrushTooltip(): G2Spec {
  return {
    type: 'interval',
    transform: [{ type: 'sortX', by: 'y', reverse: true }],
    data: {
      type: 'fetch',
      value: 'data/alphabet.csv',
    },
    encode: {
      x: 'letter',
      y: 'frequency',
      color: 'steelblue',
    },
    state: {
      active: { fill: 'red' },
    },
    interaction: {
      brushHighlight: true,
    },
  };
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants