antvis / antvis/G2

[ interval ] elementSelect 和 elementHighlight['background'] 冲突

Open
#6,052 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
12.6k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

### 问题描述

https://github.com/antvis/G2/assets/14211764/94e311f3-8fd0-44f4-96e3-c8ebc668cf83

同时使用 `elementSelect === true` 和 `elementHighlight.background === true` 时
预期:选中的高亮状态保存,除非我取消选中
当前:元素的高亮状态会在鼠标移走后跟着消失

### 重现链接

_No response_

### 重现步骤

_No response_

### 预期行为

_No response_

### 平台

- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox]

### 屏幕截图或视频(可选)

_No response_

### 补充说明(可选)

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the interaction with elementSelect set to true and elementHighlight.background set to true, using the linked issue description and video as the behavioral reference. Trace how selection and pointer-leave highlighting are handled, then verify that a selected element remains highlighted until it is deselected.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.