antvis/G2

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

FlatMapIO posted onGitHub

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

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

<!-- generated by antv-issue-helper. DO NOT REMOVE -->


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

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

posted by visiky over 3 years ago

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

posted by FlatMapIO over 3 years ago

Fund this Issue

$0.00
Funded

Pull requests