antvis/G2

brushXHighlight属性样式设置会导致一部分不符合预期高亮 #6190

Runtus posted onGitHub

问题描述

  • 为brushXHighlight设置高亮样式时,会出现一部分不符合预期的错位高亮

<img width="535" alt="image" src="https://github.com/antvis/G2/assets/48038769/7fbc269c-37f5-4803-97bf-d2867f507f1c">

代码如下:

 context
.line()
.encode('x', 'time')
.encode('y', 'value')
.encode("color", "type")
.animate(false)
.axis(false)
.interaction('tooltip', false)
.interaction('brushXHighlight', {
           series: true,
            maskOpacity: 0.3,
            maskFill: '#777',
});

重现链接

No response

重现步骤

No response

预期行为

No response

平台

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

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


这个问题可能和最近底层渲染引擎的升级有关系 https://github.com/antvis/G2/pull/6149 ,这个问题我们排查一下 @xiaoiver

posted by pearmini about 1 year ago

Fund this Issue

$0.00
Funded

Pull requests