G2 icon indicating copy to clipboard operation
G2 copied to clipboard

View 中的 annotation().regionFilter() 在 brush-x 交互后不会重绘

Open FlatMapIO opened this issue 3 years ago • 2 comments
trafficstars

  • [ ] I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. 创建 Chart
  2. 在 chart 上创建 view
  3. 绘图,并在 view 上创建 regiionFilter
  4. 给 view 加入 brush-x 交互
  5. 框选视图,视图重绘, annotation 丢失
Environment Info
g2 4.1.37
System macOS
Browser Chrome

FlatMapIO avatar Jan 06 '22 08:01 FlatMapIO

brush-x 交互后,应该会触发 afterrender 事件,然后重新绘制 regionFilter。

我看了这个 demo 是正常的,你可以提供下复现 case 吗?看下是怎么使用的

visiky avatar Jan 10 '22 05:01 visiky

我提交的 Issue 里有 Demo:https://codesandbox.io/embed/epic-colden-t9zwi?fontsize=14&hidenavigation=1&theme=dark 我没有使用根 chart 绘制 annotation

FlatMapIO avatar Jan 11 '22 11:01 FlatMapIO